/* A.N.Y Glass. Tokens from the design system. Public catalog (light, photos first, masonry) and a mobile-first admin. */
:root {
  --brand-navy: #2F3B4A;
  --brand-navy-hover: #232D39;
  --brand-cyan: #29ABE2;
  --brand-cyan-soft: #E3F4FC;
  --surface: #FFFFFF;
  --surface-alt: #F4F6F8;
  --surface-sunken: #E9EDF1;
  --glass: rgba(255,255,255,0.78);
  --ink: #2F3B4A;
  --ink-muted: #5B6878;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C5CDD6;
  --line: #D9DFE5;
  --line-strong: #8996A4;
  --focus: #0E7FB0;
  --whatsapp: #25D366;
  --on-whatsapp: #0F2A1B;
  --status-draft: #8A5A00;
  --status-draft-soft: #FFF4DB;
  --status-live: #1D6B45;
  --status-live-soft: #E3F5EB;
  --danger: #B42318;
  --shadow-header: 0 1px 0 rgba(47,59,74,0.08);
  --shadow-sheet: 0 -8px 24px rgba(47,59,74,0.12);
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 2px; --radius-md: 4px;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-alt); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1200px; margin-inline: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
.muted { color: var(--ink-muted); }

/* App frame */
#app { background: var(--surface); min-height: 70vh; position: relative; }
.screen { animation: enter 280ms var(--ease-out) both; }
.screen.back { animation-name: enter-back; }
@keyframes enter { from { opacity: 0; transform: translateX(-20px); } }
@keyframes enter-back { from { opacity: 0; transform: translateX(20px); } }
@media (prefers-reduced-motion: reduce) { .screen, .screen.back { animation: fade 160ms linear both; } @keyframes fade { from { opacity: 0; } } }
.press { transition: transform 100ms ease-out, background-color 120ms ease-out, border-color 120ms ease-out; }
.press:active { transform: scale(.97); }

/* Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--glass); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: var(--shadow-header); border-bottom: 2px solid var(--brand-cyan); }
@media (prefers-reduced-transparency: reduce) { .hdr { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.hdr .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: 56px; }
.wordmark { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; direction: ltr; background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: var(--space-2); }
.wordmark b { color: var(--brand-cyan); font-weight: 600; }
.wordmark svg { width: 22px; height: 22px; }
.hdr-tools { display: flex; align-items: center; gap: var(--space-2); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; }
.lang button { font-size: 14px; line-height: 20px; font-weight: 500; padding: var(--space-1) var(--space-3); border: 0; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--brand-navy); color: var(--on-navy); }

/* Buttons */
.btn { font-size: 15px; line-height: 20px; font-weight: 600; min-height: 44px; padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand-navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--brand-navy-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 var(--space-3); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-wa { background: var(--whatsapp); color: var(--on-whatsapp); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }

/* Home */
.hero { padding-block: var(--space-8) var(--space-6); }
.hero h1 { font-size: 32px; line-height: 40px; font-weight: 600; }
.hero p { margin-top: var(--space-2); color: var(--ink-muted); max-width: 52ch; }
.chips-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-block: var(--space-2); scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--brand-cyan-soft); border-color: var(--brand-cyan-soft); box-shadow: inset 0 -2px 0 var(--brand-cyan); }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4) var(--space-3); }
.cat-row h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
.count { font-size: 14px; line-height: 22px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; color: var(--focus); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; display: inline-flex; gap: var(--space-1); align-items: center; padding: var(--space-1) 0; }
.link-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Media placeholder + real media */
.ph { position: relative; display: block; width: 100%; max-width: 100%; background: var(--surface-sunken); overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 38%, rgba(255,255,255,.6) 39%, rgba(255,255,255,.6) 45%, transparent 46%, transparent 52%, rgba(255,255,255,.35) 53%, rgba(255,255,255,.35) 55%, transparent 56%); pointer-events: none; }
.ph .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph .glyph svg { width: 34%; max-width: 72px; height: auto; stroke: var(--line-strong); fill: none; stroke-width: 1.5; stroke-linejoin: miter; }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-media::after { display: none; }
.play { position: absolute; top: var(--space-2); inset-inline-end: var(--space-2); width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--glass); display: grid; place-items: center; z-index: 2; }
.play svg { width: 12px; height: 12px; fill: var(--ink); }

