:root{--navy-950: #071422;--navy-900: #0b1f3a;--navy-800: #123056;--side-text: #b7c6d6;--side-muted: #6d8299;--bg: #f6f7fa;--surface: #ffffff;--text: #0f172a;--text-2: #334155;--muted: #64748b;--border: #e2e8f0;--border-2: #cbd5e1;--hover: #f1f5f9;--accent: #2f4bff;--accent-hover: #1f33b8;--accent-soft: #eef1ff;--accent-on-dark: #8ea2ff;--ok: #027a48;--ok-soft: #ecfdf3;--warn: #b54708;--warn-soft: #fffaeb;--danger: #b42318;--danger-soft: #fef3f2;--info: #175cd3;--info-soft: #eff8ff;--radius: 12px;--sidebar: 248px;--sidebar-collapsed: 72px;--topbar: 60px;--mobilebar: 62px;font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{margin:0;background:var(--bg)}body{min-height:100dvh;letter-spacing:-.005em}h1{margin:0;font-size:1.45rem;font-weight:800;letter-spacing:-.02em}h2{margin:0;font-size:1rem;font-weight:800}h3{margin:0;font-size:.92rem;font-weight:700}p{margin:0;line-height:1.5}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:.82rem}.error{color:var(--danger);font-weight:600;font-size:.88rem}.stack{display:flex;flex-direction:column;gap:14px}.stack-lg{display:flex;flex-direction:column;gap:18px}.grow{flex:1;min-width:0}.nowrap{white-space:nowrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pre{white-space:pre-wrap;overflow-wrap:anywhere}.overdue{color:var(--danger);font-weight:700}.num{font-variant-numeric:tabular-nums}.splash{min-height:100dvh}label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;font-weight:600;color:var(--text-2)}label.check{flex-direction:row;align-items:center;gap:9px;font-weight:500;font-size:.9rem;color:var(--text)}label.check input{width:18px;height:18px;min-height:0;accent-color:var(--accent)}input,textarea,select{width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--border-2);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:.95rem}textarea{resize:vertical;line-height:1.45}input:focus,textarea:focus,select:focus{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);border-color:var(--accent)}input:disabled{opacity:.6;background:var(--hover)}input[type=checkbox],input[type=radio]{width:auto;min-height:0}fieldset{border:1px solid var(--border);border-radius:10px;padding:14px;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}legend{font-weight:800;padding:0 6px;font-size:.85rem}button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 14px;border:1px solid transparent;border-radius:8px;background:var(--accent);color:#fff;font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;white-space:nowrap}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.5;cursor:default}button.secondary{background:var(--surface);color:var(--text-2);border-color:var(--border-2)}button.secondary:hover:not(:disabled){background:var(--hover);color:var(--text)}button.danger,button.secondary.danger{background:var(--surface);color:var(--danger);border-color:#fecdca}button.danger:hover:not(:disabled){background:var(--danger-soft)}button.link{background:none;border:0;color:var(--accent);min-height:30px;padding:2px 4px;font-weight:600}button.link:hover:not(:disabled){background:none;text-decoration:underline}.small-btn,button.small-btn{min-height:32px;padding:5px 10px;font-size:.82rem}.btn-link{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:8px 14px;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;font-size:.88rem}.btn-link:hover{background:var(--accent-hover);text-decoration:none}.btn-link.secondary{background:var(--surface);color:var(--text-2);border:1px solid var(--border-2)}.btn-link.secondary:hover{background:var(--hover)}.logo{display:inline-flex;align-items:center}.logo-word{font-weight:800;letter-spacing:-.04em;line-height:1;color:var(--text)}.auth{min-height:100dvh;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:linear-gradient(160deg,var(--navy-900),var(--navy-800))}.auth-card{width:100%;max-width:400px;background:var(--surface);border-radius:16px;padding:30px 26px;display:flex;flex-direction:column;gap:22px;box-shadow:0 30px 60px #00000040}.auth-logo{display:flex;justify-content:center}.auth-card input{min-height:44px;font-size:16px}.auth-card button:not(.link){min-height:44px;font-size:.95rem}.qr{align-self:center;background:#fff;padding:8px;border-radius:12px;line-height:0;border:1px solid var(--border)}.secret{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92rem;word-break:break-all;color:var(--text)}.codes{list-style:none;margin:0;padding:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px;border-radius:10px;background:var(--hover);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100dvh}.shell.is-collapsed{grid-template-columns:var(--sidebar-collapsed) minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--navy-900);color:#fff;padding:14px 10px 10px;overflow:hidden;z-index:30}.side-brand{display:flex;align-items:center;gap:10px;padding:4px 10px 14px;margin-bottom:4px;border-bottom:1px solid rgb(255 255 255 / .07);color:#fff}.side-brand:hover{text-decoration:none}.side-brand .logo-word{color:#fff}.side-brand small{display:block;color:var(--side-muted);font-size:.7rem;font-weight:600;margin-top:2px}.side-nav{flex:1;min-height:0;overflow-y:auto;padding:4px 0 8px;scrollbar-width:thin;scrollbar-color:rgb(255 255 255 / .12) transparent}.side-group{display:flex;flex-direction:column;gap:1px}.nav-label{margin:12px 0 4px;padding:6px 10px 4px;font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--side-muted);font-weight:700}.side-rule{height:1px;background:#ffffff12;margin:10px 8px 8px}.side-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:var(--side-text);font-size:.88rem;font-weight:600;transition:background .15s,color .15s}.side-link:hover{background:#ffffff0f;color:#fff;text-decoration:none}.side-link.active{background:#2f4bff47;color:#fff}.side-link.active .side-ico{color:var(--accent-on-dark)}.side-ico{display:grid;place-items:center;width:20px;flex:0 0 20px}.side-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-badge{min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;font-size:.7rem;font-weight:800;display:grid;place-items:center}.side-foot{border-top:1px solid rgb(255 255 255 / .07);padding-top:8px}.side-collapse{width:100%;justify-content:flex-start;background:transparent;color:var(--side-muted);font-weight:600;font-size:.82rem;padding:8px 10px}.side-collapse:hover:not(:disabled){background:#ffffff0f;color:#fff}.is-collapsed .side-text,.is-collapsed .nav-label,.is-collapsed .side-brand .logo-word,.is-collapsed .side-brand small,.is-collapsed .side-collapse span:not(.side-ico){display:none}.is-collapsed .side-link{justify-content:center;position:relative}.is-collapsed .side-badge{position:absolute;top:2px;right:4px;min-width:16px;height:16px;font-size:.6rem;padding:0 4px}.is-collapsed .side-brand{justify-content:center;padding-left:0;padding-right:0}.shell-main{min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;height:var(--topbar);padding:0 24px;background:color-mix(in srgb,var(--surface) 94%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.top-btn{width:38px;height:38px;min-height:0;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text-2);position:relative;display:grid;place-items:center;flex-shrink:0}.top-btn:hover:not(:disabled){background:var(--hover);color:var(--text)}.top-btn .dot{position:absolute;top:4px;right:4px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--accent);color:#fff;font-size:.62rem;font-weight:800;display:grid;place-items:center}.top-search{position:relative;flex:0 1 460px}.top-search input{padding-left:36px;background:var(--hover);border-color:transparent;min-height:38px}.top-search input:focus{background:var(--surface)}.top-search .ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none;display:grid}.search-pop{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:70vh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 40px #0f172a29;padding:6px;z-index:50}.search-sec{padding:8px 10px 4px;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.search-hit{display:flex;flex-direction:column;padding:8px 10px;border-radius:8px;color:var(--text)}.search-hit:hover,.search-hit.on{background:var(--accent-soft);text-decoration:none}.search-hit small{color:var(--muted)}.search-empty{padding:14px;color:var(--muted);text-align:center}.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}.top-user{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 4px;border-radius:10px;color:var(--text)}.top-user:hover{background:var(--hover);text-decoration:none}.top-user strong{display:block;font-size:.85rem;line-height:1.2}.top-user small{display:block;color:var(--muted);font-size:.72rem}.avatar{width:36px;height:36px;border-radius:99px;background:var(--navy-900);color:#fff;display:grid;place-items:center;font-size:.78rem;font-weight:800;flex-shrink:0;letter-spacing:0}.avatar.sq{border-radius:10px;background:var(--accent-soft);color:var(--accent)}.avatar.lg{width:56px;height:56px;font-size:1.1rem;border-radius:14px}.content{padding:22px 28px 48px;width:100%;max-width:1440px;min-width:0;display:flex;flex-direction:column;gap:18px}.side-backdrop,.mobilebar{display:none}.crumbs{display:flex;flex-wrap:wrap;gap:6px;font-size:.8rem;color:var(--muted)}.crumbs a{color:var(--muted)}.crumbs span:before{content:"›";margin-right:6px}.page-header{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}.page-header .titles{flex:1;min-width:220px;display:flex;flex-direction:column;gap:3px}.page-header h1{overflow-wrap:anywhere}.page-actions{display:flex;flex-wrap:wrap;gap:8px}.back{font-size:1.6rem;line-height:1;padding:0 6px 0 0;color:var(--muted);align-self:center}.back:hover{text-decoration:none;color:var(--text)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.stat{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0}.stat-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.stat>div{min-width:0;display:flex;flex-direction:column;gap:2px}.stat-label{color:var(--muted);font-size:.78rem;font-weight:600}.stat strong{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat small{font-size:.75rem}.stat[data-tone=ok] .stat-ico{background:var(--ok-soft);color:var(--ok)}.stat[data-tone=warn] .stat-ico{background:var(--warn-soft);color:var(--warn)}.stat[data-tone=danger] .stat-ico{background:var(--danger-soft);color:var(--danger)}a.stat:hover{border-color:var(--accent);text-decoration:none}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.panel.flush{padding:0;overflow:hidden}.panel.flush>.panel-head{padding:14px 18px 0}.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.filters>input[type=search],.filters .search{flex:1 1 240px;width:auto}.filters>select{width:auto;min-width:150px}.filter-row{display:flex;gap:8px}.filter-row .search{flex:1}.filter-row select{width:auto}.dtable-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.dtable-scroll{overflow-x:auto}.dtable{width:100%;border-collapse:collapse;font-size:.88rem}.dtable th{text-align:left;padding:10px 14px;background:#f8fafc;color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-bottom:1px solid var(--border);white-space:nowrap;-webkit-user-select:none;user-select:none}.dtable th[data-sort]{cursor:pointer}.dtable th[data-sort]:hover{color:var(--text)}.dtable th .sort{margin-left:4px;opacity:.5}.dtable th.on .sort{opacity:1;color:var(--accent)}.dtable td{padding:11px 14px;border-bottom:1px solid var(--border);vertical-align:middle}.dtable tr:last-child td{border-bottom:0}.dtable tbody tr:hover{background:#fafbfd}.dtable tbody tr.clickable{cursor:pointer}.dtable [data-align=right]{text-align:right}.dtable td small{color:var(--muted);display:block}.cell-main{display:flex;align-items:center;gap:10px;min-width:0;color:var(--text)}.cell-main:hover{text-decoration:none}.cell-main:hover strong{color:var(--accent)}.cell-main>span:last-child{min-width:0;display:flex;flex-direction:column}.cell-main small{color:var(--muted)}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:.82rem}.pager .pages{display:flex;gap:4px}.pager button{min-height:30px;min-width:30px;padding:2px 8px;background:var(--surface);color:var(--text-2);border-color:var(--border)}.pager button.on{background:var(--accent);color:#fff;border-color:var(--accent)}.empty{padding:36px 16px;text-align:center;color:var(--muted)}.dtable-wrap>.empty{border:0}.panel .empty,.stack-lg>.empty{border:1px dashed var(--border-2);border-radius:var(--radius);background:var(--surface)}.loading{padding:16px 0}.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:99px;font-size:.74rem;font-weight:700;background:var(--hover);color:var(--text-2);white-space:nowrap}.badge:before{content:"";width:6px;height:6px;border-radius:99px;background:currentColor;opacity:.8}.badge.plain:before{display:none}.badge.ok,.tone-ok{background:var(--ok-soft);color:var(--ok)}.badge.warn,.tone-warn{background:var(--warn-soft);color:var(--warn)}.badge.danger,.tone-danger{background:var(--danger-soft);color:var(--danger)}.badge.info,.tone-info{background:var(--info-soft);color:var(--info)}.badge.accent,.tone-accent{background:var(--accent-soft);color:var(--accent)}.tone-neutral{background:var(--hover);color:var(--muted)}.cat-lead{background:var(--accent-soft);color:var(--accent)}.cat-opportunity{background:var(--ok-soft);color:var(--ok)}.cat-quote{background:var(--warn-soft);color:var(--warn)}.cat-existing_order{background:var(--info-soft);color:var(--info)}.cat-other{background:var(--hover);color:var(--muted)}.q-open{background:var(--warn-soft);color:var(--warn)}.q-answered{background:var(--ok-soft);color:var(--ok)}.q-closed,.qs-draft,.ps-draft,.ps-cancelled{background:var(--hover);color:var(--muted)}.qs-sent,.ps-unpaid{background:var(--info-soft);color:var(--info)}.qs-accepted,.ps-paid{background:var(--ok-soft);color:var(--ok)}.qs-rejected,.qs-expired,.ps-overdue{background:var(--danger-soft);color:var(--danger)}.ps-partial{background:var(--warn-soft);color:var(--warn)}.chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.chip{display:inline-flex;align-items:center;gap:4px;min-height:26px;padding:2px 10px;border-radius:99px;background:var(--surface);border:1px solid var(--border);color:var(--text-2);font-size:.8rem;font-weight:600}a.chip:hover{border-color:var(--accent);color:var(--accent);text-decoration:none}button.chip{cursor:pointer;min-height:26px}button.chip:hover:not(:disabled){background:var(--hover)}.hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px}.hero-left{display:flex;gap:14px;min-width:0;flex:1 1 340px}.hero-left>div{min-width:0;display:flex;flex-direction:column;gap:6px}.hero h1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:1.35rem}.hero-meta{display:flex;flex-wrap:wrap;gap:6px 16px;color:var(--muted);font-size:.85rem}.hero-meta a{color:var(--text-2)}.hero-actions{display:flex;flex-wrap:wrap;gap:8px}.dtabs{display:flex;gap:2px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}.dtabs button{background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 14px;min-height:42px;font-weight:700}.dtabs button:hover:not(:disabled){background:transparent;color:var(--text)}.dtabs button.on{color:var(--accent);border-bottom-color:var(--accent)}.dtabs .count{margin-left:4px;padding:0 6px;border-radius:99px;background:var(--hover);color:var(--muted);font-size:.72rem}.layout2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;align-items:start}.layout2>div{display:flex;flex-direction:column;gap:18px;min-width:0}.kv{display:grid;grid-template-columns:max-content 1fr;gap:9px 18px;margin:0}.kv dt{color:var(--muted);font-size:.85rem}.kv dd{margin:0;font-weight:600;word-break:break-word}.kv.compact{gap:4px 12px}.kvgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px 18px}.kvgrid div{display:flex;flex-direction:column;gap:3px;min-width:0}.kvgrid span{color:var(--muted);font-size:.76rem;font-weight:600}.kvgrid strong{font-weight:600;overflow-wrap:anywhere}.stepper{display:flex;gap:0;overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);scrollbar-width:none}.stepper button{flex:1;min-width:120px;background:transparent;color:var(--muted);border:0;border-radius:0;border-right:1px solid var(--border);min-height:46px;flex-direction:column;gap:2px;font-size:.8rem}.stepper button:last-child{border-right:0}.stepper button:hover:not(:disabled){background:var(--hover);color:var(--text)}.stepper button.done{color:var(--ok)}.stepper button.on{background:var(--accent);color:#fff}.stepper button.cancel.on{background:var(--muted)}.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.timeline li{position:relative;padding:0 0 14px 22px}.timeline li:before{content:"";position:absolute;left:5px;top:6px;width:8px;height:8px;border-radius:99px;background:var(--accent)}.timeline li:after{content:"";position:absolute;left:8px;top:16px;bottom:0;width:2px;background:var(--border)}.timeline li:last-child:after{display:none}.timeline small{color:var(--muted);display:block}.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.list>li{padding:10px 0;border-top:1px solid var(--border)}.list>li:first-child{border-top:0;padding-top:0}.row-link{display:flex;align-items:center;gap:10px;color:var(--text);min-height:30px}.row-link:hover{text-decoration:none}.row-link:hover strong{color:var(--accent)}.notes li,.answers li{display:flex;flex-direction:column;gap:4px}.row-form{display:flex;gap:8px;align-items:flex-start}.row-form textarea{flex:1}.actions-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.account{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.task{flex-direction:row;align-items:flex-start;gap:12px;font-weight:500;cursor:pointer;color:var(--text);font-size:.9rem}.task input{width:18px;height:18px;min-height:0;margin-top:2px;flex-shrink:0;accent-color:var(--accent)}.task .grow{display:flex;flex-direction:column;gap:2px}.tasks li.done .task-title{text-decoration:line-through;color:var(--muted)}.contact-card{display:flex;flex-direction:column;gap:4px}.contact-card .links{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.84rem}.contact-card.gone{opacity:.55}.cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.card-link{display:flex;flex-direction:column;gap:5px;padding:13px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--text)}.card-link:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));text-decoration:none}.card-link.unread{border-left:3px solid var(--accent)}.card-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.tabs{display:inline-flex;gap:2px;padding:3px;background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow-x:auto;scrollbar-width:none;max-width:100%}.tabs button{min-height:32px;background:transparent;color:var(--muted);font-size:.84rem;border:0;padding:5px 12px}.tabs button:hover:not(:disabled){background:var(--hover);color:var(--text)}.tabs button.active{background:var(--accent-soft);color:var(--accent)}.seg{display:inline-flex;gap:2px;padding:3px;background:var(--hover);border-radius:9px;flex-shrink:0}.seg button{min-height:30px;padding:4px 10px;background:transparent;color:var(--muted);font-size:.82rem;border:0}.seg button:hover:not(:disabled){background:var(--surface);color:var(--text)}.seg button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 2px #00000014}.seg.wide{display:flex}.seg.wide button{flex:1;min-height:36px}.seg.wrap{flex-wrap:wrap}input.search{width:100%}.message{gap:10px}.message.out{background:color-mix(in srgb,var(--accent-soft) 55%,var(--surface))}.message-head{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.mail-body{font-size:.93rem;line-height:1.6}.suggestion{border-color:color-mix(in srgb,var(--accent) 40%,var(--border));background:linear-gradient(180deg,var(--accent-soft),var(--surface) 70%)}.quote{margin:0;padding:12px 14px;border-left:3px solid var(--accent);background:var(--hover);border-radius:0 10px 10px 0;font-size:.92rem}.compose-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid2,.grid3,.grid4{display:grid;gap:12px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.span2{grid-column:span 2}.picker{display:flex;flex-direction:column;gap:6px;position:relative}.picker-list{list-style:none;margin:0;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 10px 24px #0f172a1a}.picker-list button{width:100%;justify-content:flex-start;background:transparent;color:var(--text);min-height:36px;font-weight:600;border:0}.picker-list button:hover:not(:disabled),.picker-list button.picked{background:var(--accent-soft);color:var(--accent)}.picker-list small{color:var(--muted);font-weight:500;margin-left:6px}body.no-scroll{overflow:hidden}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#07142273;display:flex;justify-content:flex-end}.sheet{width:min(560px,100%);height:100dvh;display:flex;flex-direction:column;background:var(--surface);box-shadow:-20px 0 50px #0003;animation:sheet-in .18s ease-out}.sheet.wide{width:min(860px,100%)}@keyframes sheet-in{0%{transform:translate(30px);opacity:.6}}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--border)}.sheet-body{padding:20px 22px 28px;overflow-y:auto;overscroll-behavior:contain;flex:1}.stage-tabs{display:none}.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:12px;overflow-x:auto;padding-bottom:8px}.column{display:flex;flex-direction:column;gap:8px;padding:10px;background:#eef1f6;border-radius:var(--radius);min-height:240px}.column.won .column-head strong{color:var(--ok)}.column.lost .column-head strong{color:var(--muted)}.column-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:2px 4px 6px}.column-empty{padding:8px 4px}.deal{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:grab;box-shadow:0 1px 2px #0f172a0a}.deal:hover{border-color:var(--accent);text-decoration:none}.deal-meta{display:flex;justify-content:space-between;font-weight:800;font-size:.88rem}.stage-picker{display:flex;gap:0;overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);scrollbar-width:none}.stage-picker button{flex:1;min-width:110px;background:transparent;color:var(--muted);border:0;border-radius:0;border-right:1px solid var(--border);min-height:42px;font-size:.82rem}.stage-picker button:last-child{border-right:0}.stage-picker button:hover:not(:disabled){background:var(--hover);color:var(--text)}.stage-picker button.active{background:var(--accent);color:#fff}.stage-picker button.active.won{background:var(--ok)}.stage-picker button.active.lost{background:var(--muted)}.doc-table{display:flex;flex-direction:column}.doc-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 110px auto 110px;gap:10px;padding:10px 0;border-top:1px solid var(--border);align-items:start}.doc-row>span:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.doc-row.head{border-top:0;padding-top:0;color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.totals{display:grid;grid-template-columns:1fr auto;gap:6px 22px;margin:8px 0 0 auto;min-width:280px}.totals dt{color:var(--muted);text-align:right}.totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.totals .strong{color:var(--text);font-weight:800;font-size:1.05rem}.item-editor{display:flex;flex-direction:column;gap:10px}.item-row{display:grid;gap:8px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fbfcfe;grid-template-columns:24px minmax(0,1fr) 80px 80px 110px 70px 70px 110px;grid-template-areas:"pos desc qty unit price disc vat total" ". actions actions actions actions actions actions actions"}.item-pos{grid-area:pos;align-self:center;color:var(--muted);font-weight:800}.item-desc{grid-area:desc}.item-total{grid-area:total;align-self:center;text-align:right;font-weight:800;font-variant-numeric:tabular-nums}.item-actions{grid-area:actions;display:flex;justify-content:space-between;align-items:center;gap:8px}.item-row label{font-size:.74rem;min-width:0}.item-row input,.item-row textarea{width:100%;min-width:0}.item-row input{min-height:36px;padding:6px 9px}.sticky-actions{position:sticky;bottom:0;padding:12px 0;background:linear-gradient(transparent,var(--bg) 35%);z-index:5}.doc-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.doc-file{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;min-width:0}.doc-file .grow small{display:block;color:var(--muted)}.install{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:var(--radius);background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 25%,transparent)}.install-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.dash-grid .span2{grid-column:span 2}.funnel{display:flex;flex-direction:column;gap:10px}.funnel-row{display:grid;grid-template-columns:150px 1fr 120px;gap:10px;align-items:center;font-size:.85rem}.funnel-bar{height:10px;border-radius:99px;background:var(--hover);overflow:hidden}.funnel-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}.greet{display:flex;flex-direction:column;gap:2px}@media(max-width:1100px){.layout2,.dash-grid{grid-template-columns:1fr}.dash-grid .span2{grid-column:auto}}@media(max-width:860px){.shell,.shell.is-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;transform:translate(-100%);transition:transform .2s ease;padding-top:max(14px,env(safe-area-inset-top))}.is-mobile-open .sidebar{transform:none;box-shadow:20px 0 50px #0000004d}.is-collapsed .side-text,.is-collapsed .nav-label,.is-collapsed .side-brand .logo-word,.is-collapsed .side-brand small{display:initial}.is-collapsed .side-link{justify-content:flex-start}.side-foot{display:none}.side-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;background:#07142273}.topbar{padding:env(safe-area-inset-top) 12px 0;height:calc(var(--topbar) + env(safe-area-inset-top));gap:6px}.top-user span:not(.avatar),.hide-mobile{display:none}.top-search{flex:1}.content{padding:14px 14px calc(var(--mobilebar) + 28px + env(safe-area-inset-bottom));gap:14px}.mobilebar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;height:calc(var(--mobilebar) + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border)}.mobilebar a,.mobilebar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.66rem;font-weight:700;background:none;border:0;min-height:0;padding:0;position:relative}.mobilebar a:hover{text-decoration:none}.mobilebar .active{color:var(--accent)}.mobilebar .dot{position:absolute;top:6px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--accent);color:#fff;font-size:.6rem;display:grid;place-items:center}input,textarea,select{font-size:16px}.grid2,.grid3,.grid4{grid-template-columns:1fr}.grid4.keep2,.grid3.keep2{grid-template-columns:1fr 1fr}.span2{grid-column:auto}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:11px 12px;gap:9px}.stat-ico{width:32px;height:32px}.stat strong{font-size:1.05rem}.hero{padding:14px}.hero h1{font-size:1.15rem}.page-header h1{font-size:1.2rem}.kv{grid-template-columns:1fr;gap:2px}.kv dd{margin-bottom:8px}.row-form{flex-direction:column;align-items:stretch}.compose-grid{grid-template-columns:1fr}.sheet-backdrop{align-items:flex-end}.sheet,.sheet.wide{width:100%;height:auto;max-height:92dvh;border-radius:16px 16px 0 0;animation:none}.sheet-body{padding-bottom:calc(22px + env(safe-area-inset-bottom))}.dtable .hide-sm{display:none}.dtable th,.dtable td{padding:10px}.filters>select{flex:1 1 140px;min-width:0}.stage-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.stage-tabs button{flex-shrink:0;min-height:34px;padding:5px 12px;background:var(--surface);color:var(--muted);border:1px solid var(--border);font-size:.82rem}.stage-tabs button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.stage-tabs .count{opacity:.75;margin-left:4px}.board{display:block;overflow:visible}.column{display:none;background:none;padding:0;min-height:0}.column.mobile-active{display:flex}.column-head{display:none}.deal{cursor:pointer}.doc-row{grid-template-columns:1fr auto}.doc-row.head{display:none}.doc-row>span:nth-child(n+2):not(:last-child){display:none}.totals{min-width:0;width:100%}.item-row{grid-template-columns:24px repeat(3,minmax(0,1fr));grid-template-areas:"pos desc desc desc" ". qty unit price" ". disc vat total" ". actions actions actions"}.item-row label:nth-of-type(1){grid-area:qty}.item-row label:nth-of-type(2){grid-area:unit}.item-row label:nth-of-type(3){grid-area:price}.item-row label:nth-of-type(4){grid-area:disc}.item-row label:nth-of-type(5){grid-area:vat}.sticky-actions{bottom:calc(var(--mobilebar) + env(safe-area-inset-bottom))}.install{flex-direction:column;align-items:stretch}.install-actions{justify-content:flex-end}.funnel-row{grid-template-columns:110px 1fr}.funnel-row>:last-child{grid-column:2}}
