/* 1.7.1 — White / black / yellow. Palette lives in styles.css; layouts are unchanged. */
:root{--page-pad:28px;}
html,body{height:100%;overflow:hidden;scrollbar-gutter:auto;}
body{margin:0;}#app{height:100%;overflow:hidden;}
.shell,.workspace{height:var(--app-height,100dvh);min-height:0;}
.auth-shell{height:var(--app-height,100dvh);overflow:auto;overscroll-behavior:contain;}
.content,.chat-scroll,.panel-body,.settings-main{overflow-anchor:none;}
[hidden]{display:none!important;}
.btn{border-radius:7px;font-weight:550;}.btn.primary{color:var(--ink);background:var(--acid);border-color:var(--acid);}.btn.primary:hover{background:var(--accent-hover);color:var(--ink);border-color:var(--accent-hover);}
.btn:not(.primary):not(.danger):hover{background:#f5f5f5;}.icon-btn{border-radius:8px;}
.page-heading h1{font-weight:720;letter-spacing:-.035em;}.page-heading .eyebrow{letter-spacing:.1em;}
.sidebar{border-right:1px solid var(--line);background:var(--surface);color:var(--ink);}
.sidebar .nav-link{border-radius:10px;color:var(--muted);}.sidebar .nav-link.active{color:var(--acid);background:var(--ink);}
.sidebar .nav-link svg{stroke-width:1.6;}.sidebar-bottom{border-top:1px solid var(--line);}
.topbar{border-bottom-color:var(--line);background:var(--paper);}.breadcrumb .slash{opacity:.35;}
.topbar .studio-top-name{font-weight:650;}.topbar .install-trigger{margin-left:0;position:relative;}
.app-update-ready .install-trigger:after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--acid);}
.standalone-app .install-trigger{opacity:.55;}.topbar .search-trigger{color:var(--muted);}
.search-field{border-radius:8px;}.segmented{border-radius:8px;}.segmented button{border-radius:6px;}

.map-links a{padding:6px 9px;font-size:11px;color:#626262;background:var(--paper);border-color:var(--line);}

.directory-person:hover,.asset-entry:hover{background:var(--soft);}.directory-person-title h2,.asset-identity strong{font-weight:600;}
.directory-avatar{border-radius:11px;}.quiet-footer{color:#626262;}.data-table tbody tr:hover{background:var(--soft);}
.income-plane{border-radius:12px;border-color:var(--line);background:var(--surface);}

.settings-aside .settings-link{border-radius:7px;}.settings-aside .settings-link.active{background:var(--soft);color:var(--ink);box-shadow:inset 3px 0 0 var(--acid);}
.settings-main{padding-right:8px;}.settings-main h2{font-size:21px;font-weight:650;}
.field input,.field select,.field textarea{border-radius:7px;background:var(--surface);border-color:var(--line);}.field{gap:7px;}
.panel{border-radius:14px;}.panel-header h2{font-size:21px;font-weight:650;}.panel-header .eyebrow{font-size:10px;}
.panel-header{padding-bottom:15px;}.panel-header>.icon-btn{background:var(--soft);}
.confirm-form p{font-size:13px;line-height:1.8;}.notice{border-radius:8px;}
/* The composer keeps its draft in the DOM. A single compact row is the resting state. */
.composer-rail{display:flex;align-items:center;padding-right:5px;gap:3px;min-width:0;}
.composer-toggle{min-width:0;flex:1;display:flex;align-items:center;gap:10px;text-align:left;padding:11px 13px;min-height:46px;color:#626262;}
.composer-toggle>svg{flex:none;}.composer-toggle>svg:last-child{margin-left:auto;width:14px;}
.composer-toggle [data-draft-preview]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.5;}
.draft-dot{display:none;flex:none;width:5px;height:5px;border-radius:50%;background:var(--ink);}.has-draft .draft-dot{display:block;}
.has-draft .composer-toggle [data-draft-preview]{color:var(--ink);}
.is-expanded .composer-toggle{min-height:34px;padding:7px 12px;font-size:11px;}.is-expanded .composer-toggle>svg:last-child{transform:rotate(45deg);}
.is-expanded .composer-toggle [data-draft-preview]{font-size:11px;color:var(--muted);}
.pending-tray>span{margin-left:auto;}
/* Non-modal quick assistant; closing its view never stops a submitted server task. */
.quick-ai-launcher{position:fixed;right:24px;bottom:22px;z-index:35;display:flex;align-items:center;gap:8px;min-height:42px;padding:10px 15px;border-radius:24px;background:var(--ink);color:var(--acid);box-shadow:0 4px 14px #00000018;border:1px solid #999999;font-size:12px;font-weight:550;border-color:var(--ink);}
.quick-ai-launcher:hover{background:#292929;}.quick-ai-launcher i{display:none;width:5px;height:5px;background:var(--acid);border-radius:50%;}.quick-ai-launcher.is-running i{display:block;}
.quick-ai-open .quick-ai-launcher{background:var(--surface);color:var(--ink);box-shadow:none;}
.quick-ai{position:fixed;right:24px;bottom:74px;width:420px;height:520px;max-width:calc(100vw - 28px);max-height:calc(var(--app-height,100dvh) - 102px);z-index:45;background:var(--surface);border:1px solid #cccccc;border-radius:16px;box-shadow:0 12px 40px #0000001a;display:flex;flex-direction:column;overflow:hidden;border-color:var(--ink);}
.quick-ai-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:9px 12px 9px 16px;border-bottom:1px solid var(--line);background:var(--surface);flex:none;}
.quick-ai-header>div:first-child{display:flex;align-items:center;gap:8px;min-width:0;}.quick-ai-header strong{font-size:13px;font-weight:650;}.quick-ai-header small{font-size:10px;color:var(--muted);}
.quick-ai-header .row{gap:2px;}.quick-ai-header .icon-btn{width:30px;height:30px;min-width:30px;}
.quick-ai-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px 14px 4px;}
.quick-ai .agent-compact{flex:1;min-height:0;display:flex;flex-direction:column;height:100%;}
.quick-ai .agent-layout{display:flex!important;flex:1;min-height:0;height:100%;gap:0;}
.quick-ai .agent-main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;}
.quick-ai .page-heading{min-height:28px;margin:0 0 4px;justify-content:flex-end;}
.quick-ai .page-heading>div:first-child{display:none;}.quick-ai .page-heading>.row{width:auto;gap:5px;}
.quick-ai .page-heading .btn{min-height:28px;padding:4px 8px;font-size:10px;}.quick-ai .mobile-chat-history{display:inline-flex;}
.quick-ai .agent-status{min-height:25px;font-size:10px;padding-bottom:5px;}.quick-ai .agent-status .btn{font-size:10px;min-height:24px;padding:2px 4px;}
.quick-ai .agent-welcome{padding:10px 0;gap:7px;}
.quick-ai .agent-welcome h2{font-size:21px;line-height:1.5;margin:0;}.quick-ai .agent-welcome p{font-size:11px;margin:0 0 6px;}
.quick-ai .agent-examples{display:flex;flex-direction:row;gap:5px;width:100%;}.quick-ai .agent-examples button{flex:1;min-height:34px;justify-content:center;padding:7px 5px;font-size:10px;white-space:nowrap;}.quick-ai .agent-examples button svg{display:none;}
.quick-ai .chat-scroll{padding:10px 2px 10px 0;}.quick-ai .message-body{font-size:13px;line-height:1.8;}
.quick-ai .chat-message{gap:7px;margin-bottom:15px;}
.quick-ai .chat-message.user{max-width:95%;}.quick-ai .chat-message.user .message-body{font-size:13px;padding:9px 11px;}
.quick-ai .composer-caution{font-size:9px;}.quick-ai .agent-composer{margin-top:5px;}.quick-ai .composer-toggle{min-height:42px;}
.quick-ai .chat-other-run{font-size:10px;padding:6px;}.quick-ai .chat-latest{font-size:10px;min-height:30px;padding:5px 12px;}
/* Small review cards, with the second confirmation in the same surface. */
.review-dialog.panel{width:min(530px,calc(100vw - 28px));height:auto;max-height:calc(var(--app-height,100dvh) - 50px);}
.review-dialog .panel-body{padding:0 20px 20px;}.review-dialog .panel-header{padding:18px 20px 14px;}

.review-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:14px;margin-bottom:10px;}
.review-card:last-child{margin-bottom:0;}.review-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.review-kind{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--ink);}.review-card>header small{font-size:9px;color:var(--muted);}
.review-card h3{font-size:15px;line-height:1.6;margin:12px 0 13px;font-weight:650;overflow-wrap:anywhere;}


