:root{font-family:Inter,system-ui,sans-serif;color:#17263d;background:#f1f5f9;line-height:1.5;--accent:#174b9b;--border:#d8e2ef}
*{box-sizing:border-box}
body{margin:0;font-size:.875rem}
header{background:white;border-bottom:1px solid var(--border)}
.bar{max-width:1220px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:15px 24px;gap:14px}
.brand,nav,.actions{display:flex;align-items:center;gap:18px}
.brand{font-weight:700;color:#162744;text-decoration:none}
.brand img{width:108px;max-height:36px;object-fit:contain}
nav form{margin:0}
main{max-width:1220px;margin:auto;padding:26px 24px 48px}
h1,h2,h3,p{margin:0 0 8px}
h1{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.05em;line-height:1.13}
h2{font-size:1.0625rem}
p,small,.metric span{color:#4c607d}
a{color:var(--accent);text-underline-offset:3px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.card{background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 3px 10px #12375908}
.metrics,.grid,.filters{display:grid;gap:14px}
.metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric{padding:12px 16px;display:grid;gap:6px}
.metric strong{font-size:1.625rem;line-height:1.15}
.filters{grid-template-columns:minmax(150px,2fr) minmax(135px,1fr) auto;align-items:end;padding:12px 16px}
.editor,.history,.sign{padding:16px;margin-bottom:14px}
.sign{max-width:450px;margin:8vh auto}
.editor form,.sign form,.editor{display:grid;gap:12px}
button,.button{justify-self:start;background:var(--accent);color:white;font:inherit;font-weight:700;padding:6px 12px;border-radius:8px;border:1px solid transparent;cursor:pointer;text-decoration:none;white-space:nowrap}
.quiet{color:var(--accent);background:#eef5ff;border-color:#dbe8fa}
label{display:grid;gap:4px;font-size:.8125rem;font-weight:600}
input,select,textarea{width:100%;background:white;border:1px solid #aebed1;border-radius:7px;padding:6px 9px;font:inherit;color:#17263d;min-height:34px}
textarea{resize:vertical}
:focus-visible{outline:3px solid #2473d7;outline-offset:2px}
.scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;min-width:540px}
th,td{padding:9px 13px;border-top:1px solid var(--border)}
th{background:#f8fafc;font-size:.84rem;color:#3d516b}
td small{display:block}
.badge{display:inline-block;background:#eaf2fe;color:#1c4b88;border-radius:20px;padding:2px 9px;font-size:.85rem;white-space:nowrap}
.empty{text-align:center;padding:34px;color:#516681}
.revision{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;border-top:1px solid var(--border)}
.revision p{overflow-wrap:anywhere}
.preserve{white-space:pre-wrap}
.error{color:#9c1c27}
.error:empty{display:none}
@media(max-width:650px){main{padding:24px 14px}.bar{padding:12px 14px}.brand span{display:none}.hero,.revision{align-items:flex-start;flex-direction:column}.metrics{gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:10px;font-size:.8rem}.metric strong{font-size:1.55rem}.grid,.filters{grid-template-columns:1fr}.sign{margin:3vh auto}}

/* Portal de gestão e acessos da equipe. */
.bar{display:grid;grid-template-columns:auto 1fr auto;gap:20px;min-height:62px;padding-block:8px}
.brand{gap:16px}.brand span{font-size:.86rem;color:#63718a;border-left:1px solid var(--border);padding-left:16px;font-weight:500}
nav{gap:4px;justify-content:center;flex-wrap:wrap}
nav a{padding:6px 9px;border-radius:7px;text-decoration:none;color:#516078;font-size:.9rem;font-weight:600;white-space:nowrap}
nav a:hover{background:#f4f7fb;color:#174b9b}nav a[aria-current=page]{background:#eaf1fc;color:#174b9b}
.account{display:flex;align-items:center;gap:14px}.account span{max-width:190px;font-size:.78rem;color:#63718a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account form{margin:0}.account button{font-size:.82rem;padding:7px 12px}
.welcome{padding:clamp(40px,8vw,100px) 0;min-height:65vh;max-width:850px}
.welcome-mark{width:54px;height:5px;border-radius:3px;background:#e16e58;margin-bottom:30px}
.welcome h1{font-size:clamp(2.25rem,5vw,3.5rem);font-weight:650;letter-spacing:-.065em;line-height:1.02;margin-bottom:28px}
.welcome p{font-size:clamp(.875rem,2vw,1rem);max-width:460px;line-height:1.65}
.sign{padding:24px;max-width:420px;margin:10vh auto;box-shadow:0 12px 40px #17263d08}
.sign h1{font-size:1.75rem;max-width:320px;margin-bottom:14px}.sign p{margin-bottom:26px;line-height:1.6}
.google-button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:40px;padding:10px 12px;border:1px solid #747775;border-radius:4px;background:#fff;color:#1f1f1f;font-family:Arial,sans-serif;font-size:14px;font-weight:500;line-height:20px;text-decoration:none}
.google-button img{width:20px;height:20px;object-fit:contain;flex-shrink:0}.google-button:hover{background:#f7f9fc;box-shadow:0 1px 3px #3c404326}
.hero{margin-bottom:18px}.hero p{margin-top:4px;margin-bottom:0}.people-count{font-size:.9rem;color:#63718a;white-space:nowrap}
.access-card{overflow:hidden}.access-intro{padding:14px 16px}.access-intro h2{margin-bottom:6px}.access-intro p{font-size:.9rem;max-width:700px;line-height:1.6}
.access-table{min-width:690px}.access-table th{font-size:.75rem;font-weight:600;color:#63718a;padding:9px 13px}.access-table td{padding:10px 13px;vertical-align:middle}
.access-table td:first-child{width:32%;font-size:.9rem}.access-table td strong{font-weight:600;overflow-wrap:anywhere}.access-table small{font-size:.75rem;margin-top:5px}
.access-table select{font-size:.83rem;min-width:105px;border-color:#d8e2ef;padding:5px 8px;background:#fff}
.toggle{display:inline-flex;position:relative;vertical-align:middle;cursor:pointer;width:42px;height:24px}
.toggle input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer;min-height:0;z-index:1}
.toggle span{width:42px;height:24px;border-radius:14px;background:#c4cdd9;transition:background .15s}
.toggle span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:white;border-radius:50%;box-shadow:0 1px 3px #17263d26;transition:transform .15s}
.toggle input:checked+span{background:#174b9b}.toggle input:checked+span::after{transform:translateX(18px)}
.toggle input:focus-visible+span{outline:3px solid #2473d7;outline-offset:3px}.toggle input:focus-visible{outline:none}
.save-access{width:1%}.save-access button{font-size:.83rem;padding:5px 10px}
.role-guide{display:flex;gap:36px;margin-top:20px;max-width:940px}.role-guide p{font-size:.8rem;line-height:1.7;flex:1}.role-guide strong{color:#3c4d65;font-weight:600}
.notice{border:1px solid #badbcc;background:#edf8f1;color:#236645;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:.9rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.bar{grid-template-columns:auto auto;gap:14px 24px}nav{grid-column:1/-1;grid-row:2;justify-content:flex-start}.account{justify-self:end}.account span{max-width:none}.brand span{display:inline}.bar{padding-top:18px;padding-bottom:12px}}
@media(max-width:650px){.bar{gap:14px;min-height:0}.brand span{display:none}.account{gap:10px}.account span{max-width:135px;font-size:.7rem}nav{gap:3px;flex-wrap:nowrap;overflow-x:auto;margin:0 -14px;padding:0 14px 2px}nav a{font-size:.8rem;padding:8px 10px}main{padding-top:32px}.welcome{padding:50px 8px;min-height:60vh}.sign{padding:28px 24px;margin:5vh auto}.sign h1{font-size:1.5rem}.hero{gap:12px}.access-intro{padding:10px 13px}.access-intro p{font-size:.85rem}.access-card .scroll{overflow:visible}.access-table,.access-table tbody{display:block;min-width:0}.access-table thead{display:none}.access-table tr{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px;border-top:1px solid var(--border)}.access-table td{display:block;border:0;padding:0!important;width:auto!important}.access-table td::before{content:attr(data-label);display:block;font-size:.72rem;font-weight:600;color:#63718a;margin-bottom:8px}.access-table td:first-child{grid-column:1/-1}.access-table td:first-child::before{display:none}.access-table select{min-width:0;max-width:100%;width:100%}.access-table .save-access{display:flex;align-items:end;justify-content:end}.role-guide{display:block;margin:20px 6px}.role-guide p{margin-bottom:12px}}

/* Projetos e relatórios. */
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:16px}
.project-card{padding:15px;min-width:0}
.project-card h2{font-size:1.125rem;margin:10px 0 5px;overflow-wrap:anywhere}
.project-card h2 a,.work-card h3 a{color:inherit}
.project-card p,.project-card small,.work-card small{overflow-wrap:anywhere}
.project-card progress{width:100%;height:10px;display:block;margin:18px 0 12px;accent-color:var(--accent)}
.project-line,.project-actions{display:flex;align-items:center;gap:10px}
.project-line{justify-content:space-between}
.project-actions{flex-wrap:wrap}
.project-dates{margin:-14px 0 20px}
.project-team{border:1px solid var(--border);border-radius:8px;padding:12px 16px}
.project-team legend{font-weight:600}
.project-team label{display:flex;align-items:center;overflow-wrap:anywhere}
.project-team input{width:16px;min-height:16px;flex:none}
.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.board-lane{border:1px solid var(--border);border-top:3px solid #8195ac;background:#eaf0f7;border-radius:12px;padding:12px;min-width:0}
.board-lane:nth-child(2){border-top-color:#426fa9}
.board-lane:nth-child(3){border-top-color:#b86744}
.board-lane:nth-child(4){border-top-color:#41866b}
.board-lane h2{font-size:1rem;margin:0}
.board-lane .project-line{margin-bottom:10px}
.board-lane .project-line span{color:#4c607d;font-size:.85rem}
.work-card{padding:12px;margin-bottom:9px}
.work-card:last-child{margin-bottom:0}
.work-card h3{font-size:1rem;margin:7px 0;overflow-wrap:anywhere}
.work-card small{display:block}
.work-card .blocker{color:#913928;font-size:.88rem;margin:8px 0 0;overflow-wrap:anywhere}
.project-overdue{color:#9e3b2b}
.lane-empty{font-size:.88rem;margin:6px 0}
.timeline{list-style:none;padding:0;margin:2px 0 0}
.timeline li{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:start;padding:10px 0;break-inside:avoid}
.timeline time{font-size:.82rem;color:#48627f;padding-top:4px}
.timeline li div{position:relative;border-left:2px solid #7398c9;padding-left:14px;overflow-wrap:anywhere}
.timeline li div::before{content:"";position:absolute;left:-5px;top:8px;width:8px;height:8px;border-radius:50%;background:#174b9b}
.timeline li small{display:block;margin-top:4px}
.status-report{max-width:850px;margin:0 auto;padding:clamp(20px,5vw,44px)}
.status-report h1,.status-report p,.report-list li{overflow-wrap:anywhere}
.report-cover{margin-bottom:21px;border-bottom:3px solid #174b9b;padding-bottom:20px}
.report-cover img{width:130px;margin:0 0 15px}
.report-cover h1{margin-bottom:10px}
.status-report section{padding:15px 0 10px;border-bottom:1px solid var(--border)}
.status-report section:last-child{border-bottom:0}
.status-report section h2{break-after:avoid}
.report-list{list-style:none;padding:0;margin:0}
.report-list li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;break-inside:avoid}
.report-list small{white-space:nowrap}
.print-help{max-width:850px;margin:0 auto 18px}
@media(max-width:900px){.board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.board{grid-template-columns:1fr}.timeline li{grid-template-columns:80px 1fr;gap:8px}}
@media print{
  @page{size:A4;margin:13mm}
  :root,body{background:white}
  body{font-size:11pt}.status-report h1{font-size:23pt}.status-report h2{font-size:13pt}
  body>header,.print-help{display:none}
  body>main{margin:0;padding:0;max-width:none}
  .status-report{padding:0;margin:0;max-width:none;border:0;box-shadow:none}
  .report-cover{break-inside:avoid}
}
.work-card details{font-size:.82rem;margin-top:8px;overflow-wrap:anywhere}
.work-card details p{margin:6px 0}
.allocation-editor{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px;border-top:1px solid var(--border);padding:12px 0}
.development-board{display:flex;overflow-x:auto;align-items:flex-start}
.development-board .board-lane{flex:0 0 230px}
.stage-row{display:grid;grid-template-columns:minmax(140px,1fr) 2fr 32px;gap:12px;align-items:center}
.stage-row progress{width:100%;accent-color:#174b9b}
.person-0{border-left:4px solid #255aab}.person-1{border-left:4px solid #8d4c9d}.person-2{border-left:4px solid #237e6a}.person-3{border-left:4px solid #a65c2b}.person-4{border-left:4px solid #3c799a}.person-5{border-left:4px solid #a2435a}.person-6{border-left:4px solid #647532}.person-7{border-left:4px solid #5e58a0}
@media(max-width:850px){.allocation-editor{grid-template-columns:1fr 1fr}.allocation-editor>label:first-child{grid-column:1/-1}}
@media print{.stage-row progress{print-color-adjust:exact}.metrics{break-inside:avoid}.metric strong{font-size:20px}}

.user-registration{max-width:680px}
.user-registration fieldset{margin:0}
.user-registration form p,.user-registration .error{margin:0}

/* Saúde comercial. */
section[aria-label="Saúde comercial"]{margin:24px 0}
section[aria-label="Saúde comercial"]>h2{margin-bottom:12px}
section[aria-label="Saúde comercial"]>p{font-size:.78rem;max-width:1000px;margin:12px 0 20px}
section[aria-label="Saúde comercial"] .editor p{margin:0}

/* Commercial Excellence — a quiet, data-led workspace, scoped to the CRM. */
.commercial-shell{--ink:#1c2c43;--muted:#69788c;--line:#e2e7ee;color:var(--ink);font-variant-numeric:tabular-nums}
main:has(.commercial-shell){max-width:1440px;padding-top:0}
body:has(.commercial-shell){background:#f8f9fb}
.bar:has(a[href="/comercial"]){max-width:1440px}
.commercial-nav{justify-content:flex-start;flex-wrap:nowrap;overflow:auto;gap:24px;border-bottom:1px solid var(--line);padding:0;margin-bottom:28px;scrollbar-width:thin}
.commercial-nav a{padding:17px 0 14px;border-radius:0;border-bottom:2px solid transparent;font-size:.82rem;font-weight:500;color:#69788c}
.commercial-nav a[aria-current=page]{background:transparent;border-bottom-color:#284d86;color:#284d86}
.commercial-nav a:hover{background:transparent;color:#1c2c43}
.commercial-heading{margin-bottom:24px;align-items:center}
.commercial-heading h1{font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.045em;font-weight:650;margin-bottom:9px}
.commercial-heading .eyebrow{font-size:.64rem;font-weight:650;letter-spacing:.14em;color:#6c7c91;margin-bottom:13px}
.commercial-heading p{font-size:.83rem;color:#69788c}
.commercial-shell .button,.commercial-shell button{font-weight:550;border-radius:5px;padding:8px 13px;font-size:.8rem;background:#284d86}
.commercial-shell .button span{margin-left:14px}
.commercial-shell .quiet{background:white;color:#36516f;border-color:#d8dfe8}
.commercial-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 0 22px;border-bottom:1px solid var(--line);margin-bottom:26px;align-items:end}
.commercial-filters label{font-weight:500;color:#65758a;font-size:.72rem;min-width:0}
.commercial-shell input,.commercial-shell select{border-color:#d8dfe8;border-radius:5px;min-height:35px;font-size:.8rem;max-width:100%}
.commercial-filters button{justify-self:stretch;min-height:35px}
.commercial-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:24px}
.commercial-metric{padding:20px 22px;text-decoration:none;display:flex;flex-direction:column;gap:12px;border-right:1px solid var(--line);min-width:0;transition:background .15s}
.commercial-metric:last-child{border-right:0}
.commercial-metric:hover{background:#f4f7fb}
.commercial-metric>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#65758a;font-size:.76rem}
.commercial-metric>span>span{color:#91a0b2}
.commercial-metric>strong{color:#1c2c43;font-size:clamp(1.3rem,2.1vw,1.95rem);font-weight:600;letter-spacing:-.045em;line-height:1.1;overflow-wrap:anywhere}
.commercial-metric small{font-size:.69rem;color:#7c8798;line-height:1.5}
.accent-metric>strong{color:#b36534}
.commercial-section{background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:24px;padding:22px;min-width:0}
.commercial-section h2{font-size:.94rem;font-weight:600;letter-spacing:-.015em;margin-bottom:8px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px}
.section-heading h2{margin-bottom:0}
.section-heading>span,.section-heading>a{font-size:.73rem;white-space:nowrap;color:#69788c}
.section-heading>a{color:#365e8d;text-decoration:none}
.section-heading p{font-size:.75rem;margin:7px 0 0;color:#69788c}
.target-path{width:100%;display:block;height:20px;margin:0 0 17px}
.path-labels{display:flex;flex-wrap:wrap;gap:20px;font-size:.76rem}
.path-labels a{color:#65758a;text-decoration:none}
.path-labels a:first-child{color:#284d86}.path-labels a:nth-child(2){color:#27816d}
.commercial-shell .fine-print,.fine-print{font-size:.72rem;color:#788596;line-height:1.65;margin-top:14px;margin-bottom:0}
.commercial-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px}
.chart svg{width:100%;display:block;height:auto}.chart{width:100%;min-width:0}
.chart-legend{display:flex;justify-content:center;gap:20px;font-size:.72rem;color:#69788c;margin-top:8px}
.chart-legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:7px;background:#284d86}
.chart-legend .legend-1::before{background:#40a18b}.chart-legend .legend-2::before{background:#a6b7cb}
.chart-data{font-size:.73rem;color:#69788c;margin-top:15px}
summary{cursor:pointer;font-weight:550}summary:focus-visible{outline-offset:4px}
.commercial-section>summary{font-size:.86rem}.commercial-section>summary+form,.commercial-section>summary+p{margin-top:18px}
.temperature-list{display:grid;grid-template-columns:1fr 1fr;gap:0}
.temperature-item{display:grid;gap:4px;padding:14px 0;text-decoration:none;border-bottom:1px solid #edf0f4}
.temperature-item>span{font-size:.72rem;color:#9b523f}.temperature-item.warm>span{color:#947629}.temperature-item.cold>span{color:#477eaa}.temperature-item.unknown>span{color:#8491a2}
.temperature-item>strong{color:#1c2c43;font-size:1.07rem;font-weight:600;letter-spacing:-.025em}
.temperature-item>small{font-size:.68rem;color:#8994a3}
.temperature-list+.fine-print{margin-bottom:12px}
.commercial-section>a{font-size:.77rem;text-decoration:none}
.priority-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:14px;padding:18px 0;border-top:1px solid #edf0f4;align-items:start}
.priority-dot{display:block;width:6px;height:6px;border-radius:50%;margin-top:7px;background:#8d9fb5}
.priority-dot.severity-0{background:#be654f}.priority-dot.severity-1{background:#c19b46}.priority-dot.severity-2{background:#6889a4}
.priority-title{text-decoration:none;color:#263f5c;font-weight:550;font-size:.86rem}
.priority-row p{font-size:.74rem;margin:5px 0;color:#8b694e;overflow-wrap:anywhere}
.priority-row small{font-size:.7rem;color:#8793a3;overflow-wrap:anywhere}
.priority-value{display:grid;gap:7px;text-align:right;white-space:nowrap}.priority-value strong{font-size:.9rem;font-weight:600;color:#263f5c}.priority-value a{font-size:.7rem;text-decoration:none;color:#597b9e}
.data-quality{display:flex;flex-wrap:wrap;gap:8px 15px;padding:16px 0;border-top:1px solid var(--line);color:#788596;font-size:.75rem;line-height:1.65;margin-bottom:20px}
.data-quality strong{font-weight:550;color:#52667e}.data-quality a{color:#5c789a;text-decoration:none}.data-quality small{display:block;flex-basis:100%;font-size:.7rem}
.commercial-table{font-size:.78rem;min-width:850px}.commercial-table th{font-size:.67rem;color:#7d8999;font-weight:550;background:#fafbfd;text-transform:uppercase;letter-spacing:.04em;padding:12px 14px;border-top:0}
.commercial-table td{padding:16px 14px;border-color:#edf0f4;vertical-align:middle}.commercial-table td strong{font-weight:550}.commercial-table td a{color:#365778;text-decoration:none}.commercial-table tr:hover td{background:#fafbfd}
.commercial-table small{font-size:.69rem;margin-top:5px;color:#8693a4}.commercial-table .risk-text{color:#a17853;max-width:430px}.numeric{text-align:right;white-space:nowrap}
.commercial-shell .badge{border-radius:4px;font-size:.68rem;padding:3px 7px;background:#f0f4f8;color:#597492}
.badge.temperature-hot{color:#a15b46;background:#fbf1ed}.badge.temperature-warm{color:#8f712b;background:#faf5e9}.badge.temperature-cold{color:#48779a;background:#edf5fb}.badge.temperature-unknown{color:#6b7888;background:#f1f3f5}
.target-form{display:grid;gap:16px}.target-form .grid{gap:16px}.simulator{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:12px}.simulator label{min-width:280px}
#simulador>.commercial-metrics{margin:22px 0}.empty-inline{color:#8190a2;font-size:.8rem;padding:12px 0}
.kpi-metrics{grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}.kpi-metrics .commercial-metric{border-bottom:1px solid var(--line);min-height:150px}.kpi-metrics .commercial-metric:nth-child(3n){border-right:0}.kpi-metrics .commercial-metric:nth-last-child(-n+3){border-bottom:0}
.conversion-row{display:grid;grid-template-columns:70px 1fr 80px;gap:20px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f4;text-decoration:none;font-size:.8rem}.conversion-row strong{font-weight:500;text-align:right}.conversion-row progress{width:100%;height:7px;accent-color:#40a18b}
.commercial-contact{position:relative;padding-left:22px;border-left:1px solid #d8e2ef;margin-left:6px}.commercial-contact::before{content:"";position:absolute;left:-4px;top:23px;width:7px;height:7px;border-radius:50%;background:#5e7f9e}
.planned-contact{background:#f5f8fc;border-left:3px solid #6689b3;padding:14px 18px;margin:5px 0 12px}.planned-contact strong{font-size:.88rem}.planned-contact p{margin:6px 0 0;font-size:.8rem}
.home-apps{display:flex;flex-wrap:wrap;gap:18px;margin-top:-50px;padding-bottom:40px}.home-app{padding:22px 25px;border:1px solid #d8e2ef;border-radius:6px;background:white;display:grid;gap:10px;text-decoration:none}.home-app span{font-size:.8rem;color:#69788c}
a,button,input,select,textarea{transition:background-color .15s,border-color .15s}html{scroll-behavior:smooth;scroll-padding-top:20px}
@media(min-width:1300px){.commercial-filters{grid-template-columns:1.1fr .9fr .65fr 1.05fr 1.3fr 1.1fr 1.2fr .95fr auto;gap:10px}}
@media(max-width:950px){.commercial-columns{grid-template-columns:1fr}.commercial-metric{padding:17px 15px}.commercial-metric>strong{font-size:1.3rem}.commercial-nav{gap:20px}.commercial-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.account span{max-width:120px}}
@media(max-width:650px){.commercial-nav{gap:20px;margin-bottom:22px}.commercial-nav a{font-size:.75rem}.commercial-heading{align-items:flex-start;gap:18px}.commercial-heading .button{align-self:flex-start}.commercial-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.commercial-metrics,.kpi-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-metric{border-bottom:1px solid var(--line);padding:17px 12px}.commercial-metric:nth-child(2n){border-right:0}.commercial-metric:nth-last-child(-n+2){border-bottom:0}.kpi-metrics .commercial-metric:nth-child(3n){border-right:1px solid var(--line)}.kpi-metrics .commercial-metric:nth-child(2n){border-right:0}.kpi-metrics .commercial-metric:nth-last-child(3){border-bottom:1px solid var(--line)}.commercial-metric>strong{font-size:1.25rem}.commercial-section{padding:17px 14px}.section-heading{margin-bottom:18px;flex-wrap:wrap}.section-heading>span,.section-heading>a{white-space:normal}.priority-row{grid-template-columns:7px minmax(0,1fr);gap:9px}.priority-value{grid-column:2;display:flex;justify-content:space-between;align-items:center;text-align:left;margin-top:3px}.priority-value strong{font-size:.8rem}.simulator label{min-width:0;width:100%}.path-labels{gap:9px 15px;font-size:.7rem}.conversion-row{gap:10px;grid-template-columns:60px 1fr 70px}.home-apps{margin-top:-25px}.home-app{width:100%}.data-quality{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
.chart-currency{font-size:.65rem;color:#8693a4;margin:-5px 0 3px}.commercial-notice{padding:12px 16px;background:#edf7f1;color:#317559;border:1px solid #d8ebdf;border-radius:5px;margin-bottom:20px;font-size:.82rem}
.crm-detail .card{border-color:var(--line);border-radius:7px;box-shadow:none;padding:22px;margin-bottom:24px}.crm-detail .commercial-heading{margin-top:6px}.crm-detail .commercial-metric>strong{font-size:clamp(1.1rem,2vw,1.7rem)}.crm-detail .grid{gap:16px}.crm-detail .editor{gap:18px}.crm-detail .editor form{gap:16px}.crm-detail label{font-weight:500;font-size:.76rem;color:#65758a}.crm-detail .revision h3{font-size:.93rem}.crm-detail .revision p{font-size:.8rem}.crm-detail .revision small{font-size:.7rem}.crm-detail .editor>p{font-size:.8rem}.crm-detail .history h2{margin-bottom:16px}
@media(max-width:650px){.crm-detail .card{padding:17px 14px}.crm-detail .commercial-metric>strong{font-size:1.1rem}}
.risk-link{display:block;margin-top:12px;color:#9a674d!important}

/* Filters follow the job of the page; segmentation stays out of the main flow. */
.commercial-filters.contextual-filters{display:block;padding:0 0 20px}
.filter-main{display:grid;grid-template-columns:repeat(3,minmax(140px,220px)) max-content;gap:12px;align-items:end}
.filter-main button{justify-self:start;min-height:35px}
.filter-segments{margin-top:12px;font-size:.75rem;color:#69788c}
.filter-segments summary{display:inline-block;list-style:none;font-weight:500;padding:3px 0;color:#526b87}
.filter-segments summary::before{content:"＋";margin-right:6px}.filter-segments[open] summary::before{content:"−"}
.segment-fields{display:grid;grid-template-columns:repeat(3,minmax(140px,240px));gap:12px;padding-top:12px}
.product-table{min-width:480px}.product-table td:first-child{width:55%;overflow-wrap:anywhere}.product-table td:last-child{text-align:right;width:90px}
.product-editor{max-width:850px}.product-editor form{display:grid;gap:20px}.product-editor .back-link{display:inline-block;margin-bottom:24px;font-size:.8rem}.product-editor .actions{gap:18px;font-size:.8rem}.product-editor label{font-weight:500;color:#65758a}.product-editor input[readonly]{background:#f7f9fb;color:#788596}
.company-list{display:flex;gap:10px 30px;flex-wrap:wrap;list-style:none;padding:0;margin:12px 0 22px;color:#526b87;font-size:.84rem}.company-create{display:flex;align-items:end;gap:12px}.company-create label{min-width:260px}.company-create button{min-height:35px}.catalog-empty{font-size:.82rem;color:#788596;padding:8px 0 16px}
@media(max-width:950px){.filter-main{grid-template-columns:repeat(3,minmax(0,1fr))}.segment-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.filter-main{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-main button{align-self:end}.segment-fields{grid-template-columns:1fr}.company-create{display:grid;gap:12px}.company-create label{min-width:0}.product-editor .actions{flex-wrap:wrap}}
@media(max-width:650px){.product-table{min-width:0;table-layout:fixed}.product-table th,.product-table td{padding:12px 8px}.product-table td:first-child{width:45%}.product-table td:nth-child(2){overflow-wrap:anywhere}.product-table td:last-child{width:64px}.product-table .product-edit{white-space:nowrap}}

/* Shared visual system: warm paper, graphite and restrained botanical tones. */
:root{--paper:#faf9f6;--surface:#f3f2ed;--sidebar:#eeeee8;--ink:#262c26;--muted:#686e64;--accent:#3f614d;--border:#dcddd3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);line-height:1.55}
body,body:has(.commercial-shell){background:var(--paper);color:var(--ink)}
body>header{background:var(--surface);border-bottom:1px solid var(--border)}
.bar,.bar:has(a[href="/comercial"]){max-width:none;min-height:68px;margin:0;padding:10px 32px;grid-template-columns:auto minmax(0,1fr) auto;gap:24px}
.bar>nav{grid-column:auto;grid-row:auto;justify-content:center;gap:20px}.bar>nav a{font-size:.8rem;font-weight:450;padding:7px 0;border-radius:0;color:var(--muted)}.bar>nav a[aria-current=page]{background:none;color:var(--ink);border-bottom:1px solid #657d61}.bar>nav a:hover{background:none;color:var(--ink)}
.brand{color:var(--ink)}.brand img{width:112px;filter:grayscale(1)}.brand span{color:var(--muted);border-color:#d6d8ce;font-weight:400;font-size:.78rem}
.account span{color:var(--muted);font-size:.7rem}.account button{font-weight:450;background:none;border-color:var(--border);color:var(--ink);border-radius:4px}
h1,.commercial-heading h1,.welcome h1,.sign h1{font-family:"Iowan Old Style","Baskerville","Palatino Linotype",Georgia,serif;font-weight:400;letter-spacing:-.035em;line-height:1.12;color:var(--ink)}
h1,.commercial-heading h1{font-size:clamp(2rem,3.3vw,3rem)}h2,h3{font-weight:550;color:var(--ink)}p,small,.metric span{color:var(--muted)}a{color:var(--accent)}a:hover{color:#253f2f}
button,.button,.commercial-shell button,.commercial-shell .button{background:var(--accent);border-radius:4px;font-weight:500;padding:8px 14px;min-height:36px;font-size:.8rem}
button:hover,.button:hover,.commercial-shell button:hover,.commercial-shell .button:hover{background:#314d3b;color:#fff}
.quiet,.commercial-shell .quiet{background:transparent;color:var(--ink);border-color:#cfd3c6}.quiet:hover,.commercial-shell .quiet:hover{background:#e9ede2;color:var(--ink)}
input,select,textarea,.commercial-shell input,.commercial-shell select{color:var(--ink);background:var(--paper);border-color:#c5cbbd;border-radius:3px;min-height:36px;font-size:.84rem}input:hover,select:hover,textarea:hover{border-color:#929f89}input:focus,select:focus,textarea:focus{border-color:#617a58}
label,.crm-detail label,.product-editor label{font-weight:450;color:var(--muted);font-size:.77rem}:focus-visible{outline:2px solid #597952;outline-offset:3px}
.card{box-shadow:none;border:1px solid var(--border);border-radius:4px;background:var(--paper)}.editor,.history{padding:24px}.editor form{gap:18px}
main:has(.commercial-shell),main:has(.portal-shell){max-width:none;padding:0}
.commercial-shell,.portal-shell{--ink:#262c26;--muted:#686e64;--line:#dcddd3;display:grid;grid-template-columns:218px minmax(0,1fr);max-width:1680px;margin:0 auto;min-height:calc(100vh - 68px)}
.commercial-workspace,.portal-workspace{min-width:0;width:100%;padding:46px clamp(28px,3.5vw,64px) 64px;max-width:1450px}
.commercial-nav,.workspace-nav{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-self:start;grid-column:auto;grid-row:auto;position:sticky;top:0;height:calc(100vh - 68px);margin:0;padding:40px 20px;gap:5px;background:var(--sidebar);border:0;border-right:1px solid #e0e1d8;overflow:auto;flex-wrap:nowrap;scrollbar-width:thin}
.nav-section-label{font-size:.66rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#626a5b;padding:0 12px;margin-bottom:23px}
.commercial-nav a,.workspace-nav a{display:block;padding:11px 12px;color:#555f50;font-size:.82rem;font-weight:400;line-height:1.4;border:0;border-radius:3px;white-space:normal;text-decoration:none}
.commercial-nav a:hover,.workspace-nav a:hover{background:#e5e8dd;color:var(--ink)}.commercial-nav a[aria-current=page],.workspace-nav a[aria-current=page]{background:#dfe5d6;color:#2d412b;border:0;font-weight:550}
.commercial-heading,.portal-workspace>.hero{margin:0 0 36px;align-items:center}.commercial-heading h1{margin-bottom:11px}.commercial-heading .eyebrow{display:none}.commercial-heading p,.hero p{font-size:.84rem;color:var(--muted)}
.commercial-filters.contextual-filters{padding-bottom:22px;margin-bottom:30px;border-color:var(--border)}.commercial-filters label{font-size:.72rem;color:var(--muted)}.filter-segments,.filter-segments summary{color:#5b6c52}.filter-main{gap:14px}
.commercial-metrics{background:transparent;border:0;border-radius:0;margin:0 0 36px;gap:0}.commercial-metric{padding:0 22px;border:0;border-right:1px solid var(--border);gap:12px}.commercial-metric:first-child{padding-left:0}.commercial-metric:last-child{border:0;padding-right:0}.commercial-metric:hover{background:transparent}.commercial-metric:hover>strong{color:var(--accent)}
.commercial-metric>span{color:var(--muted);font-size:.73rem}.commercial-metric>span>span{color:#6a7661}.commercial-metric>strong,.accent-metric>strong{color:var(--ink);font-weight:450;font-size:clamp(1.4rem,2vw,1.9rem);letter-spacing:-.04em;line-height:1.2}.commercial-metric small{color:var(--muted);font-size:.69rem}
.commercial-section{background:transparent;border:0;border-top:1px solid var(--border);border-radius:0;padding:26px 0 6px;margin:0 0 32px}.commercial-section h2{font-size:.97rem;font-weight:550}.section-heading{margin-bottom:24px}.section-heading>span,.section-heading>a,.section-heading p{color:var(--muted);font-size:.74rem}.commercial-section>a{color:var(--accent)}
.commercial-columns{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:38px}.commercial-shell .fine-print,.fine-print,.empty-inline{color:var(--muted)}.path-section{padding-bottom:10px}.target-path{height:9px;margin-bottom:20px}.path-labels{gap:22px;font-size:.73rem}.path-labels a{color:#626b59}.path-labels a:first-child{color:#526655}.path-labels a:nth-child(2){color:#617859}
.chart-currency{color:var(--muted)}.chart-legend{color:var(--muted);font-size:.71rem;gap:24px}.chart-legend span::before{background:#858e7e;height:3px;width:17px;vertical-align:middle;border-radius:0}.chart-legend .legend-1::before{background:#426b55}.chart-legend .legend-2::before{background:#b2bda6}.chart-data{color:var(--muted)}
.temperature-item{border-color:#e0e2d7;padding:16px 0}.temperature-item>strong{color:var(--ink);font-weight:500;font-size:1.08rem}.temperature-item>small{color:var(--muted)}.temperature-item>span,.temperature-item.hot>span{color:#875f4c}.temperature-item.warm>span{color:#7d6b3c}.temperature-item.cold>span{color:#566f5b}.temperature-item.unknown>span{color:var(--muted)}
.priority-row{border-color:#e1e3d8;padding:21px 0;gap:15px}.priority-title{color:var(--ink);font-weight:500}.priority-row p{color:#7c6648}.priority-row small{color:var(--muted)}.priority-value strong{color:var(--ink);font-weight:500}.priority-value a{color:#5f7458}.priority-dot.severity-0{background:#9b6a55}.priority-dot.severity-1{background:#9c8b57}.priority-dot.severity-2{background:#7f9275}.priority-dot.severity-3{background:#919487}
.data-quality{border-color:var(--border);color:var(--muted)}.data-quality strong{color:#4e5e46}.data-quality a{color:#4d6844}.risk-link{color:#815d48!important}
th,.commercial-table th,.access-table th{background:transparent;color:var(--muted);font-size:.7rem;font-weight:500;border-color:var(--border)}td,.commercial-table td{border-color:#e0e2d8}.commercial-table td a{color:#405c37}.commercial-table tr:hover td{background:#f0f2e9}.commercial-table small{color:var(--muted)}.commercial-table .risk-text{color:#806849}.product-table th:last-child{text-align:right}
.badge,.commercial-shell .badge{color:#53654c;background:#ebeee3;border-radius:3px;font-size:.72rem}.badge.temperature-hot{color:#875842;background:#f2e9df}.badge.temperature-warm{color:#7c6938;background:#f2eddd}.badge.temperature-cold{color:#476650;background:#e8eee3}.badge.temperature-unknown{color:#60675a;background:#e9ebe2}
.kpi-metrics{gap:26px 0}.kpi-metrics .commercial-metric{border-color:var(--border);min-height:125px;border-bottom:0;padding:0 22px}.kpi-metrics .commercial-metric:nth-child(3n+1){padding-left:0}.kpi-metrics .commercial-metric:nth-child(3n){border:0}.conversion-row{color:#4b6543;border-color:var(--border)}progress,.conversion-row progress,.stage-row progress{accent-color:#718b63}.conversion-row progress{height:5px}
.crm-detail .card{box-shadow:none;border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;padding:26px 0;margin-bottom:28px}.crm-detail .editor>p,.crm-detail .revision small{color:var(--muted)}.commercial-contact{border-color:#b7c3ad}.commercial-contact::before{background:#6d8760}.planned-contact{background:#eff2e8;border-left-color:#7b9469}.planned-contact strong{font-weight:500}.product-editor .back-link{color:#547149}.product-editor input[readonly]{background:#eeefe7;color:#626d58}
.notice,.commercial-notice{background:#edf1e5;border:1px solid #cdd8bf;color:#476139;border-radius:3px}.error,.project-overdue{color:#8b4b3e}.company-list,.catalog-empty{color:var(--muted)}
.portal-workspace>.metrics{background:transparent;margin:26px 0 34px;gap:0}.portal-workspace>.metrics>.metric{background:transparent;border:0;border-right:1px solid var(--border);border-radius:0;padding:0 20px;gap:10px}.portal-workspace>.metrics>.metric:first-child{padding-left:0}.portal-workspace>.metrics>.metric:last-child{border:0}.metric strong{font-weight:450;color:var(--ink);letter-spacing:-.035em}
.portal-workspace>.card{background:transparent;border:0;border-top:1px solid var(--border);border-radius:0;padding:26px 0;margin:24px 0}.portal-workspace>.card.scroll,.portal-workspace>.access-card{padding:0;background:transparent;border:0}.access-intro{padding:0 0 24px}.role-guide p,.role-guide strong{color:var(--muted)}.toggle span{background:#d2d6c7}.toggle input:checked+span{background:#667f55}.toggle span::after{box-shadow:none}.toggle input:focus-visible+span{outline-color:#597952}
.welcome{min-height:0;padding:22px 0 48px}.welcome h1{font-size:clamp(2.7rem,5vw,4.6rem);margin-bottom:24px;letter-spacing:-.04em}.welcome-mark{background:#8e9f7d;width:38px;height:2px;border-radius:0;margin-bottom:32px}.welcome p{max-width:410px;color:var(--muted)}.home-apps{margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:28px}.home-app{background:transparent;border:0;border-top:1px solid #cdd3c0;border-radius:0;padding:22px 0;color:var(--ink)}.home-app strong{font-weight:500}.home-app span{color:var(--muted)}
.project-card{background:transparent;border:0;border-top:1px solid var(--border);border-radius:0;padding:24px 0}.project-grid{gap:28px}.project-card progress{height:5px}.project-team{border-color:var(--border);border-radius:3px}.board-lane{background:#eeefe7;border:1px solid #d8decf;border-top:2px solid #a0aa94;border-radius:4px}.board-lane:nth-child(2){border-top-color:#7d9470}.board-lane:nth-child(3){border-top-color:#a3936d}.board-lane:nth-child(4){border-top-color:#5c7955}.board-lane .project-line span{color:var(--muted)}.work-card{background:var(--paper);border-color:#d7ddcd;border-radius:3px;box-shadow:none}.work-card .blocker{color:#895c48}
.timeline time{color:var(--muted)}.timeline li div{border-left-color:#9eaf8d}.timeline li div::before{background:#6a855b}.report-cover{background:transparent;border-color:#6f835e}.report-cover img{filter:grayscale(1)}.status-report{border-color:var(--border);box-shadow:none;background:var(--paper);border-radius:0}.status-report section{border-color:var(--border)}
.person-0{border-left-color:#697f5a}.person-1{border-left-color:#8c7d8a}.person-2{border-left-color:#527568}.person-3{border-left-color:#9b8058}.person-4{border-left-color:#718388}.person-5{border-left-color:#996f6d}.person-6{border-left-color:#8d945d}.person-7{border-left-color:#83818f}
.sign{background:transparent;border:0;border-radius:0;box-shadow:none;max-width:460px;padding:36px 12px;margin:11vh auto}.sign h1{font-size:2.7rem;max-width:none}.sign p{color:var(--muted)}.google-button{border-color:#c3c9b8;background:#fff;border-radius:4px}.google-button:hover{background:#f0f2e9;box-shadow:none}
@media(max-width:1200px){.commercial-workspace,.portal-workspace{padding:38px 30px 54px}.commercial-shell,.portal-shell{grid-template-columns:190px minmax(0,1fr)}.commercial-nav,.workspace-nav{padding:32px 14px}.commercial-columns{grid-template-columns:1fr;gap:0}.commercial-metric{padding:0 14px}.commercial-metric>strong{font-size:1.5rem}}
@media(max-width:1000px){.commercial-shell,.portal-shell{display:block;min-height:0}.commercial-nav,.workspace-nav{height:auto;position:static;flex-direction:row;align-items:center;gap:22px;padding:0 26px;border:0;border-bottom:1px solid var(--border);overflow-x:auto}.nav-section-label{display:none}.commercial-nav a,.workspace-nav a{padding:17px 0 14px;white-space:nowrap;border-radius:0}.commercial-nav a[aria-current=page],.workspace-nav a[aria-current=page]{background:none;border-bottom:2px solid #6d855f;color:#405d35}.commercial-workspace,.portal-workspace{padding:34px 26px 50px}}
@media(max-width:700px){.bar,.bar:has(a[href="/comercial"]){grid-template-columns:auto auto;gap:12px;padding:16px 18px 10px}.bar>nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:22px;overflow:auto;margin:0;padding:0}.bar>nav a{font-size:.77rem;padding:7px 0}.brand img{width:106px}.account span{max-width:135px}.account button{padding:6px 10px}.commercial-heading,.portal-workspace>.hero{align-items:flex-start;gap:20px;flex-direction:column}.commercial-heading .button{align-self:flex-start}}
@media(max-width:650px){.commercial-workspace,.portal-workspace{padding:30px 18px 44px}.commercial-nav,.workspace-nav{gap:22px;padding:0 18px}.commercial-nav a,.workspace-nav a{font-size:.77rem}.commercial-heading h1,h1{font-size:2.05rem}.commercial-metrics{row-gap:26px;margin-bottom:30px}.commercial-metric{padding:0 14px!important;border-right:1px solid var(--border)!important}.commercial-metric:nth-child(2n){border:0!important}.commercial-metric:nth-child(2n+1){padding-left:0!important}.commercial-metric>strong,.crm-detail .commercial-metric>strong{font-size:1.32rem}.commercial-metric>span{font-size:.71rem}.commercial-section{padding:24px 0 4px;margin-bottom:26px}.section-heading{gap:14px}.filter-main{gap:12px}.crm-detail .card{padding:24px 0}.priority-row{gap:10px;padding:20px 0}.priority-value{margin-top:4px}.temperature-item>strong{font-size:1.04rem}.kpi-metrics .commercial-metric{border-bottom:0!important;min-height:130px}.portal-workspace>.metrics{gap:22px 0}.portal-workspace>.metrics>.metric{padding:0 12px}.portal-workspace>.metrics>.metric:nth-child(2n){border:0}.portal-workspace>.metrics>.metric:nth-child(2n+1){padding-left:0}.portal-workspace>.card{padding:22px 0}.access-table tr{padding:18px 0}.access-table td::before{color:var(--muted)}.home-app{width:auto}.welcome h1{font-size:3rem}.sign h1{font-size:2.2rem}.sign{padding:28px 10px;margin:9vh auto}.status-report{padding:22px 14px}.company-table td:first-child{width:auto}}
@media print{body,:root{background:white!important;color:#222}.commercial-shell,.portal-shell{display:block;min-height:0}.commercial-nav,.workspace-nav{display:none}.commercial-workspace,.portal-workspace{padding:0;max-width:none}.status-report{background:white;border:0}.status-report h1{font-size:23pt}.status-report h2{font-size:13pt}.sign{margin:0}}
.portal-workspace>.metrics,.status-report .metrics{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.status-report .metrics{gap:0;margin:24px 0 30px}.status-report .metric{background:transparent;border:0;border-right:1px solid var(--border);border-radius:0;padding:0 16px}.status-report .metric:first-child{padding-left:0}.status-report .metric:last-child{border:0}.status-report .card.editor{background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:20px 0;margin:0 0 22px}
@media(max-width:650px){.status-report .metrics{gap:22px 0}.status-report .metric:nth-child(2n){border:0}.status-report .metric:nth-child(2n+1){padding-left:0}}
.access-table select{background:var(--paper);border-color:#c5cbbd;color:var(--ink)}.people-count,.empty,.print-help p{color:var(--muted)}

@media(max-width:1000px){.workspace-nav.workspace-shortcuts{display:none}}

/* Single application rail, with app switching and workspace navigation together. */
body.authenticated{background:var(--paper)}.authenticated .portal-shell,.authenticated .commercial-shell{grid-template-columns:238px minmax(0,1fr);min-height:100vh;max-width:none}
.app-sidebar.commercial-nav,.app-sidebar.workspace-nav{display:flex;position:sticky;top:0;align-self:start;height:100vh;min-height:0;padding:28px 18px 18px;gap:0;overflow:hidden;background:#eeeee8;border:0;border-right:1px solid #dfe2d6}
.sidebar-brand{display:flex;padding:0 12px 26px;min-height:60px;flex:none}.sidebar-brand img{width:116px}.sidebar-brand>span{font-size:.7rem;border:0;padding-left:0;margin-left:auto}
.sidebar-links{min-height:0;overflow-y:auto;flex:1;padding-bottom:22px;scrollbar-width:thin}.app-switcher,.context-menu{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;margin:0;padding:0;grid-column:auto;grid-row:auto}
.app-sidebar .app-switcher a,.app-sidebar .context-menu a{display:block;padding:10px 12px;border:0;border-radius:4px;white-space:normal;font-size:.8rem;color:#55604e;font-weight:400}.app-sidebar .app-switcher a[aria-current=page]{background:#e1e6d8;color:#2a4028;font-weight:600}.app-sidebar .context-menu a[aria-current=page]{background:#dce4d1;color:#2a4028;font-weight:550}.app-sidebar a:hover{background:#e4e9da}.sidebar-brand:hover{background:transparent!important}
.sidebar-context{margin-top:25px;padding-top:22px;border-top:1px solid #d6ddcc}.sidebar-context .nav-section-label{display:block;padding:0 12px;margin:0 0 14px;font-size:.63rem;letter-spacing:.09em}.sidebar-account{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:18px 8px 0;border-top:1px solid #d6ddcc;flex:none}.sidebar-account>span{font-size:.68rem;color:#646f5b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.sidebar-account form{margin:0}.sidebar-account button{padding:6px 10px;min-height:31px;font-size:.72rem}
.commercial-workspace,.portal-workspace{padding-top:42px}.supporting-metrics{margin-top:-3px;border-top:1px solid #e0e4d7;padding-top:24px}.supporting-metrics .commercial-metric>strong{font-size:1.52rem}.period-comparison{display:flex;gap:16px;align-items:center;flex-wrap:wrap;border-top:1px solid #e0e4d7;padding:14px 0 0;font-size:.75rem;color:var(--muted);margin:-10px 0 30px}.comparison-label{font-size:.67rem;text-transform:uppercase;letter-spacing:.06em}.period-comparison>strong{font-weight:500;color:var(--ink)}.period-comparison>a{margin-left:auto;text-decoration:none}
.funnel-row{display:grid;grid-template-columns:185px minmax(80px,1fr) 155px;gap:24px;align-items:center;padding:16px 0;border-top:1px solid #e3e6da;text-decoration:none}.funnel-row div{display:grid;gap:6px}.funnel-row small{font-size:.7rem}.funnel-row progress{width:100%;height:7px;accent-color:#80996e}.funnel-row strong{font-size:.9rem;text-align:right;font-weight:500;color:var(--ink)}.funnel-results{display:flex;gap:34px;flex-wrap:wrap;padding-top:22px;border-top:1px solid #e0e4d6;margin-top:6px}.funnel-results>a{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:.83rem}.funnel-results strong{font-weight:500}.funnel-results>a>span:last-child{color:var(--muted);font-size:.8rem}
.stage-tag{display:inline-flex;align-items:center;gap:6px;justify-self:start;white-space:nowrap;border:1px solid #dce0d1;background:#edf0e7;color:#59634e;font-size:.68rem;line-height:1.6;padding:3px 8px;border-radius:4px;font-weight:500}.stage-won{background:#e5eddc;color:#3d5d2f;border-color:#c5d5b8}.stage-lost{background:#edeae5;color:#776b60;border-color:#ddd5ca}.stage-negotiating{background:#eceedd;color:#6d6c41;border-color:#d8ddc1}.stage-sent{background:#e7ece4;color:#52694d}.stage-draft{background:#efefe8;color:#6c7064}.commercial-heading .stage-tag{margin-top:8px}.won-banner{display:flex;align-items:flex-start;gap:20px;background:#edf3e5;border:1px solid #d4dfc5;border-left:3px solid #7a9a65;border-radius:4px;padding:20px;margin-bottom:28px}.won-banner h2{font-size:1rem;margin:0 0 5px}.won-banner p{font-size:.79rem;margin:0}
.commercial-ranking{list-style:none;padding:0;margin:0}.commercial-ranking li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 0;border-top:1px solid #e1e5d9}.rank-position{color:#7a846e;font-size:.68rem}.commercial-ranking a{font-size:.8rem;text-decoration:none;overflow-wrap:anywhere}.commercial-ranking small{display:block;font-size:.67rem;font-weight:400;color:var(--muted);margin-top:5px}.commercial-ranking strong{font-weight:500;text-align:right;font-size:.84rem}.commercial-facts{margin:0}.commercial-facts>div{display:flex;justify-content:space-between;padding:17px 0;border-top:1px solid #e1e5d9;gap:20px}.commercial-facts dt{font-size:.8rem;color:var(--muted)}.commercial-facts dd{font-size:.9rem;font-weight:500;margin:0}
.activity-stream{list-style:none;padding:0;margin:0}.activity-stream li{display:grid;grid-template-columns:94px 1fr;gap:20px;padding:18px 0;border-top:1px solid #e1e5d9}.activity-stream time{font-size:.72rem;color:var(--muted);padding-top:3px}.activity-stream a{font-size:.83rem;text-decoration:none}.activity-stream p{font-size:.78rem;margin:6px 0}.activity-stream small{font-size:.69rem}.activity-stream .empty-inline{display:block}
.listing-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.listing-heading h2{margin:0 0 6px}.listing-heading p{font-size:.77rem}.stage-filters{display:flex;flex-direction:row;justify-content:flex-start;gap:8px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:18px;margin-bottom:4px}.stage-filters .stage-filter{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;font-size:.72rem;font-weight:450;white-space:nowrap;border:1px solid #dce1d1;border-radius:4px;text-decoration:none;color:#657059;background:transparent}.stage-filter span{font-size:.67rem;color:#68765a;padding:1px 5px;background:#ecefe4;border-radius:3px}.stage-filters .is-active{background:#e3ebd8;border-color:#b7c9a5;color:#37522c}
.commercial-table thead th,.portal-workspace table thead th{background:#ebefe2;border-top:1px solid #d1d9c3;border-bottom:1px solid #c5d0b6;color:#4d6041;font-weight:500;padding:13px 14px}.commercial-table tbody tr:has(.stage-won) td{background:#f1f5e9}.commercial-table tbody tr:has(.stage-won) td:first-child{border-left:2px solid #93ac7f}
.table-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}.table-search{max-width:300px;flex:1;font-weight:400}.table-search input{font-size:.76rem;background:#fafbf6;border-color:#cbd4bd;min-height:35px}.table-count{font-size:.7rem;color:#6d7762;margin-left:auto;white-space:nowrap}.table-sort-button,.commercial-shell .table-sort-button{display:inline-flex;justify-content:space-between;align-items:center;gap:13px;background:transparent;color:inherit;border:0;padding:0;min-height:0;font:inherit;border-radius:0;white-space:nowrap;cursor:pointer}.table-sort-button:hover,.commercial-shell .table-sort-button:hover{background:transparent;color:#253f1e}.sort-marker{font-size:.8rem;color:#7b8b6c;font-weight:400}th[aria-sort=ascending] .sort-marker,th[aria-sort=descending] .sort-marker{color:#365b28}[hidden]{display:none!important}.board-filters{grid-template-columns:minmax(180px,1.5fr) minmax(160px,1fr) minmax(140px,1fr) auto!important;align-items:end}.board-filters label{min-width:0}
@media(max-width:1200px){.authenticated .portal-shell,.authenticated .commercial-shell{grid-template-columns:210px minmax(0,1fr)}.app-sidebar.commercial-nav,.app-sidebar.workspace-nav{padding:25px 13px 16px}.sidebar-brand>span{display:none}.sidebar-account>span{max-width:123px}.funnel-row{grid-template-columns:165px 1fr 135px;gap:14px}}
@media(max-width:1000px){.authenticated .portal-shell,.authenticated .commercial-shell{display:block}.app-sidebar.commercial-nav,.app-sidebar.workspace-nav{position:static;height:auto;display:grid;grid-template-columns:1fr auto;padding:16px 22px 0;gap:14px;border:0;border-bottom:1px solid #d9dfce;overflow:visible}.sidebar-brand{padding:0;min-height:35px;grid-column:1;grid-row:1}.sidebar-brand img{width:107px}.sidebar-links{grid-column:1/-1;grid-row:2;overflow:visible;padding:0;min-width:0}.app-sidebar .app-switcher,.app-sidebar .context-menu{flex-direction:row;align-items:center;gap:20px;overflow-x:auto;flex-wrap:nowrap;min-width:0}.app-sidebar .app-switcher a,.app-sidebar .context-menu a{white-space:nowrap;padding:10px 0;border-radius:0;font-size:.76rem}.app-sidebar .app-switcher a[aria-current=page],.app-sidebar .context-menu a[aria-current=page]{background:none;border-bottom:2px solid #728b61}.sidebar-context{margin-top:0;padding-top:0;border-top:1px solid #d9dfce}.sidebar-context .nav-section-label{display:none}.sidebar-account{grid-column:2;grid-row:1;border:0;padding:0;gap:10px}.sidebar-account>span{max-width:150px}.sidebar-account form{margin:0}.commercial-workspace,.portal-workspace{padding-top:32px}.board-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){.app-sidebar.commercial-nav,.app-sidebar.workspace-nav{padding:14px 18px 0;gap:10px}.sidebar-account>span{max-width:125px;font-size:.64rem}.sidebar-account button{font-size:.69rem;min-height:29px;padding:5px 8px}.commercial-workspace,.portal-workspace{padding-top:28px}.supporting-metrics{padding-top:24px}.supporting-metrics .commercial-metric>strong{font-size:1.28rem}.period-comparison{gap:8px 12px;font-size:.7rem}.period-comparison>a{margin-left:0;flex-basis:100%}.funnel-row{grid-template-columns:minmax(0,1fr) 118px;gap:8px 16px}.funnel-row progress{grid-column:1/-1;grid-row:auto}.funnel-row strong{grid-column:2;grid-row:1}.funnel-results{gap:17px}.commercial-ranking li{grid-template-columns:20px minmax(0,1fr);gap:8px 12px}.commercial-ranking strong{grid-column:2;text-align:left}.commercial-ranking strong small{display:inline;margin-left:8px}.activity-stream li{grid-template-columns:1fr;gap:7px}.won-banner{gap:12px;padding:16px;flex-wrap:wrap}.stage-filters{gap:7px}.stage-filters .stage-filter{font-size:.68rem;padding:6px 9px}.table-controls{gap:10px;flex-wrap:wrap}.table-search{max-width:none;flex-basis:100%}.table-count{font-size:.66rem}.board-filters{grid-template-columns:1fr!important}}
@media print{.app-sidebar,.table-controls,.sort-marker,.stage-filters{display:none!important}.authenticated .portal-shell,.authenticated .commercial-shell{display:block}.table-sort-button{color:#222}.commercial-table thead th{background:#f2f2ed!important;print-color-adjust:exact}}

/* Receipts: restrained status cues, preserving readable table actions. */
.receipt-status { display:inline-block; padding:.3rem .55rem; border-radius:3px; font-size:.8rem; font-weight:600; white-space:nowrap; background:#eeeee7; color:#4b5448; }
.receipt-received { background:#e3eadf; color:#38523d; }
.receipt-overdue { background:#eee5dc; color:#79563e; }
.receipt-action { display:flex; flex-wrap:wrap; gap:.5rem; align-items:end; min-width:190px; }
.receipt-action label { flex:1; min-width:135px; font-size:.75rem; }
.receipt-action input { min-height:36px; padding:.45rem; }
.receipt-action button { padding:.55rem .7rem; font-size:.8rem; }
.receipt-history { margin:1rem 0; }
.receipt-history p { font-size:.85rem; line-height:1.6; }

.form-error-dialog { max-width:460px; width:calc(100% - 40px); padding:30px; border:1px solid #d4d7ca; border-radius:8px; background:#faf9f5; color:#292f27; box-shadow:0 18px 80px #2228; }
.form-error-dialog::backdrop { background:#20271f66; }
.form-error-dialog h2 { margin:0 0 14px; font-size:1.65rem; }
.form-error-dialog p { line-height:1.6; margin-bottom:24px; white-space:pre-wrap; }

.contract-list-filters { margin:1.3rem 0 .75rem; display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.contract-list-filters label { flex:1 1 160px; }
.contract-list-filters a { padding:.6rem 0; font-size:.85rem; }
.list-pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; padding:14px 0 22px; border-bottom:1px solid #dedfd6; margin-bottom:20px; flex-wrap:wrap; }
.list-pagination span,.page-summary { color:#646c60; font-size:.85rem; }

/* Two workspaces: clear commercial decisions and explicit financial actions. */
.crm-workspaces { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0 26px; }
.crm-workspaces a { display:flex; flex-direction:column; gap:5px; padding:16px 20px; border:1px solid #dedfd6; border-radius:5px; color:#50594d; text-decoration:none; }
.crm-workspaces a[aria-current="page"] { border-color:#7b9075; background:#e9eee3; color:#304a36; }
.crm-workspaces strong { font-size:1.05rem; }
.crm-workspaces span { font-size:.8rem; }
.nav-group-title { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:.65rem; color:#747b6c; margin:20px 12px 8px; }
.sidebar-context>.nav-section-label { display:none; }
.workspace-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0; margin-bottom:12px; border-bottom:1px solid #dedfd6; }
.workspace-intro h2 { font-family:Georgia,serif; font-weight:400; font-size:1.75rem; margin:8px 0; }
.workspace-intro p { margin:0; max-width:740px; color:#646c60; line-height:1.6; }
.workspace-summary { display:flex; flex-wrap:wrap; gap:18px 30px; padding:18px 0; border-bottom:1px solid #dedfd6; font-size:.85rem; color:#697161; }
.workspace-summary a,.workspace-summary span { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.workspace-summary strong { color:#3a4936; }
.setup-callout { margin:24px 0; padding:20px 22px; background:#f0f1e9; border-left:3px solid #94a188; display:flex; flex-direction:column; gap:8px; }
.setup-callout span { color:#646c60; font-size:.9rem; line-height:1.6; }
.setup-callout a { align-self:flex-start; font-weight:600; margin-top:5px; }
.offer-editor fieldset,.contract-terms fieldset { border:0; padding:0; margin:0 0 26px; }
.offer-editor legend { font-size:1.05rem; font-weight:600; padding:0; margin-bottom:16px; }
.offer-value-preview { padding:14px 18px; background:#e9eee3; border-radius:4px; color:#3e573e; font-weight:600; }
.offer-details { margin:24px 0; padding:18px 0; border-top:1px solid #dedfd6; }
.offer-details summary { font-weight:600; margin-bottom:16px; }
[data-offer-months][hidden],[data-offer-installments][hidden] { display:none!important; }
.compact-action { font-size:.8rem; margin:6px 0; }
.compact-action summary { cursor:pointer; }
.compact-action summary.button { display:inline-flex; }
.compact-action form { display:flex; flex-direction:column; gap:9px; padding:12px 0; min-width:160px; }
.compact-action label { font-size:.75rem; }
.receipt-invoiced { background:#e6eadf; color:#455c3d; }
.collection-priority { display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid #e3e3da; text-decoration:none; }
.collection-priority div { flex:1; }
.collection-priority small { display:block; color:#697161; line-height:1.5; margin-top:5px; }
.collection-priority>span { font-size:.75rem; color:#805e43; }
.contract-terms { border-top:1px solid #dedfd6; margin-top:20px; padding:18px 0; }
.contract-terms>summary { font-weight:600; cursor:pointer; margin-bottom:20px; }
@media(max-width:760px) { .crm-workspaces a { padding:12px; } .crm-workspaces span { font-size:.7rem; } .workspace-intro { flex-direction:column; align-items:flex-start; } .workspace-intro h2 { font-size:1.5rem; } .nav-group-title { display:none; } .workspace-summary { gap:16px; } }
.sales-pipeline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:22px 0; }
.sales-lane { background:#f0f1e9; border-top:3px solid #a0ae95; border-radius:4px; padding:14px; }
.sales-lane>header { display:flex; flex-direction:column; gap:6px; padding-bottom:16px; }
.sales-lane>header h2 { font-size:.95rem; margin:0; }
.sales-lane>header span { font-size:.75rem; color:#687260; }
.deal-card { background:#faf9f5; border:1px solid #dedfd6; border-radius:4px; padding:16px; margin-bottom:12px; }
.deal-card>span { color:#738069; font-size:.7rem; }
.deal-card h3 { font-size:.95rem; line-height:1.5; margin:10px 0 4px; }
.deal-card p { font-size:.8rem; color:#67705f; line-height:1.5; }
.deal-card small { display:block; margin-top:8px; font-size:.75rem; color:#6d7565; }
.deal-next { border-top:1px solid #dedfd6; padding-top:12px; }
.view-switch { display:flex; gap:8px; justify-content:flex-end; margin:10px 0 20px; }
.view-switch a { padding:7px 18px; border:1px solid #d9ddd0; border-radius:4px; font-size:.85rem; text-decoration:none; }
.view-switch a[aria-current=page] { background:#e4eadb; color:#3d5136; }
@media(max-width:760px) { .sales-pipeline { grid-template-columns:repeat(3,280px); overflow-x:auto; padding-bottom:12px; } }
.filter-main { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.filter-main>label { flex:1 1 150px; max-width:220px; }
.filter-main>button { flex:0 0 auto; }
.crm-workspaces { margin:12px 0 20px; }
.crm-workspaces a { padding:12px 18px; }
.workspace-intro { padding:12px 0 20px; margin-bottom:20px; }
.workspace-intro h2 { font-size:1.55rem; }
@media(min-width:1001px) {
 .app-sidebar .app-switcher a { padding:8px 12px; }
 .app-sidebar .context-menu a { padding:8px 12px; font-size:.78rem; }
 .sidebar-context { margin-top:16px; padding-top:12px; }
 .nav-group-title { margin-top:13px; margin-bottom:5px; }
}
@media(max-width:1000px) { .nav-group-title { display:none; } }
@media(max-width:650px) { .filter-main>label { flex:1 1 140px; max-width:none; } .crm-workspaces a { padding:12px; } }
.crm-workspaces a { min-width:0; white-space:normal; }
.crm-workspaces span { white-space:normal; overflow-wrap:anywhere; line-height:1.45; }

/* Shared Manage workspace */
:root, .authenticated .commercial-shell, .authenticated .portal-shell {
  --paper:#fff; --canvas:#f4f5f8; --ink:#191e2e; --muted:#55617a;
  --line:#d5dae5; --border:var(--line); --accent:#394bc4; --tint:#edf0fa;
}
:root[data-theme=dark], [data-theme=dark] .authenticated :is(.commercial-shell,.portal-shell) {
  color-scheme:dark; --paper:#202636; --canvas:#171b28; --ink:#f1f3fa;
  --muted:#b8c1d7; --line:#41495c; --accent:#aab6ff; --tint:#303950;
}
.authenticated, .authenticated :is(.portal-shell,.commercial-shell) {background:var(--canvas);color:var(--ink);font-family:Inter,system-ui,sans-serif}
.authenticated :is(h1,h2,h3,.commercial-heading h1,.workspace-intro h2) {font-family:inherit;font-weight:700;color:var(--ink)}
.authenticated h1,.authenticated .commercial-heading h1 {font-size:clamp(1.65rem,2.6vw,2.35rem);letter-spacing:-.04em}
.authenticated .app-sidebar {background:var(--paper);border-color:var(--line)}
.authenticated .app-sidebar nav a {color:var(--muted);border-radius:7px;font-weight:580;padding:9px 12px}
.authenticated .app-sidebar nav a:hover {background:var(--tint);color:var(--accent)}
.authenticated .app-sidebar nav a[aria-current=page] {background:var(--ink);color:var(--paper)}
.authenticated .sidebar-account {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.sidebar-account .theme-options {grid-column:1/-1;display:flex;gap:3px;background:var(--canvas);border:1px solid var(--line);border-radius:8px;padding:3px}
.app-sidebar .theme-options button {flex:1;background:transparent;color:var(--muted);font-size:.73rem;border:0;padding:5px;min-height:28px}
.app-sidebar .theme-options button[aria-pressed=true] {color:var(--accent);background:var(--paper);box-shadow:0 1px 3px #1112}
.authenticated :is(.commercial-section,.crm-detail .card,.portal-workspace>.card,.home-app,.project-card,.deal-card,.work-card) {
  background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:18px;box-shadow:none
}
.authenticated :is(.commercial-metrics,.portal-workspace>.metrics) {gap:12px;align-items:stretch}
.authenticated :is(.commercial-metrics>.commercial-metric,.portal-workspace>.metrics>.metric) {
  padding:16px!important;background:var(--paper);border:1px solid var(--line)!important;border-radius:9px
}
.authenticated :is(.metric,.commercial-metric)>strong {color:var(--ink);font-weight:700}
.authenticated table thead th {background:var(--tint);color:var(--muted);border-color:var(--line)}
.authenticated .commercial-table td a {color:var(--accent)}
.authenticated :is(.sales-lane,.board-lane) {--lane:#9951aa;border:0;border-top:4px solid var(--lane);border-radius:10px;background:color-mix(in srgb,var(--lane) 10%,var(--paper));padding:13px}
.authenticated :is(.sales-lane,.board-lane):nth-child(4n+2) {--lane:#556bd2}
.authenticated :is(.sales-lane,.board-lane):nth-child(4n+3) {--lane:#25855d}
.authenticated :is(.sales-lane,.board-lane):nth-child(4n) {--lane:#bd7836}
.authenticated .sales-lane header {background:transparent}
@media screen {
  [data-theme=dark] .authenticated :is(p,small,label,summary,li,td,th,legend,.sidebar-account span,.nav-group-title,.workspace-summary,.workspace-summary strong,.deal-card span,.commercial-nav strong) {color:var(--muted)}
  [data-theme=dark] .authenticated :is(table,td,fieldset,input,select,textarea,dialog,.setup-callout,.crm-workspaces a,.view-switch a,.stage-tag,.badge,.stage-filter,.notice,.planned-contact,.offer-value-preview,.sidebar-account button.quiet) {background:var(--paper);color:var(--ink);border-color:var(--line)}
  [data-theme=dark] .authenticated :is(a,.commercial-table td a) {color:var(--accent)}
  [data-theme=dark] .authenticated :is(button,.button) {background:#4559c9;color:white}
  [data-theme=dark] .authenticated .theme-options button[aria-pressed=false] {background:transparent;color:var(--muted)}
}
@media(max-width:650px) {.app-sidebar .theme-options button {font-size:.67rem}}
.sidebar-account .profile {display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink)}
.profile>div {min-width:0}
.profile strong,.profile small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile strong {font-size:.8rem}
.profile small {font-size:.72rem;color:var(--muted)}
.sidebar-account .avatar {width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;background:#4052bd;color:white;font-size:.73rem;font-weight:700}
.sales-pipeline {grid-template-columns:repeat(5,minmax(215px,1fr));overflow-x:auto;align-items:start;padding-bottom:12px}
.sales-lane h2 span {font-size:.75rem;border-radius:12px;padding:2px 7px;color:var(--ink);background:var(--paper)}
.idea-board {display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));overflow-x:auto;gap:14px;align-items:start}
.idea-board h2 {margin-bottom:14px}
.ticket-text {white-space:pre-wrap;overflow-wrap:anywhere}
.support-portal main {max-width:780px}
.support-portal .brand {margin-bottom:24px}
.support-portal h1 {margin-bottom:16px}

/* The funnel sits beside a chart; size its rows to the card, including at desktop zoom. */
.commercial-columns > *, .commercial-section,.sales-lane,.deal-card,.work-card {min-width:0}
.funnel-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 14px}
.funnel-row div {grid-column:1;grid-row:1;min-width:0;justify-items:start}
.funnel-row strong {grid-column:2;grid-row:1;overflow-wrap:anywhere;white-space:normal}
.funnel-row progress {grid-row:2;grid-column:1/-1;min-width:0;max-width:100%}
.funnel-results a {flex-wrap:wrap;min-width:0}
.workspace-summary {border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:14px 18px}
.workspace-summary > *, .deal-card > *, .work-card > *, .commercial-metric > strong {overflow-wrap:anywhere;min-width:0;max-width:100%;white-space:normal}
.sales-pipeline,.idea-board {align-items:stretch}
[data-lane] {min-height:9rem}
.drop-target {outline:2px dashed var(--accent);outline-offset:-3px}
[data-move][draggable=true] {cursor:grab}
.move-button {margin-top:10px;min-height:32px}
.move-dialog {width:min(36rem,calc(100vw - 2rem));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:20px}
.move-dialog::backdrop {background:#171c3080}
.move-dialog header {display:flex;align-items:center;justify-content:space-between;background:transparent;padding-bottom:12px}
.move-record {font-weight:600;margin:12px 0;overflow-wrap:anywhere}
.move-body .editor {padding:14px 0 0;margin:0}
.move-body [role=alert] {color:#ab3434}
.public-page {background:var(--canvas);color:var(--ink);min-height:100vh}
.public-page header {background:var(--paper);border-bottom:1px solid var(--line)}
.public-page .sign {margin:clamp(28px,10vh,100px) auto;padding:clamp(22px,4vw,38px);border:1px solid var(--line);border-radius:12px;background:var(--paper);max-width:440px}
.public-page .sign h1,.manage-home h1 {font:700 clamp(1.65rem,3vw,2.1rem)/1.2 Inter,system-ui,sans-serif;color:var(--ink);letter-spacing:-.04em}
.public-page .google-button {width:100%;justify-content:center;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:7px}
.public-page .sign .error:empty {display:none}
.manage-home {margin-bottom:24px}
.authenticated .home-apps {gap:14px}
.authenticated .home-app {padding:18px;background:var(--paper);border-radius:9px}
.idea-ranking {display:grid;gap:12px;max-width:860px}
.idea-ranking .idea-card {margin:0}
.idea-ranking form {display:flex;gap:12px;align-items:end;margin-top:10px;flex-wrap:wrap}
.idea-ranking input {max-width:6rem}

.price-list {max-width:100%;overflow-x:auto;margin-block:0 12px}
.price-list table {width:100%;margin:0}
.price-list td:first-child {min-width:10em;white-space:normal;overflow-wrap:anywhere}
.price-list small {display:block;color:var(--muted)}
.price-list td:last-child {white-space:nowrap}
.price-list button.quiet {padding:4px 6px;min-height:30px}
.price-item-dialog .actions {margin-top:16px}

@media screen {
  .authenticated :is(.commercial-workspace,.portal-workspace) {max-width:none;padding:clamp(16px,2vw,28px) clamp(12px,1.4vw,24px) 40px}
  .sidebar-header {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}
  .sidebar-header .sidebar-brand {min-height:34px;padding:0;min-width:0}
  .sidebar-header .sidebar-brand img {width:90px}
  .app-sidebar .sidebar-toggle {padding:0;width:34px;height:34px;min-height:34px;flex:none;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--muted)}
  .nav-icon {vertical-align:middle;flex:none}
  .app-sidebar nav a:has(.nav-icon) {display:inline-flex;align-items:center;gap:9px}
  .sidebar-account .nav-icon {display:none}
  .compact-nav .sidebar-toggle svg {transform:scaleX(-1)}
  .compact-nav .app-sidebar :is(.nav-text,.nav-section-label,.nav-group-title,.profile>div) {display:none}
  .compact-nav .sidebar-account .nav-icon {display:inline-block}
  .compact-nav .app-sidebar nav a:has(.nav-icon) {justify-content:center;min-width:36px;padding:9px 5px}
}
@media screen and (min-width:1001px) {
  .compact-nav .authenticated :is(.commercial-shell,.portal-shell) {grid-template-columns:64px minmax(0,1fr)}
  .compact-nav .app-sidebar:is(.workspace-nav,.commercial-nav) {padding:14px 6px 10px}
  .compact-nav .sidebar-header {justify-content:center}
  .compact-nav .sidebar-brand {display:none}
  .compact-nav .sidebar-account {display:flex;flex-direction:column;gap:4px;padding:8px 0 0}
  .compact-nav .theme-options {flex-direction:column}
}
@media screen and (max-width:1000px) {
  .sidebar-header {grid-column:1;grid-row:1;justify-content:flex-start;margin:0}
  .compact-nav .app-sidebar :is(.app-switcher,.context-menu) {gap:4px}
  .compact-nav .sidebar-account .profile {display:none}
}
