/* Sa/via product system. Framed sheet, seed 1072120608.
   Desktop: 228px navigation + flexible sheet; sheet gutters 32px.
   A row with n columns uses repeat(n,minmax(0,1fr)) + 16px gaps.
   Phone: viewport - 2 × 16px; three money cells = lead + two equal peers.
   User-approved emphasis: sales figures may exceed the skill's 40px default. */
:root{
 --sv-ground:#f1f4f2;--sv-sheet:#fff;--sv-soft:#f6f8f7;--sv-ink:#1c2923;
 --sv-muted:#5c6a62;--sv-line:#e2e8e4;--sv-control:#b4c0b8;
 --sv-accent:#346b51;--sv-tint:#eaf2ed;--sv-negative:#a43232;
 --sv-radius:16px;--sv-input-radius:8px;--sv-gap:16px;
 --bg:var(--sv-ground);--fg:var(--sv-ink);--muted:var(--sv-muted);--line:var(--sv-line);--card:var(--sv-sheet);--dark:var(--sv-ink);
}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-padding-bottom:100px}
body{background:var(--sv-ground)!important;color:var(--sv-ink)!important;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans','Noto Sans JP','Yu Gothic UI',sans-serif!important;font-size:14px;line-height:1.5}
h1,h2,h3{color:var(--sv-ink);text-wrap:balance;letter-spacing:-.025em!important}
p{ text-wrap:pretty }
button,input,select,textarea{font-family:inherit!important;letter-spacing:normal}
button{touch-action:manipulation;transition:background-color 120ms ease-out,border-color 120ms ease-out,color 120ms ease-out,scale 120ms ease-out}
button:not(:disabled):active{scale:.96}
button:disabled{opacity:1;color:var(--sv-muted)!important;background:#eef0ee!important;cursor:not-allowed}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--sv-accent)!important;outline-offset:3px!important}
input,select,textarea{border:1px solid var(--sv-control)!important;border-radius:var(--sv-input-radius)!important;background:#fff;color:var(--sv-ink)!important;min-height:44px;box-shadow:none!important}
input::placeholder,textarea::placeholder{color:var(--sv-muted);opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--sv-accent)}
textarea{line-height:1.7}
input[type=date]{max-width:100%;min-width:0;min-inline-size:0}
label,.field label{color:var(--sv-muted)}
small,.small,.muted,.tag{color:var(--sv-muted)}
strong,b,.val,td,dd,.sales-kpi,.dash-metric{font-variant-numeric:tabular-nums}
.shell{padding:8px 8px 8px 0;align-items:flex-start;gap:0}
.sidebar{width:228px!important;background:var(--sv-ground)!important;border:0!important;padding:28px 16px!important;position:sticky;top:0;height:100dvh}
.brand{padding:0 8px!important;letter-spacing:-.06em!important;color:var(--sv-ink)!important;font-size:27px!important}
.brand-logo{width:36px!important;height:36px!important;border-radius:8px!important}
.brand small{font-size:10px!important;letter-spacing:.13em!important;color:var(--sv-muted)!important}
.nav{margin-top:36px!important;gap:4px!important}
.nav button{color:var(--sv-muted)!important;padding:10px 12px!important;min-height:44px;border-radius:8px!important;font-size:14px;font-weight:500!important}
.nav button:hover{background:#e8eeea!important;color:var(--sv-ink)!important}
.nav button.active{background:#e2e9e4!important;color:var(--sv-ink)!important;font-weight:650!important;box-shadow:none!important;border:0!important}
.side-bottom{font-size:12px!important;color:var(--sv-muted)!important;left:24px;right:24px;bottom:24px}
.main,.main.archive-main{background:var(--sv-sheet)!important;border:1px solid var(--sv-line);border-radius:var(--sv-radius);padding:32px 32px 64px!important;margin:0!important;max-width:none!important;min-height:calc(100dvh - 16px);width:100%;min-width:0}
.top{padding:0!important;border-bottom:0!important;margin:0 0 24px!important;gap:16px!important;align-items:center!important}
.top h1,.archive-head h1{font-size:26px!important;line-height:1.3!important;margin:0!important;font-weight:700!important}
.top .kicker{display:none}
.toolbar{gap:8px;align-items:center}
.btn{min-height:44px;border-radius:8px!important;border:1px solid var(--sv-control)!important;padding:10px 14px!important;color:var(--sv-ink)!important;background:#fff!important;font-weight:600!important;font-size:13px!important;box-shadow:none!important}
.btn:hover{background:var(--sv-soft)!important;border-color:#8d9f93!important}
.btn.primary{background:var(--sv-ink)!important;color:#fff!important;border-color:var(--sv-ink)!important}
.btn.primary:hover{background:#32473a!important}
.btn.soft,.btn.link{background:var(--sv-soft)!important;border-color:transparent!important}
.btn.danger,.danger-txt{color:var(--sv-negative)!important}
.card,.dash-panel,.sales-panel{background:#fff!important;border:1px solid var(--sv-line)!important;border-radius:var(--sv-radius)!important;padding:20px!important;box-shadow:none!important;min-width:0}
.g,.split,.dash-columns{gap:var(--sv-gap)!important}
.card h2,.sales-panel-title{font-size:18px!important;line-height:1.45;margin-top:0}
.section-title{font-size:16px;margin-top:28px}
.tabs,.seg,.dash-role{gap:4px!important;background:var(--sv-soft)!important;border:1px solid var(--sv-line)!important;padding:4px!important;border-radius:10px!important;box-shadow:none!important}
.tabs button,.seg button,.dash-role button{background:transparent!important;color:var(--sv-muted)!important;border:1px solid transparent!important;border-radius:6px!important;min-height:40px;padding:8px 14px!important;font-size:13px!important;font-weight:600!important;box-shadow:none!important}
.tabs button.active,.seg button.active,.dash-role button.active{background:#fff!important;color:var(--sv-ink)!important;border-color:#c8d4cc!important;box-shadow:none!important}
.seg button:hover,.tabs button:hover{color:var(--sv-ink)!important}
/* Home: one financial answer, two distinctly labelled supporting amounts. */
html .sv-home-header.top{padding:0 0 20px!important;margin-bottom:20px!important;border-bottom:1px solid var(--sv-line)!important;gap:20px!important}
.sv-home-brand{margin-bottom:8px;gap:8px;font-size:17px;color:var(--sv-ink)}
.sv-home-brand img{width:25px;height:25px;object-fit:contain}
.sv-home-brand .sv-home-wordmark{color:var(--sv-muted);font-size:10px;letter-spacing:.14em}
html .sv-home-header.top h1{font-size:26px!important;letter-spacing:-.035em!important}
.sv-home-controls{gap:10px}
.sv-home-controls label{font-size:12px;color:var(--sv-muted);gap:5px}
.sv-home-controls select{height:44px!important;min-height:44px!important;font-size:14px;font-weight:500;border-color:var(--sv-control)!important}
.main[data-page=home] .restored-revenue{margin:0 0 16px!important}
.main[data-page=home] .restored-revenue .dash-head{margin-bottom:12px}
.main[data-page=home] .revenue-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;border:1px solid var(--sv-line)!important;border-radius:var(--sv-radius);overflow:hidden;background:#fff}
.main[data-page=home] .revenue-grid>div{padding:22px!important;min-height:160px!important;border:0!important;border-left:1px solid var(--sv-line)!important;border-radius:0!important;gap:8px!important;background:#fff!important;align-items:flex-start!important;justify-content:center!important;color:var(--sv-ink)!important}
.main[data-page=home] .revenue-grid>div:first-child{grid-column:auto!important;grid-row:auto!important;min-height:160px!important;padding:22px 24px!important;background:var(--sv-soft)!important;border-left:0!important;background-image:none!important}
.main[data-page=home] .revenue-grid>div:first-child::after{content:none!important}
.main[data-page=home] .revenue-grid>div>span,.main[data-page=home] .revenue-grid>div:first-child>span{font-size:14px!important;color:var(--sv-muted)!important;letter-spacing:0;font-weight:500!important}
.main[data-page=home] .revenue-grid>div>strong{font-family:inherit!important;font-size:32px!important;letter-spacing:-.035em;line-height:1.15!important;font-weight:650!important;color:var(--sv-ink)!important;margin:0!important;white-space:nowrap;max-width:100%}
.main[data-page=home] .revenue-grid>div:first-child>strong{font-size:52px!important;color:var(--sv-accent)!important;margin:0!important}
.main[data-page=home] .revenue-grid>div>small,.main[data-page=home] .revenue-grid>div:first-child>small{font-size:12px!important;color:var(--sv-muted)!important;margin:0!important}
.sv-customer-totals{margin-bottom:20px;border:0;background:var(--sv-line);border-radius:0;border-bottom:1px solid var(--sv-line)}
.sv-customer-totals>div{padding:12px 20px;background:#fff;align-items:center}
.sv-customer-totals span{font-size:13px;color:var(--sv-muted);font-weight:500}
.sv-customer-totals strong{font-size:28px;font-weight:600;letter-spacing:-.03em;color:var(--sv-ink)}
.sv-customer-totals small{font-size:12px;color:var(--sv-muted)}
.main[data-page=home] .dash-kpi{gap:0!important;border:1px solid var(--sv-line);background:var(--sv-line);border-radius:12px;overflow:hidden;margin-bottom:20px}
.main[data-page=home] .dash-metric{padding:14px 18px!important;min-height:96px!important;background:#fff!important;border:0!important;border-right:1px solid var(--sv-line)!important;border-radius:0!important;color:var(--sv-ink)!important;gap:8px!important;text-align:left}
.main[data-page=home] .dash-metric:last-child{border-right:0!important}
.main[data-page=home] .dash-metric.chosen{background:var(--sv-soft)!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important}
.main[data-page=home] .dash-metric>span{color:var(--sv-muted)!important;font-size:13px;font-weight:500}
.main[data-page=home] .dash-metric strong{font-size:28px!important;line-height:1.1;font-weight:600;letter-spacing:-.02em;color:var(--sv-ink)!important}
.main[data-page=home] .dash-metric small{font-size:12px!important;color:var(--sv-muted)!important;margin-left:4px}
.main[data-page=home] .dash-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;margin-bottom:16px}
.main[data-page=home] .sv-pipeline{order:-1}
.dash-head{align-items:center;gap:12px;margin-bottom:16px}
.dash-head h2{font-size:16px!important;font-weight:650;line-height:1.4;margin:0}
.dash-head>span{font-size:12px;color:var(--sv-muted)}
.dash-break-row{grid-template-columns:112px minmax(0,1fr) 36px!important;gap:12px!important;min-height:32px;font-size:13px!important}
.dash-break-row>span{color:var(--sv-muted)}
.dash-break-row>b{color:var(--sv-ink);font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.dash-break-track{height:4px!important;border-radius:2px!important;background:#edf1ee!important}
.dash-break-track>span{background:var(--sv-accent)!important;border-radius:2px!important}
.dash-empty,.sales-empty,.empty{color:var(--sv-muted)!important;font-size:14px!important;min-height:0!important;padding:20px 12px!important;line-height:1.6!important}
.dash-history{margin-top:16px}
.dash-trend{height:140px!important;gap:16px!important}
.dash-trend-rail{background:var(--sv-soft)!important;border-radius:0!important}
.dash-trend-rail>span{background:var(--sv-accent)!important;border-radius:2px 2px 0 0!important}
.dash-trend-col>b,.dash-trend-col>small{font-size:12px!important;color:var(--sv-muted)!important}
.dash-trend-total{border-top:1px solid var(--sv-line);padding-top:12px;margin-top:16px;font-size:12px;color:var(--sv-muted)}
/* Customer work: compact counts, deliberate tools, legible cards. */
.main[data-page=customers]>.g.g3{gap:0!important;border:1px solid var(--sv-line);border-radius:12px;overflow:hidden}
.main[data-page=customers]>.g.g3>.sv-progress-counter{border:0!important;border-right:1px solid var(--sv-line)!important;border-radius:0!important;padding:14px 18px!important;min-height:70px}
.main[data-page=customers]>.g.g3>.sv-progress-counter:last-child{border-right:0!important}
.sv-progress-counter>span{font-size:13px;font-weight:500;color:var(--sv-muted)}
.sv-progress-counter>strong{font-size:28px;color:var(--sv-ink);font-weight:600}
.customer-scope-row{margin-bottom:16px}
.kanban-bar{gap:8px!important;margin-bottom:20px;align-items:center}
.kanban-bar .board-search{min-width:min(220px,100%);flex:1;max-width:none;height:50px!important;border-radius:10px!important;background:var(--sv-soft)!important}
.kanban-bar .seg{flex:none}
.sv-customer-filter{border:1px solid var(--sv-control);border-radius:8px;padding:0 12px}
.kb-scroll{padding-bottom:16px}
.kb-board{gap:12px!important;min-height:0!important}
.kb-col{background:var(--sv-soft)!important;border:1px solid var(--sv-line)!important;border-radius:12px!important;padding:12px!important;width:264px!important;max-width:264px!important;min-height:200px!important;max-height:none!important}
.kb-col-head{padding:4px 2px 12px!important;color:var(--sv-ink)!important}
.kb-col-head h3{font-size:14px!important}
.kb-count{background:#e4ebe6!important;color:var(--sv-muted)!important}
.kb-card{background:#fff!important;border:1px solid var(--sv-line)!important;padding:14px!important;gap:10px!important;border-radius:12px!important;box-shadow:none!important}
.kb-card:hover{border-color:#97ac9e!important;box-shadow:none!important}
.kb-name{font-size:16px!important;font-weight:650!important;line-height:1.5!important;color:var(--sv-ink)!important}
.kb-info{gap:5px!important;padding-bottom:10px!important;border-color:var(--sv-line)!important}
.kb-info-row,.kb-info-value{font-size:13px!important;line-height:1.5!important;color:var(--sv-ink)!important}
.kb-info-label{width:22px!important;font-size:12px!important;font-weight:500!important;color:var(--sv-muted)!important}
.kb-next{font-size:12px!important;color:var(--sv-muted)!important}
.kb-next.late{color:var(--sv-negative)!important}
.kb-card .kb-open,.kb-card .kb-move{min-height:44px!important;font-size:13px!important;border-radius:8px!important;font-weight:600!important}
.kb-card .kb-open{background:var(--sv-ink)!important;border-color:var(--sv-ink)!important;color:#fff!important}
.sv-card-grab{background:transparent;border:0;color:var(--sv-muted);border-radius:8px}
.sv-card-grab:hover{background:var(--sv-tint)}
.sv-board-overview{gap:8px!important;margin-bottom:20px!important}
.sv-board-overview button{min-height:76px!important;border:1px solid var(--sv-line)!important;border-radius:10px!important;box-shadow:none!important;padding:10px!important;background:#fff!important;color:var(--sv-muted)!important}
.sv-board-overview button[aria-pressed=true]{background:var(--sv-tint)!important;border-color:var(--sv-accent)!important;color:var(--sv-ink)!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important}
.sv-board-overview button>span{font-size:12px!important;font-weight:500;white-space:normal!important;line-height:1.3}
.sv-board-overview button>strong{font-size:24px!important;font-weight:600;color:var(--sv-ink)!important}
.sv-phone-stage>header{margin-bottom:12px}
.sv-phone-stage h2{font-size:15px}
.sv-board-empty{padding:24px 16px;border-color:var(--sv-line);color:var(--sv-muted);font-size:14px;background:var(--sv-soft)}
/* Detail: directly editable role plans, a clear top summary and calm notes. */
.sv-client-header{margin-bottom:20px}
.sv-client-header h1{font-size:28px!important;line-height:1.4!important}
.sv-client-back{min-height:40px!important;font-size:13px!important;color:var(--sv-muted)!important;padding:8px 0!important}
.sv-client-state select{background:var(--sv-soft)!important;min-height:44px;font-size:14px!important;border-color:var(--sv-line)!important}
.sv-client-actions{margin-bottom:16px}
.sv-client-snapshot,.sv-client-brief,.sv-client-recent{border-color:var(--sv-line);border-radius:var(--sv-radius);padding:20px;background:#fff}
.sv-client-snapshot-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding-bottom:20px}
.sv-client-snapshot-top strong{font-size:26px;color:var(--sv-ink);font-weight:650}
.sv-client-snapshot-top>div>span{color:var(--sv-muted);font-size:13px}
.sv-client-snapshot-top p{color:var(--sv-muted)}
.sv-client-roles{gap:16px;border-color:var(--sv-line);padding:20px 0}
.sv-client-role-badge{color:var(--sv-accent);background:var(--sv-tint);border-radius:6px;font-weight:650}
.sv-client-role-identity{grid-template-columns:28px minmax(0,1fr) auto;gap:8px}
.sv-client-role-identity>span:not(.sv-client-role-badge){grid-column:2;color:var(--sv-muted);max-width:none;font-size:12px}
.sv-client-role-identity>.btn{grid-column:3;grid-row:1/3;background:#fff!important;min-height:44px!important}
.sv-client-role-identity strong{font-weight:600;font-size:14px!important}
.sv-client-plan-fields input,.sv-client-plan-fields select{border-color:var(--sv-control)!important;background:var(--sv-soft)!important;border-radius:8px;font-size:14px!important}
.sv-client-plan-fields label{font-size:12px!important;color:var(--sv-muted)}
.sv-client-meta,.sv-client-meta .btn{color:var(--sv-muted);font-size:12px;border-color:var(--sv-line)}
.sv-client-brief-row h3,.sv-client-note h3{color:var(--sv-muted);font-weight:500}
.sv-client-brief-row p{font-size:15px;font-weight:500;max-width:65ch}
.sv-client-missing,.sv-client-blank{color:var(--sv-muted)}
.main[data-page=detail]>.tabs{background:#fff!important;border:0!important;border-bottom:1px solid var(--sv-line)!important;border-radius:0!important;padding:0!important;margin:20px 0!important;gap:16px!important}
.main[data-page=detail]>.tabs button{border:0!important;border-radius:0!important;padding:12px 2px!important;min-height:48px;color:var(--sv-muted)!important;font-size:14px!important}
.main[data-page=detail]>.tabs button.active{box-shadow:inset 0 -2px 0 var(--sv-accent)!important;color:var(--sv-ink)!important;background:transparent!important}
.sv-cdata-direct,.sv-memo-direct,.sv-completion{border-radius:var(--sv-radius)!important;padding:20px!important}
.sv-cdata-direct label,.sv-memo-direct label,.sv-completion label{font-size:13px;font-weight:500;color:var(--sv-muted)}
.sv-cdata-direct input,.sv-cdata-direct textarea,.sv-memo-direct textarea,.sv-completion textarea,.sv-completion select{border-color:var(--sv-control)!important;color:var(--sv-ink)!important}
.sv-cdata-direct h2,.sv-memo-direct h2,.sv-completion h2{font-size:17px}
.sv-memo-timeline article,.sv-completion-history article{border-color:var(--sv-line)}
.sv-client-checklist,.sv-report-advanced{border-color:var(--sv-line);border-radius:12px}
.sv-info-ledger,.sv-outcome-basis,.sv-completion-history header span,.sv-memo-timeline article>span{color:var(--sv-muted);font-size:12px}
/* Analysis: persistent navigation, aligned numbers, no conflicting header bands. */
.sales-top{background:transparent!important;border:0!important;padding:0!important;margin-bottom:16px!important;gap:16px}
.sales-top h2{font-size:17px!important;margin:0}
.sales-top p{display:none}
.sales-month{font-size:12px;color:var(--sv-muted)}
.sales-nav{gap:4px!important;border-bottom:1px solid var(--sv-line)!important;background:#fff!important;padding:0!important;margin-bottom:24px!important;border-radius:0!important;box-shadow:none!important}
.sales-nav-btn{border:0!important;border-radius:0!important;background:transparent!important;color:var(--sv-muted)!important;min-height:48px!important;padding:12px 16px!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important}
.sales-nav-btn.active{color:var(--sv-ink)!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important;background:transparent!important}
.sales-panel{margin-bottom:20px}
.sales-panel-title{font-weight:650!important;font-size:18px!important}
.sales-kpi-grid{gap:0!important;border:1px solid var(--sv-line);border-radius:12px;overflow:hidden;background:#fff;margin-bottom:20px}
.sales-kpi{border:0!important;border-right:1px solid var(--sv-line)!important;border-bottom:1px solid var(--sv-line)!important;background:#fff!important;color:var(--sv-ink)!important;border-radius:0!important;box-shadow:none!important;padding:16px!important;min-height:100px!important}
.sales-kpi.active{background:var(--sv-soft)!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important}
.sales-kpi>span{font-size:13px!important;font-weight:500!important;color:var(--sv-muted)!important}
.sales-kpi strong{font-size:28px!important;font-weight:600!important;color:var(--sv-ink)!important;letter-spacing:-.03em!important}
.sales-data-table,.tablewrap,.sales-drill-table{max-width:100%;overflow:auto;overscroll-behavior-x:contain;border-radius:8px}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
table th{background:#fff!important;color:var(--sv-muted)!important;font-size:12px!important;font-weight:500!important;white-space:nowrap;letter-spacing:0!important}
table :is(th,td){padding:14px 12px!important;border-color:var(--sv-line)!important;text-align:right!important}
table :is(th,td):first-child{text-align:left!important}
table tr:nth-child(even) td{background:#fff!important}
table td{font-size:14px;color:var(--sv-ink)}
.sales-caption{font-size:12px!important;color:var(--sv-muted)!important;line-height:1.7}
.month-money-grid{gap:0!important;border:1px solid var(--sv-line);border-radius:12px;overflow:hidden}
.month-money-card{border:0!important;border-right:1px solid var(--sv-line)!important;border-radius:0!important;box-shadow:none!important;padding:20px!important;background:#fff!important;color:var(--sv-ink)!important;min-width:0}
.month-money-card.selected{background:var(--sv-soft)!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important}
.month-money-card strong{font-size:30px!important;font-weight:650!important;letter-spacing:-.03em}
.month-money-card span,.month-money-card small{color:var(--sv-muted)!important;font-size:13px!important;font-weight:500!important}
.month-finance-section{min-width:0}
.month-finance-section h3{font-size:17px!important}
.sv-team-total{margin:16px 0;color:var(--sv-muted)}
.sv-team-total strong{font-size:36px;color:var(--sv-ink)}
.sv-team-revenue-grid{gap:12px}
.sv-team-revenue-grid article{background:var(--sv-soft);border-color:var(--sv-line);border-radius:12px;padding:18px}
.sv-team-revenue-grid h3{font-size:15px;margin-bottom:12px}
.sv-team-revenue-grid article>strong{font-size:30px;font-weight:650}
.sv-team-revenue-grid dl{font-size:13px;margin-top:12px}
.sv-team-revenue-grid article>span,.sv-team-revenue-grid dt{color:var(--sv-muted);font-size:12px}
.sv-role-result-list article{background:var(--sv-soft);border-color:var(--sv-line);border-radius:12px}
.sv-role-controls label{font-size:12px;color:var(--sv-muted);font-weight:500}
.sv-role-controls select,.sv-role-controls input{font-size:14px;min-height:44px}
.sv-role-result-list header>strong{font-size:17px}
.sv-role-result-list dt{color:var(--sv-muted);font-size:13px}
.sv-role-result-list header>span{font-size:12px;color:var(--sv-muted)}
.sv-role-range{font-size:14px;font-weight:500;color:var(--sv-muted)}
/* Week: measured actuals first, explicit plan second; goals never auto-filled. */
.sv-week-controls{gap:12px!important}
.sv-week-controls label{font-size:12px;color:var(--sv-muted)}
.sv-week-kpis{gap:8px!important}
.sv-week-kpi{background:#fff!important;border:1px solid var(--sv-line)!important;border-radius:12px!important;box-shadow:none!important;padding:16px!important;color:var(--sv-ink)!important}
.sv-week-kpi.selected{background:var(--sv-soft)!important;border-color:#8eaa98!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important}
.sv-week-kpi>span{color:var(--sv-muted)!important;font-size:13px;font-weight:500}
.sv-week-kpi>strong{font-size:30px!important;font-weight:600!important;letter-spacing:-.03em}
.sv-week-kpi small,.sv-week-kpi>div{color:var(--sv-muted)!important;font-size:12px!important}
.sv-week-rates{background:var(--sv-soft)!important;border-color:var(--sv-line)!important;border-radius:12px!important}
.sv-week-rates strong{font-size:24px!important;font-weight:600}
.sv-week-rates span,.sv-week-rates small{color:var(--sv-muted)!important}
.sv-week-section{border-color:var(--sv-line)!important;border-radius:12px!important;background:#fff!important}
.sv-week-section h3{font-size:17px!important}
.sv-week-chart{height:180px!important}
.sv-week-chart i{background:var(--sv-accent)!important;border-radius:2px 2px 0 0!important}
.sv-week-chart b,.sv-week-chart>div>span{color:var(--sv-muted)!important;font-size:12px!important}
.sv-week-range{color:var(--sv-ink)!important;font-weight:600}
.sv-outcome-counts{gap:0;border:1px solid var(--sv-line);border-radius:12px;overflow:hidden}
.sv-outcome-counts>div{border:0;border-right:1px solid var(--sv-line);border-radius:0;padding:16px}
.sv-outcome-counts span{color:var(--sv-muted)}
.sv-outcome-counts strong{font-size:30px;font-weight:600}
/* Daily, settings and utilities share the same vocabulary. */
.main[data-page=settings]>.card{margin-bottom:20px!important}
.sv-responsibility-settings h2,.sv-team-settings h2{font-size:18px;margin-bottom:16px}
.sv-responsibility-options label{background:var(--sv-soft)!important;border-color:var(--sv-line)!important;border-radius:8px!important}
.sv-responsibility-options label:has(input:checked){background:var(--sv-tint)!important;border-color:var(--sv-accent)!important;color:var(--sv-ink)!important}
.sv-responsibility-options label span{font-size:16px;font-weight:650}
.sv-responsibility-options input{min-height:20px}
.sv-role-default{font-size:13px;color:var(--sv-muted)}
.sv-team-tags span{border-radius:6px;background:var(--sv-soft);font-size:13px}
.sv-more-page .sv-mobile-menu-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:transparent;border:0;border-radius:0}
.sv-more-page .sv-mobile-menu-list button{display:flex;align-items:center;min-height:96px!important;border:1px solid var(--sv-line)!important;border-radius:12px!important;background:#fff!important;color:var(--sv-ink)!important;padding:20px!important;gap:14px!important;font-size:15px!important}
.sv-more-page .sv-mobile-menu-list button>span:last-child{margin-left:auto;font-size:22px;color:var(--sv-muted)}
.sv-more-page .sv-mobile-menu-list svg{width:22px;height:22px;color:var(--sv-muted);flex:none}
.sv-task-row{border-color:var(--sv-line);gap:12px}
.sv-task-row small{color:var(--sv-muted);font-size:12px}
.sv-task-row button{background:#fff;border-color:var(--sv-control);color:var(--sv-ink);min-height:44px}
.activity-shell,.activity-card,.register-card{border-color:var(--sv-line)!important;box-shadow:none!important}
.notice,.hint{background:var(--sv-soft)!important;color:var(--sv-muted)!important;border-color:var(--sv-line)!important;font-size:13px}
.modal{border-radius:20px!important;border:1px solid var(--sv-line);box-shadow:0 16px 64px #172a2326!important}
.modal header h2{font-size:20px!important}
.overlay{background:#16251c66}
.toast{border-radius:10px!important;background:var(--sv-ink)!important;color:#fff!important;font-size:14px!important}
/* No routine entrance animations. Motion is limited to feedback; respect reduced motion. */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:651px) and (max-width:1100px){
 html:not([data-sv-layout=phone]) .sidebar{width:188px!important;padding:24px 10px!important}
 html:not([data-sv-layout=phone]) .brand{font-size:24px!important;justify-content:flex-start!important}
 html:not([data-sv-layout=phone]) .brand span,html:not([data-sv-layout=phone]) .nav .txt{display:block!important}
 html:not([data-sv-layout=phone]) .nav button{justify-content:flex-start!important}
 html:not([data-sv-layout=phone]) .brand small{display:none!important}
 .main{padding:24px!important}
 .main[data-page=home] .revenue-grid{grid-template-columns:1.25fr 1fr!important}
 .main[data-page=home] .revenue-grid>div:first-child{grid-row:1/3!important}
 .main[data-page=home] .revenue-grid>div:not(:first-child){min-height:94px!important;padding:16px!important}
 .main[data-page=home] .revenue-grid>div:first-child>strong{font-size:42px!important}
 .main[data-page=home] .revenue-grid>div>strong{font-size:26px!important}
 .sv-home-controls select{width:140px}.sv-scope-field select{width:160px}
 .main[data-page=home] .dash-columns{grid-template-columns:1fr}
 .sv-client-roles{grid-template-columns:1fr}
 .sv-client-role-plan{border-bottom:1px solid var(--sv-line);padding-bottom:16px}
}
/* Device-selected phone layout also covers browsers using a desktop viewport on phones. */
html[data-sv-layout=phone] body{background:#fff!important;font-size:14px}
html[data-sv-layout=phone] .shell{padding:0;background:#fff}
html[data-sv-layout=phone] .main,html[data-sv-layout=phone] .main.archive-main{border:0!important;border-radius:0!important;min-height:100dvh;max-width:680px!important;margin:0 auto!important;padding:20px max(16px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important}
html[data-sv-layout=phone] .top{margin-bottom:20px!important;flex-wrap:wrap;padding-bottom:0!important;gap:12px!important}
html[data-sv-layout=phone] .top h1{font-size:24px!important}
html[data-sv-layout=phone] .top .toolbar{gap:6px}
html[data-sv-layout=phone] .top .btn{font-size:12px!important;padding:9px 12px!important}
html[data-sv-layout=phone] input,html[data-sv-layout=phone] select,html[data-sv-layout=phone] textarea{font-size:16px!important}
html[data-sv-layout=phone] .card,html[data-sv-layout=phone] .dash-panel,html[data-sv-layout=phone] .sales-panel{padding:16px!important;border-radius:12px!important}
html[data-sv-layout=phone] .sv-home-header.top{padding:0 0 16px!important;margin-bottom:16px!important;display:block!important}
html[data-sv-layout=phone] .sv-home-brand{margin-bottom:6px;font-size:15px}
html[data-sv-layout=phone] .sv-home-brand img{width:22px;height:22px}
html[data-sv-layout=phone] .sv-home-header.top h1{font-size:23px!important}
html[data-sv-layout=phone] .sv-home-controls{margin-top:14px;gap:8px}
html[data-sv-layout=phone] .sv-home-controls label{gap:4px;font-size:11px;flex:1}
html[data-sv-layout=phone] .sv-home-controls select{height:44px!important;min-height:44px!important;width:100%;font-size:14px!important;font-weight:500}
html[data-sv-layout=phone] .sv-scope-field svg{top:12px;width:18px;height:18px}
html[data-sv-layout=phone] .sv-scope-field select{padding-left:36px}
html[data-sv-layout=phone] .main[data-page=home] .restored-revenue{margin-bottom:12px!important;padding:0!important;border:0!important}
html[data-sv-layout=phone] .restored-revenue .dash-head h2{font-size:14px!important}
html[data-sv-layout=phone] .restored-revenue .dash-head>.btn{min-height:40px;font-size:12px!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border-radius:12px}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div:first-child{grid-column:1/-1!important;grid-row:auto!important;padding:18px 20px!important;min-height:126px!important;gap:6px!important;align-items:flex-start!important;border-bottom:1px solid var(--sv-line)!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div{padding:14px 18px!important;min-height:98px!important;gap:5px!important;border-left:0!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div:last-child{border-left:1px solid var(--sv-line)!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div>span{font-size:12px!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div:first-child>strong{font-size:44px!important;grid-column:auto!important;grid-row:auto!important;line-height:1.1!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div:not(:first-child)>strong{font-size:25px!important}
html[data-sv-layout=phone] .main[data-page=home] .revenue-grid>div>small{font-size:11px!important}
html[data-sv-layout=phone] .sv-customer-totals{margin-bottom:16px;border-radius:0;gap:1px}
html[data-sv-layout=phone] .sv-customer-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:4px;padding:10px 8px}
html[data-sv-layout=phone] .sv-customer-totals>div:first-child{padding-left:0}
html[data-sv-layout=phone] .sv-customer-totals>div:last-child{padding-right:0}
html[data-sv-layout=phone] .sv-customer-totals span{font-size:11px}
html[data-sv-layout=phone] .sv-customer-totals strong{font-size:24px}
html[data-sv-layout=phone] .sv-customer-totals small{font-size:11px;margin-left:2px}
html[data-sv-layout=phone] .main[data-page=home] .dash-kpi{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin-bottom:16px}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric{padding:12px!important;min-height:78px!important;gap:6px!important;border-bottom:1px solid var(--sv-line)!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(4){grid-column:1/3}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(3){border-right:0!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(n+4){border-bottom:0!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric>span{font-size:12px}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric strong{font-size:24px!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-columns{grid-template-columns:1fr;gap:12px!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-role button{min-height:40px!important;padding:8px 12px!important;font-size:13px!important}
html[data-sv-layout=phone] .dash-break-row{grid-template-columns:94px minmax(0,1fr) 28px!important;gap:10px!important;min-height:32px}
html[data-sv-layout=phone] .main[data-page=customers]>.g.g3>.sv-progress-counter{min-height:64px!important;padding:10px!important;gap:6px;flex-direction:column;align-items:flex-start}
html[data-sv-layout=phone] .sv-progress-counter>span{font-size:11px}
html[data-sv-layout=phone] .sv-progress-counter>strong{font-size:24px}
html[data-sv-layout=phone] .kanban-bar{gap:8px!important;margin-bottom:16px}
html[data-sv-layout=phone] .kanban-bar .board-search{flex-basis:100%;height:48px!important}
html[data-sv-layout=phone] .kanban-bar .seg{flex:1}
html[data-sv-layout=phone] .kanban-bar .seg button{min-height:40px!important;font-size:12px!important;padding:8px!important}
html[data-sv-layout=phone] .sv-customer-filter{width:100%;border-color:var(--sv-line)}
html[data-sv-layout=phone] .sv-customer-filter summary{font-size:12px;min-height:40px}
html[data-sv-layout=phone] .sv-board-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
html[data-sv-layout=phone] .sv-board-overview button{min-height:68px!important;padding:8px 4px!important}
html[data-sv-layout=phone] .sv-board-overview button>span{font-size:11px!important}
html[data-sv-layout=phone] .sv-board-overview strong{font-size:22px!important}
html[data-sv-layout=phone] .sv-phone-stage .kb-card{padding:14px!important;gap:10px!important}
html[data-sv-layout=phone] .kb-name{font-size:16px!important}
html[data-sv-layout=phone] .kb-card .kb-open,html[data-sv-layout=phone] .kb-card .kb-move{min-height:44px!important;font-size:14px!important}
html[data-sv-layout=phone] .sv-client-header h1{font-size:25px!important}
html[data-sv-layout=phone] .sv-client-snapshot{padding:16px}
html[data-sv-layout=phone] .sv-client-snapshot-top{gap:16px;padding-bottom:16px}
html[data-sv-layout=phone] .sv-client-snapshot-top strong{font-size:22px}
html[data-sv-layout=phone] .sv-client-snapshot-top p{font-size:13px;line-height:1.6}
html[data-sv-layout=phone] .sv-client-roles{padding:16px 0;gap:16px}
html[data-sv-layout=phone] .sv-client-role-plan+.sv-client-role-plan{border-top:1px solid var(--sv-line);padding-top:16px}
html[data-sv-layout=phone] .sv-client-role-identity{grid-template-columns:28px minmax(0,1fr) auto}
html[data-sv-layout=phone] .sv-client-role-identity>span:not(.sv-client-role-badge){grid-column:2}
html[data-sv-layout=phone] .sv-client-role-identity>.btn{grid-column:3;grid-row:1/3}
html[data-sv-layout=phone] .main[data-page=detail]>.tabs{gap:12px!important;grid-template-columns:1fr 1fr 1.5fr!important;margin:16px 0!important;top:0}
html[data-sv-layout=phone] .main[data-page=detail]>.tabs button{font-size:13px!important;padding:12px 0!important;min-height:48px}
html[data-sv-layout=phone] .sales-top{gap:8px;align-items:center}
html[data-sv-layout=phone] .sales-top h2{font-size:15px!important}
html[data-sv-layout=phone] .sales-top .sales-month{font-size:11px}
html[data-sv-layout=phone] .sales-month select{max-width:160px;font-size:14px!important}
html[data-sv-layout=phone] .main[data-page=sales] .sales-nav{display:flex!important;gap:0!important;overflow-x:auto!important;scrollbar-width:none;margin-bottom:16px!important;position:sticky;top:0;z-index:5}
html[data-sv-layout=phone] .main[data-page=sales] .sales-nav-btn{flex:1 0 auto!important;min-height:48px!important;padding:12px 11px!important;font-size:12px!important;white-space:nowrap!important}
html[data-sv-layout=phone] .sales-panel-title{font-size:16px!important}
html[data-sv-layout=phone] .sales-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-sv-layout=phone] .sales-kpi{min-height:88px!important;padding:14px!important}
html[data-sv-layout=phone] .sales-kpi strong{font-size:26px!important}
html[data-sv-layout=phone] .sv-team-revenue-grid{grid-template-columns:1fr}
html[data-sv-layout=phone] .sv-team-revenue-grid article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;align-items:baseline;padding:16px}
html[data-sv-layout=phone] .sv-team-revenue-grid h3{font-size:14px;margin:0}
html[data-sv-layout=phone] .sv-team-revenue-grid article>strong{font-size:26px;text-align:right}
html[data-sv-layout=phone] .sv-team-revenue-grid article>span{grid-column:2;text-align:right;margin:0}
html[data-sv-layout=phone] .sv-team-revenue-grid dl{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;margin:4px 0 0}
html[data-sv-layout=phone] .sv-team-revenue-grid dl>div{flex:1;gap:6px;margin:0;min-width:100px;font-size:12px}
html[data-sv-layout=phone] .month-money-grid{grid-template-columns:1fr!important;gap:0!important}
html[data-sv-layout=phone] .month-money-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 12px!important;padding:16px!important;border-right:0!important;border-bottom:1px solid var(--sv-line)!important;text-align:left}
html[data-sv-layout=phone] .month-money-card strong{font-size:26px!important;text-align:right;grid-column:2;grid-row:1/3}
html[data-sv-layout=phone] .month-money-card small{grid-column:1}
html[data-sv-layout=phone] .sv-role-controls{grid-template-columns:1fr 1fr;gap:10px}
html[data-sv-layout=phone] .sv-week-controls{grid-template-columns:1fr 1fr!important;gap:8px!important}
html[data-sv-layout=phone] .sv-week-arrows{grid-column:1/-1;justify-content:space-between}
html[data-sv-layout=phone] .sv-week-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important}
html[data-sv-layout=phone] .sv-week-kpi{padding:14px!important}
html[data-sv-layout=phone] .sv-week-kpi:last-child:nth-child(odd){grid-column:1/-1}
html[data-sv-layout=phone] .sv-week-rates{gap:8px!important}
html[data-sv-layout=phone] .sv-week-rates strong{font-size:21px!important}
html[data-sv-layout=phone] .sv-week-chart{height:150px!important;gap:6px!important}
html[data-sv-layout=phone] .sv-week-chart b{font-size:11px!important;overflow-wrap:anywhere}
html[data-sv-layout=phone] .sv-more-page .sv-mobile-menu-list{grid-template-columns:1fr;gap:10px}
html[data-sv-layout=phone] .sv-more-page .sv-mobile-menu-list button{min-height:72px!important;flex-direction:row!important;align-items:center!important;gap:14px!important;padding:16px!important;font-size:15px!important}
html[data-sv-layout=phone] .sv-mobile-nav{background:#fff;max-width:680px;border-top:1px solid var(--sv-line);box-shadow:none;gap:4px;padding-top:8px}
html[data-sv-layout=phone] .sv-mobile-nav button{color:var(--sv-muted);min-height:52px;border-radius:10px;font-size:11px;padding:6px 2px;gap:4px;font-weight:500}
html[data-sv-layout=phone] .sv-mobile-nav button[aria-current],html[data-sv-layout=phone] .sv-mobile-nav button.selected{background:var(--sv-tint);color:var(--sv-ink);font-weight:650}
html[data-sv-layout=phone] .sv-mobile-nav svg{width:20px;height:20px}
html[data-sv-layout=phone] .toast{bottom:calc(88px + env(safe-area-inset-bottom))}
/* The restored source has highly specific historical nav rules. */
html body #app .sidebar .brand{color:var(--sv-ink)!important;font-size:27px!important;letter-spacing:-.06em!important}
html body #app .sidebar .brand small{color:var(--sv-muted)!important;font-size:10px!important}
html body #app .sidebar .nav button.nav-main{background:transparent!important;color:var(--sv-muted)!important;border-radius:8px!important;transform:none!important;box-shadow:none!important;font-weight:500!important}
html body #app .sidebar .nav button.nav-main:hover{background:#e8eeea!important;color:var(--sv-ink)!important}
html body #app .sidebar .nav button.nav-main.active{background:#e2e9e4!important;color:var(--sv-ink)!important;font-weight:650!important}
html body #app .sidebar .nav .ico{display:grid;place-items:center;width:20px;flex:none;color:inherit}
html body #app .sidebar .nav svg{height:19px;width:19px;stroke-width:1.7}
@media(min-width:651px) and (max-width:1100px){html:not([data-sv-layout=phone]) body #app .sidebar .brand{font-size:23px!important}}
html[data-sv-layout=phone] .main[data-page=home] .dash-kpi{grid-template-columns:repeat(6,minmax(0,1fr))!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;grid-area:auto!important;grid-column:span 2!important;padding:12px!important;min-height:78px!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(n+4){grid-column:span 3!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(4){border-right:1px solid var(--sv-line)!important}
html[data-sv-layout=phone] .main[data-page=home] .dash-metric:nth-child(5){border-right:0!important}
html body #app .seg button:not(.active),html body #app .tabs button:not(.active){background:transparent!important;border-color:transparent!important;color:var(--sv-muted)!important}
html body #app .seg button.active{background:var(--sv-tint)!important;border-color:#8eaa98!important;color:var(--sv-ink)!important}
.main[data-page=sales] .sales-top{display:flex!important;justify-content:flex-end!important;align-items:center!important;min-height:0!important;margin-bottom:12px!important}
.main[data-page=sales] .sales-top>div{display:none!important}
.main[data-sales-view=weekly] .sales-top,.main[data-sales-view=completion] .sales-top{display:none!important}
.main[data-page=sales]>.sv-team-revenue{margin-bottom:20px!important}
html body #app .sales-nav .sales-nav-btn.active{border-bottom:0!important;box-shadow:inset 0 -2px 0 var(--sv-accent)!important;color:var(--sv-ink)!important;background:transparent!important}
html body #app .sales-nav .sales-nav-btn::after,html body #app .sales-nav .sales-nav-btn::before{content:none!important}
html[data-sv-layout=phone] .kanban-bar .seg{flex:1 1 108px}
html[data-sv-layout=phone] .kanban-bar .seg[aria-label=表示方法]{flex-basis:124px}
html[data-sv-layout=phone] .sv-customer-filter{width:auto;flex:0 0 auto;padding:0 8px}
html[data-sv-layout=phone] .sv-customer-filter[open]{flex-basis:100%}
html[data-sv-layout=phone] .sv-customer-filter summary{min-height:48px}
html[data-sv-layout=phone] .sv-week-kpi{grid-area:auto!important;grid-column:auto!important}
html[data-sv-layout=phone] .sv-week-kpi:last-child:nth-child(odd){grid-column:1/-1!important}
html[data-sv-layout=phone] .sv-week-kpi:only-child{grid-column:1/-1!important}
.sv-week-rates>div:only-child{grid-column:1/-1}
:root{--sv-control:#86948b}
.sv-week-kpis:has(>.sv-week-kpi:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
html[data-sv-layout=phone] .sv-week-kpis:has(>.sv-week-kpi:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.sales-chart-track i,.month-chart-bar{background:var(--sv-accent)!important;border-radius:2px 2px 0 0!important}
.sales-chart-col b,.month-chart-value{font-size:12px!important;color:var(--sv-muted)!important}
.sales-chart-col small,.month-chart-item small{color:var(--sv-muted)!important;font-size:12px}
.field>label{font-weight:500;font-size:13px!important;color:var(--sv-muted)!important}
.activity-type{color:var(--sv-ink)!important}
.activity-next{border-color:var(--sv-accent)!important}
.activity-muted,.activity-draft,.activity-label{color:var(--sv-muted)!important}
.activity-compose,.activity-feed{border-color:var(--sv-line)!important;border-radius:12px!important;box-shadow:none!important}
.main[data-page=home] .restored-revenue .dash-head>div{flex:1}
.main[data-page=home] .restored-revenue .dash-head>.btn{min-width:0!important}
html[data-sv-layout=phone] .main[data-page=home] .restored-revenue .dash-head{gap:6px}
html[data-sv-layout=phone] .main[data-page=home] .restored-revenue .dash-head>.btn{font-size:11px!important;padding:8px 10px!important;min-height:44px!important}
html[data-sv-layout=phone] .main[data-page=home] .restored-revenue .dash-head>.sv-home-plan{background:var(--sv-soft)!important;border-color:var(--sv-line)!important}
.kb-card:hover{transform:none!important}
.sv-next-plan header>span{color:var(--sv-muted)!important}
.sv-week-rates>div{border-color:var(--sv-line)!important;border-radius:10px!important}
.sv-progress-counter small{color:var(--sv-muted)!important}
summary,.sv-flag-notes>summary,.sv-client-missing summary{min-height:44px!important;align-content:center}
.sv-home-brand .sv-brand-divider,.sv-home-brand .sv-home-wordmark{display:none}
html body #app .sidebar .brand small{display:none!important}
/* Pipeline at left; evidence and historical context share the right column. */
.main[data-page=home] .dash-columns{grid-template-rows:auto auto;align-items:stretch}
.main[data-page=home] .sv-pipeline{grid-column:1;grid-row:1/3}
.main[data-page=home] .dash-detail{grid-column:2;grid-row:1;align-self:start}
.main[data-page=home] .dash-history{grid-column:2;grid-row:2;margin:0!important;align-self:start}
.main[data-page=home] .dash-trend{height:112px!important;gap:10px!important}
.main[data-page=home] .dash-trend-total{display:grid;gap:4px}
.sv-pipeline .dash-detail-list{gap:4px!important}
.sv-pipeline .dash-break-row{min-height:28px!important;padding:4px 0!important}
.sidebar{display:flex;flex-direction:column;overflow-y:auto}
.sidebar .brand,.sidebar .nav{flex-shrink:0}
.sidebar .side-bottom{position:static!important;margin-top:auto;padding:24px 8px 0!important}
@media(max-width:1100px){.main[data-page=home] .sv-pipeline,.main[data-page=home] .dash-detail,.main[data-page=home] .dash-history{grid-column:1!important;grid-row:auto!important}.main[data-page=home] .dash-columns{grid-template-columns:1fr!important}}
html[data-sv-layout=phone] .main[data-page=home] .sv-pipeline,html[data-sv-layout=phone] .main[data-page=home] .dash-detail,html[data-sv-layout=phone] .main[data-page=home] .dash-history{grid-column:1!important;grid-row:auto!important}
.dash-trend-rail>span{min-height:0!important}
@media(min-width:651px) and (max-width:1100px){
 html .sv-home-header.top{display:block!important}
 .sv-home-controls{margin-top:16px;width:100%}
 .sv-home-controls label{flex:1;min-width:0}
 .sv-home-controls select,.sv-scope-field select{width:100%}
}
.sv-customer-totals strong{white-space:nowrap;flex-shrink:0}
@media(min-width:651px) and (max-width:1100px){
 .sv-customer-totals>div{padding:12px;gap:8px}
 .sv-week-kpis,.sv-week-kpis:has(>.sv-week-kpi:nth-child(3):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
 .sv-week-kpi:last-child:nth-child(odd){grid-column:1/-1}
}
html body #app .sales-kpi.active span{color:var(--sv-muted)!important}
.sales-chart-col,.sales-chart-col>span{font-size:12px!important;color:var(--sv-muted)!important}
.main[data-sales-view=completion]>.top .toolbar{display:none!important}
html[data-sv-layout=phone] .main[data-page=sales] .sales-nav{flex-wrap:nowrap!important;overflow:visible!important}
html[data-sv-layout=phone] .main[data-page=sales] .sales-nav-btn{flex:1 1 auto!important;padding:12px 8px!important}
.member-role-label,.member-list-intro{color:var(--sv-muted)!important}
.modal{background:var(--sv-sheet)!important;outline:none}
.modal .close{width:44px;min-height:44px;background:var(--sv-soft)!important;color:var(--sv-ink)!important;border-radius:8px!important}
.modal :is(h2,h3){color:var(--sv-ink)}
/* Keep mobile inputs at 16px so focusing them does not zoom the page on iOS. */
html[data-sv-layout=phone] #app input,html[data-sv-layout=phone] #app select,html[data-sv-layout=phone] #app textarea{font-size:16px!important}
.sv-revealing{animation:none!important}
.kb-stage::before{background:var(--sv-accent)!important}
.kb-ba-inline{font-size:13px!important;color:var(--sv-muted)!important;gap:8px 12px;line-height:1.5!important}
.kb-ba-inline b{font-size:12px!important;color:var(--sv-ink)!important}
.kb-next{font-size:13px!important}
html[data-sv-layout=phone] #app button{min-height:44px!important;min-width:44px!important}
/* Conversation edition — a continuous workspace, with emphasis carried by type. */
:root{--sv-ground:#edf2ef;--sv-accent:#315f49;--sv-tint:#e8f0eb;--sv-line:#e5ebe7}
html body #app .main{border-color:transparent!important;border-radius:24px!important}
html body #app .top h1{font-size:30px!important;font-weight:700!important;letter-spacing:-.04em!important}
html body #app .seg{border-color:transparent!important;background:#f1f5f2!important;border-radius:12px!important}
html body #app .seg button.active{border-color:transparent!important;background:#fff!important;box-shadow:0 1px 4px #1831260d!important;color:#244d37!important}
html body #app .btn.primary{background:#20392b!important;border-color:#20392b!important;border-radius:10px!important}
html .main[data-page=home] .revenue-grid{border:0!important;border-radius:20px!important}
html .main[data-page=home] .revenue-grid>div:first-child{background:#edf4ef!important}
html .main[data-page=home] .dash-columns>.dash-panel{border:0!important;border-radius:0!important;padding:18px 0!important}
html .main[data-page=home] .dash-columns>.sv-pipeline{padding-right:24px!important;border-right:1px solid var(--sv-line)!important}
html .main[data-page=home] .dash-columns>.dash-detail,html .main[data-page=home] .dash-columns>.dash-history{padding-left:8px!important}
html .main[data-page=home] .dash-head h2{font-size:17px!important}
/* The customer is the heading; commercial and administrative details recede. */
html body #app .main[data-page=detail]{max-width:1400px!important}
html body #app .sv-conversation-overview .sv-client-header{align-items:center!important;margin-bottom:12px!important;gap:16px}
.sv-client-heading{min-width:0;flex:1}
.sv-client-name-line{display:flex;align-items:center;gap:12px;min-width:0}
.sv-client-monogram{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:16px;background:#e6eee8;color:#356048;font-size:24px;font-weight:600}
html body #app .sv-client-name-line h1{font-size:30px!important;line-height:1.3!important;margin:0!important;overflow-wrap:anywhere}
html body #app .sv-conversation-overview .sv-client-back{min-height:36px!important;font-size:12px!important;padding:4px 0!important;margin:0 0 8px!important}
.sv-conversation-overview .sv-client-state>label>span{display:none}
html body #app .sv-conversation-overview .sv-client-state select{border:0!important;background:#f0f4f1!important;border-radius:8px!important;min-height:44px;width:auto;min-width:100px;padding:8px 12px!important}
.sv-conversation-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}
.sv-conversation-toolbar .sv-client-product{min-width:0;flex:1}
html body #app .sv-conversation-toolbar .sv-client-product>.btn{display:inline-block;max-width:100%;font-size:13px!important;line-height:1.6!important;white-space:normal;overflow-wrap:anywhere;text-align:left;color:var(--sv-muted)!important;border:0!important;background:transparent!important;padding:4px 0!important;min-height:36px!important;box-shadow:none!important}
html body #app .sv-conversation-toolbar .sv-client-actions{display:flex!important;grid-template-columns:none!important;gap:8px;margin:0;flex:none;align-items:center}
html body #app .sv-conversation-toolbar .sv-client-actions>.btn{font-size:13px!important;padding:8px 14px!important;white-space:nowrap}
.sv-conversation-toolbar .sv-client-edit{margin:0}
html body #app .sv-conversation-toolbar .sv-client-edit>summary{border:0;background:transparent;padding:10px 8px;font-size:12px;min-height:44px!important;color:var(--sv-muted)}
.sv-conversation-toolbar .sv-client-edit[open]{position:relative}
.sv-conversation-toolbar .sv-client-edit[open]>div{position:absolute;z-index:8;right:0;top:100%;min-width:240px;padding:12px;background:#fff;border:1px solid var(--sv-line);border-radius:12px;box-shadow:0 8px 28px #13281c1a}
.sv-live-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid var(--sv-line);border-bottom:1px solid var(--sv-line);padding:12px 0}
.sv-live-role{display:grid;grid-template-columns:26px minmax(0,1fr) minmax(90px,auto);align-items:center;gap:8px;min-width:0}
.sv-live-role .sv-client-role-badge{width:26px;height:26px;font-size:11px;border-radius:7px;grid-row:auto}
html body #app .sv-person-link{border:0;background:transparent;padding:4px 0;text-align:left;color:var(--sv-ink);font-size:14px;line-height:1.4;min-height:44px!important;font-weight:600;overflow-wrap:anywhere}
html body #app .sv-live-role select{border:0!important;background:#f4f7f4!important;border-radius:7px!important;width:100%;min-width:0;min-height:40px!important;padding:6px 8px!important;font-size:13px!important;color:var(--sv-ink)!important;cursor:pointer}
.sv-live-role select:disabled{background:transparent!important;color:var(--sv-muted)!important;opacity:1}
.sv-call-plan,.sv-call-concerns{display:flex;gap:8px 12px;flex-wrap:wrap;font-size:13px;line-height:1.6;margin:12px 0 0;color:var(--sv-ink)}
.sv-call-plan>span,.sv-call-concerns>span{color:var(--sv-muted)}
.sv-call-concerns{color:#80572d}
.sv-client-support{margin:4px 0 0}
.sv-client-support>summary{font-size:12px;color:var(--sv-muted);cursor:pointer;min-height:36px!important;padding:8px 0}
.sv-client-support[open]{padding-bottom:12px}
.sv-client-support .sv-client-roles{border-top:0;padding:12px 0}
.sv-client-support .sv-client-meta{font-size:12px}
html body #app .main[data-page=detail]>.tabs{margin:12px 0 0!important;gap:24px!important;background:#fff!important}
html body #app .main[data-page=detail]>.tabs button{font-size:14px!important;min-height:48px!important;padding:12px 8px!important}
/* Write in the page, rather than in a stack of boxes. */
html body #app .main[data-page=detail] .sv-conversation-notes{border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
html body #app .sv-conversation-notes form{display:block!important}
.sv-note-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 12px;background:#fff;position:sticky;top:48px;z-index:3}
html body #app .sv-note-toolbar h2{font-size:17px!important;font-weight:650!important;line-height:1.4;margin:0!important;letter-spacing:-.02em!important}
.sv-note-toolbar>div{display:flex;align-items:center;gap:12px}
.sv-note-toolbar [role=status]{font-size:12px!important;color:var(--sv-muted)!important}
html body #app .sv-note-toolbar .btn{min-height:40px!important;font-size:12px!important;padding:8px 14px!important}
.sv-note-lines{display:grid;gap:0}
html body #app .sv-conversation-notes .sv-note-line{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;gap:12px;align-items:start;min-width:0;margin:0!important;padding:12px 0!important;border-bottom:1px solid #edf1ee}
.sv-note-line>span{font-size:13px;font-weight:500;color:var(--sv-muted);line-height:1.6;padding-top:10px}
html body #app .sv-conversation-notes textarea{display:block;width:100%;max-width:100%;min-width:0;min-height:44px!important;padding:8px 10px!important;border:0!important;border-radius:6px!important;background:transparent!important;font-size:16px!important;font-weight:400;color:var(--sv-ink)!important;line-height:1.7!important;resize:none;overflow:hidden;box-shadow:none!important;transition:background-color 120ms ease}
html body #app .sv-conversation-notes textarea:hover{background:#f7f9f7!important}
html body #app .sv-conversation-notes textarea:focus{background:#f1f6f2!important}
html body #app .sv-conversation-notes textarea::placeholder{color:#66766b;opacity:1;font-size:15px;font-weight:400}
html body #app .sv-conversation-notes .sv-note-line:first-child textarea{font-size:18px!important;font-weight:550}
.sv-note-background>summary,.sv-conversation-notes .sv-original-note>summary{font-size:13px!important;padding:12px 0;min-height:44px;cursor:pointer;color:var(--sv-muted)}
.sv-note-background .sv-note-line:last-child{border-bottom:0!important}
.sv-conversation-context{margin:12px 0 4px}
.sv-conversation-context p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.sv-conversation-context p>span{font-size:12px;color:var(--sv-muted);margin-right:10px}
html body #app .main[data-page=detail] .sv-client-recent{border:0;border-radius:0;padding:8px 0;margin:0;background:transparent}
html body #app .main[data-page=detail] .sv-client-checklist{border:0;border-radius:0;margin-top:0;background:transparent;border-top:1px solid var(--sv-line)}
html body #app .main[data-page=detail] .sv-client-checklist>summary{padding:14px 0;font-size:14px;font-weight:500}
html body #app .main[data-page=detail] .sv-client-checklist>.card{padding:0!important;border:0!important;background:transparent!important}
html body #app .sv-client-checklist .flag-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
html body #app .sv-client-checklist .flag-detail{border:0!important;border-radius:0!important;background:transparent!important;padding:14px 0!important;border-bottom:1px solid var(--sv-line)!important}
html body #app .sv-client-checklist .flag-detail .flag-title{margin-bottom:8px;font-size:13px}
html body #app .sv-client-checklist .flag-detail>select{font-size:14px!important;border:0!important;background:#f3f6f3!important}
html body #app .main[data-page=detail] .sv-memo-direct,html body #app .main[data-page=detail] .sv-completion{border:0!important;border-radius:0!important;padding:20px 0!important;background:transparent!important}
html body #app .main[data-page=detail] .sv-memo-direct textarea{min-height:96px;border-color:var(--sv-line)!important;background:#f7f9f7!important}
html body #app .main[data-page=detail] .sv-memo-direct h2,html body #app .main[data-page=detail] .sv-completion h2{font-size:17px!important}
html body #app .main[data-page=detail] .sv-report-advanced{border:0!important;border-radius:0;padding:0;margin:0;border-top:1px solid var(--sv-line)!important}
@media(max-width:1100px){.sv-live-roles{grid-template-columns:1fr;gap:4px}.sv-live-role{grid-template-columns:26px minmax(0,1fr) 140px}.main[data-page=home] .dash-columns>.sv-pipeline{border-right:0!important;padding-right:0!important}.main[data-page=home] .dash-columns>.dash-detail,.main[data-page=home] .dash-columns>.dash-history{padding-left:0!important}}
html[data-sv-layout=phone] body #app .main{border-radius:0!important}
html[data-sv-layout=phone] body #app .top h1{font-size:26px!important}
html[data-sv-layout=phone] body #app .sv-client-name-line h1{font-size:25px!important}
html[data-sv-layout=phone] .sv-client-monogram{width:40px;height:40px;border-radius:13px;font-size:20px}
html[data-sv-layout=phone] .sv-conversation-overview .sv-client-header{gap:10px!important}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-back{margin-bottom:4px!important}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-state select{min-width:90px;max-width:125px;padding:8px!important;font-size:14px!important}
html[data-sv-layout=phone] .sv-conversation-toolbar{gap:8px;flex-wrap:wrap;margin-bottom:10px}
html[data-sv-layout=phone] .sv-conversation-toolbar .sv-client-product{flex-basis:100%;order:2}
html[data-sv-layout=phone] body #app .sv-conversation-toolbar .sv-client-product>.btn{font-size:12px!important;min-height:32px!important}
html[data-sv-layout=phone] .sv-conversation-toolbar .sv-client-actions{margin-left:auto!important}
html[data-sv-layout=phone] body #app .sv-conversation-toolbar .sv-client-actions>.btn{font-size:12px!important;min-height:40px!important;padding:8px 12px!important}
html[data-sv-layout=phone] .sv-live-roles{grid-template-columns:1fr;gap:0;padding:4px 0}
html[data-sv-layout=phone] .sv-live-role{grid-template-columns:24px minmax(0,1fr) 126px;gap:8px;min-height:44px}
html[data-sv-layout=phone] body #app .sv-live-role select{font-size:14px!important;min-height:40px!important}
html[data-sv-layout=phone] body #app .sv-person-link{font-size:14px!important}
html[data-sv-layout=phone] .sv-client-support>summary{min-height:36px!important;padding:8px 0;font-size:12px}
html[data-sv-layout=phone] body #app .main[data-page=detail]>.tabs{margin:8px 0 0!important;gap:16px!important;grid-template-columns:1fr 1fr 1.4fr!important}
html[data-sv-layout=phone] body #app .main[data-page=detail]>.tabs button{font-size:13px!important;padding:10px 0!important}
html[data-sv-layout=phone] .sv-note-toolbar{padding:12px 0 8px;gap:8px}
html[data-sv-layout=phone] body #app .sv-note-toolbar h2{font-size:16px!important}
html[data-sv-layout=phone] .sv-note-toolbar>div{gap:8px}
html[data-sv-layout=phone] body #app .sv-note-toolbar .btn{font-size:12px!important;min-height:44px!important}
html[data-sv-layout=phone] body #app .sv-conversation-notes .sv-note-line{grid-template-columns:84px minmax(0,1fr)!important;gap:8px;padding:8px 0!important}
html[data-sv-layout=phone] .sv-note-line>span{font-size:12px;line-height:1.5;padding-top:11px}
html[data-sv-layout=phone] body #app .sv-conversation-notes textarea{font-size:16px!important;padding:8px!important}
html[data-sv-layout=phone] body #app .sv-conversation-notes .sv-note-line:first-child textarea{font-size:17px!important}
html[data-sv-layout=phone] .sv-call-plan,html[data-sv-layout=phone] .sv-call-concerns{font-size:12px;margin-top:8px;gap:4px 8px}
html[data-sv-layout=phone] body #app .sv-client-checklist .flag-list{grid-template-columns:1fr 1fr!important;gap:0 16px}
html[data-sv-layout=phone] body #app .sv-client-checklist .flag-detail>select{font-size:16px!important}
html[data-sv-layout=phone] body #app .main[data-page=home] .dash-columns>.sv-pipeline{border-right:0!important;padding-right:0!important}
html[data-sv-layout=phone] body #app .main[data-page=home] .dash-columns>.dash-detail,html[data-sv-layout=phone] body #app .main[data-page=home] .dash-columns>.dash-history{padding-left:0!important}
.sv-conversation-context>summary{font-size:13px;color:var(--sv-muted);cursor:pointer;padding:8px 0}
html body #app .sv-conversation-overview .sv-client-header{margin-bottom:8px!important}
html body #app .sv-conversation-overview .sv-client-back{display:grid;place-items:center;width:36px!important;min-width:36px!important;height:44px;min-height:44px!important;font-size:27px!important;margin:0!important;padding:0!important;flex:none}
.sv-client-name-line{gap:10px}
.sv-conversation-toolbar{margin-bottom:6px}
html body #app .sv-conversation-toolbar .sv-client-actions{margin:0!important}
html[data-sv-layout=phone] .sv-conversation-toolbar{flex-wrap:nowrap;gap:8px;margin-bottom:6px}
html[data-sv-layout=phone] .sv-conversation-toolbar .sv-client-product{flex-basis:auto;order:0}
html[data-sv-layout=phone] body #app .sv-client-name-line h1{font-size:24px!important}
html[data-sv-layout=phone] .sv-client-name-line .sv-client-monogram{display:none}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-back{margin:0!important;min-width:36px!important;width:36px!important}
html[data-sv-layout=phone] .sv-live-roles{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;padding:8px 0 0}
html[data-sv-layout=phone] .sv-live-role{grid-template-columns:22px minmax(0,1fr);gap:0 5px;align-items:center}
html[data-sv-layout=phone] .sv-live-role .sv-client-role-badge{height:22px;width:22px;font-size:11px}
html[data-sv-layout=phone] body #app .sv-person-link{font-size:13px!important;min-height:32px!important;line-height:1.35}
html[data-sv-layout=phone] body #app .sv-live-role select{grid-column:1/-1;font-size:13px!important;min-height:44px!important;padding:6px 3px!important;background:transparent!important;border-radius:0!important}
html[data-sv-layout=phone] .sv-client-support>summary{padding:6px 0;min-height:32px!important}
html[data-sv-layout=phone] body #app .main[data-page=detail]>.tabs{margin-top:4px!important}
html[data-sv-layout=phone] .sv-note-line>span{font-size:13px;font-weight:500;padding-top:11px}
html body #app .sv-conversation-overview{margin-bottom:0!important}
html[data-sv-layout=phone] body #app .sv-person-link{min-height:44px!important}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-support>summary{min-height:44px!important}
html body #app .sv-client-back{position:relative}
html body #app .sv-client-back::before{content:'';position:absolute;inset:0 -4px}
.kb-next{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;line-height:1.55!important}
html body #app .sv-memo-direct form{gap:10px!important}
html body #app .sv-memo-direct .sv-note-toolbar{padding-top:0}
html body #app .sv-memo-direct .sv-note-toolbar h2{margin:0!important}
html body #app .main[data-page=detail] .sv-memo-direct .sv-memo-write textarea{border:0!important;background:#f3f7f3!important;border-radius:10px!important;min-height:80px!important;padding:12px 14px!important;font-size:16px!important;overflow:hidden;resize:none}
.sv-memo-date{margin:0}
.sv-memo-date>summary{font-size:12px;color:var(--sv-muted);cursor:pointer;min-height:40px!important;padding:8px 0}
.sv-memo-date>label{max-width:220px}
.sv-memo-timeline{margin-top:18px}
.sv-memo-timeline article:first-child{border-top:0}
html[data-sv-layout=phone] body #app .sv-conversation-overview select,html[data-sv-layout=phone] body #app .sv-live-role select{font-size:16px!important}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-state select{max-width:148px!important}
html body #app .sv-live-role .sv-person-select{border:0!important;background:transparent!important;color:var(--sv-ink)!important;font-size:14px!important;font-weight:600;padding:6px 2px!important;min-height:44px!important;width:100%;min-width:0}
html[data-sv-layout=phone] body #app .sv-live-role .sv-person-select{grid-column:auto;font-size:16px!important;letter-spacing:-.04em}
html[data-sv-layout=phone] body #app .sv-live-role>[data-client-live-stage]{grid-column:1/-1}
html body #app .main[data-page=detail] .sv-conversation-toolbar .sv-client-product>.btn{min-height:44px!important}
html body #app .sv-conversation-overview .sv-client-support>summary{min-height:40px!important}
html body #app .sv-conversation-overview .sv-client-back,html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-back{width:44px!important;min-width:44px!important}
html[data-sv-layout=phone] body #app .sv-conversation-overview .sv-client-support>summary,html[data-sv-layout=phone] body #app .sv-memo-date>summary{min-height:44px!important}
/* Direct role dates and visible concerns. */
html body #app .sv-live-role{grid-template-columns:26px minmax(0,1fr);align-content:start;gap:4px 8px}
html body #app .sv-live-role>[data-client-live-stage]{grid-column:1/-1}
.sv-inline-plan{grid-column:1/-1;display:grid;gap:4px;margin-top:2px;min-width:0}
.sv-inline-plan>label{display:grid;grid-template-columns:66px minmax(0,1fr);gap:6px;align-items:center;font-size:12px;color:var(--sv-muted)}
html body #app .sv-inline-plan input,html body #app .sv-inline-plan select{min-width:0;width:100%;min-height:44px!important;max-width:100%;border:0!important;background:#f3f6f3!important;border-radius:6px!important;padding:6px 8px!important;font-size:14px!important;box-sizing:border-box;color:var(--sv-ink)!important}
.sv-inline-plan [data-role-plan-status]{font-size:12px;color:var(--sv-muted);min-height:18px}
html body #app .sv-inline-plan>button[hidden]{display:none!important}
.sv-live-concerns{padding:14px 0;border-bottom:1px solid var(--sv-line);margin-bottom:6px}
.sv-live-concerns form>label{display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;align-items:start}
.sv-live-concerns label>span{font-size:13px;color:#80572d;padding-top:10px}
html body #app .sv-live-concerns textarea{min-height:44px!important;border:0!important;border-radius:6px!important;background:#f6f8f5!important;padding:8px 10px!important;font-size:16px!important;resize:vertical;line-height:1.6!important}
.sv-live-concerns [data-record-status]{display:block;text-align:right;font-size:12px;color:var(--sv-muted)}
.sv-live-concerns article{margin:8px 0 0 148px;font-size:14px;line-height:1.6}
.sv-live-concerns article>strong{font-size:12px;color:#80572d}
.sv-live-concerns article p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.sv-conversation-toolbar .sv-client-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
html body #app .sv-conversation-toolbar .sv-client-actions>.btn{min-height:44px;font-size:13px;padding:8px 12px;background:#f0f4f0;border:0}
.sv-checklist-heading{display:flex;justify-content:space-between;align-items:center;padding:16px 0;gap:12px}
.sv-checklist-heading h2{margin:0;font-size:16px}
.sv-checklist-heading>span{font-size:12px;color:var(--sv-muted)}
html body #app .sv-client-checklist .section-title{display:none}
html body #app .sv-client-checklist .sv-flag-notes>summary{display:none}
html body #app .sv-client-checklist .sv-flag-notes textarea{min-height:44px!important;line-height:1.5;font-size:14px!important}
.sv-history-records{margin-top:16px;font-size:14px}
.sv-team-revenue-grid h3{margin:0}
html body #app .sv-team-revenue-grid h3>button{border:0;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:12px;font:inherit;color:inherit;min-height:44px;width:100%;padding:0;text-align:left;cursor:pointer}
.sv-team-selected{outline:2px solid var(--sv-accent)}
.sv-team-drill{margin-top:24px;border-top:1px solid var(--sv-line);padding-top:20px;outline:none}
.sv-team-drill>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sv-team-drill h3{font-size:20px;margin:0}
.sv-team-drill-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.sv-team-drill-totals>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.sv-team-drill-totals span{font-size:12px;color:var(--sv-muted)}
.sv-team-drill-totals strong{font-size:24px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sv-team-detail-group{margin-top:24px;overflow-x:auto}
.sv-team-detail-group h4{font-size:15px;margin:0 0 12px}
.sv-team-detail-head,.sv-team-detail-row{display:grid;grid-template-columns:minmax(110px,1.3fr) repeat(3,minmax(95px,1fr));gap:12px;min-width:460px;padding:12px 0;border-bottom:1px solid var(--sv-line);font-size:14px}
.sv-team-detail-head{color:var(--sv-muted);font-size:12px}
.sv-team-detail-head>span:not(:first-child),.sv-team-detail-row>span{text-align:right;font-variant-numeric:tabular-nums}
.sv-team-detail-row>strong{overflow-wrap:anywhere}
.sv-team-customer-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(140px,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--sv-line);padding:8px 0;font-size:14px;min-width:460px}
html body #app .sv-team-customer-row>button{min-height:44px;border:0;background:transparent;color:var(--sv-accent);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.sv-team-customer-row>span{font-size:12px;color:var(--sv-muted)}
.sv-team-customer-row>strong{text-align:right;font-variant-numeric:tabular-nums}
.sv-team-empty{font-size:14px;color:var(--sv-muted);padding:12px 0}
html[data-sv-layout=phone] body #app .sv-inline-plan>label{display:block}
html[data-sv-layout=phone] body #app .sv-inline-plan>label>span{display:block;font-size:11px;padding-top:2px}
html[data-sv-layout=phone] body #app .sv-inline-plan input,html[data-sv-layout=phone] body #app .sv-inline-plan select{font-size:16px!important;padding:6px 2px!important}
html[data-sv-layout=phone] .sv-live-concerns form>label{grid-template-columns:1fr;gap:4px}
html[data-sv-layout=phone] .sv-live-concerns article{margin-left:0}
html[data-sv-layout=phone] .sv-conversation-toolbar{align-items:flex-start}
html[data-sv-layout=phone] .sv-team-drill-totals{gap:8px}
html[data-sv-layout=phone] .sv-team-drill-totals strong{font-size:18px}
/* Quiet, aligned personal and comparison figures. */
html[data-sv-layout=phone] .sv-mobile-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.sv-personal,.sv-person-analysis{padding:24px 0}
.sv-personal>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sv-personal h2,.sv-person-analysis h2{font-size:22px;letter-spacing:-.03em;margin:0 0 20px}
.sv-person-controls{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.sv-person-controls>label{display:flex;flex-direction:column;gap:6px;min-width:120px;font-size:12px;color:var(--sv-muted)}
.sv-person-range{font-size:13px;color:var(--sv-muted);margin:12px 0 20px}
.sv-person-figures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;padding:20px 0;border-top:1px solid var(--sv-line);border-bottom:1px solid var(--sv-line)}
.sv-person-figures>label{display:flex;flex-direction:column;gap:12px;min-width:0;font-size:13px;color:var(--sv-muted)}
html body #app .sv-person-figures input{min-width:0;min-height:56px;font-size:32px!important;font-weight:600!important;font-variant-numeric:tabular-nums;letter-spacing:-.04em;border:0!important;border-bottom:1px solid #cbd9cf!important;background:#f6f8f5!important;border-radius:6px 6px 0 0!important;padding:8px!important;color:var(--sv-ink)!important}
.sv-person-save{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0 24px;font-size:12px;color:var(--sv-muted)}
.sv-person-money,.sv-person-ratios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px 0;border-bottom:1px solid var(--sv-line)}
.sv-person-money>div,.sv-person-ratios>div{display:flex;flex-direction:column;gap:10px;min-width:0}
.sv-person-money span,.sv-person-ratios span{font-size:12px;color:var(--sv-muted)}
.sv-person-money strong{font-size:28px;letter-spacing:-.04em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sv-person-ratios strong{font-size:22px;font-variant-numeric:tabular-nums}
.sv-person-basis{font-size:12px;color:var(--sv-muted);line-height:1.7;margin-top:18px}
.sv-person-finance{margin-top:20px}
.sv-person-finance h3{font-size:14px;margin:20px 0 8px}
.sv-person-finance-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1fr) auto;align-items:center;gap:12px;border-bottom:1px solid var(--sv-line);padding:10px 0;font-size:14px}
html body #app .sv-person-finance-row button,.sv-reason-evidence button{font:inherit;border:0;background:none;color:var(--sv-accent);text-align:left;min-height:44px;cursor:pointer}
.sv-person-finance-row span{font-size:12px;color:var(--sv-muted)}
.sv-person-finance-row strong{font-variant-numeric:tabular-nums}
.sv-analysis-table{overflow-x:auto;margin:16px 0}
.sv-analysis-table table{width:100%;min-width:980px;border-collapse:collapse;font-size:14px}
.sv-analysis-table td,.sv-analysis-table th{padding:16px 12px;border-bottom:1px solid var(--sv-line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.sv-analysis-table th:first-child{text-align:left;position:sticky;left:0;background:#fff}
.sv-analysis-table thead th{font-size:12px;color:var(--sv-muted);font-weight:500}
.sv-reason-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sv-reason-grid>div{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--sv-line);font-size:14px}
.sv-reason-grid strong{font-size:24px;font-variant-numeric:tabular-nums}
.sv-reason-grid small{font-size:11px;color:var(--sv-muted);margin-left:4px}
.sv-reason-evidence article{padding:16px 0;border-bottom:1px solid var(--sv-line);font-size:14px}
.sv-reason-evidence header{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.sv-reason-evidence header span{font-size:12px;color:var(--sv-muted)}
.sv-reason-evidence p{white-space:pre-wrap;line-height:1.7;overflow-wrap:anywhere}
html[data-sv-layout=phone] .sv-personal,html[data-sv-layout=phone] .sv-person-analysis{padding:16px 0}
html[data-sv-layout=phone] .sv-person-figures{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}
html[data-sv-layout=phone] body #app .sv-person-figures input{font-size:26px!important;min-height:52px}
html[data-sv-layout=phone] .sv-person-money{gap:10px}
html[data-sv-layout=phone] .sv-person-money strong{font-size:20px}
html[data-sv-layout=phone] .sv-person-ratios{gap:10px}
html[data-sv-layout=phone] .sv-person-ratios strong{font-size:20px}
html[data-sv-layout=phone] .sv-person-finance-row{grid-template-columns:minmax(0,1fr) auto}
html[data-sv-layout=phone] .sv-person-finance-row span{grid-column:1;grid-row:2}
html[data-sv-layout=phone] .sv-person-finance-row strong{grid-column:2;grid-row:1/3}
html[data-sv-layout=phone] .sv-reason-grid{grid-template-columns:1fr 1fr;gap:12px}
.sv-analysis-mobile{display:none}
html[data-sv-layout=phone] .sv-person-money,html[data-sv-layout=phone] .sv-team-drill-totals{display:flex;flex-direction:column;gap:0;padding:8px 0}
html[data-sv-layout=phone] .sv-person-money>div,html[data-sv-layout=phone] .sv-team-drill-totals>div{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;padding:12px 0;gap:16px}
html[data-sv-layout=phone] .sv-person-money strong,html[data-sv-layout=phone] .sv-team-drill-totals strong{font-size:24px;white-space:nowrap;overflow-wrap:normal}
html[data-sv-layout=phone] .sv-team-detail-head,html[data-sv-layout=phone] .sv-team-detail-row{min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px}
html[data-sv-layout=phone] .sv-team-detail-head>span:first-child{display:none}
html[data-sv-layout=phone] .sv-team-detail-row>strong{grid-column:1/-1;font-size:14px;margin-bottom:4px}
html[data-sv-layout=phone] .sv-team-detail-row>span,html[data-sv-layout=phone] .sv-team-detail-head>span{text-align:right}
html[data-sv-layout=phone] .sv-team-customer-row{min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
html[data-sv-layout=phone] .sv-team-customer-row>span{grid-column:1;grid-row:2}
html[data-sv-layout=phone] .sv-team-customer-row>strong{grid-column:2;grid-row:1/3}
html[data-sv-layout=phone] .sv-analysis-table{display:none}
html[data-sv-layout=phone] .sv-analysis-mobile{display:block}
html[data-sv-layout=phone] .sv-analysis-mobile article{padding:20px 0;border-bottom:1px solid var(--sv-line)}
html[data-sv-layout=phone] .sv-analysis-mobile h3{font-size:17px;margin:0 0 16px}
html[data-sv-layout=phone] .sv-analysis-mobile article>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}
html[data-sv-layout=phone] .sv-analysis-mobile article>div>div{display:flex;flex-direction:column;gap:8px;min-width:0}
html[data-sv-layout=phone] .sv-analysis-mobile span{font-size:11px;color:var(--sv-muted)}
html[data-sv-layout=phone] .sv-analysis-mobile strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-sv-layout=phone] .sv-analysis-mobile article>div>div:nth-child(4){grid-column:1/-1;flex-direction:row;align-items:baseline;justify-content:space-between}
html[data-sv-layout=phone] .sv-analysis-mobile article>div>div:nth-child(4)>strong{font-size:24px;white-space:nowrap}
.sv-month-trend{margin-top:24px}
.sv-month-trend h3{font-size:16px;margin:0 0 16px}
.sv-month-values{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 20px}
.sv-month-values>div{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-bottom:1px solid var(--sv-line)}
.sv-month-values span{font-size:12px;color:var(--sv-muted)}
.sv-month-values strong{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.sv-month-values .selected{border-bottom:2px solid var(--sv-accent)}
html[data-sv-layout=phone] .sv-month-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
html[data-sv-layout=phone] .sv-month-values strong{font-size:24px}
html body #app .sv-conversation-toolbar .sv-client-actions>.btn{min-height:44px!important}
.sv-date-shell{position:relative;display:flex;align-items:center;justify-content:space-between;gap:4px;background:#f3f6f3;border-radius:6px;min-width:0;min-height:44px;padding:6px 8px;box-sizing:border-box;color:var(--sv-ink);font-variant-numeric:tabular-nums}
.sv-date-shell>span{font-size:14px;white-space:nowrap}
.sv-date-shell>svg{width:16px;height:16px;flex:none;color:var(--sv-muted)}
html body #app .sv-inline-plan .sv-date-shell>input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;min-width:0}
.sv-date-shell:focus-within{outline:2px solid var(--sv-accent);outline-offset:2px}
.sv-date-shell:has(input:disabled){opacity:.55}
html[data-sv-layout=phone] .sv-date-shell{padding:6px 3px;gap:2px}
html[data-sv-layout=phone] .sv-date-shell>span{font-size:12px}
html[data-sv-layout=phone] .sv-date-shell>svg{width:13px;height:13px}
html[data-sv-layout=phone] body #app .main[data-page=detail] .sv-conversation-toolbar .sv-client-actions>.btn{min-height:44px!important}
