/* =====================================================================
   Cundiff Custom Fabrication
   White pages, Inter Tight, solid red buttons, black header.
   Layout and type scale follow design/scs-homepage-inventory.md.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --text: #333333;
  --ink: #1a1a1a;
  --muted: #5f6368;
  --faint: #8a8f94;
  --line: #dddddd;
  --line-2: #c4c4c4;
  --panel: #f5f5f5;
  --band: #ebebeb;
  --band-2: #f1f1f1;
  --red: #e31b1b;
  --red-dark: #c01414;
  --red-tint: #fdeceb;
  /* Selected choices: dark and calm, so a pick never looks like an error. Red is for buttons. */
  --sel: #1a1a1a;
  --sel-bg: #f1f4f7;
  --black: #0d0d0d;
  --blue: #1f6fd1;
  --star: #f5b301;
  --ok: #1a7f37;
  --ok-bg: #e7f4ea;
  --warn: #8a5300;
  --warn-bg: #fff4d6;
  --err: #b42318;
  --err-bg: #fdecea;
  --info: #1d4f91;
  --info-bg: #eaf2fd;
  --r: 8px;
  --r-sm: 6px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  /* Numbers line up without a second typeface. */
  --mono: "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.icon { flex: none; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center-text { text-align: center; }
.spacer { flex: 1; }
::selection { background: rgba(227, 27, 27, 0.18); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Plain surfaces: white cards with a thin border. (The old "glass" class now means "card".) */
.glass, .upload-card, .tpl-card, .tpl-side, .wiz-step, .price-panel, .mat-card, .thick, .svc, .radio-row, .modal, .popover,
.lib-side, .lib-card, .cart-line, .checkout, .card-form, .ai-box, .example, .bend-add, .bend-list li, .menu, .recent a, .speed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tpl-side, .lib-side, .price-panel, .wiz-view { background: var(--panel); }
.modal, .popover, .menu { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.glass, .tpl-card, .lib-card, .cart-line, .checkout, .ai-box, .example, .price-panel, .wiz-step, .modal { position: relative; }

/* ---------- Header (black, 70px, static) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 70px; padding: 0 24px; background: rgba(13, 13, 13, 0.86); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); color: #fff; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; }
.main-nav a { white-space: nowrap; padding: 8px 12px; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #ffb3b3; }
.main-nav a.on { border-bottom-color: var(--red); }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.head-actions .phone, .cart-link, .menu-btn { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; background: none; text-decoration: none; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; }
.head-actions .phone:hover, .cart-link:hover { color: #ffb3b3; }
.cart-link { width: 40px; padding: 0; justify-content: center; }
.menu-btn { display: none; width: 40px; padding: 0; justify-content: center; }
.badge-count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.head-cta { margin-left: 6px; }

.main { min-height: calc(100vh - 300px); }

/* ---------- Footer (#f1f1f1) ---------- */
.site-footer { background: var(--band-2); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; max-width: 1140px; margin: 0 auto; padding: 56px 20px 32px; }
.foot-brand img { width: 48px; height: auto; }
.foot-brand p { margin: 12px 0 0; font-size: 15px; color: var(--text); }
.foot-brand a { text-decoration: none; }
.foot-brand a:hover { color: var(--red); }
.site-footer nav { display: grid; align-content: start; justify-items: start; gap: 10px; }
.site-footer h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer nav a, .site-footer nav span { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--red); }
/* Bottom strip: same near-black as the header, so the white Newgrange mark shows. */
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 16px max(20px, calc((100% - 1140px) / 2)); background: #0d0d0d; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.foot-bar p { margin: 0; }
.foot-credit a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; vertical-align: middle; }
.foot-credit a:hover { text-decoration: underline; }
.foot-credit img { width: 20px; height: auto; }
/* Social bubbles: round, thick-outlined logos that puff up and fill with the network's color on hover. */
.soc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-soc { margin-top: 16px; }
.soc-bubble { display: grid; place-items: center; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s; }
.soc-bubble:hover, .soc-bubble:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 5px 0 var(--ink); color: #fff; }
.soc-bubble:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.soc-bubble.facebook:hover, .soc-bubble.facebook:focus-visible { background: #1877f2; }
.soc-bubble.instagram:hover, .soc-bubble.instagram:focus-visible { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.soc-bubble.tiktok:hover, .soc-bubble.tiktok:focus-visible { background: #010101; box-shadow: 0 5px 0 #fe2c55, -3px 3px 0 #25f4ee; }
.soc-btn.tiktok:hover .soc-dot { background: #010101; border-color: #010101; color: #fff; box-shadow: 2px 2px 0 #fe2c55, -2px -2px 0 #25f4ee; }
.soc-btn { display: inline-flex; align-items: center; gap: 10px; padding-left: 8px; }
.soc-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.soc-btn.facebook:hover .soc-dot { background: #1877f2; border-color: #1877f2; color: #fff; }
.soc-btn.instagram:hover .soc-dot { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: #d6249f; color: #fff; }
.soc-follow { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.soc-follow p { margin: 0; }
.soc-follow .soc-row, .soc-card .soc-row { flex: none; flex-wrap: nowrap; }
.soc-card { display: flex; align-items: center; gap: 16px; margin: 32px auto 0; max-width: 520px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: left; }
.soc-card p { margin: 0; font-size: 15px; }
@media (max-width: 520px) { .soc-follow, .soc-card { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .soc-bubble { transition: none; } .soc-bubble:hover { transform: none; } }
@media (max-width: 700px) { .foot-bar { flex-direction: column; text-align: center; padding: 18px 16px 22px; } }

/* ---------- Page scaffolding ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 40px 20px 64px; }
.page.narrow { max-width: 780px; }
.page.center { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 90px; }
.eyebrow { margin: 0 0 10px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.page-title { text-align: center; font-size: clamp(32px, 4vw, 45px); font-weight: 700; margin: 6px 0 12px; }
.page-sub { text-align: center; color: var(--muted); margin: 0 auto 32px; font-size: 18px; max-width: 660px; }
.sub-title { text-align: center; font-size: 27px; font-weight: 700; margin: 56px 0 20px; }
.back-link { display: flex !important; width: max-content; margin: 0 auto 4px; color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--text); background: #fff; color: var(--text); font-size: 13px; font-weight: 800; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--text); color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost, .btn.glass { background: #fff; }
.btn.ghost:hover, .btn.glass:hover { background: var(--text); color: #fff; }
.btn.danger { background: #fff; border-color: var(--err); color: var(--err); }
.btn.danger:hover { background: var(--err); color: #fff; }
.btn.small { min-height: 34px; padding: 8px 12px; font-size: 12px; }
.btn.big { min-height: 50px; padding: 16px 24px; font-size: 14px; }
.btn.block { width: 100%; min-height: 50px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: #fff; color: var(--text); }
.btn.primary:disabled:hover { background: var(--red); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--red); font-weight: 700; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--err); }
.link.small { font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--panel); color: var(--text); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--text); text-align: left; }
.field small { font-weight: 400; color: var(--faint); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; color: var(--text); font-size: 16px; font-weight: 400; transition: border-color 0.15s, box-shadow 0.15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.12); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--sel); }
input[type="file"] { font-size: 14px; color: var(--muted); }
textarea { resize: vertical; }
input.full { width: 100%; }
.input-unit { position: relative; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--faint); pointer-events: none; font-size: 14px; }
.input-unit input { padding-right: 38px !important; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span2 { grid-column: 1 / -1; }
.form-error { margin: 12px 0; padding: 11px 14px; border-radius: var(--r-sm); background: var(--err-bg); border: 1px solid #f5c2bd; color: var(--err); font-weight: 600; font-size: 14px; text-align: center; }
.form-note { text-align: center; color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 2px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.tag-manual { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-muted { background: var(--panel); color: var(--muted); border-color: var(--line); }
.tag-warn { background: var(--err-bg); color: var(--err); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.messages { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.messages li { padding: 10px 14px 10px 38px; border-radius: var(--r-sm); font-size: 14px; position: relative; border: 1px solid transparent; }
.messages li::before { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: #fff; }
.messages .error { background: var(--err-bg); color: var(--err); border-color: #f5c2bd; }
.messages .error::before { content: "!"; background: var(--err); }
.messages .warning { background: var(--warn-bg); color: var(--warn); border-color: #f1d98f; }
.messages .warning::before { content: "!"; background: #c98a00; }
.messages .info { background: var(--info-bg); color: var(--info); border-color: #c4dbf7; }
.messages .info::before { content: "i"; background: var(--blue); }

/* ---------- Photo placeholders ---------- */
.ph { position: relative; display: grid; place-items: center; max-width: 100%; height: auto; overflow: hidden; border-radius: var(--r); background: #e4e4e4 repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.35) 14px 28px); border: 1px dashed #b9b9b9; color: #555; text-align: center; }
.ph-text { display: grid; gap: 2px; padding: 10px; font-size: 13px; line-height: 1.3; max-width: 92%; }
.ph-text strong { font-size: 14px; font-weight: 800; color: #444; }
.ph-img { display: block; max-width: 100%; height: auto; object-fit: cover; border-radius: var(--r); }
.ph-img.cutout { object-fit: contain; border-radius: 0; }

/* Liquid glass, used sparingly: a frosted light card for content over photos. */
.glass-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.8)); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 40px rgba(0, 0, 0, 0.22); }
.ph > .thumb { position: absolute; left: 14%; top: 10%; width: 72%; height: 64%; }
.ph:has(> .thumb) .ph-text { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0 auto; font-size: 12px; }
.ph:has(> .thumb) { background: #f0f0f0; }

/* ---------- Home ---------- */
.home { overflow-x: clip; }
.sec { max-width: 1180px; margin: 0 auto; padding: 88px 20px; text-align: center; }
.sec h2, .band-gray h2 { font-size: 45px; font-weight: 700; line-height: 1.15; margin: 0 auto 16px; max-width: 900px; text-wrap: balance; }
.sec .h-sm, .band-gray .h-sm { font-size: 32px; }
.sec-sub { max-width: 720px; margin: 0 auto 48px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.band-gray { background: var(--band); padding: 72px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.social-grid .ph-img { width: 176px; }

/* 2. Hero: full bleed, 855 tall */
.hero { position: relative; height: 855px; overflow: hidden; background: #2b2b2b; color: #fff; }
.hero .hero-media { position: absolute; inset: 0; width: 100% !important; height: 100%; aspect-ratio: auto !important; max-width: none; border: 0; border-radius: 0; background: #3b3b3b repeating-linear-gradient(135deg, transparent 0 22px, rgba(255, 255, 255, 0.04) 22px 44px); color: #bbb; }
.hero .hero-media .ph-text { position: absolute; left: 24px; bottom: 20px; text-align: left; max-width: 420px; }
.hero .hero-media .ph-text strong { color: #ddd; }
.hero img.hero-media { object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)); pointer-events: none; }
/* Liquid glass chips under the hero button */
.hero-chips { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-chips li, .hero-chips a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.hero-chips li { padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.2); }
.hero-copy { position: relative; z-index: 1; height: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero h1 { color: #fff; font-size: 72px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.hero h3 { color: #fff; font-size: 24px; font-weight: 400; line-height: 1.4; max-width: 760px; margin: 20px 0 32px; text-wrap: balance; }

/* 3. Capabilities: 4 columns of 230 wide tiles */
.cap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 230px); column-gap: 52px; row-gap: 56px; justify-content: center; }
.cap-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; height: 100%; }
.cap-grid .ph { margin-bottom: 12px; }
.cap-grid a:hover .ph { border-color: var(--red); }
.cap-grid strong { font-size: 20px; font-weight: 700; }
.cap-grid span:not(.ph-text):not(.ph-text *) { font-size: 15px; color: var(--muted); }
.cap-grid em, .examples-list em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ok); margin-top: auto; padding-top: 6px; }
.cap-grid em.manual { color: var(--warn); }

/* 4. Trusted by: logos scroll sideways, 108 x 50 each */
.trusted { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); max-width: 1140px; }
.trusted h2 { margin-bottom: 32px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 40px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee .ph { border-radius: 6px; }
.marquee .ph-text { padding: 4px; }
.marquee .ph-text strong { display: none; }
.marquee .ph-text span { font-size: 11px; font-weight: 700; line-height: 1.15; }
.marquee .ph-img { opacity: 0.7; transition: opacity 0.2s; }
.marquee .ph-img:hover { opacity: 1; }
.marquee ul { gap: 64px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .marquee li[aria-hidden="true"] { display: none; } }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { fill: #d6d6d6; }
.stars svg.on { fill: var(--star); }

/* 5. Pricing examples: 456 wide image, then title and three prices */
.examples-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; text-align: left; }
.examples-list > li { display: grid; grid-template-columns: 456px 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.examples-list > li:last-child { border-bottom: 1px solid var(--line); }
.ex-text h3 { font-size: 27.2px; font-weight: 700; }
.ex-text > p { margin: 6px 0 20px; color: var(--muted); }
.ex-prices { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0 0 20px; }
.ex-prices dt { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ex-prices dd { margin: 2px 0 0; font-size: 27.2px; font-weight: 700; color: #454d55; }
.ex-prices dd small { font-size: 14px; font-weight: 500; color: var(--muted); }
.ex-note { margin: -8px 0 18px !important; font-size: 14px; color: var(--warn) !important; }

/* 6. Materials: two columns, rows every 102px, 60 x 60 swatches */
.mat-cols { list-style: none; margin: 0 auto 40px; padding: 0; max-width: 1108px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 68px; text-align: left; }
.mat-cols li { display: flex; align-items: center; gap: 20px; min-height: 102px; border-bottom: 1px solid #eee; }
.mat-cols strong { display: block; font-size: 20px; font-weight: 700; }
.mat-cols small { display: block; font-size: 15px; color: var(--muted); }
.mat-cutout { width: 60px; height: 60px; flex: none; }
/* Material chip (until real sheet photos are in): flat tile with the metal's symbol and grade. */
.mat-swatch { flex: none; border-radius: 12px; object-fit: cover; }
.mat-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; background: color-mix(in srgb, var(--mat) 26%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mat) 55%, #fff); color: color-mix(in srgb, var(--mat) 35%, #1f2328); line-height: 1; }
.mat-chip b { font-size: 1.35em; font-weight: 800; letter-spacing: -0.02em; }
.mat-chip small { font-size: 0.7em; font-weight: 700; opacity: 0.75; }
/* Example part drawn flat, until the real part is photographed. */
.ex-draw { width: 456px; max-width: 100%; aspect-ratio: 456 / 300; padding: 40px; border-radius: 14px; background: #f3f4f6; }
.ex-draw .thumb .part { fill: color-mix(in srgb, var(--mat) 70%, #fff); stroke: color-mix(in srgb, var(--mat) 40%, #1f2328); stroke-width: 1.5; }

/* 7. Upload band */
.upload-band { border-top: 1px solid var(--line); max-width: 1140px; }
.badge-slot { display: flex; justify-content: center; margin-top: 28px; }
.g-badge { display: inline-flex; align-items: center; gap: 8px; width: 165px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); }
.g-badge strong { font-size: 20px; font-weight: 800; }
.g-badge > span { display: grid; line-height: 1.1; }
.g-badge small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.g-badge:hover { border-color: var(--text); }

/* 8. Lead time: 400 x 396 image left */
.lead-sec { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; max-width: 1140px; text-align: left; }
.lead-sec h2 { margin: 0 0 28px; text-align: left; }
.lead-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.lead-list li { display: flex; gap: 18px; align-items: flex-start; }
.lead-list li > span:last-child { color: var(--muted); }
.lead-list strong { display: block; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.lead-ic, .cta-ic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--red-tint); color: var(--red); }

/* 9. Reviews: frosted glass cards over a blurred shop photo */
.reviews { position: relative; overflow: hidden; isolation: isolate; padding: 96px 20px; background: #1d1d1f; }
.rev-bg { position: absolute; z-index: -1; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); max-width: none; object-fit: cover; filter: blur(20px) brightness(0.42) saturate(1.15); }
.rev-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.rev-summary { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px 24px; text-align: center; }
.rev-src { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--text); }
.rev-score { margin: 10px 0 0; font-size: 68px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.rev-based { margin: 2px 0 10px; color: var(--muted); font-size: 15px; }
.rev-bars { list-style: none; margin: 0 0 18px; padding: 0; width: 100%; display: grid; gap: 7px; }
.rev-bars li { display: grid; grid-template-columns: 10px 1fr 12px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rev-bars i { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.rev-bars b { display: block; height: 100%; border-radius: 4px; background: var(--star); }
.rev-summary .btn + .btn { margin-top: 8px; }
.fb-score { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; text-align: left; text-decoration: none; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.06); }
.fb-score:hover { border-color: #1877F2; }
.fb-score span { display: grid; line-height: 1.25; }
.fb-score strong { font-size: 16px; }
.fb-score small { font-size: 12px; color: var(--muted); }
.fb-rec { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #1877F2; }
.rev-summary .btn.glass { background: rgba(255, 255, 255, 0.5); }
.rev-summary .btn.glass:hover { background: var(--text); }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.reviews .reviews-head h2 { margin: 0; color: #fff; text-align: left; font-size: 40px; }
.rev-nav { display: flex; gap: 8px; }
.rev-nav .icon-btn { width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.rev-nav .icon-btn:hover { background: rgba(255, 255, 255, 0.24); }
.rev-track { list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rev-track::-webkit-scrollbar { display: none; }
.rev-card { scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; text-align: left; }
.rev-card header { display: flex; align-items: center; gap: 12px; width: 100%; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; }
.who { display: grid; min-width: 0; }
.who strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 12.5px; color: var(--muted); }
.rev-card .g-mark { margin-left: auto; flex: none; }
.rev-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.rev-card p.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.rev-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); transition: width 0.2s, background 0.2s; }
.rev-dots span.on { width: 22px; background: #fff; }
.lg-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--info-bg); color: var(--info); }

/* 10. Value props */
.values { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.values li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.values .ph { margin-bottom: 10px; }
.values strong { font-size: 20px; font-weight: 700; }
.values li > span { color: var(--muted); font-size: 15px; }

/* 11. FAQ (shared with the FAQ page) */
.faq { list-style: none; margin: 10px auto 24px; padding: 0; max-width: 860px; text-align: left; border-top: 1px solid var(--line); }
.faq li { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; }
.faq button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 4px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 18px; color: var(--text); }
.faq button:hover { color: var(--red); }
.faq p { margin: 0; padding: 0 4px 20px; color: var(--muted); }

/* 12. First project CTA: 284 x 284 image right */
.first-cta { display: grid; grid-template-columns: 1fr 284px; gap: 64px; align-items: center; max-width: 1000px; text-align: left; border-top: 1px solid var(--line); }
.first-cta h2 { text-align: left; margin: 0 0 10px; }
.first-cta > div > p { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.cta-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.cta-steps li { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.cta-steps strong { display: block; color: var(--text); font-size: 18px; }

/* 13. Disclaimer strip */
.disclaimer { background: var(--band-2); padding: 36px 20px; text-align: center; }
.disclaimer p { max-width: 900px; margin: 0 auto; font-size: 14px; color: var(--muted); }

/* 15. Our story on #ebebeb: 530 x 298 photo left */
.story-in { display: grid; grid-template-columns: 530px 1fr; gap: 56px; align-items: center; max-width: 1140px; margin: 0 auto; text-align: left; }
.story h2 { text-align: left; margin: 0 0 16px; }
.story p { margin: 0 0 14px; font-size: 17px; }

/* 17. Social grid: 176 x 176 */
.social-grid { list-style: none; margin: 0 auto 36px; padding: 0; display: grid; grid-template-columns: repeat(4, 176px); gap: 16px; justify-content: center; }
.social-grid a { display: block; }
.social-grid a:hover .ph { border-color: var(--red); }

.mat-cols li > a { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 102px; text-decoration: none; }
.mat-cols li > a:hover strong { color: var(--red); }

/* ---------- Content pages: services, materials, industries, work, about, contact ---------- */
.info { overflow-x: clip; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; display: flex; align-items: center; background: #222; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; filter: saturate(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1)); }
.page-hero-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 20px; }
.page-hero-card { position: relative; max-width: 620px; padding: 32px 36px; }
.page-hero-card h1 { font-size: 48px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.page-hero-card .eyebrow { text-align: left; }
.page-hero-sub { margin: 14px 0 0; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.page-hero-card .btn-row { margin-top: 20px; }
.page-hero-card .btn.glass { background: rgba(255, 255, 255, 0.55); }
.hero-cutout { position: absolute; right: 24px; top: 24px; width: 96px; height: 96px; }
.page-hero-card:has(.hero-cutout) { padding-right: 132px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a + a::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a:last-child { color: var(--text); }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; text-align: left; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.info-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); }
.info-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.info-card-text { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.info-card-text strong { font-size: 20px; font-weight: 700; }
.info-card-text > span { color: var(--muted); font-size: 15px; }
.info-card-text small { color: var(--faint); font-weight: 700; font-size: 13px; }
.mode-tag { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ok); margin-top: auto; padding-top: 6px; }
.mode-tag.manual { color: var(--warn); }
.mat-card-lg .mat-stage { display: grid; place-items: center; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 20%, #ffffff, #e9ecef); }
.mat-card-lg .mat-stage { background: #f3f4f6; }
.mat-card-lg .mat-surface { display: block; width: 100%; height: auto; object-fit: cover; }
.mat-card-lg .mat-stage .mat-swatch { width: 120px; height: 120px; border-radius: 18px; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; text-align: left; }
.detail-main > p { font-size: 17px; margin: 0 0 16px; }
.detail-main .lede { font-size: 20px; color: var(--text); }
.detail-main h2 { text-align: left; margin: 36px 0 14px !important; font-size: 27px !important; }
.spec-card { position: sticky; top: 90px; padding: 24px; display: grid; gap: 10px; }
.spec-card h3 { font-size: 20px; }
.spec-card dl { margin: 6px 0 8px; display: grid; gap: 10px; }
.spec-card dl > div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.spec-card dt { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.spec-card dd { margin: 0; font-size: 15px; }
.spec-card .mode-tag { margin: 0; padding: 0; }
.about-fig { margin: 4px 0 8px; }
.about-fig img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.about-fig figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tick-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; font-size: 16px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chip-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff; }
.glass-flat { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.related { padding-top: 0; }
.related h2 { margin-bottom: 24px; }
.mat-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mat-row a { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.mat-row a:hover { border-color: var(--text); }
.mat-row .mat-swatch { width: 44px !important; height: 44px !important; font-size: 0.75em !important; border-radius: 999px; }

.industries { display: grid; gap: 72px; text-align: left; }
.ind-row { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 48px; align-items: center; }
.ind-row.flip > img { order: 2; }
.ind-row > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.ind-row h2 { text-align: left; margin: 0 0 12px !important; }
.ind-row p { font-size: 17px; color: var(--muted); margin: 0 0 16px; }

.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 1; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.work-grid figure:hover img { transform: scale(1.05); }
.glass-chip { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--text); background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 20px rgba(0, 0, 0, 0.18); }
.glass-chip strong { font-size: 14px; }
.glass-chip span { font-size: 12.5px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: stretch; text-align: left; }
.pay-lock { display: inline-flex; vertical-align: -1px; }
.due-now { font-weight: 700; }
.contact-grid .shop-front { grid-column: 1 / -1; margin: 0; }
.shop-front img { aspect-ratio: 5 / 2; }
.contact-card { padding: 28px; display: grid; gap: 16px; align-content: start; background: linear-gradient(180deg, #ffffff, #f6f7f8); }
.contact-card h2 { text-align: left; margin: 0 !important; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--red-tint); color: var(--red); }
.contact-list span { display: grid; }
.contact-list strong { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 17px; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.map { width: 100%; min-height: 420px; border: 0; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); }

/* Why Cundiff: frosted cards over a blurred photo of our laser */
.why { position: relative; isolation: isolate; overflow: hidden; padding: 88px 20px; background: #1b1b1d; text-align: center; }
.why-bg { position: absolute; z-index: -1; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(16px) brightness(0.45) saturate(1.1); }
.why-in { max-width: 1180px; margin: 0 auto; }
.why h2 { color: #fff; font-size: 45px; font-weight: 700; margin-bottom: 10px; }
.why-sub { color: rgba(255, 255, 255, 0.78); font-size: 18px; margin: 0 0 40px; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.why-grid li { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; }
.why-grid strong { font-size: 19px; }
.why-grid li > span:not(.why-ic) { color: var(--muted); font-size: 15px; flex: 1; }
.why-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--red-tint); color: var(--red); margin-bottom: 4px; }

/* Big parts */
.size-wrap { padding: 20px; margin-bottom: 24px; }
.size-diagram { width: 100%; height: auto; display: block; }
.size-diagram .bed { fill: #f1f4f7; stroke: #1a1a1a; stroke-width: 2; }
.size-diagram .sheet { fill: rgba(31, 111, 209, 0.08); stroke: var(--blue); stroke-width: 2; stroke-dasharray: 8 6; }
.size-diagram .small { fill: rgba(227, 27, 27, 0.08); stroke: var(--red); stroke-width: 2; }
.size-diagram .lbl { font: 600 15px var(--font); fill: var(--text); }
.size-diagram .lbl.strong { font-weight: 800; font-size: 17px; }
.size-diagram .lbl.muted { fill: var(--muted); font-weight: 500; }
.stat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-row li { display: grid; gap: 4px; padding: 20px; text-align: center; background: linear-gradient(180deg, #ffffff, #f4f6f8); }
.stat-row strong { font-size: 30px; font-weight: 800; }
.stat-row span { color: var(--muted); font-size: 14px; }

/* Service area */
.city-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.city-card { position: relative; display: grid; gap: 4px; padding: 20px 44px 20px 20px; text-decoration: none; background: linear-gradient(180deg, #ffffff, #f4f6f8); transition: transform 0.2s, box-shadow 0.2s; }
.city-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14); }
.city-card strong { font-size: 20px; }
.city-card span { color: var(--muted); font-size: 14px; }
.city-card .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--red); }
.city-links { margin-top: 28px; }

.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: 88px 20px; display: grid; place-items: center; background: #2a2a2a; }
.cta-band-bg { position: absolute; z-index: -1; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(14px) brightness(0.5); }
.cta-band-card { max-width: 720px; padding: 40px; text-align: center; }
.cta-band-card h2 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.cta-band-card p { margin: 0 0 22px; font-size: 18px; color: var(--muted); }

/* ---------- Quote start (#/quote) ---------- */
.q-flow { max-width: 680px; }
.q-flow .back-link { display: inline-flex; margin-bottom: 8px; }
.q-tiles { display: grid; gap: 12px; margin-top: 24px; }
.q-tile { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.q-tile:hover, .q-tile:focus-visible { border-color: var(--red); box-shadow: var(--shadow); }
.q-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r); color: var(--red); background: var(--red-tint); }
.q-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.q-text strong { font-size: 20px; font-weight: 700; line-height: 1.25; }
.q-text span { font-size: 16px; line-height: 1.4; color: var(--muted); }
.q-go { flex: none; display: grid; color: var(--muted); }
.q-tile:hover .q-go { color: var(--red); }
.q-help { margin: 24px 0 0; font-size: 17px; text-align: center; color: var(--muted); }
.q-help a { color: var(--text); font-weight: 700; white-space: nowrap; }
.q-note { margin: 18px 0 0; padding: 14px 16px; font-size: 16px; line-height: 1.45; background: var(--panel); border-left: 4px solid var(--red); border-radius: 4px; }
.q-flow .dropzone { margin-top: 24px; }
@media (max-width: 600px) {
  .q-tile { gap: 12px; padding: 14px; }
  .q-icon { width: 44px; height: 44px; }
  .q-text strong { font-size: 18px; }
}

/* Drop zone */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto; padding: 44px 24px 30px; text-align: center; cursor: pointer; background: var(--panel); border: 2px dashed var(--line-2); border-radius: var(--r); transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--red); background: #fff; }
.dropzone.compact { flex-direction: row; justify-content: center; padding: 14px; }
.dropzone.compact .dz-title { font-size: 16px; margin: 0; }
.dz-icon { width: 60px; height: 60px; border-radius: var(--r); display: grid; place-items: center; background: var(--red-tint); color: var(--red); }
.dz-title { margin: 4px 0 0; font-size: 24px; font-weight: 700; color: var(--text); }
.file-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 8px; }
.chip-file { padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.dz-safe { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.dz-corners { display: none; }

.upload-cards { list-style: none; max-width: 900px; margin: 14px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; text-align: left; }
.upload-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.upload-card.error, .upload-card.bad { border-color: #f0a39b; }
.uc-thumb { width: 64px; height: 52px; flex: none; display: grid; place-items: center; color: var(--muted); }
.uc-text { flex: 1; min-width: 0; display: grid; }
.uc-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-text small { color: var(--muted); }
.uc-text .err { color: var(--err); }

.path-icon, .svc-icon { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; color: var(--red); background: var(--red-tint); margin-bottom: 4px; }
.recent { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.recent a { display: grid; gap: 8px; padding: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.recent a:hover { border-color: var(--text); }
.recent span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .thumb { height: 90px; }

/* Part drawings on light backgrounds */
.thumb { width: 100%; height: 100%; display: block; }
.thumb .part, .viewer2d .part { fill: #c9ced4; fill-rule: evenodd; stroke: #2b2f33; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.thumb .open, .viewer2d .open { fill: none; stroke: var(--err); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ---------- AI builder ---------- */
.ai-page { max-width: 860px; }
.ai-box { padding: 18px 18px 14px 56px; text-align: left; }
.ai-box textarea { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 4px 0 !important; font-size: 18px !important; resize: none; }
.ai-box.small { padding: 12px; display: grid; gap: 10px; }
.ai-box.small textarea { border: 1px solid var(--line-2) !important; background: #fff !important; padding: 10px 12px !important; font-size: 16px !important; resize: vertical; }
.ai-mark { position: absolute; left: 18px; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); }
.ai-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip-btn:hover { border-color: var(--text); }
.ai-attached { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ai-attached img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.send-btn { width: 44px; height: 44px; border-radius: var(--r); border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send-btn:hover { background: var(--red-dark); }
.send-btn:disabled { background: var(--line); color: var(--faint); cursor: not-allowed; }
.ai-progress { margin-top: 12px; }
.bar { height: 6px; border-radius: 3px; background: var(--band); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--red); transition: width 0.6s ease; }
.ai-progress p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ai-msg { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--info-bg); border: 1px solid #c4dbf7; color: var(--info); font-size: 14px; text-align: left; }
.ai-msg .icon { margin-top: 2px; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 16px; }
.example { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; text-align: center; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.example:hover:not(:disabled) { border-color: var(--text); box-shadow: var(--shadow); }
.example .thumb { height: 110px; margin-bottom: 6px; }
.example span { font-size: 13px; color: var(--muted); flex: 1; }
.example em { font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2px; color: var(--red); }
.ai-prompt { margin: 0 0 12px; padding: 10px 14px; background: var(--panel); border-left: 3px solid var(--red); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--muted); }
.ai-prompt p { margin: 0; }
.ai-refine h3 { margin-bottom: 10px; }
.ai-refine .ai-msg { margin-bottom: 12px; }

/* ---------- Templates ---------- */
.templates { display: grid; grid-template-columns: 1fr 290px; gap: 24px; max-width: 1240px; padding: 32px 20px 56px; }
.tpl-main { min-width: 0; }
.tpl-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tpl-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.tpl-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.tpl-card .thumb { height: 110px; margin-bottom: 8px; }
.tpl-card strong { font-size: 16px; }
.tpl-card span { font-size: 13px; color: var(--muted); }
.tpl-bend { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 700; display: flex; gap: 3px; align-items: center; color: var(--info); background: var(--info-bg); padding: 2px 7px; border-radius: 4px; }
.tpl-side { position: sticky; top: 16px; align-self: start; padding: 22px 16px; text-align: center; }
.tpl-side h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.cat-nav { display: grid; gap: 2px; }
.cat-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--muted); }
.cat-nav a:hover { background: #fff; color: var(--text); }
.cat-nav a.on { background: #fff; color: var(--text); font-weight: 800; box-shadow: inset 3px 0 0 var(--red); }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ai-promo { padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.ai-promo strong { display: block; margin: 8px 0 2px; }
.ai-promo p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tpl-side .ai-promo + .ai-promo { margin-top: 12px; }

/* ---------- Sign builder ---------- */
.sign-page { max-width: 1280px; }
/* ---------- Design catalog ---------- */
.design-catalog { max-width: 1280px; }
.dc-tools { display: grid; gap: 14px; margin: 0 0 18px; }
.dc-search { display: flex; align-items: center; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--muted); }
.dc-search input { border: 0 !important; box-shadow: none !important; padding: 12px 0 !important; background: transparent !important; }
.dc-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dc-cats a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.dc-cats a:hover { border-color: var(--line-2); }
.dc-cats a.on { border-color: var(--sel); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel); color: var(--ink); }
.dc-blurb { text-align: center; color: var(--muted); margin: 0 0 18px; }
.dc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.dc-card { display: grid; gap: 6px; height: 100%; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; text-decoration: none; color: var(--text); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; align-content: start; }
.dc-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.dc-card strong { font-size: 16px; color: var(--ink); }
.dc-card > span:not(.dc-thumb) { font-size: 13px; color: var(--muted); }
.dc-thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: #33363b radial-gradient(circle, #474b51 1px, transparent 1.2px) 0 0 / 14px 14px; }
.dc-thumb img, .dc-thumb svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.dc-thumb img { filter: invert(0.75); }
.dc-thumb.light { background: var(--panel); }
.dc-thumb.sign img { filter: none; }
.dc-tag { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--sel-bg); font-size: 12px; font-style: normal; font-weight: 700; color: var(--muted); }
.dc-more { margin: 40px auto 0; max-width: 640px; text-align: center; }
.dc-more p { color: var(--muted); }
.dp-width { margin-top: 10px; }
.dp-width .sign-size { width: 120px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 10px; cursor: pointer; }
.design-page .sign-line { margin-bottom: 0; }

.sign-templates { margin: 0 0 28px; }
.sign-templates h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sign-templates ul { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.sign-templates li { scroll-snap-align: start; }
.sign-templates button { display: grid; gap: 6px; width: 100%; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text); text-align: center; }
.sign-templates button:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sign-templates button.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.st-thumb { display: grid; place-items: center; height: 76px; padding: 8px; border-radius: var(--r-sm); background: #33363b; }
.st-thumb img { max-width: 100%; max-height: 60px; display: block; }
.sign-curve { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sign-curve input[type="range"] { flex: 1; padding: 0 !important; border: 0 !important; accent-color: var(--sel); }
.sign-curve .link { min-width: 76px; text-align: right; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); }
.sign-curve .link:disabled { cursor: default; color: var(--muted); }
.sign-letter-art { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.sign-letter-art > span:nth-child(2) { flex: 1; min-width: 0; }
.sign-letter-art .link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.sign-art-row { display: grid; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.sign-art-row strong { flex: 1; min-width: 0; font-size: 15px; }
.art-thumb { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: var(--panel); }
.art-thumb img { width: 32px; height: 32px; object-fit: contain; }
.small-seg button { padding: 6px 4px; font-size: 13px; }
.art-library { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.art-library h3 { margin: 4px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.art-library ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.art-library ul button { display: grid; justify-items: center; gap: 6px; width: 100%; height: 100%; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text); }
.art-library ul button:hover { border-color: var(--sel); background: var(--sel-bg); }
.art-library img { height: 64px; width: 100%; object-fit: contain; }
.art-credit { margin: 4px 0 0; font-size: 11px; color: var(--faint); }
.art-credit a { color: inherit; }
.sign-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
.sign-stage { position: sticky; top: 90px; display: grid; gap: 14px; }
.sign-canvas { position: relative; display: grid; place-items: center; min-height: 380px; padding: 28px; border-radius: var(--r); border: 1px solid #25282c; background: #33363b radial-gradient(circle, #474b51 1px, transparent 1.2px) 0 0 / 18px 18px; }
.sign-canvas svg { width: 100%; max-height: 520px; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.sign-canvas .spinner { border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }
.sign-empty { color: #d6d9dc !important; }
.sign-canvas.busy svg { opacity: 0.75; transition: opacity 0.15s; }
.sign-canvas .spot.metal { stroke: #ff4d4d; }
.sign-canvas .spot.gap { stroke: #5aa9ff; }
.sign-busy { position: absolute; top: 12px; right: 12px; }
.sign-empty { color: var(--muted); }
.sign-dims { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 0; font-size: 15px; }
.sign-dims strong { font-size: 18px; color: var(--ink); }
.sign-dims span { flex: 1; min-width: 200px; color: var(--muted); }
.sign-quick-price { font-size: 22px; font-weight: 800; color: var(--ink); }
.sign-quick-price small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; line-height: 1; }
.sign-status { display: grid; gap: 14px; }
.look-more { justify-content: flex-start; margin: 0; gap: 8px; }
.look-more .chip-btn { text-decoration: none; color: var(--text); }
.age-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.age-btn { padding: 8px 14px; border: 1px solid rgba(220, 38, 38, 0.55); border-radius: 999px; background: #fff; color: #b91c1c; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 0 10px rgba(220, 38, 38, 0.38); transition: box-shadow 0.15s; }
.age-btn:hover { box-shadow: 0 0 16px rgba(220, 38, 38, 0.6); }
.age-note { font-size: 13px; color: var(--muted); }
.sign-step { display: grid; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sign-step h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; font-weight: 800; }
.step-hint { margin: 0; font-size: 15px; color: var(--muted); }
.sign-sub { display: grid; gap: 8px; margin-top: 6px; }
.sign-sub h3 { margin: 0; font-size: 16px; font-weight: 700; }
.sign-sub .check-row { margin: 4px 0 0; }
.sign-curve b { min-width: 44px; text-align: right; color: var(--text); }
.sign-curve > span { min-width: 88px; }
.look-tabs button { padding: 7px 2px; font-size: 13px; }
.look-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.look-tile { display: grid; gap: 6px; width: 100%; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text); text-align: center; }
.look-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.look-tile.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.look-thumb { display: grid; place-items: center; height: 118px; padding: 8px; border-radius: var(--r-sm); background: #33363b; overflow: hidden; }
.look-thumb svg, .look-thumb img { max-width: 100%; max-height: 102px; width: 100%; height: 102px; display: block; }
.art-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.art-tabs button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.art-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sign-art-row .chip-btn { padding: 5px 9px; }
/* Fiery liquid glass, so the art swap is the first thing you see. */
.fire-glass { position: relative; flex: none; overflow: hidden; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 224, 170, 0.85); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.01em; text-shadow: 0 1px 2px rgba(110, 10, 0, 0.75); cursor: pointer; background: linear-gradient(140deg, rgba(255, 196, 70, 0.92) 0%, rgba(255, 106, 20, 0.94) 48%, rgba(204, 24, 10, 0.96) 100%); -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -7px 12px rgba(130, 8, 0, 0.4), 0 4px 14px rgba(255, 84, 10, 0.5), 0 0 20px rgba(255, 130, 30, 0.35); animation: fire-breathe 2.6s ease-in-out infinite; transition: transform 0.12s; }
.fire-glass::before { content: ""; position: absolute; inset: 0; background: radial-gradient(85% 60% at 50% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.fire-glass:hover { transform: translateY(-1px) scale(1.03); }
.fire-glass[aria-expanded="true"] { filter: saturate(1.25) brightness(1.08); }
@keyframes fire-breathe { 0%, 100% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -7px 12px rgba(130, 8, 0, 0.4), 0 4px 14px rgba(255, 84, 10, 0.5), 0 0 16px rgba(255, 130, 30, 0.3); } 50% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -7px 12px rgba(130, 8, 0, 0.4), 0 4px 18px rgba(255, 84, 10, 0.65), 0 0 28px rgba(255, 150, 40, 0.6); } }
@media (prefers-reduced-motion: reduce) { .fire-glass { animation: none; } }
.look-tabs button { white-space: nowrap; }
.sign-art-row .chip-btn[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel); }
.sign-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sign-notes li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sel-bg); font-size: 13px; color: var(--muted); }
.sign-notes li.warn { background: var(--warn-bg); color: var(--warn); }
.cut-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; }
.cut-check > div { flex: 1; min-width: 0; }
.cut-check p { margin: 4px 0 0; font-size: 14px; }
.cut-check .btn-row { margin-top: 10px; justify-content: flex-start; }
.cut-check.ok { background: var(--ok-bg); border-color: #b5dcc0; color: var(--ok); }
.cut-check.ok p { color: var(--text); }
.cut-check.bad { background: var(--warn-bg); border-color: #f0d38a; color: var(--warn); }
.cut-check.bad p { color: var(--text); }
.cut-check.muted-card { background: var(--panel); border-color: var(--line); color: var(--text); }
.cut-check.muted-card .spinner { width: 18px; height: 18px; margin: 0; }
.cut-check .spinner { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.cut-check .key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid; vertical-align: -1px; }
.cut-check .key.metal { border-color: #ff4d4d; }
.cut-check .key.gap { border-color: #5aa9ff; }
.sign-controls { display: grid; gap: 22px; }
.sign-controls fieldset { margin: 0; }
.sign-line { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.sign-line-top { display: flex; gap: 8px; align-items: center; }
.sign-line-top > input { flex: 1; font-weight: 700; }
.sign-size { position: relative; flex: none; width: 92px; }
.sign-size input { padding-right: 28px !important; }
.sign-size span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.font-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.font-chips button { padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--text); cursor: pointer; line-height: 1.3; }
.font-chips button:hover { border-color: var(--line-2); }
.font-chips button.on { border-color: var(--sel); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel); color: var(--ink); }
.font-chips button.weak { opacity: 0.4; border-style: dashed; }
.font-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.fix-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fix-list p { flex-basis: 100%; margin: 0; }
.send-anyway { display: grid; gap: 6px; }
.send-anyway p { margin: 0; text-align: center; }
.sign-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sign-style { display: grid; gap: 4px; justify-items: start; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; color: var(--text); }
.sign-style svg { width: 64px; height: 32px; color: #8a8f96; margin-bottom: 4px; }
.sign-style strong { font-size: 15px; }
.sign-style span { font-size: 13px; color: var(--muted); }
.sign-style.on { border-color: var(--sel); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--sel); }
.sign-style.on svg { color: var(--ink); }
.sign-metal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 10px; }
.sign-metal legend { grid-column: 1 / -1; }
.sign-metal .field { margin: 0; }
.sign-price { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.sign-price p { margin: 0; }
.sign-price-main { font-size: 15px; color: var(--muted); }
.sign-price-main span { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-right: 6px; }
.sign-price-more { font-size: 14px; color: var(--muted); }
.estimate-note { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.btn.block { width: 100%; justify-content: center; }
.sign-edit { display: grid; gap: 14px; justify-items: start; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- Wizard (app.sendcutsend.com style: white work area, light gray rails) ---------- */
.wizard { display: grid; grid-template-rows: auto 1fr auto; gap: 0; height: calc(100vh - 70px); padding: 0; max-width: none; margin: 0; }
.wizard-top { display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.wiz-name { font-weight: 700; text-decoration: none; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.stepper { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: flex-start; gap: 0; }
.stepper li { position: relative; display: block; }
.stepper li + li::before { content: ""; position: absolute; left: -32px; top: 14px; width: 64px; border-top: 1px solid var(--line-2); }
.stepper button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; width: 132px; height: auto; padding: 2px 4px; border: 0; background: none; cursor: pointer; color: inherit; }
.stepper button:disabled { cursor: default; }
.stepper .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--faint); background: #fff; border: 1px solid var(--line-2); }
.stepper .lbl { font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 128px; text-transform: uppercase; letter-spacing: 0.02em; }
.stepper .current .dot { background: var(--red); color: #fff; border-color: var(--red); }
.stepper .current .lbl { color: var(--text); font-weight: 800; }
.stepper .done .dot { background: var(--text); color: #fff; border-color: var(--text); }
.stepper .done .lbl { color: var(--muted); }
.wizard-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr) 300px; gap: 0; min-height: 0; }
.wiz-view { padding: 16px; overflow: auto; border-right: 1px solid var(--line); }
.wiz-step { padding: 24px 28px 32px; overflow: auto; border: 0; border-radius: 0; }
.wiz-step h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; text-align: center; }
.wiz-step > div > .muted, .services > .muted { text-align: center; }
.price-panel { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.wizard-bar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #fff; border-top: 1px solid var(--line); }

/* Viewer */
.part-viewer { position: relative; height: min(58vh, 540px); min-height: 300px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background-color: #fbfbfb; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 24px); }
.part-viewer.expanded { position: fixed; inset: 16px; height: auto; z-index: 60; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5); }
.pv-stage { position: absolute; inset: 0; }
.viewer2d { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.viewer2d:active { cursor: grabbing; }
.viewer2d.measuring { cursor: crosshair; }
.viewer2d .grid { stroke: rgba(0, 0, 0, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.viewer2d .grid.major { stroke: rgba(0, 0, 0, 0.13); }
.viewer2d .open-end { fill: var(--err); }
.viewer2d .bend { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 7 4; vector-effect: non-scaling-stroke; }
.viewer2d .bend-label { fill: var(--blue); font-weight: 700; }
.viewer2d .hole { fill: transparent; stroke: none; vector-effect: non-scaling-stroke; }
.viewer2d .hole.clickable { cursor: pointer; }
.viewer2d .hole.clickable:hover { fill: rgba(227, 27, 27, 0.18); stroke: var(--red); stroke-width: 2; }
.viewer2d .hole.tap { fill: rgba(31, 111, 209, 0.22); stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 2; }
.viewer2d .hole.countersink { fill: rgba(130, 70, 200, 0.2); stroke: #7a3fc4; stroke-width: 3; }
.viewer2d .hole.selected { stroke: var(--red); stroke-width: 3; }
.viewer2d .dims path { stroke: rgba(0, 0, 0, 0.5); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.viewer2d .dims text, .viewer2d .measure text { fill: var(--ink); font-weight: 700; }
.viewer2d .dim-bg { fill: rgba(255, 255, 255, 0.92); }
.viewer2d .snap { fill: none; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.viewer2d .measure line { stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; }
.viewer2d .measure circle { fill: var(--red); }
.viewer2d .measure-bg { fill: #fff; stroke: var(--red); stroke-width: 1; vector-effect: non-scaling-stroke; }
.viewer2d .measure .sub { font-weight: 400; fill: var(--muted); }
.viewer3d { position: absolute; inset: 0; }
.viewer3d canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer-error { position: absolute; inset: auto 0 45% 0; text-align: center; color: var(--muted); }
.pv-mode { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; padding: 2px; gap: 0; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.pv-mode button { border: 0; background: none; padding: 6px 16px; border-radius: var(--r-sm); font-weight: 800; font-size: 13px; cursor: pointer; color: var(--muted); }
.pv-mode button.on { background: var(--text); color: #fff; }
.pv-tools { position: absolute; right: 10px; top: 10px; display: grid; gap: 2px; padding: 4px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.pv-tools button { width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.pv-tools button:hover { background: var(--panel); color: var(--text); }
.pv-tools button.on { background: var(--text); color: #fff; }
.pv-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: var(--r-sm); background: var(--text); color: #fff; font-size: 12px; white-space: nowrap; }
.pv-info { position: absolute; left: 10px; top: 10px; bottom: 56px; width: 250px; overflow: auto; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pv-info h4 { font-size: 15px; margin-bottom: 10px; word-break: break-word; }
.pv-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 13px; }
.pv-info dt { color: var(--muted); }
.pv-info dd { margin: 0; font-size: 13px; font-weight: 600; word-break: break-word; }
.pv-info dd small { display: block; color: var(--faint); font-weight: 400; }
.size-fit { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.size-fit .icon { flex: none; margin-top: 2px; }
.size-fit.big { padding: 10px 14px; background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe0c8; border-radius: var(--r-sm); font-size: 14px; }
.size-fit.big a { color: inherit; font-weight: 600; }
.units-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 12px; background: var(--info-bg); border: 1px solid #c4dbf7; border-radius: var(--r-sm); color: var(--info); font-weight: 600; font-size: 14px; text-align: center; }

/* Step content */
.tabs { display: flex; justify-content: center; gap: 0; margin: -6px auto 20px; padding: 2px; width: max-content; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: none; border-radius: var(--r-sm); font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--text); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.params h3 { margin-bottom: 2px; }
.params > .muted { margin: 0 0 18px; text-align: center; }
.bend-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.bend-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; }
.bend-list li span:first-child { flex: 1; }
.bend-list small { color: var(--faint); }
.bend-add { display: grid; gap: 10px; padding: 16px; background: var(--panel); }
.bend-add .field { margin: 0; }
.bend-add .btn { justify-self: center; }
.bend-editor > .muted { text-align: center; }

.mat-list, .thick-list, .radio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mat-card { width: 100%; display: flex; align-items: center; gap: 0; padding: 0; text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.15s; }
.mat-card:hover, .mat-card.on { border-color: var(--text); }
.mat-card.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.mat-card .icon { margin: 0 16px; color: var(--faint); }
.swatch { width: 66px; align-self: stretch; min-height: 62px; flex: none; }
.swatch.big { width: 60px; height: 60px; border-radius: var(--r); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.mat-text { flex: 1; display: grid; padding: 11px 14px; }
.mat-text small { color: var(--muted); }
.mat-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 0 18px; text-align: center; }
.mat-head h3 { margin: 0; }
.mat-head p { margin: 2px 0 0; }
.thick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; }
.thick:hover { border-color: var(--text); }
.thick.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; background: #fff; }
.on > .radio { border: 5px solid var(--sel); }
.thick-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.thick-text small { color: var(--muted); }
/* Liquid glass bubble. San Francisco shows on Apple devices; everyone else gets light Inter Tight. */
.thick-bubble { position: relative; flex: none; align-self: stretch; width: 104px; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; overflow: hidden; border-radius: 18px; color: var(--text); text-align: center; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", sans-serif; background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(226, 232, 240, 0.55) 45%, rgba(203, 213, 225, 0.5) 100%); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.1), inset 0 1px 1px rgba(255, 255, 255, 1), inset 0 -8px 14px rgba(148, 163, 184, 0.18); }
.thick-bubble::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.thick-bubble b, .thick-bubble small { position: relative; }
.thick-bubble b { font-size: 28px; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.thick-bubble small { font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) {
  .thick { gap: 10px; padding: 10px 10px 10px 12px; }
  .thick-bubble { width: 86px; border-radius: 16px; }
  .thick-bubble b { font-size: 23px; }
}
.pick-tag { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-tag:not(:empty) { margin-top: 4px; }
.coat-thicker { display: inline-block; margin: 6px 0 0 16px; }

.svc { margin-bottom: 10px; padding: 14px 16px; }
.svc.disabled { opacity: 0.7; }
.svc-head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.svc-head > span:nth-child(2) { flex: 1; display: grid; }
.svc-head small { color: var(--muted); font-weight: 400; }
.svc-head input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.svc-count { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.svc-num { width: 64px !important; text-align: center; flex: none; padding: 6px !important; }
.svc-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.svc .bend-editor { margin-top: 12px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.radio-row:hover { border-color: var(--text); }
.radio-row.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.radio-row input { width: 17px; height: 17px; flex: none; }
.radio-row > span { flex: 1; display: grid; }
.radio-row small { color: var(--muted); }
.radio-row.disabled { opacity: 0.6; cursor: not-allowed; }
.radio-row.disabled:hover { border-color: var(--line, currentColor); }
.warn-note { margin: 8px 0 16px; color: var(--muted); }
.finishing h3 { margin: 4px 0 12px; }
.finishing .radio-list { margin-bottom: 24px; }

.pop-backdrop { position: fixed; inset: 0; z-index: 70; }
.popover { position: fixed; z-index: 71; width: 300px; padding: 16px; display: grid; gap: 12px; }
.pop-head { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pop-head small { color: var(--faint); }
.pop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.pop-list li { display: flex; align-items: center; gap: 8px; }
.pop-list li > button:first-child { flex: 1; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-weight: 600; }
.pop-list li > button:first-child:hover { border-color: var(--text); }
.pop-list li > button.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.pop-note { margin: 0; font-size: 13px; color: var(--warn); background: var(--warn-bg); padding: 10px 12px; border-radius: var(--r-sm); }

/* Price panel (right rail) */
.price-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px 16px; overflow: auto; text-align: center; }
.price-panel.empty { justify-content: flex-start; color: var(--muted); }
.price-panel.empty > .icon { margin-top: 30px; }
.pp-wait { font-weight: 700; color: var(--text); margin: 18px 0 0; }
.pp-note { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty > button { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; }
.qty > button:hover:not(:disabled) { border-color: var(--text); }
.qty > button:disabled { opacity: 0.35; cursor: default; }
.qty label { position: relative; }
.qty label span { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 0 5px; font-size: 10px; font-weight: 800; line-height: 1.6; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.qty input { width: 100px !important; text-align: center; font-size: 17px !important; font-weight: 700 !important; }
.pp-each { display: grid; gap: 4px; margin-top: 4px; }
.pp-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pp-each strong { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.pp-details-toggle { border: 0; background: none; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.chev { display: inline-block; transform: rotate(90deg); transition: transform 0.15s; }
.chev.up { transform: rotate(-90deg); }
.pp-details { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; font-size: 13px; text-align: left; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pp-details dt { color: var(--muted); }
.pp-details dd { margin: 0; text-align: right; font-weight: 600; }
.pp-ladder { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.pp-ladder th { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; text-align: right; background: var(--band-2); }
.pp-ladder th:first-child, .pp-ladder td:first-child { text-align: left; }
.pp-ladder td { padding: 8px 10px; text-align: right; border-top: 1px solid #eee; }
.pp-ladder td:last-child { color: var(--ok); font-weight: 700; }
.pp-ladder tbody tr { cursor: pointer; }
.pp-ladder tbody tr:hover td { background: var(--panel); }
.pp-ladder tr.on td { background: var(--sel-bg); color: var(--text); font-weight: 800; }
.pp-manual { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-bg); border: 1px solid #f1d98f; color: var(--warn); font-size: 13px; text-align: left; }
.pp-sub { display: grid; gap: 4px; margin-top: 4px; }
.pp-sub span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pp-sub strong { font-size: 26px; font-weight: 800; }
.pp-arrive { margin-top: auto; width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pp-arrive strong { color: var(--text); }
.pp-arrive .icon { color: var(--red); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.5); display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; text-align: center; }
.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; padding: 0 30px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: var(--panel); border-radius: var(--r-sm); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--band); }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.added { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0; }
.added h3 { padding: 0; margin: 0; }
.added-check, .done-check { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.added-actions { display: grid; gap: 10px; width: 100%; }
.copy-row { display: flex; gap: 8px; }

/* ---------- Library ---------- */
.library { display: grid; grid-template-columns: 260px 1fr; gap: 24px; max-width: 1400px; padding: 28px 20px 56px; }
.lib-side { position: sticky; top: 16px; align-self: start; padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.lib-side h1 { font-size: 27px; font-weight: 700; text-align: center; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 36px !important; }
.folders-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.folder-nav { display: grid; gap: 2px; }
.folder-nav button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-align: left; color: var(--muted); }
.folder-nav button em { margin-left: auto; font-style: normal; font-size: 12px; }
.folder-nav button:hover { background: #fff; color: var(--text); }
.folder-nav button.on { background: #fff; color: var(--text); font-weight: 800; box-shadow: inset 3px 0 0 var(--red); }
.side-links { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.side-links a { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.lib-side > .muted { text-align: center; }
.lib-main { min-width: 0; }
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.lib-bar .muted { font-size: 14px; }
.lib-main > .dropzone.compact { margin-bottom: 14px; max-width: none; }
.small-select { width: auto !important; padding: 7px 12px !important; font-size: 14px !important; }
.empty-state { display: grid; place-items: center; gap: 12px; padding: 60px 0; color: var(--muted); }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lib-card { display: flex; flex-direction: column; text-align: center; }
.lib-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.lib-card.picked { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
.pick { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pick input { width: 17px; height: 17px; }
.lib-thumb { height: 150px; padding: 18px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); border-radius: var(--r) var(--r) 0 0; cursor: pointer; }
.lib-text { padding: 12px 14px 4px; display: grid; gap: 3px; }
.lib-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-text small { color: var(--muted); font-size: 13px; }
.lib-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; min-height: 24px; }
.lib-price { font-size: 15px; font-weight: 800; }
.lib-actions { position: relative; display: flex; gap: 6px; align-items: center; padding: 10px 14px 14px; margin-top: auto; }
.lib-actions .btn { flex: 1; }
.menu { position: absolute; right: 8px; bottom: 54px; z-index: 5; min-width: 200px; padding: 6px; display: grid; text-align: left; }
.menu > button, .menu-select { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-align: left; font-size: 14px; color: var(--text); }
.menu > button:hover { background: var(--panel); }
.menu .danger { color: var(--err); }
.menu-select select { padding: 5px 8px !important; font-size: 13px !important; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; max-width: 1400px; padding: 28px 20px 56px; }
.cart-items { min-width: 0; }
.cart-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.cart-head h1 { font-size: 32px; font-weight: 700; }
.cart-head .spacer { display: none; }
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cart-line.picked { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); }
.cl-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cl-head strong { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-head input { width: 17px; height: 17px; }
.cl-body { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; }
.cl-thumb { height: 82px; display: block; }
.cl-mid { display: grid; gap: 6px; justify-items: start; }
.chip { display: inline-block; padding: 5px 10px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--text); }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: #f1d98f; }
.cl-qty { display: grid; gap: 8px; justify-items: center; }
.cl-qty input { width: 80px !important; }
.cart .qty label span { background: #fff; }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); background: var(--panel); border-radius: 0 0 var(--r) var(--r); }
.cl-price { display: grid; text-align: right; font-size: 13px; color: var(--muted); }
.cl-price strong { color: var(--text); font-size: 16px; }
.cart-items > .btn { display: flex; width: max-content; margin: 0 auto; }
.checkout { position: sticky; top: 16px; align-self: start; padding: 24px 24px 26px; background: var(--panel); }
.checkout h2 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; text-align: center; }
.mini-steps { list-style: none; display: flex; justify-content: space-between; margin: 0 0 6px; padding: 0; counter-reset: s; }
.mini-steps li { counter-increment: s; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.mini-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mini-steps li.on { color: var(--text); font-weight: 800; }
.mini-steps li.on::before { background: var(--red); color: #fff; border-color: var(--red); }
.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.speed-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 10px; cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; }
.speed-card:hover { border-color: var(--text); }
.speed-card span { font-size: 13px; color: var(--muted); }
.speed-card em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--text); }
.speed-card.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.totals { margin: 22px 0 14px; padding: 16px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; font-size: 15px; }
.totals strong { font-weight: 700; }
.totals .grand { font-size: 19px; padding-top: 8px; border-top: 1px solid var(--line); }
.totals .grand strong { font-weight: 800; }
.free-ship { text-align: center; font-size: 14px; }
.free-ship p { margin: 4px 0 6px; }
.arrive { margin: 6px 0 0; padding: 9px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.cart-secondary { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.cart-secondary .link { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.made-in { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Done / custom / guidelines / FAQ / quote doc ---------- */
.done-page { text-align: center; display: grid; justify-items: center; gap: 10px; padding-top: 70px; }
.done-page h1 { font-size: 36px; font-weight: 700; }
.done-page p { color: var(--muted); max-width: 560px; }
.done-page strong { color: var(--text); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.card-form { padding: 28px; background: var(--panel); }
.card-form > .btn { display: flex; margin: 8px auto 0; }
.doc-page .eyebrow { margin-top: 8px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 10px; }
.guide { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; background: var(--panel) !important; border: 0 !important; }
.guide strong { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guide span { font-size: 27px; font-weight: 700; line-height: 1.1; }
.guide small { color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 24px 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.table-wrap { padding: 0; overflow-x: auto; margin-bottom: 30px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--band-2); }
.spec-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table small { color: var(--muted); }
.quote-doc { max-width: 920px; }
.doc-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.doc { background: #fff; color: #15171a; border: 1px solid var(--line); border-radius: var(--r); padding: 44px; box-shadow: var(--shadow); }
.doc-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 3px solid #15171a; }
.doc-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; text-transform: uppercase; font-size: 21px; }
.doc-brand .brand-mark { width: 22px; height: 22px; background: var(--red); border-radius: 4px; display: inline-block; }
.doc-head p { margin: 8px 0 0; color: #4a4f57; font-size: 14px; }
.doc-meta h1 { font-weight: 800; text-transform: uppercase; font-size: 34px; text-align: right; }
.doc-meta dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 8px 0 0; font-size: 14px; }
.doc-meta dt { color: #6b7280; text-align: right; }
.doc-meta dd { margin: 0; }
.doc-to { margin: 20px 0; }
.doc-to h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; }
.doc-to p { margin: 4px 0 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; border-bottom: 1px solid #c9ced4; padding: 8px 6px; }
.doc-table td { padding: 10px 6px; border-bottom: 1px solid #e3e6ea; vertical-align: top; }
.doc-table small { color: #6b7280; }
.doc-table .r { text-align: right; white-space: nowrap; }
.doc-totals { margin: 16px 0 0 auto; width: 300px; display: grid; gap: 6px; }
.doc-totals div { display: flex; justify-content: space-between; }
.doc-totals .grand { font-size: 18px; border-top: 2px solid #15171a; padding-top: 6px; }
.doc-foot { margin-top: 30px; font-size: 13px; color: #4a4f57; }

/* ---------- Order inbox (/admin) ---------- */
.admin { max-width: 1320px; text-align: left; }
.admin-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.admin-head h1 { font-size: 30px; }
.admin-head .link { display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.admin-tabs button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--panel); font-size: 12px; text-align: center; }
.admin-tabs button.on { background: var(--sel); border-color: var(--sel); color: #fff; }
.admin-tabs button.on span { background: rgba(255, 255, 255, 0.2); }
.admin-grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 20px; align-items: start; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox-empty { padding: 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.inbox-row { width: 100%; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; cursor: pointer; font-size: 14px; }
.inbox-row:hover { border-color: var(--line-2); }
.inbox-row.on { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-bg); }
.ir-top { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.ir-top strong { font-size: 15px; }
.ir-top em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; padding-left: 8px; }
.ir-mid { font-size: 13px; }
.ir-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ir-tags:empty { display: none; }
.inbox-detail { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: grid; gap: 16px; position: sticky; top: 90px; }
.inbox-pick { place-items: center; min-height: 240px; text-align: center; }
.admin-back { display: none; align-items: center; gap: 6px; justify-self: start; }
.id-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.id-head h2 { font-size: 24px; }
.id-head p { margin: 4px 0 0; font-size: 14px; }
.id-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.id-contact .btn { min-height: 38px; padding: 8px 14px; text-transform: none; font-size: 14px; }
.id-stage { display: grid; gap: 6px; }
.id-stage .seg { justify-self: start; }
.id-review { justify-self: start; }
.id-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; padding: 14px; background: var(--panel); border-radius: var(--r-sm); }
.id-facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.id-facts dd { margin: 2px 0 0; font-size: 14px; }
.id-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.id-parts li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 6px; }
.id-parts p { margin: 0; font-size: 14px; }
.ip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; }
.ip-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--line-2); background: var(--panel); font-size: 14px; }
.ip-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ip-files .btn { text-transform: none; }
.id-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.id-totals strong { color: var(--text); font-size: 16px; }
.id-log h3 { font-size: 16px; margin-bottom: 8px; }
.id-log ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.note-row { display: flex; gap: 8px; }
.admin-login form { width: 100%; max-width: 360px; text-align: left; display: grid; gap: 12px; }
@media (max-width: 960px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin.has-sel .inbox-list, .admin:not(.has-sel) .inbox-detail { display: none; }
  .admin.has-sel .admin-tabs { display: none; }
  .inbox-detail { position: static; padding: 16px; }
  .admin-back { display: inline-flex; }
  .id-stage .seg { justify-self: stretch; }
  .id-stage .seg button { flex: 1 1 30%; padding: 8px 6px; }
}

/* Powder coat run, inside the order inbox */
.coat-run { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.coat-run .coat-sec, .coat-run .coat-group, .coat-run .coat-list { grid-template-columns: minmax(0, 1fr); }
.coat-job .ir-tags > * { white-space: normal; max-width: 100%; }
.coat-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.coat-stats div { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.coat-stats strong { font-size: 28px; line-height: 1.1; }
.coat-stats span { font-size: 13px; color: var(--muted); }
.coat-sec { display: grid; gap: 12px; }
.coat-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.coat-sec-head h2 { font-size: 20px; }
.coat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coat-actions .btn { text-transform: none; }
.coat-group { display: grid; gap: 8px; }
.coat-group h3 { font-size: 15px; }
.coat-group h3 .muted { font-weight: 500; font-size: 13px; margin-left: 6px; }
.coat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coat-job { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
label.coat-job { cursor: pointer; }
label.coat-job:hover { border-color: var(--line-2); }
.coat-job input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.coat-job-text { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 14px; }
.coat-job-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.coat-row-btns { display: flex; align-items: center; gap: 12px; flex: none; }
.coat-row-btns .btn { text-transform: none; }
.coat-sheet { display: none; }
@media (max-width: 960px) {
  .admin-head { flex-wrap: wrap; gap: 8px 14px; }
  .admin-head h1 { flex-basis: 100%; }
  .admin-head .spacer { display: none; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .doc { box-shadow: none; border: 0; padding: 0; }
  .coat-sheet { display: block; color: #000; font-size: 12pt; }
  .cs-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8pt; border-bottom: 2pt solid #000; }
  .cs-head h1 { font-size: 18pt; margin: 0; }
  .cs-head p { margin: 2pt 0 0; }
  .cs-date { text-align: right; }
  .cs-group { margin-top: 14pt; break-inside: avoid; }
  .cs-group h2 { font-size: 13pt; margin: 0 0 4pt; }
  .coat-sheet table { width: 100%; border-collapse: collapse; }
  .coat-sheet th, .coat-sheet td { border: 1pt solid #000; padding: 4pt 6pt; text-align: left; font-size: 10.5pt; }
  .coat-sheet th { background: #eee; }
  .cs-box { width: 36pt; }
  .cs-note { margin: 14pt 0 0; }
  .cs-sign { margin: 22pt 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .main-nav a { padding: 8px 8px; }
  .head-actions .phone span { display: none; }
}
@media (max-width: 1180px) {
  .site-header { padding: 0 12px 0 16px; gap: 8px; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 0 12px; background: rgba(13, 13, 13, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid #2a2a2a; }
  .site-header.open .main-nav { display: flex; }
  .main-nav a { padding: 14px 20px; border-bottom: 0; }
  .main-nav a.on { box-shadow: inset 3px 0 0 var(--red); }
  .head-actions { margin-left: auto; }
  .menu-btn { display: flex; }
}
@media (max-width: 1100px) {
  .wizard { height: auto; }
  .wizard-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .wiz-view { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .wizard-bar { position: sticky; bottom: 0; z-index: 20; }
  .cap-grid { grid-template-columns: repeat(3, 230px); }
  .quote-row { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .site-header { padding: 0 12px 0 16px; gap: 8px; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 0 12px; background: var(--black); border-top: 1px solid #2a2a2a; }
  .site-header.open .main-nav { display: flex; }
  .main-nav a { padding: 14px 20px; border-bottom: 0; }
  .main-nav a.on { box-shadow: inset 3px 0 0 var(--red); }
  .head-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .examples { grid-template-columns: 1fr; }
  .sign-grid { display: block; }
  .sign-status, .sign-controls { margin-top: 16px; }
  .dc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dc-card { padding: 8px 8px 10px; }
  .dc-card strong { font-size: 14px; }
  .dc-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
  .dc-cats a { white-space: nowrap; }
  .sign-templates ul { grid-auto-columns: 128px; margin: 0 -16px; padding: 0 16px 6px; }
  /* The preview stays on screen while you work through the steps below it. */
  .sign-stage { display: contents; }
  .sign-canvas { position: sticky; top: 70px; z-index: 5; min-height: 0; height: 32vh; padding: 12px; }
  .sign-canvas svg { height: 100%; max-height: 100%; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .templates, .library, .cart { grid-template-columns: 1fr; }
  .tpl-side, .lib-side, .checkout { position: static; }
  .tpl-side { order: -1; padding: 14px; }
  .tpl-side .or, .tpl-side .ai-promo, .tpl-side h2 { display: none; }
  .cat-nav { display: flex; overflow-x: auto; }
  .cat-nav a { white-space: nowrap; }
  .side-links, .lib-side > .muted { display: none; }
  .stepper button { width: 86px; }
  .stepper .lbl { max-width: 84px; }
  .stepper li + li::before { width: 26px; left: -13px; }
  .wiz-name { display: none; }

  .sec { padding: 64px 20px; }
  .sec h2, .band-gray h2 { font-size: 34px; }
  .hero { height: 620px; }
  .hero h1 { font-size: 48px; }
  .hero h3 { font-size: 20px; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 230px)); column-gap: 24px; row-gap: 40px; }
  .examples-list > li { grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
  .lead-sec, .first-cta, .story-in { grid-template-columns: minmax(0, 1fr) !important; }
  .ex-text { width: 100%; max-width: 456px; }
  .mat-cols { grid-template-columns: 1fr; max-width: 560px; }
  .lead-sec, .first-cta { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .lead-sec > div, .first-cta > div { max-width: 600px; }
  .first-cta > .ph, .first-cta > .ph-img { order: -1; }
  .rev-in { grid-template-columns: minmax(0, 1fr); }
  .rev-summary { width: 100%; max-width: 440px; margin: 0 auto; }
  .rev-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .reviews .reviews-head h2 { font-size: 30px; }
  .values { grid-template-columns: 1fr 1fr; }
  .story-in { grid-template-columns: 1fr; justify-items: center; }
  .story-in > div { max-width: 600px; }
  .page-hero { min-height: 360px; }
  .page-hero-card h1 { font-size: 38px; }
  .detail, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .spec-card { position: static; }
  .card-grid.three { grid-template-columns: minmax(0, 1fr); }
  .ind-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ind-row.flip > img { order: 0; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .why h2 { font-size: 34px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .head-cta { padding: 10px 12px; min-height: 38px; font-size: 12px; margin-left: 0; }
  .head-actions { gap: 2px; }
  .head-actions .phone { width: 40px; padding: 0; justify-content: center; }
  .page { padding: 28px 16px 48px; }
  .page-sub { font-size: 16px; }
  .sub-title { font-size: 23px; margin-top: 44px; }
  .dz-title { font-size: 20px; }
  .dropzone { padding: 30px 16px 22px; }
  .foot-in { grid-template-columns: 1fr; padding: 44px 16px 24px; }

  .sec { padding: 56px 16px; }
  .sec h2, .band-gray h2 { font-size: 30px; }
  .sec .h-sm, .band-gray .h-sm { font-size: 24px; }
  .sec-sub { font-size: 16px; margin-bottom: 32px; }
  .band-gray { padding: 56px 16px; }
  .hero { height: 560px; }
  .hero h1 { font-size: 38px; }
  .hero h3 { font-size: 18px; margin: 16px 0 24px; }
  .hero .hero-media .ph-text { left: 16px; right: 16px; bottom: 14px; }
  .cap-grid { column-gap: 16px; row-gap: 32px; }
  .cap-grid strong { font-size: 17px; }
  .cap-grid span:not(.ph-text):not(.ph-text *) { font-size: 14px; }
  .cap-grid .ph-text { font-size: 11px; }
  .cap-grid .ph-text strong { font-size: 12px; }
  .quote-row { grid-template-columns: 1fr; }
  .rating-line { flex-wrap: wrap; }
  .ex-prices { gap: 12px 24px; }
  .ex-prices dd { font-size: 22px; }
  .ex-text h3 { font-size: 23px; }
  .mat-cols li { min-height: 88px; }
  .reviews-head { align-items: flex-end; }
  .rev-track { grid-auto-columns: 86%; gap: 14px; }
  .reviews { padding: 64px 16px; }
  .reviews .reviews-head h2 { font-size: 26px; }
  .rev-score { font-size: 56px; }
  .hero-chips { margin-top: 24px; gap: 8px; }
  .hero-chips li { padding: 6px 12px; font-size: 13px; }
  .trusted { padding-top: 48px; padding-bottom: 48px; }
  .page-hero { min-height: 0; }
  .page-hero-in { padding: 40px 16px; }
  .page-hero-card { padding: 22px 20px; }
  .page-hero-card h1 { font-size: 30px; }
  .page-hero-sub { font-size: 16px; }
  .hero-cutout { width: 64px; height: 64px; right: 14px; top: 14px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .glass-chip { left: 6px; right: 6px; bottom: 6px; padding: 7px 9px; }
  .glass-chip span { display: none; }
  .cta-band { padding: 56px 16px; }
  .cta-band-card { padding: 26px 20px; }
  .cta-band-card h2 { font-size: 28px; }
  .map { min-height: 320px; }
  .detail-main .lede { font-size: 18px; }
  .why { padding: 56px 16px; }
  .why h2 { font-size: 28px; }
  .why-sub { font-size: 16px; margin-bottom: 28px; }
  .why-grid, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .size-wrap { padding: 10px; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 176px)); gap: 12px; }

  .wizard-top { padding: 8px 6px; }
  .stepper button { width: 66px; padding: 2px 0; }
  .stepper .lbl { font-size: 10px; max-width: 64px; white-space: normal; line-height: 1.15; text-align: center; }
  .stepper li + li::before { display: none; }
  .wizard-body { grid-template-columns: 1fr; }
  .wizard-body:not(.step-customize) .wiz-step { order: -1; }
  .price-panel { border-left: 0; border-top: 1px solid var(--line); }
  .wiz-step { padding: 20px 16px 24px; }
  .part-viewer { height: 340px; }
  .pv-tools { top: auto; bottom: 10px; right: 10px; grid-auto-flow: column; }
  .pv-tools button { width: 32px; height: 32px; }
  .pv-mode { left: 10px; transform: none; bottom: 12px; }
  .pv-info { bottom: 56px; width: auto; right: 10px; }
  .wizard-bar { padding: 8px 12px; }
  .grid2 { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tpl-card .thumb { height: 80px; }
  .cl-body { grid-template-columns: 70px 1fr; }
  .cl-qty { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .checkout { padding: 20px 16px; }
  .doc { padding: 22px; }
  .doc-head { flex-direction: column; }
  .doc-table th:nth-child(4), .doc-table td:nth-child(4) { display: none; }
  .popover { width: calc(100vw - 16px); left: 8px !important; }
  .upload-cards { grid-template-columns: 1fr; }
  .speed { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .head-actions .cart-link { width: 34px; }
  .brand img { height: 40px; }
}
