:root{
  --bg:#f4f6f8;--panel:#ffffff;--ink:#18212f;--muted:#6b7583;--line:#e5e9ef;
  --nav:#0f1f32;--nav2:#18324f;--accent:#315efb;--good:#15815b;--warn:#b56a0a;--bad:#c23d3d;
  --shadow:0 10px 30px rgba(15,31,50,.07);--radius:16px;
}
*{box-sizing:border-box} body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}
button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:linear-gradient(180deg,var(--nav),#0b1828);color:#fff;padding:22px 16px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px}.brand-mark{width:42px;height:42px;border-radius:12px;background:#fff;color:var(--nav);display:grid;place-items:center;font-weight:900;font-size:14px}.brand strong{display:block;font-size:15px}.brand small{display:block;color:#9fb0c3;font-size:11px;margin-top:4px}nav{display:grid;gap:7px}nav button{border:0;background:transparent;color:#b9c7d6;padding:11px 12px;border-radius:10px;text-align:left;cursor:pointer;display:flex;gap:10px;align-items:center;font-weight:650}nav button:hover,nav button.active{background:var(--nav2);color:#fff}.sidebar-bottom{margin-top:auto}.principle{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.07);padding:12px;border-radius:12px;display:grid;gap:5px}.principle b{font-size:12px}.principle span{font-size:11px;color:#9fb0c3}.version{font-size:10px;color:#66809a;margin-top:12px;text-align:center}.main{margin-left:238px;min-width:0;width:calc(100% - 238px)}.topbar{position:sticky;top:0;z-index:10;background:rgba(244,246,248,.94);backdrop-filter:blur(12px);display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 30px 18px;border-bottom:1px solid rgba(229,233,239,.8)}h1{margin:0;font-size:24px;letter-spacing:-.02em}.topbar p{margin:6px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;gap:8px}.btn{border:0;border-radius:10px;padding:9px 13px;font-weight:700;cursor:pointer}.btn.primary{background:var(--accent);color:#fff}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.small{padding:6px 9px;font-size:12px}.btn.danger{background:#fff1f1;color:var(--bad)}.page{display:none;padding:24px 30px 50px}.page.active{display:block}.grid{display:grid;gap:16px}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.card h3{font-size:14px;margin:0 0 12px}.card .subtle{color:var(--muted);font-size:12px}.hero{padding:22px;background:linear-gradient(135deg,#122a46,#1e4671);color:#fff;border:none}.hero .eyebrow{color:#9fc0e2;font-size:11px;text-transform:uppercase;letter-spacing:.12em}.hero h2{font-size:23px;line-height:1.25;margin:8px 0}.hero p{color:#c5d4e4;margin:0;font-size:13px;line-height:1.6}.kpi{padding:16px}.kpi .name{font-size:11px;color:var(--muted)}.kpi .value{font-size:25px;font-weight:800;margin:8px 0 5px}.kpi .trend{font-size:11px;color:#536173}.section-head{display:flex;justify-content:space-between;align-items:center;margin:22px 0 10px}.section-head h2{font-size:16px;margin:0}.section-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;background:#edf2f7;color:#4c5c6d}.pill.P0,.pill.Active{background:#fff1f1;color:var(--bad)}.pill.P1,.pill.Testing{background:#fff6e6;color:var(--warn)}.pill.P2,.pill.Idea{background:#eef2ff;color:#5365c7}.pill.Completed,.pill.Go,.pill.Saved{background:#e9f7f0;color:var(--good)}.list{display:grid;gap:9px}.list-item{padding:12px 0;border-bottom:1px solid var(--line)}.list-item:last-child{border-bottom:0}.row{display:flex;align-items:center;gap:8px}.between{justify-content:space-between}.item-title{font-weight:750;font-size:13px}.item-meta{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.priority-line{border-left:3px solid var(--line);padding-left:11px}.priority-line.p0{border-color:var(--bad)}.priority-line.p1{border-color:var(--warn)}.alert{border-radius:12px;padding:12px 13px;border:1px solid var(--line);background:#fafbfc}.alert.high{border-color:#f1c6c6;background:#fff7f7}.alert.medium{border-color:#f2d7af;background:#fffaf1}.alert strong{display:block;font-size:12px}.alert span{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}.table{width:100%;border-collapse:collapse;min-width:900px}.table th,.table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:12px;vertical-align:top}.table th{background:#f7f9fb;color:#536173;font-size:10px;text-transform:uppercase;letter-spacing:.05em;position:sticky;top:0}.table td strong{font-size:12px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.toolbar .filters{display:flex;gap:8px}.field{display:grid;gap:6px;margin-bottom:12px}.field label{font-size:11px;font-weight:800;color:#4d5968}.field input,.field select,.field textarea{width:100%;border:1px solid #d9dfe7;border-radius:9px;padding:9px 10px;background:#fff;color:var(--ink)}.field textarea{min-height:90px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal{position:fixed;inset:0;background:rgba(9,18,30,.52);display:none;align-items:center;justify-content:center;padding:20px;z-index:50}.modal.open{display:flex}.modal-card{background:#fff;width:min(720px,100%);max-height:88vh;overflow:auto;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.22)}.modal-head{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:16px 18px;z-index:2}.modal-head h3{margin:0}.modal-body,#modal-body{padding:18px}.icon-btn{border:0;background:#f3f5f7;width:32px;height:32px;border-radius:50%;cursor:pointer}.four-d{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.four-card{border:1px solid var(--line);padding:14px;border-radius:13px;background:#fbfcfd}.four-card b{font-size:12px}.four-card p{font-size:12px;line-height:1.6;color:#536173;margin:7px 0 0}.dropzone{border:1.5px dashed #b9c4d0;background:#fafcff;border-radius:14px;padding:26px;text-align:center}.dropzone input{margin-top:12px}.metric-cloud{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.metric-chip{background:#eef3f8;border:1px solid #dfe6ee;border-radius:10px;padding:8px 10px}.metric-chip b{display:block;font-size:14px}.metric-chip span{font-size:10px;color:var(--muted)}.code-note{background:#0f1f32;color:#d7e5f3;padding:13px;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;white-space:pre-wrap}.knowledge-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}.knowledge-list button{display:block;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;margin-bottom:8px;cursor:pointer}.md-view{white-space:pre-wrap;line-height:1.75;font-size:13px}.empty{padding:26px;text-align:center;color:var(--muted);font-size:12px}.search{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;min-width:220px}.mini-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
@media(max-width:980px){.sidebar{width:74px;padding:16px 10px}.brand div:last-child,.sidebar nav button:not(.active){font-size:0}.brand-mark{width:42px}.brand{padding-left:6px}.sidebar nav button{justify-content:center}.sidebar nav button span{font-size:16px}.sidebar-bottom{display:none}.main{margin-left:74px;width:calc(100% - 74px)}.grid.cols-4,.grid.cols-3{grid-template-columns:repeat(2,1fr)}.knowledge-layout{grid-template-columns:1fr}}
@media(max-width:680px){.main{margin-left:0;width:100%;padding-bottom:72px}.sidebar{top:auto;bottom:0;width:100%;height:64px;padding:7px 8px;display:block}.brand,.sidebar-bottom{display:none}nav{display:flex;justify-content:space-around;gap:2px}nav button{padding:8px;font-size:0!important;flex:1;justify-content:center}nav button span{font-size:18px}.topbar{padding:18px 16px}.topbar p{display:none}.page{padding:16px}.grid.cols-4,.grid.cols-3,.grid.cols-2,.four-d,.form-grid{grid-template-columns:1fr}.top-actions .ghost{display:none}.knowledge-layout{grid-template-columns:1fr}}

/* V1.2: conversation review, preserving long source text. */
.inbox-content { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; margin: 16px 0; line-height: 1.7; }
.proposal-card { border: 1px solid var(--border, #ddd); border-radius: 12px; padding: 16px; margin: 20px 0; min-width: 0; }
.proposal-card legend { font-weight: 700; padding: 0 6px; }
.proposal-card input[type=checkbox] { width: auto; margin-right: 6px; }
.proposal-card textarea { min-height: 130px; }
.duplicate-warning { background: #fff4df; color: #754700; border-radius: 8px; padding: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.duplicate-warning p { white-space: pre-wrap; }
.duplicate-ack { display: block; font-size: 13px; line-height: 1.7; }
#proposal-error { color: #ae2525; margin: 12px 0; }
button:disabled { opacity: .55; cursor: wait; }

.duplicate-ack[hidden] { display: none; }
/* V1.2 简洁中文工作台 */
:root{--bg:#f5f6f8;--accent:#286e61;--nav:#142d29;--nav2:#26443e;--shadow:0 3px 12px rgba(20,45,41,.035)}
body{line-height:1.55}.sidebar{background:#142d29}.brand-mark{background:#e6f1de;color:#17382c}.topbar{position:static;background:transparent;padding-bottom:20px}.subnav{display:flex;gap:6px;overflow-x:auto;padding:16px 30px 0}.subnav button{white-space:nowrap;border:0;background:transparent;color:#65736e;padding:9px 13px;border-radius:8px;cursor:pointer}.subnav .selected{background:#e0ece6;color:#204e40;font-weight:700}.page{padding-top:22px}.focus{padding:5px 0 25px;max-width:900px}.focus .eyebrow{font-size:11px;letter-spacing:.12em;color:#6c8278}.focus p{font-size:13px;color:#5b6b65;margin:4px 0 20px}.focus h2{font-size:25px;font-weight:650;line-height:1.65;margin:8px 0 0;letter-spacing:-.02em}.kpi{min-height:115px}.kpi .name{font-size:12px}.kpi .value{font-size:28px}.card{padding:22px}.card h3{font-size:15px}small{font-size:11px;font-weight:400;color:#7c8982;margin-left:8px}.section-space{margin-top:20px}.ai-note{border:1px solid #d5e2d8;border-radius:14px;padding:20px 24px;background:#eef4ed;color:#355844}.ai-note p{font-size:13px;line-height:1.8;margin:10px 0}.ai-note div{font-size:11px;color:#738676}.journey{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.journey span{padding:12px;background:#eef4ef;border-radius:9px}button:focus-visible,a:focus-visible{outline:3px solid #b4974d;outline-offset:2px}a.btn{text-decoration:none;display:inline-block}input[type=file]{max-width:100%;margin:12px 0}.table td{max-width:400px;overflow-wrap:anywhere}.table select{max-width:120px;padding:6px;border:1px solid var(--line);border-radius:7px}.toolbar{flex-wrap:wrap}.toolbar .filters{flex-wrap:wrap}.table-wrap{max-width:100%}.card,.list-item{overflow-wrap:anywhere}
@media(min-width:681px) and (max-width:980px){.sidebar{width:210px}.brand div:last-child{display:block}.sidebar nav button:not(.active){font-size:12px}.sidebar nav button{justify-content:flex-start;font-size:12px}.main{margin-left:210px;width:calc(100% - 210px)}}
@media(max-width:680px){.sidebar{height:76px;padding:7px 4px}.sidebar nav button,.sidebar nav button:not(.active){font-size:10px!important;display:flex;flex-direction:column;gap:3px;padding:5px 2px}.sidebar nav button span{font-size:17px}.main{padding-bottom:85px}.topbar{padding:20px 16px 10px;gap:8px}h1{font-size:21px}.subnav{padding:10px 16px 0}.page{padding:18px 16px}.focus h2{font-size:21px}.grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi .value{font-size:23px}.card{padding:16px}.top-actions .btn{font-size:12px;padding:8px}.search{min-width:0;max-width:100%}.four-d{grid-template-columns:1fr}.row{flex-wrap:wrap}.dropzone{padding:12px}}
/* V1.3: decision-first home, compact summaries. */
.focus{max-width:none;padding:0 0 15px}.focus h2{font-size:21px;line-height:1.5;margin-top:8px}.focus>.eyebrow{display:block;margin-top:8px}.topbar{padding-top:20px;padding-bottom:8px}.page{padding-top:16px}.metrics{background:white;border:1px solid var(--line);border-radius:12px;gap:0}.metrics .kpi{min-height:90px;padding:12px 18px}.metrics .kpi+.kpi{border-left:1px solid var(--line)}.metrics .value{font-size:25px;margin:4px 0}.info{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0}.ceo-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:0 0 18px}.section-head{margin:16px 0 8px}.summary-row{display:flex;width:100%;text-align:left;align-items:center;justify-content:space-between;gap:12px;background:transparent;border:0;border-bottom:1px solid var(--line);padding:10px 0;color:var(--ink);cursor:pointer;font-size:13px}.summary-row small{display:block;margin:3px 0 0;font-size:11px}.summary-row:hover{color:var(--accent)}.ai-note{padding:14px 18px}.ai-note p{margin:6px 0}.exceptions{font-size:12px;margin-top:12px;color:#925127}summary{cursor:pointer;padding:10px 0}.ceo-columns .empty{padding:14px 0;text-align:left}.subtle{font-size:12px;color:var(--muted)}.form-grid textarea{min-height:75px}.table td{min-width:90px;max-width:320px}.table td:first-child{min-width:50px}.table th{white-space:nowrap}.md-view{white-space:pre-wrap;overflow-wrap:anywhere}.pill.受阻,.pill.逾期{color:#af3326;background:#fff0ec}.pill.完成,.pill.已完成{color:#176347;background:#e4f3ea}
@media(max-width:680px){.ceo-columns{grid-template-columns:1fr;gap:2px}.metrics .kpi:nth-child(3){border-left:0}.metrics .kpi:nth-child(n+3){border-top:1px solid var(--line)}.focus h2{font-size:19px}.focus .row{align-items:flex-start}.modal{padding:10px}.form-grid{gap:0}.ai-note{padding:14px}.metrics .kpi{padding:12px}.metrics .value{font-size:21px}.top-actions .ghost{display:block}}
.sheet{border-collapse:collapse;background:white;width:max-content;min-width:100%}.sheet th{padding:9px;background:#edf3ef;font-size:12px;white-space:nowrap;text-align:left;border:1px solid #dce5de}.sheet td{padding:0;border:1px solid #e1e7e2}.sheet input{border:0;border-radius:0;padding:10px;width:125px;background:transparent;outline:none;font-size:13px}.sheet td:nth-child(2) input{width:280px}.sheet input:focus{box-shadow:inset 0 0 0 2px var(--accent);background:#f2faf6}.sheet .dirty{background:#fffcf0}.sheet-wrap{max-height:65vh;overflow:auto}.sheet thead{position:sticky;top:0;z-index:2}#sheet-message{min-height:22px;font-size:13px;color:#426451}#task-owner,#task-domain{padding:7px;border:1px solid var(--line);border-radius:6px;max-width:200px}.sheet td:last-child{padding:4px;min-width:120px}
.ops-kpis{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.ops-kpis>div{padding:15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.ops-kpis span{font-size:12px;color:var(--muted);display:block}.ops-kpis b{font-size:24px;display:block;margin-top:4px}.ops-bars{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}.ops-bars div{min-width:140px;font-size:12px}.ops-bars progress{display:block;width:100%;accent-color:var(--accent)}.sheet .derived{background:#f0f3f1;color:#65756a;min-width:100px;padding:6px;font-size:12px}.sheet textarea{width:300px;min-height:70px;border:0;padding:9px;background:transparent;font:inherit}.sheet input{min-height:42px}.ops-calendar{min-width:1500px}.ops-calendar td{min-width:190px;max-width:260px}.ops-calendar th small{display:block;margin:0}.calendar-entry{display:block;width:100%;text-align:left;border:0;border-left:3px solid #77a993;border-radius:4px;background:#eef5ef;padding:7px;margin-bottom:6px;cursor:pointer;font-size:11px}.calendar-entry b,.calendar-entry span{display:block}.calendar-wrap{max-height:70vh}#ops-message{font-size:13px;color:#315e48;min-height:22px}.page input[type=date],.page input[type=month]{padding:6px;border:1px solid var(--line);border-radius:6px}.ops-calendar th{position:sticky;top:0}.sheet td:last-child{white-space:nowrap}.sheet tbody th{position:sticky;left:0;z-index:1}@media(max-width:680px){.ops-kpis{grid-template-columns:repeat(2,1fr)}.ops-kpis>div{padding:10px}.ops-bars{gap:8px}.ops-calendar{min-width:1200px}}

.sheet .crowded td{background:#fff4df}.sheet .crowded th{color:#995a13}
.stats-chart{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;margin:12px 0}.stats-chart h3{font-size:15px;margin:0 0 12px}.chart-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.chart-legend i{display:inline-block;width:10px;height:10px;margin-right:5px}.series-0{background:#a2c2b4}.series-1{background:#337d69}.series-2{background:#658cc8}.series-3{background:#d7a35f}.chart-row{display:grid;grid-template-columns:120px 1fr;gap:16px;margin-top:14px;font-size:12px}.chart-line{display:flex;align-items:center;gap:8px;height:15px}.chart-track{background:#f1f4f2;flex:1;height:9px}.chart-track span{display:block;height:100%;min-width:0}.chart-line>span{min-width:40px}.sheet th{position:relative}.col-resizer{position:absolute;right:0;top:0;width:8px;height:100%;cursor:col-resize;touch-action:none}.row-resizer{position:absolute;bottom:0;left:0;height:7px;width:100%;cursor:row-resize;touch-action:none}.sheet select{border:0;background:transparent;padding:9px;width:100%;min-width:110px;font:inherit;font-size:13px;max-width:none}.sheet td input,.sheet td textarea{width:100%;box-sizing:border-box;min-width:100px}.sheet td{min-width:125px}.sheet td:nth-child(3){min-width:220px}.sheet textarea{resize:both;min-height:70px;max-width:100%}.sheet td .derived{overflow-wrap:anywhere}#ops-grid{resize:both;min-width:240px;min-height:180px;max-width:100%;max-height:none;height:65vh;overflow:auto}.sheet input[type=checkbox]{min-width:0;min-height:0;width:16px}.sheet td:last-child{min-width:180px}@media(max-width:680px){.chart-row{grid-template-columns:75px 1fr;gap:8px}}
.vertical-chart-scroll{overflow-x:auto;max-width:100%;margin-top:14px}.vertical-chart svg{display:block;width:100%;height:300px;font:11px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;fill:#5c6d64}.vertical-chart .chart-category{font-size:12px;fill:#243c30}.svg-series-0{fill:#a2c2b4}.svg-series-1{fill:#337d69}.svg-series-2{fill:#658cc8}.svg-series-3{fill:#d7a35f}.calendar-entry.status-published,.calendar-legend .status-published{background:#e3f3e8;border-color:#2f8655;color:#1b5735}.calendar-entry.status-scheduled,.calendar-legend .status-scheduled{background:#e8f0ff;border-color:#497ecc;color:#254d87}.calendar-entry.status-other,.calendar-legend .status-other{background:#f3f3f1;border-color:#92998d;color:#50594c}.calendar-legend{display:flex;gap:12px;margin:12px 0;font-size:12px}.calendar-legend span{padding:6px 12px;border-left:4px solid;border-radius:4px}.viral-controls .search{width:420px;max-width:100%}.viral-controls select{padding:8px;border:1px solid var(--line);border-radius:6px}#viral-table .table{min-width:1800px}#viral-table td:nth-child(2){min-width:220px}#viral-table .viral-copy{min-width:320px;max-width:480px;white-space:pre-wrap;line-height:1.7}#viral-table .table-wrap{max-height:68vh;overflow:auto}#viral-table th{z-index:1}
.sv-grid{overflow:auto;max-height:65vh;max-width:100%;resize:vertical;border:1px solid #dce1e9;border-radius:10px}
.sv-grid table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;font-size:13px}
.sv-grid th{position:sticky;top:0;background:#edf1f6;z-index:2;padding:12px;white-space:normal}
.sv-grid td{position:relative;border-bottom:1px solid #e1e5eb;padding:5px;max-width:400px}
.sv-grid th:first-child,.sv-grid td:first-child{position:sticky;left:0;background:#fff;z-index:3;min-width:45px}
.sv-grid th:first-child{z-index:4}.sv-input{background:#fffbed}.sv-auto{background:#f0f2f5;color:#627080;padding:10px!important}
.sv-grid input:not([type=checkbox]),.sv-grid select{width:100%;min-width:100px;box-sizing:border-box;background:transparent;border:1px solid transparent;border-radius:3px;padding:7px}
.sv-grid input:focus,.sv-grid select:focus{border-color:#577eea;background:#fff}.sv-issues{color:#a05a10;min-width:260px;white-space:normal}
#page-business details{margin:14px 0}#page-business details>summary{cursor:pointer;padding:10px;background:#f2f4f7;border-radius:6px}
@media(max-width:600px){.sv-grid{max-height:60vh}.sv-grid th{font-size:12px}.toolbar label{max-width:100%}}
.sv-period-controls{justify-content:flex-start!important;gap:16px!important;flex-wrap:wrap}
.sv-section{margin:24px 0}.sv-side-by-side{display:grid;grid-template-columns:minmax(340px,1.1fr) minmax(300px,1fr);gap:24px;align-items:start;max-width:1100px}
.sv-compact .table{width:100%;min-width:0!important;table-layout:fixed}.sv-compact .table th:first-child{width:58%}.sv-compact td,.sv-compact th{padding:8px 12px!important;white-space:normal!important;position:relative}
.sv-compact td:not(:first-child),.sv-comparison td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.sv-compact .table:has(th:nth-child(4)) th:first-child{width:40%}.sv-compact td:not(:first-child){white-space:nowrap!important;padding-left:6px!important;padding-right:6px!important}
.sv-compact .table-wrap{max-height:620px;overflow:auto}.sv-funnel,.sv-gap-chart{position:sticky;top:12px;background:#fff;border:1px solid #e2e9e5;border-radius:12px;padding:16px}
.sv-funnel svg,.sv-gap-chart svg{width:100%;height:auto}.sv-funnel h4,.sv-gap-chart h4{margin:0 0 12px}.sv-funnel-fill{fill:#a8cdc0}.sv-funnel-label{fill:#173d32;font-size:13px}.sv-funnel-value{fill:#173d32;font-size:15px;font-weight:700}
.sv-gap-chart text{font-size:11px;fill:#344b43}.sv-negative{color:#bd3e35!important;font-weight:600}.sv-positive{color:#177b5d!important;font-weight:600}.sv-negative-fill{fill:#d86358}.sv-positive-fill{fill:#348a70}
.sv-comparison .table{width:max-content;min-width:100%;table-layout:fixed}.sv-comparison th{min-width:118px;max-width:170px;white-space:normal;position:relative}.sv-comparison td{position:relative}.sv-comparison tbody tr:last-child{font-weight:700;background:#eaf4ef}.sv-comparison td:first-child,.sv-comparison th:first-child{position:sticky;left:0;background:#f4f8f5;z-index:2;min-width:100px}
.sv-dragbar{font-size:11px;color:#6b7e75;background:#eef3f0;border-radius:5px 5px 0 0;padding:7px 10px;cursor:grab;touch-action:none;user-select:none}.sv-dragbar:active{cursor:grabbing}
#page-business .table th,#page-business .table td:first-child{position:relative}
@media(max-width:800px){.sv-side-by-side{grid-template-columns:minmax(0,1fr);gap:14px}.sv-funnel,.sv-gap-chart{position:static}.sv-compact .table th:first-child{width:48%}.sv-period-controls{gap:10px!important}.sv-comparison .table-wrap{max-width:100%}}
.auth-pending .app-shell,.auth-pending #modal{display:none!important}
#auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#edf3ef}
.auth-card{width:min(100%,430px);background:#fff;border:1px solid #dce5df;border-radius:16px;padding:30px;box-shadow:0 12px 40px #133b2710}
.auth-card h1{font-size:24px;margin:20px 0 12px}.auth-card p{line-height:1.7;color:#63746a}.auth-card label{display:block;font-weight:600;margin:16px 0}.auth-card input{display:block;box-sizing:border-box;width:100%;padding:11px;margin-top:7px;border:1px solid #cbd7cf;border-radius:7px}.auth-card button{width:100%}
.auth-error{color:#b13b35!important;min-height:20px}#auth-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px}.auth-domains{border:1px solid #dce5df;padding:15px;margin:15px 0}.auth-domains label{display:inline-flex;gap:6px;margin:8px 16px 8px 0}
#nav button[hidden]{display:none!important}@media(max-width:600px){.topbar{flex-wrap:wrap}.top-actions{flex-wrap:wrap}#auth-actions span{width:100%}.auth-card{padding:22px}}
.auth-users .table{width:100%;min-width:0!important;table-layout:fixed}.auth-users td,.auth-users th{white-space:normal;overflow-wrap:anywhere}.auth-users th:nth-child(1){width:20%}.auth-users th:nth-child(2){width:10%}.auth-users th:nth-child(3){width:36%}.auth-users th:nth-child(4){width:10%}.auth-users th:nth-child(5){width:24%}.auth-users .btn{white-space:normal;padding:7px}
@media(max-width:600px){.auth-users .table{min-width:570px!important}}
.viral-copy-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:5.1em;white-space:pre-wrap}.viral-full-copy{white-space:pre-wrap;line-height:1.8;max-height:65vh;overflow:auto}button[hidden],a[hidden],details[hidden],section[hidden]{display:none!important}

.table-sort{border:0;background:transparent;color:#64776d;cursor:pointer;padding:3px 7px;font-size:14px}th[aria-sort=ascending] .table-sort,th[aria-sort=descending] .table-sort{color:#147652;background:#e1efe7}th[aria-sort=ascending] .table-sort::after{content:"↑"}th[aria-sort=descending] .table-sort::after{content:"↓"}
