:root{--bg: #f4f5f9;--surface: #ffffff;--surface-2: #fafbfe;--ink: #171a2b;--ink-2: #3d4358;--muted: #6d7488;--muted-2: #9aa0b2;--line: #e9ebf3;--line-strong: #dfe2ed;--accent: #5a5ce0;--accent-strong: #4a4ccd;--accent-soft: #eeeefe;--accent-ink: #3f41b8;--green: #12996b;--green-soft: #e6f7f0;--amber: #c07b10;--amber-soft: #fdf4e3;--red: #d1495b;--red-soft: #fdeef0;--blue: #2477d4;--blue-soft: #eaf3fe;--violet: #7b5cd6;--violet-soft: #f1ecfe;--radius-lg: 18px;--radius: 14px;--radius-sm: 10px;--shadow-sm: 0 1px 2px rgba(23, 26, 43, .05);--shadow: 0 8px 24px -12px rgba(23, 26, 43, .18);--shadow-lg: 0 24px 60px -20px rgba(23, 26, 43, .28);--sidebar-w: 246px;--font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:var(--font);font-size:14px;line-height:1.45;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}h1,h2,h3,h4,p{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}[hidden]{display:none!important}.sprite{position:absolute;width:0;height:0;overflow:hidden}.ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ic.chev{width:15px;height:15px;stroke-width:2;opacity:.55}.app{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);display:flex;flex-direction:column;padding:22px 16px 18px;background:var(--surface);border-right:1px solid var(--line);z-index:40}.brand{display:flex;align-items:center;gap:11px;padding:2px 8px 22px}.brand-mark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:15px;font-weight:800;letter-spacing:.5px;color:#fff;background:linear-gradient(140deg,#6b6cf0,#4a4ccd 60%,#3a3aa6);box-shadow:0 6px 14px -6px #4a4ccdcc}.brand-text{display:flex;flex-direction:column;line-height:1.2}.brand-text strong{font-size:16px;letter-spacing:-.2px}.brand-text span{font-size:11px;color:var(--muted-2);margin-top:3px}.nav{display:flex;flex-direction:column;gap:2px;overflow-y:auto}.nav-item{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:11px;color:var(--ink-2);font-weight:500;font-size:13.5px;transition:background .15s,color .15s}.nav-item .ic{color:var(--muted);transition:color .15s}.nav-item:hover{background:#f5f6fb;color:var(--ink)}.nav-item:hover .ic{color:var(--ink-2)}.nav-item.active{background:var(--accent-soft);color:var(--accent-ink);font-weight:600;box-shadow:inset 0 0 0 1px #5a5ce01f}.nav-item.active .ic{color:var(--accent)}.nav-badge{margin-left:auto;min-width:22px;padding:1px 6px;border-radius:7px;background:#eef0f7;color:var(--muted);font-size:11px;font-weight:600;text-align:center}.nav-badge-warn{background:var(--amber-soft);color:var(--amber)}.nav-sep{height:1px;background:var(--line);margin:12px 8px}.sidebar-foot{margin-top:auto;padding-top:16px}.manager-card{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}.manager-meta{display:flex;flex-direction:column;min-width:0;line-height:1.25}.manager-meta strong{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manager-meta span{font-size:11px;color:var(--muted-2)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:12px;font-weight:700;letter-spacing:.2px;color:#4a4ccd;background:#e9e9fd}.avatar-sm{width:30px;height:30px;font-size:11px}.avatar-green{color:#0f7a55;background:#ddf5ea}.avatar-amber{color:#a86808;background:#fbefd7}.avatar-blue{color:#1d64b4;background:#e2eefc}.avatar-rose{color:#b83f52;background:#fbe4e8}.main{flex:1;min-width:0;margin-left:var(--sidebar-w);display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:16px;padding:14px 28px;background:#f4f5f9d1;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(233,235,243,.8)}.search{display:flex;align-items:center;gap:10px;width:min(560px,46vw);height:44px;padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:13px;color:var(--muted-2);transition:border-color .15s,box-shadow .15s}.search:focus-within{border-color:#c3c4f2;box-shadow:0 0 0 4px #5a5ce017}.search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:13.5px;color:var(--ink)}.search input::placeholder{color:var(--muted-2)}.search kbd{font-family:var(--font);font-size:10.5px;font-weight:600;color:var(--muted-2);border:1px solid var(--line-strong);border-radius:6px;padding:2px 5px;background:var(--surface-2)}.search input::-webkit-search-cancel-button{cursor:pointer}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}.period{display:flex;align-items:center;gap:8px;height:42px;padding:0 12px;background:var(--surface);border:1px solid var(--line);border-radius:11px;font-size:13px;font-weight:500;color:var(--ink-2);transition:border-color .15s,box-shadow .15s}.period:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm)}.icon-btn{position:relative;width:42px;height:42px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);border-radius:11px;color:var(--ink-2);transition:box-shadow .15s,border-color .15s}.icon-btn:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm)}.icon-btn.has-dot:after{content:"";position:absolute;top:11px;right:12px;width:7px;height:7px;border-radius:50%;background:#e2504f;border:2px solid var(--surface)}.user-chip{display:flex;align-items:center;gap:9px;height:42px;padding:0 11px 0 5px;background:var(--surface);border:1px solid var(--line);border-radius:21px;transition:box-shadow .15s,border-color .15s}.user-chip:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm)}.user-name{font-size:13px;font-weight:600}.view{padding:24px 28px 56px;animation:fade .25s ease}@keyframes fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.page-head{display:flex;align-items:flex-end;gap:20px;margin-bottom:20px}.page-head .titles{min-width:0}.page-head h1{font-size:26px;font-weight:700;letter-spacing:-.5px}.page-sub{margin-top:5px;font-size:13.5px;color:var(--muted)}.head-actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 15px;border-radius:11px;border:1px solid var(--line-strong);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink-2);transition:background .15s,border-color .15s,box-shadow .15s,transform .1s}.btn:hover{border-color:#cfd3e2;box-shadow:var(--shadow-sm)}.btn:active{transform:translateY(1px)}.btn-primary{background:linear-gradient(180deg,#6365e6,var(--accent-strong));border-color:transparent;color:#fff;box-shadow:0 6px 16px -8px #4a4ccde6}.btn-primary:hover{background:linear-gradient(180deg,#585ae2,#4547c4);box-shadow:0 10px 20px -10px #4a4ccdf2}.btn-ghost{background:transparent;border-color:transparent;color:var(--accent);padding:0 8px;height:32px}.btn-ghost:hover{background:var(--accent-soft);box-shadow:none}.btn-sm{height:34px;padding:0 11px;font-size:12.5px;border-radius:9px}.btn .ic{width:16px;height:16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.card-head{display:flex;align-items:center;gap:12px;padding:16px 18px}.card-head h2{font-size:15.5px;font-weight:650;letter-spacing:-.2px}.card-head .link{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--accent)}.card-head .link .ic{width:14px;height:14px;transition:transform .15s}.card-head .link:hover .ic{transform:translate(2px)}.card-head .count-pill{font-size:11.5px;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);padding:2px 8px;border-radius:7px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.kpi{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:10px;padding:16px 17px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.kpi:after{content:"";position:absolute;inset:0 0 auto auto;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle at 70% 30%,var(--tint, rgba(90,92,224,.1)),transparent 70%);transform:translate(18px,-30px);pointer-events:none}.kpi-top{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:500;color:var(--muted)}.kpi-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--tint-soft, var(--accent-soft));color:var(--tint-ink, var(--accent))}.kpi-icon .ic{width:16px;height:16px}.kpi-value{font-size:25px;font-weight:700;letter-spacing:-.7px;line-height:1.1}.kpi-value small{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0}.kpi-foot{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted-2)}.delta{display:inline-flex;align-items:center;gap:3px;font-weight:600}.delta .ic{width:13px;height:13px;stroke-width:2.2}.delta.up{color:var(--green)}.delta.down{color:var(--red)}.kpi-indigo{--tint: rgba(90, 92, 224, .12);--tint-soft: var(--accent-soft);--tint-ink: var(--accent)}.kpi-amber{--tint: rgba(192, 123, 16, .13);--tint-soft: var(--amber-soft);--tint-ink: var(--amber)}.kpi-green{--tint: rgba(18, 153, 107, .12);--tint-soft: var(--green-soft);--tint-ink: var(--green)}.kpi-red{--tint: rgba(209, 73, 91, .12);--tint-soft: var(--red-soft);--tint-ink: var(--red)}.dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 342px;gap:20px;align-items:start}.dash-col{display:flex;flex-direction:column;gap:20px;min-width:0}.rail{display:flex;flex-direction:column;gap:16px}.kanban-wrap{padding:0 14px 16px}.kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(110px,1fr);gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#d7dae6 transparent}.kanban::-webkit-scrollbar{height:6px}.kanban::-webkit-scrollbar-thumb{background:#d7dae6;border-radius:3px}.kcol{display:flex;flex-direction:column;gap:8px;min-height:180px;padding:9px;border-radius:14px;background:var(--tone-bg, #f4f5f9);border:1px solid var(--tone-line, transparent);transition:background .15s,box-shadow .15s}.kcol.drop-target{box-shadow:inset 0 0 0 2px var(--accent)}.kcol-head{display:flex;align-items:center;gap:6px;padding:1px 2px 2px}.kcol-dot{width:7px;height:7px;border-radius:50%;background:var(--tone-ink, var(--accent));flex:none}.kcol-title{font-size:11.5px;font-weight:650;color:var(--ink-2);line-height:1.2}.kcol-count{margin-left:auto;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;border-radius:6px;background:#fffc;color:var(--muted);font-size:10.5px;font-weight:700}.kcol-body{display:flex;flex-direction:column;gap:7px;min-height:10px}.kcol-more{border:0;background:none;padding:4px 2px;text-align:left;font-size:11px;font-weight:500;color:var(--muted);border-radius:6px}.kcol-more:hover{color:var(--accent)}.lead-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:9px 9px 8px;cursor:grab;box-shadow:0 1px 2px #171a2b0d;transition:transform .12s,box-shadow .12s,border-color .12s}.lead-card:hover{border-color:#d8dbef;box-shadow:0 5px 14px -8px #171a2b4d;transform:translateY(-1px)}.lead-card:active{cursor:grabbing}.lead-card.dragging{opacity:.45;transform:rotate(1.5deg)}.lead-name{display:flex;align-items:flex-start;gap:4px;font-size:11.5px;font-weight:600;line-height:1.28;color:var(--ink)}.lead-name span{min-width:0}.lead-name .more-dots{margin-left:auto;color:var(--muted-2);flex:none}.lead-name .more-dots .ic{width:13px;height:13px}.lead-meta{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap}.lead-amount{font-size:10.5px;font-weight:600;color:var(--muted);margin-left:auto}.chip{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:6px;font-size:10px;font-weight:600;letter-spacing:.1px;white-space:nowrap;background:#eef0f7;color:#5c6478}.chip-site{background:#eaf3fe;color:#2470c4}.chip-target{background:#fdf1e2;color:#b17413}.chip-landing{background:#eef0fe;color:#5557cc}.chip-repeat{background:#e6f7ef;color:#12855e}.chip-opt{background:#f0ecfe;color:#7454cf}.chip-neutral{background:#f0f1f6;color:#6d7488}.tone-indigo{--tone-bg: #f2f2fc;--tone-ink: #5a5ce0;--tone-line: #e7e7fb}.tone-blue{--tone-bg: #eff7fe;--tone-ink: #2b7fd0;--tone-line: #e2f0fc}.tone-violet{--tone-bg: #f6f2fe;--tone-ink: #7b5cd6;--tone-line: #ece4fb}.tone-amber{--tone-bg: #fdf8ee;--tone-ink: #c08417;--tone-line: #f7efdd}.tone-green{--tone-bg: #ecf9f3;--tone-ink: #12996b;--tone-line: #ddf2e8}.tone-teal{--tone-bg: #eef9f8;--tone-ink: #0f9188;--tone-line: #def1ef}.table-wrap{width:100%;overflow-x:auto}table.data{width:100%;border-collapse:collapse;font-size:12.8px}table.data th{text-align:left;font-weight:500;font-size:11.5px;color:var(--muted-2);padding:9px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-2);white-space:nowrap}table.data th:first-child,table.data td:first-child{padding-left:18px}table.data th:last-child,table.data td:last-child{padding-right:18px}table.data td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}table.data tbody tr{transition:background .12s}table.data tbody tr.clickable{cursor:pointer}table.data tbody tr:hover{background:#f8f9fd}table.data tbody tr:last-child td{border-bottom:0}.cell-strong{font-weight:600;color:var(--ink)}.cell-muted{color:var(--muted)}.cell-num{font-variant-numeric:tabular-nums;white-space:nowrap}.cell-client{display:flex;align-items:center;gap:9px;min-width:0}.cell-client .avatar{width:27px;height:27px;font-size:10px}.cell-client span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-arrow{color:var(--muted-2);display:inline-flex}.row-arrow .ic{width:15px;height:15px}.status{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:7px;font-size:10.8px;font-weight:600;white-space:nowrap}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.8}.status-paid{background:var(--green-soft);color:#0f855e}.status-wait{background:var(--amber-soft);color:#ad6e0d}.status-part{background:var(--blue-soft);color:#2470c4}.status-overdue{background:var(--red-soft);color:#c24456}.status-draft{background:#f0f1f6;color:#6d7488}.status-shipped{background:#e6f7f4;color:#0d857c}.stage-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:7px;white-space:nowrap;font-size:10.8px;font-weight:600;background:var(--tone-bg);color:var(--tone-ink);border:1px solid var(--tone-line)}.stage-tag:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.stage-pill .dot{display:block}.client-card{padding:17px 18px 18px}.client-top{display:flex;align-items:flex-start;gap:11px}.client-avatar{width:44px;height:44px;border-radius:13px;flex:none;display:grid;place-items:center;font-size:14px;font-weight:700;color:#4a4ccd;background:linear-gradient(150deg,#ecebfe,#e0e4fd)}.client-id{min-width:0;flex:1}.client-id h3{font-size:15px;font-weight:700;letter-spacing:-.2px;line-height:1.25}.client-id .status{margin-top:6px}.client-close{border:0;background:none;color:var(--muted-2);padding:4px;border-radius:7px}.client-close:hover{background:var(--surface-2);color:var(--ink)}.contact-list{display:flex;flex-direction:column;gap:9px;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}.contact-row{display:flex;align-items:center;gap:9px;font-size:12.2px;color:var(--ink-2);min-width:0}.contact-row .ic{width:15px;height:15px;color:var(--muted-2);flex:none}.contact-row .k{color:var(--muted-2)}.contact-row .v{color:var(--ink-2);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-row .v.strong{font-weight:600}.contact-row .v.danger{color:var(--red);font-weight:700}.contact-row .spacer{flex:1}.client-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}.client-actions .btn{width:100%}.client-actions .btn-primary{height:42px}.price-block{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.price-block .label{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--ink-2);margin-bottom:9px}.price-block .label .ic{width:15px;height:15px;color:var(--muted-2)}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;background:#f2f3f9;border-radius:9px}.segmented button{border:0;background:none;padding:6px 4px;border-radius:7px;font-size:11.5px;font-weight:500;color:var(--muted);transition:background .15s,color .15s,box-shadow .15s}.segmented button:hover{color:var(--ink)}.segmented button.active{background:var(--surface);color:var(--accent-ink);font-weight:600;box-shadow:0 1px 3px #171a2b1f}.notes-card{padding:15px 16px 16px}.notes-head{display:flex;align-items:center;gap:7px;margin-bottom:8px}.notes-head .ic{width:15px;height:15px;color:var(--muted-2)}.notes-head h3{font-size:12.5px;font-weight:650}.notes-head .edit{margin-left:auto;border:0;background:none;color:var(--muted-2);padding:2px;border-radius:5px}.notes-head .edit:hover{color:var(--accent)}.notes-body{font-size:12px;line-height:1.5;color:var(--muted)}.notes-body textarea{width:100%;min-height:92px;resize:vertical;border:1px solid var(--line-strong);border-radius:9px;padding:9px 10px;font-size:12px;line-height:1.5;outline:0}.notes-body textarea:focus{border-color:#c3c4f2;box-shadow:0 0 0 3px #5a5ce017}.notes-save{margin-top:8px;display:flex;gap:6px;justify-content:flex-end}.tasks-card{padding:15px 16px 8px}.tasks-card .card-title-row{display:flex;align-items:center;gap:7px;margin-bottom:10px}.tasks-card .card-title-row .ic{width:15px;height:15px;color:var(--amber)}.tasks-card h3{font-size:12.5px;font-weight:650}.task{display:flex;align-items:flex-start;gap:9px;padding:8px 0;border-top:1px solid var(--line);cursor:pointer}.task:first-of-type{border-top:0}.task-box{width:17px;height:17px;flex:none;margin-top:1px;border:1.5px solid #cfd3e2;border-radius:5px;display:grid;place-items:center;color:transparent;transition:background .15s,border-color .15s,color .15s}.task-box .ic{width:11px;height:11px;stroke-width:2.6}.task.done .task-box{background:var(--green);border-color:var(--green);color:#fff}.task.done .task-text{color:var(--muted-2);text-decoration:line-through}.task-text{font-size:12px;line-height:1.4;color:var(--ink-2)}.task-text small{display:block;font-size:10.5px;color:var(--muted-2);margin-top:2px}.task.done .task-text small{text-decoration:none}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar .search-sm{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;width:280px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--muted-2)}.toolbar .search-sm:focus-within{border-color:#c3c4f2;box-shadow:0 0 0 3px #5a5ce014}.toolbar .search-sm input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:13px}.filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.filter-chip{height:34px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--surface);font-size:12.5px;font-weight:500;color:var(--muted);transition:all .15s;white-space:nowrap}.filter-chip:hover{border-color:var(--line-strong);color:var(--ink)}.filter-chip.active{background:var(--accent-soft);border-color:transparent;color:var(--accent-ink);font-weight:600}.filter-chip .n{margin-left:5px;font-size:11px;opacity:.7}.toolbar .spacer{flex:1}.overlay{position:fixed;inset:0;z-index:80;background:#171a2b57;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fade .2s ease}.drawer{position:fixed;z-index:90;top:0;right:0;bottom:0;width:min(440px,100vw);display:flex;flex-direction:column;background:var(--surface);box-shadow:var(--shadow-lg);animation:slide-in .28s cubic-bezier(.22,.8,.3,1);overflow:hidden}@keyframes slide-in{0%{transform:translate(40px);opacity:.4}to{transform:none;opacity:1}}.drawer-head{display:flex;align-items:flex-start;gap:12px;padding:20px 20px 16px;border-bottom:1px solid var(--line)}.drawer-head .client-avatar{width:48px;height:48px;border-radius:14px}.drawer-head h2{font-size:17px;font-weight:700;letter-spacing:-.3px;line-height:1.25}.drawer-head .sub{margin-top:5px;font-size:12px;color:var(--muted)}.drawer-title{min-width:0;flex:1}.drawer-close{border:0;background:var(--surface-2);border:1px solid var(--line);width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--muted)}.drawer-close:hover{color:var(--ink);border-color:var(--line-strong)}.drawer-body{padding:18px 20px 32px;overflow-y:auto;display:flex;flex-direction:column;gap:18px}.drawer-section h4{font-size:11px;font-weight:650;letter-spacing:.5px;text-transform:uppercase;color:var(--muted-2);margin-bottom:9px}.drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.drawer-actions .btn{width:100%}.mini-table{width:100%;border-collapse:collapse;font-size:12px}.mini-table td{padding:7px 0;border-bottom:1px solid var(--line)}.mini-table tr:last-child td{border-bottom:0}.mini-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.mini-table .muted{color:var(--muted);font-weight:400}.modal-host{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal-host:before{content:"";position:absolute;inset:0;background:#171a2b61;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{position:relative;width:min(480px,100%);max-height:calc(100vh - 40px);overflow-y:auto;background:var(--surface);border-radius:18px;box-shadow:var(--shadow-lg);animation:pop .22s cubic-bezier(.2,.8,.3,1)}@keyframes pop{0%{transform:scale(.97) translateY(6px);opacity:0}to{transform:none;opacity:1}}.modal-head{display:flex;align-items:flex-start;gap:12px;padding:20px 20px 0}.modal-head h2{font-size:17px;font-weight:700;letter-spacing:-.2px}.modal-head p{margin-top:4px;font-size:12.5px;color:var(--muted)}.modal-head .drawer-close{margin-left:auto}.modal-body{padding:16px 20px 4px;display:flex;flex-direction:column;gap:13px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px 20px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:11.5px;font-weight:600;color:var(--ink-2)}.field input,.field select,.field textarea{width:100%;height:40px;padding:0 11px;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;font-size:13px;outline:0;transition:border-color .15s,box-shadow .15s}.field textarea{height:auto;min-height:80px;padding:10px 11px;resize:vertical;line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{border-color:#b9bbf0;box-shadow:0 0 0 3px #5a5ce01a}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.toast-host{position:fixed;right:20px;bottom:20px;z-index:120;display:flex;flex-direction:column;gap:8px}.toast{display:flex;align-items:center;gap:9px;padding:11px 14px;border-radius:11px;background:#1e2135;color:#f4f5fb;font-size:12.5px;font-weight:500;box-shadow:var(--shadow-lg);animation:toast-in .25s cubic-bezier(.2,.8,.3,1)}@keyframes toast-in{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}.toast .ic{width:16px;height:16px;color:#8fe0bd}.empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 20px;text-align:center}.empty .ic{width:28px;height:28px;color:var(--muted-2)}.empty strong{font-size:14px}.empty span{font-size:12.5px;color:var(--muted)}.stage-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.stage-pill{display:flex;align-items:center;gap:7px;padding:7px 11px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:12px;color:var(--muted)}.stage-pill b{color:var(--ink);font-weight:650}.stage-pill .dot{width:7px;height:7px;border-radius:50%}.leads-table-card{margin-top:20px}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.product-card{padding:16px;display:flex;flex-direction:column;gap:12px}.product-top{display:flex;align-items:flex-start;gap:10px}.product-thumb{width:42px;height:42px;border-radius:11px;flex:none;display:grid;place-items:center;background:linear-gradient(150deg,#f2f0fe,#e7e6fc);color:var(--violet)}.product-thumb .ic{width:19px;height:19px}.product-card h3{font-size:13.5px;font-weight:650;line-height:1.3}.product-card .sku{font-size:11px;color:var(--muted-2);margin-top:3px}.product-prices{display:flex;flex-direction:column;gap:6px;padding-top:11px;border-top:1px solid var(--line)}.price-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.price-row b{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}.price-row.active b{color:var(--accent-ink)}.price-row.active .tag-opt{background:var(--accent-soft);color:var(--accent-ink)}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chart-card{padding:18px}.chart-card h3{font-size:14px;font-weight:650}.chart-card .chart-sub{font-size:11.5px;color:var(--muted-2);margin-top:3px;margin-bottom:16px}.bars{display:flex;align-items:flex-end;gap:10px;height:160px;padding-top:8px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;height:100%;justify-content:flex-end}.bar{width:100%;max-width:34px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#7c7df0,#5a5ce0);min-height:6px;transition:filter .15s}.bar:hover{filter:brightness(1.08)}.bar.highlight{background:linear-gradient(180deg,#34c08c,#12996b)}.bar-label{font-size:10.5px;color:var(--muted-2);white-space:nowrap}.donut-wrap{display:flex;align-items:center;gap:22px}.donut{width:132px;height:132px;border-radius:50%;flex:none;position:relative;display:grid;place-items:center}.donut:after{content:"";position:absolute;inset:22px;border-radius:50%;background:var(--surface)}.donut-center{position:relative;z-index:1;text-align:center}.donut-center b{display:block;font-size:18px;font-weight:700;letter-spacing:-.5px}.donut-center span{font-size:10px;color:var(--muted-2)}.legend{display:flex;flex-direction:column;gap:9px;flex:1}.legend-row{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.legend-row .dot{width:8px;height:8px;border-radius:3px;flex:none}.legend-row b{margin-left:auto;color:var(--ink);font-weight:600}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.settings-card{padding:18px 18px 20px}.settings-card h3{font-size:14.5px;font-weight:650}.settings-card p.hint{font-size:12px;color:var(--muted);margin-top:3px;margin-bottom:15px}.settings-card .field+.field{margin-top:12px}.switch-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}.switch-row:first-of-type{border-top:0}.switch-row .switch-text{flex:1}.switch-row strong{display:block;font-size:12.5px;font-weight:600}.switch-row small{font-size:11.5px;color:var(--muted-2)}.switch{width:38px;height:22px;border-radius:11px;border:0;padding:2px;background:#dfe2ed;transition:background .18s;flex:none}.switch:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #171a2b40;transition:transform .18s}.switch.on{background:var(--accent)}.switch.on:after{transform:translate(16px)}@media(max-width:1400px){.dash-grid{grid-template-columns:minmax(0,1fr) 320px}}@media(max-width:1220px){.dash-grid{grid-template-columns:1fr}.rail{position:static;display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.rail .client-card{grid-row:span 2}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1080px){:root{--sidebar-w: 76px}.brand{justify-content:center;padding:2px 0 20px}.brand-text,.nav-item span:not(.nav-badge),.manager-meta{display:none}.nav-item{justify-content:center;padding:12px}.nav-badge{display:none}.manager-card{justify-content:center;padding:8px;background:none;border:0}.sidebar{padding:20px 12px 16px}}@media(max-width:860px){.topbar{padding:12px 16px;flex-wrap:wrap}.search{width:100%;order:2}.view{padding:18px 16px 48px}.page-head{flex-wrap:wrap;align-items:flex-start}.head-actions{width:100%;margin-left:0}.analytics-grid,.settings-grid,.rail{grid-template-columns:1fr}.rail .client-card{grid-row:auto}.kpi-grid{gap:10px}.kpi-value{font-size:21px}.user-name,.period span{display:none}.period{padding:0 10px}}@media(max-width:560px){.kpi-grid{grid-template-columns:1fr}.toolbar .search-sm{width:100%}.field-row{grid-template-columns:1fr}.donut-wrap{flex-direction:column}.page-head h1{font-size:22px}.view{padding:16px 12px 40px}.topbar{padding:10px 12px}.dash-col{gap:14px}}.btn:disabled{opacity:.55;pointer-events:none}.field-error{font-size:11px;color:var(--red);margin-top:2px}.input-error{border-color:#e9a6b0!important;box-shadow:0 0 0 3px #d1495b14}.form-error{padding:9px 11px;border-radius:9px;background:var(--red-soft);color:#a93c4d;font-size:12px}.page-loader{display:flex;align-items:center;justify-content:center;gap:10px;padding:80px 20px;color:var(--muted);font-size:13px}.spinner{width:18px;height:18px;border-radius:50%;border:2px solid #d9dcec;border-top-color:var(--accent);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.drawer-loading{padding:60px 20px;display:flex;justify-content:center}.invoice-modal-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.invoice-modal-summary .kpi{padding:13px}.invoice-modal-summary .kpi-value{font-size:20px}.drawer-total{display:flex;align-items:center;justify-content:space-between;padding:10px 0 2px;font-size:12px;color:var(--muted)}.drawer-total b{color:var(--ink);font-size:13px}.kanban .kcol{min-height:200px}.kanban.dense{grid-auto-columns:minmax(150px,1fr)}.settings-card .switch-row:last-child{border-bottom:0}.settings-card .switch,.nav-item{cursor:pointer}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,42%) 1fr;background:var(--bg)}.auth-aside{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:40px 44px;color:#eef0ff;background:linear-gradient(150deg,#4a4ccd,#3a3aa6 45%,#232457)}.auth-aside:before,.auth-aside:after{content:"";position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%);pointer-events:none}.auth-aside:before{width:460px;height:460px;right:-160px;top:-140px}.auth-aside:after{width:520px;height:520px;left:-220px;bottom:-260px;background:radial-gradient(circle,rgba(124,125,240,.5),transparent 70%)}.auth-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}.auth-brand .brand-mark{background:#ffffff29;box-shadow:inset 0 0 0 1px #ffffff40}.auth-brand strong{display:block;font-size:18px;letter-spacing:-.3px}.auth-brand span{font-size:11.5px;opacity:.65}.auth-copy{position:relative;z-index:1;margin:auto 0;max-width:440px}.auth-copy h1{font-size:34px;line-height:1.13;letter-spacing:-1px;font-weight:700}.auth-copy p{margin-top:14px;font-size:14px;line-height:1.6;color:#eef0ffb8}.auth-features{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}.auth-features li{display:flex;align-items:center;gap:10px;font-size:13px;color:#eef0ffe6}.auth-features .tick{width:22px;height:22px;border-radius:7px;flex:none;display:grid;place-items:center;background:#ffffff24;color:#b9f4dc}.auth-features .ic{width:13px;height:13px;stroke-width:2.6}.auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px}.auth-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:30px 30px 26px;box-shadow:0 30px 70px -40px #171a2b66}.auth-card h2{font-size:21px;font-weight:700;letter-spacing:-.4px}.auth-sub{margin-top:5px;margin-bottom:22px;font-size:12.8px;color:var(--muted)}.auth-form{display:flex;flex-direction:column;gap:13px}.auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.auth-check{display:inline-flex;align-items:center;gap:7px;color:var(--muted);cursor:pointer}.auth-check input{width:15px;height:15px;accent-color:var(--accent)}.auth-link{color:var(--accent);font-weight:600;font-size:12px}.auth-link:hover{text-decoration:underline}.auth-submit{width:100%;height:44px;margin-top:4px}.auth-status{margin-bottom:16px;padding:9px 11px;border-radius:9px;background:var(--green-soft);color:#0f855e;font-size:12px}.auth-error{margin-bottom:16px;padding:9px 11px;border-radius:9px;background:var(--red-soft);color:#a93c4d;font-size:12px}.auth-demo{margin-top:20px;padding:13px;border-radius:12px;background:var(--surface-2);border:1px dashed var(--line-strong)}.auth-demo-title{font-size:10.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted-2);margin-bottom:8px}.auth-demo-buttons{display:flex;gap:7px;flex-wrap:wrap}.auth-demo .btn{flex:1;height:32px;font-size:11.5px;padding:0 8px}.auth-demo-hint{margin-top:8px;font-size:11px;color:var(--muted)}.auth-legal{margin-top:18px;font-size:10.5px;color:var(--muted-2);text-align:center}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-aside{display:none}.auth-main{min-height:100vh}}.user-menu-wrap{position:relative}.user-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;width:230px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow-lg);animation:pop .15s ease}.user-menu-head{padding:9px 10px 11px;border-bottom:1px solid var(--line);margin-bottom:5px}.user-menu-head strong{display:block;font-size:12.8px}.user-menu-head span{display:block;margin-top:2px;font-size:11px;color:var(--muted)}.user-menu-role{display:inline-block;margin-top:6px;font-size:10px;font-weight:600;color:var(--accent-ink);background:var(--accent-soft);border-radius:5px;padding:2px 6px}.user-menu-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;border-radius:8px;background:none;font-size:12.5px;color:var(--ink-2);text-align:left}.user-menu-item:hover{background:var(--surface-2);color:var(--ink)}.user-menu-item.danger{color:var(--red)}.user-menu-item.danger:hover{background:var(--red-soft);color:#b23c4e}.user-menu-item .ic{width:15px;height:15px}.modal-wide{width:min(680px,100%)}.invoice-items{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface-2)}.invoice-items-head{display:grid;grid-template-columns:minmax(0,1.9fr) 70px 100px 100px 28px;gap:8px;padding:0 2px 7px;font-size:10.5px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--muted-2)}.invoice-item-row{display:grid;grid-template-columns:minmax(0,1.9fr) 70px 100px 100px 28px;gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}.invoice-item-row select,.invoice-item-row input{width:100%;height:34px;padding:0 8px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-size:12px;outline:0}.invoice-item-row select:focus,.invoice-item-row input:focus{border-color:#b9bbf0;box-shadow:0 0 0 3px #5a5ce01a}.invoice-item-row input[type=number]{font-variant-numeric:tabular-nums}.invoice-item-product{min-width:0}.invoice-item-sum{font-size:12px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.invoice-item-remove{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:7px;background:none;color:var(--muted-2)}.invoice-item-remove .ic{width:14px;height:14px}.invoice-item-remove:hover:not(:disabled){background:var(--red-soft);color:var(--red)}.invoice-item-remove:disabled{opacity:.3;cursor:not-allowed}.item-add{margin-top:8px}.invoice-total{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:12px 4px 2px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}.invoice-total b{font-size:18px;color:var(--ink);letter-spacing:-.4px;font-variant-numeric:tabular-nums}.invoice-lines{width:100%;border-collapse:collapse;font-size:12px}.invoice-lines th{text-align:left;font-weight:500;font-size:10.5px;color:var(--muted-2);padding:6px 8px;border-bottom:1px solid var(--line)}.invoice-lines th:last-child,.invoice-lines td:last-child{text-align:right}.invoice-lines td{padding:7px 8px;border-bottom:1px solid var(--line)}.invoice-lines tr:last-child td{border-bottom:0}.invoice-lines .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}@media(max-width:620px){.invoice-items-head{display:none}.invoice-item-row{grid-template-columns:1fr 62px 90px 28px}.invoice-item-row .invoice-item-sum{grid-column:1 / -1;text-align:right}.modal-wide{width:100%}}.integration-list{display:flex;flex-direction:column;gap:8px}.integration-row{display:flex;align-items:center;gap:14px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.integration-meta{flex:1;min-width:0}.integration-meta strong{display:block;font-size:12.5px}.integration-meta small{font-size:11px;color:var(--muted-2)}.integration-token{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:3px 7px}.endpoint-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 12px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--surface-2)}.endpoint-box code{font-size:12px;color:var(--ink-2)}.endpoint-method{display:inline-block;margin-right:8px;padding:2px 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent-ink);font-size:10px;font-weight:700}.endpoint-boxes{display:flex;flex-direction:column;gap:8px;margin-top:12px}.endpoint-boxes .endpoint-box{margin-top:0}.endpoint-label{display:block;margin-top:3px;font-size:10.5px;color:var(--muted-2)}.notif-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:9px;background:#e2504f;color:#fff;font-size:9.5px;font-weight:700;border:2px solid var(--bg)}.notif-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:70;width:min(360px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);overflow:hidden;animation:pop .15s ease}.notif-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}.notif-head h4{font-size:12.5px;font-weight:650}.notif-read-all{border:0;background:none;color:var(--accent);font-size:11px;font-weight:600;padding:3px 0}.notif-read-all:hover{text-decoration:underline}.notif-list{max-height:380px;overflow-y:auto}.notif-item{width:100%;display:flex;gap:10px;text-align:left;padding:11px 14px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink)}.notif-item:last-child{border-bottom:0}.notif-item:hover{background:var(--surface-2)}.notif-dot{width:7px;height:7px;border-radius:50%;background:transparent;margin-top:5px;flex:none}.notif-item.unread .notif-dot{background:var(--accent)}.notif-body{display:flex;flex-direction:column;gap:2px;min-width:0}.notif-body strong{font-size:12px;font-weight:600;line-height:1.3}.notif-body>span{font-size:11.5px;color:var(--muted);line-height:1.4}.notif-body small{font-size:10px;color:var(--muted-2);margin-top:3px}.notif-empty{padding:28px 14px;text-align:center;font-size:12px;color:var(--muted-2)}
