  :root{
    --sidebar-bg:#15131f; --sidebar-bg-2:#1d1a2b; --sidebar-text:#a8a3ba; --sidebar-text-active:#ffffff; --sidebar-active-bg:#2a2440;
    --accent:#7c5cff; --accent-2:#9b7fff; --accent-soft:#efeaff; --accent-text:#5b3df0;
    --bg:#eae8f2; --surface:#ffffff; --zebra:#f7f6fb; --row-hover:#efecfa;
    --border:#e2dfed; --border-soft:#eeecf5;
    --text:#181723; --text-2:#6d6a80; --muted:#a3a0b3;
    --cold:#6b7280; --cold-bg:#eef0f4; --cold-soft:#f4f4f7;
    --warm:#c9820a; --warm-bg:#fdf2df;
    --hot:#e3436b; --hot-bg:#fde8ee;
    --success:#1a9a6c; --success-bg:#e3f7ee;
    --highlight-bg:rgba(255,213,0,0.65); --highlight-border:#e65100; --highlight-text:#5d3d00;
    --label-navy:#0d3b5f; --req-bg:#d6f5ea; --req-text:#0f7a5c; --req-tint:#f2fbf7; --req-border:#bfe8d8;
    --opt-bg:#eef1f6; --opt-text:#5b6472;
    --shadow:0 1px 2px rgba(23,20,40,0.05), 0 1px 8px rgba(23,20,40,0.04);
    --radius:12px; --radius-sm:8px;
  }
  *{box-sizing:border-box;}
  body{margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased;}
  .app{display:grid; grid-template-columns:232px 1fr; min-height:100vh;}

  /* SIDEBAR */
  .sidebar{background:linear-gradient(180deg,var(--sidebar-bg),var(--sidebar-bg-2)); padding:1.4rem 1rem; display:flex; flex-direction:column; gap:2px; position:sticky; top:0; height:100vh; overflow-y:auto;}
  .brand{display:flex; align-items:center; gap:10px; padding:0 6px; margin-bottom:26px;}
  .brand-mark{width:32px; height:32px; border-radius:9px; background:linear-gradient(135deg,var(--accent),#ff6fa5); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; flex-shrink:0;}
  .brand-name{color:#fff; font-size:14.5px; font-weight:600;}
  .brand-sub{color:var(--sidebar-text); font-size:11px;}
  .brand-user{color:var(--accent-2); font-size:11px; font-weight:600; margin-top:3px;}
  .nav-label{color:#6f6b85; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; padding:14px 10px 6px;}
  .navitem{display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:var(--radius-sm); color:var(--sidebar-text); font-size:13.5px; cursor:pointer; user-select:none; position:relative;}
  .navitem svg{width:16px; height:16px; flex-shrink:0; opacity:0.8;}
  .navitem:hover{background:rgba(255,255,255,0.05); color:#fff;}
  .navitem.active{background:var(--sidebar-active-bg); color:#fff;}
  .navitem.active svg{opacity:1; color:var(--accent-2);}
  .navitem.active::before{content:""; position:absolute; left:-10px; top:8px; bottom:8px; width:3px; border-radius:3px; background:var(--accent-2);}
  .nav-badge{margin-left:auto; background:rgba(255,255,255,0.08); color:var(--sidebar-text); font-size:10.5px; padding:1px 7px; border-radius:20px;}
  .navitem.active .nav-badge{background:rgba(124,92,255,0.25); color:#fff;}
  .navtree{display:flex; flex-direction:column; gap:1px; margin:2px 0 4px 0;}
  .navsub{display:flex; align-items:center; gap:8px; padding:7px 10px 7px 30px; border-radius:var(--radius-sm); color:var(--sidebar-text); font-size:12.5px; cursor:pointer; user-select:none; position:relative;}
  .navsub:hover{background:rgba(255,255,255,0.05); color:#fff;}
  .navsub.active{background:var(--sidebar-active-bg); color:#fff; font-weight:600;}
  .navsub.active::before{content:""; position:absolute; left:-10px; top:6px; bottom:6px; width:3px; border-radius:3px; background:var(--accent-2);}
  .navsub-dot{width:7px; height:7px; border-radius:50%; flex-shrink:0;}
  .navsub-sep{height:1px; background:rgba(255,255,255,0.08); margin:5px 22px 5px 30px;}
  .sidebar-foot{margin-top:auto; padding-top:14px; border-top:1px solid rgba(255,255,255,0.06);}
  .user-chip{display:flex; align-items:center; gap:9px; padding:8px 6px;}
  .user-avatar{width:28px; height:28px; border-radius:50%; background:#3a3555; color:#fff; font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center;}
  .user-name{color:#fff; font-size:12.5px; font-weight:500;}
  .user-role{color:var(--sidebar-text); font-size:11px;}

  /* MAIN */
  .main{padding:1.75rem 2.25rem;}
  .view{display:none;}
  .view.active{display:block;}
  .topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; gap:10px;}
  .title{font-size:21px; font-weight:700; letter-spacing:-0.01em;}
  .title-divider{display:inline-block; margin:0 10px; color:var(--border); font-weight:400;}
  .title-greeting{color:var(--accent-text); font-weight:700;}
  .subtitle{font-size:12.5px; color:var(--muted); margin-top:3px;}
  .icon-btn{width:36px; height:36px; padding:0; display:flex; align-items:center; justify-content:center; border-radius:10px; flex-shrink:0;}
  .icon-btn svg{width:18px; height:18px;}

  button{font-family:inherit; font-size:13px; font-weight:500; padding:9px 15px; border-radius:10px; border:1px solid var(--border); background:var(--surface); color:var(--text); cursor:pointer; transition:background .12s, box-shadow .12s;}
  #btn-bulk-delete{color:var(--hot); border-color:var(--hot-bg); background:var(--hot-bg); opacity:0.55;}
  #btn-bulk-delete.active{opacity:1; background:var(--hot); color:#fff; border-color:var(--hot);}
  .rowlist-header.selectable,.lead-row.selectable{grid-template-columns:28px 38px 1.5fr 0.75fr 0.7fr 0.55fr 0.85fr 18px;}
  .lead-select-cell{width:24px; height:24px; border-radius:7px; border:1px solid var(--border-soft); display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; color:var(--muted); cursor:pointer; background:var(--surface);}
  .lead-select-cell:hover{border-color:var(--accent); color:var(--accent-text);}
  .lead-select-cell.checked{background:var(--accent); border-color:var(--accent); color:#fff;}
  .lead-select-cell svg{width:13px; height:13px;}
  .rowlist-selectall-cell input{accent-color:var(--accent); cursor:pointer; margin:0;}
  button:hover{background:var(--bg);}
  button.primary{background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 2px 8px rgba(124,92,255,0.35);}
  button.primary:hover{background:#6a4bff;}
  /* Efek "lagi ditekan" pas tombol "+ Tambah lead" diklik -- murni CSS
     (pakai :active bawaan browser, nyala PERSIS pas mousedown, ilang PERSIS
     pas mouseup), jadi bisa dipakai buat ngecek kalau lagi direkam layar:
     kalau efek ini gak pernah nongol pas diklik, berarti klik-nya emang gak
     nyampe ke tombol ini sama sekali. */
  #btn-tambah-lead-quick, #mobile-fab-tambah-lead{transition:background .12s, box-shadow .12s, transform .08s ease, filter .08s ease;}
  #btn-tambah-lead-quick:active, #mobile-fab-tambah-lead:active{transform:scale(0.94); filter:brightness(0.85);}
  button.danger-btn{color:var(--hot); border-color:#f4d3dc;}
  button.danger-btn:hover{background:var(--hot-bg);}

  input,select,textarea{font-family:inherit; font-size:13px; padding:8px 11px; border-radius:9px; border:1px solid var(--border); background:var(--surface); color:var(--text); width:100%;}
  textarea{resize:vertical;}
  .height-pills{display:flex; gap:6px; margin-bottom:8px; flex-wrap:wrap;}
  .height-pill{font-size:11.5px; font-weight:500; padding:5px 12px; border-radius:20px; background:var(--surface); border:1px solid var(--border); color:var(--text-2); cursor:pointer;}
  .height-pill.active{background:var(--accent); color:#fff; border-color:var(--accent);}
  .height-pill:not(.active):hover{background:var(--bg);}
  input:focus,select:focus,textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
  label{font-size:10.5px; color:var(--label-navy); display:flex; align-items:center; gap:6px; margin-bottom:5px; font-weight:700; text-transform:uppercase; letter-spacing:0.035em;}
  .req-pill,.opt-pill{font-size:9.5px; font-weight:700; text-transform:none; letter-spacing:0; padding:1px 8px; border-radius:20px; flex-shrink:0;}
  .req-pill{background:var(--req-bg); color:var(--req-text);}
  .opt-pill{background:var(--opt-bg); color:var(--opt-text);}
  input.f-req,select.f-req,textarea.f-req{background:var(--req-tint); border-color:var(--req-border);}
  input.f-req:focus,select.f-req:focus,textarea.f-req:focus{background:var(--surface);}
  .row3.editing-active input,.row3.editing-active select{background:var(--accent-soft)!important; border-color:var(--accent)!important; box-shadow:0 0 0 1px var(--accent) inset; color:var(--hot)!important; font-weight:600;}

  .kpis{display:flex; flex-wrap:wrap; gap:12px; margin-bottom:18px;}
  .kpis .card{flex:1 1 150px;}
  .card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.1rem 1.1rem; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:8px; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease;}
  .card:hover{transform:translateY(-2px); box-shadow:0 6px 18px rgba(23,20,40,0.10);}
  .card-icon{width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center;}
  .card-icon svg{width:15px; height:15px;}
  .card .label{font-size:12px; color:var(--text-2); font-weight:500;}
  .card .value{font-size:25px; font-weight:700; letter-spacing:-0.01em;}
  .card .foot{font-size:11.5px;}

  .stat-list-row{display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:0.85rem 1.1rem; box-shadow:var(--shadow); cursor:pointer; transition:box-shadow .12s ease;}
  .stat-list-row:hover{box-shadow:0 6px 18px rgba(23,20,40,0.10);}
  .stat-list-label{font-size:12.5px; font-weight:600; color:var(--text);}
  .stat-list-label.blink-alert{color:var(--hot); font-weight:700; animation:statBlink 1.1s ease-in-out infinite;}
  @keyframes statBlink{ 0%,100%{opacity:1;} 50%{opacity:0.3;} }
  .stat-list-value{font-size:14px; font-weight:700; color:var(--accent-text); background:var(--accent-soft); padding:3px 13px; border-radius:20px;}

  .temps{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px;}
  .temp-card{border-radius:var(--radius); padding:1rem 1.1rem; box-shadow:var(--shadow); background:var(--surface); border:1px solid var(--border); border-left:4px solid transparent;}
  .temp-card .th{display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; margin-bottom:6px;}
  .temp-card .th .dot{width:8px; height:8px; border-radius:50%;}
  .temp-card .num{font-size:24px; font-weight:700;}
  .temp-card .foot{font-size:11.5px; margin-top:2px;}

  /* DASHBOARD ANALYTICS CARDS */
  .analytics-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:14px; margin-bottom:14px; align-items:start;}
  .dash-card{background:var(--surface); border-radius:16px; padding:1.1rem 1.2rem; box-shadow:0 4px 20px rgba(23,20,40,0.06); margin-bottom:14px;}
  .dash-card-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; gap:8px;}
  .dash-card-title{font-size:13px; font-weight:700; color:var(--text);}
  .period-toggle{display:flex; gap:3px; background:var(--bg); border:1px solid var(--border); padding:3px; border-radius:20px; flex-wrap:wrap;}
  .period-toggle button{font-family:inherit; font-size:11px; font-weight:600; padding:5px 11px; border-radius:20px; border:none; cursor:pointer; background:transparent; color:var(--text-2);}
  .period-toggle button.active{background:var(--accent); color:#fff;}
  .status-toggle{display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap;}
  .status-toggle span{font-size:11px; font-weight:600; padding:5px 12px; border-radius:20px; cursor:pointer; border:1.5px solid var(--border); color:var(--muted); background:transparent;}
  .dash-legend{display:flex; gap:14px; justify-content:center; margin-top:10px; font-size:11px; color:var(--text-2); flex-wrap:wrap;}
  .dash-legend span{display:flex; align-items:center; gap:5px;}
  .dash-legend .dot{width:8px; height:8px; border-radius:2px; display:inline-block;}
  .admin-table{width:100%; border-collapse:collapse; font-size:12.5px;}
  .admin-table thead td{color:var(--muted); font-size:10.5px; text-transform:uppercase; letter-spacing:0.04em; padding:0 6px 8px; border-bottom:1px solid var(--border);}
  .admin-table tbody td{padding:10px 6px; border-bottom:1px solid var(--border-soft); color:var(--text-2);}
  .admin-table tbody tr:last-child td{border-bottom:none;}
  .admin-name{display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--text);}
  .admin-avatar{width:24px; height:24px; border-radius:7px; font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .admin-omzet{color:var(--success); font-weight:700;}
  .dash-hint{font-size:11px; color:var(--muted); margin-top:2px;}
  .role-badge{display:inline-block; font-size:10.5px; font-weight:600; padding:3px 9px; border-radius:20px;}
  .role-badge.master_admin{background:var(--accent); color:#fff;}
  .role-badge.super_admin{background:var(--accent-soft); color:var(--accent-text);}
  .role-badge.supervisor{background:#DFF3EC; color:#0B6B54;}
  .role-badge.sales{background:var(--border-soft); color:var(--text-2);}
  .perf-badge{display:inline-block; font-size:9.5px; font-weight:700; padding:2px 7px; border-radius:20px; margin-left:6px; text-transform:uppercase; letter-spacing:0.03em; vertical-align:1px;}
  .perf-badge.gold{background:#FCEFD2; color:#8A5A00;}
  .perf-badge.silver{background:#E8E8ED; color:#54545C;}
  .perf-badge.bronze{background:#F3E1D3; color:#8C4A1E;}
  .status-badge-user{display:inline-block; font-size:10.5px; font-weight:600; padding:3px 9px; border-radius:20px;}
  .status-badge-user.active{background:var(--success-bg); color:var(--success);}
  .status-badge-user.nonaktif{background:var(--cold-bg); color:var(--muted);}
  .user-action-link{font-size:11.5px; font-weight:600; color:var(--accent-text); cursor:pointer; margin-right:10px;}
  .ovp-cols{display:grid; grid-template-columns:260px 1fr; gap:18px; align-items:start;}
  .ovp-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.15rem; position:sticky; top:18px;}
  .ovp-photo-wrap{width:100%; aspect-ratio:4/3.2; border-radius:var(--radius-sm); background:linear-gradient(135deg,var(--accent-soft),#ffe3ee); display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom:12px;}
  .ovp-initials{width:72px; height:72px; border-radius:50%; background:rgba(255,255,255,0.8); color:var(--accent-text); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700;}
  .ovp-name{font-size:16px; font-weight:700;}
  .ovp-divider{height:1px; background:var(--border-soft); margin:14px 0;}
  .ovp-about-label{font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px;}
  .ovp-about-line{font-size:12.5px; color:var(--text-2); line-height:1.5;}
  .ovp-stat-row{display:flex; justify-content:space-between; align-items:center; font-size:12.5px; padding:6px 0; color:var(--text-2);}
  .ovp-stat-row b{color:var(--text); font-weight:700;}
  .dash-kpis{display:flex; flex-wrap:wrap; gap:12px; align-content:start;}
  .dash-kpis .card{flex:1 1 calc((100% - 24px)/3);}
  @media (max-width:900px){
    .ovp-cols{grid-template-columns:1fr;}
    .ovp-photo-wrap{aspect-ratio:16/7;}
    .ovp-card{position:static;}
    .dash-kpis{gap:8px;}
    .dash-kpis .card{flex-basis:calc((100% - 8px)/2);}
  }
  .user-action-link:last-child{margin-right:0;}
  .user-action-link.danger{color:var(--hot);}
  .user-action-link.disabled{color:var(--muted); cursor:default; pointer-events:none;}
  .overview-settings-popover{position:absolute; top:44px; right:0; z-index:40; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:0 10px 30px rgba(23,20,40,0.14); padding:0.7rem 0.5rem; min-width:240px;}
  .overview-settings-popover .ospop-title{font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; padding:2px 10px 8px;}
  .ospop-item{display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:8px; font-size:12.5px; color:var(--text); user-select:none;}
  .ospop-item:hover{background:var(--bg);}
  .ospop-item input{width:auto; accent-color:var(--accent); cursor:pointer; margin:0; flex-shrink:0;}
  .ospop-move{width:22px; height:22px; padding:0; border-radius:6px; font-size:9px; border:1px solid var(--border); background:var(--surface); color:var(--text-2); flex-shrink:0; line-height:1;}
  .ospop-move:hover{background:var(--bg);}
  .ospop-move:disabled{opacity:0.3; cursor:default;}
  .ospop-move:disabled:hover{background:var(--surface);}
  .section-reorder-bar{display:flex; justify-content:flex-end; align-items:center; gap:5px; margin-bottom:5px;}
  .section-reorder-bar .section-move-btn{width:20px; height:18px; padding:0; border-radius:5px; font-size:8px; border:1px solid var(--border); background:var(--surface); color:var(--muted); line-height:1; opacity:0.55;}
  .section-reorder-bar .section-move-btn:hover{background:var(--bg); color:var(--text-2); opacity:1;}
  .section-reorder-bar .section-move-btn:disabled{opacity:0.15; cursor:default;}
  .section-reorder-bar .section-move-btn:disabled:hover{background:var(--surface); color:var(--muted);}
  .section-reorder-bar .drag-handle{width:20px; height:18px; border-radius:5px; font-size:11px; letter-spacing:-2px; display:flex; align-items:center; justify-content:center; color:var(--muted); cursor:grab; opacity:0.55; user-select:none;}
  .section-reorder-bar .drag-handle:hover{background:var(--bg); color:var(--text-2); opacity:1;}
  .section-reorder-bar .drag-handle:active{cursor:grabbing;}
  .section-close-btn{width:18px; height:18px; padding:0; border-radius:5px; font-size:12px; border:1px solid var(--border); background:var(--surface); color:var(--muted); line-height:1; opacity:0.55;}
  .section-close-btn:hover{background:var(--hot-bg); color:var(--hot); border-color:var(--hot-bg); opacity:1;}
  [id^="section-"]{transition:outline .1s ease;}
  .section-drag-over{outline:2px dashed var(--accent); outline-offset:3px; border-radius:12px;}
  .section-dragging{opacity:0.45;}

  .panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:0.95rem 1.15rem; margin-bottom:12px; box-shadow:var(--shadow);}
  .panel-title{font-size:12.5px; color:var(--text); margin-bottom:10px; font-weight:600;}

  /* ROW LIST */
  .rowlist-header{display:grid; grid-template-columns:38px 1.5fr 0.75fr 0.7fr 0.55fr 0.85fr 18px; gap:12px; padding:0 6px 8px; font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--border); margin-bottom:2px;}
  .rowlist{display:flex; flex-direction:column;}
  .lead-row{display:grid; grid-template-columns:38px 1.5fr 0.75fr 0.7fr 0.55fr 0.85fr 18px; align-items:center; gap:12px; padding:11px 6px; border-radius:10px; cursor:pointer; transition:background .15s, box-shadow .15s; border-bottom:1px solid var(--border-soft);}
  .lead-row:last-child{border-bottom:none;}
  .lead-row:nth-child(even){background:var(--zebra);}
  .lead-row:hover{background:var(--row-hover);}
  @keyframes justPulse{ 0%,100%{ box-shadow:inset 6px 0 0 var(--highlight-border); } 50%{ box-shadow:inset 6px 0 0 var(--highlight-border), 0 0 0 3px rgba(230,81,0,0.4); } }
  .lead-row.just-viewed{background:var(--highlight-bg) !important; box-shadow:inset 6px 0 0 var(--highlight-border);}
  .lead-row.just-pulse{animation:justPulse 0.8s ease-in-out 3;}
  @keyframes justAddedBlink{ 0%,100%{opacity:1;} 50%{opacity:0.55;} }
  .lead-row.just-added{background:var(--success-bg) !important; box-shadow:inset 6px 0 0 var(--success); animation:justAddedBlink 0.6s ease-in-out 2;}
  .avatar{width:36px; height:36px; border-radius:10px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12.5px; font-weight:700;}
  .lead-info{min-width:0;}
  .lead-name{font-size:13.5px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .lead-sub{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px;}
  .lead-note{font-size:12px; color:var(--text-2); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .lead-entrydate{font-size:12px; color:var(--text-2); white-space:nowrap; line-height:1.5;}
  .lead-entrytime{font-size:10.5px; color:var(--muted);}
  .lead-omzet-value{font-size:13px; font-weight:700; color:var(--accent-text);}
  .new-lead-dot{display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; vertical-align:1px; flex-shrink:0;}
  .new-lead-dot.unseen{background:var(--success);}
  .new-lead-dot.seen{background:var(--warm);}
  .source-pill{font-size:11px; font-weight:600; padding:3px 9px; border-radius:20px; background:var(--bg); color:var(--text-2); white-space:nowrap; justify-self:start;}
  .lead-followup{font-size:12px; text-align:left;}
  .chev{color:var(--muted); flex-shrink:0; justify-self:end;}
  .chev svg{width:16px; height:16px;}
  .just-tag{display:none; font-size:9.5px; font-weight:700; color:#fff3c4; background:#5d3d00; padding:2px 8px; border-radius:20px; margin-left:6px; vertical-align:middle; text-transform:uppercase; letter-spacing:0.02em;}
  .owner-tag{display:inline-block; font-size:10px; font-weight:600; color:var(--text-2); background:var(--border-soft); padding:2px 8px; border-radius:20px; margin-left:6px; vertical-align:middle;}
  .campaign-tag{display:inline-block; font-size:10px; font-weight:600; color:var(--accent-text); background:var(--accent-soft); padding:2px 8px; border-radius:20px; margin-left:6px; vertical-align:middle;}
  .lead-row.just-viewed .just-tag{display:inline-block;}
  .lead-row.just-added .just-tag{display:inline-block; color:#eafff2; background:#0d5c3f;}

  .badge{font-size:11px; font-weight:600; padding:3px 9px; border-radius:20px; display:inline-block; white-space:nowrap; justify-self:start;}
  .badge.cold{background:var(--cold-bg); color:var(--cold);}
  .badge.warm{background:var(--warm-bg); color:var(--warm);}
  .badge.hot{background:var(--hot-bg); color:var(--hot);}
  .chan-tag{font-size:10.5px; font-weight:600; padding:2px 8px; border-radius:20px; background:var(--accent-soft); color:var(--accent-text); white-space:nowrap;}

  .activitylog-row{display:flex; align-items:center; gap:12px; padding:11px 6px; border-radius:10px; cursor:pointer; border-bottom:1px solid var(--border-soft);}
  .activitylog-row:last-child{border-bottom:none;}
  .activitylog-row:nth-child(even){background:var(--zebra);}
  .activitylog-row:hover{background:var(--row-hover);}
  .activitylog-info{flex:1; min-width:0;}
  .activitylog-company{font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .activitylog-text{font-size:12.5px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px;}
  .activitylog-time{font-size:11.5px; color:var(--muted); white-space:nowrap; flex-shrink:0;}

  .leads-split{display:grid; grid-template-columns:260px 1fr; gap:16px; align-items:start;}
  .leads-split.full-form{grid-template-columns:1fr;}
  .leads-split.full-form .split-list-col{display:none;}
  .split-list-col{position:sticky; top:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); max-height:calc(100vh - 40px); overflow-y:auto; padding:6px;}
  .split-name-item{display:flex; align-items:center; gap:9px; padding:8px 9px; border-radius:9px; cursor:pointer; font-size:12.5px; color:var(--text); border-bottom:1px solid var(--border-soft);}
  .split-name-item:last-child{border-bottom:none;}
  .split-name-item:hover{background:var(--row-hover);}
  .split-name-item.active{background:var(--accent-soft); color:var(--accent-text); font-weight:600;}
  .split-name-item .avatar{width:26px; height:26px; font-size:10.5px; flex-shrink:0;}
  .split-name-item .sn-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0;}
  .split-status-dot{width:7px; height:7px; border-radius:50%; flex-shrink:0;}
  .split-form-col{min-width:0;}

  .toolbar{display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; align-items:center;}
  .search-wrap{position:relative; flex:1; min-width:200px;}
  .search-wrap svg{position:absolute; left:12px; top:50%; transform:translateY(-50%); width:15px; height:15px; color:var(--muted);}
  .search-wrap input{padding-left:34px; border-radius:20px;}
  .segmented{display:flex; gap:3px; background:var(--surface); border:1px solid var(--border); padding:3px; border-radius:20px; box-shadow:var(--shadow); max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
  .segmented::-webkit-scrollbar{display:none;}
  .quick-filter-bar{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px;}
  .quick-filter-bar select{width:auto; min-width:130px; font-size:12px; padding:7px 10px; border-radius:20px; background:var(--surface); border:1px solid var(--border); color:var(--text-2);}
  .quick-filter-bar input[type="date"]{width:auto; min-width:128px; font-size:12px; padding:6px 10px; border-radius:20px; background:var(--surface); border:1px solid var(--border); color:var(--text-2);}
  .admin-locked-badge{display:none; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:6px 13px; border-radius:20px; background:var(--accent-soft); color:var(--accent-text); white-space:nowrap;}
  .focus-filter-badge{display:none; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:6px 13px; border-radius:20px; background:var(--accent-soft); color:var(--accent-text); white-space:nowrap; cursor:pointer;}
  .focus-filter-badge:hover{background:var(--accent);}
  .focus-filter-badge:hover, .focus-filter-badge:hover .focus-reset-x{color:#fff;}
  .focus-reset-x{border:none; background:none; padding:0; margin-left:2px; font-size:13px; line-height:1; color:var(--accent-text); cursor:pointer;}
  .focus-checklist{display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; border:1px solid var(--border); border-radius:8px; padding:8px 10px; margin-bottom:12px;}
  .focus-checklist label{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--text-2);}
  .focus-checklist input{width:auto; margin:0;}
  .lead-group-header{display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; padding:10px 4px 6px; border-bottom:1px solid var(--border-soft);}
  .lead-group-header .lgh-count{font-weight:600; text-transform:none; letter-spacing:0; color:var(--muted);}
  .compare-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; margin-top:16px;}
  .compare-card{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:1.2rem 1.1rem; text-align:center; box-shadow:var(--shadow); transition:box-shadow .15s, transform .15s;}
  .compare-card:hover{box-shadow:0 6px 18px rgba(23,20,40,0.09); transform:translateY(-1px);}
  .compare-photo{display:flex; justify-content:center; margin-bottom:10px;}
  .compare-photo img,.compare-photo .avatar-placeholder{box-shadow:0 0 0 3px var(--accent-soft);}
  .avatar-placeholder{border-radius:50%; background:var(--border-soft); color:var(--muted); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .compare-name{font-size:14px; font-weight:600; color:var(--text); margin-bottom:10px; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px;}
  .compare-stats-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
  .compare-stat{background:var(--bg); border-radius:9px; padding:9px 10px;}
  .cs-label{font-size:10.5px; color:var(--muted); margin-bottom:2px;}
  .cs-value{font-size:14px; font-weight:600; color:var(--text);}
  .compare-stat.cold{background:var(--cold-bg);}
  .compare-stat.cold .cs-value{color:var(--cold);}
  .compare-stat.warm{background:var(--warm-bg);}
  .compare-stat.warm .cs-value{color:var(--warm);}
  .compare-stat.hot{background:var(--hot-bg);}
  .compare-stat.hot .cs-value{color:var(--hot); animation:statBlink 1.1s ease-in-out infinite;}
  .compare-stat.dp{background:var(--success-bg);}
  .compare-stat.dp .cs-value{color:var(--success);}
  .compare-stat.penawaran{background:var(--accent-soft);}
  .compare-stat.penawaran .cs-value{color:var(--accent-text);}
  .compare-stat.closed{background:var(--success-bg);}
  .compare-stat.closed .cs-value{color:var(--success); font-weight:700;}
  .status-dot{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:1px;}
  .status-dot.active{background:var(--success);}
  .status-dot.idle{background:var(--warm);}
  .status-dot.offline{background:var(--muted);}
  .monitor-list{border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--surface); position:relative;}
  .monitor-row{display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border-soft); background:var(--surface); position:relative; will-change:transform;}
  .monitor-row:last-child{border-bottom:none;}
  .monitor-rank{width:20px; flex-shrink:0; text-align:center; font-size:11.5px; font-weight:700; color:var(--muted);}
  .monitor-avatar{width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex-shrink:0;}
  .monitor-info{flex:1; min-width:0;}
  .monitor-name{font-size:13.5px; font-weight:600; color:var(--text); display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
  .monitor-sub{font-size:12px; color:var(--muted); margin-top:2px;}
  .monitor-status{font-size:12px; color:var(--text-2); white-space:nowrap;}
  .monitor-seen{font-size:11.5px; color:var(--muted); white-space:nowrap; min-width:80px; text-align:right;}
  .struct-wrap{display:flex; flex-direction:column; align-items:center; gap:0; padding:8px 0 24px;}
  .struct-tier{display:flex; justify-content:center; flex-wrap:wrap; gap:14px;}
  .struct-connector{width:1px; height:24px; background:var(--border);}
  .struct-node{padding:12px 20px; border-radius:12px; text-align:center; min-width:150px;}
  .struct-node .struct-name{font-size:14px; font-weight:600;}
  .struct-node .struct-name .struct-tag{font-size:10px; font-weight:500; opacity:0.8; margin-left:4px;}
  .struct-node .struct-role{font-size:11.5px; margin-top:2px;}
  .struct-node.master_admin{background:var(--accent); color:#fff;}
  .struct-node.master_admin .struct-role{color:rgba(255,255,255,0.85);}
  .struct-node.super_admin{background:var(--accent-soft); color:var(--accent-text);}
  .struct-node.supervisor{background:#DFF3EC; color:#0B6B54;}
  .struct-node.sales{background:var(--border-soft); color:var(--text-2);}
  .struct-groups{display:flex; justify-content:center; gap:28px; flex-wrap:wrap; margin-top:4px;}
  .struct-group{display:flex; flex-direction:column; align-items:center; gap:0;}
  .struct-team{display:flex; flex-direction:column; gap:10px; margin-top:14px; padding-top:14px; border-top:1px dashed var(--border);}
  .struct-team-label{font-size:10.5px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.03em; margin-bottom:8px;}
  .struct-team-empty{font-size:11.5px; color:var(--muted); margin-top:10px; padding-top:10px; border-top:1px dashed var(--border);}
  .login-option-btn{width:100%; text-align:left; padding:10px 14px; display:flex; align-items:center; gap:10px; border-radius:12px;}
  .login-option-btn:hover{background:var(--bg); border-color:var(--accent);}
  .login-option-avatar{width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#fff; flex-shrink:0;}
  .filter-pill{font-size:12px; font-weight:500; padding:6px 13px; border-radius:20px; color:var(--text-2); cursor:pointer; white-space:nowrap;}
  .filter-pill.active{background:var(--accent); color:#fff;}
  .filter-pill:not(.active):hover{background:var(--bg);}

  .row2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
  .row3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px;}
  .row4{display:grid; grid-template-columns:1fr 1fr 1fr 1fr; gap:12px;}
  .field{margin-bottom:9px;}
  .field:last-child{margin-bottom:0;}

  .history-item{display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-bottom:1px solid var(--border-soft);}
  .history-item:last-child{border-bottom:none;}
  .history-num{width:20px; height:20px; border-radius:50%; background:var(--bg); color:var(--text-2); font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px;}
  .history-content{flex:1; min-width:0;}
  .history-head{display:flex; align-items:center; gap:8px; margin-bottom:2px;}
  .history-date{font-size:11.5px; color:var(--muted); font-weight:500; white-space:nowrap; flex-shrink:0; text-align:right; padding-top:1px;}
  .history-note{font-size:13px; color:var(--text);}
  .form-actions{display:flex; justify-content:flex-end; gap:8px; margin-top:16px;}
  .empty-note{font-size:12.5px; color:var(--muted); padding:8px 0;}
  .footnote{font-size:11px; color:var(--muted); margin-top:6px;}
  .lengkapi-nanti-toggle{width:100%; display:flex; align-items:center; justify-content:space-between; background:transparent; border:none; padding:0; cursor:pointer; font-size:13px; font-weight:700; color:var(--text); text-transform:none;}
  .field-hint-dup{color:var(--hot);}
  .banner{background:var(--accent-soft); border-radius:var(--radius); padding:0.9rem 1.1rem; font-size:12.5px; color:var(--accent-text); margin-top:6px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;}
  .history-scroll{max-height:230px; overflow-y:auto; padding-right:4px;}

  .product-item{display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--zebra); flex-wrap:wrap; margin-bottom:10px;}
  .product-item:last-child{margin-bottom:0;}
  .product-badge{font-size:12px; font-weight:700; padding:5px 14px; border-radius:20px; flex-shrink:0; white-space:nowrap;}
  .product-badge.smk3{background:#e6f0fd; color:#1e5fbf;}
  .product-badge.iso{background:#fdeee0; color:#c9660a;}
  .product-info{flex:1; min-width:0; display:flex; gap:22px; align-items:center; flex-wrap:wrap;}
  .product-price{font-size:14px;}
  .product-price .lbl{color:var(--muted); margin-right:5px;}
  .product-price .val{font-weight:700; color:var(--text);}
  .product-price .val.deal{color:var(--success);}
  .product-price .val.empty{color:var(--muted); font-weight:500;}
  .product-remove{background:transparent; border:none; color:var(--muted); padding:4px; width:30px; height:30px; border-radius:7px; flex-shrink:0; font-size:17px; line-height:1;}
  .product-remove:hover{background:var(--hot-bg); color:var(--hot);}
  .product-edit{background:transparent; border:none; color:var(--accent-text); padding:4px; width:30px; height:30px; border-radius:7px; flex-shrink:0; font-size:14px; line-height:1;}
  .product-edit:hover{background:var(--accent-soft);}

  .calendar-panel{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:1rem 1.1rem; margin-bottom:14px;}
  .calendar-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;}
  .calendar-head .cal-month{font-size:15px; font-weight:700; cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px;}
  .cal-today-btn{width:100%; font-size:11px; font-weight:600; padding:6px; border-radius:8px; background:var(--accent-soft); color:var(--accent-text); border:1px solid var(--border); cursor:pointer; margin-bottom:10px;}
  .cal-today-btn:hover{background:var(--accent); color:#fff;}
  .cal-monthyear-picker{display:none; gap:6px; margin-bottom:10px;}
  .cal-monthyear-picker.open{display:flex;}
  .cal-monthyear-picker select{flex:1; font-size:11.5px; padding:5px 6px; min-width:0;}
  .calendar-weekdays{display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:6px;}
  .calendar-weekdays span{font-size:10.5px; font-weight:700; color:var(--muted); text-align:center; text-transform:uppercase; display:block;}
  .calendar-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:4px;}
  .cal-day{position:relative; aspect-ratio:1; border-radius:9px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:12.5px; cursor:pointer; border:1px solid transparent; color:var(--text);}
  .cal-day.other-month{color:var(--muted); opacity:0.35; cursor:default;}
  .cal-day:hover:not(.other-month){background:var(--row-hover);}
  .cal-day.today{border-color:var(--accent); font-weight:700;}
  .cal-day.selected{background:var(--accent); color:#fff;}
  .cal-day .cal-dot-row{display:flex; gap:2px; margin-top:2px;}
  .cal-day .cal-dot{width:5px; height:5px; border-radius:50%; background:var(--hot);}
  .cal-day.selected .cal-dot{background:#fff;}
  .calendar-legend{display:flex; gap:14px; margin-top:12px; font-size:11px; color:var(--muted); flex-wrap:wrap;}
  .calendar-legend span{display:flex; align-items:center; gap:5px;}
  .calendar-legend .dot{width:7px; height:7px; border-radius:50%;}

  .followup-layout{display:grid; grid-template-columns:minmax(200px,20%) 1fr; gap:16px; align-items:start;}
  .followup-layout .calendar-panel{position:sticky; top:20px; padding:0.9rem 0.85rem; margin-bottom:0;}
  .followup-layout .calendar-head .cal-month{font-size:13px;}
  .followup-layout .calendar-grid{gap:3px;}
  .followup-layout .cal-day{font-size:10.5px; border-radius:7px;}
  .followup-layout .cal-day .cal-dot{width:4px; height:4px;}
  .followup-layout .calendar-legend{flex-direction:column; gap:6px; margin-top:10px;}
  .followup-right-col{min-width:0;}
  .followup-right-col .leads-split{grid-template-columns:150px 1fr;}
  .followup-right-col .split-list-col{padding:4px;}
  .followup-right-col .split-name-item{padding:6px; gap:6px; font-size:11px;}
  .followup-right-col .split-name-item .avatar{width:22px; height:22px; font-size:9px;}

  .active-filter-chip{display:inline-flex; align-items:center; gap:8px; background:var(--accent-soft); color:var(--accent-text); font-size:12.5px; font-weight:500; padding:6px 8px 6px 14px; border-radius:20px;}
  .active-filter-chip button{background:transparent; border:none; color:var(--accent-text); font-size:16px; line-height:1; padding:2px 6px; border-radius:50%; cursor:pointer;}
  .active-filter-chip button:hover{background:rgba(124,92,255,0.15);}

  /* Ringkasan "filter aktif" -- ada titik ungu yang berkedip pelan biar
     kelihatan/keinget, tapi teksnya sendiri tetap kalem (gak ngejreng). */
  @keyframes filterAlertPulse{ 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:0.3; transform:scale(0.72);} }
  .active-filters-banner{display:flex; align-items:center; gap:9px; flex-wrap:wrap; background:var(--accent-soft); border:1px solid var(--accent); border-radius:10px; padding:7px 12px; font-size:12px; color:var(--accent-text);}
  .active-filters-banner .afb-dot{width:8px; height:8px; border-radius:50%; background:var(--accent); flex-shrink:0; animation:filterAlertPulse 1.15s ease-in-out infinite;}
  .active-filters-banner b{color:var(--accent-text); font-weight:700;}
  .active-filters-banner .afb-reset{background:transparent; border:none; color:var(--accent-text); font-size:11.5px; font-weight:700; padding:0; cursor:pointer; text-decoration:underline; margin-left:auto;}
  .active-filters-banner .afb-reset:hover{color:var(--accent);}

  .toast{position:fixed; bottom:24px; right:24px; background:#20202b; color:#fff; padding:12px 18px; border-radius:11px; font-size:13px; font-weight:500; box-shadow:0 10px 28px rgba(15,12,30,0.28); opacity:0; transform:translateY(12px); transition:opacity .25s ease, transform .25s ease; pointer-events:none; z-index:80; display:flex; align-items:center; gap:9px;}
  .toast.show{opacity:1; transform:translateY(0);}
  .toast .tdot{width:8px; height:8px; border-radius:50%; background:var(--highlight-border); flex-shrink:0;}
  .toast.live-notify-toast{top:24px; right:24px; bottom:auto; left:auto; pointer-events:none; cursor:pointer; max-width:300px; align-items:flex-start; transform:translateY(-12px);}
  .toast.live-notify-toast.show{transform:translateY(0); pointer-events:auto;}
  .toast.live-notify-toast:hover{background:#2b2b3a;}
  .toast.live-notify-toast .tdot{margin-top:4px; background:var(--success);}
  .live-notify-hint{font-size:10.5px; color:rgba(255,255,255,0.65); margin-top:2px;}

  .modal-overlay{display:none; position:fixed; inset:0; background:rgba(15,12,30,0.45); z-index:200; align-items:center; justify-content:center; padding:20px;}
  .modal-card{background:var(--surface); border-radius:var(--radius); padding:1.4rem 1.5rem; max-width:380px; width:100%; box-shadow:0 20px 50px rgba(15,12,30,0.32);}
  .modal-title{font-size:14.5px; font-weight:700; color:var(--text); margin-bottom:6px; line-height:1.4;}
  .modal-sub{font-size:12px; color:var(--text-2); margin-bottom:16px; line-height:1.4;}
  .modal-actions{display:flex; flex-direction:column; gap:8px;}
  .modal-actions button{width:100%;}

  /* MOBILE TOP NAV (hidden on desktop) */
  .mobile-topbar{display:none;}
  .mobile-client-header{display:none;}

  .assistant-fab-wrap{position:fixed; right:16px; bottom:16px; z-index:150;}
  .assistant-fab-btn{width:52px; height:52px; border-radius:50%; background:var(--accent); color:#fff; border:none; box-shadow:0 8px 22px rgba(124,92,255,0.45); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;}
  .assistant-panel{display:none; flex-direction:column; position:fixed; right:16px; bottom:78px; width:340px; max-width:calc(100vw - 32px); height:460px; max-height:70vh; background:var(--surface); border-radius:var(--radius); box-shadow:0 20px 50px rgba(15,12,30,0.32); overflow:hidden; z-index:150;}
  .assistant-panel.open{display:flex;}
  .assistant-panel-header{display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid var(--border-soft); flex-shrink:0;}
  .assistant-panel-title{font-weight:700; font-size:13.5px;}
  .assistant-panel-sub{font-size:11px; color:var(--muted); margin-top:1px;}
  .assistant-messages{flex:1; overflow-y:auto; padding:12px 14px; display:flex; flex-direction:column; gap:9px;}
  .assistant-bubble{max-width:88%; padding:8px 12px; border-radius:14px; font-size:12.5px; line-height:1.55; white-space:pre-wrap; word-break:break-word;}
  .assistant-bubble.user{align-self:flex-end; background:var(--accent); color:#fff; border-bottom-right-radius:4px;}
  .assistant-bubble.bot{align-self:flex-start; background:var(--border-soft); color:var(--text); border-bottom-left-radius:4px;}
  .assistant-bubble.typing{align-self:flex-start; background:var(--border-soft); color:var(--muted); font-style:italic;}
  .assistant-input-row{display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--border-soft); flex-shrink:0;}
  .assistant-input-row input{flex:1; padding:9px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; box-sizing:border-box; min-width:0;}
  .assistant-input-row button{padding:9px 14px; font-size:12.5px; flex-shrink:0;}

  @media (max-width: 768px){
    .app{display:block;}
    .sidebar{display:none;}
    .main{padding:0.9rem 0.9rem 110px 0.9rem;}
    .title{font-size:18px;}

    .kpis{gap:8px;}
    .kpis .card{flex-basis:calc((100% - 8px)/2);}
    .dash-kpis .card{flex-basis:calc((100% - 8px)/2);}
    .card{padding:0.85rem;}
    .card .value{font-size:19px;}
    .temps{grid-template-columns:1fr; gap:8px;}

    .row2,.row3,.row4{grid-template-columns:1fr;}
    .analytics-grid{grid-template-columns:1fr;}
    .dash-card{padding:0.9rem 1rem;}
    .form-actions{flex-direction:column;}
    .form-actions button{width:100%;}

    .rowlist-header{display:none;}
    .lead-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
    .lead-entrydate,.source-pill{display:none;}
    .lead-info{flex:1; min-width:0;}
    .lead-followup{font-size:11px; flex-shrink:0;}

    .calendar-grid{gap:3px;}
    .cal-day{font-size:10.5px;}

    .followup-layout{grid-template-columns:1fr;}
    .followup-layout .calendar-panel{position:sticky; top:0; z-index:5; padding:0.55rem 0.5rem; margin:0 auto 10px; max-width:230px;}
    .followup-layout .calendar-head{margin-bottom:8px;}
    .followup-layout .calendar-head .cal-month{font-size:12px;}
    .followup-layout .icon-btn{width:28px; height:28px;}
    .followup-layout .icon-btn svg{width:14px; height:14px;}
    .followup-layout .calendar-weekdays span{font-size:8.5px;}
    .followup-layout .calendar-grid{gap:2px;}
    .followup-layout .cal-day{font-size:9px; border-radius:5px;}
    .followup-layout .calendar-legend{flex-direction:row; gap:8px; font-size:9px; margin-top:6px;}
    .followup-layout .cal-today-btn{font-size:10px; padding:5px; margin-bottom:6px;}
    .followup-right-col .leads-split{grid-template-columns:1fr;}

    .leads-split{grid-template-columns:1fr; gap:10px;}
    .split-list-col{display:none;}
    .mobile-client-header{display:flex; align-items:center; gap:11px; background:var(--accent); color:#fff; padding:14px 16px; border-radius:var(--radius); margin-bottom:14px; font-size:16px; font-weight:700; box-shadow:0 4px 14px rgba(124,92,255,0.35);}
    .mobile-client-header .avatar{background:rgba(255,255,255,0.22); color:#fff; flex-shrink:0;}
    .mobile-client-header .mch-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
    .mch-back-btn{width:30px; height:30px; flex-shrink:0; border-radius:50%; background:rgba(255,255,255,0.22); border:none; color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; margin-right:-2px;}

    .mobile-topbar{display:flex; align-items:center; justify-content:space-between; gap:10px; position:fixed; top:0; left:0; right:0; z-index:120; background:var(--accent); color:#fff; padding:12px 14px; box-shadow:0 3px 12px rgba(0,0,0,0.18);}
    .assistant-fab-wrap{right:16px; bottom:16px;}
    .assistant-panel{right:16px; bottom:78px;}
    .main{padding-top:66px;}
    .mobile-topbar-btn{display:flex; align-items:center; gap:6px; background:rgba(255,255,255,0.2); border:none; color:#fff; border-radius:20px; padding:8px 15px; font-size:13.5px; font-weight:700; cursor:pointer; flex-shrink:0;}
    .mobile-topbar-btn-icon{font-size:16px; line-height:1;}
    .mobile-topbar-title{font-size:14px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; text-align:right;}
    .mobile-fab-menu{position:fixed; top:60px; left:14px; right:14px; display:none; flex-direction:column; align-items:stretch; gap:7px; max-height:75vh; overflow-y:auto; padding:4px; z-index:119;}
    .mobile-fab-menu.open{display:flex;}
    .mobile-fab-item{background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:14px; padding:11px 16px; font-size:13.5px; font-weight:600; box-shadow:var(--shadow); white-space:nowrap; cursor:pointer;}
    .mobile-fab-item.accent{background:var(--accent); color:#fff; border-color:var(--accent);}
    .mobile-fab-item .fdot{width:7px; height:7px; border-radius:50%; display:inline-block; margin-right:7px;}
    .mobile-fab-sep{height:1px; background:rgba(24,23,35,0.12); width:100%; margin:1px 0;}
  }
