/* Owner's rocket palette. Layout, document identities and financial values stay intact. */
:root{color-scheme:dark;--bg:#252731;--ink:#f3f3f7;--muted:#b2b5c7;--line:#48475e;--red:#f9bd12;--dark:#1c1e28;--surface:#2e303e;--purple:#8e84d8;--yellow:#f9bd12;background:var(--bg);color:var(--ink)}
body,.layout,.main,#content{background:var(--bg);color:var(--ink)}
.sidebar{background:var(--dark);border-right:1px solid var(--line)}
.wordmark{color:var(--ink)}
.topbar{background:#242630;border-bottom:1px solid var(--line)}
.breadcrumb,.breadcrumb strong,.account-name strong{color:var(--ink)}
.account small,.breadcrumb span,.muted,.field,.page-heading p,small{color:var(--muted)}
nav .nav-parent,nav .nav-item,nav a,.nav-bottom a{color:var(--muted)}
nav .nav-parent.active,nav .nav-item.active,nav a.active,nav a:hover,nav .nav-parent:hover{background:#3b3553;color:#ffcf4d}
.primary,button.primary{background:var(--yellow);color:#20222b;box-shadow:none;font-weight:750}
.primary:hover,button.primary:hover{background:#ffce47;color:#20222b}
.secondary,button.secondary,.mini-select{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.secondary:hover,button.secondary:hover{background:#3b3a50}
input,select,textarea,.search,input[type=search],.search input{background:#242631;color:var(--ink);border-color:var(--line)}
input::placeholder,textarea::placeholder{color:#a8adc0;opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--purple)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a89cea;outline-offset:3px}
input[type=checkbox]{accent-color:var(--yellow)}
.module-card,.purchase-card,.passport-card,.quick-card,.uz-shop,.uf-panel,.uf-summary article,.dlg-card,.goal-card,.card{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none}
.module-card:hover,.quick-card:hover,.uz-shop:hover{background:#353648;border-color:var(--purple)}
.module-icon,.avatar{background:#443c5d;color:#ffcf4d}
.inv-table thead,.inv-table th,.inv-table tr,.inv-table td,.uf-controls,.uf-meta{background:transparent;border-color:var(--line);color:var(--ink)}
.inv-table thead,.inv-table th{background:#272936;color:#bfc3d7}
.inv-table tbody tr:hover{background:#3a3850}
.inv-table td{vertical-align:top}
#sku-list table{min-width:1080px}
#sku-list th:last-child,#sku-list td:last-child{min-width:145px}
#sku-list .th-r{white-space:nowrap}
.sku-status{display:inline-flex;align-items:center;justify-content:center;max-width:100%;border-radius:999px;padding:6px 11px;font-size:.9em;font-weight:700;line-height:1.3;white-space:nowrap;border:1px solid transparent}
.sku-status[data-state=active]{background:#183d31;color:#a0e7bd;border-color:#39775c}
.sku-status[data-state=archived]{background:#41434f;color:#d8dae3;border-color:#747888}
.sku-status[data-state=blocked]{background:#4c2833;color:#ffb6be;border-color:#aa556a}
.sku-status[data-state=inactive]{background:#39344c;color:#d4c9ff;border-color:#786d9b}
.passport-sku-label{overflow-wrap:anywhere;color:#ffcf4d;font-weight:750}
.passport-fields strong,.passport-head h3,.uf-summary strong,.dlg-title{color:var(--ink)}
.passport-fields>div>span,.kv>span:first-child{color:var(--muted)}
.passport-cost-info,.sku-technical,.passport-edit,.kv,.dlg-head{border-color:var(--line)}
.passport-fields a{color:#c8bbff;text-decoration:underline;text-underline-offset:3px}
.batch-payment-tabs{border-color:var(--line)}
.batch-payment-tabs button{color:var(--muted)}
.batch-payment-tabs button[aria-selected=true]{color:#ffcf4d;border-bottom-color:#ffcf4d}
.uf-tabs button{color:var(--muted)}
.uf-tabs button.primary,.uf-tabs button[aria-selected=true]{background:#66548e;color:#fff1c6}
.uf-unavailable,.uf-source-note,.empty{color:var(--muted)}
.uf-source-note,.uf-filter-panel summary{background:transparent;color:var(--muted);border-color:var(--line)}
.pf-warn,.refresh-error,[role=alert],.btn-danger{color:#ffb6be}
.btn-danger{background:#482731;border:1px solid #a35b6a}
.uz-status.on{background:#183d31;color:#a0e7bd;border-color:#39775c}
.uz-status.off{background:#41434f;color:#d8dae3;border-color:#747888}
.uz-status.busy{background:#4b4024;color:#ffda73;border-color:#8d7943}
.dlg-ovl{background:rgba(10,11,18,.78)}
.dlg-card{border:1px solid var(--line)}
.toast{background:#65548c;color:#fff;border:1px solid #a396ce}
.login-screen{background:#252731;color:var(--ink)}
.login-brand{background:linear-gradient(145deg,transparent 43%,#6860a3 43.2%,#6860a3 44%,transparent 44.2%),#252731}
.login-panel,.login-form{color:var(--ink)}
.login-copy .eyebrow,.login-copy h1 span,.login-foot{color:#c5b8f5}
.login-copy p,.login-subtitle,.login-form label{color:var(--muted)}
.login-copy h1,.login-form h2{color:var(--ink)}
.wordmark img,.brand-logo img{border-radius:10px}
.sidebar nav button.active,.sidebar nav button.nav-sub.active{background:#3b3553;color:#ffcf4d}
.sidebar nav button.active svg{color:inherit}
body .field select,body select.mini-select,body .uf-controls select,body .toolbar select{background:#242631;color:var(--ink);border-color:var(--line)}
.uf-summary article small{color:var(--muted)}
.batch-payment-tabs{align-items:stretch;flex-wrap:nowrap}
.batch-payment-tabs button{line-height:1.45}
@media(max-width:700px){.sku-status{padding:6px 9px}.passport-head{align-items:flex-start}.passport-head h3{font-size:1.15rem}.uf-controls{gap:12px}.uf-controls .field{min-width:0}}

.login{background:linear-gradient(150deg,transparent 40%,#655c9533 40.2%,#655c9533 41%,transparent 41.2%),linear-gradient(32deg,transparent 57%,#655c9540 57.2%,#655c9540 58%,transparent 58.2%),#252731;color:var(--ink)}

/* Login uses the same graphite/purple/yellow tokens as the workspace. */
.login .login-form{background:linear-gradient(145deg,#323442f5,#272936f5);border-color:#625b7c;box-shadow:0 24px 70px #12131d70}
.login .login-access-icon{background:#403854;border-color:#786b9a;color:#ffcf4d}
.login .red-label{color:#c5b8f5}
.login .login-form .field{color:#dce0ed}
.login .login-form .field input{background:#22242e;border-color:#656079;color:#f3f3f7}
.login .login-form .field input:focus{outline:2px solid #a89cea;outline-offset:2px}
.login .login-form .primary{background:#f9bd12;color:#20222b;box-shadow:none;font-weight:750}
.login .login-form .primary:hover{background:#ffce47;color:#20222b}
.login .login-form button:focus-visible,.login .login-form summary:focus-visible{outline:3px solid #a89cea;outline-offset:4px}
.login .login-form>p,.login .login-form>small{color:#c1c4d3}
.login .login-form .secondary{background:#363448;border-color:#786b9a;color:#f3f3f7}
.wordmark img,.brand-logo img,.login-art .wordmark img{border-radius:0;object-fit:contain}

/* Dialogs and settings share the POLYGON dark surface palette. */
body .full-code{color:var(--ink)}
#nv-dialog .dlg-card{--ink:#f3f3f7;--muted:#b2b5c7;--line:#48475e;--surface:#2e303e;--bg:#252731;background:var(--surface);color:var(--ink);color-scheme:dark;font-size:clamp(.95rem,1.05vw,1.05rem)}
#nv-dialog .dlg-head h3{color:var(--ink);min-width:0;overflow-wrap:anywhere;font-size:clamp(1.05rem,1.5vw,1.3rem)}
#nv-dialog .dlg-card :is(input,select,textarea){background:var(--bg);color:var(--ink);border-color:var(--line);color-scheme:dark;max-width:100%}
#nv-dialog .dlg-card :is(input,textarea)::placeholder{color:#a8adc0}
#nv-dialog .dlg-card .field,#nv-dialog .dlg-card .muted,#nv-dialog .dlg-card .kv>span:first-child{color:var(--muted)}
#nv-dialog .dlg-card .secondary{background:#383449;color:var(--ink);border-color:var(--line)}
#nv-dialog .dlg-card :is(.inv-table th,.inv-table thead){background:#272936;color:#f9fafb}
#nv-dialog .dlg-card .inv-table td{color:var(--ink)}
#nv-dialog .dlg-card .btn-danger{background:#4b2631;color:#ffc0cb;border-color:#a35770}
#nv-dialog .dlg-card :is(.pf-warn,.refresh-error,[role=alert]){color:#ffc0cb}
#nv-dialog .dlg-body{min-width:0;overflow-wrap:anywhere}
#nv-dialog .dlg-head button{flex-shrink:0}
#nv-dialog .dlg-body .kv>span:last-child{min-width:0;overflow-wrap:anywhere}
#nv-dialog .dlg-body .kv>strong{min-width:0;overflow-wrap:anywhere;text-align:right}
#nv-dialog .dlg-body .pf-h{color:var(--muted)}
#nv-dialog .dlg-body a{color:#d1c5ff}
.login-copy h1{font-size:clamp(2rem,4.4vw,4rem);max-width:18ch;line-height:1.15;overflow-wrap:normal}
.login-copy{min-width:0}
.login .login-form h2{font-size:clamp(1.5rem,2.2vw,2rem)}
@media(max-width:700px){#nv-dialog .dlg-ovl{padding:10px}#nv-dialog .dlg-card{max-height:calc(100svh - 20px);width:100%}.login-copy h1{font-size:clamp(1.7rem,7vw,2.5rem)}}


/* Product overview: quiet surfaces, explicit units and text equivalents. */
.home-overview{margin:0 0 28px;min-width:0}.overview-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.overview-head .field{min-width:180px}.overview-eyebrow{font-size:12px;letter-spacing:.12em;color:#c5b8f5;font-weight:700}.overview-head h2{font-size:clamp(26px,3vw,38px);margin:10px 0}.overview-head p,.overview-chart>p{color:var(--muted);font-size:14px;line-height:1.6}.overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}.overview-metrics article,.overview-chart{background:linear-gradient(145deg,#303240,#282a35);border:1px solid #464358;border-radius:20px;padding:24px;min-width:0}.overview-metrics article{display:flex;flex-direction:column;gap:12px}.overview-metrics span{color:#c1c4d3;font-size:14px}.overview-metrics strong{font-size:clamp(25px,3vw,38px);font-variant-numeric:tabular-nums;color:#f3f3f7}.overview-metrics small{color:#b5b7c7;font-size:12px}.overview-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px}.overview-chart-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.overview-chart h3{font-size:18px;margin:0}.overview-chart a{color:#ffcf4d;font-size:13px}.overview-bars{list-style:none;padding:0;margin:24px 0}.overview-bars li{margin:18px 0}.overview-bars li>div:first-child{display:flex;justify-content:space-between;gap:20px;margin-bottom:9px;font-size:13px}.overview-bars span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:85%;color:#ecebf5}.overview-bars strong{font-variant-numeric:tabular-nums}.overview-track{height:9px;border-radius:9px;background:#464151;overflow:hidden}.overview-track i{display:block;width:var(--bar,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#9a88d6,#c5b8f5)}.overview-source{font-size:12px!important}.overview-empty{min-height:180px;display:grid;place-content:center;color:#bfc0cf;text-align:center}.overview-status-chart{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px;padding:30px 0}.overview-ring{height:170px;width:170px;border-radius:50%;background:conic-gradient(#9a88d6 0% var(--paid,0%),#f9bd12 var(--paid,0%) 100%);display:grid;place-items:center;flex-shrink:0}.overview-ring>span{width:140px;height:140px;border-radius:50%;background:#292b36;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:30px;font-weight:700}.overview-ring small{font-size:12px;font-weight:500;color:#c1c4d3}.overview-status-chart ul{list-style:none;padding:0;min-width:160px}.overview-status-chart li{display:flex;align-items:center;gap:10px;margin:18px 0;font-size:13px}.overview-status-chart strong{margin-left:auto}.legend-wait,.legend-paid{width:9px;height:9px;border-radius:50%;background:#f9bd12}.legend-paid{background:#9a88d6}
.login-preview{margin-top:30px;max-width:650px;padding:22px;border:1px solid #615775;border-radius:20px;background:linear-gradient(140deg,#363345ce,#282936eb);box-shadow:0 20px 60px #11131c40}.preview-top,.preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#d0c9e5;font-size:12px}.preview-dot{height:7px;width:7px;border-radius:50%;background:#f9bd12}.preview-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin:25px 0}.preview-grid section{min-width:0}.preview-grid section>span{font-size:13px;color:#e5e1f0}.preview-grid svg{display:block;width:100%;height:auto;margin-top:10px;overflow:visible}.preview-gridline{fill:none;stroke:#82779333;stroke-width:1}.preview-curve{fill:none;stroke:#c5b8f5;stroke-width:4;stroke-linecap:round}.preview-bars{height:105px;display:flex;align-items:end;gap:9px;padding-top:15px}.preview-bars i{flex:1;border-radius:5px 5px 0 0;background:#f9bd12;height:42%}.preview-bars i:nth-child(2){height:60%;opacity:.55}.preview-bars i:nth-child(3){height:48%;opacity:.75}.preview-bars i:nth-child(4){height:80%}.preview-bars i:nth-child(5){height:68%;opacity:.65}.preview-bars i:nth-child(6){height:95%}.preview-chip{padding:5px 8px;border-radius:6px;color:#ffcf4d;background:#f9bd1217}.login-preview>p{color:#bfc0cf;font-size:11px;margin:16px 0 0}.login .login-copy h1{font-size:clamp(26px,3vw,44px);max-width:25ch;line-height:1.2}.login .login-copy{margin-top:clamp(18px,2.5vh,28px)}
@media(max-width:1100px){.overview-charts{grid-template-columns:1fr}.overview-metrics{gap:12px}.overview-metrics article{padding:18px}}
@media(max-width:740px){.overview-head{align-items:stretch;flex-direction:column}.overview-metrics{grid-template-columns:1fr}.overview-chart{padding:20px}.login-preview{padding:16px;margin-top:22px}.login .login-art{min-height:0}.login .login-copy{max-width:100%;margin-top:18px}.login .login-copy h1{font-size:28px}.login-panel{margin-top:24px}.preview-grid{gap:16px;margin:18px 0}.preview-bottom{flex-wrap:wrap}}

/* Report-led presentation: below sign-in, one question per card. */
.login{grid-template-rows:auto auto;align-content:start;row-gap:88px;padding-bottom:64px}.login .login-art{min-height:0;padding-bottom:0}.login .login-panel{min-height:0}.product-preview{grid-column:1/-1;min-width:0;margin:0 clamp(24px,4vw,72px);color:#f3f3f7}.product-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;margin-bottom:28px}.preview-kicker{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#b9abd9;font-weight:700}.product-preview h2{font-size:clamp(25px,2.5vw,36px);font-weight:650;line-height:1.2;letter-spacing:-.025em;margin:12px 0}.product-preview-head p{color:#bcc0cf;font-size:15px;margin:0;line-height:1.6}.demo-label{flex-shrink:0;border:1px solid #5e586e;border-radius:6px;padding:8px 11px;color:#cfc7e3;font-size:11px;letter-spacing:.02em}.product-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-report{min-width:0;padding:24px;background:#2a2c37;border:1px solid #464252;border-radius:12px;display:flex;flex-direction:column}.product-report header h3{margin:0 0 8px;font-size:18px;font-weight:650}.product-report header p{color:#b9bdcb;font-size:13px;margin:0 0 24px}.report-value{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;font-size:clamp(27px,2.7vw,38px);line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.report-value small{font-size:12px;color:#c2c4d0;font-weight:500;letter-spacing:0}.report-period{font-size:11px;color:#acafc0;margin:12px 0 20px}.product-report svg{display:block;width:100%;height:auto;margin:0 0 18px}.report-gridlines path{fill:none;stroke:#555263;stroke-width:.6}.report-axis{font-size:10px;fill:#b8b9ca;font-family:inherit}.report-order-bar{fill:#b8a7ec}.report-stock-bar{fill:#f9bd12}.report-track{fill:#43414e}.report-sku{fill:#e4e3ee;font-size:11px;font-family:inherit}.report-help{color:#b9bdcb;font-size:12px;line-height:1.6;margin:0;margin-top:auto}.report-data{font-size:11px;color:#b9bdcb;margin-top:14px}.report-data summary{cursor:pointer}.report-data p{line-height:1.6}.report-pnl{margin:0 0 28px;font-size:clamp(12px,1.1vw,15px);font-variant-numeric:tabular-nums}.report-pnl>div{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #484452}.report-pnl dt{color:#c1c3d1}.report-pnl dd{margin:0;white-space:nowrap}.report-pnl-total{font-weight:700;border-bottom:none!important}.report-pnl-total dd{color:#b9dfc8}.product-preview-foot{font-size:11px;line-height:1.7;color:#aeb2c1;margin-top:20px;max-width:76ch}
@media(max-width:1100px){.product-report-grid{gap:14px}.product-report{padding:20px}.product-preview-head{flex-direction:column;gap:16px}.report-value{font-size:28px}}
@media(max-width:740px){.login{row-gap:48px;padding-bottom:40px}.login .login-panel{margin-top:16px}.product-preview{margin:0 20px}.product-report-grid{grid-template-columns:1fr}.product-report{padding:24px}.product-report svg{max-height:190px}.product-preview h2{font-size:28px}.report-value{font-size:34px}}

.overview-priorities .overview-status-text{font-size:clamp(20px,1.8vw,26px);line-height:1.35;letter-spacing:-.015em}.overview-priorities a{color:#ffcf4d;font-size:13px;text-decoration:none;margin-top:auto;padding-top:12px}.overview-priorities a:hover{text-decoration:underline}

/* Reserve independent room for the select arrow in every module. */
body select:not([multiple]),#nv-dialog select:not([multiple]){appearance:none;-webkit-appearance:none;box-sizing:border-box;min-height:46px;max-width:100%;padding:12px 46px 12px 14px;line-height:1.35;background-image:url('/static/assets/chevron-select-light.svg');background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
#nv-dialog select:not([multiple]){background-image:url('/static/assets/chevron-select-light.svg')}
body select[multiple]{background-image:none;padding:12px 14px}
.home-sections{margin-top:30px}.home-sections>h2{font-size:18px;margin:0 0 16px}.home-sections .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-shortcut{display:flex;align-items:center;gap:12px;border:1px solid #484355;border-radius:10px;padding:16px;color:#ecebf4;background:#2b2d38;font-size:14px;min-width:0;min-height:56px}.home-shortcut>svg:first-child{color:#c5b8f5}.home-shortcut>svg:last-child{margin-left:auto;width:16px;color:#a9a7b8}.home-shortcut:hover{border-color:#9a88d6;background:#34303f}.home-shortcut span{overflow-wrap:anywhere}.overview-head{margin-bottom:20px}.overview-head h2{font-size:24px;margin:0}
@media(max-width:1000px){.home-sections .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.home-shortcut{padding:14px;gap:9px}.home-shortcut>svg:last-child{display:none}}

.uf-derived{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}

.passport-card-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.passport-measurement-inputs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;border:1px solid var(--border,#5b5570);border-radius:14px;padding:16px;min-width:0}.passport-measurement-inputs p{grid-column:1/-1}.passport-measurement-inputs legend{font-weight:700;padding:0 8px}.passport-fields small{display:block;color:inherit;margin-top:6px}@media(max-width:760px){.passport-measurement-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.passport-measurement-inputs{grid-template-columns:1fr}}
/* Public identity scales independently of the application sidebar. */
.login-art .wordmark{font-size:clamp(30px,3vw,44px);gap:16px;font-weight:800;line-height:1.15;letter-spacing:-.025em}
.login-art .wordmark img{width:clamp(44px,4.3vw,64px);height:clamp(44px,4.3vw,64px);flex-shrink:0}
@media(max-width:420px){.login-art .wordmark{gap:12px;font-size:30px}.login-art .wordmark img{width:44px;height:44px}}

.product-report-pnl .report-value{font-size:clamp(25px,2.05vw,30px);letter-spacing:-.02em}.report-pnl-row,.report-breakdown>summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #484452}.report-pnl-row>strong,.report-breakdown>summary strong{font-size:inherit;font-weight:500;white-space:nowrap}.report-breakdown>summary{list-style:none;cursor:pointer}.report-breakdown>summary::-webkit-details-marker{display:none}.report-breakdown>summary>span{display:flex;align-items:center;gap:8px;color:#c1c3d1}.report-breakdown>summary>span:before{content:'›';display:inline-block;color:#c5b5ef;font-size:18px;line-height:1;transition:transform .15s}.report-breakdown[open]>summary>span:before{transform:rotate(90deg)}.report-breakdown>summary:focus-visible{outline:2px solid #f9bd12;outline-offset:3px;border-radius:4px}.report-breakdown dl{padding:6px 0 8px 16px;margin:0;background:#252731;border-radius:0 0 8px 8px}.report-breakdown dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 10px 9px 0;font-size:12px}.report-breakdown dt{color:#b9bdcb}.report-breakdown dd{margin:0;white-space:nowrap}.report-pnl-total>strong{color:#b9dfc8;font-weight:700}.product-report-pnl .report-pnl-row{display:flex}.product-report-pnl .report-pnl{margin-bottom:0}@media(prefers-reduced-motion:reduce){.report-breakdown>summary>span:before{transition:none}}
@media(min-width:741px) and (max-width:1100px){.product-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-report-pnl{grid-column:1/-1}}

.business-goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.business-goal-card{min-width:0;padding:24px;border:1px solid #514b66;border-radius:16px;background:#2d2f3e}.business-goal-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.business-goal-heading h3{margin:0;overflow-wrap:anywhere;font-size:20px}.business-goal-period,.business-goal-state{color:#c1bed0;font-size:14px;line-height:1.6}.business-goal-values{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.business-goal-values span{display:block;color:#c1bed0;font-size:14px;margin-bottom:8px}.business-goal-values strong{font-size:clamp(21px,2vw,28px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.business-goal-values small{font-size:12px;font-weight:500}.business-goal-progress{height:8px;border-radius:5px;background:#454150;overflow:hidden}.business-goal-progress i{display:block;height:100%;width:var(--goal-progress);background:#f9bd12}.business-goal-comment{margin:16px 0}.business-goal-comment summary{cursor:pointer;color:#c8bbed}.business-goal-comment p{white-space:pre-wrap;overflow-wrap:anywhere}.business-goal-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.business-goal-audit{border-bottom:1px solid #ddd;padding:12px 0}.business-goal-audit p{white-space:pre-wrap;overflow-wrap:anywhere}.legacy-goals{margin-top:24px;padding-top:18px;border-top:1px solid #514b66}.legacy-goals>summary{cursor:pointer;font-weight:600;color:#c1bed0}.legacy-goals>div{margin-top:20px}#business-goal-form .goal-date,#goal-asof{color-scheme:dark!important;background:#252731!important;color:#f3f3f7!important;border:1px solid #625b78;border-radius:10px;min-height:46px;padding:10px 12px}#business-goal-list .empty{padding:32px 16px}@media(max-width:1000px){.business-goal-grid{grid-template-columns:1fr}}@media(max-width:540px){.business-goal-form-grid{grid-template-columns:1fr}.business-goal-card{padding:18px}.business-goal-values{gap:10px}.business-goal-card .btn-row{flex-wrap:wrap}}

@media(max-width:540px){.business-goal-values{grid-template-columns:1fr}}
/* Keep financial values intact; extreme values scroll within their own cell. */
.business-goal-values{grid-template-columns:1fr}.business-goal-values strong{display:block;max-width:100%;white-space:nowrap;overflow-wrap:normal;overflow-x:auto;scrollbar-width:thin}
.business-goal-values{grid-template-columns:minmax(0,1fr)}.business-goal-values>div{min-width:0}

/* Field specificity covers settings/password controls as well as dialogs. */
.field :is(input,select,textarea){background:#252731;color:#f3f3f7;border-color:#48475e;color-scheme:dark}

#nv-dialog .aliases-plain{color:var(--ink)}
/* Owner adjustment: reduce the complete logo-to-quote gap by 20%. */
.login .login-copy{margin-top:clamp(14.4px,2vh,22.4px)}
.login .login-copy h1{margin-top:17.6px}
@media(max-width:740px){.login .login-copy{margin-top:14.4px}.login .login-copy h1{margin-top:9.6px}}

/* SKU workbook controls keep heading and actions readable on narrow screens. */
.page-heading:has(#passport-export){flex-wrap:wrap;gap:16px}.page-heading:has(#passport-export)>.btn-row{margin-top:0;max-width:100%}@media(max-width:540px){.page-heading:has(#passport-export)>.btn-row{width:100%}.page-heading:has(#passport-export)>.btn-row>button{flex:1 1 auto}}

.purchase-actions .purchase-submit{margin-left:auto}.purchase-cost-summary{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:20px}.purchase-fee{margin-top:24px}.purchase-line{grid-template-columns:minmax(220px,2fr) minmax(90px,.6fr) minmax(130px,1fr) minmax(150px,1fr) auto}.source-document-link{color:var(--accent,#f9bd12);text-decoration:underline}@media(max-width:1000px){.purchase-line{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-line>.field:first-child{grid-column:1/-1}}@media(max-width:540px){.purchase-line{grid-template-columns:1fr}.purchase-actions>.purchase-submit{margin-left:auto}.purchase-cost-summary{display:grid;gap:8px}}
/* Fixed day/month/year presentation; ISO native input remains calendar/API carrier. */
.date-control{position:relative;display:flex;width:100%;min-width:0}
.date-control .date-text{width:100%;min-width:0;padding-right:clamp(36px,calc(25% + 8px),44px);font-variant-numeric:tabular-nums}
.date-control .date-native{position:absolute!important;right:24px;bottom:0;width:1px!important;min-width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}
.date-picker{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:clamp(28px,25%,36px);height:min(36px,calc(100% - 2px));min-height:0;padding:0;display:grid;place-items:center;background:transparent;color:var(--ink);border:0;border-radius:8px}
.date-picker:focus-visible{outline-offset:-3px}
.date-picker svg{width:22px;height:22px}.date-picker:hover{background:var(--surface)}

/* Shared compact primary action in the loan editor. */
.passport-save-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:12px}.passport-save-actions>button{width:auto;min-width:120px}

.loan-priority{display:inline-flex;align-items:center;justify-content:center;inline-size:112px;min-inline-size:112px;block-size:36px;box-sizing:border-box;padding:4px 10px;border-radius:999px;font-weight:600;white-space:nowrap;}
.loan-priority[data-priority="HIGH"]{color:var(--ink);background:color-mix(in srgb,#e9566b 22%,transparent);}
.loan-priority[data-priority="MEDIUM"]{color:var(--ink);background:color-mix(in srgb,#ffca28 18%,transparent);}
.loan-priority[data-priority="LOW"]{color:var(--ink);background:color-mix(in srgb,#6fbd91 18%,transparent);}

.loan-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);align-items:end;gap:16px;margin-bottom:20px}.loan-filters .field{min-width:0;margin:0}@media(max-width:540px){.loan-filters{grid-template-columns:1fr}}

/* Compact passport summary; detailed actions belong to edit mode only. */
.passport-heading{min-width:0;flex:1}.passport-head .passport-open{display:inline;text-align:left;color:var(--ink);background:none;border:0;border-radius:4px;padding:0;font:inherit;line-height:inherit;max-width:100%;overflow-wrap:anywhere;cursor:pointer}
.passport-identity{display:flex;align-items:flex-start;gap:16px;min-width:0;flex:1}.passport-photo{flex:0 0 112px;width:112px;height:112px;margin:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--control,#242631)}.passport-photo img{display:block;width:100%;height:100%;object-fit:cover}.passport-photo[hidden]{display:none}
.passport-head .passport-open:hover{color:var(--accent,#ffca28)}
.passport-card .passport-card-actions{flex-shrink:0;align-self:flex-start}
.passport-card .icon-btn{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px}
.passport-card .icon-btn svg{width:22px;height:22px}
.passport-detail{margin-top:16px}.passport-detail>summary{cursor:pointer;color:var(--muted);font-size:13.8px}.passport-detail[open]>summary{margin-bottom:16px}
.passport-edit .passport-save-actions{flex-wrap:wrap;align-items:center;margin-top:4px;gap:12px}
.passport-edit .passport-save-actions>button{min-width:0;flex:0 0 auto}
@media(max-width:600px){.passport-head{flex-direction:row;align-items:flex-start}.passport-identity{gap:10px}.passport-photo{flex-basis:76px;width:76px;height:76px;border-radius:12px}.passport-card-actions{flex-direction:column;align-items:flex-end;gap:8px}.passport-edit .passport-save-actions{gap:10px}.passport-edit .passport-save-actions>button{max-width:100%;white-space:normal}}

/* Passport filters share the available width in both themes. */
.passport-toolbar .search.grow{align-self:stretch;min-width:0}
.passport-toolbar .search input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);box-shadow:none}
@media(max-width:640px){.passport-toolbar{align-items:stretch}.passport-toolbar>.search,.passport-toolbar>select,.passport-toolbar>button{width:100%}}
.passport-toolbar .search{background:var(--control,#242631);padding:12px;border:1px solid var(--line);border-radius:9px}
.passport-toolbar .search input{padding:0;line-height:1.4;font-size:14.95px}

.passport-photo-unavailable{cursor:pointer}.passport-photo-unavailable img{object-fit:contain;font-size:12px;color:var(--muted)}