/* Masonry */
.masonry { columns: 2; column-gap: var(--space-2); padding-bottom: var(--space-12); }
.masonry .card { margin-bottom: var(--space-3); }
@media (min-width: 640px) { .masonry { columns: 3; column-gap: var(--space-3); } }
@media (min-width: 1024px) { .masonry { columns: 4; } }
.card { display: block; width: 100%; break-inside: avoid; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.card:hover .ph { filter: brightness(.97); }
.card-body { padding-top: var(--space-2); }
.card-title { font-size: 15px; line-height: 22px; font-weight: 600; }
.card-meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.empty { padding-block: var(--space-12); text-align: center; color: var(--ink-muted); }

/* Project page */
.topline { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-2); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--surface-sunken); }
.gallery::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.slide .ph { aspect-ratio: 4/5; max-height: 72vh; }
.slide + .slide { border-inline-start: 2px solid var(--surface); }
.gal-count { display: flex; justify-content: center; gap: 6px; padding-block: var(--space-3); }
.gal-count i { width: 6px; height: 6px; background: var(--line); display: block; transition: background-color 160ms, width 200ms var(--ease-out); }
.gal-count i.on { background: var(--brand-navy); width: 18px; }
.proj-head { display: flex; flex-direction: column; gap: var(--space-1); padding-block: var(--space-2) var(--space-6); }
.proj-head h1 { font-size: 28px; line-height: 36px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tag { font-size: 13px; line-height: 20px; font-weight: 500; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--brand-cyan-soft); color: var(--ink); border: 0; cursor: pointer; }
.proj-desc { max-width: 60ch; margin-bottom: var(--space-6); }
.specs { background: var(--surface-alt); border-radius: var(--radius-md); padding: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-6); margin: 0 0 var(--space-8); max-width: 640px; }
.specs dt { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.specs dd { margin: var(--space-1) 0 0; font-size: 15px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: var(--space-2); }
.swatch { width: 14px; height: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); flex: none; display: inline-block; }
.section-title { font-size: 22px; line-height: 30px; font-weight: 600; margin-bottom: var(--space-3); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-8); max-width: 640px; }
.ba figure { margin: 0; }
.ba .ph { aspect-ratio: 3/4; }
.ba figcaption { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-muted); padding-top: var(--space-1); }
.sheet { position: sticky; bottom: 0; z-index: 8; background: var(--surface); box-shadow: var(--shadow-sheet); padding-block: var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
.sheet .inner { display: flex; gap: var(--space-2); }
.sheet .btn-wa { flex: 1; }

.foot { background: var(--surface-alt); padding-block: var(--space-8); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.foot .inner { display: flex; flex-direction: column; gap: var(--space-1); }
.foot strong { color: var(--ink); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.example-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); padding-block: var(--space-2) 0; display: flex; gap: var(--space-2); align-items: flex-start; }
.example-note i { width: 6px; height: 6px; background: var(--brand-cyan); flex: none; margin-top: 7px; }

/* Admin */
.admin { background: var(--surface-alt); min-height: 760px; }
.admin-hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-hdr .inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; }
.admin-hdr .who { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.role { font-size: 12px; line-height: 18px; font-weight: 600; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--brand-navy); color: var(--on-navy); }
.role.worker { background: var(--surface-sunken); color: var(--ink); }
.admin-body { padding-block: var(--space-6) var(--space-12); max-width: 720px; margin-inline: auto; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.admin-title h1 { font-size: 22px; line-height: 30px; font-weight: 600; }
.alert { background: var(--status-draft-soft); color: var(--status-draft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 22px; font-weight: 500; margin-bottom: var(--space-4); }
.tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: var(--space-2) var(--space-3); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand-navy); }
.tabs .n { font-variant-numeric: tabular-nums; color: var(--ink-muted); font-weight: 400; }
.rows { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--surface); }
.row .ph { aspect-ratio: 1; }
.row-title { font-size: 15px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { font-size: 13px; line-height: 20px; color: var(--ink-muted); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.row-actions { display: flex; gap: var(--space-1); }
.badge { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 20px; font-weight: 500; padding: 0 var(--space-2); border-radius: var(--radius-sm); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; }
.badge.draft { background: var(--status-draft-soft); color: var(--status-draft); }
.badge.live { background: var(--status-live-soft); color: var(--status-live); }

.form { display: flex; flex-direction: column; gap: var(--space-6); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.input { font-size: 16px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
textarea.input { padding: var(--space-2) var(--space-3); min-height: 88px; resize: vertical; line-height: 24px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: left 16px center, left 11px center; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hint { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.translation { border-inline-start: 2px solid var(--brand-cyan); padding-inline-start: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); min-height: 132px; padding: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--brand-cyan-soft); color: var(--ink); cursor: pointer; text-align: center; font-weight: 600; font-size: 15px; line-height: 22px; }
.upload svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.upload small { font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-1); }
.thumb { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.thumb .ph { aspect-ratio: 1; }
.thumb.cover::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--brand-navy); z-index: 3; pointer-events: none; }
.thumb .cv { position: absolute; bottom: 0; inset-inline-start: 0; z-index: 3; background: var(--brand-navy); color: var(--on-navy); font-size: 11px; line-height: 18px; font-weight: 600; padding: 0 6px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.check { display: flex; gap: var(--space-2); align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-navy); }
.metal { display: inline-flex; align-items: center; gap: var(--space-2); }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.actions .grow { margin-inline-end: auto; }
.confirm { background: var(--surface); border: 1px solid var(--danger); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.confirm p { margin-inline-end: auto; font-size: 14px; color: var(--danger); font-weight: 500; }

.login { max-width: 400px; margin-inline: auto; padding-block: var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }
.login h1 { font-size: 22px; line-height: 30px; font-weight: 600; }
.login-note { font-size: 13px; line-height: 20px; color: var(--status-draft); background: var(--status-draft-soft); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.role-pick button { min-height: 52px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-md); cursor: pointer; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 20px; }
.role-pick button small { font-weight: 400; font-size: 12px; color: var(--ink-muted); }
.role-pick button[aria-pressed="true"] { border-color: var(--brand-navy); box-shadow: inset 0 0 0 1px var(--brand-navy); background: var(--brand-cyan-soft); }
.cat-list .row { grid-template-columns: minmax(0,1fr) auto; }

/* Toast */
.toast { position: fixed; z-index: 50; bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px) + 64px); left: 50%; transform: translate(-50%, 12px); background: var(--brand-navy); color: var(--on-navy); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 22px; max-width: min(92vw, 420px); text-align: center; opacity: 0; pointer-events: none; transition: opacity 180ms ease-out, transform 240ms var(--ease-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity 160ms linear; transform: translate(-50%, 0); } }

/* Real-site additions */
#app { min-height: 100vh; }
.boot { display: grid; place-items: center; min-height: 60vh; color: var(--ink-muted); }
.err { color: var(--danger); font-size: 14px; line-height: 22px; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--brand-navy); }
.slide .ph.has-media img { object-fit: contain; background: var(--surface-sunken); }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-2); }
@media (min-width: 560px) { .mgrid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.mitem { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.mitem .thumb { width: 100%; }
.mitem select { font-size: 13px; min-height: 32px; padding: 0 var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); width: 100%; }
.mrow { display: flex; gap: var(--space-1); }
.mrow button { flex: 1; min-height: 32px; font-size: 12px; line-height: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; padding: 0 4px; }
.mrow button.del { color: var(--danger); }
.progress { display: flex; flex-direction: column; gap: var(--space-1); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.bar { height: 4px; background: var(--surface-sunken); }
.bar i { display: block; height: 100%; width: 0; background: var(--brand-navy); transition: width 160ms linear; }
.nav-admin { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; padding-bottom: var(--space-2); }
.nav-admin a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); white-space: nowrap; }
.nav-admin a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand-navy); }
.cat-edit { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: var(--space-2); align-items: end; padding: var(--space-3); background: var(--surface); }
@media (max-width: 520px) { .cat-edit { grid-template-columns: 1fr 1fr; } .cat-edit .actions { grid-column: 1 / -1; } }
.slug { font-size: 12px; line-height: 18px; color: var(--ink-muted); direction: ltr; text-align: start; unicode-bidi: isolate; }
a.card { text-decoration: none; }

