﻿*{box-sizing:border-box}
html{min-height:100%}
body{margin:0;min-height:100%;overflow-x:hidden;background:#020a19;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#eaf1fb;-webkit-font-smoothing:antialiased}
:root{--cyan:#57d3f5;--cyan-2:#28a9e6;--green:#3ddc97;--red:#ff7d7d;--amber:#f6c052;--glass:rgba(255,255,255,.055);--stroke:rgba(255,255,255,.13);--stroke-soft:rgba(255,255,255,.07);--text:#eaf1fb;--muted:#9fb0cc;--label:#c7d4ea;--ink:#02233a}
a{color:inherit;text-decoration:none}
.mesh{position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(720px 520px at 12% 4%,#0a3568 0%,rgba(10,53,104,0) 60%),radial-gradient(760px 620px at 92% 110%,#052437 0%,rgba(5,36,55,0) 60%),linear-gradient(160deg,#041124,#020a19)}
.grain{position:absolute;inset:0;z-index:1;opacity:.24;mix-blend-mode:overlay;pointer-events:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>")}
.crm-app{position:relative;min-height:100vh}
.crm-shell{position:relative;z-index:2;display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow:hidden;background:#0f2138;backdrop-filter:none;-webkit-backdrop-filter:none;border-right:1px solid rgba(255,255,255,.08);padding:20px 14px;display:flex;flex-direction:column;gap:20px;isolation:isolate;box-shadow:inset -1px 0 0 rgba(255,255,255,.035)}
.sb-brand{display:flex;flex-direction:column;gap:5px;padding:0 6px}
.sb-logo-img{display:block;width:145px;max-width:100%;height:auto;opacity:.96}
.login-logo-img{width:190px}
.sb-logo-text{font-size:30px;line-height:1;font-weight:300;letter-spacing:-.04em;color:#fff}
.sb-logo-text::first-letter{font-weight:600}
.sb-tag{display:none;font-size:8px;color:#cfe0f4}
.sb-sub{font-size:11px;color:var(--muted);letter-spacing:.03em;margin-top:6px}
.sb-nav{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;overflow:hidden;padding-right:0}
.sb-item{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;overflow-wrap:anywhere;padding:10px 12px;border-radius:10px;color:#cfe0f4;font-size:14px;font-weight:700;line-height:1.25;border:1px solid transparent}
.sb-item:hover{background:rgba(255,255,255,.06)}
.sb-item.active{background:rgba(87,211,245,.13);color:#aee9fb;border-color:rgba(87,211,245,.3);box-shadow:inset 3px 0 0 var(--cyan)}
.sb-user{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 6px 0;border-top:1px solid var(--stroke-soft)}
.sb-user-txt{display:flex;flex-direction:column}
.sb-name{font-size:13px;font-weight:800;color:#fff}.sb-role{font-size:11.5px;color:var(--muted)}
.crm-main{padding:24px 26px;display:flex;flex-direction:column;gap:18px;min-width:0}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.eyebrow{display:inline-block;margin:0;font-size:12px;font-weight:800;letter-spacing:.10em;text-transform:uppercase;color:var(--cyan)}
.ph-h1{margin:6px 0 0;font-size:27px;line-height:1.1;font-weight:850;letter-spacing:-.02em;color:#fff}
.ph-sub{margin:7px 0 0;font-size:13.5px;color:var(--muted)}
.ph-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn-primary,.btn-secondary,.btn-danger-ghost,.btn-mini{font-family:inherit;cursor:pointer;text-align:center;display:inline-flex;align-items:center;justify-content:center}
.btn-primary{height:44px;border:none;border-radius:11px;font-size:14px;font-weight:850;background:linear-gradient(100deg,#5ad2f4,#28a9e6);color:var(--ink);padding:0 18px;box-shadow:0 8px 22px rgba(40,169,230,.30)}
.btn-secondary{height:44px;border:1.5px solid var(--stroke);border-radius:11px;background:rgba(255,255,255,.04);color:var(--text);font-size:13.5px;font-weight:750;padding:0 16px}
.btn-danger-ghost{height:44px;border:1.5px solid rgba(255,125,125,.4);border-radius:11px;background:rgba(255,125,125,.07);color:#ffa9a9;font-size:13.5px;font-weight:750;padding:0 16px}
.btn-mini{font-size:12px;font-weight:750;color:#cfe0f4;background:rgba(255,255,255,.04);border:1px solid var(--stroke);border-radius:8px;padding:7px 11px}
.card{background:#111d30;backdrop-filter:none;-webkit-backdrop-filter:none;border:1px solid var(--stroke);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 16px 40px rgba(0,0,0,.24);overflow:hidden}
.card-flush{padding:0;overflow-x:auto}
.card-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.card-head.pad{padding:16px 18px 0}
.card h2{margin:0;font-size:16px;font-weight:850;color:#fff;letter-spacing:-.01em}
.mut{font-size:12px;color:var(--muted)}
.kpi-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.kpi{background:#111d30;border:1px solid var(--stroke);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:5px;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden}
.kpi-label{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.kpi-val{font-size:26px;font-weight:850;color:#fff;letter-spacing:-.01em}
.c-cyan{color:var(--cyan)!important}.c-green{color:var(--green)!important}.c-red{color:var(--red)!important}.c-amber{color:var(--amber)!important}.b{font-weight:850}
.dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.attention-collapse{padding:0;overflow:hidden}.attention-collapse summary{list-style:none;cursor:pointer;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#fff;font-size:15px;font-weight:850}.attention-collapse summary::-webkit-details-marker{display:none}.attention-collapse summary::after{content:"Rozwin";height:32px;border:1px solid var(--stroke);border-radius:9px;background:rgba(255,255,255,.04);color:var(--label);font-size:12px;font-weight:800;display:inline-flex;align-items:center;padding:0 12px}.attention-collapse[open] summary{border-bottom:1px solid var(--stroke-soft)}.attention-collapse[open] summary::after{content:"Zwin"}.attention-collapse small{margin-left:auto;color:var(--muted);font-size:12px;font-weight:800}.attention-collapse .summary-actions{margin-left:auto;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.attention-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:14px 18px 18px}.collapse-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:14px}
.attn-item{border:1px solid var(--stroke-soft);border-left:3px solid var(--amber);border-radius:12px;padding:12px;background:rgba(255,255,255,.03);display:flex;flex-direction:column;gap:5px;margin:0}
.attn-top,.attn-bot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.attn-mid{font-size:12.5px;color:var(--label)}.attn-bot{font-size:12.5px}.attn-note{font-size:12px;color:var(--amber)}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.hr-table-card{max-width:100%;overflow-x:auto;overflow-y:hidden;display:block;padding-bottom:8px}
.hr-wide-table{width:max-content;min-width:100%;table-layout:auto}
.hr-leads-wide-table{min-width:1780px}
.hr-candidates-wide-table{min-width:1380px}
.hr-wide-table th,.hr-wide-table td{white-space:nowrap}
.hr-wide-table td:nth-child(3),.hr-wide-table td:nth-child(4),.hr-wide-table td:nth-child(7),.hr-wide-table td:nth-child(8),.hr-wide-table td:nth-child(13){white-space:normal}
.tbl th{padding:11px 14px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:left;background:rgba(255,255,255,.03);border-bottom:1px solid var(--stroke-soft)}
.sort-link{display:inline-flex;align-items:center;gap:5px;color:var(--muted)}
.sort-link:hover{color:var(--cyan)}
.tbl td{padding:11px 14px;border-bottom:1px solid var(--stroke-soft);vertical-align:middle;color:var(--text)}
.tbl tbody tr:hover{background:rgba(255,255,255,.035)}
.tbl tbody tr.dashboard-lead-row,.tbl tbody tr.lead-list-row{cursor:pointer}.tbl tbody tr.dashboard-lead-row:focus-visible,.tbl tbody tr.lead-list-row:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}.tbl .row-cell-link{display:block;margin:-11px -14px;padding:11px 14px;color:inherit;text-decoration:none}.tbl .row-cell-link:hover{color:inherit;text-decoration:none}
.tbl tbody tr.needs-completion-row{background:rgba(255,125,125,.045)}
.tbl tbody tr.needs-completion-row:hover{background:rgba(255,125,125,.075)}
.tbl tbody tr:last-child td{border-bottom:none}
.tbl .r{text-align:right}
.tbl tfoot td{padding:12px 14px;background:rgba(255,255,255,.03);border-top:1px solid var(--stroke-soft);font-size:13px;color:var(--label)}
.tbl .check-col{width:42px;text-align:center;padding-left:12px;padding-right:8px}.tbl .check-col input{width:16px;height:16px;margin:0;accent-color:var(--cyan)}
.cell-id{font-weight:850;color:#fff;display:block}.cell-sub{display:block;font-size:12px;color:var(--muted);margin-top:2px}.tbl a:hover .cell-id{color:var(--cyan)}.tbl a:hover .cell-sub{color:#cfe0f4;text-decoration:underline;text-decoration-color:rgba(87,211,245,.55);text-underline-offset:3px}.tbl a:hover{filter:drop-shadow(0 0 10px rgba(87,211,245,.12))}.mono{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;color:#cfe0f4}.money{font-weight:850;color:#fff;white-space:nowrap}
.dashboard-leads-table{width:100%;font-size:13.5px}
.dashboard-leads-head,.dashboard-lead-card{display:grid;grid-template-columns:1.15fr .75fr 1.45fr .8fr .8fr .9fr;align-items:center}
.dashboard-leads-head{background:rgba(255,255,255,.03);border-bottom:1px solid var(--stroke-soft);color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.dashboard-leads-head>div,.dashboard-lead-card>span{padding:11px 14px;min-width:0}
.dashboard-lead-card{color:var(--text);border-bottom:1px solid var(--stroke-soft);text-decoration:none;cursor:pointer}
.dashboard-lead-card:hover{background:rgba(255,255,255,.035);filter:drop-shadow(0 0 10px rgba(87,211,245,.12))}
.dashboard-lead-card:hover .cell-id{color:var(--cyan)}
.dashboard-lead-card:hover .cell-sub{color:#cfe0f4;text-decoration:underline;text-decoration-color:rgba(87,211,245,.55);text-underline-offset:3px}
.dashboard-lead-card:last-child{border-bottom:none}
.dashboard-lead-card:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.dashboard-leads-empty{padding:14px}
.st{display:inline-block;border-radius:999px;padding:4px 11px;font-size:11.5px;font-weight:850;border:1px solid;white-space:nowrap}
.status-button{font-family:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
.status-button:hover{filter:brightness(1.12)}
.flag-inline{margin-left:7px;vertical-align:middle;font-size:10.5px;padding:3px 8px}
.st-cyan{background:rgba(87,211,245,.13);color:#8fe1fa;border-color:rgba(87,211,245,.3)}.st-green{background:rgba(61,220,151,.13);color:#7fe9bc;border-color:rgba(61,220,151,.3)}.st-red{background:rgba(255,125,125,.12);color:#ffa9a9;border-color:rgba(255,125,125,.3)}.st-amber{background:rgba(246,192,82,.13);color:#f4cf83;border-color:rgba(246,192,82,.32)}.st-neutral{background:rgba(159,176,204,.14);color:#c7d4ea;border-color:rgba(159,176,204,.3)}.st-muted{background:rgba(255,255,255,.06);color:var(--muted);border-color:var(--stroke-soft)}
.filter-band{background:#111d30;border:1px solid var(--stroke);border-radius:14px;padding:14px;display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden}
.filter-band label{min-width:180px;flex:1}
.bulk-form{margin:0}.bulk-actions{display:flex;justify-content:flex-end;border-bottom:1px solid var(--stroke-soft);background:rgba(255,255,255,.02)}
.hr-bulk-actions{justify-content:flex-start;align-items:flex-end;gap:12px;padding:12px 14px;flex-wrap:wrap}.hr-bulk-control{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.hr-bulk-control label{min-width:220px}.hr-bulk-control button{white-space:nowrap}.hr-bulk-note{flex:1 1 280px;align-self:center}
label{display:grid;gap:7px;font-size:12.5px;font-weight:800;color:var(--label)}
input,select,textarea{font-family:inherit;font-size:14px;color:var(--text);padding:0 12px;border-radius:10px;border:1.5px solid var(--stroke);background:rgba(255,255,255,.05);width:100%}
input,select{height:42px}textarea{padding-top:10px;resize:vertical}
select{cursor:pointer;color-scheme:dark}select option{background:#101b2c;color:#eaf1fb}select option:checked{background:#2368d5;color:#fff}input[type=date]{color-scheme:dark}input::placeholder,textarea::placeholder{color:#8497b4}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--cyan);background:rgba(255,255,255,.09);box-shadow:0 0 0 3px rgba(87,211,245,.15)}
input:disabled{opacity:.6}label.req{color:#aee9fb}label.req select{border-color:rgba(87,211,245,.45)}
.input-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.field-note{min-height:16px;font-size:11.5px;font-weight:650;color:var(--muted)}
.check-field{margin:0;border:1px solid var(--stroke);border-radius:12px;background:rgba(255,255,255,.035);padding:10px 12px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.check-field legend{padding:0 4px;font-size:12.5px;font-weight:800;color:var(--label)}
.check-field label{display:flex;grid-auto-flow:column;align-items:center;gap:7px;color:var(--text)}
.check-field input[type=checkbox],.check-field input[type=radio]{width:16px;height:16px;margin:0;accent-color:var(--cyan)}
.form-subhead{border-top:1px solid var(--stroke-soft);padding-top:12px;display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.form-subhead h3{margin:0;font-size:14px;color:#fff}
.autocomplete-wrap{position:relative}
.suggestions{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;background:#101b2c;border:1px solid var(--stroke);border-radius:12px;box-shadow:0 18px 36px rgba(0,0,0,.35);overflow:hidden}
.suggestions.open{display:block}
.suggestion-item{width:100%;border:0;background:transparent;color:var(--text);padding:10px 12px;text-align:left;display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;font-family:inherit}
.suggestion-item:hover{background:rgba(87,211,245,.12)}
.suggestion-item span{font-weight:800}.suggestion-item small,.suggestion-empty{color:var(--muted);font-size:12px}.suggestion-empty{padding:10px 12px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.lead-work-grid{grid-template-columns:minmax(0,1fr)}
.detail-main,.detail-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.lead-summary-card{gap:14px}
.lead-summary-grid{display:grid;grid-template-columns:1.05fr 1.35fr .75fr;gap:18px;align-items:start}
.lead-summary-group{min-width:0}
.lead-summary-group h3{margin:0 0 12px;font-size:15px;color:#fff}
.lead-details-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.lead-details-form label:first-child{grid-column:1/-1}
.lead-details-form button{justify-self:start}
.inline-link{color:#aee9fb;font-weight:850}
.inline-link:hover{color:#fff}
.kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kv-col{display:flex;flex-direction:column;gap:10px}.kv{display:flex;flex-direction:column;gap:2px}.kv-k{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.kv-v{font-size:14px;font-weight:650;color:#fff}.note-p{margin:0;font-size:13.5px;line-height:1.55;color:var(--label)}
.form-col{display:flex;flex-direction:column;gap:13px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.wide{grid-column:1/-1}.note-list{display:flex;flex-direction:column;gap:10px}.note-item{border:1px solid var(--stroke-soft);border-radius:12px;background:rgba(255,255,255,.035);padding:12px}.note-meta{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:7px;color:var(--muted);font-size:12px}.note-meta strong{color:#fff;font-size:13px}.note-item p{margin:0;color:var(--label);font-size:13.5px;line-height:1.55;white-space:pre-wrap}
.sum-grid{display:grid;grid-template-columns:1fr;gap:9px}.stat{background:rgba(255,255,255,.04);border:1px solid var(--stroke-soft);border-radius:12px;padding:11px 12px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}.stat-label{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.stat-val{font-size:18px;font-weight:850;color:#fff}
.offer-detail-layout{display:flex;flex-direction:column;gap:16px}
.offer-panels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.offer-panel{min-height:100%;gap:14px}
.offer-panel-wide{grid-column:1/-1}
.offer-panel .kv-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 22px}
.document-list{display:grid;gap:9px}
.document-item{display:grid;gap:3px;border:1px solid var(--stroke-soft);border-radius:12px;background:rgba(255,255,255,.035);padding:10px 12px}
.document-item span{font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--muted)}
.document-item strong{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;line-height:1.35;color:var(--text);overflow-wrap:anywhere}
.document-item:hover{border-color:rgba(87,211,245,.42);background:rgba(87,211,245,.08)}
.callout{border:1px solid rgba(87,211,245,.35);background:rgba(87,211,245,.09);color:#bfeafc;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.5}.callout b{color:#fff}.callout-mut{border-color:var(--stroke-soft);background:rgba(255,255,255,.03);color:var(--muted)}.m16{margin:0 16px 16px}
.callout-danger{border-color:rgba(255,125,125,.38);background:rgba(255,125,125,.08);color:#ffd1d1}
.stage-flow-card{gap:14px}.stage-flow{display:flex;gap:10px;align-items:stretch;overflow-x:auto;padding-bottom:3px}.stage-flow-step{position:relative;min-width:150px;flex:1;margin:0}.stage-flow-step:not(:last-child)::after{content:"";position:absolute;right:-9px;top:28px;width:8px;height:2px;background:rgba(159,176,204,.28)}.stage-button,.stage-flow-lost{width:100%;min-height:74px;border:1px solid var(--stroke-soft);border-radius:14px;background:rgba(255,255,255,.035);color:var(--text);font-family:inherit;display:flex;flex-direction:column;gap:7px;align-items:flex-start;justify-content:center;padding:12px;text-align:left}.stage-button{cursor:pointer}.stage-button:hover,.stage-flow-step.active .stage-button{border-color:rgba(87,211,245,.55);background:rgba(87,211,245,.11);box-shadow:0 10px 24px rgba(87,211,245,.08)}.stage-dot{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(159,176,204,.16);border:1px solid rgba(159,176,204,.28);color:#d9e5f8;font-size:11px;font-weight:850}.stage-label{font-size:13px;font-weight:850;color:#fff}.stage-flow-step.active .stage-dot{background:var(--cyan);border-color:var(--cyan);color:#05101f}.stage-flow-lost{border-color:rgba(255,125,125,.26);background:rgba(255,125,125,.045)}.stage-flow-lost.active{border-color:rgba(255,125,125,.55);background:rgba(255,125,125,.11)}.stage-flow-lost select{height:36px;font-size:12.5px;padding:0 9px}.stage-action{height:34px;border-radius:9px;border:1px solid rgba(255,125,125,.45);background:rgba(255,125,125,.1);color:#ffa9a9;font-family:inherit;font-weight:850;padding:0 12px;cursor:pointer}.stage-action:hover{background:rgba(255,125,125,.16)}
.table-wrap{overflow-x:auto;border:1px solid var(--stroke-soft);border-radius:12px}
.tbl-edit{min-width:760px}.tbl-edit td{padding:8px}.tbl-edit th{padding:11px 8px}.in-cell{height:38px;padding:0 8px;border-radius:8px;font-size:13px}.in-cell.r{text-align:right;max-width:86px}td .in-cell{width:auto;min-width:64px}td select.in-cell{min-width:84px}
.dict-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.dict-nav{padding:10px;gap:2px}.dict-item{display:block;padding:9px 12px;border-radius:9px;color:#cfe0f4;font-size:13px;font-weight:800}.dict-item:hover{background:rgba(255,255,255,.06)}.dict-item.active{background:rgba(87,211,245,.13);color:#aee9fb;box-shadow:inset 3px 0 0 var(--cyan)}.inline-edit{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:8px;align-items:center}.inline-edit input{height:36px}.dict-add{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:12px;align-items:end}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-action{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-scroll{max-width:100%;overflow-x:auto}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-top:1px solid var(--stroke-soft)}.page-indicator{display:inline-flex;align-items:center;min-height:36px;border:1px solid var(--stroke-soft);border-radius:10px;background:rgba(255,255,255,.035);color:var(--label);font-size:12.5px;font-weight:800;padding:0 12px}.empty-state{padding:18px;color:var(--muted);font-size:13.5px}.error-box{border:1px solid rgba(255,125,125,.35);background:rgba(255,125,125,.09);color:#ffa9a9;border-radius:12px;padding:10px 12px;font-size:13px}.user-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.user-edit-card{background:rgba(255,255,255,.035);border:1px solid var(--stroke-soft);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:11px}.user-edit-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.user-edit-title strong{color:#fff;font-size:14px}.user-edit-title span{color:var(--muted);font-size:12px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.inline-actions form,.inline-form{display:inline-flex;margin:0}
.login-screen{position:relative;z-index:2;min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(440px,100%);gap:18px}.sb-user form{margin:0}
.zone-chip{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid rgba(87,211,245,.28);border-radius:10px;background:rgba(87,211,245,.09);color:#d9f4ff;text-decoration:none}
.zone-chip span{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.zone-chip strong{font-size:13px;color:#fff}
.zone-chip:hover{background:rgba(87,211,245,.14);border-color:rgba(87,211,245,.42)}
.zone-screen{position:relative;z-index:2;min-height:100vh;display:grid;place-items:center;padding:24px}
.zone-panel{width:min(980px,100%);display:flex;flex-direction:column;gap:22px}
.zone-brand{align-items:center;text-align:center}
.zone-head{text-align:center}
.zone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.zone-card{margin:0}
.zone-card button{width:100%;min-height:190px;border:1px solid var(--stroke);border-radius:16px;background:#111d30;color:var(--text);font-family:inherit;text-align:center;padding:22px;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 16px 40px rgba(0,0,0,.24)}
.zone-card button:hover,.zone-card.active button{border-color:rgba(87,211,245,.5);background:#13243a;box-shadow:0 18px 42px rgba(40,169,230,.14)}
.project-card{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.project-card.is-open{border-color:rgba(61,220,151,.9);background:linear-gradient(135deg,rgba(18,125,85,.62),rgba(17,29,48,.96) 72%);box-shadow:inset 0 0 0 1px rgba(61,220,151,.42),0 16px 40px rgba(61,220,151,.2)}
.project-card.is-open h2{color:#e7fff5}
.project-card.is-open .mut{color:#c7f7e2}
.zone-name{font-size:24px;font-weight:900;color:#fff}
.zone-sub{font-size:13.5px;line-height:1.5;color:var(--muted);min-height:62px}
.zone-action{display:inline-flex;align-items:center;justify-content:center;align-self:center;min-width:132px;border-radius:10px;background:linear-gradient(100deg,#5ad2f4,#28a9e6);color:var(--ink);font-size:13px;font-weight:900;padding:10px 16px}
@media (max-width:860px){.zone-grid{grid-template-columns:1fr}.zone-card button{min-height:160px}.zone-sub{min-height:0}.zone-chip{width:100%;box-sizing:border-box}.zone-screen{align-items:start}}
@media (max-width:1150px){.kpi-row{grid-template-columns:repeat(3,1fr)}.dash-grid,.detail-grid,.dict-grid,.lead-summary-grid{grid-template-columns:1fr}}
@media (max-width:860px){.crm-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;overflow:visible;flex-direction:row;align-items:center;gap:12px;padding:12px 14px;border-right:none;border-bottom:1px solid var(--stroke-soft);flex-wrap:wrap}.sb-brand{gap:3px}.sb-logo-img{width:120px}.sb-logo-text{font-size:24px}.sb-tag,.sb-sub{display:none}.sb-nav{flex-direction:row;flex-wrap:wrap;gap:4px}.sb-item{padding:8px 10px;font-size:13px}.sb-user{margin-top:0;margin-left:auto;border-top:none;padding:0}.crm-main{padding:16px 14px}.kpi-row{grid-template-columns:repeat(2,1fr)}.kv-grid,.grid-form,.form-row,.two-col,.user-edit-grid,.lead-details-form,.offer-panels-grid,.offer-panel .kv-grid{grid-template-columns:1fr}.filter-band label{min-width:100%}.tbl,.dashboard-leads-table{font-size:12.5px}.tbl th,.tbl td,.dashboard-leads-head>div,.dashboard-lead-card>span{padding:9px 10px}.dashboard-leads-head,.dashboard-lead-card{grid-template-columns:1.1fr .75fr 1.35fr .8fr .8fr .9fr}.ph-h1{font-size:22px}.ph-actions{width:100%}.ph-actions .btn-primary,.ph-actions .btn-secondary,.ph-actions .btn-danger-ghost{flex:1}}

/* Lead stage flow */
.stage-flow-card{gap:14px}
.stage-flow-card>summary{justify-content:flex-start}
.stage-flow-card>summary .summary-actions{margin-left:auto}
.stage-flow-card .stage-flow{display:flex;flex-direction:row;gap:10px;align-items:stretch;overflow-x:auto;padding:2px 0 4px}
.stage-flow-card .stage-flow-step{position:relative;display:flex;min-width:150px;flex:1 1 150px;margin:0}
.stage-flow-card .stage-flow-step:not(:last-child)::after{content:"";position:absolute;right:-9px;top:36px;width:8px;height:2px;background:rgba(159,176,204,.3)}
.stage-flow-card .stage-button,.stage-flow-card .stage-flow-lost{appearance:none;-webkit-appearance:none;width:100%;min-height:78px;border:1px solid var(--stroke-soft);border-radius:14px;background:rgba(255,255,255,.04);color:var(--text);font-family:inherit;display:flex;flex-direction:column;gap:7px;align-items:flex-start;justify-content:center;padding:12px;text-align:left;box-shadow:none}
.stage-flow-card .stage-button{cursor:pointer}
.stage-flow-card .stage-button:hover,.stage-flow-card .stage-flow-step.active .stage-button{border-color:rgba(87,211,245,.58);background:rgba(87,211,245,.12);box-shadow:0 10px 24px rgba(87,211,245,.08)}
.stage-flow-card .stage-dot{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(159,176,204,.16);border:1px solid rgba(159,176,204,.28);color:#d9e5f8;font-size:11px;font-weight:850}
.stage-flow-card .stage-label{font-size:13px;font-weight:850;color:#fff}
.stage-flow-card .stage-flow-step.active .stage-dot{background:var(--cyan);border-color:var(--cyan);color:#05101f}
.stage-flow-card .stage-flow-lost{border-color:rgba(255,125,125,.28);background:rgba(255,125,125,.05)}
.stage-flow-card .stage-flow-lost.active{border-color:rgba(255,125,125,.58);background:rgba(255,125,125,.12)}
.stage-flow-card .stage-flow-lost select{height:36px;font-size:12.5px;padding:0 9px}
.stage-flow-card .stage-action{height:34px;border-radius:9px;border:1px solid rgba(255,125,125,.45);background:rgba(255,125,125,.1);color:#ffa9a9;font-family:inherit;font-weight:850;padding:0 12px;cursor:pointer}
.stage-flow-card .stage-action:hover{background:rgba(255,125,125,.16)}
@media (max-width:860px){.stage-flow-card .stage-flow-step{min-width:135px;flex-basis:135px}.stage-flow-card .stage-button,.stage-flow-card .stage-flow-lost{min-height:72px}}

/* Monday-like lead stage bar */
.stage-flow-card .stage-flow-bar{display:flex;align-items:stretch;gap:0;overflow-x:auto;padding:4px 2px 6px}
.stage-flow-card .stage-segment-form{display:flex;flex:1 1 145px;min-width:140px;margin:0}
.stage-flow-card .stage-segment{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin-left:-10px;padding:0 18px;border:0;border-right:2px solid rgba(2,10,25,.9);background:#1d2a3f;color:#d8e4f7;font-family:inherit;font-size:12.5px;font-weight:850;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,14px 50%);transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.stage-flow-card .stage-segment-form:first-child .stage-segment{margin-left:0;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%);border-radius:9px 0 0 9px}
.stage-flow-card .stage-segment:hover{background:#24476a;color:#fff;box-shadow:0 10px 24px rgba(87,211,245,.14)}
.stage-flow-card .stage-segment.done{background:#087f55;color:#ecfff7}
.stage-flow-card .stage-segment.active{background:linear-gradient(180deg,#57d3f5,#2db7e6);color:#031321;box-shadow:0 12px 28px rgba(87,211,245,.28)}
.stage-flow-card .stage-segment.hr-stage-new{background:#7b4a13;color:#fff2d6}
.stage-flow-card .stage-segment.hr-stage-new:hover,.stage-flow-card .stage-segment.hr-stage-new.active{background:linear-gradient(180deg,#ffb24a,#f08a22);color:#201000;box-shadow:0 12px 28px rgba(255,178,74,.22)}
.stage-flow-card .stage-segment.hr-stage-mid{background:#174d68;color:#e5f8ff}
.stage-flow-card .stage-segment.hr-stage-mid:hover,.stage-flow-card .stage-segment.hr-stage-mid.active{background:linear-gradient(180deg,#57d3f5,#2db7e6);color:#031321;box-shadow:0 12px 28px rgba(87,211,245,.24)}
.stage-flow-card .stage-segment.hr-stage-qualified{background:#087f55;color:#ecfff7}
.stage-flow-card .stage-segment.hr-stage-qualified:hover,.stage-flow-card .stage-segment.hr-stage-qualified.active{background:linear-gradient(180deg,#37e5a1,#15a979);color:#031a13;box-shadow:0 12px 28px rgba(55,229,161,.22)}
.stage-flow-card .stage-segment.hr-stage-attended{background:#4c3a8f;color:#f1ecff}
.stage-flow-card .stage-segment.hr-stage-attended:hover,.stage-flow-card .stage-segment.hr-stage-attended.active{background:linear-gradient(180deg,#c4b5fd,#8b5cf6);color:#140924;box-shadow:0 12px 28px rgba(167,139,250,.24)}
.stage-flow-card .stage-segment.hr-stage-won{background:#0b8764;color:#ecfff7}
.stage-flow-card .stage-segment.hr-stage-won:hover,.stage-flow-card .stage-segment.hr-stage-won.active{background:linear-gradient(180deg,#5af0bd,#18b986);color:#031a13;box-shadow:0 12px 28px rgba(90,240,189,.22)}
.stage-flow-card .stage-segment.lost{flex:1 1 145px;min-width:140px;background:#3a2330;color:#ffd1d1;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,14px 50%);border-radius:0 9px 9px 0;cursor:default}
.stage-flow-card .stage-segment.lost:hover{background:#3a2330;color:#ffd1d1;box-shadow:none}
.stage-flow-card .stage-segment.lost.active{background:#c24155;color:#fff;box-shadow:0 12px 28px rgba(255,125,125,.2)}
.stage-flow-card .stage-flow-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12.5px}
.stage-flow-card .stage-flow-meta span{border:1px solid var(--stroke-soft);background:rgba(255,255,255,.035);border-radius:999px;padding:5px 10px}
.stage-flow-card .stage-flow-meta b{color:#fff}
.stage-flow-card .stage-lost-panel{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;border-top:1px solid var(--stroke-soft);padding-top:12px}
.stage-flow-card.stage-flow-analytics .stage-flow-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;overflow:visible;padding:4px 2px 6px}
.stage-flow-card.stage-flow-analytics .stage-segment-form{display:flex;min-width:0;flex:initial;margin:0}
.stage-flow-card.stage-flow-analytics .stage-segment{cursor:default;gap:4px;flex-direction:column;min-height:58px;margin-left:0;padding:0 16px;border-right:0;clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,14px 50%)}
.stage-flow-card.stage-flow-analytics .stage-segment-form:first-child .stage-segment{clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%);border-radius:9px 0 0 9px}
.stage-flow-card.stage-flow-analytics .stage-segment-form:last-child .stage-segment{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,14px 50%);border-radius:0 9px 9px 0}
.stage-flow-card.stage-flow-analytics .stage-segment:hover{box-shadow:none}
.stage-flow-card.stage-flow-analytics .stage-segment-label{font-size:12px;font-weight:850;line-height:1.15}
.stage-flow-card.stage-flow-analytics .stage-segment-count{font-size:20px;line-height:1;color:#fff}
.stage-flow-card.stage-flow-analytics .stage-segment:not(.done):not(.lost):not(.hr-stage-new):not(.hr-stage-mid):not(.hr-stage-qualified):not(.hr-stage-attended):not(.hr-stage-won){background:#1d2a3f;color:#d8e4f7}
.stage-flow-card.stage-flow-analytics .stage-segment.hr-stage-new{background:#7b4a13!important;color:#fff2d6!important}
.stage-flow-card.stage-flow-analytics .stage-segment.hr-stage-mid{background:#174d68!important;color:#e5f8ff!important}
.stage-flow-card.stage-flow-analytics .stage-segment.hr-stage-qualified{background:#087f55!important;color:#ecfff7!important}
.stage-flow-card.stage-flow-analytics .stage-segment.hr-stage-attended{background:#4c3a8f!important;color:#f1ecff!important}
.stage-flow-card.stage-flow-analytics .stage-segment.hr-stage-won{background:#0b8764!important;color:#ecfff7!important}
.stage-flow-card.stage-flow-analytics .stage-segment.lost{display:flex}
@media (max-width:860px){.stage-flow-card .stage-flow-bar{padding-left:10px}.stage-flow-card .stage-segment-form,.stage-flow-card .stage-segment.lost{min-width:150px;flex-basis:150px}.stage-flow-card .stage-lost-panel{grid-template-columns:1fr}}
@media (max-width:860px){.stage-flow-card.stage-flow-analytics .stage-flow-bar{grid-template-columns:repeat(6,minmax(150px,1fr));overflow-x:auto}.stage-flow-card.stage-flow-analytics .stage-segment-form{min-width:0;flex:initial}}

.kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.section-head.padded{padding:16px 18px}
.hr-recent-head{display:flex;align-items:flex-start;justify-content:flex-start;gap:10px;flex-direction:column}
.hr-recent-head .btn-secondary{margin-left:0}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.info-grid span{display:block;color:var(--muted);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.info-grid strong{display:block;margin-top:4px;color:var(--text);font-size:15px}
.compact-form{margin-top:12px}
.notes-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.note-form .btn-primary{margin-top:8px}
.note-entry{border:1px solid var(--stroke-soft);border-radius:12px;background:rgba(255,255,255,.035);padding:13px 15px}
.note-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin-bottom:8px}
.note-meta strong{color:var(--text)}
.note-entry p{margin:0;color:var(--text);line-height:1.5}
.stage-flow .flow-step{border:1px solid var(--stroke-soft);border-radius:14px;background:rgba(255,255,255,.035);padding:14px;min-width:140px;color:var(--text);display:flex;flex-direction:column;gap:8px}
.stage-flow .flow-step span{font-weight:850}
.stage-flow .flow-step strong{font-size:24px;color:var(--cyan)}
.candidate-summary-table td{vertical-align:top;line-height:1.35}
.candidate-summary-table th,.candidate-summary-table td{white-space:normal}
.candidate-summary-table td:nth-child(2),.candidate-summary-table td:nth-child(4){word-break:break-word}
.tbl tbody tr td.hr-stage-cell{position:relative;overflow:hidden;text-align:center!important;vertical-align:middle!important;padding-top:14px;padding-bottom:14px;background-clip:padding-box}
.tbl td.hr-stage-cell::before{display:none}
.tbl tbody tr td.hr-stage-cell.hr-stage-new{background:linear-gradient(135deg,rgba(255,178,74,.34),rgba(17,29,48,.88) 72%)!important;box-shadow:inset 0 0 0 1px rgba(255,178,74,.22)}
.tbl tbody tr td.hr-stage-cell.hr-stage-first{background:linear-gradient(135deg,rgba(244,114,182,.34),rgba(17,29,48,.88) 72%)!important;box-shadow:inset 0 0 0 1px rgba(244,114,182,.24)}
.tbl tbody tr td.hr-stage-cell.hr-stage-second,.tbl tbody tr td.hr-stage-cell.hr-stage-mid{background:linear-gradient(135deg,rgba(87,211,245,.34),rgba(17,29,48,.88) 72%)!important;box-shadow:inset 0 0 0 1px rgba(87,211,245,.22)}
.tbl tbody tr td.hr-stage-cell.hr-stage-third,.tbl tbody tr td.hr-stage-cell.hr-stage-attended{background:linear-gradient(135deg,rgba(167,139,250,.36),rgba(17,29,48,.88) 72%)!important;box-shadow:inset 0 0 0 1px rgba(167,139,250,.26)}
.tbl tbody tr td.hr-stage-cell.hr-stage-qualified,.tbl tbody tr td.hr-stage-cell.hr-stage-won{background:linear-gradient(135deg,rgba(61,220,151,.42),rgba(17,29,48,.92) 72%)!important;box-shadow:inset 0 0 0 1px rgba(61,220,151,.34),0 8px 22px rgba(61,220,151,.08)}
.tbl tbody tr td.hr-stage-cell.hr-stage-lost{background:linear-gradient(135deg,rgba(227,91,106,.34),rgba(17,29,48,.88) 72%)!important;box-shadow:inset 0 0 0 1px rgba(255,154,164,.22)}
.tbl tbody tr td.hr-stage-cell .hr-stage-badge{display:inline-flex!important;align-items:center;justify-content:center;min-width:124px;min-height:26px;margin:0 auto;border-color:transparent!important;color:#fff!important;box-shadow:none;text-align:center;line-height:1.15}
.tbl tbody tr td.hr-stage-cell.hr-stage-new .hr-stage-badge{background:linear-gradient(180deg,#ffbc5f,#f08a22)!important;color:#201000!important;border-color:#ffcf84!important}
.tbl tbody tr td.hr-stage-cell.hr-stage-first .hr-stage-badge{background:linear-gradient(180deg,#ff8ac6,#ec4899)!important;color:#230817!important;border-color:#f9a8d4!important}
.tbl tbody tr td.hr-stage-cell.hr-stage-second .hr-stage-badge,.tbl tbody tr td.hr-stage-cell.hr-stage-mid .hr-stage-badge{background:linear-gradient(180deg,#6ee7ff,#2db7e6)!important;color:#031321!important;border-color:#9be9ff!important}
.tbl tbody tr td.hr-stage-cell.hr-stage-third .hr-stage-badge,.tbl tbody tr td.hr-stage-cell.hr-stage-attended .hr-stage-badge{background:linear-gradient(180deg,#c4b5fd,#8b5cf6)!important;color:#140924!important;border-color:#ddd6fe!important}
.tbl tbody tr td.hr-stage-cell.hr-stage-qualified .hr-stage-badge,.tbl tbody tr td.hr-stage-cell.hr-stage-won .hr-stage-badge{background:linear-gradient(180deg,#48f0ad,#15a979)!important;color:#031a13!important;border-color:#9af7cd!important}
.tbl tbody tr td.hr-stage-cell.hr-stage-lost .hr-stage-badge{background:linear-gradient(180deg,#ef7280,#c24155)!important;color:#fff!important;border-color:#ffb0b8!important}
@media (max-width:980px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.info-grid{grid-template-columns:1fr}}

/* HR lead detail stage bar */
.stage-flow-card .stage-flow-bar[style*="--stage-count"]{
  display:grid;
  grid-template-columns:repeat(var(--stage-count),minmax(0,1fr));
  gap:0;
  overflow:visible;
  padding:4px 0 8px;
}
.stage-flow-card .stage-flow-bar[style*="--stage-count"] .stage-segment-form{
  min-width:0;
  flex:initial;
}
.stage-flow-card .stage-flow-bar[style*="--stage-count"] .stage-segment{
  min-width:0;
  width:100%;
  margin-left:0;
  border-right:0;
}
.stage-flow-card .stage-flow-bar[style*="--stage-count"] > .stage-segment.lost{
  min-width:0;
  flex:initial;
  width:100%;
}
.hr-disqualify-form{
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  column-gap:14px;
}
.hr-disqualify-form .form-actions{
  display:flex;
  align-items:flex-end;
}
.hr-disqualify-form .btn-danger-ghost{
  height:43px;
  min-width:230px;
}
.hr-activity-form{
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr) auto;
  align-items:end;
}
.hr-activity-form .form-actions{
  display:flex;
  align-items:flex-end;
}
.hr-activity-form .btn-primary{
  height:44px;
  white-space:nowrap;
}
.service-activity-form{
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr) auto;
  align-items:end;
}
.service-activity-form .form-actions{
  display:flex;
  align-items:flex-end;
}
.service-activity-form .btn-primary{
  height:44px;
  white-space:nowrap;
}
.service-activity-form input[readonly]{
  opacity:1;
  color:var(--text);
}

/* Theme switcher */
.theme-toggle{font-family:inherit;cursor:pointer;border:1px solid var(--stroke);border-radius:999px;background:rgba(255,255,255,.04);color:var(--label);padding:5px 8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:98px;height:34px}
.theme-toggle:hover{border-color:rgba(87,211,245,.36);background:rgba(87,211,245,.08)}
.theme-toggle-track{position:relative;width:34px;height:18px;border-radius:999px;background:rgba(159,176,204,.22);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);flex:0 0 auto}
.theme-toggle-knob{position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:999px;background:#eaf1fb;box-shadow:0 1px 4px rgba(0,0,0,.35);transition:transform .18s ease,background .18s ease}
.theme-toggle-text{font-size:11.5px;font-weight:850;color:var(--text);line-height:1}
.theme-toggle[aria-pressed="true"] .theme-toggle-track{background:rgba(4,151,201,.25)}
.theme-toggle[aria-pressed="true"] .theme-toggle-knob{transform:translateX(16px);background:var(--cyan)}
.sb-user{flex-wrap:wrap}
.sb-user .theme-toggle{order:2}.sb-user form{order:3}

/* Light theme */
[data-theme="light"]{--cyan:#058fbd;--cyan-2:#037cab;--green:#07966b;--red:#d84d61;--amber:#c77a12;--glass:rgba(245,250,254,.86);--stroke:rgba(26,55,93,.18);--stroke-soft:rgba(26,55,93,.11);--text:#13243a;--muted:#607189;--label:#344861;--ink:#031626}
[data-theme="light"] body{background:#e5eef7;color:var(--text)}
[data-theme="light"] .mesh{background:radial-gradient(760px 520px at 10% 0%,rgba(70,164,221,.22) 0%,rgba(70,164,221,0) 62%),radial-gradient(820px 640px at 92% 105%,rgba(56,189,248,.14) 0%,rgba(56,189,248,0) 58%),linear-gradient(160deg,#edf5fb,#dce9f3)}
[data-theme="light"] .grain{opacity:.12;mix-blend-mode:multiply}
[data-theme="light"] .sidebar{background:linear-gradient(180deg,#d8e8f5,#c9ddec);border-right-color:rgba(26,55,93,.14);box-shadow:8px 0 24px rgba(19,36,58,.07)}
[data-theme="light"] .sb-logo-img,[data-theme="light"] .login-logo-img{filter:brightness(0) saturate(100%) invert(15%) sepia(35%) saturate(1420%) hue-rotate(178deg) brightness(88%) contrast(95%);opacity:.96}
[data-theme="light"] .sb-tag,[data-theme="light"] .sb-sub,[data-theme="light"] .sb-role{color:#62738a}
[data-theme="light"] .sb-name,[data-theme="light"] .ph-h1,[data-theme="light"] .card h2,[data-theme="light"] .kpi-val,[data-theme="light"] .cell-id,[data-theme="light"] .money,[data-theme="light"] .form-subhead h3,[data-theme="light"] .stage-label{color:#0f2034}
[data-theme="light"] .sb-item{color:#334862}
[data-theme="light"] .sb-item:hover{background:rgba(255,255,255,.42)}
[data-theme="light"] .sb-item.active{background:#dff4fb;color:#075f82;border-color:rgba(4,151,201,.26);box-shadow:inset 3px 0 0 var(--cyan)}
[data-theme="light"] .card,[data-theme="light"] .kpi,[data-theme="light"] .filter-band,[data-theme="light"] .attention-collapse,[data-theme="light"] .callout,[data-theme="light"] .note-item,[data-theme="light"] .stat,[data-theme="light"] .zone-chip{background:rgba(245,250,254,.86);border-color:var(--stroke);box-shadow:0 14px 34px rgba(19,36,58,.08)}
[data-theme="light"] .callout{background:#eef8fc;color:#18314f;border-color:rgba(4,151,201,.24)}
[data-theme="light"] .callout b{color:#0f2034}
[data-theme="light"] .callout-mut{background:#f8fbfe;color:#607189;border-color:var(--stroke-soft)}
[data-theme="light"] .callout-danger{background:#fff4f5;color:#9f2638;border-color:rgba(216,77,97,.28)}
[data-theme="light"] .card-flush{background:rgba(242,248,253,.90)}
[data-theme="light"] .tbl th,[data-theme="light"] .tbl tfoot td,[data-theme="light"] .bulk-actions{background:#dce8f3;color:#5b6d85}
[data-theme="light"] .tbl th a,[data-theme="light"] .sort-link{color:#4b617a}
[data-theme="light"] .tbl td{color:#172942}
[data-theme="light"] .tbl tbody tr:hover{background:#eaf3fa}
[data-theme="light"] .dashboard-leads-head{background:#dce8f3;color:#5b6d85}
[data-theme="light"] .dashboard-lead-card{color:#172942}
[data-theme="light"] .dashboard-lead-card:hover{background:#eaf3fa}
[data-theme="light"] .dashboard-lead-card .cell-id{color:#13243a}
[data-theme="light"] .source-inline-form select{background:#f8fbff;color:#172942;border-color:#bfd0df}
.source-inline-form{width:100%;min-width:140px;display:block}
.source-inline-form select{display:block;width:100%;height:34px;min-height:34px;padding:0 28px 0 10px;font-size:12.5px;font-weight:800;line-height:34px;white-space:nowrap}
.source-inline-form.is-saving select{opacity:.72;cursor:wait}
.source-inline-form.is-saved select{border-color:rgba(0,214,143,.72);box-shadow:0 0 0 3px rgba(0,214,143,.14)}
.source-inline-form.is-error select{border-color:rgba(255,125,125,.78);box-shadow:0 0 0 3px rgba(255,125,125,.16)}
.hr-wide-table .source-inline-form{min-width:136px}
[data-theme="light"] .tbl tbody tr.needs-completion-row{background:#fff0f2}
[data-theme="light"] .tbl tbody tr.needs-completion-row:hover{background:#ffe7eb}
[data-theme="light"] .cell-sub,[data-theme="light"] .mono,[data-theme="light"] .mut,[data-theme="light"] .ph-sub{color:#66778e}
[data-theme="light"] label,[data-theme="light"] .check-field legend,[data-theme="light"] .field-note,[data-theme="light"] .attention-collapse small,[data-theme="light"] .suggestion-item small,[data-theme="light"] .suggestion-empty,[data-theme="light"] .attn-mid,[data-theme="light"] .attn-bot,[data-theme="light"] .note-p,[data-theme="light"] .note-item p,[data-theme="light"] .page-indicator,[data-theme="light"] .empty-state{color:#344861}
[data-theme="light"] label.req{color:#075f82}
[data-theme="light"] .eyebrow,[data-theme="light"] .c-cyan{color:#057ca5!important}
[data-theme="light"] .kv-v,[data-theme="light"] .stat-val,[data-theme="light"] .note-meta strong,[data-theme="light"] .document-item strong{color:#102033}
[data-theme="light"] .kv-k,[data-theme="light"] .stat-label,[data-theme="light"] .document-item span{color:#536982}
[data-theme="light"] .document-item{background:#f8fbfe;border-color:rgba(26,55,93,.13)}
[data-theme="light"] .document-item:hover{background:#edf8fc;border-color:rgba(4,151,201,.28)}
[data-theme="light"] .tbl a:hover .cell-sub{color:#0b6588}
[data-theme="light"] input,[data-theme="light"] select,[data-theme="light"] textarea{background:#f8fbfe;color:#13243a;border-color:rgba(26,55,93,.18)}
[data-theme="light"] input:focus,[data-theme="light"] select:focus,[data-theme="light"] textarea:focus{background:#fff;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(4,151,201,.14)}
[data-theme="light"] input::placeholder,[data-theme="light"] textarea::placeholder{color:#8898ac}
[data-theme="light"] select{color-scheme:light}
[data-theme="light"] select option{background:#fff;color:#13243a}
[data-theme="light"] input[type=date]{color-scheme:light}
[data-theme="light"] .btn-secondary,[data-theme="light"] .btn-mini,[data-theme="light"] .theme-toggle{background:#f8fbfe;color:#263b55;border-color:rgba(26,55,93,.18)}
[data-theme="light"] .btn-secondary:hover,[data-theme="light"] .btn-mini:hover,[data-theme="light"] .theme-toggle:hover{background:#edf8fc;border-color:rgba(4,151,201,.28)}
[data-theme="light"] .btn-danger-ghost{background:#fff4f5;color:#be344a;border-color:rgba(216,77,97,.32)}
[data-theme="light"] .check-field,[data-theme="light"] .suggestions,[data-theme="light"] .attn-item,[data-theme="light"] .stage-button,[data-theme="light"] .stage-flow-lost,[data-theme="light"] .dictionary-panel,[data-theme="light"] .dict-nav{background:#f8fbfe;border-color:var(--stroke)}
[data-theme="light"] .suggestions{box-shadow:0 18px 32px rgba(19,36,58,.16)}
[data-theme="light"] .suggestion-item{color:#13243a}
[data-theme="light"] .suggestion-item:hover,[data-theme="light"] .dict-item:hover{background:#eef7fc}
[data-theme="light"] .dict-item{color:#334862}
[data-theme="light"] .dict-item.active{background:#dff4fb;color:#075f82}
[data-theme="light"] .attention-collapse summary{color:#102033}
[data-theme="light"] .attention-collapse summary::after{background:#fff;color:#344861}
[data-theme="light"] .theme-toggle-text{color:#263b55}
[data-theme="light"] .st-neutral,[data-theme="light"] .st-muted{background:#eef3f8;color:#435670;border-color:rgba(26,55,93,.16)}
[data-theme="light"] .st-cyan{background:#dff4fb;color:#075f82;border-color:rgba(4,151,201,.30)}
[data-theme="light"] .st-green{background:#dff8ec;color:#087957;border-color:rgba(7,150,107,.28)}
[data-theme="light"] .st-red{background:#fff0f2;color:#bf354a;border-color:rgba(216,77,97,.28)}
[data-theme="light"] .st-amber{background:#fff3d8;color:#95610b;border-color:rgba(199,122,18,.28)}
[data-theme="light"] .stage-button:hover,[data-theme="light"] .stage-flow-step.active .stage-button{background:#e6f7fc;border-color:rgba(4,151,201,.34)}
[data-theme="light"] .stage-dot{background:#eef3f8;color:#42556e;border-color:rgba(26,55,93,.14)}
[data-theme="light"] .project-card .mut{color:#536982}
[data-theme="light"] .project-card.is-open{background:linear-gradient(145deg,rgba(61,220,151,.16),rgba(245,250,254,.92));border-color:rgba(7,150,107,.36);box-shadow:0 0 0 1px rgba(7,150,107,.14),0 18px 36px rgba(7,150,107,.10)}
[data-theme="light"] .project-card.is-open h2{color:#0f2034}
[data-theme="light"] .project-card.is-open .mut{color:#245b47}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-new{background:linear-gradient(135deg,rgba(255,178,74,.30),rgba(255,255,255,.88) 72%)!important}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-first{background:linear-gradient(135deg,rgba(244,114,182,.30),rgba(255,255,255,.88) 72%)!important}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-second,[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-mid{background:linear-gradient(135deg,rgba(87,211,245,.30),rgba(255,255,255,.88) 72%)!important}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-third,[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-attended{background:linear-gradient(135deg,rgba(167,139,250,.30),rgba(255,255,255,.88) 72%)!important}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-qualified,[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-won{background:linear-gradient(135deg,rgba(61,220,151,.34),rgba(255,255,255,.9) 72%)!important}
[data-theme="light"] .tbl tbody tr td.hr-stage-cell.hr-stage-lost{background:linear-gradient(135deg,rgba(227,91,106,.28),rgba(255,255,255,.88) 72%)!important}
@media (max-width:980px){
  .stage-flow-card .stage-flow-bar[style*="--stage-count"]{
    grid-template-columns:repeat(var(--stage-count),minmax(150px,1fr));
    overflow-x:auto;
    padding-left:0;
  }
  .hr-disqualify-form,.hr-activity-form,.service-activity-form{
    grid-template-columns:1fr;
  }
  .hr-disqualify-form .btn-danger-ghost,.hr-activity-form .btn-primary{
    width:100%;
  }
}