.review-amount{display:flex;flex-direction:column;text-align:right;gap:3px;}.review-amount small{font-size:9px;color:var(--muted);}.review-amount strong{font:600 23px/1.4 var(--mono);letter-spacing:-.045em;overflow-wrap:anywhere;}
.review-note{font-size:11px;color:var(--muted);line-height:1.75;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;}
.review-card .proposal-details{margin-top:10px;border-top:1px solid var(--line);padding:10px 0 0;}
.review-card .proposal-details summary{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);min-height:26px;cursor:pointer;}
.review-values{margin:8px 0 0;font-size:11px;line-height:1.65;}.review-values>div{display:grid;grid-template-columns:minmax(70px,.7fr) minmax(0,1.5fr);gap:10px;border-bottom:1px solid #e5e5e5;padding:7px 0;}.review-values dt{color:var(--muted);overflow-wrap:anywhere;}.review-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}.review-values .review-values>div{display:block;}.review-array{margin:0;padding-left:16px;}.review-array>li{padding:5px 0;}
.review-actions{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:10px;}.review-actions .btn{min-height:34px;}
.is-danger .review-kind{color:#b42318;}
.review-done{text-align:center;padding:22px 10px;}.review-done>svg{color:#626262;}.review-done h3{margin:10px 0;font-size:19px;}.review-done p{font-size:12px;color:var(--muted);margin-bottom:18px;}
.member-list{border-top:1px solid var(--line);}.member-row{gap:16px;padding:16px 0;border-bottom:1px solid var(--line);}
.member-row>div:first-child{min-width:0;}.member-row strong{font-size:14px;font-weight:600;}.member-row small{font-size:11px;line-height:1.8;overflow-wrap:anywhere;}.member-row .btn{min-height:32px;}.member-row.pending{border-left:2px solid var(--acid);padding-left:13px;background:var(--surface);}
.member-review-identity{display:flex;align-items:center;gap:12px;padding:12px;background:var(--soft);border-radius:9px;}.member-review-identity strong{font-size:14px;}.member-review-identity small{font-size:11px;color:var(--muted);overflow-wrap:anywhere;}
/* Quotations: paper, not a marketing card. Legacy snapshots keep their original renderer. */
.quote-workbench{gap:16px;}.quote-actions{border-bottom:1px solid var(--line);padding-bottom:14px;}
.quote-actions>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}.quote-actions>div>strong{font-size:13px;}
.quote-actions .tag{font-size:9px;background:var(--soft);border:0;}.quote-actions>.row{gap:7px;}
.quote-template-disclosure{border-bottom:1px solid var(--line);padding:0 0 10px;}.quote-template-disclosure>summary{font-size:11px;color:var(--muted);cursor:pointer;min-height:30px;display:flex;align-items:center;gap:8px;}.quote-template-disclosure .quote-template-bar{padding-top:12px;}
.quote-split{grid-template-columns:minmax(0,1fr)!important;gap:18px;background:var(--surface);padding:20px;border-radius:10px;border:1px solid var(--line);}
.quote-history-disclosure{background:var(--surface);border-radius:8px;padding:10px 14px;}.quote-history-disclosure>summary{font-size:11px;color:var(--muted);cursor:pointer;}.quote-history-disclosure .quote-history{display:block;border:0;padding-top:12px;max-width:none;}
.quote-history-disclosure .quote-history>div{display:flex;gap:10px;flex-wrap:wrap;}.quote-history-disclosure .quote-version{width:160px;margin:0;border-radius:6px;border:1px solid var(--line);padding:10px;}.quote-footnote{font-size:10px;}
.quote-paper.quote-paper-cn{padding:30px 34px 24px;box-shadow:none;background:var(--surface);color:var(--ink);border:0;border-radius:0;max-width:790px;width:100%;margin:auto;font-size:12px;line-height:1.65;}
.quote-paper-cn .quote-letterhead{border-bottom:1px solid #999999;padding:0 0 10px;display:flex;align-items:center;gap:12px;margin-bottom:18px;}
.quote-paper-cn .quote-letterhead strong{font-size:12px;font-weight:600;}.quote-paper-cn .quote-logo{height:28px;max-width:140px;margin:0;}
.quote-paper-cn .quote-doc-title{padding:0;margin:0 0 20px;text-align:center;}.quote-paper-cn .quote-doc-title h2{font-size:25px;line-height:1.4;letter-spacing:.12em;font-weight:650;margin:0 0 7px;}.quote-paper-cn .quote-doc-title small{font-size:10px;color:#626262;}

.quote-paper-cn .quote-schedule{background:#ffffff;padding:8px 10px;border:0;margin:0 0 14px;font-size:10px;}.quote-paper-cn .quote-schedule p{font-size:10px;}
.quote-paper-cn .quote-lines-table{width:100%;table-layout:fixed;border-top:1px solid #999999;}.quote-paper-cn .quote-lines-table th{background:var(--soft);color:var(--ink);border:0;padding:9px 7px;font-size:10px;font-weight:600;}
.quote-paper-cn .quote-lines-table th:first-child{text-align:left;}.quote-paper-cn .quote-lines-table td{padding:11px 7px;border-bottom:1px solid #e5e5e5;font-size:11px;overflow-wrap:anywhere;white-space:normal;vertical-align:top;}
.quote-paper-cn .quote-lines-table td strong{font-size:12px;font-weight:550;}.quote-paper-cn .quote-lines-table td small{font-size:10px;color:#626262;line-height:1.65;}.quote-paper-cn .quote-lines-table .num{text-align:right;font-family:var(--mono);font-size:11px;letter-spacing:-.03em;}
.quote-paper-cn .quote-lines-table .quote-index{width:30px;color:#626262;}.quote-paper-cn .quote-sum{background:none;padding:15px 0 10px;margin:0;border:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.quote-paper-cn .quote-sum>div:first-child{font-size:10px;display:flex;flex-wrap:wrap;gap:5px 12px;color:#626262;}.quote-paper-cn .quote-sum>div:last-child{display:flex;flex-direction:column;gap:3px;text-align:right;flex-shrink:0;}
.quote-paper-cn .quote-sum strong{font:650 25px/1.3 var(--mono);letter-spacing:-.04em;}.quote-paper-cn .quote-sum span{font-size:10px;}

.quote-paper-cn .quote-term{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;margin:10px 0;padding:0;border:0;}.quote-paper-cn .quote-term h4{font-size:10px;font-weight:500;color:#626262;margin:0;}.quote-paper-cn .quote-term p{font-size:11px;line-height:1.8;margin:0;overflow-wrap:anywhere;}
.quote-paper-cn .quote-signature{margin:20px 0 0;padding:13px 0 0;border-top:1px solid #cccccc;display:flex;align-items:center;justify-content:space-between;gap:15px;}
.quote-paper-cn .quote-signature strong{font-size:11px;font-weight:550;}.quote-paper-cn .quote-signature p{font-size:10px;margin:3px 0;color:#626262;}.quote-paper-cn .quote-signature>img{max-width:130px;max-height:120px;object-fit:contain;}
.quote-paper-cn .quote-disclaimer{margin-top:12px;padding:0;border:0;font-size:9px;color:#626262;}.quote-bank:empty{display:none;}
.quote-draft-summary{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:24px;}.quote-draft-summary h2{font-size:23px;line-height:1.5;}.quote-draft-summary p{font-size:12px;}.quote-draft-summary>div:last-of-type strong{font-size:30px;}
.quote-editor .quote-cost-controls{border-radius:8px;background:var(--soft);padding:12px;}.quote-line-editor{border-radius:9px;background:var(--surface);border-color:var(--line);}
.quote-live-total{background:var(--soft);border-radius:8px;padding:14px;}.quote-editor .quote-submit-row{border-top:1px solid var(--line);padding-top:14px;}.quote-editor .quote-submit-row>span{font-size:11px;}
/* Installation, updates and network state never masquerade as saved business data. */
.install-content{display:flex;flex-direction:column;gap:18px;}.install-identity{display:flex;gap:13px;align-items:center;}.install-identity img{border-radius:13px;flex:none;}.install-identity h3{font-size:21px;font-weight:600;margin:0;}.install-identity p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.7;}
.install-status{font-size:12px;display:flex;gap:8px;align-items:center;color:var(--ink);background:var(--soft);padding:11px;border-radius:8px;line-height:1.6;}
.install-steps{margin:0;display:flex;flex-direction:column;gap:15px;}.install-steps dt{font-size:12px;font-weight:600;}.install-steps dd{font-size:11px;line-height:1.8;color:var(--muted);margin:4px 0 0;}.install-footnote{font-size:10px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;}
.install-update{background:var(--soft);padding:14px;border-radius:8px;border-left:3px solid var(--acid);}.install-update strong{font-size:13px;}.install-update p{font-size:11px;line-height:1.7;margin:7px 0;}
.offline-status{position:fixed;left:50%;transform:translateX(-50%);top:max(8px,env(safe-area-inset-top));z-index:150;display:flex;gap:8px;align-items:center;background:var(--ink);color:var(--acid);padding:9px 15px;border-radius:8px;font-size:11px;max-width:calc(100vw - 24px);box-shadow:0 4px 14px #00000022;}
@media(min-width:901px){
 .install-dialog.panel{width:450px;height:auto;max-height:calc(var(--app-height) - 50px);}
}
@media(max-width:1100px) and (min-width:901px){
 :root{--page-pad:20px;}
}
@media(max-width:900px){
 :root{--page-pad:20px;}.workspace{margin-left:0;}.content{padding:8px 20px 12px;}.topbar{border-bottom:0;}
 .topbar .install-trigger{width:34px;min-width:34px;}.topbar:has(.install-trigger) .studio-top-name{max-width:140px;}
 .topbar:has(.pi-running-button:not(.hidden)) .studio-top-name{max-width:105px;}

 .asset-directory,.partner-directory{padding-bottom:58px;}.directory-person-main{gap:8px 11px;}
 .settings-main{padding-right:0;}.settings-aside{display:none;}.mobile-dock{background:var(--surface);border-top-color:var(--line);color:var(--muted);border-top:1px solid var(--line);backdrop-filter:none;box-shadow:none;}
 .mobile-dock .dock-indicator{border-radius:13px;background:var(--acid);}.mobile-dock a.active,.mobile-dock button.active{color:var(--ink);}
 .quick-ai-launcher{bottom:calc(var(--dock-height,74px) + env(safe-area-inset-bottom) + 10px);right:16px;min-height:40px;padding:9px 13px;font-size:11px;background:var(--ink);color:var(--acid);border-color:var(--ink);box-shadow:0 4px 14px #00000018;}
 .quick-ai{right:12px;bottom:calc(var(--dock-height,74px) + env(safe-area-inset-bottom) + 59px);width:calc(100vw - 24px);height:min(510px,65dvh);max-height:calc(var(--app-height,100dvh) - var(--dock-height,74px) - env(safe-area-inset-bottom) - 78px);border-radius:15px;border-color:var(--ink);background:var(--surface);box-shadow:0 12px 40px #0000001a;}
 .quick-ai .agent-welcome h2{font-size:21px;}.quick-ai .page-heading h1{display:none;}.quick-ai .page-heading>.row{margin:0;width:auto;}
 .quick-ai .agent-examples button{font-size:10px;min-height:34px;padding:7px 4px;}.quick-ai .composer-caution{font-size:9px;}
 .keyboard-open .quick-ai{top:calc(var(--visual-top,0px) + 6px);bottom:auto;height:calc(var(--app-height,100dvh) - 12px);max-height:calc(var(--app-height,100dvh) - 12px);}
 .keyboard-open .quick-ai-launcher{display:none;}
 .review-dialog.panel,.install-dialog.panel{inset:0!important;margin:auto!important;width:calc(100vw - 24px)!important;height:fit-content!important;max-height:calc(var(--app-height,100dvh) - 32px)!important;border-radius:14px!important;}
 .review-dialog .sheet-handle,.install-dialog .sheet-handle{display:none;}.review-dialog .panel-header,.install-dialog .panel-header{padding:16px;}.review-dialog .panel-body,.install-dialog .panel-body{padding:0 16px 16px;}
 .review-card{padding:12px;}.review-card h3{font-size:14px;margin:10px 0;}.review-amount strong{font-size:22px;}
 .review-values>div{grid-template-columns:85px minmax(0,1fr);}
 .member-row{flex-wrap:wrap;padding:14px 0;gap:10px;}.member-row>.row{justify-content:flex-start;gap:8px;}.member-row .btn{min-height:34px;}
 .quote-dialog .panel-body{padding:0 12px 16px;background:var(--surface);}.quote-dialog .panel-header{padding:16px;background:var(--surface);color:var(--ink);border-bottom:1px solid var(--line);}.quote-split{padding:8px;border-radius:8px;background:var(--surface);border:1px solid var(--line);}
 .quote-actions{gap:12px;align-items:flex-start;}.quote-actions .btn{min-height:34px;font-size:11px;padding:7px 9px;}.quote-actions>.row{gap:6px;}
 .quote-template-bar{gap:10px;flex-wrap:wrap;}.quote-draft-summary{padding:17px;}.quote-draft-summary h2{font-size:20px;}.quote-draft-summary>div:last-of-type strong{font-size:28px;}
 .quote-paper.quote-paper-cn{padding:20px 13px;font-size:10px;min-width:0;max-width:100%;line-height:1.7;background:var(--surface);color:var(--ink);box-shadow:none;}
 .quote-paper-cn .quote-letterhead{padding-bottom:9px;margin-bottom:14px;}.quote-paper-cn .quote-letterhead strong{font-size:10px;}.quote-paper-cn .quote-doc-title{margin-bottom:17px;}
 .quote-paper-cn .quote-doc-title h2{font-size:21px;letter-spacing:.07em;}.quote-paper-cn .quote-doc-title small{font-size:8px;}
 
 .quote-paper-cn .quote-lines-table th{font-size:8px;padding:7px 3px;background:var(--soft);color:var(--ink);}.quote-paper-cn .quote-lines-table td{padding:8px 3px;font-size:9px;}.quote-paper-cn .quote-lines-table td strong{font-size:10px;}.quote-paper-cn .quote-lines-table td small{font-size:8px;}.quote-paper-cn .quote-lines-table .num{font-size:9px;}.quote-paper-cn .quote-lines-table .quote-index{width:18px;font-size:8px;}
 .quote-paper-cn .quote-sum strong{font-size:21px;}.quote-paper-cn .quote-sum{padding:12px 0 8px;gap:8px;}.quote-paper-cn .quote-sum span{font-size:8px;}
 .quote-paper-cn .quote-term{grid-template-columns:50px minmax(0,1fr);gap:8px;}.quote-paper-cn .quote-term h4{font-size:8px;}.quote-paper-cn .quote-term p{font-size:9px;}.quote-paper-cn .quote-signature{margin-top:15px;gap:10px;}.quote-paper-cn .quote-signature strong{font-size:10px;}.quote-paper-cn .quote-signature p{font-size:8px;}.quote-paper-cn .quote-signature>img{max-width:95px;max-height:95px;}.quote-paper-cn .quote-disclaimer{font-size:8px;}.quote-paper-cn .quote-signature>span{font-size:9px;}
}
@media(max-width:360px){
 .content{padding-left:14px;padding-right:14px;}.topbar{padding:0 12px;}.topbar .install-trigger{width:30px;min-width:30px;}.topbar:has(.install-trigger) .studio-top-name{max-width:107px;}.topbar:has(.pi-running-button:not(.hidden)) .studio-top-name{max-width:80px;}
 .review-card>header small{font-size:8px;}.review-amount strong{font-size:19px;}
}
@media(max-height:600px){
 .quick-ai .agent-welcome{padding:5px 0;}.quick-ai .agent-welcome p{display:none;}.quick-ai-header{min-height:42px;padding-top:5px;padding-bottom:5px;background:var(--surface);border-bottom:1px solid var(--line);}.quick-ai .composer-caution{display:none;}
}
/* Version-2 document semantics, shared with the authenticated print renderer. */
.quote-paper-cn .quote-letterhead>small{margin-left:auto;color:#626262;font-size:10px;}.quote-paper-cn .quote-letterhead>span{font-size:12px;font-weight:500;}
.quote-paper-cn .quote-cn-heading{text-align:center;font-size:25px;line-height:1.5;letter-spacing:.12em;font-weight:650;margin:0 0 18px;}


.quote-paper-cn .quote-lines-table th:nth-child(2){width:40%;}.quote-paper-cn .quote-lines-table{min-width:0;}
.quote-cn-total{padding:15px 0 13px;}.quote-cn-adjustments{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 15px;font-size:10px;color:#626262;}
.quote-cn-grand{display:flex;align-items:baseline;justify-content:flex-end;gap:22px;margin-top:4px;}.quote-cn-grand>span{font-size:10px;}.quote-cn-grand>strong{font:650 25px/1.5 var(--mono);letter-spacing:-.04em;}.quote-cn-uppercase{text-align:right;font-size:10px;color:#626262;margin:1px 0 0;}

/* The floating launcher is the single dashboard entry, avoiding stacked duplicate buttons. */

@media(max-width:900px){.quote-paper-cn .quote-cn-heading{font-size:21px;letter-spacing:.07em;margin-bottom:13px;}.quote-cn-adjustments,.quote-cn-uppercase,.quote-cn-grand>span{font-size:8px;}.quote-cn-grand>strong{font-size:22px;}.quote-paper-cn .quote-letterhead>span,.quote-paper-cn .quote-letterhead>small{font-size:9px;}}
.quote-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior:contain;}
.quote-paper-cn .quote-lines-table th:nth-child(2),.quote-paper-cn .quote-lines-table .quote-index{width:auto;}
.quote-paper-cn .quote-lines-table .quote-index{white-space:nowrap;}
.quote-paper-cn .quote-lines-table td.num{white-space:nowrap;overflow-wrap:normal;letter-spacing:-.055em;}

/* Keep clipped file inputs inside their scroll container, not at document coordinates. */
.upload-control{position:relative;overflow:hidden;}
.settings-main{position:relative;}
/* Intrinsic dialog height: inset:0 + height:auto would stretch a small review to the screen. */
.review-dialog .panel-wrap,.install-dialog .panel-wrap,.member-review-dialog .panel-wrap{height:auto;max-height:inherit;}
.review-card h3{margin:8px 0 9px;}.review-note{margin:7px 0;}
.review-card .proposal-details{margin-top:6px;padding-top:6px;}.review-actions{margin-top:8px;}
@media(min-width:901px){
 .review-dialog.panel,.install-dialog.panel,.member-review-dialog.panel{height:fit-content;min-height:0;max-height:min(660px,calc(var(--app-height,100dvh) - 48px));border-radius:12px;}
}
/* On narrow settings screens, leave the fixed save bar unobstructed. */
@media(max-width:900px){body:has(.settings-page)>.quick-ai-launcher{display:none;}}

/* Crisp accents: no tinted page canvas, translucent dock, or blur layer. */
.status-shooting,.status-pending{background:var(--acid);color:var(--ink)}
.status-confirmed,.status-accepted,.status-editing{background:var(--soft);color:var(--ink)}
.status-delivered,.status-completed,.status-lead,.status-archived{background:var(--soft);color:var(--muted)}
.btn.accent{background:var(--acid);color:var(--ink);border-color:var(--acid)}
.btn:not(.primary):not(.danger):not(.accent):hover{background:var(--soft);border-color:#b8b8b8}
.btn.accent:hover{background:var(--accent-hover)}
.btn.primary:disabled,.btn.accent:disabled{background:var(--soft);border-color:var(--line);color:var(--muted);opacity:1}
.sidebar .nav-link.active:hover{background:var(--ink);color:var(--acid)}
.sidebar .profile-mini .icon-btn:hover{background:var(--soft);color:var(--ink)}
.quick-ai-header>div:first-child>svg{color:var(--ink)}
.quick-ai-open .quick-ai-launcher:hover{background:var(--soft);color:var(--ink)}

.review-kind>svg,.pending-tray>svg:first-child{color:var(--ink);background:var(--acid);border-radius:3px}
.review-done>svg{color:var(--ink)}
.is-danger .review-kind>svg{background:var(--danger-light);color:var(--danger)}
.income-plane.whole{border-top:2px solid var(--ink)}
.income-plane.owner{border-top:2px solid var(--acid)}


.trend-total-outline{fill:none;stroke:var(--ink);stroke-width:4;stroke-linejoin:round;stroke-linecap:round;opacity:1}





.calendar-event,.time-event{color:var(--ink)}
.calendar-event.cat-commercial,.calendar-event.cat-product,.calendar-event.cat-wedding,.calendar-event.cat-portrait,.calendar-event.cat-documentary{color:var(--ink)}
.calendar-event.cat-commercial,.calendar-event.cat-product{border-left-color:var(--acid)}
.month-first-date.today.selected>strong{background:var(--acid);color:var(--ink)}
input[type=checkbox]{accent-color:var(--ink)}

/* Compact document layout shared by quotations and client statements. */
.quote-paper-cn .quote-letterhead{border:0;padding:0;margin-bottom:8px}.quote-paper-cn .quote-letterhead:empty{display:none}
.quote-paper-cn .quote-cn-heading{font-size:23px;letter-spacing:.06em;margin-bottom:14px}

.quote-paper-cn .quote-signature{border:0;justify-content:flex-end;text-align:right;min-height:0;break-inside:avoid}
.quote-paper-cn .quote-signature>div{max-width:100%}
.quote-paper-cn .quote-sealed-name{position:relative;display:inline-block;padding-top:90px;padding-bottom:38px;min-width:220px;max-width:100%}
.quote-paper-cn .quote-sealed-name strong{display:block;overflow-wrap:anywhere}
.quote-paper-cn .quote-sealed-name img{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:var(--seal-width);height:var(--seal-width);max-width:150px;max-height:150px;object-fit:contain;z-index:2}
.quote-paper-cn .quote-sealed-name:not(:has(img)){padding:0}
@media(max-width:600px){.quote-paper-cn .quote-cn-heading{font-size:21px}.quote-paper-cn .quote-sealed-name{min-width:180px;padding-top:74px;padding-bottom:32px}.quote-paper-cn .quote-sealed-name img{max-width:120px;max-height:120px}}

.quote-paper-cn .quote-sealed-name strong{position:relative;z-index:1}

.quote-paper-cn .quote-sealed-name{text-align:center}

/* Project statements: one reading axis, restrained detail rows and a clear balance. */
.quote-paper-cn.quote-statement .quote-lines-table{border-top:0}.quote-paper-cn.quote-statement .quote-lines-table th{background:var(--soft);padding:9px}
.quote-paper-cn.quote-statement .quote-lines-table td{padding:10px 9px}.quote-paper-cn.quote-statement .quote-lines-table td strong{font-weight:400}
.quote-statement .quote-lines-table th:nth-child(3),.quote-statement .quote-lines-table td:nth-child(3){text-align:center;color:var(--muted);font-family:inherit;letter-spacing:0}
.quote-statement .quote-cn-total{background:var(--soft);margin-top:19px;padding:16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.quote-statement .quote-cn-adjustments{flex-direction:column;gap:4px}.quote-statement .quote-cn-grand{margin:0;gap:16px}.quote-statement .quote-cn-grand>strong{font-size:29px}.quote-statement .quote-cn-uppercase{width:100%}
.quote-paper-cn.quote-statement .quote-signature{margin-top:23px}.quote-paper-cn.quote-statement .quote-sealed-name{padding-top:79px;padding-bottom:34px}.quote-paper-cn.quote-statement .quote-sealed-name:not(:has(img)){padding:0}
@media(max-width:600px){.quote-paper-cn.quote-statement .quote-cn-heading{font-size:24px}.quote-paper-cn.quote-statement .quote-lines-table th,.quote-paper-cn.quote-statement .quote-lines-table td{padding:8px 3px}.quote-statement .quote-cn-total{padding:12px}.quote-statement .quote-cn-grand>strong{font-size:23px}}

.quote-statement .statement-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:4px 0 22px;border-bottom:1px solid var(--ink);break-inside:avoid}
.quote-statement .statement-identity{flex:1;min-width:0;border-left:4px solid var(--acid);padding-left:15px}.quote-statement .statement-identity>strong{display:block;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.quote-statement .statement-contact{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.quote-statement .statement-identity .quote-logo{display:block;margin-bottom:8px}
.quote-paper-cn.quote-statement .quote-cn-heading{text-align:right;font-size:25px;letter-spacing:.02em;line-height:1.4;margin:0;flex-shrink:0}
.quote-statement .statement-recipient{display:flex;justify-content:space-between;align-items:baseline;gap:22px;padding:15px 0 19px}.quote-statement .statement-client{display:flex;align-items:baseline;gap:15px;flex:1;min-width:0}.quote-statement .statement-client>span{font-size:10px;color:var(--muted);flex-shrink:0}.quote-statement .statement-client>strong{font-size:14px;overflow-wrap:anywhere}.quote-statement .statement-date{font-size:10px;color:var(--muted);flex-shrink:0}
@media(max-width:600px){.quote-statement .statement-masthead{align-items:flex-start;flex-direction:column;gap:15px;padding-bottom:16px}.quote-paper-cn.quote-statement .quote-cn-heading{text-align:left;font-size:24px}.quote-statement .statement-recipient{flex-wrap:wrap;gap:7px}.quote-statement .statement-date{width:100%}}

.quote-paper-cn.quote-statement .quote-cn-heading{max-width:46%;overflow-wrap:anywhere}
.quotation-details{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;padding:19px 0 23px}.quotation-parties{flex:1;min-width:0}.quotation-parties p{display:flex;align-items:baseline;gap:15px;margin:0 0 8px}.quotation-parties p:last-child{margin-bottom:0}.quotation-parties span{font-size:10px;color:var(--muted);flex-shrink:0;width:68px}.quotation-parties strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.quotation-dates{font-size:10px;color:var(--muted);flex-shrink:0;text-align:right;line-height:2.2}.quotation-dates p{margin:0}
.quotation-document .quote-cn-adjustments:empty{display:none}.quotation-document .quote-cn-total{justify-content:flex-end;gap:19px}.quotation-document .quote-cn-adjustments{margin-right:auto}.quote-paper-cn.quotation-document .quote-signature{margin-top:34px}
@media(max-width:600px){.quote-paper-cn.quote-statement .quote-cn-heading{max-width:100%}.quotation-details{flex-direction:column;gap:12px}.quotation-dates{text-align:left}.quotation-parties span{width:56px}}

.quote-paper-cn.quote-statement .quote-lines-table th{white-space:nowrap}

.quotation-document .statement-masthead{border:0;padding:0 0 7mm;align-items:flex-start}.quotation-document .statement-identity{border:0;padding:0}.quotation-document .statement-identity strong{font-size:10pt}.quote-paper-cn.quotation-document .quote-cn-heading{font-size:25pt;font-weight:700;line-height:1.2;color:#202020;letter-spacing:.3pt;white-space:nowrap}
.proposal-hero{padding:6mm 0 7mm;border-top:.6pt solid #dedede;break-inside:avoid;break-after:avoid}.proposal-hero h2{font-size:15pt;font-weight:600;line-height:1.35;letter-spacing:-.3pt;max-width:155mm;overflow-wrap:anywhere}.proposal-client{font-size:10pt;margin-top:4mm;color:#414141}.proposal-client span{font-size:8pt;color:#888;margin-right:3mm}

.proposal-section{display:flex;align-items:center;gap:3mm;border-bottom:.9pt solid #333;padding:3mm 0;break-after:avoid}.proposal-section strong{font-size:10pt;font-weight:600}
.quotation-document .quote-lines-table th{background:#fff;padding:3mm 2mm;color:#888;font-size:7.5pt;border-bottom:.5pt solid #dedede}.quotation-document .quote-lines-table td{padding:5mm 2mm;border-bottom:.5pt solid #dedede}.quotation-document strong{font-weight:500}.quotation-document .quote-cn-total{background:none;border-bottom:1pt solid #282828;margin:0;padding:5mm 0 5mm;min-height:22mm}.quotation-document .quote-cn-grand{display:flex;flex-direction:column;align-items:flex-end}.quotation-document .quote-cn-grand strong{font-size:25pt;margin:1mm 0 0}.quotation-document .quote-cn-grand span{font-size:8pt;color:#6b6b6b}.quotation-document .quote-signature{margin-top:5mm}.quotation-document .quote-sealed-name{padding-top:21mm;padding-bottom:9mm}.quotation-document .quote-signature>div strong{font-size:8pt}

.proposal-notes{padding:6mm 0 0;break-inside:avoid}.proposal-notes h3{font-size:10pt;font-weight:600;margin-bottom:3mm}.proposal-notes dl{margin:0}.proposal-notes dl>div{display:flex;gap:4mm;margin:1.5mm 0;font-size:8.5pt;line-height:1.7}.proposal-notes dt{width:15mm;flex-shrink:0;color:#858585}.proposal-notes dd{margin:0;color:#414141}.quotation-document .quote-signature>div .proposal-sign-date{font-size:9pt;color:#414141;margin:0 0 0 auto;width:65mm;text-align:center;padding:0}.quotation-document .quote-sealed-name{padding-bottom:8mm;width:65mm;min-width:65mm}

.quotation-document .statement-masthead{align-items:center;padding-bottom:6mm}.quotation-document .statement-contact{margin-top:1.5mm}.proposal-hero{padding:6mm 0}.proposal-hero h2{font-size:14pt;line-height:1.5;letter-spacing:0}.proposal-client{margin-top:3mm;line-height:1.5}.proposal-section{padding:3mm 0}.quotation-document .quote-lines-table th,.quotation-document .quote-lines-table td{padding-left:2mm;padding-right:2mm}.quotation-document .quote-lines-table th:first-child,.quotation-document .quote-lines-table td:first-child{padding-left:0}.quotation-document .quote-lines-table th:last-child,.quotation-document .quote-lines-table td:last-child{padding-right:0}.quotation-document .quote-lines-table th.num,.quotation-document .quote-lines-table td.num{font-variant-numeric:tabular-nums}.quotation-document .quote-lines-table th.center,.quotation-document .quote-lines-table td.center{text-align:center}.quotation-document .quote-cn-total{padding:5mm 0;min-height:0}.quotation-document .quote-cn-grand span{line-height:1.5}.quotation-document .quote-cn-grand strong{line-height:1.3;letter-spacing:0}.proposal-notes{padding-top:6mm}.proposal-notes h3{margin-bottom:3mm}.proposal-notes dl>div{gap:0;margin:0 0 2mm;line-height:1.65}.proposal-notes dt{width:19mm}.proposal-notes dd{flex:1}.quotation-document .quote-signature{margin-top:7mm}.quotation-document .quote-sealed-name{display:block;margin-left:auto}.quotation-document .quote-signature>div .proposal-sign-date{line-height:1.5;margin-top:1mm}

.quote-statement .quote-lines-table th:first-child,.quote-statement .quote-lines-table td:first-child{padding-left:0}.quote-statement .quote-lines-table th:last-child,.quote-statement .quote-lines-table td:last-child{padding-right:0}.statement:not(.quotation-document) .quote-cn-total{padding-left:0;padding-right:0}.quote-statement .quote-sealed-name{display:block;width:65mm;min-width:65mm;margin-left:auto;text-align:center}.quote-statement .quote-signature>div .proposal-sign-date{width:65mm;margin:1mm 0 0 auto;text-align:center;padding:0;font-size:9pt}.proposal-notes dd{white-space:pre-wrap;overflow-wrap:anywhere}

.quote-paper-cn.quotation-document .quote-cn-heading{max-width:50%;white-space:normal}.quote-paper-cn .quote-signature>div{width:100%}.quote-paper-cn .quote-sealed-name{width:65mm;min-width:65mm}.quote-paper-cn .proposal-sign-date{width:65mm!important;text-align:center!important;margin-left:auto!important}.quote-statement .quote-lines-table th{text-align:left}.quote-statement .quote-lines-table .num{text-align:right}.quote-statement:not(.quotation-document) .quote-lines-table :nth-child(3){text-align:center}@media(max-width:600px){.quote-paper-cn.quotation-document .quote-cn-heading{max-width:100%;font-size:25px}.proposal-hero h2{font-size:17px}.proposal-notes dl>div{font-size:10px}.quotation-document .quote-cn-grand strong{font-size:27px}.quotation-document .statement-identity strong{font-size:12px}}
.quote-paper-cn.quotation-document .quote-cn-grand{gap:2px}.quote-paper-cn.quotation-document .quote-cn-grand>strong{font-weight:650;letter-spacing:0}.quote-paper-cn.quotation-document .quote-lines-table th{background:var(--surface)}
@media(max-width:600px){.quotation-document .statement-masthead{align-items:flex-start}.quote-paper-cn.quotation-document .quote-cn-heading{text-align:left}.proposal-hero h2{max-width:100%}}

/* Mail reminder settings share the studio form and card vocabulary. */
.mail-settings{max-width:860px}.mail-settings details summary{cursor:pointer;margin-bottom:14px}.mail-settings .field-row>*{min-width:0}.mail-recipient-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mail-log-row{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.mail-log-row>div{min-width:0}.mail-log-row small{display:block;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.mail-settings [data-count]{font-size:12px;color:var(--muted)}
@media(max-width:650px){.mail-recipient-list{grid-template-columns:1fr}.mail-log-row{flex-direction:column;gap:8px}.mail-settings .field-row{grid-template-columns:1fr}.mail-settings input,.mail-settings select{min-width:0;max-width:100%}}

/* Independent storyboard workbench. Scoped to avoid changing existing views. */
.storyboard-workbench{width:100%;max-width:1600px;height:100%;min-height:0;flex:1;margin:0 auto;padding-bottom:40px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-anchor:none}
.storyboard-workbench .page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.storyboard-workbench .page-heading h1{font-size:36px;letter-spacing:-1.5px;margin:4px 0 8px}
.sb-projectbar{display:flex;align-items:center;gap:20px;padding:18px 22px;background:var(--paper,#fff);border:1px solid var(--line,#ddd);border-radius:16px;margin-bottom:24px}
.sb-projectbar .field{flex:1;max-width:650px;margin:0}
.sb-projectbar select{font-size:16px;font-weight:600}
.sb-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:30px 0 24px}
.sb-heading h2{font-size:28px;line-height:1.25;letter-spacing:-.7px;margin:4px 0 8px}
.sb-stat{display:flex;gap:24px;flex-shrink:0}
.sb-stat strong{font-size:28px;line-height:1.2;display:grid;font-variant-numeric:tabular-nums}
.sb-stat small{font-size:11px;font-weight:500;color:var(--muted,#777);margin-top:6px}
.sb-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line,#ddd)}
.sb-filters{display:flex;align-items:end;gap:14px;margin:20px 0}
.sb-filters .field{margin:0;flex:1;max-width:360px}
.sb-filters [data-result]{padding-bottom:9px;white-space:nowrap}
.sb-dropzone{display:flex;align-items:center;gap:20px;background:#f8f8f5;border:1px dashed #c8c8bd;border-radius:16px;padding:20px 24px;margin-bottom:26px;transition:background .15s}
.sb-dropzone>div{display:grid;grid-template-columns:30px 1fr;column-gap:10px;row-gap:4px;flex:1}
.sb-dropzone>div>svg{grid-row:1/4;align-self:center}
.sb-dropzone>div>span,.sb-dropzone>div>small{grid-column:2;color:var(--muted,#777);font-size:12px}
.sb-dropzone .field{min-width:190px;max-width:260px;margin:0}
.sb-dropzone.dragover{background:#fff7bb;border-color:#222}
.sb-dropzone:focus-visible{outline:2px solid #222;outline-offset:4px}
.sb-shot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sb-shot{border:1px solid var(--line,#ddd);border-radius:16px;overflow:hidden;background:#fff;min-width:0}
.sb-shot-image{width:100%;aspect-ratio:16/9;position:relative;display:block;background:#efefeb;border:0;padding:0;cursor:pointer;overflow:hidden}
.sb-shot-image img{width:100%;height:100%;object-fit:cover}
.sb-no-image{display:grid;place-content:center;justify-items:center;gap:10px;color:#96968c;height:100%}


.sb-shot-content{padding:18px}
.sb-shot-content .eyebrow{margin:0 0 7px;font-size:10px}
.sb-shot-content h3{font-size:18px;margin:0 0 12px}
.sb-shot-content h3 button{border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}


.sb-action{font-size:12px;line-height:1.8;color:#53534e;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:12px 0}
.sb-line{font-size:13px;line-height:1.8;border-left:2px solid #dbc628;padding-left:10px;margin:12px 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap}
.sb-shot-content footer{display:flex;align-items:center;gap:8px;border-top:1px solid #eee;padding-top:12px}
.sb-shot-content footer small{margin-left:auto;font-size:10px;color:#777}
.sb-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.sb-photo{border:1px solid #deded7;border-radius:14px;overflow:hidden;min-width:0;background:#fff}
.sb-photo-image{display:block;width:100%;aspect-ratio:4/3;border:0;background:#eee;padding:0;cursor:pointer}
.sb-photo-image img{width:100%;height:100%;object-fit:cover}
.sb-photo>div{display:grid;gap:7px;padding:14px}
.sb-photo strong{font-size:13px;overflow-wrap:anywhere}
.sb-photo p,.sb-photo small{margin:0;color:#777;font-size:11px}
.sb-photo .btn{justify-self:start;margin-top:5px}
.sb-detail-meta{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.sb-detail-meta strong{background:#f3df3d;padding:7px 10px;border-radius:6px}
.sb-detail-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sb-detail-photos a{color:inherit;text-decoration:none;display:grid;gap:5px;font-size:11px}
.sb-detail-photos img{width:100%;max-height:350px;object-fit:contain;background:#f3f3ef;border-radius:10px}
.sb-shot-detail dl>div{padding:15px 0;border-bottom:1px solid #e5e5df;display:grid;grid-template-columns:92px 1fr;gap:15px}
.sb-shot-detail dt{color:#777;font-size:12px}
.sb-shot-detail dd{margin:0;white-space:pre-wrap;font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.sb-photo-full{width:100%;max-height:55vh;object-fit:contain;border-radius:12px;background:#f3f3ef}
.sb-link-shots{border:1px solid #ddd;border-radius:10px;padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:320px;overflow:auto}
.sb-link-shots label{display:flex;gap:9px;align-items:center;font-size:12px;min-height:32px}
.sb-link-shots input{width:18px;height:18px;flex-shrink:0}
.sb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sb-upload-queue{margin-top:25px;border:1px solid #deded7;border-radius:14px;padding:20px;background:#fff}
.sb-queue-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sb-queue-title h3{font-size:15px;margin:0 auto 0 0}
.sb-upload-queue ol{list-style:none;padding:0;margin:12px 0 0}
.sb-upload-queue li{display:flex;align-items:center;gap:15px;border-top:1px solid #eee;padding:12px 0;font-size:12px}
.sb-upload-queue li>div{min-width:0;flex:1;display:grid;gap:3px}
.sb-upload-queue strong{overflow-wrap:anywhere}
.sb-upload-queue small{font-size:10px;color:#777}
.sb-upload-queue progress{width:110px;accent-color:#b49d00}
.sb-upload-queue li>span{max-width:230px;overflow-wrap:anywhere}
.sb-import-summary{padding:16px;border:1px solid #d4c254;border-radius:12px;background:#fffbe5}
.sb-loading{padding:50px;text-align:center;color:#777}
.sb-field-mode .sb-shot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sb-field-mode .sb-line,.sb-field-mode .sb-action{display:block;font-size:16px;-webkit-line-clamp:unset}

@media(min-width:1550px){.sb-shot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.sb-shot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sb-dropzone{flex-wrap:wrap}.sb-dropzone>div{min-width:100%}.sb-heading{align-items:flex-start}.sb-stat{gap:15px}}
@media(max-width:650px){
 .storyboard-workbench .page-heading h1{font-size:30px}.storyboard-workbench .page-heading{margin-bottom:18px}
 .sb-projectbar{padding:15px;display:block}.sb-projectbar>span{display:block;font-size:10px;margin-top:8px}
 .sb-heading{display:block;margin:24px 0 20px}.sb-heading h2{font-size:23px}.sb-stat{margin-top:20px;justify-content:space-between}.sb-stat strong{font-size:25px}
 .sb-tools{gap:7px}.sb-tools>.segmented{width:100%;display:flex;margin-bottom:5px}.sb-tools>.segmented>button{flex:1}.sb-tools>.spacer{display:none}.sb-tools>.btn{font-size:11px;min-height:38px;padding:8px 10px}
 .sb-filters{flex-wrap:wrap;gap:10px}.sb-filters .field{min-width:40%}.sb-filters [data-result]{font-size:11px;padding:0}
 .sb-dropzone{padding:16px;gap:12px}.sb-dropzone>div{grid-template-columns:24px 1fr}.sb-dropzone>div>span{font-size:11px}.sb-dropzone .field{flex:1;min-width:140px}.sb-dropzone>button{align-self:end}
 .sb-shot-grid,.sb-field-mode .sb-shot-grid{grid-template-columns:minmax(0,1fr);gap:20px}.sb-shot-content{padding:18px}.sb-shot-content h3{font-size:20px}.sb-line{font-size:15px}.sb-action{font-size:13px}
 .sb-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sb-photo>div{padding:10px}.sb-photo strong{font-size:11px}
 .sb-upload-queue{padding:15px}.sb-upload-queue li{flex-wrap:wrap;gap:8px}.sb-upload-queue li>div{min-width:70%}.sb-upload-queue li>span{max-width:100%;font-size:11px}.sb-upload-queue progress{width:100%}
 .sb-detail-photos{grid-template-columns:minmax(0,1fr)}.sb-shot-detail dl>div{grid-template-columns:1fr;gap:4px}.sb-link-shots{grid-template-columns:1fr}
}

.sb-field-mode .btn,.sb-field-mode .icon-btn{min-height:44px}

/* Keep the first row of actual shots in view; field mode prioritizes reading. */
.storyboard-workbench .page-heading{margin-bottom:16px}
.storyboard-workbench .page-heading .eyebrow{display:none}
.storyboard-workbench .page-heading h1{font-size:30px;margin:0 0 5px}
.storyboard-workbench .page-heading p.muted{margin:0;font-size:12px}
.sb-projectbar{padding:12px 18px;margin-bottom:16px}
.sb-heading{margin:20px 0 18px}
.sb-heading h2{font-size:26px}
.sb-tools{padding-bottom:14px}
.sb-filters{margin:14px 0}
.sb-dropzone{padding:14px 20px;margin-bottom:18px}
.sb-field-mode .sb-dropzone{display:none}
@media(max-width:650px){
 .sb-projectbar{padding:12px}
 .sb-heading h2{font-size:23px}
 .sb-heading{margin:18px 0 14px}
 .sb-dropzone{padding:14px}
}

/* This workspace selects existing projects; keep the narrow header focused. */
#app[data-view="storyboards"] .topbar-new{display:none}

/* Server-derived API assignment reminders: text plus shape, never color alone. */
.api-assignment-badge,.api-assignment-day-mark{display:inline-flex;align-items:center;gap:3px;background:var(--acid);color:var(--ink);border:1px solid var(--ink);border-radius:3px;font-weight:800;font-size:10px;line-height:1.4;padding:1px 5px;white-space:nowrap}
.api-source-badge{font-size:10px;border:1px solid var(--line);border-radius:3px;padding:2px 5px;color:var(--muted)}
.calendar-api-reminder{flex:none;min-width:0;margin:0 0 10px}
.calendar-api-reminder[hidden]{display:none}
.api-assignment-summary{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 12px;border:1px solid var(--ink);border-left:5px solid var(--ink);background:var(--surface);border-radius:4px;color:var(--ink)}
.api-assignment-summary>span:nth-child(2){flex:1;min-width:0}
.api-assignment-summary strong{font-size:12px}.api-assignment-summary small{display:block;font-size:10px;color:var(--muted)}
.api-assignment-summary:hover,.api-assignment-summary:focus-visible{background:var(--soft);outline:2px solid var(--ink);outline-offset:2px}
.api-assignment-open{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}
.api-assignment-summary.is-error{font-size:12px;border-color:var(--danger);color:var(--danger)}
.calendar-cell.api-assignment-day,.month-first-date.api-assignment-day{box-shadow:inset 0 3px 0 var(--ink)}
.calendar-day-head{gap:3px}.calendar-day-head .api-assignment-day-mark{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:0 3px}
.calendar-page .calendar-event.api-assignment-pending,.calendar-page .time-event.api-assignment-pending{border-left:3px solid var(--ink)!important;background:var(--acid)!important;color:var(--ink)}
.calendar-event.api-assignment-pending .event-name,.time-event.api-assignment-pending strong{font-weight:800}
.calendar-event .api-assignment-badge,.time-event .api-assignment-badge{border:0;padding:0;margin-right:4px;font-size:9px;background:transparent}
.calendar-event .event-time:has(+.event-name .api-assignment-badge){flex-shrink:0}
.agenda-row.api-assignment-pending{border-left:3px solid var(--ink);padding-left:10px}
.agenda-kicker .api-assignment-badge{margin-right:6px}
.api-assignment-notice{display:flex;align-items:center;gap:12px;border:1px solid var(--ink);border-left:5px solid var(--ink);background:var(--acid);padding:14px;border-radius:4px}
.api-assignment-notice>div{flex:1;min-width:0}.api-assignment-notice strong{font-size:14px}.api-assignment-notice p{font-size:12px;line-height:1.7;margin:5px 0 0}
.shoot-sheet.api-assignment-pending{border-left:3px solid var(--ink);padding-left:14px}.shoot-sheet>.api-assignment-badge{margin-bottom:12px}
.shoot-sheet-time .api-request-time{font-size:18px;line-height:1.6}.shoot-sheet-time:has(.api-request-time){display:block}.shoot-sheet-time .api-request-time+small{display:block;font-size:12px;line-height:1.7;font-weight:400}
.api-assignment-backlog{display:grid;gap:10px}.api-assignment-backlog-row{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;border:1px solid var(--line);border-left:4px solid var(--ink);background:var(--surface);border-radius:4px;padding:14px;color:var(--ink)}
.api-assignment-backlog-row:hover,.api-assignment-backlog-row:focus-visible{background:var(--soft);outline:2px solid var(--ink);outline-offset:1px}
.api-assignment-backlog-row>span{min-width:0}.api-assignment-backlog-row strong{font-size:14px;overflow-wrap:anywhere}.api-assignment-backlog-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.api-assignment-backlog-state{text-align:right;flex:none}
@media(max-width:600px){
 .calendar-api-reminder{margin-bottom:6px}.api-assignment-summary{gap:7px;padding:7px 8px}.api-assignment-summary strong{font-size:11px}.api-assignment-summary>.api-assignment-badge{font-size:9px;padding:2px 3px}.api-assignment-open{font-size:10px}
 .month-first-date .api-assignment-day-mark{font-size:9px;padding:0 2px;line-height:1.35;max-width:100%}.month-first-date.api-assignment-day{gap:4px}
 .month-first-foot{flex-wrap:wrap;gap:3px;font-size:9px}
 .api-assignment-notice{align-items:flex-start;flex-direction:column;padding:12px}.api-assignment-notice .btn{align-self:flex-end}
 .api-assignment-backlog-row{align-items:flex-start;flex-direction:column;gap:9px;padding:12px}.api-assignment-backlog-state{text-align:left}
 .agenda-time:has(+.agenda-main .api-assignment-badge) strong{font-size:12px}
}
@media(max-width:600px) and (max-height:670px){
 .month-first-date.api-assignment-day{gap:2px;padding-top:4px}.month-first-date.api-assignment-day .month-person-dots,.month-first-date.api-assignment-day .month-event-count{display:none}
 .month-first-date.api-assignment-day>strong{font-size:17px;line-height:20px;height:20px;width:20px;margin:0}
 .month-first-date.api-assignment-day .api-assignment-day-mark{font-size:8px;line-height:11px;padding:0 2px}
 .calendar-api-reminder{margin-bottom:3px}.api-assignment-summary{padding:5px 7px}
}
