:root {
  --navy:#172b36; --navy-deep:#12232c; --green:#315c50; --green-hover:#24483e;
  --accent:#b75d35; --accent-soft:#fbf0e8; --ink:#23343c; --muted:#718087;
  --line:#e3e8e8; --soft:#f7f9f8; --canvas:#f5f7f7; --white:#fff;
  --danger:#ac382f; --danger-soft:#fff2f0; --radius:14px;
  --shadow:0 5px 18px #1b353908;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); font-size:14px; font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--canvas); line-height:1.5; }
button,input,select { font:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.45; }
a { color:var(--green); }
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid #cf8e55; outline-offset:4px; }
input:focus,select:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px #315c501a; }
input[aria-invalid=true] { border-color:var(--danger); }
input:read-only,select:disabled { background:#f2f5f4; color:#63736c; }
input[type=checkbox] { accent-color:var(--green); width:17px; height:17px; flex-shrink:0; margin:0; }
input[type=number] { font-variant-numeric:tabular-nums; }
button { transition:background .16s,color .16s,box-shadow .16s; }
h1,h2,h3,p { margin-top:0; }
h2 { font-size:21px; line-height:1.3; letter-spacing:-.5px; margin-bottom:0; }
h3 { font-size:15px; margin-bottom:7px; }
small { font-size:12px; }
.hidden { display:none!important; }
.skip-link { position:fixed; left:12px; top:-60px; z-index:100; padding:12px 20px; background:white; border-radius:8px; }
.skip-link:focus { top:12px; }
.sidebar { position:fixed; inset:0 auto 0 0; width:236px; z-index:30; background:var(--navy); color:white; padding:32px 18px 20px; display:flex; flex-direction:column; overflow-y:auto; }
.brand { display:flex; gap:10px; align-items:center; text-decoration:none; color:white; margin:0 10px 42px; }
.brand-mark { width:39px; height:39px; border-radius:11px; background:#c47f51; color:white; font-size:30px; font-weight:650; line-height:1; display:grid; place-items:center; padding-bottom:5px; }
.brand strong { display:block; font-size:23px; letter-spacing:-1px; font-weight:650; }
.brand small { display:block; font-size:8px; letter-spacing:1.6px; color:#9fb0b7; }
.nav-label { color:#8fa6b0; font-size:10px; letter-spacing:1.6px; margin:0 14px 12px; font-weight:600; }
.sidebar nav { display:grid; gap:7px; }
.sidebar nav button { background:none; color:#b7c5ca; border:none; border-radius:9px; min-height:46px; padding:11px 13px; text-align:left; font-size:13px; display:flex; align-items:center; gap:12px; }
.sidebar nav button>span { font-size:20px; width:22px; text-align:center; line-height:1; }
.sidebar nav button:hover { color:white; background:#ffffff0a; }
.sidebar nav button.active { color:white; background:#31515c; box-shadow:inset 3px 0 #d7976d; }
.sidebar nav button small { margin-left:auto; background:#ffffff12; border-radius:5px; min-width:21px; text-align:center; font-size:10px; padding:2px; }
.nav-note { padding:20px 16px; margin-top:35px; border:1px solid #ffffff14; border-radius:11px; background:#ffffff04; }
.note-icon { display:block; font-size:24px; color:#d6a481; margin-bottom:9px; }
.nav-note strong { display:block; font-size:13px; max-width:140px; font-weight:500; }
.nav-note p { font-size:12px; color:#92a7b0; margin:10px 0 0; line-height:1.7; }
.planned { margin:24px 12px; color:#8fa6b0; font-size:11px; }
.planned summary { cursor:pointer; }
.planned summary span { margin-left:5px; padding:1px 4px; border:1px solid #ffffff20; border-radius:4px; }
.planned p { margin:12px 0; line-height:1.9; }
.planned small { font-size:10px; }
.sidebar-foot { margin-top:auto; display:flex; align-items:center; gap:9px; padding:19px 10px 0; border-top:1px solid #ffffff14; }
.sidebar-foot strong { display:block; font-size:11px; font-weight:500; }
.sidebar-foot small { display:block; font-size:10px; color:#8fa6b0; margin-top:3px; }
.connection-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:#74a48d; flex-shrink:0; }
.version { margin-left:auto; font-size:10px; color:#8fa6b0; }
.app-shell { margin-left:236px; min-height:100vh; }
.topbar { height:73px; background:#ffffffed; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 38px; position:sticky; top:0; z-index:20; backdrop-filter:blur(12px); }
.topbar-left { display:flex; align-items:center; gap:12px; }
.breadcrumb { font-size:12px; color:var(--muted); }
.breadcrumb span { margin:0 12px; color:#b7c1c3; }
.breadcrumb strong { font-weight:500; color:var(--ink); }
.workspace-status { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted); }
main { max-width:1560px; margin:auto; }
.page { display:none; padding:38px 38px 48px; }
.page.active { display:block; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:29px; }
.eyebrow { display:block; font-size:9px; font-weight:700; letter-spacing:1.6px; color:var(--accent); margin-bottom:10px; }
h1 { font-size:36px; line-height:1.2; font-weight:650; letter-spacing:-1.5px; margin-bottom:10px; }
.page-head p { color:var(--muted); font-size:13px; margin-bottom:0; }
.header-actions { display:flex; gap:9px; align-items:center; flex-shrink:0; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 16px; border:1px solid transparent; border-radius:8px; font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }
.button.primary { background:var(--green); color:white; box-shadow:0 2px 3px #18392d12; }
.button.primary:hover:not(:disabled) { background:var(--green-hover); }
.button.secondary { background:white; color:var(--ink); border-color:#dbe2e2; }
.button.secondary:hover:not(:disabled) { background:#f4f7f5; border-color:#bbc9c4; }
.button.dashed { background:white; border:1px dashed #c9d5d0; color:var(--green); width:100%; margin-top:12px; }
.text-button { border:0; background:none; color:var(--green); font-size:12px; font-weight:600; padding:7px 0; }
.text-button:hover:not(:disabled) { color:var(--accent); }
.icon-button { border:1px solid var(--line); background:white; border-radius:7px; color:var(--muted); width:32px; height:32px; display:inline-grid; place-items:center; padding:0; flex-shrink:0; }
.icon-button:hover:not(:disabled) { background:var(--soft); color:var(--ink); }
.mobile-menu { display:none; }
.mode-bar { display:flex; align-items:center; gap:20px; border:1px solid var(--line); border-radius:11px; padding:13px 18px; background:#fcfdfc; margin-bottom:24px; }
.mode-bar>div { min-width:235px; border-right:1px solid var(--line); padding-right:18px; }
.field-label { display:block; font-size:9px; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:3px; }
.mode-bar select { border:0; background:none; color:var(--ink); font-weight:600; font-size:12px; padding:0 22px 0 0; width:100%; min-height:25px; }
.mode-bar p { color:var(--muted); font-size:12px; margin:0; flex:1; line-height:1.6; }
.mode-bar .text-button { white-space:nowrap; }
.builder-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.card { background:white; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:23px 25px; }
.card-heading .eyebrow { margin-bottom:5px; }
.card-heading h2 { font-size:19px; }
.badge { display:inline-flex; padding:4px 8px; font-size:10px; line-height:1.5; border-radius:5px; white-space:nowrap; font-weight:500; }
.badge.neutral { color:#70807c; background:#f0f4f1; border:1px solid #e4ebe6; }
.badge.reference { color:#9e5f31; background:#fcf2e7; border:1px solid #efd9c4; }
.badge.saved { color:var(--green); background:#e9f3ed; border:1px solid #d5e6db; }
.builder-tabs { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fcfdfc; }
.builder-tabs button { min-height:58px; border:0; border-bottom:2px solid transparent; background:none; font-size:11px; color:var(--muted); white-space:nowrap; padding:12px 5px; }
.builder-tabs button span { display:inline-grid; place-items:center; border-radius:50%; width:22px; height:22px; border:1px solid var(--line); font-size:9px; margin-right:4px; }
.builder-tabs button[aria-selected=true] { color:var(--green); border-bottom-color:var(--green); background:#f5f8f5; font-weight:600; }
.builder-tabs button[aria-selected=true] span { background:var(--green); border-color:var(--green); color:white; }
.tab-panel { padding:25px; min-height:440px; }
.section-intro { margin-bottom:23px; }
.section-intro h3 { font-size:16px; letter-spacing:-.3px; margin-bottom:6px; }
.section-intro p { color:var(--muted); font-size:12px; margin-bottom:0; line-height:1.7; }
.fields { display:grid; gap:18px 16px; }
.fields.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fields.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.fields .wide { grid-column:1/-1; }
label { display:flex; flex-direction:column; gap:7px; font-size:12px; color:#526269; font-weight:500; }
label small { color:var(--muted); font-size:10px; font-weight:400; line-height:1.6; }
input,select { padding:11px 12px; border:1px solid #dce3e1; background:white; border-radius:7px; width:100%; min-width:0; color:var(--ink); font-size:13px; transition:border-color .15s; }
input::placeholder { color:#a1acb0; font-weight:400; }
.dimension-group { border:0; border-top:1px solid var(--line); padding:19px 0 0; margin:26px 0 19px; min-width:0; }
.dimension-group legend { padding:0 8px 0 0; font-size:12px; font-weight:600; }
.dimension-group legend span { color:var(--muted); font-weight:400; font-size:10px; margin-left:4px; }
.dimension-diagram { display:flex; align-items:center; gap:10px; background:#f8f9f6; border-radius:8px; padding:8px 12px; margin-top:16px; }
.dimension-diagram svg { width:51%; max-width:240px; height:77px; }
.dimension-diagram svg text { font-family:inherit; font-size:9px; fill:#75817d; }
.dimension-diagram p { font-size:10px; color:var(--muted); margin:0; }
.dimension-diagram strong { display:block; color:#596860; font-size:12px; margin-top:5px; font-weight:500; }
.section-label-row { display:flex; justify-content:space-between; align-items:center; margin:20px 0 10px; }
.section-label-row h3 { margin:0; font-size:13px; }
.quantity-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.quantity-item { position:relative; border:1px solid var(--line); background:#fbfcfc; border-radius:8px; padding:11px; }
.quantity-item label { font-size:10px; color:var(--muted); }
.quantity-item input { font-weight:600; background:white; padding:8px; font-size:14px; }
.quantity-item button { position:absolute; right:6px; top:5px; background:none; border:0; color:#8e9c9b; font-size:15px; padding:0 4px; }
.hint { display:block; font-size:11px; color:var(--muted); line-height:1.7; margin:10px 0 0; }
.advanced { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
summary { cursor:pointer; font-size:12px; font-weight:500; color:#637870; }
.advanced .fields { margin-top:15px; }
.builder-footer { border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; padding:13px 25px; background:#fcfdfc; }
.builder-footer>span { font-size:10px; color:#99a5a6; }
.action-bar { margin-top:16px; padding:17px 0; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.action-bar>div { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; }
.status-marker { width:6px; height:6px; border-radius:50%; background:#c6a880; flex-shrink:0; }
.status-marker.success { background:#5c9979; }
.action-bar .button { padding:12px 21px; }
.review-column { display:grid; gap:18px; position:sticky; top:98px; }
.result-card .card-heading { padding:20px; }
.result-card h2 { font-size:15px; }
.result-card .badge { font-size:9px; }
.empty-state { text-align:center; padding:43px 27px; }
.empty-symbol { display:grid; place-items:center; margin:0 auto 18px; width:48px; height:48px; border:1px solid #e6ebe5; background:#f6f8f3; color:#7f9676; border-radius:12px; font-size:24px; }
.empty-state h3 { font-size:15px; line-height:1.5; }
.empty-state p { color:var(--muted); font-size:12px; line-height:1.8; margin:10px 0 0; }
.result-title { padding:0 20px 18px; color:var(--muted); font-size:11px; }
.result-title strong { color:var(--ink); font-size:14px; display:block; margin-bottom:4px; overflow-wrap:anywhere; }
.result-stale { background:#fbf3e8; padding:10px 20px; color:#95642f; font-size:11px; border-top:1px solid #f3e4cc; }
.tier-list { margin:0; padding:0; list-style:none; }
.tier-list button { border:0; border-top:1px solid #eaf0ec; width:100%; display:flex; justify-content:space-between; align-items:center; padding:15px 20px; background:white; text-align:left; }
.tier-list button.selected { background:#f0f6f1; box-shadow:inset 3px 0 var(--green); }
.tier-list button:hover { background:#f6f9f5; }
.tier-list .tier-qty { font-size:12px; font-weight:500; }
.tier-list small { font-size:10px; display:block; color:#8b9995; font-weight:400; margin-top:3px; }
.tier-list strong { font-size:20px; color:var(--green); font-weight:600; letter-spacing:-.5px; }
.result-band { padding:16px 20px; border-top:1px solid var(--line); }
.result-band label { font-size:10px; }
.result-band select { font-size:11px; padding:9px; }
.result-band p { font-size:10px; color:var(--muted); margin:7px 0 0; }
.result-actions { padding:0 20px 18px; display:flex; gap:8px; }
.result-actions .button { flex:1; font-size:11px; }
.cost-details { padding:0 20px 17px; }
.cost-details summary { font-size:11px; }
.breakdown { margin:14px 0 0; }
.breakdown>div { display:flex; justify-content:space-between; gap:10px; font-size:11px; padding:6px 0; }
.breakdown dt { color:var(--muted); }
.breakdown dd { margin:0; font-weight:500; font-variant-numeric:tabular-nums; }
.breakdown .total { border-top:1px solid var(--line); margin-top:6px; padding-top:10px; }
.layout-meta { padding:11px 20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; color:var(--muted); font-size:10px; gap:8px; }
.basis-card { padding:22px; background:#f2f3e9; border-color:#e5e6d9; box-shadow:none; }
.basis-card .eyebrow { color:#87906e; font-size:8px; }
.basis-card h3 { font-size:15px; color:#53614a; }
.basis-card p { font-size:11px; color:#7d8572; line-height:1.8; margin-bottom:15px; }
.basis-foot { display:block; border-top:1px solid #dde2d1; padding-top:11px; font-size:9px; color:#8b947b; }
.preset-label { margin-bottom:19px; }
.layer-list { display:grid; gap:10px; }
.layer-row { display:grid; grid-template-columns:25px minmax(0,1fr) auto; gap:10px; align-items:center; border:1px solid var(--line); border-radius:9px; padding:12px; }
.layer-number { width:23px; height:23px; display:grid; place-items:center; border-radius:6px; background:var(--accent-soft); color:var(--accent); font-size:10px; }
.layer-row select { font-size:12px; padding:9px; }
.layer-meta { font-size:10px; color:var(--muted); margin:6px 0 0; }
.layer-actions { display:flex; gap:3px; }
.layer-actions .icon-button { width:25px; height:27px; font-size:11px; }
.structure-summary { margin-top:20px; padding:15px; border-radius:8px; background:#f0f5f1; display:flex; justify-content:space-between; gap:10px; }
.structure-summary small { font-size:10px; color:#7d8d82; display:block; }
.structure-summary strong { font-size:14px; color:var(--green); font-weight:500; display:block; margin-top:3px; }
.reference-spec { display:grid; gap:12px; }
.reference-layer { padding:17px; border:1px solid var(--line); border-radius:8px; }
.reference-layer small { display:block; color:var(--muted); font-size:10px; margin-bottom:5px; }
.subheading { font-size:13px; margin:24px 0 12px; display:flex; justify-content:space-between; gap:12px; }
.subheading small { font-weight:400; color:var(--muted); font-size:10px; }
.process-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.process-choice { flex-direction:row; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:8px; font-size:11px; cursor:pointer; }
.process-choice:has(input:checked) { border-color:#b8cfc0; background:#f7faf6; }
.process-choice span small { display:block; font-size:9px; color:var(--muted); font-weight:400; margin-top:4px; }
.addon-grid { display:grid; gap:7px; }
.addon { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #eef1ef; }
.addon>label { flex-direction:row; align-items:center; gap:10px; flex:1; font-size:12px; }
.addon .cost-input { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:11px; }
.addon .cost-input input { width:76px; padding:7px; text-align:right; }
.alert { border:1px solid #dbe7e9; background:#f0f7f8; border-radius:9px; padding:15px 18px; color:#51717b; font-size:12px; line-height:1.7; margin-bottom:18px; overflow-wrap:anywhere; }
.alert strong { display:block; font-weight:600; }
.alert.info { display:flex; flex-direction:column; gap:4px; }
.alert.error { border-color:#edc4bd; color:var(--danger); background:var(--danger-soft); }
.alert.subtle { margin:24px 0 0; background:#f8faf8; border-color:#e6ece8; color:#85928c; font-size:11px; }
.alert.warning { border-color:#edddc9; background:#fff8ec; color:#9a6c38; font-size:11px; }
.form-error { margin:18px 25px 0; }
#global-error { margin:24px 38px 0; }
.quotation-wrap { margin-top:28px; padding-top:26px; border-top:1px solid var(--line); scroll-margin-top:100px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:23px; }
.section-head h2 { font-size:25px; }
.section-head p { color:var(--muted); font-size:12px; margin:8px 0 0; }
.quotation { background:white; padding:43px; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.quote-header { display:flex; justify-content:space-between; gap:16px; padding-bottom:25px; border-bottom:2px solid var(--navy); }
.quote-brand { font-size:26px; font-weight:750; letter-spacing:-1.3px; color:var(--navy); }
.quote-brand span { color:var(--accent); }
.quote-header small { color:var(--muted); font-size:10px; }
.quote-header aside { text-align:right; color:var(--muted); font-size:11px; }
.quote-header aside strong { display:block; color:var(--ink); font-size:12px; margin-bottom:5px; }
.quote-parties { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:26px 0; }
.quote-block { overflow-wrap:anywhere; }
.quote-block small { color:var(--accent); font-size:9px; font-weight:600; letter-spacing:1px; }
.quote-block h3 { font-size:15px; margin:7px 0; }
.quote-block p { font-size:11px; color:var(--muted); line-height:1.8; margin:0; }
.quote-spec { display:grid; grid-template-columns:1fr 1fr; gap:22px; background:#f6f8f6; padding:17px; border-radius:8px; margin-bottom:24px; }
.quote-spec small { display:block; color:var(--muted); font-size:9px; margin-bottom:5px; }
.quote-spec strong { display:block; font-size:11px; font-weight:500; line-height:1.7; }
.table-scroll { overflow:auto; -webkit-overflow-scrolling:touch; }
.quote-table { border-collapse:collapse; width:100%; font-size:12px; font-variant-numeric:tabular-nums; min-width:460px; }
.quote-table th,.quote-table td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }
.quote-table th { text-align:left; color:#5c7067; font-weight:500; font-size:11px; background:#f5f8f5; }
.quote-table tr:first-child th,.quote-table tr:first-child td { background:var(--navy); color:white; font-weight:600; }
.quote-table tr.grand td,.quote-table tr.grand th { background:#f0f6f1; color:var(--green); font-weight:600; }
.quote-terms { border-top:1px solid var(--line); padding-top:20px; margin-top:25px; }
.quote-terms h4 { margin:0 0 8px; font-size:12px; font-weight:600; }
.quote-terms ul { margin:0; padding-left:15px; color:var(--muted); font-size:10px; line-height:1.9; }
.technical-details { margin-top:15px; background:#edf1ee; border-radius:8px; padding:14px 17px; }
.technical-details summary { font-size:11px; }
.technical-details pre { font-size:11px; white-space:pre-wrap; max-height:450px; overflow:auto; line-height:1.6; }
.stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-bottom:27px; }
.stat-card { background:white; border:1px solid var(--line); border-radius:12px; padding:23px; }
.stat-card small { color:var(--muted); font-size:11px; display:block; }
.stat-card strong { display:block; font-size:31px; letter-spacing:-1px; font-weight:550; margin-top:12px; }
.stat-card p { font-size:10px; color:var(--muted); margin:4px 0 0; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr); gap:24px; }
.quick-start { padding:30px; background:#f1f3e8; border-color:#e3e6d5; }
.quick-start h2 { font-size:29px; letter-spacing:-1px; color:#4c5d45; margin-bottom:17px; }
.quick-start p { color:#7c8773; font-size:12px; line-height:1.8; }
.quick-start small { font-size:10px; color:#89917b; display:block; margin-top:18px; line-height:1.8; }
.mini-tags { display:flex; gap:6px; flex-wrap:wrap; margin:17px 0 25px; }
.mini-tags span { padding:5px 7px; border:1px solid #d9dfce; border-radius:5px; font-size:10px; color:#7a896c; }
.workspace-note { margin:24px 0; border:1px solid var(--line); padding:18px 22px; border-radius:9px; color:#85948f; font-size:12px; line-height:1.8; }
.workspace-note strong { color:#687e71; font-weight:500; }
.recent-item { display:flex; align-items:center; gap:15px; padding:19px 25px; border-top:1px solid var(--line); }
.recent-icon { width:35px; height:39px; display:grid; place-items:center; border-radius:8px; color:#8d9f8c; background:#f2f6f0; font-size:19px; flex-shrink:0; }
.recent-copy { min-width:0; flex:1; }
.recent-copy strong { display:block; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.recent-copy small { color:var(--muted); font-size:10px; display:block; margin-top:5px; }
.library-toolbar { display:flex; align-items:center; gap:14px; padding:20px; border-bottom:1px solid var(--line); }
.search-field { position:relative; flex:1; }
.search-field span { position:absolute; left:13px; top:9px; font-size:20px; color:#83948c; }
.search-field input { padding-left:37px; }
.filter-label { flex-direction:row; align-items:center; gap:9px; font-size:11px; }
.filter-label select { font-size:11px; }
.library-table,.data-table { border-collapse:collapse; width:100%; font-size:12px; }
.library-table th,.data-table th { padding:12px 20px; text-align:left; font-size:10px; font-weight:500; color:var(--muted); background:#f9fbf9; border-bottom:1px solid var(--line); white-space:nowrap; }
.library-table td,.data-table td { padding:17px 20px; border-bottom:1px solid var(--line); vertical-align:middle; }
.library-table tbody tr:last-child td,.data-table tbody tr:last-child td { border-bottom:0; }
.library-table td strong { display:block; font-weight:500; }
.library-table td small { display:block; color:var(--muted); font-size:10px; margin-top:5px; }
.row-actions { display:flex; align-items:center; gap:9px; }
.row-actions .text-button { font-size:11px; white-space:nowrap; }
.master-tabs { display:flex; gap:5px; padding:5px; border:1px solid var(--line); background:#eef2ee; border-radius:9px; width:max-content; max-width:100%; margin:22px 0; overflow:auto; }
.master-tabs button { border:0; background:transparent; padding:9px 17px; border-radius:5px; font-size:12px; color:var(--muted); white-space:nowrap; }
.master-tabs button[aria-selected=true] { background:white; color:var(--green); box-shadow:0 1px 5px #273c2b0a; font-weight:500; }
.data-table input { width:105px; min-width:85px; font-size:12px; padding:9px; }
.data-table th small { display:block; font-size:9px; color:#a4afa7; margin-top:3px; }
.data-table strong { font-size:12px; font-weight:500; }
.data-table .computed { color:var(--green); font-variant-numeric:tabular-nums; font-size:11px; }
#master-panel .card-heading p { font-size:11px; color:var(--muted); margin:6px 0 0; }
.app-footer { border-top:1px solid var(--line); margin:0 38px; padding:22px 0; display:flex; justify-content:space-between; color:#9ba8a5; font-size:9px; gap:15px; }
.footer-dot { margin:0 8px; }
#toast { position:fixed; bottom:23px; left:calc(50% + 118px); transform:translate(-50%,15px); max-width:90vw; padding:13px 22px; border-radius:9px; background:var(--navy); color:white; font-size:12px; opacity:0; pointer-events:none; transition:.2s; z-index:90; box-shadow:0 5px 20px #172b3625; }
#toast.show { opacity:1; transform:translate(-50%,0); }
dialog { border:1px solid var(--line); border-radius:16px; padding:30px; width:min(460px,calc(100% - 32px)); box-shadow:0 20px 80px #172b3633; color:var(--ink); }
dialog::backdrop { background:#142c3866; backdrop-filter:blur(3px); }
dialog h2 { margin:8px 0 15px; }
dialog p { color:var(--muted); font-size:13px; line-height:1.8; }
.dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:28px; }
@media(min-width:1500px) { .builder-layout { grid-template-columns:minmax(0,1fr) 370px; }.card-heading,.tab-panel { padding:28px 30px; }.builder-tabs button { font-size:12px; } }
@media(max-width:1200px) { .sidebar { width:210px; padding-left:13px; padding-right:13px; }.app-shell { margin-left:210px; }.page { padding:28px 25px 40px; }.topbar { padding:0 25px; }h1 { font-size:30px; }.builder-layout { grid-template-columns:minmax(0,1fr) 290px; gap:18px; }.tab-panel { padding:22px; }.card-heading { padding:21px; }.builder-tabs button { font-size:10px; }.builder-tabs button span { display:none; }.mode-bar { gap:12px; }.mode-bar .text-button { max-width:120px; white-space:normal; font-size:11px; }.mode-bar>div { min-width:210px; }.quotation { padding:30px; }#toast { left:calc(50% + 105px); } }
@media(max-width:1000px) { .builder-layout { grid-template-columns:minmax(0,1fr); }.review-column { position:static; grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr); align-items:start; }.overview-grid { grid-template-columns:1fr; }.builder-tabs button span { display:inline-grid; }.builder-tabs button { font-size:12px; }.mode-bar { flex-wrap:wrap; }.mode-bar>div { min-width:230px; border:0; padding:0; }.mode-bar p { min-width:180px; }.mode-bar .text-button { margin-left:auto; max-width:none; }.action-bar { padding-top:4px; }.page-head { align-items:flex-start; }.header-actions { flex-wrap:wrap; }.page-head .header-actions { justify-content:flex-end; } }
@media(max-width:760px) { .sidebar { width:236px; transform:translateX(-100%); transition:transform .2s; }.sidebar.open { transform:translateX(0); }.nav-backdrop { display:block; position:fixed; inset:0; z-index:29; background:#172b3655; border:0; }.mobile-menu { display:inline-grid; }.app-shell { margin-left:0; }.topbar { padding:0 18px; height:62px; }.breadcrumb { font-size:11px; }.breadcrumb span { margin:0 6px; }.workspace-status { font-size:9px; gap:5px; }.page { padding:25px 18px 32px; }h1 { font-size:29px; letter-spacing:-1px; }.page-head { flex-direction:column; gap:20px; margin-bottom:24px; }.page-head .header-actions { width:100%; justify-content:flex-start; }.mode-bar { padding:15px; gap:10px; }.mode-bar>div { width:100%; }.mode-bar p { font-size:11px; flex-basis:100%; }.mode-bar .text-button { margin-left:0; }.builder-tabs button span { display:none; }.builder-tabs button { font-size:11px; }.card-heading { padding:20px; }.card-heading h2 { font-size:17px; }.tab-panel { padding:21px 19px; }.fields.two { gap:16px 12px; }.fields.three { gap:12px; }.review-column { grid-template-columns:1fr; }.basis-card { padding:19px; }.basis-card .eyebrow { font-size:9px; }.basis-card p { font-size:12px; }.builder-footer { padding:12px 19px; }.action-bar { padding:16px 0; align-items:flex-start; }.action-bar>div { max-width:160px; font-size:10px; padding-top:8px; }.action-bar .button { padding:12px 14px; font-size:11px; }.section-head { flex-direction:column; align-items:flex-start; gap:18px; }.quotation { padding:24px 18px; }.quote-parties { gap:20px; }.quote-spec { grid-template-columns:1fr; gap:15px; }.quote-table { font-size:11px; }.quote-table th,.quote-table td { padding:11px 10px; }.quote-header aside { font-size:9px; }.quote-header aside strong { font-size:10px; }.quote-brand { font-size:23px; }.stat-grid { grid-template-columns:1fr; gap:10px; }.stat-card { display:grid; grid-template-columns:1fr auto; align-items:center; padding:19px; }.stat-card strong { grid-row:1/3; grid-column:2; font-size:26px; margin:0; }.stat-card p { grid-column:1; margin-top:5px; }.library-toolbar { flex-wrap:wrap; padding:16px; gap:12px; }.search-field { flex-basis:100%; }.filter-label { flex:1; }.master-tabs { width:100%; }.master-tabs button { flex:1; font-size:11px; padding:9px 10px; }.app-footer { margin:0 18px; flex-direction:column; gap:8px; font-size:9px; }#toast { left:50%; width:max-content; max-width:calc(100% - 30px); }#global-error { margin:20px 18px 0; }.layer-row { grid-template-columns:20px minmax(0,1fr); padding:10px; gap:9px; }.layer-actions { grid-column:2; justify-content:flex-end; }.layer-actions .icon-button { width:30px; height:29px; }.quantity-item { padding:10px 8px; }.quantity-item input { font-size:13px; }.structure-summary { flex-wrap:wrap; }.process-grid { gap:7px; }.process-choice { padding:10px; font-size:10px; }.dimension-diagram { gap:4px; }.overview-grid { gap:18px; }.quick-start { padding:25px; } }
@media(max-width:360px) { .fields.two,.fields.three { grid-template-columns:1fr; }.quantity-list { grid-template-columns:1fr; }.process-grid { grid-template-columns:1fr; }.quote-parties { grid-template-columns:1fr; }.workspace-status { display:none; }.header-actions .button { font-size:11px; padding:9px 12px; }.builder-tabs button { font-size:10px; }.action-bar { flex-direction:column; }.action-bar>div { max-width:none; }.action-bar .button { width:100%; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
@media print { .sidebar,.topbar,.page-head,.mode-bar,.builder-layout,.header-actions,.app-footer,.technical-details,#quote-warnings,#toast,.section-head { display:none!important; }.app-shell { margin:0; }.page { padding:0; }.quotation-wrap { margin:0; padding:0; border:0; }.quotation { padding:10mm; border:0; box-shadow:none; }.quote-table { min-width:0; }.table-scroll { overflow:visible; } }
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.data-table td>small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.quote-table caption{text-align:left}.reference-spec strong{font-size:13px;font-weight:500}
.revision-row{display:grid;gap:5px;padding:15px 0;border-bottom:1px solid var(--line)}.revision-row:last-child{border:0}.revision-row strong{font-size:12px;font-weight:600}.revision-row span,.revision-row small{font-size:11px;color:var(--muted)}.table-scroll:focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* Readable secondary text and keyboard/touch navigation. */
:root{--muted:#65757b}.basis-card .eyebrow,.basis-card p,.basis-foot{color:#65705a}.builder-footer>span,.tier-list small,.app-footer{color:#687971}.result-band p{line-height:1.7}.quantity-item button{min-width:24px;min-height:24px}.structure-summary small,.quick-start p,.quick-start small,.quick-start .mini-tags span{color:#65735c}.status-marker{width:7px;height:7px}
@media(max-width:760px){.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}.layer-actions .icon-button{width:40px;height:40px}.icon-button.mobile-menu{width:36px;height:36px}.builder-tabs button{min-height:56px}.quote-header{flex-wrap:wrap}.quote-header aside{min-width:120px}}

/* Imported costing masters */
.settings-tabs{display:flex;gap:8px;overflow-x:auto;margin:22px 0 18px;padding-bottom:6px}.settings-tabs button{white-space:nowrap;border:1px solid var(--border,#dce3df);background:white;color:inherit;border-radius:9px;padding:11px 15px;cursor:pointer}.settings-tabs [aria-selected=true]{background:#173e39;color:white;border-color:#173e39}.settings-tabs small{margin-left:8px;opacity:.7}.settings-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.settings-records{padding:18px;position:sticky;top:20px}.settings-records>label{display:block;font-weight:600;margin-bottom:8px}.settings-records input{width:100%}#settings-count{font-size:12px;color:#66756e}#settings-list{max-height:62vh;overflow:auto}.settings-record{display:block;width:100%;padding:12px 10px;text-align:left;border:0;border-bottom:1px solid #edf0ed;background:transparent;font:inherit;font-size:13px;cursor:pointer;overflow-wrap:anywhere}.settings-record.selected{background:#eaf3ec;border-radius:7px;color:#214c3e;font-weight:600}.settings-record small{display:block;font-size:10px;margin-top:4px;font-weight:400}.settings-detail-head{margin-bottom:24px}.settings-detail-head h2{margin:8px 0;overflow-wrap:anywhere}.settings-detail-head p,#settings-status{color:#65736e;font-size:13px;line-height:1.6}.settings-group{border-top:1px solid #e3e8e3;padding:16px 0}.settings-group summary{font-weight:600;cursor:pointer;overflow-wrap:anywhere}.settings-group summary small{font-weight:400;color:#748078;margin-left:10px}.settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.settings-field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.settings-field input:not([type=checkbox]),.settings-field select{width:100%;min-width:0}.settings-field input:disabled{background:#f1f3f0;color:#66736b}.settings-field label small{font-weight:400;color:#7a867c}.settings-source{display:block;color:#7a867c;font-size:10px;margin-top:6px;overflow-wrap:anywhere}.settings-check input{width:18px;height:18px;accent-color:#214c3e}.settings-history{margin-top:20px}.settings-history summary{cursor:pointer;font-weight:600}.settings-history-entry{padding:14px 0;font-size:12px;border-bottom:1px solid #e3e8e3}.settings-history-entry li{margin:7px 0;overflow-wrap:anywhere}#settings-detail{min-width:0}
@media(max-width:1000px){.settings-layout{grid-template-columns:220px minmax(0,1fr)}.settings-fields{grid-template-columns:1fr}}
@media(max-width:760px){.settings-layout{grid-template-columns:1fr}.settings-records{position:static}#settings-list{max-height:180px}.settings-tabs{margin-top:16px}.settings-fields{grid-template-columns:1fr}}
#settings-detail{padding:24px}.settings-detail-head label{display:block;font-size:12px;font-weight:600;margin:16px 0 7px}.settings-detail-head input{width:100%}.settings-group[hidden]{display:none}
@media(max-width:760px){#settings-detail{padding:18px}}
.auth-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#132d35,#315c50)}.auth-card{width:100%;max-width:460px;padding:38px;background:white}.auth-brand{font-size:30px;font-weight:800;text-decoration:none;display:block;margin-bottom:28px}.auth-card .eyebrow{display:block;margin-bottom:12px}.auth-card h1{font-size:30px}.auth-card label{display:block;font-size:13px;font-weight:600;margin:20px 0}.auth-card input{display:block;width:100%;margin-top:8px}.auth-card button{width:100%;margin:12px 0}.auth-card p{color:#65736e;font-size:13px;line-height:1.7}#auth-help{font-size:12px;margin-top:24px}.tester-list{display:grid;gap:12px;margin-top:20px}.tester-row{display:flex;justify-content:space-between;gap:14px;padding:14px;border-bottom:1px solid var(--line)}.invite-result{overflow-wrap:anywhere;line-height:1.7;margin:20px 0}.invite-result input{width:100%}
.users-card{padding:26px}.users-card form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:24px 0}.users-card form label{flex-basis:100%;font-size:12px;font-weight:600}.users-card input{max-width:100%}.tester-row small{display:block;color:var(--muted);margin-top:4px}.sidebar-foot #logout{font-size:11px}.sidebar-foot{flex-wrap:wrap}