/* Quotes */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-2); }
.side-box { background: var(--surface-alt); border-color: var(--line); }
.piece-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto auto; gap: var(--space-2); align-items: center; margin-bottom: var(--space-2); }
.piece-row .check { font-size: 13px; white-space: nowrap; }
.cut-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }
.cut-table th, .cut-table td { text-align: start; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); }
.cut-table th { font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.cut-table td[dir="ltr"] { text-align: end; font-weight: 600; }
.g2-wrap { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.g2 { margin: 0; flex: 1 1 200px; min-width: 0; max-width: 360px; }
.g2 svg { width: 100%; height: auto; display: block; }
.g2 figcaption { font-size: 12px; color: var(--ink-muted); text-align: center; }
.g2-door { fill: var(--brand-cyan-soft); stroke: var(--brand-navy); stroke-width: 1.5; }
.g2-panel { fill: var(--surface-alt); stroke: var(--brand-navy); stroke-width: 1.5; }
.g2-t { font: 500 11px var(--font-sans); fill: var(--ink-muted); text-anchor: middle; }
.g2-n { font: 600 12px var(--font-sans); fill: var(--ink); text-anchor: middle; }
.g2-dim { stroke: var(--line-strong); stroke-width: 1; }
.view3d { width: 100%; aspect-ratio: 4/3; max-height: 420px; background: var(--surface-alt); border-radius: var(--radius-md); overflow: hidden; touch-action: none; }
.view3d.big { aspect-ratio: 1; max-height: 520px; margin-top: var(--space-4); }
.view3d canvas { display: block; }
.quote-doc { max-width: 640px; padding-bottom: var(--space-12); }
.totals { grid-template-columns: 1fr 1fr 1fr; }
.totals .grand dd { font-size: 20px; line-height: 28px; }
@media (max-width: 520px) { .piece-row { grid-template-columns: 1fr 1fr; } .totals { grid-template-columns: 1fr 1fr; } }
