/* OFF/SHIFT OS owner-facing streamline layer. Behaviour and data stay in the existing modules. */
:root{--os-sidebar:216px}
.shell{grid-template-columns:var(--os-sidebar) minmax(0,1fr)}
.sidebar{width:var(--os-sidebar);padding:24px 16px 18px}
.brand{padding:0 10px 22px}.brand img{width:145px;height:38px}.brand small{margin-top:9px;letter-spacing:1.5px;font-size:9px}
.sidebar>.eyebrow{padding:8px 12px}.nav{gap:3px;margin-bottom:18px}.nav button{padding:10px 12px;gap:11px}
.topbar{height:64px;padding:0 32px}.crumb>span{display:none}.crumb strong{font-size:13px;color:#30352f}
.top-actions>.pill{display:none}.content{max-width:1380px;padding:28px 32px 36px}.page-heading{margin-bottom:22px}.page-heading p{max-width:680px}
.card{margin-bottom:16px}.card-head{padding:17px 20px}.task-row,.project-row,.activity-row{padding:15px 20px}
th{padding:13px 18px}td{padding:15px 18px}.footer{display:none}

.os-google-links{display:flex;align-items:center;gap:5px}.os-google-links a{font-size:11px;color:#60665d;padding:7px 9px;border-radius:5px}.os-google-links a:hover{background:#e9e6df;color:#20231f}
.os-mobile-nav{display:none}

/* Today is the command centre: one queue first, supporting information second. */
.os-board>.fd-status{display:none}.os-board>section.card:nth-of-type(1){border-color:#cbc5b9}.os-board>section.card:nth-of-type(2){background:transparent;border-style:dashed}.os-board>section.card:nth-of-type(2) .card-head{padding-top:13px;padding-bottom:13px}.os-board>section.card:nth-of-type(2) .os-pad{padding-top:4px;padding-bottom:12px}.os-handled span{padding:6px 8px;font-size:11px}
details.card>summary{padding:15px 20px}

/* Front Desk list: show the decision, not the same metadata twice. Full facts remain in detail. */
.front-desk>.fd-status{display:none}.fd-card{padding:16px;margin-bottom:9px}.fd-card .fd-facts{display:none}.fd-detail .fd-facts{display:grid}.fd-card h2{font-size:17px}.fd-card>p{margin-top:5px}.fd-next{margin-top:6px}.fd-actions{margin-top:12px}

/* Lead Factory: once a run is active, settings get out of the way. Primary progress stays owner-readable. */
.lf-v2:has(#factory-v2-start-button:disabled) #factory-v2-start{display:none}.lf-v2:has(#factory-v2-start-button:disabled)>#factory-v2-stop{margin:0 20px 14px;border-color:#b8a991;background:#f2eadf}
.lf-v2-progress{padding:16px 20px}.lf-v2-progress dl>div:nth-child(2),.lf-v2-progress dl>div:nth-child(n+8){display:none}.lf-v2-progress dl{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.lf-v2-progress dd{font-size:17px}.lf-v2-activity{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px 12px;align-items:baseline;margin-top:14px}.lf-v2-activity .eyebrow{margin:0}.lf-v2-outreach{max-height:280px;overflow:auto;border-top:1px solid var(--line);padding-top:14px}.lf-v2-cards{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}

/* Finance: daily money surfaces first. Low-frequency registers stay available by deep link, not in primary navigation. */
.finance-workspace .page-heading{align-items:flex-start}.fv-actions{flex-wrap:wrap;justify-content:flex-end}.fv-tabs{margin-bottom:20px}.fv-totals{margin-bottom:18px}.fv-metric{padding:18px 20px}.fv-metric>strong{font-size:25px;margin:7px 0 5px}.fv-panel-head{padding:16px 19px}.fv-bottom-grid .fv-panel:last-child{display:none}.fv-bottom-grid{grid-template-columns:1fr}.fv-bottom-grid + .fv-panel{display:none}

.os-finance-more{margin:-12px 0 20px}.os-finance-more>summary{cursor:pointer;width:max-content;font-size:11px;color:var(--muted);padding:7px 2px}.os-finance-more-links{display:flex;flex-wrap:wrap;gap:6px;padding-top:5px}.os-finance-more-links button{padding:8px 10px;border-radius:5px;background:#ece9e1;font-size:11px;color:#61675e}.os-finance-more-links button.active,.fv-tabs button.active,.os-subnav button[aria-current="page"]{background:#fff;color:#20231f;box-shadow:inset 0 0 0 1px #20231f}
.skip{position:absolute;left:8px;top:8px;transform:translateY(-140%);background:#fff;padding:8px 12px;z-index:9}.skip:focus{transform:none}
.os-approval{margin:0;font-size:12px;color:#3f463c;background:#f7f1e6;border:1px solid #e4d7c4;border-radius:999px;padding:6px 10px}
.os-home{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.os-stat,.pipeline-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px}
.os-stat strong{display:block;font-family:var(--os-font);font-size:28px;letter-spacing:-1px;margin:6px 0}
.os-next{margin-top:8px}
.os-flag{margin:0 0 10px;padding:10px 12px;background:#f7f1e6;border:1px solid #e4d7c4;border-radius:8px}
.os-mail{width:100%;max-width:none}
.os-mail-card{width:100%;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px;margin:0 0 12px}
.os-mail-card header{display:flex;gap:12px;align-items:baseline;justify-content:space-between}
.os-mail-card header span{font-size:12px;color:#60665d;text-transform:uppercase;letter-spacing:.04em}
.os-mail-card pre{white-space:pre-wrap;font-family:inherit;font-size:15px;line-height:1.5;margin:8px 0 0}
.inbox-mail{margin:0 0 22px}
.inbox-history{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.inbox-history button,.inbox-folders button,.inbox-actions button,.inbox-actions .secondary{min-height:44px}
.inbox-folders{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.inbox-folders button{padding:8px 12px;border-radius:6px;background:#fff;border:1px solid var(--line)}
.inbox-folders button[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #20231f;font-weight:700}
.inbox-layout{display:grid;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:16px;align-items:start}
.inbox-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:0 0 8px;min-height:44px}
.inbox-row span,.inbox-row small{color:#60665d}
.inbox-row[aria-current="true"]{box-shadow:inset 0 0 0 1px #20231f}
.inbox-detail{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px}
.inbox-detail h2{margin:0 0 6px;font-size:28px}
.inbox-message{border-top:1px solid var(--line);padding:12px 0}
.inbox-message header{display:flex;justify-content:space-between;gap:12px}
.inbox-message pre{white-space:pre-wrap;font-family:inherit;font-size:16px;line-height:1.5;margin:8px 0 0}
.inbox-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:12px 0}
.inbox-actions form{display:flex;gap:8px;align-items:end}
.pipeline-layout{display:block}
.pipeline-board{grid-template-columns:repeat(7,minmax(180px,1fr));overflow-x:auto}
.pipeline-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.pipeline-chips button{min-height:44px;padding:8px 12px;border-radius:6px;background:#fff;border:1px solid var(--line)}
.pipeline-chips button[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #20231f;font-weight:700}
.pipeline-tools form{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:0 0 8px}
.pipeline-row{display:flex;gap:8px;align-items:center;margin:0 0 8px}
.pipeline-row input{width:20px;height:20px}
.pipeline-row-open{display:grid;grid-template-columns:110px minmax(0,1.4fr) minmax(0,1fr) 120px;gap:8px;align-items:baseline;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 14px;min-height:44px}
.pipeline-row-open span{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#60665d}
.pipeline-row-open[aria-current="true"]{box-shadow:inset 0 0 0 1px #20231f}
.pipeline-compose textarea{min-height:120px}
.pipeline-review{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px 32px;margin:0 0 18px}
.pipeline-review h2{font-size:34px;line-height:1.1;margin:4px 0 8px}
.pipeline-status{font-size:16px;margin:0 0 16px}
.pipeline-letter,.pipeline-demo{margin:0 0 18px}
.pipeline-letter pre{white-space:pre-wrap;font-family:inherit;font-size:18px;line-height:1.55;max-width:68ch;margin:8px 0 0}
.pipeline-subject{font-size:15px;color:#3f463c}
.pipeline-demo iframe{width:100%;min-height:440px;border:1px solid var(--line);border-radius:8px;background:#fff}
.pipeline-log{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px 20px;margin:0 0 16px}
.pipeline-log pre{white-space:pre-wrap;font-family:inherit;font-size:15px;line-height:1.45;margin:8px 0 0}
.os-spend,.os-spend-alert{margin:0 0 14px;padding:12px 14px;border-radius:8px}
.os-spend{background:#f7f4ee;border:1px solid var(--line)}
.os-spend-alert{background:#f8efe6;border:1px solid #c4554a;color:#6d241c}
.pipeline-panel{position:static}
.pipeline-panel h3{margin-top:12px}
.pipeline-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:12px}
.pipeline-actions .primary,.pipeline-actions .secondary,.pipeline-actions a.secondary{min-height:40px;justify-content:center;text-align:center}
.pipeline-actions .field{margin:0}
.pipeline-actions .lf-check{font-size:13px;line-height:1.4}
.os-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.os-subnav button{min-height:40px;padding:8px 12px;border-radius:6px;background:#f7f4ee}
.os-collapsed-tools{margin-top:16px}
.os-more[hidden]{display:none !important}
:focus-visible{outline:2px solid #20231f;outline-offset:3px}

@media(max-width:1100px){:root{--os-sidebar:200px}.content{padding:24px}.topbar{padding:0 24px}.os-google-links a{padding:6px}}
.today-preview{max-width:1100px;margin:0 auto;padding:28px 32px 48px;background:#f4f1ec;min-height:100vh}
.today-preview>header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}
.today-preview>header img{width:145px;height:38px}
.today-preview>header p{margin:0;font-size:13px;color:#5c5346;max-width:360px}
.today-preview #fixture-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.today-preview #fixture-switch button{min-height:44px;padding:8px 12px;border-radius:6px;background:#fff;border:1px solid var(--line);font-size:13px}
.today-preview #fixture-switch button[aria-pressed="true"]{box-shadow:inset 0 0 0 1px #20231f;font-weight:700}
.today-fixture{margin:0 0 14px;padding:10px 12px;background:#f7f1e6;border:1px solid #e4d7c4;border-radius:8px;font-size:13px}
.today-rundown,.today-records{margin:0 0 16px}
.today-rundown ul{margin:8px 0 0;padding-left:18px}
.today-record{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin:0 0 8px}
.today-record span{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#60665d}
.today-record small{color:#60665d}
dialog.record-overlay{width:min(640px,calc(100vw - 24px))}
.record-body{padding:8px 26px 26px}
.record-body pre{white-space:pre-wrap;font-family:inherit;font-size:16px;line-height:1.5}
@media(max-width:700px){
 body{padding-bottom:66px}.today-preview{padding:20px 15px 32px}.today-preview>header{align-items:flex-start;flex-direction:column}.today-preview #fixture-switch button{flex:1 1 calc(50% - 8px)}dialog.record-overlay{width:calc(100vw - 16px)}.record-body{padding:8px 16px 20px}.shell{display:block}.sidebar{width:230px}.topbar{padding:0 16px}.content{padding:20px 15px 28px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:27px}.page-heading p{line-height:1.45}.card{margin-bottom:12px}.card-head{padding:15px 16px}.top-actions{gap:6px}.os-google-links{display:none}
 .os-mobile-nav{display:grid;grid-template-columns:repeat(6,1fr);position:fixed;left:0;right:0;bottom:0;z-index:7;background:#f7f4ee;border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
 .os-mobile-nav button{color:#5c6158;font-size:10px;min-height:48px;border-radius:6px;padding:4px}.os-mobile-nav button.active,.os-mobile-nav button[aria-current="page"]{background:#fff;color:#20231f;font-weight:700;box-shadow:inset 0 0 0 1px #20231f}
 .os-more{position:fixed;right:8px;bottom:74px;z-index:8;background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px;display:grid;gap:6px;min-width:140px}.os-more button{min-height:44px;text-align:left;padding:8px 10px}
 .os-home{grid-template-columns:1fr 1fr}.inbox-layout,.pipeline-layout{grid-template-columns:1fr}.inbox-actions form,.pipeline-tools form{flex-direction:column;align-items:stretch}.pipeline-row-open{grid-template-columns:1fr}.pipeline-panel{position:static}.os-approval{font-size:11px;padding:4px 8px}
 .lf-v2-activity{grid-template-columns:1fr}.lf-v2-progress dl{grid-template-columns:repeat(2,minmax(0,1fr))}.lf-v2-progress dl>div:nth-child(4){display:none}
 .fv-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.finance-workspace .page-heading{display:block}.finance-workspace .page-heading .fv-actions{margin-top:14px}.fv-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-totals .fv-metric{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.fv-totals .fv-metric:nth-child(2n){border-right:0}.fv-totals .fv-metric:nth-last-child(-n+2){border-bottom:0}
}

/* Classic Lead Factory stays reachable without dominating the daily prospecting screen. */
.os-classic-lf{margin:14px 0 18px;border:1px dashed #d2cec4;border-radius:8px;background:#f7f4ee}.os-classic-lf>summary{cursor:pointer;padding:14px 18px;font-size:12px;font-weight:700;color:#62675f}.os-classic-note{padding:0 18px 14px}.os-classic-lf>.lf-intake,.os-classic-lf>.lf-cost-strip,.os-classic-lf>.lf-guardrails,.os-classic-lf>.lf-night-status,.os-classic-lf>.lf-night{margin-left:14px;margin-right:14px}.os-classic-lf>.lf-metrics,.os-classic-lf>.lf-queue{margin-left:14px;margin-right:14px}.os-classic-lf>.lf-queue-heading{margin-left:16px;margin-right:16px}
