/* PrintOS Studio — pale surfaces, precise typography, neon green accents. */
:root {
  --accent: #b7f52b;
  --accent-hover: #a5e81c;
  --green: #415d10;
  --green-dark: #263807;
  --ink: #202126;
  --muted: #75767e;
  --line: #e9e9ee;
  --bg: #f6f6f8;
  --light: #effbd9;
  --danger: #b74646;
  --warn: #88611c;
  --radius: 18px;
  --card-shadow: 0 3px 5px #25263702, 0 7px 24px #25263704;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
body { background: var(--bg); -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background .18s, box-shadow .18s, border-color .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #617d27;
  outline-offset: 3px;
}
button:disabled { opacity: .46; }
h1 { font-size: clamp(25px, 2.25vw, 31px); font-weight: 600; letter-spacing: -.9px; line-height: 1.23; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-weight: 600; }
.eyebrow { color: #92939b; font-size: 10px; font-weight: 550; letter-spacing: 1.15px; }
.ui-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sidebar { width: 222px; background: #fcfcfd; border-right: 1px solid #ededf1; padding: 30px 16px 17px; }
.identity { gap: 10px; padding: 0 10px 37px; font-size: 23px; font-weight: 650; letter-spacing: -.85px; }
.identity em { color: var(--ink); font-weight: 450; }
.identity small { color: #909198; font-size: 8px; font-weight: 400; letter-spacing: .12px; margin-top: 0; }
.brandmark { width: 34px; height: 35px; border-radius: 10px; background: var(--accent); color: #24330a; font-size: 30px; box-shadow: inset 0 1px 2px #ffffffa1, 0 2px 4px #273b081c; font-weight: 650; }
.nav { gap: 5px; }
.navbutton { padding: 11px 12px; min-height: 42px; gap: 11px; font-size: 12px; font-weight: 400; color: #676870; border-radius: 9px; }
.navbutton .ui-icon { width: 17px; height: 17px; }
.navbutton:hover { color: var(--ink); background: #f1f1f4; }
.navbutton.active { color: #273409; background: #eaf8d1; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-label { margin: 33px 12px 10px; color: #91929a; font-size: 10px; font-weight: 450; letter-spacing: .2px; }
.brand-switch { gap: 5px; }
.brand-button { padding: 9px 12px; min-height: 36px; border-radius: 9px; font-weight: 400; font-size: 12px; color: #72737b; }
.brand-button:hover { background: #f1f1f4; }
.brand-button .dot { width: 8px; height: 8px; background: #b0b3aa; border-radius: 50%; }
.brand-button.coffee .dot { background: #7f8288; }
.brand-button.chosen { background: #f0f1ef; color: var(--ink); font-weight: 550; }
.brand-button.chosen .dot { background: var(--accent); box-shadow: 0 0 0 3px #e5eed6; }
.brand-button .check { color: #6b7e46; font-weight: 400; }
.sidebar-bottom { padding: 22px 9px 0; }
.account-profile { display: flex; align-items: center; gap: 10px; padding-top: 19px; border-top: 1px solid var(--line); margin-bottom: 13px; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #434b35; background: linear-gradient(145deg, #e7f2d1, #d5dacd); border: 3px solid white; box-shadow: 0 0 0 1px #e6e7e4; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.account-profile strong { display: block; font-size: 12px; font-weight: 550; max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
.account-profile>div>span { display: block; font-size: 10px; color: #96969d; margin-top: 1px; }
.sidebar-bottom #role-label { font-size: 10px; color: #92939b; }
.account-link, .link-button { font-size: 11px; color: #777880; margin-top: 7px; }
.account-link:hover, .link-button:hover { color: var(--ink); }
.version { border: 0; margin-top: 13px; padding-top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a0a0a7; }
.secure { color: #8c8e84; font-size: 9px; margin: 0; font-weight: 400; }
.secure span { color: #8ba35a; font-size: 6px; }
.shell { margin-left: 222px; }
.topbar { min-height: 79px; padding: 18px 30px; border: 0; background: var(--bg); }
.breadcrumb { font-size: 11px; color: #a0a0a8; }
.breadcrumb>span { color: #c7c7cd; }
.breadcrumb strong { font-weight: 450; color: #666770; }
.top-right { gap: 14px; }
.top-search { display: flex; align-items: center; gap: 10px; min-height: 36px; width: 225px; padding: 8px 12px; color: #8c8d96; background: #fcfcfd; border: 1px solid #ededf2; box-shadow: inset 0 1px 1px #fff, 0 2px 5px #25263702; border-radius: 9px; font-size: 11px; text-align: left; }
.top-search .ui-icon { width: 15px; height: 15px; }
.top-search:hover { border-color: #c9cebF; color: #56594e; }
.header-create { display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; border: 1px solid #e9e9ef; background: linear-gradient(#fff,#f9f9fb); box-shadow: 0 2px 3px #25263705; border-radius: 9px; color: #575962; }
.header-create:hover { background: var(--light); }
.connection { color: #90919a; font-size: 10px; }
.connection i { background: var(--accent); box-shadow: 0 0 0 3px #edf0e7; }
.username { font-size: 10px; font-weight: 450; color: #707178; background: #eeeeF2; padding: 6px 9px; border-radius: 7px; }
.main { max-width: 1600px; padding: 18px 30px 44px; }
.pagehead { margin-bottom: 25px; gap: 20px; }
.pagehead p { margin-top: 6px; font-size: 12px; color: #85858e; line-height: 1.65; }
.pagehead .eyebrow { font-size: 9px; margin-bottom: 5px; color: #9798a0; }
.btn { min-height: 37px; padding: 8px 13px; border-radius: 9px; font-size: 11px; font-weight: 550; color: #3b3d43; border: 1px solid #e4e5e9; background: linear-gradient(180deg,#fff 0%,#f7f7f9 100%); box-shadow: inset 0 1px 1px #fff, 0 2px 3px #20212e06; }
.btn:hover { background: #f0f1ee; border-color: #d2d5cb; box-shadow: 0 3px 7px #20212e0a; }
.btn.primary { color: #233207; border: 1px solid #a4e326; background: linear-gradient(180deg,#c5fc55 0%,#b7f52b 58%,#acec25 100%); box-shadow: inset 0 1px 2px #ffffffa6, 0 2px 4px #7da23116; }
.btn.primary:hover { color: #1a2702; border-color: #92cf1a; background: linear-gradient(#c0f845,#a9ea20); box-shadow: 0 3px 9px #6d9a262b; }
.btn.dark { color: #f8f9f6; background: #30362a; border-color: #30362a; box-shadow: inset 0 1px 1px #ffffff17; }
.btn.dark:hover { background: #424c36; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: #72757a; }
.btn.smallbtn { min-height: 30px; border-radius: 7px; font-size: 10px; }
.btn.danger { color: var(--danger); }
.icon-button { background: #f3f3f6; color: #8b8c95; border-radius: 9px; }
.icon-button:hover { background: #e9e9ed; }
.card, .catalog-offer { background: linear-gradient(150deg,#fff 0%,#fdfdfE 100%); border: 1px solid #fff; box-shadow: var(--card-shadow); border-radius: 18px; }
.card-pad { padding: 23px; }
.card-heading { margin-bottom: 20px; }
.step { color: #667a3e; background: #eff5e7; border-radius: 7px; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; border: 0; padding: 0; margin-bottom: 21px; }
.metric { min-height: 87px; background: #fdfdfe; padding: 18px 20px; border: 1px solid white; border-radius: 15px; box-shadow: var(--card-shadow); }
.metric-symbol { width: 33px; height: 33px; border-radius: 9px; background: #f5f6f2; color: #7c865f; }
.metric b { font-weight: 550; font-size: 21px; letter-spacing: -.6px; }
.metric small { font-size: 10px; margin-top: 2px; color: #96969e; }
.workspace { grid-template-columns: minmax(0,1fr) 310px; gap: 20px; }
.left-stack,.right-stack { gap: 19px; }
.field>span, .auth-card label { color: #72737c; font-size: 11px; font-weight: 450; margin-bottom: 7px; }
input, select, textarea { border-color: #e5e5ec; background: #fcfcfd; color: var(--ink); border-radius: 9px; min-height: 40px; padding: 10px 12px; font-size: 12px; box-shadow: inset 0 1px 2px #20212c02; }
input:hover, select:hover, textarea:hover { border-color: #d4d7cf; }
input::placeholder, textarea::placeholder { color: #a3a3ac; }
input:disabled, select:disabled, textarea:disabled { background: #f6f6f8; color: #8d8e96; }
input[type=checkbox],input[type=radio] { accent-color: #779c25; box-shadow: none; }
input[type=file]::file-selector-button { border: 1px solid #e1e2e7; border-radius: 5px; color: #565961; background: #f3f4f2; padding: 4px 8px; margin-right: 9px; }
.tag { color: #777982; background: #f0f0f3; border-radius: 5px; font-size: 9px; font-weight: 500; padding: 3px 7px; }
.tag.green { background: #ecf8d8; color: #587827; }
.tag.orange { color: #967338; background: #faf3e6; }
.tag.red { color: #b66868; background: #fbeeee; }
.line-number { background: #f0f4ea; color: #738452; }
.line-result { background: #f5f8ef; color: #8a8f82; border-radius: 9px; }
.line-result strong { color: #495d2c; font-weight: 550; }
.hint { color: #7b8072; background: #f3f6ee; font-size: 11px; border-radius: 10px; }
.hint.warning { color: #967338; background: #fbf5e9; }
.hint.error { color: var(--danger); background: #fbeeee; }
.summary-card { border: 1px solid #e0e6d7; box-shadow: 0 5px 25px #65724706; }
.summary-head { background: linear-gradient(120deg,#f3f9e9,#fafcf6); border-color: #e8eddf; padding: 21px; }
.summary-head h2 { font-size: 15px; font-weight: 600; }
.summary-head p { color: #8c9580; }
.summary-body { padding: 21px; }
.summary-total strong { color: #283c0d; font-weight: 550; letter-spacing: -1.1px; }
.summary-row strong { font-weight: 550; }
.summary-mini { border-color: #f0f0f3; }
.empty-state { padding: 38px 22px; }
.empty-state .empty-symbol { color: #b0b7a1; }
.empty-symbol .ui-icon { width: 32px; height: 32px; stroke-width: 1.25; }
.empty-state h2 { font-weight: 550; }
.empty-state p { color: #94959d; }
.tablewrap { border: 1px solid #ebebf0; border-radius: 13px; background: #fefefe; }
th { color: #92929b; background: #f8f8fa; border-color: #eeeeF2; font-weight: 450; font-size: 10px; padding: 12px 15px; }
td { border-color: #f0f0f4; padding: 14px 15px; font-size: 11px; }
tbody tr:hover { background: #fcfdf9; }
td strong { font-weight: 500; }
td small { color: #9899a1; }
.table-actions { gap: 6px; }
.catalog-offer { padding: 24px; }
.catalog-offer h2 { font-size: 16px; font-weight: 550; }
.catalog-offer .offer-price { font-weight: 550; font-size: 22px; color: #30392a; }
.tier { background: #f3f4f0; color: #838777; padding: 5px 8px; border-radius: 6px; }
.notice { border-color: #dce8c6; background: #f3fae9; color: #5d703c; }
.notice.warning { border-color: #ede1c8; background: #fcf7ec; }
.notice.error { border-color: #f0d6d6; background: #fdf1f1; }
.loading-bar { background: #e9eeda; height: 4px; }
.loading-bar:after { background: var(--accent); }
.version-row { background: #f7f7f9; padding: 10px 12px; border-radius: 9px; }
.list-entry h3 { font-weight: 500; }
.diff-summary { border-color: #ececf1; }
.json-detail { background: #f5f5f7; }
.disclosure summary { color: #646f52; font-weight: 500; }
.internal-alternative { background: #f6f7f3; }
dialog { border: 1px solid white; border-radius: 20px; box-shadow: 0 30px 100px #24283530; }
dialog::backdrop { background: #35374145; backdrop-filter: blur(5px); }
.document-header { border-color: #9dc632; }
.document-brand { font-weight: 600; }
.document table th { background: #f5f7f0; }
.document-draft { background: #fbf5e9; color: #947940; }
.document .summary-total strong { color: #2e3d1b; }
.print-toolbar { background: #f6f7f3; }
.print-footer { color: #999c92; }
.auth-page { padding: 20px; gap: 20px; background: #f6f6f8; }
.auth-brand { background: linear-gradient(145deg,#f0f4e8 0%,#e9f1db 75%,#e0edc8 100%); border-radius: 24px; padding: 48px 56px; position: relative; overflow: hidden; }
.auth-brand:after { content: ""; position: absolute; width: 320px; height: 320px; border: 55px solid #b7f52b29; border-radius: 50%; bottom: -155px; right: -105px; pointer-events: none; }
.auth-intro { position: relative; z-index: 1; }
.auth-intro h1 { font-weight: 550; font-size: clamp(34px,4vw,58px); letter-spacing: -2px; }
.auth-intro p { color: #7d856f; font-weight: 400; }
.auth-brands { color: #777e6a; font-weight: 500; }
.auth-content { padding: 45px; background: #fff; border-radius: 24px; }
.auth-card { max-width: 350px; }
.auth-card h2 { font-size: 28px; font-weight: 550; }
.mobile-account summary { color: #65704f; }
.mobile-account>div { border-color: #ebebef; border-radius: 12px; box-shadow: 0 8px 30px #26272f14; }

/* Overview: counts and status charts use only permitted quote records. */
.dashboard-pagehead { margin-bottom: 25px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 19px; }
.dashboard-kpi { border: 1px solid white; padding: 18px 19px 14px; border-radius: 17px; background: #fdfdfe; box-shadow: var(--card-shadow); min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 15px; }
.kpi-icon { color: #5f6269; }
.kpi-icon .ui-icon { width: 16px; height: 16px; }
.kpi-label { font-size: 11px; font-weight: 450; color: #5b5b65; }
.kpi-value { display: block; font-size: 29px; font-weight: 550; letter-spacing: -.8px; line-height: 1.25; font-variant-numeric: tabular-nums; color: #202126; }
.kpi-caption { color: #95969e; font-size: 10px; }
.dashboard-scope { font-size: 10px; color: #96969f; margin: -3px 0 16px; }
.dashboard-main { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); gap: 19px; margin-bottom: 19px; align-items: stretch; }
.dashboard-card { padding: 22px; min-width: 0; background: #fdfdfe; border: 1px solid white; border-radius: 18px; box-shadow: var(--card-shadow); }
.dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.dashboard-card-head h2 { font-size: 15px; font-weight: 550; }
.dashboard-card-head p { font-size: 11px; color: #95959e; margin-top: 4px; }
.dashboard-card-head .btn { font-size: 10px; background: none; border: none; box-shadow: none; color: #667b42; padding: 2px 0; min-height: 23px; }
.dashboard-card-head .btn .ui-icon { width: 14px; height: 14px; }
.dashboard-range { flex-shrink: 0; }
.dashboard-range select { width: 124px; min-height: 30px; padding: 5px 8px; font-size: 10px; color: #8b8b94; background: #fafafa; border-color: #ededf1; border-radius: 7px; }
.activity-chart { width: 100%; display: block; overflow: visible; }
.activity-chart svg { width: 100%; display: block; min-height: 190px; }
.chart-grid { stroke: #eeeeF3; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: #96969f; font-size: 14px; font-family: inherit; }
.chart-area { fill: #b7f52b18; }
.chart-line { fill: none; stroke: #94c61e; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.chart-caption { color: #9b9ba3; font-size: 10px; margin-top: 10px; line-height: 1.7; }
.status-donut { position: relative; width: 178px; height: 178px; display: block; margin: -5px auto 12px; }
.status-donut svg { width: 100%; height: 100%; display: block; }
.donut-track { fill: none; stroke: #f0f0f4; }
.donut-segment { fill: none; }
.donut-segment.status-draft { stroke: #d9dce0; }
.donut-segment.status-sent { stroke: var(--accent); }
.donut-segment.status-accepted { stroke: #6c8d3d; }
.donut-segment.status-rejected { stroke: #b7adae; }
.donut-segment.status-other { stroke: #7b7d85; }
.donut-center { position: absolute; inset: 40px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; box-shadow: 0 3px 13px #34373d0a; color: #42454b; text-align: center; }
.donut-center strong { font-size: 28px; font-weight: 550; letter-spacing: -.7px; line-height: 1.2; }
.donut-center span { font-size: 9px; color: #94969c; margin-top: 5px; }
.status-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.status-legend-item { display: flex; align-items: center; gap: 7px; color: #878891; font-size: 10px; }
.status-legend-item>span { display: flex; align-items: center; gap: 7px; }
.status-legend-item strong { color: #4c4e55; margin-left: auto; font-weight: 550; font-variant-numeric: tabular-nums; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d9dce0; flex-shrink: 0; }
.status-dot.status-sent { background: var(--accent); }
.status-dot.status-accepted { background: #6c8d3d; }
.status-dot.status-rejected { background: #b7adae; }
.status-dot.status-other { background: #7b7d85; }
.chart-empty { min-height: 225px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: repeating-linear-gradient(0deg,transparent,transparent 55px,#f5f5f8 56px); }
.chart-empty>.ui-icon { width: 28px; height: 28px; color: #a8b88d; margin-bottom: 12px; }
.chart-empty h3,.dashboard-empty h3 { font-size: 12px; color: #747680; font-weight: 450; }
.chart-empty p,.dashboard-empty p { font-size: 10px; color: #a0a1a8; max-width: 40ch; margin-top: 6px; }
.dashboard-empty { min-height: 180px; padding: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dashboard-status-badge { display: inline-flex; padding: 2px 5px; border-radius: 4px; font-size: 9px; font-weight: 450; background: #f1f1f4; color: #85858e; white-space: nowrap; }
.dashboard-status-badge.status-sent { background: #edfad8; color: #688839; }
.dashboard-status-badge.status-accepted { background: #edf2e5; color: #5c7842; }
.dashboard-status-badge.status-draft { background: #f1f1f4; color: #86858e; }
.dashboard-status-badge.status-rejected { background: #f9eeee; color: #ae7676; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); gap: 19px; align-items: start; }
.dashboard-recents .tablewrap { border: 0; border-radius: 0; }
.dashboard-recents table { min-width: 0; }
.dashboard-recents td:first-child strong { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recents th { padding: 10px; font-size: 9px; background: #f7f7f9; }
.dashboard-recents td { padding: 12px 10px; font-size: 10px; }
.dashboard-recents td small { font-size: 9px; }
.dashboard-recents .btn { background: transparent; box-shadow: none; border: 0; color: #748653; }
.dashboard-quick { display: flex; flex-direction: column; gap: 9px; }
.dashboard-quick .dashboard-card-head { margin-bottom: 6px; }
.quick-actions { display: flex; flex-direction: column; gap: 9px; }
.quick-action { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 65px; text-align: left; color: #505159; background: linear-gradient(120deg,#f7f7f9,#fafafa); border: 1px solid #f5f5f7; border-radius: 10px; padding: 13px; }
.quick-action:hover { background: #f3f7ec; border-color: #e4ecd5; }
.quick-action-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; color: #71756b; background: #fff; border: 1px solid #ededf1; border-radius: 8px; box-shadow: 0 2px 3px #20212e03; }
.quick-action-icon .ui-icon { width: 16px; height: 16px; }
.quick-action-copy { flex: 1; min-width: 0; }
.quick-action-copy strong { display: block; font-size: 11px; font-weight: 500; }
.quick-action-copy small { display: block; color: #92929b; font-size: 10px; margin-top: 2px; }

@media (min-width: 1600px) {
  .main { padding: 24px 42px 55px; }
  .topbar { padding-inline: 42px; }
  .workspace { grid-template-columns: minmax(0,1fr) 355px; }
  .dashboard-kpi { padding: 22px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 202px; padding-inline: 12px; }
  .shell { margin-left: 202px; }
  .navbutton { font-size: 11px; padding-inline: 10px; }
  .main { padding: 19px 23px 40px; }
  .topbar { padding-inline: 23px; }
  .top-search { width: 185px; }
  .top-right { gap: 10px; }
  .connection { display: none; }
  .dashboard-kpis { gap: 11px; }
  .dashboard-kpi { padding: 15px; }
  .kpi-label { font-size: 10px; }
  .dashboard-card { padding: 19px; }
  .dashboard-main,.dashboard-bottom { grid-template-columns: minmax(0,1.3fr) minmax(255px,1fr); gap: 15px; }
  .workspace { grid-template-columns: minmax(0,1fr) 290px; }
  .metric { padding: 15px; }
}
@media (max-width: 980px) {
  .sidebar { width: 180px; }
  .shell { margin-left: 180px; }
  .identity { font-size: 20px; padding-inline: 6px; }
  .identity small { font-size: 7px; }
  .navbutton { font-size: 10px; gap: 8px; }
  .navbutton .ui-icon { width: 15px; height: 15px; }
  .dashboard-kpi { padding: 14px; }
  .dashboard-kpis { gap: 10px; }
  .kpi-value { font-size: 25px; }
  .kpi-caption { font-size: 9px; min-height: 28px; display: block; }
  .dashboard-main,.dashboard-bottom { grid-template-columns: minmax(0,1.35fr) minmax(220px,1fr); gap: 14px; }
  .dashboard-card { padding: 17px; }
  .dashboard-card-head h2 { font-size: 13px; }
  .dashboard-card-head p { font-size: 10px; }
  .dashboard-activity .dashboard-card-head { flex-wrap: wrap; gap: 10px; }
  .dashboard-recents th:nth-child(2),.dashboard-recents td:nth-child(2) { display: none; }
  .dashboard-recents td:first-child strong { max-width: 125px; }
  .dashboard-recents td,.dashboard-recents th { padding-inline: 6px; }
  .chart-axis { font-size: 22px; }
  .status-donut { width: 156px; height: 156px; margin-top: 13px; }
  .donut-center { inset: 36px; }
  .status-legend { gap: 9px 12px; }
  .status-legend-item { font-size: 9px; }
  .account-profile strong { max-width: 100px; }
  .account-profile>div>span { font-size: 9px; }
  .workspace { grid-template-columns: 1fr; }
  .right-stack { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .summary-card { grid-row: span 2; }
  .top-search { width: 165px; }
  .username { display: none; }
  .metrics { gap: 11px; }
  .metric-symbol { display: none; }
  .metric b { font-size: 19px; }
}
@media (max-width: 820px) {
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-main,.dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-kpi { padding: 18px; }
  .dashboard-card { padding: 22px; }
  .kpi-caption { min-height: 0; }
  .dashboard-main .status-legend { max-width: 380px; margin: 0 auto; }
  .dashboard-recents td:first-child strong { max-width: 180px; }
  .dashboard-activity .dashboard-card-head { flex-wrap: nowrap; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: auto; padding: 19px 18px 10px; background: #fcfcfd; border: 0; border-bottom: 1px solid #ececf1; }
  .identity { padding: 0 0 21px; font-size: 22px; gap: 8px; }
  .identity small { font-size: 7px; }
  .brandmark { width: 31px; height: 32px; font-size: 27px; border-radius: 9px; }
  .side-label,.sidebar-bottom { display: none; }
  .brand-switch { top: 21px; right: 16px; }
  .brand-button { min-height: 30px; font-size: 10px; gap: 6px; padding: 7px; }
  .brand-button .dot { width: 6px; height: 6px; }
  .nav { gap: 3px; overflow: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .navbutton { padding: 9px 11px; min-height: 36px; font-size: 11px; border-radius: 7px; gap: 7px; }
  .navbutton .ui-icon { width: 15px; height: 15px; }
  .navbutton.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .shell { margin-left: 0; }
  .topbar { min-height: 58px; padding: 12px 18px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .breadcrumb>span { display: none; }
  .breadcrumb { font-size: 0; }
  .breadcrumb strong { font-size: 11px; }
  .top-search { width: auto; min-height: 31px; font-size: 10px; padding: 7px 9px; gap: 6px; }
  .top-search .ui-icon { width: 13px; height: 13px; }
  .header-create,.username { display: none; }
  .mobile-account { display: block; font-size: 10px; }
  .main { padding: 16px 16px 32px; }
  h1 { font-size: 25px; letter-spacing: -.8px; }
  .pagehead { flex-wrap: wrap; gap: 13px; margin-bottom: 20px; }
  .pagehead p { font-size: 11px; margin-top: 5px; }
  .pagehead>.actions { gap: 7px; }
  .pagehead>.actions .btn { min-height: 34px; font-size: 10px; padding: 8px 12px; }
  .dashboard-kpis { gap: 10px; margin-bottom: 14px; }
  .dashboard-kpi { border-radius: 14px; padding: 14px; }
  .kpi-value { font-size: 27px; }
  .kpi-caption { font-size: 9px; }
  .dashboard-main,.dashboard-bottom { gap: 14px; margin-bottom: 14px; }
  .dashboard-card { border-radius: 16px; padding: 19px; }
  .dashboard-card-head h2 { font-size: 14px; }
  .dashboard-card-head p { font-size: 10px; }
  .metrics { gap: 8px; }
  .metric { padding: 13px; min-height: 74px; border-radius: 12px; }
  .metric b { font-size: 16px; }
  .metric small { font-size: 9px; }
  .card-pad,.catalog-offer { padding: 20px; }
  .right-stack { grid-template-columns: 1fr; }
  .card-heading h2 { font-size: 15px; }
  .auth-page { padding: 12px; gap: 12px; }
  .auth-brand { border-radius: 18px; padding: 27px; gap: 25px; }
  .auth-intro h1 { font-size: 34px; letter-spacing: -1.25px; }
  .auth-brand .identity { padding: 0; }
  .auth-content { padding: 30px 24px; border-radius: 18px; }
  .auth-card h2 { font-size: 25px; }
  .dialog-actions .btn { font-size: 10px; }
}
/* Secondary text retains readable contrast on the pale surfaces. */
.identity small,.side-label,.account-profile>div>span,.sidebar-bottom #role-label,
.account-link,.link-button,.version,.secure,.breadcrumb,.connection,
.pagehead p,.pagehead .eyebrow,.metric small,.empty-state p,td small,
.kpi-caption,.dashboard-scope,.dashboard-card-head p,.dashboard-range select,
.chart-caption,.donut-center span,.status-legend-item,.quick-action-copy small,
.chart-empty p,.dashboard-empty p { color: #74767e; }
.top-search { color: #777981; }
.chart-axis { fill: #767880; }
.dashboard-status-badge.status-draft { color: #72727b; }
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body,.print-page { background: white; }
  .print-toolbar { display: none; }
  .print-document { padding: 0; }
  .summary-total strong { color: #26331b; }
  .document-header { border-color: #87986b; }
  .tablewrap { box-shadow: none; }
}
/* The proposal workbench: product first, totals and delivery actions in reach. */
.draft-strip { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:-6px 0 20px; font-size:11px; color:#62675e }
.draft-strip > span:last-child { margin-left:auto }
.selected-product { display:flex; gap:10px; align-items:center; justify-content:space-between; margin:8px 0 }
.selected-product strong { font-size:14px; line-height:1.5 }
.quote-conditions > summary { cursor:pointer; font-size:14px; font-weight:600; list-style-position:inside }
.quote-conditions > summary small { display:block; font-size:11px; color:#62675e; font-weight:400; margin:8px 0 0 16px }
.internal-disclosure > summary { cursor:pointer; color:#62675e; font-size:11px; padding:14px 4px }
.internal-disclosure .internal-analysis { margin-top:0 }
#product-dialog,#share-dialog { width:min(640px,calc(100vw - 28px)); padding:26px }
#product-results { max-height:48vh; overflow:auto; margin-top:12px }
.product-choice { display:flex; justify-content:space-between; gap:20px; align-items:center; width:100%; text-align:left; padding:18px 12px; border:0; border-bottom:1px solid #e3e6df; background:#fff; color:#20251c; cursor:pointer; font:inherit }
.product-choice:hover,.product-choice:focus-visible { background:#f0f8df }
.product-choice strong,.product-choice small { display:block }
.product-choice small { margin-top:5px; color:#62675e; font-size:12px }
.channel-switch { display:grid; grid-template-columns:1fr 1fr; gap:10px }
.channel-switch [aria-pressed="true"] { background:#eaf8cd; border-color:#8bad48; box-shadow:inset 0 0 0 1px #8bad48 }
.share-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px }
#share-body { font-size:13px; line-height:1.6; min-height:240px }
#share-feedback:empty { display:none }
[data-view="builder"] .summary-actions .actions { display:flex; flex-wrap:wrap; gap:6px }
[data-view="builder"] .pagehead h1 { overflow-wrap:anywhere }
@media(min-width:821px) {
  [data-view="builder"] .workspace { grid-template-columns:minmax(0,1fr) minmax(248px,300px); gap:20px; align-items:start }
  [data-view="builder"] .right-stack { display:block; position:sticky; top:20px }
  [data-view="builder"] .summary-card { position:static }
}
@media(min-width:821px) and (max-width:1100px) {
  [data-view="builder"] .workspace { grid-template-columns:minmax(0,1fr) 248px; gap:14px }
  [data-view="builder"] .card-pad { padding:19px }
  [data-view="builder"] .fields { grid-template-columns:1fr }
  [data-view="builder"] .quantity-fields { grid-template-columns:1fr 1fr }
  [data-view="builder"] .quantity-fields > :first-child { grid-column:1/-1 }
  [data-view="builder"] .card-heading { align-items:start; flex-wrap:wrap; gap:12px }
  [data-view="builder"] .summary-total strong { font-size:29px }
}
@media(max-width:820px) {
  [data-view="builder"] .workspace { grid-template-columns:1fr }
  [data-view="builder"] .right-stack { display:block }
  #product-dialog,#share-dialog { padding:20px }
  .draft-strip > span:last-child { margin-left:0 }
}
.quick-dock { display:none }
@media(max-width:820px) {
  .quick-dock { display:flex; align-items:center; justify-content:space-between; gap:12px; position:fixed; z-index:20; bottom:0; left:0; right:0; padding:12px 18px max(12px,env(safe-area-inset-bottom)); border-top:1px solid #dfe4d8; background:#fff; box-shadow:0 -5px 24px #20251c0a }
  .quick-dock small { display:block; font-size:10px; color:#62675e }
  .quick-dock strong { display:block; font-size:21px; margin-top:3px }
  [data-view="builder"] { padding-bottom:88px }
}
@media(min-width:701px) and (max-width:820px) { .quick-dock { left:180px } }
