/* QodeX PCB — laboratory design system (spec §4) */
/* Geist and Geist Mono (SIL Open Font License 1.1, see /fonts/OFL-LICENSE.txt), self-hosted */
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --surface-base: #08090a;
  --surface-sunken: #050607;
  --surface-elevated: #111317;
  --surface-overlay: #191c24;
  --surface-stroke: #262a36;
  --surface-stroke-soft: #1b1e27;

  --copper-primary: #df8244;
  --copper-glow: #ffb076;
  --copper-muted: #5e3519;

  --signal-cyan: #2ce5e5;
  --signal-cyan-glow: #7ef5f5;

  --drc-pass: #33d17a;
  --drc-pass-surface: #0a2617;
  --drc-warn: #f5a623;
  --drc-warn-surface: #2b200a;
  --drc-fail: #e5484d;
  --drc-fail-surface: #2b1113;

  --text-pure: #f9f9fb;
  --text-high: #e2e4e9;
  --text-med: #9da3ae;
  --text-low: #848b99; /* >= 4.5:1 on every surface */
  --text-disabled: #3d424d;

  --radius: 12px;
  --radius-sm: 7px;
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-high);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--copper-glow); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* links inside running text are underlined, not told apart by colour alone */
p a, li a, dd a, td a, .prose a, .lead a, .field__hint a, .form-ok a, .form-warn a, .form-error a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a.btn, li a.btn, td a.btn, dd a.btn, .prose a.btn, li a.chip, td a.rowlink { text-decoration: none; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { color: var(--copper-glow); background: rgba(223, 130, 68, .08); padding: .1em .35em; border-radius: 4px; }
kbd { border: 1px solid var(--surface-stroke); border-bottom-width: 2px; border-radius: 4px; padding: 0 .4em; font-size: .8em; color: var(--text-high); }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; color: var(--text-high); margin: 0 0 1em; }
pre code { background: none; padding: 0; color: inherit; }
h1, h2, h3, h4 { color: var(--text-pure); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.2vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--surface-stroke); margin: 24px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper-glow); outline-offset: 2px; }
::selection { background: rgba(223, 130, 68, .35); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--copper-primary); color: #140a03; padding: 6px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--text-med); }
.low { color: var(--text-low); font-size: 14px; }
.lead { font-size: 19px; color: var(--text-med); max-width: 680px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-cyan); margin-bottom: 12px; }
.accent { color: var(--copper-glow); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 14px; }
.nowrap { white-space: nowrap; }

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 10, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--surface-stroke-soft);
}
.site-header__row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-pure); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 14px rgba(223, 130, 68, .35)); }
.brand em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--copper-glow); margin-left: 6px; padding: 1px 6px; border: 1px solid var(--copper-muted); border-radius: 4px; vertical-align: 2px; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > a, .nav__trigger {
  color: var(--text-med); padding: 8px 12px; border-radius: var(--radius-sm);
  background: none; border: 0; font: inherit; font-size: 14.5px; cursor: pointer;
}
.nav > a:hover, .nav__trigger:hover, .nav > a.is-active, .nav__trigger.is-active { color: var(--text-pure); background: var(--surface-elevated); text-decoration: none; }
.nav__trigger::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: var(--surface-overlay); border: 1px solid var(--surface-stroke); border-radius: var(--radius);
  padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .16s var(--ease);
}
.nav__menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__menu--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 560px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu, .nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__group.is-dismissed .nav__menu { opacity: 0; visibility: hidden; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-high); }
.nav__menu a:hover { background: rgba(255, 255, 255, .04); text-decoration: none; }
.nav__menu strong { display: block; font-size: 14px; color: var(--text-pure); font-weight: 600; }
.nav__menu span { display: block; font-size: 12.5px; color: var(--text-low); }
.nav__account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { color: var(--text-med); font-size: 14.5px; padding: 8px 10px; }
.nav-signin:hover { color: var(--text-pure); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--surface-stroke); color: var(--text-high); border-radius: var(--radius-sm); width: 40px; height: 36px; cursor: pointer; padding: 7px; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; max-height: calc(100vh - 64px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: var(--surface-base); border-bottom: 1px solid var(--surface-stroke);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__menu, .nav__menu--wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; min-width: 0; grid-template-columns: 1fr; background: transparent; border: 0; padding: 0 0 0 10px; }
  .nav__trigger { text-align: left; width: 100%; }
  .nav__account { margin: 10px 0 0; flex-wrap: wrap; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--surface-stroke); background: var(--surface-elevated);
  color: var(--text-high); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: var(--copper-primary); text-decoration: none; color: var(--text-pure); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--copper-primary); border-color: var(--copper-primary); color: #160b03; font-weight: 600; }
.btn--primary:hover { background: var(--copper-glow); border-color: var(--copper-glow); color: #160b03; box-shadow: 0 8px 30px rgba(223, 130, 68, .3); }
.btn--ghost { background: transparent; }
.btn--danger { border-color: rgba(229, 72, 77, .6); color: var(--drc-fail); background: transparent; }
.btn--danger:hover { border-color: var(--drc-fail); color: #fff; background: var(--drc-fail-surface); }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }
.btn--lg { padding: 14px 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.link-arrow { color: var(--copper-glow); font-size: 14px; font-weight: 500; }
.link-arrow::after { content: ' →'; }

/* ── sections / cards ───────────────────────────────────── */
.section { padding: 96px 0; border-top: 1px solid var(--surface-stroke-soft); position: relative; }
.section--tight { padding: 64px 0; }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head.center { margin-left: auto; margin-right: auto; }
.page-hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.page-hero::before, .hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(223, 130, 68, .14), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(44, 229, 229, .06), transparent 70%);
}
.page-hero::after, .hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
}
.page-hero > .container, .hero > .container { position: relative; z-index: 1; }

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-stroke);
  border-radius: var(--radius);
  padding: 24px;
}
.card--link { display: block; color: inherit; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.card--link:hover { border-color: var(--copper-muted); background: #14161b; text-decoration: none; transform: translateY(-2px); }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__title h2, .card__title h3 { margin: 0; font-size: 17px; }
.stack-cards > .card + .card, .stack-cards > * + * { margin-top: 16px; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .card { padding: 18px; }
}

.feature h3 { margin-top: 12px; }
.feature p { color: var(--text-med); margin: 0; font-size: 15px; }
.feature__num { font-family: var(--mono); font-size: 12px; color: var(--copper-primary); letter-spacing: .08em; }
.feature__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(223, 130, 68, .1); border: 1px solid var(--copper-muted); color: var(--copper-glow); font-family: var(--mono); font-size: 15px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 8px 0 8px 28px; color: var(--text-high); border-bottom: 1px dashed var(--surface-stroke-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--drc-pass); border-bottom: 2px solid var(--drc-pass); transform: rotate(-45deg); }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--surface-stroke); border-radius: 999px; font-size: 13.5px; color: var(--text-high); margin: 0 6px 8px 0; }
.chip:hover { border-color: var(--copper-primary); text-decoration: none; }
.uc-card p { color: var(--text-med); font-size: 14.5px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--copper-glow), var(--copper-primary) 45%, var(--signal-cyan) 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__cta { margin-top: 30px; }
.hero__proof { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--text-low); }
.hero__proof span::before { content: '●'; color: var(--drc-pass); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.hero__stage { position: relative; height: 560px; border-radius: 18px; border: 1px solid var(--surface-stroke); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #13161c, #07080a 70%); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .04); }
.hero__stage .qx-viewer { border-radius: 0; background: transparent; }
.hero__badge { position: absolute; right: 16px; bottom: 16px; z-index: 3; font-family: var(--mono); font-size: 11.5px; color: var(--signal-cyan); background: rgba(8, 9, 10, .75); border: 1px solid rgba(44, 229, 229, .3); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.hero__badge::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-cyan); margin-right: 8px; box-shadow: 0 0 10px var(--signal-cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { height: 400px; }
}

/* telemetry strip */
.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--surface-stroke); border-radius: var(--radius); overflow: hidden; background: var(--surface-elevated); margin: 0; }
.telemetry > div { padding: 20px 22px; border-right: 1px solid var(--surface-stroke); }
.telemetry > div:last-child { border-right: 0; }
.telemetry dt { font-size: 12px; color: var(--text-low); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.telemetry dd { margin: 6px 0 0; font-family: var(--mono); font-size: 26px; color: var(--text-pure); font-weight: 500; }
.telemetry dd small { font-size: 13px; color: var(--text-low); margin-left: 4px; }
@media (max-width: 760px) { .telemetry { grid-template-columns: repeat(2, 1fr); } .telemetry > div:nth-child(2) { border-right: 0; } .telemetry > div:nth-child(-n+2) { border-bottom: 1px solid var(--surface-stroke); } }

/* pipeline diagram */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.pipeline__step { position: relative; padding: 26px 22px; border: 1px solid var(--surface-stroke); background: var(--surface-elevated); }
.pipeline__step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline__step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pipeline__step + .pipeline__step { border-left: 0; }
.pipeline__step::after { content: ''; position: absolute; right: -8px; top: 36px; width: 14px; height: 14px; background: var(--surface-elevated); border-top: 1px solid var(--surface-stroke); border-right: 1px solid var(--surface-stroke); transform: rotate(45deg); z-index: 2; }
.pipeline__step:last-child::after { display: none; }
.pipeline__step h3 { font-size: 17px; margin: 12px 0 8px; }
.pipeline__step p { font-size: 14.5px; color: var(--text-med); margin: 0; }
.pipeline__tag { font-family: var(--mono); font-size: 11.5px; color: var(--signal-cyan); letter-spacing: .08em; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__step, .pipeline__step:first-child, .pipeline__step:last-child { border-radius: 0; border-left: 1px solid var(--surface-stroke); }
  .pipeline__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .pipeline__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .pipeline__step + .pipeline__step { border-top: 0; }
  .pipeline__step::after { right: 30px; top: auto; bottom: -8px; transform: rotate(135deg); }
}

/* before / after comparison */
.compare { position: relative; height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-stroke); background: #0b0d10; user-select: none; touch-action: none; cursor: ew-resize; }
.compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--copper-glow); box-shadow: 0 0 20px var(--copper-primary); pointer-events: none; }
.compare__handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--copper-primary); color: #160b03; display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.compare__label { position: absolute; top: 14px; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 9, 10, .8); border: 1px solid var(--surface-stroke); pointer-events: none; }
.compare__label--before { left: 14px; color: var(--drc-fail); }
.compare__label--after { right: 14px; color: var(--drc-pass); }
.compare__legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--text-med); }
.compare__legend b { color: var(--text-pure); font-family: var(--mono); font-weight: 500; }

/* fab grid */
.fab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fab { padding: 20px; border: 1px solid var(--surface-stroke); border-radius: var(--radius); background: var(--surface-elevated); }
.fab h4 { margin: 0 0 4px; font-size: 16px; }
.fab p { font-size: 12.5px; color: var(--text-low); margin: 0 0 12px; }
.fab dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 13px; }
.fab dt { color: var(--text-low); }
.fab dd { margin: 0; font-family: var(--mono); color: var(--text-high); }
@media (max-width: 960px) { .fab-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fab-grid { grid-template-columns: 1fr; } }

/* spec strip */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--surface-stroke); border-radius: var(--radius); overflow: hidden; margin: 0; }
.spec { padding: 18px 20px; border-right: 1px solid var(--surface-stroke); background: var(--surface-elevated); }
.spec:last-child { border-right: 0; }
.spec dt { font-size: 12px; color: var(--text-low); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.spec dd { margin: 6px 0 0; font-size: 17px; color: var(--text-pure); font-weight: 600; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } .spec { border-bottom: 1px solid var(--surface-stroke); } }

/* faq */
.faq { border-bottom: 1px solid var(--surface-stroke); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; color: var(--text-pure); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; font-size: 22px; color: var(--copper-glow); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-med); padding-right: 36px; }

/* cta band */
.cta-band { border: 1px solid var(--copper-muted); border-radius: 18px; padding: 60px 56px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(223, 130, 68, .18), transparent 70%), var(--surface-elevated); }
.cta-band h2 { max-width: 720px; margin: 0 auto .4em; }
.cta-band p { color: var(--text-med); max-width: 560px; margin: 0 auto 26px; }
.cta-band .row { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 36px 22px; } }

/* prose (docs / legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 56px; padding-top: 12px; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin-top: 32px; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--text-med); }
.prose strong { color: var(--text-high); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--surface-stroke); vertical-align: top; }
.prose th { color: var(--text-low); font-weight: 500; font-size: 13px; }
.prose td { color: var(--text-med); }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); font-family: var(--mono); margin: 18px 0 8px; }
.toc h4:first-child { margin-top: 0; }
.toc a { display: block; color: var(--text-med); padding: 5px 0 5px 12px; border-left: 1px solid var(--surface-stroke); }
.toc a:hover { color: var(--text-pure); border-left-color: var(--copper-primary); text-decoration: none; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }
.callout { border: 1px solid var(--surface-stroke); border-left: 3px solid var(--copper-primary); background: var(--surface-elevated); padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 1.4em; color: var(--text-med); }
.callout strong { color: var(--text-pure); }
.callout--cyan { border-left-color: var(--signal-cyan); }

/* ── forms ──────────────────────────────────────────────── */
.field { display: block; }
.field__label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-med); margin-bottom: 6px; }
.field__hint { display: block; font-size: 12.5px; color: var(--text-low); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px;
  background: var(--surface-sunken); color: var(--text-pure);
  border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-low); }
input:focus, select:focus, textarea:focus { border-color: var(--copper-primary); outline: none; box-shadow: 0 0 0 3px rgba(223, 130, 68, .15); }
input:disabled { opacity: .55; }
input[type=number] { font-family: var(--mono); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-med) 50%), linear-gradient(135deg, var(--text-med) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=range] { accent-color: var(--copper-primary); width: 100%; }
input[type=file] { color: var(--text-med); font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13.5px; background: var(--surface-overlay); color: var(--text-high); border: 1px solid var(--surface-stroke); border-radius: 6px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--text-high); }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--copper-primary); flex: none; }
.form-error, .form-ok, .form-warn { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.form-error { color: #ffb3b5; background: var(--drc-fail-surface); border: 1px solid rgba(229, 72, 77, .6); }
.form-ok { color: #9ff0c3; background: var(--drc-pass-surface); border: 1px solid rgba(51, 209, 122, .5); }
.form-warn { color: #ffd89a; background: var(--drc-warn-surface); border: 1px solid rgba(245, 166, 35, .5); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth__box { width: 100%; max-width: 420px; }
.auth__box h1 { font-size: 32px; }
.auth__art { position: relative; border-left: 1px solid var(--surface-stroke); overflow: hidden; background: radial-gradient(ellipse at 30% 20%, rgba(223, 130, 68, .16), transparent 60%), #0a0b0d; display: flex; align-items: flex-end; padding: 48px; }
.auth__art blockquote { margin: 0; max-width: 460px; font-size: 23px; color: var(--text-pure); line-height: 1.4; letter-spacing: -.01em; position: relative; z-index: 1; }
.auth__art cite { display: block; margin-top: 14px; font-size: 13px; font-style: normal; color: var(--text-low); font-family: var(--mono); }
.auth__art .traces { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

/* ── dropzone ───────────────────────────────────────────── */
.dropzone {
  display: block;
  position: relative; border: 1.5px dashed var(--surface-stroke); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; cursor: pointer;
  background:
    radial-gradient(circle at 20% 20%, rgba(223, 130, 68, .07), transparent 45%),
    repeating-linear-gradient(90deg, rgba(223, 130, 68, .035) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(223, 130, 68, .025) 0 1px, transparent 1px 24px),
    var(--surface-sunken);
  transition: border-color .15s, transform .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--copper-glow); }
.dropzone.is-drag { transform: scale(1.005); }
.dropzone__icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; border: 1px solid var(--copper-muted); display: grid; place-items: center; color: var(--copper-glow); font-family: var(--mono); font-size: 13px; background: rgba(223, 130, 68, .08); }
.dropzone strong { color: var(--text-pure); }
.dropzone p { margin: 0 0 4px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); margin-top: 6px; background: var(--surface-sunken); font-size: 14px; }
.file-list .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.file-ext { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--surface-overlay); color: var(--text-med); text-transform: uppercase; flex: none; }
.file-ext--3d { color: var(--signal-cyan); background: rgba(44, 229, 229, .08); }

/* ── tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--surface-stroke-soft); vertical-align: middle; }
.table th { color: var(--text-low); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a.rowlink { color: var(--text-pure); font-weight: 600; font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.table .num { font-family: var(--mono); text-align: right; }
.table .name-cell { font-family: var(--mono); font-size: 13.5px; min-width: 200px; overflow-wrap: anywhere; }

/* ── badges ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--surface-stroke); color: var(--text-med); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--quote_pending, .badge--awaiting_payment, .badge--new, .badge--pending { color: var(--drc-warn); border-color: rgba(245, 166, 35, .4); background: var(--drc-warn-surface); }
.badge--paid, .badge--in_progress { color: var(--signal-cyan); border-color: rgba(44, 229, 229, .35); background: rgba(44, 229, 229, .06); }
.badge--delivered, .badge--completed, .badge--handled { color: var(--drc-pass); border-color: rgba(51, 209, 122, .4); background: var(--drc-pass-surface); }
.badge--cancelled, .badge--failed { color: var(--drc-fail); border-color: rgba(229, 72, 77, .4); background: var(--drc-fail-surface); }
.badge--admin { color: var(--copper-glow); border-color: var(--copper-muted); }

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--text-low); }
dl.kv dd { margin: 0; color: var(--text-high); text-align: right; font-variant-numeric: tabular-nums; }
.price-big { font-size: 36px; font-weight: 700; color: var(--text-pure); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-big small { font-size: 14px; color: var(--text-low); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.price-lines { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13.5px; color: var(--text-med); }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--surface-stroke-soft); }
.price-lines li span:last-child { font-family: var(--mono); color: var(--text-high); }

/* ── stat tiles ─────────────────────────────────────────── */
.stat { padding: 20px; }
.stat__value { font-size: 30px; font-weight: 700; color: var(--text-pure); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; color: var(--text-low); }

/* ── app shell (portal/admin) ───────────────────────────── */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 64px); flex: 1; }
.app__side { border-right: 1px solid var(--surface-stroke-soft); background: #0a0b0d; }
.side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; height: calc(100vh - 64px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-med); font-size: 14.5px; }
.side a:hover { color: var(--text-pure); background: var(--surface-elevated); text-decoration: none; }
.side a.is-active { color: var(--text-pure); background: var(--surface-elevated); box-shadow: inset 2px 0 0 var(--copper-primary); }
.side__icon { width: 18px; text-align: center; color: var(--copper-glow); font-family: var(--mono); }
.side__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-low); margin: 18px 12px 6px; }
.side__label:first-child { margin-top: 0; }
.side__foot { margin-top: auto; border-top: 1px solid var(--surface-stroke-soft); padding: 14px 12px 0; }
.side__user strong { display: block; font-size: 14px; color: var(--text-pure); }
.side__user span { display: block; font-size: 12.5px; color: var(--text-low); overflow: hidden; text-overflow: ellipsis; }
.app__main { padding: 32px 36px 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--text-med); }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app__side { border-right: 0; border-bottom: 1px solid var(--surface-stroke-soft); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px 14px; }
  .side__label, .side__foot { display: none; }
  .app__main { padding: 22px 18px 48px; }
}

/* ── order detail ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 22px; }
.steps span { position: relative; padding: 10px 12px 10px 30px; font-size: 13px; border-radius: var(--radius-sm); border: 1px solid var(--surface-stroke); color: var(--text-low); background: var(--surface-elevated); }
.steps span::before { content: ''; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; border: 1.5px solid currentColor; }
.steps span.done { color: var(--copper-glow); border-color: var(--copper-muted); }
.steps span.done::before { background: currentColor; }
.steps span.now { color: var(--text-pure); border-color: var(--copper-primary); background: rgba(223, 130, 68, .12); }
.steps span.now::before { background: var(--copper-primary); border-color: var(--copper-primary); box-shadow: 0 0 10px var(--copper-primary); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.msg--me { align-self: flex-end; background: rgba(223, 130, 68, .12); border: 1px solid var(--copper-muted); border-bottom-right-radius: 4px; }
.msg--other { align-self: flex-start; background: var(--surface-overlay); border: 1px solid var(--surface-stroke); border-bottom-left-radius: 4px; }
.msg__meta { display: block; font-size: 11.5px; color: var(--text-low); margin-top: 5px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.timeline li { position: relative; padding: 0 0 14px 20px; border-left: 1px solid var(--surface-stroke); color: var(--text-high); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-base); border: 2px solid var(--copper-primary); }
.timeline time { color: var(--text-low); font-size: 12px; display: block; font-family: var(--mono); }
.empty { text-align: center; padding: 56px 20px; color: var(--text-med); }
.empty h3 { color: var(--text-pure); }
.pay-methods { display: grid; gap: 8px; margin-top: 14px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface-sunken); font-size: 14.5px; }
.pay-method:has(input:checked) { border-color: var(--copper-primary); background: rgba(223, 130, 68, .07); }
.pay-method input { accent-color: var(--copper-primary); }
.upload-box { margin-top: 16px; border-top: 1px solid var(--surface-stroke-soft); padding-top: 16px; }

/* ── toast / modal ──────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-overlay); border: 1px solid var(--surface-stroke); color: var(--text-pure); padding: 11px 18px; border-radius: var(--radius); z-index: 200; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; animation: toast-in .2s var(--ease); }
.toast.is-error { border-color: var(--drc-fail); color: #ffb3b5; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal__box { width: min(1320px, 100%); height: min(880px, 100%); background: var(--surface-elevated); border: 1px solid var(--surface-stroke); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--surface-stroke); }
.modal__head .name { flex: 1; font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal__body { flex: 1; position: relative; min-height: 0; }

/* ── 3D viewer ──────────────────────────────────────────── */
.qx-viewer { position: relative; width: 100%; height: 100%; min-height: 320px; background: #0b0d10; border-radius: var(--radius); overflow: hidden; }
.qx-viewer:fullscreen { border-radius: 0; }
.qx-viewer__canvas { position: absolute; inset: 0; }
.qx-viewer__canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.qx-viewer.is-measuring canvas, .qx-viewer.is-inspecting canvas { cursor: crosshair; }
.qx-viewer__toolbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; z-index: 2; }
.qx-viewer__group { display: flex; pointer-events: auto; background: rgba(12, 14, 18, .86); border: 1px solid var(--surface-stroke); border-radius: 8px; overflow: hidden; backdrop-filter: blur(6px); }
.qx-viewer__btn { padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; background: transparent; color: var(--text-med); border: 0; border-right: 1px solid var(--surface-stroke-soft); }
.qx-viewer__btn:last-child { border-right: 0; }
.qx-viewer__btn:hover { color: var(--text-pure); background: rgba(255, 255, 255, .04); }
.qx-viewer__btn.is-on { color: #160b03; background: var(--copper-primary); }
.qx-viewer__overlay { position: absolute; bottom: 12px; left: 12px; pointer-events: none; z-index: 2; }
.qx-viewer__overlay dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; padding: 10px 14px; background: rgba(8, 9, 10, .82); border: 1px solid var(--surface-stroke); border-radius: 10px; font-size: 12px; backdrop-filter: blur(6px); }
.qx-viewer__overlay dt { color: var(--text-low); }
.qx-viewer__overlay dd { margin: 0; color: var(--text-high); font-family: var(--mono); text-align: right; }
.qx-viewer__panel { position: absolute; top: 54px; right: 12px; width: 236px; max-height: calc(100% - 70px); overflow-y: auto; background: rgba(14, 16, 20, .94); border: 1px solid var(--surface-stroke); border-radius: 10px; padding: 12px 14px; font-size: 13px; z-index: 3; backdrop-filter: blur(8px); }
.qx-viewer__panel h4 { font-size: 11px; margin: 4px 0 8px; color: var(--text-low); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.qx-viewer__panel h4:not(:first-child) { margin-top: 14px; }
.qx-viewer__row { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; }
.qx-viewer__row span { font-family: var(--mono); font-size: 12.5px; color: var(--text-high); }
.qx-viewer__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.qx-viewer__row--slider { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; cursor: default; }
.qx-viewer__row--slider span { font-family: var(--font); color: var(--text-med); font-size: 12.5px; }
.qx-viewer__row input[type=checkbox] { accent-color: var(--copper-primary); }
.qx-viewer__status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(8, 9, 10, .88); border: 1px solid var(--surface-stroke); padding: 12px 18px; border-radius: 10px; font-size: 13px; color: var(--signal-cyan); max-width: 80%; text-align: center; font-family: var(--mono); z-index: 4; }
.qx-viewer__status.is-error { color: #ffb3b5; border-color: var(--drc-fail); font-family: var(--font); }
.qx-viewer__tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(8, 9, 10, .92); border: 1px solid var(--surface-stroke); border-radius: 8px; padding: 7px 10px; font-size: 12px; color: var(--text-high); white-space: nowrap; transform: translate(14px, 14px); }
.qx-viewer__tip b { color: var(--text-pure); font-family: var(--mono); }
.qx-viewer__tip i { color: var(--signal-cyan); font-style: normal; font-family: var(--mono); }
.qx-viewer__inspect { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 270px; background: rgba(14, 16, 20, .95); border: 1px solid rgba(44, 229, 229, .35); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.qx-viewer__inspect h5 { margin: 0 0 8px; font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-cyan); display: flex; justify-content: space-between; }
.qx-viewer__inspect h5 button { background: none; border: 0; color: var(--text-low); cursor: pointer; font-size: 14px; padding: 0; }
.qx-viewer__inspect dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.qx-viewer__inspect dt { color: var(--text-low); }
.qx-viewer__inspect dd { margin: 0; font-family: var(--mono); text-align: right; color: var(--text-high); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-viewer__hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 12px; color: var(--text-med); background: rgba(8, 9, 10, .78); border: 1px solid var(--surface-stroke); padding: 5px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.viewer-box { height: 460px; }
.viewer-page { position: fixed; inset: 64px 0 0 0; }
.viewer-page .qx-viewer { border-radius: 0; }
@media (max-width: 640px) { .qx-viewer__overlay { display: none; } .qx-viewer__panel { width: 200px; } .qx-viewer__inspect { width: auto; left: 12px; } }

/* studio page */
.studio { position: relative; height: calc(100vh - 64px); min-height: 520px; }
.studio__drop { position: absolute; inset: 0; }
.studio__drop.is-drag::after { content: 'Drop to open'; position: absolute; inset: 14px; border: 2px dashed var(--copper-glow); border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: var(--copper-glow); background: rgba(8, 9, 10, .7); z-index: 20; }
.studio__bar { position: absolute; z-index: 6; top: 60px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--surface-stroke-soft); padding: 64px 0 28px; background: #070809; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer__brand p { color: var(--text-low); font-size: 14px; max-width: 300px; margin-top: 14px; }
.site-footer__title { font-weight: 500; font-size: 11.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); margin-bottom: 14px; }
.site-footer__grid a:not(.brand) { display: block; color: var(--text-med); font-size: 14px; padding: 4px 0; }
.site-footer__grid a:not(.brand):hover { color: var(--text-pure); text-decoration: none; }
.site-footer__base { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--surface-stroke-soft); font-size: 13px; color: var(--text-low); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ── receipt (print friendly) ───────────────────────────── */
.receipt { max-width: 780px; background: #fff; color: #111; border-radius: var(--radius); padding: 48px; }
.receipt h1, .receipt h2, .receipt h3 { color: #111; }
.receipt .muted, .receipt .low { color: #555; }
.receipt table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.receipt th, .receipt td { text-align: left; padding: 9px 0; border-bottom: 1px solid #e3e3e3; }
.receipt .num { text-align: right; font-family: var(--mono); }
.receipt .total td { font-weight: 700; border-top: 2px solid #111; border-bottom: 0; font-size: 16px; }
.receipt .paid-stamp { display: inline-block; border: 2px solid #1a8f4f; color: #1a8f4f; border-radius: 6px; padding: 3px 12px; font-weight: 700; letter-spacing: .1em; transform: rotate(-4deg); }
.receipt .receipt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; font-size: 14px; }
@media print {
  .site-header, .app__side, .no-print, .skip { display: none !important; }
  body, .app, .app__main { background: #fff; padding: 0; display: block; }
  .receipt { padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* DFM report */
.dfm-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.dfm-item { width: 100%; text-align: left; font: inherit; cursor: pointer; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-left: 3px solid var(--drc-fail); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-high); display: grid; gap: 2px; }
.dfm-item--warning { border-left-color: var(--drc-warn); }
.dfm-item:hover { border-color: var(--copper-primary); }
.dfm-item__rule { font-size: 12px; color: var(--text-low); }
.dfm-item__msg { font-family: var(--mono); font-size: 12.5px; }
.studio__dfm { position: absolute; z-index: 6; top: 104px; left: 12px; width: 340px; max-height: calc(100% - 180px); overflow-y: auto; background: rgba(14, 16, 20, .95); border: 1px solid var(--surface-stroke); border-radius: 10px; padding: 14px 16px; backdrop-filter: blur(8px); }
.studio__dfm h3 { font-size: 15px; margin: 0 0 8px; }
@media (max-width: 640px) { .studio__dfm { width: auto; right: 12px; top: 150px; } }
.studio__bar .btn--danger { background: var(--drc-fail-surface); color: #ffb3b5; }
.studio.dfm-open .qx-viewer__overlay { display: none; }

/* before / after comparison */
.diff-views { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.diff-view { padding: 0; overflow: hidden; }
.diff-view__label { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--surface-stroke); font-weight: 600; font-size: 14px; color: var(--text-pure); }
.diff-view .viewer-box { height: 440px; }
.diff-view .qx-viewer { border-radius: 0; }
.verdict { display: flex; gap: 14px; align-items: flex-start; }
.verdict h3 { font-size: 16px; margin: 0 0 4px; }
.verdict p { margin: 0; font-size: 14px; color: var(--text-med); }
.verdict__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.verdict--ok .verdict__icon { background: var(--drc-pass-surface); color: var(--drc-pass); border: 1px solid rgba(51, 209, 122, .5); }
.verdict--bad .verdict__icon { background: var(--drc-warn-surface); color: var(--drc-warn); border: 1px solid rgba(245, 166, 35, .5); }
.verdict--bad { border-color: rgba(245, 166, 35, .45); }
.diff-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-high); }
.diff-list li { margin: 4px 0; }
@media (max-width: 960px) { .diff-views { grid-template-columns: 1fr; } }

/* ── engineering blog ── */
.post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { margin: 4px 0 0; }
.post-card p { color: var(--text-med); margin: 0; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--text-low); }
.page-hero--post { padding-bottom: 32px; }
.page-hero--post > .container { max-width: 808px; }
.post-meta { color: var(--text-low); font-size: 14px; margin: 12px 0; }
.chip--static:hover { border-color: var(--surface-stroke); }
.post { margin: 0 auto; }
.post figure { margin: 24px 0; }
.post figcaption { color: var(--text-low); font-size: 13.5px; margin-top: 8px; }
.post .formula { font-family: var(--mono); background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; white-space: pre; font-size: 14px; }
.post-cta { max-width: 760px; margin: 48px auto 0; }
.post-cta .btn { margin: 8px 8px 0 0; }
.impedance-out { position: sticky; top: 88px; align-self: start; }
.impedance-out .kv { margin: 14px 0; }
.xsec { margin: 16px 0; }
.xsec svg { width: 100%; height: auto; display: block; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); }
.xsec__diel { fill: #1f3a2a; }
.xsec__plane { fill: #b87333; }
.xsec__trace { fill: #e5a063; }
.xsec__label { fill: var(--text-med); font: 11px var(--mono); }
[data-show][hidden] { display: none; }
button.chip { font: inherit; font-size: 13.5px; background: transparent; color: var(--text-high); cursor: pointer; }

/* ── pricing ── */
.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-card h3 { margin: 0; }
.service-card__price strong { font-size: 26px; color: var(--text-pure); }
.service-card .checklist { margin: 4px 0 0; flex: 1; }
.service-card .btn { align-self: flex-start; }
[data-fab][hidden] { display: none; }

/* ── admin tools ── */
.save-bar { position: sticky; bottom: 0; margin: 14px -24px -24px; padding: 14px 24px; background: var(--surface-elevated); border-top: 1px solid var(--surface-stroke); border-radius: 0 0 var(--radius) var(--radius); z-index: 2; }
.table--compact td { padding: 6px 8px; font-size: 13.5px; }
.cyan { color: var(--signal-cyan); }

/* ── Evidence page: live rule results ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
select.select--inline { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; }
.rules-note { font-size: 13px; margin-top: 12px; }
#rules td:last-child { text-align: right; }
#rules .rule-detail { display: block; font-size: 12px; color: var(--text-low); font-family: var(--mono); margin-top: 2px; }

/* ── viewer core fixes ── */
/* 3D modal: Close never shrinks off-screen; on phones the other actions wrap to a second row */
.modal__head { flex-wrap: wrap; }
.modal__head .name { flex: 1 1 0; min-width: 0; }
.modal__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.modal__close { flex: none; }
.modal__main { flex: 1; min-height: 0; display: flex; position: relative; }
.modal__main > .modal__body { flex: 1 1 0; min-width: 0; }
.modal__drawer { flex: none; width: 340px; overflow-y: auto; padding: 14px 16px; border-left: 1px solid var(--surface-stroke); background: var(--surface-elevated); }
.modal__drawer h3 { font-size: 15px; margin: 0 0 8px; }
/* below 760px the actions would squeeze the file name down to a few letters */
@media (max-width: 760px) {
  .modal__actions { order: 3; flex: 1 1 100%; }
  .modal__close { order: 2; }
}
@media (max-width: 640px) {
  .modal { padding: 8px; }
  .modal__head { padding: 8px 10px; gap: 8px; }
  .modal__actions { gap: 6px; }
  .modal__actions .btn { padding: 6px 8px; font-size: 13px; }
  .modal__close { min-width: 44px; min-height: 40px; }
  .modal__drawer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; width: auto; max-height: 55%; border-left: 0; border-top: 1px solid var(--surface-stroke); box-shadow: 0 -16px 40px rgba(0, 0, 0, .5); }
}
/* embedded viewers on touch screens: one finger scrolls the page, this hint says how to rotate */
.qx-viewer__hint--touch { bottom: auto; top: 50%; transform: translate(-50%, -50%); }
/* before/after slider: vertical swipes scroll the page */
.compare { touch-action: pan-y; }

/* ── client pages fixes ── */
/* order files: a list whose actions wrap below the name in narrow cards */
.file-rows { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.file-row { display: grid; grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr); gap: 8px 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--surface-stroke-soft); }
.file-row:first-child { padding-top: 4px; }
.file-row:last-child { border-bottom: 0; }
.file-row > .file-ext { justify-self: start; margin-top: 1px; }
.file-row__name { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
.file-row__note { font-size: 13.5px; color: var(--text-med); overflow-wrap: anywhere; }
.file-row__meta { font-size: 12.5px; color: var(--text-low); }
.file-row__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@container (min-width: 560px) {
  .file-row { grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) auto; align-items: center; }
  .file-row__actions { grid-column: 3; justify-content: flex-end; }
}
.card__title { flex-wrap: wrap; }
/* standalone viewer page: a slim head strip, the viewer fills the rest of the screen */
.viewer-page { display: flex; flex-direction: column; }
.viewer-page__head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--surface-stroke); background: var(--surface-elevated); }
.viewer-page__name { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; color: var(--text-pure); white-space: nowrap; }
.viewer-page__file { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.viewer-page__body { flex: 1 1 0; position: relative; min-height: 0; }
.viewer-page__body.qx-viewer { height: auto; min-height: 0; border-radius: 0; }
@media (max-width: 640px) { .viewer-page__head { padding: 6px 10px; gap: 6px; } .viewer-page__head .btn { padding: 6px 9px; } .viewer-page__name .file-ext { display: none; } }
/* studio: the control bar and the DFM panel stack in flow, so the panel always
   sits below the bar however many rows the bar wraps to (65px = header + its border) */
.studio { height: calc(100vh - 65px); height: calc(100dvh - 65px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 60px 12px 12px; }
.studio__bar { position: relative; top: auto; left: auto; }
.studio__dfm { position: relative; top: auto; right: auto; left: auto; flex: 0 1 auto; min-height: 0; max-height: none; }
/* an open Layers panel (top right of the viewer) is never covered by the bar */
@media (min-width: 641px) { .studio:has(.qx-viewer__panel:not([hidden])) .studio__bar { max-width: calc(100% - 260px); } }
/* phones: the bar is a strip above the viewer (never over its toolbar), the DFM panel sits between them */
@media (max-width: 640px) {
  .studio { padding: 0; gap: 0; align-items: stretch; }
  .studio__bar { order: -2; gap: 6px; padding: 8px 12px; background: var(--surface-base); border-bottom: 1px solid var(--surface-stroke-soft); }
  .studio__dfm { order: -1; flex: none; width: auto; max-height: 40%; border-width: 0 0 1px; border-radius: 0; }
  .studio__drop { position: relative; inset: auto; flex: 1 1 0; min-height: 0; }
  .studio__drop .qx-viewer { min-height: 0; }
}
/* docs: minmax(0, …) tracks so wide code samples scroll inside the column instead of widening the page */
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.prose pre { max-width: 100%; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.prose .table-scroll > table { margin: 0; }

/* ── security ── */
.sec-enroll { margin-bottom: 18px; line-height: 1.55; }
.sec-enroll strong { color: #ffe3b8; }
.sec-enroll .btn { margin-left: 6px; }
.sec-intro { margin: -6px 0 14px; max-width: 760px; }
.sec-steps { list-style: none; counter-reset: sec-step; margin: 0; padding: 0; display: grid; gap: 22px; }
.sec-steps > li { counter-increment: sec-step; position: relative; padding-left: 40px; }
.sec-steps > li::before { content: counter(sec-step); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: var(--copper-glow); border: 1px solid var(--copper-muted); background: rgba(223, 130, 68, .08); }
.sec-steps h3 { font-size: 15.5px; margin: 0 0 12px; color: var(--text-pure); }
.sec-scan { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.sec-scan > .stack { flex: 1; min-width: 220px; }
.sec-qr-box { flex: none; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--surface-stroke); background: #fff; }
.sec-qr { display: block; width: 216px; height: 216px; }
.sec-secret { display: block; font: 500 15px var(--mono); letter-spacing: .06em; color: var(--text-pure); background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }
.sec-confirm { max-width: 360px; }
input.sec-code-input { font-family: var(--mono); font-size: 20px; letter-spacing: .3em; max-width: 220px; }
.sec-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 36px; background: var(--surface-sunken); border: 1px dashed var(--surface-stroke); border-radius: var(--radius-sm); font: 500 15px var(--mono); color: var(--text-pure); user-select: all; }
.sec-device { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; color: var(--text-pure); }
.sec-ua { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.sec-tfa > p { margin-bottom: 0; }
.sec-sessions th, .sec-sessions td:last-child { white-space: nowrap; }
.sec-event { color: var(--text-high); font-weight: 500; }
.sec-event--alert { color: #ffb3b5; }
.sec-details { overflow-wrap: anywhere; min-width: 180px; }
.sec-more { justify-content: center; margin-top: 12px; }
.mfa-toggle { background: none; border: 0; padding: 0; font: inherit; color: var(--copper-glow); cursor: pointer; }
.mfa-toggle:hover { text-decoration: underline; }
.mfa-links { display: flex; gap: 6px; flex-wrap: wrap; }
#mfa-code { font-family: var(--mono); font-size: 18px; letter-spacing: .12em; }
.audit-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.audit-verify { margin-bottom: 16px; }
.table tr.audit-broken td { background: var(--drc-fail-surface); }
.audit-who { font-size: 13px; }
@media (max-width: 760px) {
  .audit-filters { grid-template-columns: 1fr; }
  .sec-codes { grid-template-columns: 1fr; }
  .sec-qr { width: 190px; height: 190px; }
}

/* ── evidence ── */
/* delivery evidence card on the order page (evidence-card.js) */
.evidence { margin-top: 16px; border-top: 1px solid var(--surface-stroke-soft); padding-top: 16px; }
.evidence__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.evidence__head h3 { margin: 0; font-size: 15px; }
.evidence__head .low { font-size: 12.5px; overflow-wrap: anywhere; }
.evidence__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.evidence__line { font-size: 13px; color: var(--text-high); margin: 0 0 12px; overflow-wrap: anywhere; }
.evidence__line--pending { display: flex; align-items: center; gap: 10px; font-family: var(--font); color: var(--signal-cyan); }
.evidence__spinner { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(44, 229, 229, .25); border-top-color: var(--signal-cyan); animation: evidence-spin .9s linear infinite; }
@keyframes evidence-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .evidence__spinner { animation: pulse 1.6s ease-in-out infinite; } }
.evidence__details { margin-top: 12px; }
.evidence__sub { font-size: 11px; margin: 14px 0 6px; color: var(--text-low); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.evidence__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.evidence__item { display: grid; gap: 2px; font-size: 13px; padding: 6px 10px; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-left: 3px solid var(--drc-fail); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.evidence__item--warning { border-left-color: var(--drc-warn); }
.evidence__rule { font-size: 12px; color: var(--text-low); }
.evidence-checklist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.evidence-checklist li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-med); padding: 6px 10px; border: 1px dashed var(--surface-stroke); border-radius: var(--radius-sm); min-width: 0; flex-wrap: wrap; }
.evidence-checklist li.is-done { color: var(--text-high); border-style: solid; border-color: rgba(51, 209, 122, .35); }
.evidence-checklist__mark { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--surface-stroke); font-size: 11px; color: var(--drc-pass); }
.is-done .evidence-checklist__mark { border-color: rgba(51, 209, 122, .6); background: var(--drc-pass-surface); }
.evidence-checklist__file { font-size: 12px; flex-basis: 100%; padding-left: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence__gate { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.evidence__gate--ok { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9ff0c3; background: var(--drc-pass-surface); border: 1px solid rgba(51, 209, 122, .5); }
.evidence__gate--blocked { color: #ffd89a; background: var(--drc-warn-surface); border: 1px solid rgba(245, 166, 35, .5); }
.evidence__problems { margin: 8px 0 0; padding-left: 18px; color: var(--text-high); font-size: 13.5px; }
.evidence__problems li { margin: 3px 0; overflow-wrap: anywhere; }
.evidence__override { margin-top: 12px; }
.evidence__override textarea { min-height: 64px; }
.evidence__msg { color: #ffb3b5; font-size: 13px; }
/* review page additions (pages/diff.js) */
.review-grid { margin-top: 18px; }
.review-nets { margin-top: 18px; }
.review-sub { font-size: 14px; margin: 18px 0 8px; }
.review-empty { display: flex; gap: 14px; align-items: flex-start; }
.review-empty p { margin: 0; font-size: 14px; color: var(--text-med); }
.review-empty strong { color: var(--text-pure); }
.review-empty .verdict__icon { background: var(--drc-pass-surface); color: var(--drc-pass); border: 1px solid rgba(51, 209, 122, .5); }
.review-fp:disabled { cursor: default; opacity: .7; }
.review-fp.is-active { border-color: var(--signal-cyan); background: rgba(44, 229, 229, .06); }
.review-pairs { margin-bottom: 12px; }
.linklike { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--copper-glow); cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── funnel ── */
/* order builder (order-builder.js): /portal/new and /quote */
.ob-aside { position: sticky; top: 84px; }
.ob-delivery { margin: 6px 0 0; font-size: 13.5px; }
.ob-delivery:empty { display: none; }
.ob-preview-name { margin: -6px 0 10px; font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-restored { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ob-drop__add { display: none; }
.ob-drop.is-compact { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; text-align: left; }
.ob-drop.is-compact .ob-drop__add { display: inline-flex; align-items: center; flex: none; padding: 6px 12px; border: 1px solid var(--copper-muted); border-radius: 999px; color: var(--copper-glow); font-size: 13.5px; font-weight: 600; background: rgba(223, 130, 68, .08); }
.ob-chips { display: contents; list-style: none; }
.ob-drop:not(.is-compact) .ob-chips { display: none; }
.ob-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 8px; border: 1px solid var(--surface-stroke); border-radius: 999px; background: var(--surface-elevated); font-size: 14px; max-width: 100%; min-width: 0; cursor: default; }
.ob-chip .name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.ob-chip .low { font-size: 12px; white-space: nowrap; }
.ob-chip__x { width: 26px; height: 26px; flex: none; border: 0; border-radius: 50%; background: var(--surface-overlay); color: var(--text-high); font-size: 16px; line-height: 1; cursor: pointer; }
.ob-chip__x:hover { background: var(--drc-fail-surface); color: #ffb3b5; }
.ob-account h3 { margin: 0; font-size: 18px; }
.ob-account .linklike { font-size: 14px; }
.ob-bar { display: none; }
.ob-hero { padding: 64px 0 8px; }
.ob-section { padding-top: 24px; }
@media (max-width: 960px) {
  .ob-aside { position: static; }
  .ob-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 9, 10, .94); border-top: 1px solid var(--surface-stroke); backdrop-filter: blur(10px); }
  .ob-bar__text { min-width: 0; }
  .ob-bar__price { font-size: 22px; font-weight: 700; color: var(--text-pure); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
  .ob-bar__price small { font-size: 12px; color: var(--text-low); font-weight: 500; margin-left: 4px; }
  .ob-bar__delivery { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ob-bar .btn { flex: none; }
  body:has(.ob-bar) { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .ob-chip .name { max-width: 150px; }
  .ob-hero { padding: 48px 0 0; }
}

/* home hero: drop-to-quote and the poster shown until the 3D view draws */
.hero-drop { margin-top: 26px; padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; text-align: left; }
.hero-drop .dropzone__icon { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
.hero-drop p { margin: 0; }
.hero-drop.is-busy { opacity: .7; pointer-events: none; }
.hero__poster { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; z-index: 0; opacity: .92; transform: perspective(900px) rotateX(18deg); transition: opacity .4s var(--ease); pointer-events: none; }
.hero__poster.is-hidden { opacity: 0; }
.hero__stage.is-poster .hero__badge { display: none; }
#studio-teaser.is-poster { background: center / 70% no-repeat url('/samples/demo-board-top.svg'), #0b0d10; border-radius: var(--radius); }
@media (max-width: 640px) { .hero-drop { padding: 14px 16px; } }

/* ── compliance ── */
/* order form: export-control declaration and NDA click-through */
.xc-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.xc-group legend { padding: 0; margin-bottom: 8px; }
.xc-option { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); cursor: pointer; font-size: 14.5px; }
.xc-option input { accent-color: var(--copper-primary); margin-top: 4px; flex: none; }
.xc-option > span { display: grid; gap: 2px; min-width: 0; }
.xc-option strong { font-weight: 600; color: var(--text-high); }
.xc-option__hint { font-size: 12.5px; color: var(--text-low); }
.xc-option:has(input:checked) { border-color: var(--copper-primary); background: rgba(223, 130, 68, .07); }
.xc-option:has(input[value="itar"]:checked), .xc-option:has(input[value="unsure"]:checked) { border-color: rgba(229, 72, 77, .6); background: var(--drc-fail-surface); }
.xc-option:has(input:focus-visible) { outline: 2px solid var(--copper-glow); outline-offset: 2px; }
.xc-group.is-invalid .xc-option { border-color: rgba(229, 72, 77, .6); }
.xc-eccn { margin-top: 12px; }
.xc-eccn input { font-family: var(--mono); }
.xc-eccn input[aria-invalid="true"] { border-color: var(--drc-fail); }
.xc-error { margin-top: 10px; }
.xc-nda { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--surface-stroke-soft); }
.xc-nda-done { margin: 14px 0 0; }
/* order page: declaration and file deletion */
.xc-purge { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--surface-stroke-soft); display: grid; gap: 10px; justify-items: start; }
.xc-purge p { margin: 0; }
.file-row.is-purged { opacity: .72; }
.file-row.is-purged .file-row__name { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--text-med); }
/* account settings */
.xc-settings { margin-top: 20px; }
.xc-agreements { list-style: none; padding: 0; margin: 0; }
.xc-agreements li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--surface-stroke-soft); }
.xc-agreements li:last-child { border-bottom: 0; }
.xc-danger { margin-top: 20px; border-color: rgba(229, 72, 77, .35); max-width: 640px; }
/* legal pages */
.legal-address { font-size: 14.5px; color: var(--text-med); }
.nda__meta { font-size: 13px; color: var(--text-low); }
.site-footer__address { font-style: normal; }

/* ── live ── */
/* routing progress stepper (progress-card.js) */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pg-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-low); }
.pg-step__dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); border: 1.5px solid currentColor; }
.pg-step__body { display: grid; gap: 1px; min-width: 0; }
.pg-step__label { font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-high); }
.pg-step__state { font-size: 13px; }
.pg-step__when { font-size: 12px; color: var(--text-low); overflow-wrap: anywhere; }
.pg-step__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pg-step__actions .btn { padding: 4px 9px; font-size: 12px; }
.pg-step.is-started { color: var(--signal-cyan); border-color: rgba(44, 229, 229, .45); background: rgba(44, 229, 229, .05); }
.pg-step.is-started .pg-step__dot { box-shadow: 0 0 10px rgba(44, 229, 229, .45); animation: pg-pulse 1.6s ease-in-out infinite; }
.pg-step.is-done { color: var(--drc-pass); border-color: rgba(51, 209, 122, .4); }
.pg-step.is-done .pg-step__dot { background: var(--drc-pass); color: var(--surface-base); border-color: var(--drc-pass); }
.pg-step.is-blocked { color: var(--drc-warn); border-color: rgba(245, 166, 35, .6); background: var(--drc-warn-surface); }
.pg-step.is-blocked .pg-step__dot { background: var(--drc-warn); color: var(--surface-base); border-color: var(--drc-warn); }
@keyframes pg-pulse { 50% { box-shadow: 0 0 2px rgba(44, 229, 229, .2); } }
@media (prefers-reduced-motion: reduce) { .pg-step.is-started .pg-step__dot { animation: none; } }
.pg-metrics { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--surface-stroke-soft); }
.pg-metric { display: grid; gap: 2px; min-width: 120px; }
.pg-metric__label { font-size: 12px; color: var(--text-low); }
.pg-metric__value { font-size: 17px; color: var(--text-pure); font-variant-numeric: tabular-nums; }
.pg-metric__value.is-good { color: var(--drc-pass); }
.pg-metric__value.is-bad { color: var(--drc-fail); }
.pg-bar { display: block; width: 160px; height: 4px; border-radius: 2px; background: var(--surface-stroke); overflow: hidden; }
.pg-bar span { display: block; height: 100%; background: var(--signal-cyan); }
.pg-empty { margin: 14px 0 0; }
.pg-report { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--surface-stroke-soft); }
.pg-report__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-banner { margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.pg-banner__note { flex-basis: 100%; white-space: pre-wrap; }
.pg-banner__link { font-weight: 600; }
@media (max-width: 1180px) { .pg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pg-steps { grid-template-columns: minmax(0, 1fr); }
  .pg-step { grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; }
  .pg-report__nums { grid-template-columns: minmax(0, 1fr); }
}
/* shipping: order form step and order page card (shipping-fields.js, shipment-card.js) */
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sh-grid .sh-wide { grid-column: 1 / -1; }
.sh-methods { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.sh-note { margin: 12px 0 0; }
.sh-error { margin-top: 12px; }
.sh-step [aria-invalid="true"] { border-color: var(--drc-fail); }
.sh-address { font-style: normal; font-size: 14.5px; line-height: 1.55; color: var(--text-high); }
.sh-phone { margin: 8px 0 0; }
.sh-tracking { margin-top: 14px; }
.sh-tracking dd a { overflow-wrap: anywhere; }
.sh-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--surface-stroke-soft); }
.sh-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.ob-ship-note { margin: 4px 0 0; }
@media (max-width: 640px) { .sh-grid, .sh-form__row { grid-template-columns: minmax(0, 1fr); } }
/* public queue status (queue-status.js) */
.qs { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-elevated); font-size: 14px; color: var(--text-med); }
.qs strong { color: var(--text-pure); font-weight: 600; }
.qs__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--drc-pass); box-shadow: 0 0 8px currentColor; color: var(--drc-pass); transform: translateY(-1px); }
.qs--normal .qs__dot { background: var(--signal-cyan); color: var(--signal-cyan); }
.qs--busy .qs__dot { background: var(--drc-warn); color: var(--drc-warn); }
.qs-slot { margin-top: 18px; max-width: 640px; }
aside .qs-slot { margin-top: 14px; }
/* sidebar counters (side-badges.js) */
.side__count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--copper-primary); color: #160b03; font: 700 11.5px/1.5 var(--mono); text-align: center; }
/* message threads (/portal/messages) and unread markers */
.mt-list { list-style: none; margin: 0; padding: 0; }
.mt-item + .mt-item { border-top: 1px solid var(--surface-stroke-soft); }
.mt-item__link { display: grid; gap: 4px; padding: 14px 10px; color: inherit; border-radius: var(--radius-sm); }
.mt-item__link:hover { background: var(--surface-elevated); text-decoration: none; }
.mt-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mt-item__title { color: var(--text-pure); font-weight: 600; }
.mt-item__last { color: var(--text-med); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mt-item__meta { font-size: 12.5px; }
.mt-item.is-unread .mt-item__last { color: var(--text-high); }
.mt-unread { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--copper-primary); color: #160b03; font-size: 11.5px; font-weight: 700; }
/* admin queue tiles: five, each a filter */
.lv-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat--link { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s; }
.stat--link:hover { border-color: var(--copper-muted); text-decoration: none; }
.stat--alert { border-color: rgba(245, 166, 35, .6); }
.stat--alert .stat__value { color: var(--drc-warn); }
@media (max-width: 1180px) { .lv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── account access: mobile menu and locked admin tools ── */
@media (max-width: 960px) {
  /* sign-in and sign-up come first in the phone menu, not after every sub-menu */
  .nav__account { order: -1; margin: 0 0 8px; padding-bottom: 14px; border-bottom: 1px solid var(--surface-stroke-soft); }
  .nav__account .btn, .nav__account .nav-signin { flex: 1 1 auto; justify-content: center; text-align: center; }
  /* sub-menus open on tap instead of listing every page at once */
  .nav__group .nav__menu, .nav__group .nav__menu--wide { display: none; }
  .nav__group.is-open .nav__menu, .nav__group.is-open .nav__menu--wide { display: grid; }
}
.side a.side__locked { color: var(--text-low); }
.side a.side__locked:hover { color: var(--text-med); }
.side__note { font-size: 12.5px; line-height: 1.45; color: var(--text-low); margin: 0 12px 6px; }
@media (max-width: 960px) { .side__note { display: none; } }

/* ── accounts ── */
/* email confirmation banner (layout.js) and order hold (email-gate.js) */
.acc-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(245, 166, 35, .5); background: var(--drc-warn-surface); color: #ffd89a; font-size: 14px; line-height: 1.5; }
.acc-banner strong { color: #ffe3b8; }
.acc-banner .mono { overflow-wrap: anywhere; }
.acc-banner__text { flex: 1 1 320px; min-width: 0; }
.acc-banner__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-banner__actions .low { color: #ffd89a; }
.acc-banner.is-done { border-color: rgba(51, 209, 122, .5); background: var(--drc-pass-surface); color: #9ff0c3; }
.acc-banner.is-done strong { color: #c8f7dd; }
.acc-hold { display: grid; gap: 8px; line-height: 1.5; }
.acc-hold .mono { overflow-wrap: anywhere; }
.acc-resend { gap: 8px 12px; }
.acc-resend .low { font-size: 13px; }
.acc-email { margin-top: 20px; }
.acc-email__pending { display: grid; gap: 10px; line-height: 1.5; }

/* passkeys: sign-in (login.html) and the security card (passkeys-card.js) */
.acc-passkey { display: grid; gap: 14px; }
.acc-or { display: flex; align-items: center; gap: 12px; color: var(--text-low); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: var(--surface-stroke); }
.acc-passkeys > * + * { margin-top: 14px; }
.acc-passkeys__intro { margin: 0; max-width: 760px; }
.acc-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acc-key { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.acc-key__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--copper-glow); border: 1px solid var(--copper-muted); background: rgba(223, 130, 68, .08); font-size: 17px; }
.acc-key__main { flex: 1 1 220px; min-width: 0; }
.acc-key__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; color: var(--text-pure); overflow-wrap: anywhere; }
.acc-key__actions { display: flex; gap: 8px; margin-left: auto; }
.acc-key__rename { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acc-key__rename input { flex: 1 1 200px; min-width: 0; }

/* staff page (admin-staff.js) */
.acc-team { list-style: none; margin: 0; padding: 0; }
.acc-team__item { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--surface-stroke-soft); }
.acc-team__item:first-child { border-top: 0; padding-top: 0; }
.acc-team__item.is-suspended .acc-team__who { opacity: .65; }
.acc-team__who { flex: 1 1 260px; min-width: 0; }
.acc-team__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; color: var(--text-pure); }
.acc-team__email { overflow-wrap: anywhere; font-size: 13px; }
.acc-team__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.acc-team__role { width: auto; min-width: 150px; }
.acc-team__actions { gap: 8px; }
.acc-warn { color: var(--drc-warn); }
.acc-role--admin { color: var(--copper-glow); border-color: var(--copper-muted); }
.acc-role--engineer { color: var(--signal-cyan); border-color: rgba(44, 229, 229, .35); }
.acc-role--support { color: #c3b5ff; border-color: rgba(167, 139, 250, .4); }
.acc-roles { margin: 0; display: grid; gap: 4px; }
.acc-roles dt { font-weight: 600; color: var(--text-pure); font-size: 14px; }
.acc-roles dd { margin: 0 0 10px; color: var(--text-med); font-size: 13.5px; line-height: 1.5; }
.acc-forbidden { max-width: 640px; }
@media (max-width: 640px) {
  .acc-banner { padding: 12px 14px; }
  .acc-banner__actions, .acc-banner__actions .btn { width: 100%; }
  .acc-key__actions { margin-left: 0; width: 100%; }
  .acc-key__actions .btn { flex: 1; }
  .acc-team__controls { width: 100%; justify-content: flex-start; }
  .acc-team__role { flex: 1 1 100%; }
  .acc-team__actions { width: 100%; }
  .acc-team__actions .btn { flex: 1; }
}

/* ── billing ── */
/* date inputs (coupon validity) look like the other fields */
input[type=date] { width: 100%; padding: 10px 12px; background: var(--surface-sunken); color: var(--text-pure); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); font: inherit; font-size: 15px; color-scheme: dark; }
input[type=date]:focus { border-color: var(--copper-primary); outline: none; box-shadow: 0 0 0 3px rgba(223, 130, 68, .15); }
/* account settings: billing details */
.bd-card { margin-top: 20px; scroll-margin-top: 90px; }
.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.bd-grid .bd-wide { grid-column: span 3; }
.bd-grid .field[hidden] { display: none; }
.bd-check.is-ok { color: var(--drc-pass); }
.bd-check.is-bad { color: #ffb3b5; }
.bd-note { margin: 14px 0; }
@media (max-width: 960px) { .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bd-grid .bd-wide { grid-column: 1 / -1; } }
@media (max-width: 640px) { .bd-grid { grid-template-columns: minmax(0, 1fr); } }
/* order form: "Have a coupon?" in the quote card */
.cp { margin-top: 12px; }
.cp-toggle { font-size: 14px; }
.cp-row { display: flex; gap: 8px; }
.cp-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.cp-row input::placeholder { text-transform: none; }
.cp-row .btn { flex: none; }
.cp-status { margin-top: 8px; font-size: 13.5px; color: var(--text-med); overflow-wrap: anywhere; }
.cp-status:empty { display: none; }
.cp-status.is-ok { color: #9ff0c3; }
.cp-status.is-bad { color: #ffb3b5; }
.cp-status .linklike { margin-left: 4px; }
.price-lines li.is-discount span:last-child { color: var(--drc-pass); }
/* order page and billing page: invoices and credit notes */
.bl-coupon { margin: 0 0 12px; font-size: 14px; color: var(--text-med); }
.bl-docs { list-style: none; margin: 0; padding: 0; }
.bl-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--surface-stroke-soft); }
.bl-doc:last-child { border-bottom: 0; }
.bl-doc__kind { font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal-cyan); padding: 2px 8px; border: 1px solid rgba(44, 229, 229, .35); border-radius: 999px; white-space: nowrap; }
.bl-doc__kind.is-credit { color: var(--drc-warn); border-color: rgba(245, 166, 35, .4); }
.bl-doc__num { color: var(--text-pure); font-size: 13.5px; overflow-wrap: anywhere; }
.bl-doc__amount { font-size: 14px; color: var(--text-high); white-space: nowrap; }
.bl-doc__order { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-form { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--surface-stroke-soft); }
.bl-form > * + * { margin-top: 8px; }
.bl-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.bl-form__row input { flex: 1 1 140px; min-width: 0; }
@media (max-width: 640px) {
  .bl-doc { grid-template-columns: minmax(0, 1fr) auto; }
  .bl-doc__kind { grid-column: 1 / -1; justify-self: start; }
  .bl-doc__amount { grid-column: 2; grid-row: 2; }
  .bl-doc .btn { grid-column: 1 / -1; justify-self: start; }
}
/* admin: invoice register */
.iv-month { min-width: 190px; }
.iv-month select { padding-top: 7px; padding-bottom: 7px; }
.iv-repair { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.iv-stats .stat__value { font-size: 24px; }
.iv-num { color: var(--text-pure); font-size: 13.5px; white-space: nowrap; margin-bottom: 4px; }
.iv-ref { max-width: 180px; overflow-wrap: anywhere; }
.iv-table tr.is-credit td { background: rgba(245, 166, 35, .03); }
@media (max-width: 1180px) { .iv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* tables that become stacked cards on phones (label from data-label) */
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 0; border-bottom: 1px solid var(--surface-stroke-soft); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table--stack td > * { min-width: 0; }
  .table--stack td[data-label]::before { content: attr(data-label); flex: none; color: var(--text-low); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding-top: 2px; }
  .table--stack td:not([data-label]) { justify-content: flex-start; padding-top: 8px; }
  .table--stack td.num { font-family: var(--mono); }
  .table--stack tbody tr:hover td { background: none; }
  .iv-stats .stat__value { font-size: 20px; }
}
/* admin: coupons */
.cp-admin { align-items: start; }
.cp-kinds, .cp-services { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cp-kinds legend, .cp-services legend { width: 100%; }
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-item { padding: 14px 0; border-bottom: 1px solid var(--surface-stroke-soft); display: grid; gap: 4px; }
.cp-item:last-child { border-bottom: 0; }
.cp-item.is-off { opacity: .7; }
.cp-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-item__code { color: var(--text-pure); font-size: 15px; letter-spacing: .03em; }
.cp-item__off { margin-left: auto; font-family: var(--mono); color: var(--copper-glow); font-size: 14px; }
.cp-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-item__actions { display: flex; gap: 8px; }
/* admin pricing: invoices & tax */
.tx-card { margin-top: 24px; }
.tx-rates:empty { display: none; }
.tx-rate { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.4fr) auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px dashed var(--surface-stroke-soft); }
.tx-seller-id { padding: 10px 0; color: var(--text-high); }
@media (max-width: 640px) {
  .tx-rate { grid-template-columns: minmax(0, 1fr) 96px; }
  .tx-rate__countries { grid-column: 1 / -1; }
}
/* admin invoice register: one block per cell, long emails and references wrap */
.iv-cell { min-width: 0; }
.iv-table td.num .iv-cell strong, .iv-table td.num .iv-cell { white-space: nowrap; }
.iv-table td.num .iv-cell .low { white-space: normal; }
@media (max-width: 640px) { .iv-cell { overflow-wrap: anywhere; } }

/* ── 3D viewer: loading placeholder ── */
.qx-viewer__loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; align-content: center; gap: 18px; pointer-events: none; }
.qx-viewer__skeleton {
  width: min(56%, 360px); aspect-ratio: 64 / 42; border-radius: 10px;
  border: 1px solid var(--surface-stroke);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .06) 0 5%, transparent 6%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .06) 0 5%, transparent 6%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, .06) 0 5%, transparent 6%),
    radial-gradient(circle at 92% 88%, rgba(255, 255, 255, .06) 0 5%, transparent 6%),
    linear-gradient(100deg, rgba(47, 122, 76, .18) 30%, rgba(80, 170, 110, .32) 50%, rgba(47, 122, 76, .18) 70%);
  background-size: auto, auto, auto, auto, 250% 100%;
  animation: qx-skeleton 1.4s ease-in-out infinite;
  transform: perspective(700px) rotateX(38deg) rotateZ(-8deg);
}
.qx-viewer__loading-text { font-family: var(--mono); font-size: 13px; color: var(--signal-cyan); }
@keyframes qx-skeleton { from { background-position: 0 0, 0 0, 0 0, 0 0, 120% 0; } to { background-position: 0 0, 0 0, 0 0, 0 0, -120% 0; } }
@media (prefers-reduced-motion: reduce) { .qx-viewer__skeleton { animation: none; } }
.hero__stage .qx-viewer__loading { display: none; } /* the hero shows its poster instead */

/* ── insights ── */
/* admin insights: period picker, KPI tiles, charts (charts.js) */
.in-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding: 14px 18px; margin-bottom: 22px; }
.in-range__presets { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.in-range__presets legend { width: 100%; margin-bottom: 4px; }
.in-chip { position: relative; }
.in-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.in-chip span { display: inline-block; padding: 6px 13px; border: 1px solid var(--surface-stroke); border-radius: 999px; font-size: 14px; color: var(--text-med); }
.in-chip input:checked + span { border-color: var(--copper-primary); color: var(--text-pure); background: rgba(223, 130, 68, .12); }
.in-chip input:focus-visible + span { outline: 2px solid var(--copper-glow); outline-offset: 2px; }
.in-range__custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.in-range__custom .field { width: 160px; }
.in-range__label { margin: 0 0 0 auto; }
.in-h2 { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--text-med); text-transform: uppercase; margin: 26px 0 12px; }
.card > .in-h2:first-child { margin-top: 0; }
.in-h3 { font-size: 16px; margin: 0 0 10px; }
.in-note { margin: -4px 0 14px; }
.in-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.in-kpis--traffic { margin-bottom: 14px; }
.in-kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.in-kpi .stat__value { font-size: 26px; }
.in-kpi__sub { font-size: 12.5px; }
.in-delta { font-size: 13px; font-variant-numeric: tabular-nums; }
.in-delta--good { color: var(--drc-pass); }
.in-delta--bad { color: var(--drc-fail); }
.in-delta--flat { color: var(--text-med); }
.in-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.in-exports { margin-top: 26px; }
.in-exports .in-h2 { margin-top: 0; }
.in-defs { margin-top: 16px; }
.in-defs summary { cursor: pointer; color: var(--text-high); }
.in-defs dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 14px 0 0; font-size: 14px; }
.in-defs dt { color: var(--text-high); font-weight: 600; }
.in-defs dd { margin: 0; color: var(--text-med); }
.chart { margin: 0; padding: 16px 18px; min-width: 0; }
.chart__head h3 { font-size: 16px; margin: 0; }
.chart__summary { margin: 2px 0 10px; font-size: 13px; color: var(--text-low); }
.chart__plot { width: 100%; min-height: 60px; }
.chart__svg { display: block; overflow: visible; font-family: var(--font); }
.chart__grid { stroke: var(--surface-stroke-soft); stroke-width: 1; }
.chart__zero { stroke: var(--surface-stroke); stroke-width: 1; }
.chart__tick { fill: var(--text-low); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart__label { fill: var(--text-high); font-size: 13px; }
.chart__value { fill: var(--text-high); font-size: 13px; font-family: var(--mono); }
.chart__note { fill: var(--text-low); }
.chart__track { fill: rgba(255, 255, 255, .04); }
.chart__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 10px 0 0; font-size: 12.5px; color: var(--text-med); }
.chart__legend li { display: flex; align-items: center; gap: 6px; }
.chart__swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.chart__empty { margin: 8px 0; color: var(--text-low); font-size: 14px; }
.chart__data { margin-top: 10px; font-size: 13px; }
.chart__data summary { cursor: pointer; color: var(--text-med); }
.chart__data .table-wrap { max-height: 280px; overflow: auto; margin-top: 8px; }
.chart__table th, .chart__table td { padding: 6px 10px; }
.chart__table tbody th { font-weight: 400; text-align: left; color: var(--text-high); }
@media (max-width: 1180px) { .in-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .in-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .in-range { padding: 12px 14px; }
  .in-range__label { margin: 0; width: 100%; }
  .in-range__custom .field { width: calc(50% - 5px); }
  .in-kpis { gap: 10px; }
  .in-kpi { padding: 12px 14px; }
  .in-kpi .stat__value { font-size: 21px; }
  .chart { padding: 14px; }
  .in-defs dl { grid-template-columns: minmax(0, 1fr); }
}

/* admin errors & uptime */
.er-top { align-items: start; margin-bottom: 8px; }
.er-top .card__title h2 { font-size: 17px; margin: 0; }
.er-hint { margin: 12px 0 0; }
.er-checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.er-checks li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.er-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; align-self: center; }
.er-dot.is-ok { background: var(--drc-pass); }
.er-dot.is-bad { background: var(--drc-fail); }
.er-hour { max-width: 200px; }
.er-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; font-size: 14px; }
.er-figures dt { color: var(--text-low); font-size: 12.5px; }
.er-figures dd { margin: 0; color: var(--text-high); }
#figures { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--surface-stroke-soft); }
.er-head { margin: 26px 0 12px; align-items: center; }
.er-head h2 { font-size: 20px; margin: 0; }
.er-tabs .btn[aria-pressed="true"] { border-color: var(--copper-primary); color: var(--text-pure); }
.er-items { list-style: none; margin: 0; padding: 0; }
.er-item { padding: 14px 0; border-bottom: 1px solid var(--surface-stroke-soft); display: grid; gap: 6px; min-width: 0; }
.er-item:first-child { padding-top: 0; }
.er-item:last-child { border-bottom: 0; padding-bottom: 0; }
.er-item.is-focus { box-shadow: inset 3px 0 0 var(--copper-primary); padding-left: 12px; }
.er-item__head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.er-item__msg { overflow-wrap: anywhere; color: var(--text-pure); font-weight: 600; }
.er-item__meta { overflow-wrap: anywhere; }
.er-item__stack summary { cursor: pointer; color: var(--text-med); font-size: 13px; }
.er-item__stack pre { margin: 8px 0 0; padding: 10px 12px; background: var(--surface-sunken); border: 1px solid var(--surface-stroke-soft); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre; max-height: 320px; }
@media (max-width: 640px) { .er-figures { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .er-item__head { flex-direction: column; gap: 4px; } }

/* admin blog editor */
.bl-items { list-style: none; margin: 0; padding: 0; }
.bl-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-stroke-soft); }
.bl-item:last-child { border-bottom: 0; }
.bl-item__main { min-width: 0; }
.bl-item__title { color: var(--text-pure); font-weight: 600; overflow-wrap: anywhere; }
.bl-item .low { overflow-wrap: anywhere; font-size: 13px; }
.bl-editor__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.bl-editor__bar #preview-link { margin-left: auto; }
.bl-meta { gap: 14px 18px; }
.bl-desc { grid-row: span 2; }
.bl-desc textarea { min-height: 96px; }
.bl-slug { display: flex; align-items: center; gap: 4px; }
.bl-slug input { flex: 1; min-width: 0; font-family: var(--mono); }
#desc-count { float: right; font-variant-numeric: tabular-nums; }
#desc-count.is-over { color: var(--drc-fail); font-weight: 600; }
.field__hint.is-error { color: var(--drc-fail); }
.bl-cover { margin: 18px 0 0; padding: 16px 18px; }
.bl-cover legend { padding: 0 6px; }
.bl-cover__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.bl-cover__img { aspect-ratio: 1200 / 630; border: 1px dashed var(--surface-stroke); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; background: var(--surface-sunken); }
.bl-cover__img img { width: 100%; height: 100%; object-fit: cover; }
.bl-body { margin-top: 18px; }
.bl-tabs { display: none; gap: 4px; margin-bottom: 8px; }
.bl-tabs [role=tab] { font: inherit; font-size: 14px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--surface-stroke); background: transparent; color: var(--text-med); cursor: pointer; }
.bl-tabs [role=tab][aria-selected="true"] { border-color: var(--copper-primary); color: var(--text-pure); background: rgba(223, 130, 68, .12); }
.bl-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.bl-pane { display: block; min-width: 0; }
.bl-pane textarea { width: 100%; min-height: 460px; font-size: 14px; line-height: 1.6; }
.bl-preview.prose.post { width: 100%; max-width: none; margin: 0; }
.bl-preview { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 4px 20px 16px; background: var(--surface-elevated); max-height: 640px; overflow: auto; max-width: none; }
.bl-preview h2 { font-size: 22px; margin-top: 28px; }
.bl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--surface-stroke-soft); }
.bl-actions__spacer { flex: 1; }
@media (max-width: 1100px) {
  .bl-tabs { display: flex; }
  .bl-panes { grid-template-columns: minmax(0, 1fr); }
  .bl-body[data-tab="write"] #pane-preview, .bl-body[data-tab="preview"] #pane-write { display: none; }
  .bl-preview { max-height: none; }
}
@media (max-width: 640px) {
  .bl-desc { grid-row: auto; }
  .bl-cover__row { grid-template-columns: minmax(0, 1fr); }
  .bl-pane textarea { min-height: 340px; }
  .bl-actions .btn { flex: 1 1 auto; }
  .bl-actions__spacer { display: none; }
}

/* public blog: cover images and the staff preview note */
.post-cover { margin: 0 0 28px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--surface-stroke); }
.post-preview-note { margin-bottom: 20px; }

/* ── extras ── */
/* Theme tokens. Dark is the default (also without JavaScript); theme-init.js
   sets data-theme="light" | "dark" on <html> before the first paint. Every
   text / surface / border / accent pair of the light theme is checked for
   WCAG AA contrast in test/extras.test.js. */
:root {
  --control-border: #6b7382; /* form controls: >= 3:1 against every surface */
  --focus-ring: var(--copper-glow);
  --header-bg: rgba(8, 9, 10, .82);
  --viewer-bg: #0b0d10;
  --viewer-grid: #141820;
  --viewer-grid-center: #1f2630;
  --viewer-chrome: rgba(12, 14, 18, .9);
  --side-bg: #0a0b0d;
  --footer-bg: #070809;
  --text-fail: #ffb3b5;
  --text-pass: #9ff0c3;
  --text-warn: #ffd89a;
  --st-none: #2a2f3a;
}
:root[data-theme="light"] {
  --surface-base: #f6f7f9;
  --surface-sunken: #eceef2;
  --surface-elevated: #ffffff;
  --surface-overlay: #ffffff;
  --surface-stroke: #d3d8df;
  --surface-stroke-soft: #e2e5ea;

  --copper-primary: #df8244;
  --copper-glow: #a3501a;
  --copper-muted: #e9b892;

  --signal-cyan: #00737a;
  --signal-cyan-glow: #005c62;

  --drc-pass: #137a43;
  --drc-pass-surface: #e3f5ea;
  --drc-warn: #8a5a00;
  --drc-warn-surface: #fdf1dc;
  --drc-fail: #c0262d;
  --drc-fail-surface: #fde8e8;

  --text-pure: #0d1016;
  --text-high: #1e2330;
  --text-med: #4a5262;
  --text-low: #5b6372;
  --text-disabled: #9aa1ad;

  --control-border: #7d8594;
  --focus-ring: #a3501a;
  --header-bg: rgba(246, 247, 249, .88);
  --viewer-bg: #e6e9ee;
  --viewer-grid: #d3d7dd;
  --viewer-grid-center: #b4bbc5;
  --viewer-chrome: rgba(255, 255, 255, .94);
  --side-bg: #eef0f3;
  --footer-bg: #eceef2;
  --text-fail: #9b1c22;
  --text-pass: #0f5f33;
  --text-warn: #6e4700;
  --st-none: #cfd4db;
  color-scheme: light;
}

/* controls and focus follow the tokens in both themes */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search], input[type=url], input[type=date], select, textarea { border-color: var(--control-border); }
:focus-visible { outline-color: var(--focus-ring); }
input:focus, select:focus, textarea:focus { border-color: var(--focus-ring); }
.site-header { background: var(--header-bg); }
.app__side { background: var(--side-bg); }
.site-footer { background: var(--footer-bg); }
.qx-viewer { background: var(--viewer-bg); }
.form-error, .toast.is-error, .qx-viewer__status.is-error, .sec-event--alert, .evidence__msg, .bd-check.is-bad, .cp-status.is-bad, .ob-chip__x:hover, .studio__bar .btn--danger { color: var(--text-fail); }
.form-ok, .evidence__gate--ok, .cp-status.is-ok, .acc-banner.is-done { color: var(--text-pass); }
.form-warn, .evidence__gate--blocked, .acc-banner, .acc-banner__actions .low { color: var(--text-warn); }

/* light theme: the rules above that used fixed dark colours */
[data-theme="light"] ::selection { background: rgba(223, 130, 68, .3); color: var(--text-pure); }
[data-theme="light"] .nav__menu { box-shadow: 0 18px 50px rgba(15, 20, 30, .14); }
[data-theme="light"] .nav__menu a:hover, [data-theme="light"] .qx-viewer__btn:hover { background: rgba(15, 20, 30, .05); }
[data-theme="light"] .brand svg { filter: none; }
[data-theme="light"] .feature__num { color: var(--copper-glow); }
[data-theme="light"] .btn--primary:hover { background: #c96f33; border-color: #c96f33; color: #160b03; box-shadow: 0 8px 24px rgba(201, 111, 51, .25); }
[data-theme="light"] .btn--danger { border-color: rgba(192, 38, 45, .55); }
[data-theme="light"] .btn--danger:hover { color: var(--drc-fail); }
[data-theme="light"] .page-hero::after, [data-theme="light"] .hero::after { background-image: linear-gradient(rgba(15, 20, 30, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 20, 30, .05) 1px, transparent 1px); }
[data-theme="light"] .page-hero::before, [data-theme="light"] .hero::before { background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(223, 130, 68, .16), transparent 70%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(0, 115, 122, .07), transparent 70%); }
[data-theme="light"] .card--link:hover { background: #fbfbfc; box-shadow: 0 10px 30px rgba(15, 20, 30, .08); }
[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(15, 20, 30, .04); }
[data-theme="light"] .hero__stage { background: radial-gradient(ellipse at 50% 40%, #ffffff, #e3e7ec 72%); box-shadow: 0 30px 80px rgba(15, 20, 30, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
[data-theme="light"] .hero__badge { background: rgba(255, 255, 255, .9); border-color: rgba(0, 115, 122, .35); }
[data-theme="light"] .compare__label { background: rgba(255, 255, 255, .92); color: var(--text-pure); }
[data-theme="light"] .auth__art { background: radial-gradient(ellipse at 30% 20%, rgba(223, 130, 68, .18), transparent 60%), var(--surface-sunken); }
[data-theme="light"] .auth__art .traces { opacity: .35; }
[data-theme="light"] .table tbody tr:hover td { background: rgba(15, 20, 30, .025); }
[data-theme="light"] .modal { background: rgba(15, 20, 30, .55); }
[data-theme="light"] .modal__box, [data-theme="light"] .toast { box-shadow: 0 24px 70px rgba(15, 20, 30, .2); }
[data-theme="light"] .qx-viewer__group, [data-theme="light"] .qx-viewer__overlay dl, [data-theme="light"] .qx-viewer__panel, [data-theme="light"] .qx-viewer__status,
[data-theme="light"] .qx-viewer__tip, [data-theme="light"] .qx-viewer__inspect, [data-theme="light"] .qx-viewer__hint, [data-theme="light"] .studio__dfm { background: var(--viewer-chrome); box-shadow: 0 4px 16px rgba(15, 20, 30, .08); }
[data-theme="light"] .studio__drop.is-drag::after { background: rgba(255, 255, 255, .88); }
[data-theme="light"] .ob-bar { background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 24px rgba(15, 20, 30, .08); }
[data-theme="light"] .sec-enroll strong, [data-theme="light"] .acc-banner strong { color: #5c3b00; }
[data-theme="light"] .acc-banner.is-done strong { color: #0b4a27; }
[data-theme="light"] .acc-role--support { color: #5b3fc4; border-color: rgba(91, 63, 196, .4); }
[data-theme="light"] .badge--paid, [data-theme="light"] .badge--in_progress { background: rgba(0, 115, 122, .07); border-color: rgba(0, 115, 122, .35); }
[data-theme="light"] .badge--quote_pending, [data-theme="light"] .badge--awaiting_payment, [data-theme="light"] .badge--new, [data-theme="light"] .badge--pending { border-color: rgba(138, 90, 0, .35); }
[data-theme="light"] .badge--delivered, [data-theme="light"] .badge--completed, [data-theme="light"] .badge--handled { border-color: rgba(19, 122, 67, .35); }
[data-theme="light"] .badge--cancelled, [data-theme="light"] .badge--failed { border-color: rgba(192, 38, 45, .35); }
[data-theme="light"] .xsec__diel { fill: #cfe3d6; }
[data-theme="light"] input[type=text], [data-theme="light"] input[type=email], [data-theme="light"] input[type=password], [data-theme="light"] input[type=number],
[data-theme="light"] input[type=tel], [data-theme="light"] input[type=search], [data-theme="light"] input[type=url], [data-theme="light"] input[type=date],
[data-theme="light"] select, [data-theme="light"] textarea { background-color: #ffffff; }
[data-theme="light"] input[type=date] { color-scheme: light; }
/* the receipt is paper in both themes; print stays white */
[data-theme="light"] .receipt { border: 1px solid var(--surface-stroke); }

/* ── theme toggle (header) ── */
.theme-toggle { flex: none; display: grid; place-items: center; width: 38px; height: 36px; padding: 0; margin-left: 4px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: transparent; color: var(--text-med); cursor: pointer; }
.theme-toggle:hover { color: var(--text-pure); border-color: var(--control-border); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle__icon { display: none; }
:root:not([data-theme-pref]) .theme-toggle__icon--system,
[data-theme-pref="system"] .theme-toggle__icon--system, [data-theme-pref="light"] .theme-toggle__icon--light, [data-theme-pref="dark"] .theme-toggle__icon--dark { display: block; }
@media (max-width: 960px) { .nav-toggle { margin-left: auto; } .theme-toggle { margin-left: 8px; } }

/* ── account settings: theme choice ── */
.theme-choice { border: 0; padding: 0; margin-inline: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-choice legend { margin-bottom: 8px; }
.theme-choice__option { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; color: var(--text-high); }
.theme-choice__option:has(input:checked) { border-color: var(--copper-primary); box-shadow: inset 0 0 0 1px var(--copper-primary); }
.theme-choice__option input { accent-color: var(--copper-primary); margin: 0; }
.theme-choice__swatch { width: 100%; height: 34px; border-radius: 6px; border: 1px solid var(--control-border); }
.theme-choice__swatch--light { background: linear-gradient(135deg, #ffffff 0 55%, #df8244 55% 62%, #eceef2 62%); }
.theme-choice__swatch--dark { background: linear-gradient(135deg, #111317 0 55%, #df8244 55% 62%, #050607 62%); }
.theme-choice__swatch--system { background: linear-gradient(135deg, #ffffff 0 50%, #111317 50%); }
@media (max-width: 520px) { .theme-choice { grid-template-columns: 1fr; } .theme-choice__option { flex-direction: row; align-items: center; } .theme-choice__swatch { width: 54px; flex: none; } }
.xs-settings { margin-top: 20px; }

/* ── newsletter: footer form, admin ── */
.nl-form { margin-top: 18px; max-width: 360px; }
.nl-form__label { display: block; font-size: 13.5px; color: var(--text-med); margin-bottom: 6px; }
.nl-form__row { display: flex; gap: 8px; }
.nl-form__row input { flex: 1; min-width: 0; padding: 7px 10px; font-size: 14px; }
.nl-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-form__note { margin: 6px 0 0; font-size: 12.5px; }
.nl-form__note.is-bad { color: var(--text-fail); }
.nl-admin__body { min-height: 260px; font-size: 13.5px; }
.nl-preview { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: #ffffff; color: #333; padding: 18px 20px; max-height: 520px; overflow: auto; }
.nl-preview a { color: #a3501a; }
.nl-preview .low { color: #555; }

/* ── status page ── */
.st-hero { padding-bottom: 32px; }
.st-overall { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--surface-stroke); background: var(--surface-elevated); }
.st-overall h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.st-overall p { margin: 4px 0 0; }
.st-overall__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--drc-pass); box-shadow: 0 0 0 6px var(--drc-pass-surface); }
.st-overall--degraded .st-overall__dot, .st-overall--maintenance .st-overall__dot { background: var(--drc-warn); box-shadow: 0 0 0 6px var(--drc-warn-surface); }
.st-overall--partial_outage .st-overall__dot, .st-overall--major_outage .st-overall__dot { background: var(--drc-fail); box-shadow: 0 0 0 6px var(--drc-fail-surface); }
.st-overall--degraded, .st-overall--maintenance { border-color: var(--drc-warn); }
.st-overall--partial_outage, .st-overall--major_outage { border-color: var(--drc-fail); }
.st-section { border-top: 0; padding-top: 0; }
.st-components { list-style: none; margin: 0; padding: 0; }
.st-component { padding: 16px 0; border-top: 1px solid var(--surface-stroke-soft); }
.st-component:first-child { border-top: 0; padding-top: 4px; }
.st-component__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-component__head h3 { font-size: 16px; margin: 0; }
.st-component__head p { margin: 2px 0 0; }
.st-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.st-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pill--operational { color: var(--drc-pass); background: var(--drc-pass-surface); }
.st-pill--maintenance, .st-pill--degraded { color: var(--drc-warn); background: var(--drc-warn-surface); }
.st-pill--partial_outage, .st-pill--major_outage { color: var(--drc-fail); background: var(--drc-fail-surface); }
.st-bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 30px; margin-top: 12px; }
.st-bar { border-radius: 2px; background: var(--st-none); }
.st-bar--operational { background: var(--drc-pass); }
.st-bar--maintenance { background: var(--signal-cyan); }
.st-bar--degraded { background: var(--drc-warn); }
.st-bar--partial_outage { background: #e8743b; }
.st-bar--major_outage { background: var(--drc-fail); }
.st-bars__legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; }
.st-bars__from-short { display: none; }
.st-legend { display: inline-flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; font-size: 12.5px; }
.st-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; background: var(--st-none); }
.st-key--operational { background: var(--drc-pass); }
.st-key--degraded { background: var(--drc-warn); }
.st-key--major_outage { background: var(--drc-fail); }
.st-active:empty { display: none; }
.st-active { display: grid; gap: 14px; }
.st-recent > h2 { font-size: 20px; margin: 10px 0 12px; }
.st-recent .card + .card { margin-top: 12px; }
.st-incident { border-left: 3px solid var(--surface-stroke); }
.st-incident.is-open.st-incident--minor, .st-incident.is-open.st-incident--maintenance { border-left-color: var(--drc-warn); }
.st-incident.is-open.st-incident--major, .st-incident.is-open.st-incident--critical { border-left-color: var(--drc-fail); }
.st-incident__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-incident__head h3 { margin: 0; font-size: 17px; }
.st-incident > .low { margin: 4px 0 10px; }
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--surface-stroke); }
.st-timeline li { position: relative; padding: 0 0 12px 12px; }
.st-timeline li::before { content: ''; position: absolute; left: -19px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-elevated); border: 2px solid var(--copper-primary); }
.st-timeline__state { font-weight: 600; color: var(--text-pure); font-size: 14px; }
.st-timeline p { margin: 2px 0; font-size: 14.5px; color: var(--text-high); white-space: pre-wrap; }
.st-timeline time { font-size: 12.5px; color: var(--text-low); }
.st-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--drc-warn); background: var(--drc-warn-surface); color: var(--text-high); font-size: 14.5px; }
.st-banner--major, .st-banner--critical { border-color: var(--drc-fail); background: var(--drc-fail-surface); }
.st-banner strong { color: var(--text-pure); }
.st-admin__components { border: 0; padding: 0; margin-inline: 0; margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.st-admin__components legend { margin-bottom: 8px; }
.st-admin__now { list-style: none; margin: 0; padding: 0; }
.st-admin__now li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--surface-stroke-soft); }
.st-admin__now li:first-child { border-top: 0; }
.st-admin .st-incident { padding: 14px 0 14px 14px; border-top: 1px solid var(--surface-stroke-soft); }
.st-admin__update { margin-top: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.st-admin__update textarea { min-height: 70px; }
@media (max-width: 640px) {
  .st-overall { padding: 16px; gap: 14px; }
  .st-bars { grid-template-columns: repeat(30, minmax(0, 1fr)); height: 26px; }
  .st-bar:nth-child(-n+60) { display: none; }
  .st-bars__from { display: none; }
  .st-bars__from-short { display: inline; }
  .st-component__head { flex-direction: column; gap: 6px; }
  .st-admin__components { grid-template-columns: 1fr; }
}

/* ── order again ── */
.oa-panel { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--copper-muted); background: var(--surface-sunken); font-size: 14.5px; }
.oa-panel > * + * { margin-top: 10px; }
.oa-files { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.oa-files legend { margin-bottom: 6px; }
.oa-files .check span { overflow-wrap: anywhere; }
.oa-price { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-elevated); border: 1px dashed var(--surface-stroke); color: var(--text-med); }
.oa-price strong { color: var(--text-pure); }
.ob-chip__tag { flex: none; font: 600 10.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--signal-cyan); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; }
/* ordering again on purpose: the "already ordered" hint would only repeat it */
.ob:has(#order-again) #duplicate { display: none !important; }

/* ── referrals ── */
.rf > * + * { margin-top: 18px; }
.rf-link { display: flex; gap: 8px; }
.rf-link input { flex: 1; min-width: 0; font-size: 14px; }
.rf-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--text-high); font-size: 14.5px; }
.rf-steps strong { color: var(--text-pure); }
.rf-list { list-style: none; margin: 0; padding: 0; }
.rf-item { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--surface-stroke-soft); }
.rf-item:first-child { border-top: 0; }
.rf-item > div:first-child { flex: 1; min-width: 160px; }
.rf-coupon { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--copper-primary); background: var(--surface-sunken); }
.rf-coupon__code { font-size: 18px; font-weight: 700; color: var(--text-pure); letter-spacing: .04em; }
.rf-coupon.is-used { border-color: var(--surface-stroke); opacity: .75; }
.rf-admin__sub { font-size: 14.5px; margin: 6px 0 -4px; }
.rf-admin__table td { vertical-align: top; }
@media (max-width: 520px) { .rf-link { flex-direction: column; } }

/* ── AI profile page (/ai) ── */
.ai-not { list-style: none; padding: 0; margin: 0; }
.ai-not li { position: relative; padding: 8px 0 8px 28px; color: var(--text-high); border-bottom: 1px dashed var(--surface-stroke-soft); }
.ai-not li:last-child { border-bottom: 0; }
.ai-not li::before { content: '×'; position: absolute; left: 4px; top: 6px; font-weight: 700; color: var(--drc-fail); }
.code-block { background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; max-width: 100%; }

/* ── capabilities ── */
/* trust bar: home hero and /quote (capabilities-site.js) */
.trust-bar { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trust-bar a { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-med); text-decoration: none; }
.trust-bar a:hover { color: var(--text-pure); text-decoration: none; }
.trust-bar svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--drc-pass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-bar--stack { display: grid; gap: 7px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--surface-stroke); }
.trust-bar--stack a { font-size: 13px; }
.ob-trust { margin-top: 18px; }
.ob-trust:empty { display: none; }

/* response times on /contact */
.resp-times { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--surface-stroke); border-radius: var(--radius); background: var(--surface-elevated); }
.resp-times h2 { font-size: 16px; margin: 0 0 10px; }
.resp-times dl { margin: 0; display: grid; gap: 8px; }
.resp-times dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; border-top: 1px dashed var(--surface-stroke-soft); padding-top: 8px; }
.resp-times dl > div:first-child { border-top: 0; padding-top: 0; }
.resp-times dt { color: var(--text-med); font-size: 14px; }
.resp-times dd { margin: 0; color: var(--text-pure); font-size: 14.5px; font-weight: 600; }

/* /capabilities */
.cap-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cap-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap-hero { padding-bottom: 40px; }
.cap-hero__cta { margin-top: 26px; }
.cap-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.cap-stats > div { min-width: 140px; padding: 12px 18px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-elevated); }
.cap-stats dt { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); }
.cap-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: var(--text-pure); letter-spacing: -.01em; }
.cap-section { padding: 8px 0 72px; }
.cap-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.cap-nav { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; display: grid; gap: 2px; padding-right: 4px; }
.cap-nav__title { font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); margin: 0 0 8px 12px; }
.cap-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-med); font-size: 14px; line-height: 1.3; border-left: 2px solid transparent; }
.cap-nav a:hover { color: var(--text-pure); background: var(--surface-elevated); text-decoration: none; }
.cap-nav a.is-active { color: var(--text-pure); background: var(--surface-elevated); border-left-color: var(--copper-primary); }
.cap-nav a .cap-icon { width: 17px; height: 17px; color: var(--copper-glow); }
.cap-nav a span:nth-of-type(1) { flex: 1; }
.cap-nav__n { font: 500 11.5px/1 var(--mono); color: var(--text-low); padding: 3px 7px; border-radius: 999px; border: 1px solid var(--surface-stroke); }
.cap-tools { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0 12px; margin-bottom: 18px; background: var(--surface-base); border-bottom: 1px solid var(--surface-stroke-soft); }
.cap-search { position: relative; display: block; flex: 1 1 100%; }
.cap-search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--text-low); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.cap-search input { width: 100%; padding: 11px 14px 11px 40px; font-size: 15px; border-radius: 999px; }
.cap-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-filter__btn { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--surface-stroke); background: transparent; color: var(--text-med); cursor: pointer; }
.cap-filter__btn:hover { color: var(--text-pure); border-color: var(--control-border); }
.cap-filter__btn.is-on { color: var(--text-pure); border-color: var(--copper-primary); background: rgba(223, 130, 68, .12); }
.cap-count { margin: 0 0 0 auto; font-size: 13px; }
.cap-group { margin-bottom: 56px; scroll-margin-top: 196px; }
.cap-group__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.cap-group__head > .cap-icon { width: 42px; height: 42px; padding: 10px; border-radius: 11px; color: var(--copper-glow); background: rgba(223, 130, 68, .1); border: 1px solid var(--copper-muted); }
.cap-group__head h2 { font-size: 24px; margin: 0 0 2px; }
.cap-group__head p { margin: 0; font-size: 14.5px; }
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cap-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface-elevated); border: 1px solid var(--surface-stroke); border-radius: var(--radius); scroll-margin-top: 196px; transition: border-color .2s; }
.cap-card:hover { border-color: var(--copper-muted); }
.cap-card:target { border-color: var(--copper-primary); box-shadow: 0 0 0 3px rgba(223, 130, 68, .22); }
.cap-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-card__head .cap-icon { width: 18px; height: 18px; color: var(--copper-glow); }
.cap-card__head h3 { flex: 1 1 auto; min-width: 0; font-size: 16.5px; margin: 0; }
.cap-card__anchor { color: var(--text-pure); }
.cap-card__anchor:hover { color: var(--copper-glow); text-decoration: none; }
.cap-card > p { margin: 0; color: var(--text-high); font-size: 14.5px; line-height: 1.55; }
.cap-card__details { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.cap-card__details li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-med); overflow-wrap: anywhere; }
.cap-card__details li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--copper-muted); }
.cap-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 8px; font-size: 13.5px; }
.cap-card__foot .link-arrow { font-size: 13.5px; }
.cap-copy { margin-left: auto; font: inherit; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--surface-stroke); background: transparent; color: var(--text-low); cursor: pointer; }
.cap-copy:hover { color: var(--text-pure); border-color: var(--control-border); }
.cap-tag { flex: none; font: 600 10.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; }
.cap-tag--agent { color: var(--signal-cyan); }
.cap-tag--vendor { color: var(--copper-glow); }
.cap-empty { text-align: center; }
.cap-empty h2 { font-size: 20px; }
@media (max-width: 960px) {
  .cap-layout { display: block; }
  .cap-nav { position: sticky; top: 64px; z-index: 6; display: flex; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; margin: 0 -20px; padding: 10px 20px; background: var(--surface-base); border-bottom: 1px solid var(--surface-stroke-soft); scrollbar-width: none; }
  .cap-nav::-webkit-scrollbar { display: none; }
  .cap-nav__title { display: none; }
  .cap-nav a { flex: none; white-space: nowrap; padding: 6px 12px; border: 1px solid var(--surface-stroke); border-radius: 999px; font-size: 13.5px; }
  .cap-nav a.is-active { border-color: var(--copper-primary); background: rgba(223, 130, 68, .12); }
  .cap-nav a .cap-icon { width: 15px; height: 15px; }
  .cap-nav__n { display: none; }
  .cap-tools { position: static; padding-top: 18px; }
  .cap-group { scroll-margin-top: 130px; }
  .cap-card { scroll-margin-top: 130px; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-stats > div { min-width: 0; flex: 1 1 28%; padding: 10px 12px; }
  .cap-stats dt { font-size: 10.5px; letter-spacing: .06em; }
  .cap-stats dd { font-size: 17px; }
  .cap-group__head h2 { font-size: 21px; }
}

/* Admin -> Pricing -> Support & response times */
.sp-card { margin-top: 24px; }

/* /accessibility */
.a11y-h { font-size: 19px; margin-bottom: 12px; }
.a11y-limits { list-style: none; padding: 0; margin: 0; }
.a11y-limits li { position: relative; padding: 9px 0 9px 26px; color: var(--text-high); border-bottom: 1px dashed var(--surface-stroke-soft); }
.a11y-limits li:last-child { border-bottom: 0; }
.a11y-limits li::before { content: ''; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 2px; background: var(--drc-warn); }

/* ── proof ── */
/* stars: ratings on the public pages, the feedback form and admin */
.pf-stars { color: var(--copper-primary); letter-spacing: 2px; font-size: 15px; white-space: nowrap; }
.pf-stars__off { color: var(--surface-stroke); }
/* testimonials (home, pricing) */
.pf-aggregate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 14px 0 0; font-size: 15px; }
.pf-aggregate .pf-stars { font-size: 18px; }
.pf-aggregate strong { color: var(--text-pure); font-size: 18px; }
.pf-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pf-quote { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-quote blockquote { margin: 0; flex: 1; }
.pf-quote blockquote p { margin: 0; color: var(--text-high); font-size: 15.5px; line-height: 1.6; white-space: pre-line; }
.pf-quote figcaption { display: grid; gap: 2px; font-size: 13.5px; color: var(--text-med); }
.pf-quote figcaption strong { color: var(--text-pure); font-size: 14.5px; }
.pf-note { margin: 14px 0 0; }
@media (max-width: 960px) { .pf-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pf-quotes { grid-template-columns: 1fr; } }
/* "By the numbers" */
.pf-numbers h2.eyebrow { display: block; margin: 0 0 12px; }
.pf-numbers__grid { grid-template-columns: repeat(var(--pf-cols, 4), minmax(0, 1fr)); }
@media (max-width: 760px) {
  .pf-numbers__grid { grid-template-columns: 1fr 1fr; }
  .pf-numbers__grid > div { border-bottom: 1px solid var(--surface-stroke); }
  .pf-numbers__grid > div:nth-child(2n) { border-right: 0; }
  .pf-numbers__grid dd { font-size: 22px; }
  .pf-numbers__grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-bottom: 0; }
}
/* feedback form (/feedback) */
.pf-feedback .auth__box { max-width: 520px; }
.pf-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.pf-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pf-rate label { cursor: pointer; font-size: 36px; line-height: 1; padding: 4px; color: var(--surface-stroke); border-radius: var(--radius-sm); transition: color .12s var(--ease), transform .12s var(--ease); }
.pf-rate label:hover, .pf-rate label:hover ~ label, .pf-rate input:checked ~ label { color: var(--copper-primary); }
.pf-rate input:focus-visible + label { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pf-rate label:active { transform: scale(.92); }
.pf-rate-wrap { gap: 2px; }
.pf-rate__label { min-height: 1.4em; }
.pf-consent { padding: 12px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.pf-quote-fields { border: 0; padding: 0; margin: 0; }
.pf-feedback fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pf-feedback legend { padding: 0; }
@media (max-width: 520px) { .pf-rate label { font-size: 40px; padding: 2px 3px; } }
/* evidence library: sample report */
.pf-sample { margin-top: 18px; flex-wrap: wrap; }
/* case studies */
.pf-case-grid { align-items: stretch; }
.pf-case-card { display: flex; flex-direction: column; gap: 8px; }
.pf-case-card h3 { margin: 0; }
.pf-case-card p { margin: 0; color: var(--text-med); }
.pf-case__text h2 { font-size: 22px; margin: 28px 0 10px; padding-top: 0; }
.pf-case__text h2:first-child { margin-top: 0; }
.pf-case .kv dd { text-align: right; }
.pf-case .kv + p { margin: 12px 0 0; }
.pf-case-3d .viewer-box { height: 420px; }
@media (max-width: 640px) { .pf-case-3d .viewer-box { height: 300px; } }
/* account settings */
.pf-mine-card { margin-top: 18px; }
.pf-mine { list-style: none; margin: 0; padding: 0; }
.pf-mine li { padding: 12px 0; border-top: 1px solid var(--surface-stroke-soft); display: grid; gap: 6px; }
.pf-mine li:first-child { border-top: 0; }
.pf-mine__comment { margin: 0; color: var(--text-high); white-space: pre-line; }
.pf-mine .row { justify-content: space-between; flex-wrap: wrap; }
/* admin */
.pf-admin__table td { vertical-align: top; }
.pf-admin__comment { min-width: 220px; max-width: 420px; }
.pf-admin__comment p { white-space: pre-line; }
.pf-admin__actions { white-space: nowrap; }
.pf-admin__actions .btn + .btn { margin-left: 6px; }
.pf-admin__edit { padding: 6px 0; }
.pf-admin__consent { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.pf-admin__preview { padding: 10px 12px; border: 1px dashed var(--surface-stroke); border-radius: var(--radius-sm); margin-top: 8px; }
.pf-admin__cases { list-style: none; margin: 0; padding: 0; }
.pf-admin__cases li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--surface-stroke-soft); }
.pf-admin__cases li:first-child { border-top: 0; }
.pf-admin__table td:first-child .mono { white-space: nowrap; }
@media (max-width: 640px) {
  /* phones: one card per rating instead of a sideways-scrolling table */
  .pf-admin__table thead { display: none; }
  .pf-admin__table, .pf-admin__table tbody, .pf-admin__table tr, .pf-admin__table td { display: block; width: 100%; }
  .pf-admin__table tr { padding: 12px 0; border-top: 1px solid var(--surface-stroke-soft); }
  .pf-admin__table tr:first-child { border-top: 0; }
  .pf-admin__table td { border: 0; padding: 4px 0; max-width: none; min-width: 0; }
  .pf-admin__actions { white-space: normal; }
}

/* ── custom design request (/portal/design) ── */
.dr-checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.dr-parts { display: grid; gap: 14px; margin-bottom: 14px; }
.dr-part { border: 1px solid var(--surface-stroke); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.dr-part__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dr-part__head h3 { margin: 0; font-size: 15px; }
.dr-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dr-file { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.dr-file__name { overflow-wrap: anywhere; }
.dr-file select { max-width: 190px; }
.dr-drop { padding: 22px; text-align: center; }
.dr-drop.is-over { outline: 2px dashed var(--copper-primary); }
.dr-steps { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.dr-aside { align-self: start; position: sticky; top: 84px; }
.brief-kv dd { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .dr-aside { position: static; }
  .dr-file { grid-template-columns: 1fr; }
  .dr-file select { max-width: none; }
}
/* six design stages: two rows of three (one column on phones) */
@media (min-width: 641px) { .pg-steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-steps--6 .pg-step__label { overflow-wrap: anywhere; }
/* six-stage design pipeline (/design): one row on wide screens, a column below */
.pipeline--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pipeline--6 .pipeline__step { padding: 22px 16px; }
@media (max-width: 1100px) {
  .pipeline--6 { grid-template-columns: 1fr; }
  .pipeline--6 .pipeline__step, .pipeline--6 .pipeline__step:first-child, .pipeline--6 .pipeline__step:last-child { border-radius: 0; border-left: 1px solid var(--surface-stroke); }
  .pipeline--6 .pipeline__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .pipeline--6 .pipeline__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .pipeline--6 .pipeline__step + .pipeline__step { border-top: 0; }
  .pipeline--6 .pipeline__step::after { right: 30px; top: auto; bottom: -8px; transform: rotate(135deg); }
}
/* two ways to work with us (home) */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.paths .card { display: flex; flex-direction: column; gap: 10px; }
.paths .card .row { margin-top: auto; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.hero__alt { margin: 14px 0 0; font-size: 15px; } .hero__alt a { color: var(--copper-primary); font-weight: 600; }
.service-card--wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .service-card--wide { grid-template-columns: 1fr; } }

/* ══ marketing system v2 (home, /offline, /compare, /tools) ══ */
.mk-hero { position: relative; padding: 72px 0 56px; overflow: hidden; isolation: isolate; }
.mk-hero__grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 78% 30%, rgba(223, 130, 68, .16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(44, 229, 229, .07), transparent 70%),
    linear-gradient(var(--surface-stroke-soft) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--surface-stroke-soft) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 85%); }
.mk-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mk-hero__stage { height: 600px; }
.mk-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--surface-stroke); background: var(--surface-elevated); color: var(--text-high); font-size: 13.5px; margin-bottom: 26px; text-decoration: none; }
.mk-pill:hover { border-color: var(--copper-primary); text-decoration: none; }
.mk-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--drc-pass); box-shadow: 0 0 0 4px rgba(51, 209, 122, .15); flex: none; }
.mk-display { font-size: clamp(38px, 3.9vw, 58px); line-height: 1; letter-spacing: -.05em; margin-bottom: 24px; }
.mk-display .grad { background: linear-gradient(100deg, var(--copper-glow), var(--copper-primary) 45%, var(--signal-cyan) 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-med); max-width: 600px; }
.mk-hero__cta { margin-top: 30px; gap: 12px; }
.mk-drop { margin-top: 22px; }
.mk-drop p { margin: 0; }
.mk-telemetry { margin-top: 40px; }
.mk-telemetry__note { margin-top: 10px; }
.mk-head { max-width: 820px; }
.mk-head h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; }
.mk-more { margin-top: 26px; }

.mk-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.mk-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 18px; border: 1px solid var(--surface-stroke); background: var(--surface-elevated); color: var(--text-high); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); overflow: hidden; }
.mk-tile:hover { border-color: var(--copper-primary); transform: translateY(-2px); text-decoration: none; }
.mk-tile h3 { margin: 0; font-size: 21px; }
.mk-tile p { margin: 0; color: var(--text-med); font-size: 15px; }
.mk-tile .link-arrow { margin-top: auto; padding-top: 12px; }
.mk-tile__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-cyan); }
.mk-tile--hero { grid-column: span 2; grid-row: span 2; background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(223, 130, 68, .2), transparent 70%), var(--surface-elevated); border-color: var(--copper-muted); }
.mk-tile--hero h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; }
.mk-tile--hero p { font-size: 16.5px; max-width: 520px; }
.mk-tile--wide { grid-column: span 2; }
.mk-tile__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14.5px; color: var(--text-high); }
.mk-tile__list li::before { content: '✓'; color: var(--drc-pass); margin-right: 8px; font-weight: 700; }

.mk-band { background: linear-gradient(180deg, var(--surface-sunken), var(--surface-base)); }
.mk-versus { border: 1px solid var(--surface-stroke); border-radius: 18px; overflow: hidden; background: var(--surface-elevated); }
.mk-versus__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.15fr); border-top: 1px solid var(--surface-stroke-soft); }
.mk-versus__row:first-child { border-top: 0; }
.mk-versus__row > span { padding: 16px 22px; font-size: 15px; color: var(--text-med); }
.mk-versus__row > span[role="rowheader"] { color: var(--text-high); font-weight: 600; }
.mk-versus__row > span.is-us { color: var(--text-pure); background: rgba(223, 130, 68, .07); border-left: 1px solid var(--copper-muted); }
.mk-versus__row > span.is-us::before { content: '✓'; color: var(--drc-pass); font-weight: 700; margin-right: 10px; }
.mk-versus__row--head > span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-low); padding-top: 18px; padding-bottom: 18px; }
.mk-versus__row--head > span.is-us { color: var(--copper-glow); }
.mk-versus__row--head > span.is-us::before { content: none; }
.mk-footnote { margin-top: 14px; }

.mk-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.mk-path li { position: relative; padding: 22px 20px; border: 1px solid var(--surface-stroke); border-radius: 16px; background: var(--surface-elevated); }
.mk-path li:not(:last-child)::after { content: ''; position: absolute; top: 38px; right: -15px; width: 16px; height: 2px; background: linear-gradient(90deg, var(--copper-primary), var(--signal-cyan)); }
.mk-path h3 { font-size: 17px; margin: 14px 0 6px; }
.mk-path p { font-size: 14.5px; color: var(--text-med); margin: 0; }
.mk-path__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--mono); font-size: 14px; color: var(--copper-glow); border: 1px solid var(--copper-muted); background: rgba(223, 130, 68, .08); }
.mk-path li:nth-child(3) { border-color: var(--drc-pass); background: linear-gradient(180deg, rgba(51, 209, 122, .08), transparent 60%), var(--surface-elevated); }
.mk-path li:nth-child(3) .mk-path__n { color: var(--drc-pass); border-color: var(--drc-pass); background: rgba(51, 209, 122, .1); }
.mk-cta h2 { font-size: clamp(28px, 3.4vw, 42px); }

@media (max-width: 1080px) {
  .mk-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .mk-hero__stage { height: 420px; }
  .mk-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-path li::after { display: none; }
}
@media (max-width: 720px) {
  .mk-hero { padding: 40px 0 36px; }
  .mk-hero__stage { height: 320px; }
  .mk-bento { grid-template-columns: 1fr; }
  .mk-tile--hero, .mk-tile--wide { grid-column: auto; grid-row: auto; }
  .mk-tile__list { grid-template-columns: 1fr; }
  .mk-path { grid-template-columns: 1fr; }
  .mk-versus__row { grid-template-columns: 1fr; }
  .mk-versus__row--head { display: none; }
  .mk-versus__row > span { padding: 10px 18px; }
  .mk-versus__row > span[role="rowheader"] { padding-top: 16px; }
  .mk-versus__row > span[role="cell"]:not(.is-us)::before { content: 'Cloud AI tools: '; color: var(--text-low); }
  .mk-versus__row > span.is-us { border-left: 0; border-top: 1px solid var(--copper-muted); padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mk-tile { transition: none; } .mk-tile:hover { transform: none; } }
.mk-hero--page { padding: 72px 0 64px; }
.mk-hero--page .mk-lead { max-width: 720px; }
.mk-bento--even { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.mk-where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mk-where__col { padding: 26px; border: 1px solid var(--surface-stroke); border-radius: 18px; background: var(--surface-elevated); }
.mk-where__col h3 { margin: 8px 0 14px; }
.mk-where__col--offline { border-color: var(--drc-pass); background: linear-gradient(180deg, rgba(51, 209, 122, .08), transparent 55%), var(--surface-elevated); }
.mk-card--us { border-color: var(--copper-muted); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(223, 130, 68, .14), transparent 70%), var(--surface-elevated); }
.mk-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.mk-group-title { font-size: 15px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-low); font-weight: 500; margin: 0 0 16px; }
@media (max-width: 1080px) { .mk-bento--even, .mk-where, .mk-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .mk-bento--even, .mk-where, .mk-tools { grid-template-columns: 1fr; } }
/* ── tools: electrical calculators ── */
.table-scroll { overflow-x: auto; }
#out-table caption { caption-side: top; text-align: left; padding: 0 0 8px; }
#out-table th[scope="row"] { font-weight: 500; color: var(--text-med); }
#out-table tr.is-selected th, #out-table tr.is-selected td { color: var(--text-pure); background: var(--surface-overlay); font-weight: 600; }
#out-table tr.is-selected th { box-shadow: inset 3px 0 0 var(--copper-primary); }
/* ── tools: stackup and BOM ── */
.su-figure { margin: 0; }
.su-figure svg { width: 100%; height: auto; max-height: 560px; display: block; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); }
.su-plane { fill: #b87333; }
.su-core { fill: #2a4a36; }
.su-guide { fill: var(--surface-stroke); }
.su-label-low { fill: var(--text-low); }
.su-num { max-width: 110px; text-align: right; }
.su-diel-row th, .su-diel-row td { padding-top: 6px; padding-bottom: 6px; }
.su-pre { white-space: pre; overflow-x: auto; margin: 12px 0 0; padding: 14px; font-size: 12.5px; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); }
#bom-filter .chip, #bom-filter .chip:hover { cursor: pointer; background: transparent; margin-bottom: 0; }
#bom-filter .chip[aria-pressed="true"] { border-color: var(--copper-primary); color: var(--text-pure); }
[data-theme="light"] .su-core { fill: #b9d6c3; }

/* ── power-on test (order page) ── */
.pt-card { display: grid; gap: 18px; }
.pt-block { border-top: 1px solid var(--surface-stroke-soft); padding-top: 16px; }
.pt-block:first-of-type { border-top: 0; padding-top: 0; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-head h3 { margin: 0; font-size: 16px; }
.pt-issues { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.pt-issues li { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--surface-stroke); }
.pt-issues li.is-error { border-color: var(--drc-fail); background: var(--drc-fail-surface); }
.pt-issues li.is-warning { border-color: var(--drc-warn); background: var(--drc-warn-surface); }
.pt-steps summary { cursor: pointer; font-weight: 600; }
.pt-steps ol { margin: 12px 0 8px; display: grid; gap: 6px; }
.pt-form { border-top: 1px dashed var(--surface-stroke); padding-top: 16px; }
.pt-rail { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .pt-rail { grid-template-columns: 1fr 1fr; } }
.mk-steps-list { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.pt-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.pt-rails { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pt-rail-chip { font-size: 13px; padding: 4px 10px; border: 1px solid var(--surface-stroke); border-radius: 999px; color: var(--text-med); }
.pt-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pt-check { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 10px 12px; }
.pt-check.is-fail { border-color: var(--drc-fail); }
.pt-check.is-warn { border-color: var(--drc-warn); }
.pt-check__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.pt-note { margin: 6px 0 0; }
.pt-issues li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pt-locate { flex: none; }
.pt-rails-table input { width: 100%; min-width: 70px; }
.badge--draft { color: var(--text-low); border-color: var(--surface-stroke); }
@media (max-width: 1000px) { .pt-tool { grid-template-columns: minmax(0, 1fr); } }
.mk-tile--feature { border-color: var(--copper-muted); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(223, 130, 68, .16), transparent 70%), var(--surface-elevated); }
.pt-mini { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 14.5px; display: grid; gap: 4px; }
.pt-mini.is-fail { border-color: var(--drc-fail); background: var(--drc-fail-surface); }
.pt-mini.is-warn { border-color: var(--drc-warn); background: var(--drc-warn-surface); }
.pt-mini.is-pass { border-color: var(--drc-pass); background: var(--drc-pass-surface); }
.pt-tool > * { min-width: 0; }
.pt-group { border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); margin-top: 10px; }
.pt-group > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; list-style: none; }
.pt-group > summary::-webkit-details-marker { display: none; }
.pt-group > summary > span:first-child { flex: 1; }
.pt-group > .pt-checks { padding: 0 10px 10px; }
.pt-group.is-fail { border-color: var(--drc-fail); }
.pt-group.is-warn { border-color: var(--drc-warn); }
.pt-issues li.is-info { border-color: var(--surface-stroke); }
.pt-howgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-howgrid .mk-tile ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-med); }
.pt-howgrid .mk-tile li strong { color: var(--text-high); }
@media (max-width: 860px) { .pt-howgrid { grid-template-columns: minmax(0, 1fr); } }
.pt-print-head { display: none; }
.pt-actions { display: grid; gap: 10px; justify-items: start; }
@media print {
  .site-header, .site-footer, .mk-hero, #how, .mk-band, .faq, .section:not(.section--tight), #pt-drop, .pt-tool > .stack-cards, .pt-actions, .pt-locate, .skip, .acc-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .pt-tool { display: block; }
  .card, .pt-group, .pt-check { background: #fff !important; border-color: #999 !important; box-shadow: none !important; break-inside: avoid; }
  .pt-print-head { display: block; font-size: 12px; color: #333; }
  .pt-card *, .pt-card { color: #000 !important; }
  .pt-card .badge { background: #fff !important; border: 1px solid #000 !important; }
}

.billing-promise { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .billing-promise { grid-template-columns: 1fr; } }

/* ══ motion (public/js/motion.js): only with html.motion, never with reduced motion ══ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* sections rise into view, siblings one after another */
.motion .rv { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(4px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms), filter .7s ease var(--rv-delay, 0ms); }
.motion .rv.is-in { opacity: 1; transform: none; filter: none; }

/* hero copy arrives on load */
.motion .mk-hero__copy > *, .motion .mk-hero--page .container > * { animation: mx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion .mk-hero__copy > :nth-child(2), .motion .mk-hero--page .container > :nth-child(2) { animation-delay: .08s; }
.motion .mk-hero__copy > :nth-child(3), .motion .mk-hero--page .container > :nth-child(3) { animation-delay: .16s; }
.motion .mk-hero__copy > :nth-child(4), .motion .mk-hero--page .container > :nth-child(4) { animation-delay: .24s; }
.motion .mk-hero__copy > :nth-child(n+5), .motion .mk-hero--page .container > :nth-child(n+5) { animation-delay: .32s; }
.motion .mk-hero__stage { animation: mx-stage 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
@keyframes mx-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes mx-stage { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* the gradient headline shimmers slowly */
.motion .grad { background-size: 220% 100% !important; animation: mx-shimmer 7s ease-in-out infinite alternate; }
@keyframes mx-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* the live dot breathes */
.motion .mk-pill__dot { animation: mx-breathe 2.4s ease-in-out infinite; }
@keyframes mx-breathe { 50% { box-shadow: 0 0 0 7px rgba(51, 209, 122, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(51, 209, 122, .45); } }

/* hero circuits: copper that routes itself, then signal pulses along it */
.mx-circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .55;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 30%, transparent 80%); }
.mx-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mx-trace__copper { stroke: var(--copper-primary); stroke-opacity: .32; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mx-route 2.4s cubic-bezier(.6, 0, .2, 1) var(--d) forwards; }
.mx-trace__pulse { stroke: var(--copper-glow); stroke-width: 2.6; stroke-dasharray: .05 .95; stroke-dashoffset: 1.05; opacity: 0; filter: drop-shadow(0 0 4px var(--copper-glow)); animation: mx-pulse var(--p) linear calc(var(--d) + 2.4s) infinite; }
.mx-trace--cyan .mx-trace__pulse { stroke: var(--signal-cyan); filter: drop-shadow(0 0 4px var(--signal-cyan)); }
.mx-trace__via { fill: var(--surface-base, #08090a); stroke: var(--copper-primary); stroke-opacity: .6; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mx-via .5s ease calc(var(--d) + 2.2s) forwards; }
.mx-circuit.is-paused * { animation-play-state: paused; }
@keyframes mx-route { to { stroke-dashoffset: 0; } }
@keyframes mx-pulse { 0% { stroke-dashoffset: 1.05; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes mx-via { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
[data-theme="light"] .mx-circuit { opacity: .4; }

/* cursor spotlight on cards, bands and heroes */
.motion .mx-lit { position: relative; }
.motion .mx-lit::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(223, 130, 68, .13), transparent 62%); }
.motion .mk-hero.mx-lit::before { z-index: -1; background: radial-gradient(640px circle at var(--mx) var(--my), rgba(223, 130, 68, .09), transparent 65%); }
.motion .mk-tile > *, .motion .service-card > *, .motion .ct-card > *, .motion .lab-inst > * { position: relative; z-index: 1; }

/* cards tilt slightly toward the cursor */
.motion .mk-tile, .motion .service-card { transition: border-color .2s var(--ease), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, opacity .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms), filter .7s ease var(--rv-delay, 0ms); }
.motion .mk-tile.mx-lit, .motion .service-card.mx-lit, .motion .card--link.mx-lit, .motion .uc-card.mx-lit, .motion .ct-card.mx-lit { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); box-shadow: 0 24px 60px -30px rgba(223, 130, 68, .45); transition-delay: 0ms; }

/* the data path: a packet travels the connectors, the offline step glows */
.motion .mk-path li:not(:last-child)::after { background: linear-gradient(90deg, var(--copper-primary) 0 30%, var(--copper-glow) 45%, var(--signal-cyan) 55%, var(--copper-primary) 70% 100%); background-size: 300% 100%; animation: mx-packet 2.2s linear infinite; box-shadow: 0 0 8px rgba(223, 130, 68, .5); }
.motion .mk-path li:nth-child(2)::after { animation-delay: .44s; }
.motion .mk-path li:nth-child(3)::after { animation-delay: .88s; }
.motion .mk-path li:nth-child(4)::after { animation-delay: 1.32s; }
@keyframes mx-packet { from { background-position: 100% 0; } to { background-position: 0 0; } }
.motion .mk-path li:nth-child(3) { animation: mx-guard 3.2s ease-in-out infinite; }
@keyframes mx-guard { 50% { box-shadow: 0 0 0 1px rgba(51, 209, 122, .35), 0 0 36px -6px rgba(51, 209, 122, .45); } }

/* the signal steps through the path: each number lights in turn */
.motion .mk-path__n { animation: mx-node 5s ease-in-out infinite; }
.motion .mk-path li:nth-child(2) .mk-path__n { animation-delay: 1s; }
.motion .mk-path li:nth-child(3) .mk-path__n { animation-delay: 2s; }
.motion .mk-path li:nth-child(4) .mk-path__n { animation-delay: 3s; }
.motion .mk-path li:nth-child(5) .mk-path__n { animation-delay: 4s; }
@keyframes mx-node { 0%, 22%, 100% { box-shadow: none; } 8% { box-shadow: 0 0 0 5px rgba(223, 130, 68, .18), 0 0 22px rgba(223, 130, 68, .65); } }

/* magnetic calls to action with a light sweep */
.motion .mx-magnet { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s, border-color .2s, box-shadow .25s; position: relative; overflow: hidden; }
.motion .btn--primary.mx-magnet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.motion .btn--primary.mx-magnet:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.motion .btn--primary.mx-magnet:hover { box-shadow: 0 10px 30px -10px rgba(223, 130, 68, .7); }

/* reading progress along the top of marketing pages */
@supports (animation-timeline: scroll()) {
  .motion body.shell-site::after { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--copper-primary), var(--signal-cyan)); animation: mx-progress linear both; animation-timeline: scroll(root); }
  @keyframes mx-progress { to { transform: scaleX(1); } }
}

@media print { .mx-circuit { display: none; } .motion .rv { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── safe areas: the viewport covers the whole screen (viewport-fit=cover in layout.js) ── */
/* landscape phones: keep content clear of the notch and rounded corners (both 0 elsewhere) */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
/* the Android and iOS apps (mobile/): html.is-native is set by js/native-bridge.js. Capacitor on
   Android also provides --safe-area-inset-* where the WebView's env() values are not reliable. */
.is-native {
  --sa-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sa-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sa-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --sa-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
}
.is-native body { padding: 0 var(--sa-right) var(--sa-bottom) var(--sa-left); }
.is-native .site-header { padding-top: var(--sa-top); }
.is-native .side { top: calc(64px + var(--sa-top)); height: calc(100vh - 64px - var(--sa-top)); }
.is-native .viewer-page { top: calc(64px + var(--sa-top)); bottom: var(--sa-bottom); }
.is-native .toast { bottom: calc(24px + var(--sa-bottom)); }
.is-native .ob-bar { padding-bottom: calc(10px + var(--sa-bottom)); }
.is-native .modal { padding: calc(18px + var(--sa-top)) calc(18px + var(--sa-right)) calc(18px + var(--sa-bottom)) calc(18px + var(--sa-left)); }
@media (max-width: 960px) {
  .is-native .nav { top: calc(64px + var(--sa-top)); max-height: calc(100vh - 64px - var(--sa-top)); padding-bottom: calc(20px + var(--sa-bottom)); }
}

/* ══ /contact ══ */
.ct-hero { padding-bottom: 56px; }
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.ct-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid var(--surface-stroke); background: color-mix(in srgb, var(--surface-elevated) 88%, transparent); backdrop-filter: blur(8px); color: var(--text-high); text-decoration: none; overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease); }
a.ct-card:hover { border-color: var(--copper-primary); transform: translateY(-2px); text-decoration: none; }
.ct-card__icon { color: var(--copper-primary); margin-bottom: 8px; padding: 9px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--copper-muted); background: rgba(223, 130, 68, .08); }
.ct-card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-cyan); }
.ct-card__value { font-size: 17px; font-weight: 600; font-style: normal; line-height: 1.45; overflow-wrap: anywhere; }
.ct-card__note, .ct-card__links { font-size: 13.5px; color: var(--text-med); margin-top: auto; padding-top: 6px; }
.ct-card__links a { color: var(--copper-primary); }
.ct-card--office { border-color: var(--copper-muted); background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(223, 130, 68, .14), transparent 70%), color-mix(in srgb, var(--surface-elevated) 88%, transparent); }
.ct-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-form { padding: 32px; border-radius: 20px; }
.ct-form__head h2 { margin: 6px 0 6px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; }
.ct-form__head p { margin: 0; }
.ct-side { display: grid; gap: 16px; }
.ct-side .resp-times { margin-top: 0; border-radius: 16px; }
.ct-help { padding: 18px 20px; border: 1px solid var(--surface-stroke); border-radius: 16px; background: var(--surface-elevated); }
.ct-help h2 { font-size: 16px; margin: 0 0 10px; }
.ct-locator { display: flex; align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--surface-stroke); border-radius: 16px; background:
  linear-gradient(var(--surface-stroke-soft) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--surface-stroke-soft) 1px, transparent 1px) 0 0 / 16px 16px, var(--surface-sunken); }
.ct-locator__radar { position: relative; width: 92px; height: 92px; flex: none; border-radius: 50%; border: 1px solid var(--copper-muted); background: radial-gradient(circle, rgba(223, 130, 68, .12), transparent 70%); overflow: hidden; }
.ct-locator__radar span { position: absolute; inset: 50%; width: 0; height: 0; border-radius: 50%; border: 1px solid var(--copper-primary); transform: translate(-50%, -50%); opacity: 0; }
.ct-locator__radar i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--copper-glow); box-shadow: 0 0 12px var(--copper-glow); }
.ct-locator__radar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(44, 229, 229, .35), transparent 25%); }
.motion .ct-locator__radar::before { animation: ct-sweep 3.2s linear infinite; }
.motion .ct-locator__radar span { animation: ct-ring 3s ease-out infinite; }
.motion .ct-locator__radar span:nth-child(2) { animation-delay: 1s; }
.motion .ct-locator__radar span:nth-child(3) { animation-delay: 2s; }
@keyframes ct-sweep { to { transform: rotate(360deg); } }
@keyframes ct-ring { from { width: 0; height: 0; opacity: .9; } to { width: 92px; height: 92px; opacity: 0; } }
.ct-locator__read { display: grid; gap: 4px; font-size: 13px; color: var(--text-med); }
.ct-locator__read span:first-child { color: var(--copper-glow); }
@media (max-width: 1080px) { .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ct-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ct-cards { grid-template-columns: 1fr; } .ct-form { padding: 22px; } }

/* ══ circuits, second layer and parts (motion.js) ══ */
.page-hero, .hero { isolation: isolate; }
.mx-inner { fill: none; stroke: var(--signal-cyan); stroke-opacity: .16; stroke-width: 1.2; stroke-dasharray: .012 .008; stroke-linecap: round; opacity: 0; animation: mx-fade 1.6s ease var(--d) forwards; }
.mx-part { opacity: 0; animation: mx-place .7s cubic-bezier(.2, .7, .2, 1) var(--d) forwards; transform-box: fill-box; transform-origin: center; }
.mx-part__body { fill: rgba(8, 9, 10, .55); stroke: var(--copper-primary); stroke-opacity: .45; stroke-width: 1.4; }
.mx-part__pads rect { fill: var(--copper-primary); fill-opacity: .45; }
.mx-part__pin1 { fill: var(--copper-glow); }
.motion .mx-part__pin1 { animation: mx-blink 2.6s ease-in-out infinite; animation-delay: var(--d); }
.mx-circuit--lab { opacity: .7;
  mask-image: radial-gradient(ellipse 36% 50% at 25% 52%, rgba(0, 0, 0, .12) 60%, #000 100%);
  -webkit-mask-image: radial-gradient(ellipse 36% 50% at 25% 52%, rgba(0, 0, 0, .12) 60%, #000 100%); }
@media (max-width: 960px) { .mx-circuit--lab { opacity: .4; mask-image: none; -webkit-mask-image: none; } }
@keyframes mx-fade { to { opacity: 1; } }
@keyframes mx-place { from { opacity: 0; transform: translateY(-14px) scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes mx-blink { 50% { opacity: .2; } }
[data-theme="light"] .mx-part__body { fill: rgba(255, 255, 255, .6); }

/* ══ home as a design lab: bench, frame, boot, instruments (lab.js) ══ */
.lab-bench { display: grid; gap: 0; border-radius: 20px; border: 1px solid var(--surface-stroke); background: var(--surface-sunken); box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(223, 130, 68, .06); overflow: hidden; min-width: 0; }
.lab-bench .hero__stage { border: 0; border-radius: 0; box-shadow: none; height: 540px; }
.lab-bench__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 11px; letter-spacing: .08em; color: var(--text-low); background: var(--surface-elevated); border-bottom: 1px solid var(--surface-stroke); white-space: nowrap; overflow: hidden; }
.lab-bench__bar--foot { border-bottom: 0; border-top: 1px solid var(--surface-stroke); }
.lab-bench__spacer { flex: 1; }
.lab-sep { width: 1px; height: 12px; background: var(--surface-stroke); }
.lab-led { width: 8px; height: 8px; border-radius: 50%; background: var(--drc-pass); box-shadow: 0 0 8px var(--drc-pass); flex: none; }
.motion .lab-led { animation: mx-blink 1.8s ease-in-out infinite; }
.lab-ok { color: var(--drc-pass); }
.lab-coords { color: var(--copper-glow); min-width: 22ch; }
.lab-frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lab-ruler { position: absolute; opacity: .7; }
.lab-ruler--x { left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--text-low) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--text-med) 0 1px, transparent 1px 50px); background-size: auto 5px, auto 10px; background-repeat: repeat-x; background-position: 0 100%, 0 100%; }
.lab-ruler--y { top: 0; bottom: 0; right: 0; width: 10px; background: repeating-linear-gradient(180deg, var(--text-low) 0 1px, transparent 1px 10px), repeating-linear-gradient(180deg, var(--text-med) 0 1px, transparent 1px 50px); background-size: 5px auto, 10px auto; background-repeat: repeat-y; background-position: 100% 0, 100% 0; }
.lab-corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--copper-primary); opacity: .8; }
.lab-corner--tl { top: 58px; left: 12px; border-right: 0; border-bottom: 0; }
.lab-corner--tr { top: 58px; right: 20px; border-left: 0; border-bottom: 0; }
.lab-corner--bl { bottom: 20px; left: 12px; border-right: 0; border-top: 0; }
.lab-corner--br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }
.lab-scan { position: absolute; left: 0; right: 0; top: 0; height: 90px; opacity: 0; background: linear-gradient(180deg, transparent, rgba(44, 229, 229, .08) 70%, rgba(44, 229, 229, .55) 99%, transparent); }
.motion .lab-scan { animation: lab-scan 7s cubic-bezier(.45, 0, .55, 1) 2.4s infinite; }
@keyframes lab-scan { 0% { transform: translateY(-90px); opacity: 0; } 8% { opacity: 1; } 42% { transform: translateY(540px); opacity: 1; } 46%, 100% { transform: translateY(540px); opacity: 0; } }
.lab-boot { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 32px 40px; font-size: 13px; color: var(--text-med); background: color-mix(in srgb, var(--surface-sunken) 97%, transparent); backdrop-filter: blur(6px); transition: opacity .5s ease, filter .5s ease; }
.lab-boot.is-done { opacity: 0; filter: blur(6px); }
.lab-boot__row { display: flex; justify-content: space-between; gap: 16px; max-width: 420px; animation: mx-rise .25s ease both; }
.lab-boot__row:first-child { color: var(--copper-glow); font-weight: 600; margin-bottom: 6px; }
.lab-boot__row b { color: var(--drc-pass); font-weight: 600; text-transform: uppercase; }
.lab-boot__row:last-child::after { content: '▍'; color: var(--copper-primary); animation: mx-blink .8s steps(1) infinite; }
.lab-instruments { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 28px; }
.lab-inst { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--surface-stroke); background: var(--surface-elevated); min-width: 0; }
.lab-inst figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lab-inst__name { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-cyan); }
.lab-inst__read { font-size: 12px; color: var(--copper-glow); text-align: right; }
.lab-inst__foot { margin: 0; font-size: 11.5px; color: var(--text-low); }
.lab-inst--scope canvas { width: 100%; flex: 1; min-height: 170px; border-radius: 10px; background: var(--surface-sunken); border: 1px solid var(--surface-stroke); }
.lab-drc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.lab-drc li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-sunken); color: var(--text-med); transition: background .3s, color .3s; }
.lab-drc b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-disabled); }
.lab-drc li.is-run { color: var(--text-high); background: rgba(223, 130, 68, .1); }
.lab-drc li.is-run b { color: var(--copper-glow); }
.lab-drc li.is-run b::before { content: 'RUN '; }
.lab-drc li.is-run b { font-size: 0; }
.lab-drc li.is-run b::before { font-size: 11px; }
.lab-drc li.is-pass { color: var(--text-high); }
.lab-drc li.is-pass b { color: var(--drc-pass); }
.lab-ws { margin: 0; display: grid; gap: 10px; }
.lab-ws div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--surface-stroke-soft); }
.lab-ws div:last-child { border-bottom: 0; padding-bottom: 0; }
.lab-ws dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-low); }
.lab-ws dd { margin: 0; font-size: 14px; color: var(--text-high); }
[data-theme="light"] .lab-bench { box-shadow: 0 30px 80px rgba(15, 20, 30, .12); }
[data-theme="light"] .lab-bench .hero__stage { background: radial-gradient(ellipse at 50% 40%, #ffffff, #e3e7ec 72%); }
@media (max-width: 1080px) { .lab-instruments { grid-template-columns: 1fr 1fr; } .lab-inst--scope { grid-column: 1 / -1; } }
@media (max-width: 960px) { .lab-bench .hero__stage { height: 400px; } }
@media (max-width: 640px) { .lab-instruments { grid-template-columns: 1fr; } .lab-bench .hero__stage { height: 320px; } .lab-bench__bar span:nth-last-child(-n+2) { display: none; } .lab-corner--tl, .lab-corner--tr { top: 50px; } }

/* ══ inner pages: the lab look on every page hero, cards and section heads ══ */
.page-hero::before { background: radial-gradient(ellipse 60% 55% at 80% 0%, rgba(223, 130, 68, .16), transparent 70%), radial-gradient(ellipse 45% 60% at 0% 0%, rgba(44, 229, 229, .06), transparent 70%); }
.page-hero { border-bottom: 1px solid var(--surface-stroke-soft); }
.page-hero h1 { letter-spacing: -.045em; }
.page-hero .eyebrow, .mk-hero--page .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.page-hero .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--copper-primary); box-shadow: 0 0 10px var(--copper-primary); }
.motion .page-hero .eyebrow::before { animation: mx-blink 2.4s ease-in-out infinite; }
.motion .page-hero > .container > *, .motion .page-hero > .container > .split > * > * { animation: mx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion .page-hero > .container > :nth-child(2), .motion .page-hero > .container > .split > * > :nth-child(2) { animation-delay: .08s; }
.motion .page-hero > .container > :nth-child(3), .motion .page-hero > .container > .split > * > :nth-child(3) { animation-delay: .16s; }
.motion .page-hero > .container > :nth-child(n+4), .motion .page-hero > .container > .split > * > :nth-child(n+4) { animation-delay: .24s; }
.mx-titleblock { position: absolute; right: max(24px, calc((100vw - 1200px) / 2 - 20px)); bottom: 18px; z-index: 1; display: grid; grid-template-columns: repeat(3, auto); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-low); border: 1px solid var(--surface-stroke); background: color-mix(in srgb, var(--surface-base) 80%, transparent); backdrop-filter: blur(6px); border-radius: 6px; overflow: hidden; pointer-events: none; }
.mx-titleblock > div { display: grid; gap: 2px; padding: 6px 12px; border-left: 1px solid var(--surface-stroke); }
.mx-titleblock > div:nth-child(2) { border-left: 0; }
.mx-titleblock__title { grid-column: 1 / -1; border-left: 0 !important; border-bottom: 1px solid var(--surface-stroke); }
.mx-titleblock span { color: var(--text-disabled); font-size: 9.5px; }
.mx-titleblock b { color: var(--text-med); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.mx-titleblock__title b { color: var(--copper-glow); }
.motion .mx-titleblock { animation: mx-rise .8s cubic-bezier(.2, .7, .2, 1) .5s both; }
@media (max-width: 1100px) { .mx-titleblock { display: none; } }
/* cards across inner pages light up and lift like the home tiles */
.card--link, .uc-card, .pf-case-card { transition: border-color .2s var(--ease), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.card--link:hover, .uc-card:hover { border-color: var(--copper-primary); box-shadow: 0 24px 60px -32px rgba(223, 130, 68, .5); }
.motion .card--link > *, .motion .uc-card > * { position: relative; z-index: 1; }
.section__head .eyebrow::before { content: '// '; color: var(--copper-primary); }

/* ── roles: announcement banner, permission matrix, site settings ── */
.site-banner { position: relative; z-index: 41; border-bottom: 1px solid rgba(44, 229, 229, .3); background: color-mix(in srgb, var(--signal-cyan) 9%, var(--surface-base)); color: var(--text-high); font-size: 14px; line-height: 1.5; }
.site-banner--warn { border-bottom-color: rgba(245, 166, 35, .45); background: var(--drc-warn-surface); color: var(--text-warn); }
.site-banner__row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.site-banner__text { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.site-banner__text a { color: inherit; font-weight: 600; }
.site-banner__close { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-right: -6px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .75; }
.site-banner__close:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.site-intake { margin-bottom: 22px; }

.acc-role--custom { color: var(--text-high); border-style: dashed; }
.acc-roles dt .badge { margin-left: 8px; vertical-align: 1px; }
.rl-key { font-size: 11.5px; }
.rl-card { padding-bottom: 0; overflow: hidden; }
.rl-wrap { margin: 0 -24px; border-top: 1px solid var(--surface-stroke-soft); }
.rl-wrap:focus-visible { outline-offset: -2px; }
.rl-matrix { min-width: 760px; }
.rl-matrix th, .rl-matrix td { padding: 9px 10px; }
.rl-matrix thead th { vertical-align: bottom; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-high); background: var(--surface-elevated); }
.rl-matrix .rl-perm { position: sticky; left: 0; z-index: 1; width: 28%; min-width: 270px; padding-left: 24px; text-align: left; background: var(--surface-elevated); box-shadow: 1px 0 0 var(--surface-stroke-soft); }
.rl-matrix tbody th.rl-perm { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text-high); }
.rl-perm__desc { display: block; line-height: 1.4; }
.rl-perm__key { display: inline-block; margin-top: 3px; padding: 0; background: none; color: var(--text-low); font-size: 11.5px; }
.rl-col { min-width: 96px; text-align: center !important; }
.rl-col__name { display: block; font-weight: 600; color: var(--text-pure); white-space: nowrap; }
.rl-col__meta { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--text-low); white-space: nowrap; }
.rl-col__actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 4px; margin-top: 8px; }
.rl-col__actions .btn { padding: 3px 8px; font-size: 12px; }
.rl-col--custom { box-shadow: inset 0 2px 0 var(--copper-primary); }
.rl-area th.rl-perm, .rl-area td { padding-top: 16px; padding-bottom: 6px; background: var(--surface-sunken); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-low) !important; }
.rl-matrix tbody tr.rl-area:hover td, .rl-matrix tbody tr.rl-area:hover th { background: var(--surface-sunken); }
.rl-matrix tbody tr:hover th.rl-perm { background: color-mix(in srgb, var(--text-pure) 2%, var(--surface-elevated)); }
.rl-cell { text-align: center; }
/* drawn by hand: a disabled native checkbox greys out until ticked and empty look alike */
.rl-cell input { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0; vertical-align: middle; border: 1.5px solid var(--control-border, #4a5060); border-radius: 4px; background: var(--surface-sunken); cursor: pointer; }
.rl-cell input::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border: solid transparent; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.rl-cell input:checked { border-color: var(--copper-primary); background: var(--copper-primary); }
.rl-cell input:checked::after { border-color: #160b03; }
.rl-cell input:hover:not(:disabled) { border-color: var(--copper-glow); }
.rl-cell.is-locked input { cursor: not-allowed; border-style: dashed; background: transparent; }
.rl-cell.is-locked input:checked { border: 1.5px solid var(--text-low); background: transparent; }
.rl-cell.is-locked input:checked::after { border-color: var(--text-med); }
.rl-cell.is-changed { background: rgba(223, 130, 68, .1); }
.rl-save { margin: 0 -24px; padding: 12px 24px; border-radius: 0; justify-content: flex-end; }
.rl-save__text { flex: 1 1 220px; min-width: 0; font-size: 13.5px; color: var(--text-med); }
.rl-lower { margin-top: 24px; }

.ss-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ss-wide { grid-column: 1 / -1; }
.ss-lead { margin: -6px 0 0; font-size: 14px; }
.ss-toggle { padding: 12px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.ss-toggle strong { display: block; font-weight: 600; color: var(--text-pure); }
.ss-toggle .field__hint { display: block; margin-top: 2px; }
.ss-label-row { display: flex; justify-content: space-between; gap: 10px; }
.ss-count { font-family: var(--mono); font-size: 12px; }
.ss-count.is-over { color: var(--text-warn); }
.ss-levels { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; border: 0; }
.ss-levels legend { width: 100%; padding: 0; }
.ss-preview { padding: 10px; border: 1px dashed var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-base); }
.ss-preview__banner { border: 1px solid transparent; border-radius: 6px; }
.ss-preview__banner .site-banner__row { padding: 6px 12px; min-height: 0; }
.ss-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ss-event { min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--surface-stroke-soft); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.ss-event legend { padding: 0 6px; margin-left: -6px; font-weight: 600; color: var(--text-pure); font-size: 15px; }
.ss-event__hint { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.ss-event__perm { font-family: var(--mono); font-size: 11.5px; }
.ss-people { display: grid; gap: 8px; }
.ss-person { font-size: 14px; }
.ss-person > span { min-width: 0; }
.ss-person__name { display: block; color: var(--text-pure); font-weight: 500; }
.ss-person__meta { display: block; font-size: 12.5px; color: var(--text-low); overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .ss-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rl-wrap { margin: 0 -18px; }
  .rl-save { margin: 0 -18px; padding: 12px 18px; }
  .rl-save .btn { flex: 1; }
  .rl-matrix .rl-perm { min-width: 180px; width: 180px; padding-left: 18px; }
  .rl-matrix tbody th.rl-perm { font-size: 13px; }
  .site-banner { font-size: 13.5px; }
}
[data-theme="light"] .site-banner { border-bottom-color: rgba(0, 115, 122, .3); }
[data-theme="light"] .site-banner--warn { border-bottom-color: rgba(138, 90, 0, .35); }
[data-theme="light"] .rl-cell.is-changed { background: rgba(223, 130, 68, .14); }
/* ── tickets ── */
/* support tickets: portal list and ticket page, admin queue and ticket page (ticket-ui.js) */
.side__count--quiet { background: transparent; color: var(--text-med); border: 1px solid var(--surface-stroke); }
/* status chips with counts */
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tk-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--surface-stroke); border-radius: 999px; background: var(--surface-elevated); color: var(--text-med); font: inherit; font-size: 13.5px; cursor: pointer; }
.tk-chip:hover { color: var(--text-pure); border-color: var(--copper-muted); }
.tk-chip.is-active { color: var(--text-pure); border-color: var(--copper-primary); background: rgba(223, 130, 68, .1); }
.tk-chip__n { font: 600 11.5px/1.6 var(--mono); min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-sunken); color: var(--text-high); text-align: center; }
.tk-chip.is-active .tk-chip__n { background: var(--copper-primary); color: #160b03; }
/* status, priority and SLA badges */
.tk-status--open { color: var(--signal-cyan); border-color: rgba(44, 229, 229, .35); background: rgba(44, 229, 229, .06); }
.tk-status--pending_staff { color: var(--drc-warn); border-color: rgba(245, 166, 35, .4); background: var(--drc-warn-surface); }
.tk-status--pending_customer { color: var(--copper-glow); border-color: var(--copper-muted); background: rgba(223, 130, 68, .08); }
.tk-status--on_hold { color: var(--text-med); border-style: dashed; }
.tk-status--resolved { color: var(--drc-pass); border-color: rgba(51, 209, 122, .4); background: var(--drc-pass-surface); }
.tk-status--closed { color: var(--text-low); background: var(--surface-sunken); }
.tk-prio { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--surface-stroke); color: var(--text-med); white-space: nowrap; }
.tk-prio--urgent { color: #fff; background: var(--drc-fail); border-color: var(--drc-fail); }
.tk-prio--high { color: var(--drc-warn); border-color: rgba(245, 166, 35, .5); background: var(--drc-warn-surface); }
.tk-prio--low { color: var(--text-low); border-style: dashed; }
.tk-sla { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-med); white-space: nowrap; }
.tk-sla b { font: 700 10px/1 var(--mono); letter-spacing: .08em; padding: 4px 6px; border-radius: 4px; border: 1px solid currentColor; text-transform: uppercase; }
.tk-sla--ok b, .tk-sla--met b { color: var(--drc-pass); }
.tk-sla--near { color: var(--drc-warn); }
.tk-sla--breached, .tk-sla--missed { color: var(--drc-fail); }
.tk-sla--breached b { background: var(--drc-fail); border-color: var(--drc-fail); color: #fff; }
.tk-sla--paused { color: var(--text-low); }
/* portal list */
.tk-new { margin-bottom: 18px; border-color: var(--copper-muted); scroll-margin-top: 80px; }
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-item + .tk-item { border-top: 1px solid var(--surface-stroke-soft); }
.tk-item__link, li a.tk-item__link, li a.tk-file { display: grid; gap: 5px; padding: 14px 10px; color: inherit; border-radius: var(--radius-sm); text-decoration: none; }
li a.tk-file { display: inline-flex; gap: 8px; padding: 6px 10px; }
.tk-item__link:hover { background: var(--surface-sunken); text-decoration: none; }
.tk-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tk-item__title { color: var(--text-pure); font-weight: 600; overflow-wrap: anywhere; }
.tk-item__last { color: var(--text-med); font-size: 14.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tk-item.is-unread .tk-item__last { color: var(--text-high); }
.tk-item__meta { font-size: 12.5px; }
.tk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--copper-primary); box-shadow: 0 0 8px var(--copper-primary); flex: none; }
.tk-foot { margin: 16px 2px 0; }
/* priority picker */
.tk-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--control-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-sunken); }
.tk-seg__opt { position: relative; cursor: pointer; }
.tk-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tk-seg__opt span { display: block; padding: 8px 16px; font-size: 14px; color: var(--text-med); border-right: 1px solid var(--surface-stroke); }
.tk-seg__opt:last-child span { border-right: 0; }
.tk-seg__opt input:checked + span { color: var(--text-pure); background: rgba(223, 130, 68, .16); box-shadow: inset 0 -2px 0 var(--copper-primary); }
.tk-seg__opt--urgent input:checked + span { background: var(--drc-fail-surface); box-shadow: inset 0 -2px 0 var(--drc-fail); }
.tk-seg__opt input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.tk-seg__opt input:disabled + span { color: var(--text-disabled); cursor: not-allowed; }
/* ticket page head and notices */
.tk-head { align-items: flex-start; }
.tk-head h1 { overflow-wrap: anywhere; }
.tk-head .row { padding-top: 26px; }
.tk-back { display: inline-block; font-size: 13.5px; color: var(--text-med); margin-bottom: 6px; }
.tk-head__meta { font-size: 14px; }
.tk-notice { margin-bottom: 16px; }
.tk-notice--closed, .tk-notice--guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--surface-stroke); background: var(--surface-elevated); font-size: 14px; color: var(--text-high); }
.tk-notice--guest { border-color: rgba(44, 229, 229, .35); background: rgba(44, 229, 229, .05); display: block; }
.tk-split { align-items: start; }
/* conversation */
.tk-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tk-msg { max-width: 86%; border-radius: 14px; padding: 12px 16px; border: 1px solid var(--surface-stroke); background: var(--surface-overlay); }
.tk-msg--me { align-self: flex-end; background: rgba(223, 130, 68, .1); border-color: var(--copper-muted); border-bottom-right-radius: 4px; }
.tk-msg--other { align-self: flex-start; border-bottom-left-radius: 4px; }
.tk-msg--note { align-self: stretch; max-width: none; background: var(--drc-warn-surface); border: 1px dashed rgba(245, 166, 35, .6); border-radius: var(--radius-sm); }
.tk-msg--system { align-self: center; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 4px 12px; border: 0; background: none; font-size: 13px; color: var(--text-low); text-align: center; }
.tk-msg--system time { font: 11.5px var(--mono); }
.tk-msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; font-size: 13px; }
.tk-msg__head strong { color: var(--text-pure); font-weight: 600; }
.tk-msg__head time { color: var(--text-low); font: 11.5px var(--mono); margin-left: auto; }
.tk-msg__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; color: var(--text-high); }
.tk-note-tag { font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #160b03; background: var(--drc-warn); padding: 4px 6px; border-radius: 4px; }
.tk-role { font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal-cyan); border: 1px solid rgba(44, 229, 229, .35); padding: 3px 5px; border-radius: 4px; }
.tk-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tk-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-high); font-size: 13px; }
.tk-file:hover { border-color: var(--copper-primary); text-decoration: none; }
.tk-file .low { font-size: 12px; }
.tk-file__name { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* reply box, composer and attachments */
.tk-reply, .tk-composer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--surface-stroke-soft); display: grid; gap: 12px; }
.tk-reply__bar { justify-content: flex-end; }
.tk-reply__bar select { width: auto; flex: 0 1 240px; }
.tk-composer.is-note textarea { background: var(--drc-warn-surface); border-color: rgba(245, 166, 35, .6); }
.tk-composer__tools { display: grid; gap: 10px; }
.tk-composer__tools select { max-width: 320px; }
.tk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--surface-stroke); }
.tk-tab { font: inherit; font-size: 14px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-med); cursor: pointer; margin-bottom: -1px; }
.tk-tab:hover { color: var(--text-pure); }
.tk-tab[aria-selected="true"] { color: var(--text-pure); border-bottom-color: var(--copper-primary); }
.tk-tab--note[aria-selected="true"] { border-bottom-color: var(--drc-warn); color: var(--drc-warn); }
.tk-tab:disabled { color: var(--text-disabled); cursor: not-allowed; }
.tk-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tk-attach__btn { cursor: pointer; position: relative; }
.tk-attach__btn:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tk-attach__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tk-attach__hint { font-size: 12.5px; }
.tk-picked { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.tk-picked:empty { display: none; }
.tk-picked li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 13px; min-width: 0; }
.tk-picked li .tk-file__name { flex: 1; }
.tk-picked__x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--text-med); font-size: 18px; line-height: 1; cursor: pointer; }
.tk-picked__x:hover { background: var(--drc-fail-surface); color: var(--drc-fail); }
.tk-picked__error { width: 100%; margin: 0; }
.tk-side-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--surface-stroke-soft); display: grid; gap: 6px; justify-items: start; }
.tk-side-actions .low { font-size: 12.5px; }
/* satisfaction */
.tk-rate { border-color: var(--copper-muted); }
.tk-rate__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tk-rate__btn.is-on.tk-rate__btn--good, .tk-rate__btn--good:hover { border-color: var(--drc-pass); color: var(--drc-pass); background: var(--drc-pass-surface); }
.tk-rate__btn.is-on.tk-rate__btn--bad, .tk-rate__btn--bad:hover { border-color: var(--drc-fail); color: var(--drc-fail); background: var(--drc-fail-surface); }
.tk-rate textarea { min-height: 64px; }
.tk-rate__given { margin: 0 0 6px; font-weight: 600; }
.tk-rate__given--good, .tk-rated--good .tk-rated__value { color: var(--drc-pass); }
.tk-rate__given--bad, .tk-rated--bad .tk-rated__value { color: var(--drc-fail); }
.tk-rate__comment { margin: 0 0 6px; font-style: italic; }
.tk-rated__value { margin: 0; font-size: 18px; font-weight: 600; }
.tk-rated__comment { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid var(--surface-stroke); color: var(--text-med); font-style: italic; }
/* admin queue */
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 14px; margin-bottom: 18px; }
.tk-stats .stat { display: flex; flex-direction: column; justify-content: flex-start; }
.tk-stat__sub { font-size: 12px; color: var(--text-low); margin-top: 2px; }
.tk-prio-bars ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.tk-prio-bars__row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 28px; align-items: center; gap: 8px; width: 100%; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-med); cursor: pointer; text-align: left; }
.tk-prio-bars__row:hover { color: var(--text-pure); }
.tk-prio-bars__label { border: 0; background: none; padding: 0; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tk-prio-bars__label.tk-prio--urgent { color: var(--drc-fail); background: none; }
.tk-prio-bars__label.tk-prio--normal { color: var(--text-med); }
.tk-prio-bars__row .mono { text-align: right; color: var(--text-high); }
.tk-prio-bars__track { height: 8px; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; }
.tk-prio-bars__fill { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--text-low); }
.tk-prio-bars__fill--urgent { background: var(--drc-fail); }
.tk-prio-bars__fill--high { background: var(--drc-warn); }
.tk-prio-bars__fill--normal { background: var(--signal-cyan); }
.tk-filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-filters select, .tk-filters input { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.tk-rows { display: grid; }
.tk-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.5fr) 92px 150px minmax(0, 1fr) 170px 76px; gap: 14px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--surface-stroke-soft); color: inherit; font-size: 14px; border-left: 2px solid transparent; }
.tk-row:last-child { border-bottom: 0; }
a.tk-row:hover { background: var(--surface-sunken); text-decoration: none; }
.tk-row--head { padding-top: 0; color: var(--text-low); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.tk-row.is-breached { border-left-color: var(--drc-fail); background: linear-gradient(90deg, var(--drc-fail-surface), transparent 40%); }
.tk-row.is-near { border-left-color: var(--drc-warn); }
.tk-row__main { display: grid; gap: 3px; min-width: 0; }
.tk-row__num { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-low); }
.tk-row__subject { color: var(--text-pure); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row__last { color: var(--text-med); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tk-row__tags .low { font-size: 12px; }
.tk-row__cust { display: grid; min-width: 0; }
.tk-row__cust > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row__cust .low { font-size: 12.5px; }
.tk-tag { font: 11px/1.6 var(--mono); padding: 0 7px; border-radius: 999px; background: var(--surface-overlay); border: 1px solid var(--surface-stroke); color: var(--text-med); }
.tk-tag--order { color: var(--signal-cyan); border-color: rgba(44, 229, 229, .3); }
.tk-guest { margin-left: 6px; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; color: var(--signal-cyan); border: 1px solid rgba(44, 229, 229, .35); }
.tk-panel { margin-bottom: 18px; }
.tk-panel .card__title { flex-wrap: wrap; }
.tk-canned { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.tk-canned li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 14px; border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); background: var(--surface-sunken); }
.tk-canned p { margin: 4px 0 0; white-space: pre-wrap; font-size: 13.5px; }
.tk-canned__form { padding-top: 14px; border-top: 1px solid var(--surface-stroke-soft); }
.tk-sla-table input { max-width: 140px; }
/* admin ticket page side */
.tk-props select, .tk-props input { font-size: 14px; }
.tk-kv { grid-template-columns: auto minmax(0, 1fr); }
.tk-kv dd { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.tk-kv .tk-sla { white-space: normal; justify-content: flex-end; text-align: right; }
.tk-cust { display: grid; gap: 2px; margin: 0 0 12px; }
.tk-cust strong { color: var(--text-pure); }
.tk-cust a { overflow-wrap: anywhere; font-size: 14px; }
.tk-others { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--surface-stroke-soft); }
.tk-others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-others li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.tk-others li .mono { font-size: 12.5px; flex: none; }
.tk-others__subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-med); }
.tk-merge input { flex: 1 1 140px; width: auto; }
/* order page card and the contact page hint */
.tk-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-mini li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.tk-mini a { min-width: 0; overflow-wrap: anywhere; }
.tk-mini__meta { display: inline-flex; align-items: center; gap: 8px; }
.tk-contact-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--copper-muted); border-radius: var(--radius-sm); background: rgba(223, 130, 68, .08); font-size: 14px; color: var(--text-high); }
@media (max-width: 1280px) {
  .tk-row { grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr) 88px 140px 150px 70px; }
  .tk-row > :nth-child(5) { display: none; }
}
@media (max-width: 1180px) {
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-stats .tk-prio-bars { grid-column: 1 / -1; }
  .tk-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-filters input { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .tk-row, .tk-row:nth-child(n) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 8px; }
  .tk-row > :nth-child(5) { display: flex; }
  .tk-row.tk-row--head:nth-child(n) { display: none; }
  .tk-row__main, .tk-row__cust { flex: 1 1 100%; }
  .tk-row__cust { display: flex; gap: 8px; align-items: baseline; }
  .tk-row > [data-label]:not(.tk-row__cust) { display: inline-flex; align-items: center; gap: 6px; }
  .tk-row > [data-label]:not(.tk-row__cust)::before { content: attr(data-label); font-size: 10.5px; color: var(--text-low); text-transform: uppercase; letter-spacing: .05em; }
}
@media (max-width: 640px) {
  .tk-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-msg { max-width: 100%; }
  .tk-head .row { padding-top: 0; }
  .tk-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .tk-seg__opt span { padding: 8px 6px; text-align: center; }
  .tk-reply__bar select { flex: 1 1 100%; }
  .tk-reply__bar .btn { flex: 1 1 100%; }
  .tk-canned li { flex-direction: column; }
}
/* light theme */
[data-theme="light"] .tk-status--open { background: rgba(0, 115, 122, .07); border-color: rgba(0, 115, 122, .35); }
[data-theme="light"] .tk-status--pending_staff, [data-theme="light"] .tk-prio--high { border-color: rgba(138, 90, 0, .35); }
[data-theme="light"] .tk-status--resolved { border-color: rgba(19, 122, 67, .35); }
[data-theme="light"] .tk-status--pending_customer { background: #fbefe6; }
[data-theme="light"] .tk-msg--me { background: #fdf3ec; }
[data-theme="light"] .tk-msg--other { background: #ffffff; }
[data-theme="light"] .tk-msg--note { border-color: rgba(138, 90, 0, .45); }
[data-theme="light"] .tk-note-tag { background: #8a5a00; color: #fff; }
[data-theme="light"] .tk-row.is-breached { background: linear-gradient(90deg, #fde8e8, transparent 40%); }
[data-theme="light"] .tk-chip.is-active { background: #fbefe6; }
[data-theme="light"] .tk-contact-hint, [data-theme="light"] .tk-seg__opt input:checked + span { background: #fbefe6; }
[data-theme="light"] .tk-seg__opt--urgent input:checked + span { background: var(--drc-fail-surface); }
[data-theme="light"] .tk-composer.is-note textarea { background: var(--drc-warn-surface); }
/* ══ accounting (Admin -> Accounting, public/js/pages/admin-accounting.js) ══ */
.ac-head { margin-bottom: 18px; }
.ac-head p { max-width: 760px; }
.ac-range { margin-bottom: 14px; }
.ac-tabs { position: sticky; top: 64px; z-index: 5; margin: 0 0 20px; background: color-mix(in srgb, var(--surface-base) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-stroke); }
.ac-tabs__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ac-tab { flex: none; font: inherit; font-size: 14px; color: var(--text-med); background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 13px 10px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.ac-tab:hover { color: var(--text-pure); }
.ac-tab[aria-selected="true"] { color: var(--text-pure); border-bottom-color: var(--copper-primary); font-weight: 600; }
.ac-tab:focus-visible { outline-offset: -2px; }
.ac-panel:focus { outline: none; }
.ac-print-head { display: none; }
.ac-figure { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ac-neg { color: var(--drc-fail); }
.ac-strong { font-weight: 600; color: var(--text-pure); }
.ac-small { font-size: 12.5px; }
.ac-nowrap { white-space: nowrap; }
.ac-right { text-align: right; }
.ac-note { margin: 0 0 14px; max-width: 820px; }
.ac-notes { margin-top: 14px; }
.ac-code { color: var(--copper-glow); font-size: 12.5px; }
.ac-warn { color: var(--drc-warn); font-weight: 600; }

/* KPI tiles: a 2px signal line on top tells the families apart */
.ac-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ac-kpi { position: relative; overflow: hidden; }
.ac-kpi::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--surface-stroke); }
.ac-kpi--cyan::before { background: var(--signal-cyan); }
.ac-kpi--copper::before { background: var(--copper-primary); }
.ac-kpi--pass::before { background: var(--drc-pass); }
.ac-kpi--fail::before { background: var(--drc-fail); }
.ac-kpi .stat__value { font-size: 25px; }
.ac-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.ac-charts { margin-bottom: 14px; }
.ac-card { padding: 16px 18px; }
.ac-card--flush { padding: 0; overflow: hidden; }
.ac-card--flush .table th:first-child, .ac-card--flush .table td:first-child { padding-left: 18px; }
.ac-card--flush .table th:last-child, .ac-card--flush .table td:last-child { padding-right: 18px; }
.chart__dot { fill: var(--surface-elevated); }
.ac-health__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.ac-check { display: inline-flex; align-items: center; gap: 2px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid; }
.ac-check--ok { color: var(--drc-pass); border-color: color-mix(in srgb, var(--drc-pass) 45%, transparent); background: var(--drc-pass-surface); }
.ac-check--bad { color: var(--drc-fail); border-color: color-mix(in srgb, var(--drc-fail) 45%, transparent); background: var(--drc-fail-surface); }
.ac-check--warn { color: var(--drc-warn); border-color: color-mix(in srgb, var(--drc-warn) 45%, transparent); background: var(--drc-warn-surface); }
.ac-check--info { color: var(--signal-cyan); border-color: color-mix(in srgb, var(--signal-cyan) 35%, transparent); background: color-mix(in srgb, var(--signal-cyan) 7%, transparent); }

/* tables and statements */
.ac-table { font-size: 14px; }
.ac-table th, .ac-table td { padding: 9px 12px; }
.ac-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.ac-table tbody th { font-weight: 400; text-align: left; color: var(--text-high); text-transform: none; letter-spacing: 0; font-size: 14px; }
.ac-table tfoot th, .ac-table tfoot td { border-top: 1px solid var(--surface-stroke); border-bottom: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text-pure); }
.ac-empty { color: var(--text-low); text-align: center !important; padding: 22px !important; }
.ac-row-head th { background: var(--surface-sunken); color: var(--text-med) !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase !important; padding-top: 8px; padding-bottom: 8px; }
.ac-row-total th, .ac-row-total td { border-top: 1px solid var(--surface-stroke); font-weight: 600; color: var(--text-pure); }
.ac-row-sub th, .ac-row-sub td { background: color-mix(in srgb, var(--signal-cyan) 4%, transparent); font-weight: 600; color: var(--text-pure); }
.ac-row-grand th, .ac-row-grand td { border-top: 2px solid var(--copper-primary) !important; background: color-mix(in srgb, var(--copper-primary) 7%, transparent); font-weight: 700 !important; color: var(--text-pure); }
.ac-indent { padding-left: 26px !important; }
.ac-group { border-bottom: 1px solid var(--surface-stroke); }
.ac-scroll { max-width: 100%; }
.ac-wide { min-width: max-content; }
.ac-sticky { position: sticky; left: 0; z-index: 1; background: var(--surface-elevated); min-width: 220px; max-width: 320px; }
.ac-row-head .ac-sticky { background: var(--surface-sunken); }
.ac-row-grand .ac-sticky { background: color-mix(in srgb, var(--copper-primary) 7%, var(--surface-elevated)); }
.ac-total-col, .ac-wide td:last-child { border-left: 1px solid var(--surface-stroke-soft); }
.ac-stmt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.ac-stmt-title { font-size: 20px; margin: 0; }
.ac-stmt-head p { margin: 4px 0 0; }
.ac-headline { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.ac-headline strong { font-size: 26px; color: var(--text-pure); }
.ac-bs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ac-bs .ac-statement + .ac-statement { margin-top: 16px; }
.ac-bs__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 12px 12px 2px; border-top: 2px solid var(--copper-primary); font-weight: 600; color: var(--text-pure); }
.ac-bs__total strong { font-size: 19px; }
.ac-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.ac-split--wide { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.ac-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; }
.ac-dl dt { color: var(--text-med); }
.ac-dl dd { margin: 0; text-align: right; color: var(--text-high); }
.ac-dl__total { border-top: 1px solid var(--surface-stroke); padding-top: 8px; font-weight: 700; color: var(--text-pure) !important; }

/* journal */
.ac-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.ac-toolbar input[type=search] { flex: 1 1 260px; width: auto; padding: 8px 12px; font-size: 14px; }
.ac-toolbar select { width: auto; padding: 8px 32px 8px 12px; font-size: 14px; }
.ac-toolbar select, .ac-toolbar .field { max-width: 100%; }
.ac-toolbar .field select { width: 100%; }
.ac-toolbar .field { min-width: 260px; }
.ac-toolbar .ac-headline { margin-left: auto; }
.ac-count { margin-left: auto; }
.ac-journal .ac-entry { cursor: pointer; }
.ac-journal .ac-entry:hover td { background: rgba(255, 255, 255, .025); }
.ac-journal .ac-entry.is-open td { background: color-mix(in srgb, var(--copper-primary) 6%, transparent); border-bottom-color: transparent; }
.ac-journal .ac-entry.is-draft td:first-child { box-shadow: inset 3px 0 0 var(--drc-warn); }
.ac-journal .ac-lines > td { padding: 0 18px 16px !important; background: color-mix(in srgb, var(--copper-primary) 6%, transparent); }
.ac-memo { min-width: 220px; overflow-wrap: anywhere; }
.ac-detail { background: var(--surface-sunken); border: 1px solid var(--surface-stroke); border-radius: var(--radius-sm); padding: 6px 4px 12px; }
.ac-table--inner th, .ac-table--inner td { padding: 7px 12px; }
.ac-detail__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 12px 0; font-size: 12.5px; }
.ac-detail__actions { padding: 10px 12px 0; }
.ac-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--surface-stroke); color: var(--text-med); white-space: nowrap; margin-left: 6px; }
td > .ac-badge:first-child, .ac-small > .ac-badge:first-child { margin-left: 0; }
.ac-badge--system { color: var(--signal-cyan); border-color: color-mix(in srgb, var(--signal-cyan) 35%, transparent); background: color-mix(in srgb, var(--signal-cyan) 6%, transparent); }
.ac-badge--manual { color: var(--copper-glow); border-color: var(--copper-muted); background: color-mix(in srgb, var(--copper-primary) 8%, transparent); }
.ac-badge--expense { color: var(--drc-warn); border-color: color-mix(in srgb, var(--drc-warn) 40%, transparent); background: var(--drc-warn-surface); }
.ac-badge--reversal { color: var(--text-high); border-style: dashed; }
.ac-lock { font-size: 12.5px; color: var(--text-med); white-space: nowrap; }
tr.is-archived td { color: var(--text-low); }
.ac-editor { margin-bottom: 16px; border-color: var(--copper-muted); box-shadow: 0 24px 60px -36px rgba(223, 130, 68, .45); }
.ac-editor__head { display: grid; grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 12px; margin-bottom: 14px; }
.ac-lines-edit td { padding: 6px 6px; vertical-align: top; }
.ac-lines-edit th { padding: 6px; }
.ac-lines-edit td:first-child { width: 36%; }
.ac-lines-edit input, .ac-lines-edit select { padding: 8px 10px; font-size: 14px; }
.ac-lines-edit select { padding-right: 30px; }
.ac-amount { text-align: right; min-width: 104px; }
.ac-remove { padding: 6px 10px; font-size: 16px; line-height: 1; }
.ac-balance { margin: 12px 0; display: inline-flex; padding: 6px 12px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 13.5px; border: 1px solid; }
.ac-balance--ok { color: var(--drc-pass); border-color: color-mix(in srgb, var(--drc-pass) 45%, transparent); background: var(--drc-pass-surface); }
.ac-balance--bad { color: var(--drc-warn); border-color: color-mix(in srgb, var(--drc-warn) 45%, transparent); background: var(--drc-warn-surface); }
.ac-expense-form { position: sticky; top: 124px; }

/* receivables aging */
.ac-aging { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ac-bucket { padding: 14px 16px; }
.ac-bucket .stat__value { font-size: 22px; }
.ac-bucket__bar { height: 4px; border-radius: 4px; background: var(--surface-stroke-soft); margin-top: 10px; overflow: hidden; }
.ac-bucket__bar span { display: block; height: 100%; border-radius: 4px; background: var(--drc-pass); }
.ac-bucket--cyan .ac-bucket__bar span { background: var(--signal-cyan); }
.ac-bucket--warn .ac-bucket__bar span { background: var(--drc-warn); }
.ac-bucket--fail .ac-bucket__bar span { background: var(--drc-fail); }
.ac-age--31-60 { color: var(--signal-cyan); }
.ac-age--61-90 { color: var(--drc-warn); }
.ac-age--90p { color: var(--drc-fail); font-weight: 600; }

[data-theme="light"] .ac-journal .ac-entry:hover td { background: rgba(15, 20, 30, .03); }

@media (max-width: 1180px) {
  .ac-grid, .ac-split, .ac-split--wide { grid-template-columns: minmax(0, 1fr); }
  .ac-expense-form { position: static; }
}
@media (max-width: 960px) {
  .ac-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-bs { grid-template-columns: minmax(0, 1fr); }
  .ac-aging { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-editor__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac-editor__head .field:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .ac-tabs { margin-left: -18px; margin-right: -18px; padding: 0 10px; }
  .ac-kpis { gap: 10px; }
  .ac-kpi .stat__value { font-size: 19px; }
  .ac-kpi .in-delta .low { display: none; }
  .ac-bucket .stat__value { font-size: 18px; }
  .ac-headline { align-items: flex-start; }
  .ac-headline strong { font-size: 22px; }
  .ac-toolbar .ac-headline { margin-left: 0; }
  .ac-toolbar .field { min-width: 0; flex: 1 1 100%; }
  .ac-count { margin-left: 0; width: 100%; }
  .ac-sticky { min-width: 0; width: 148px; max-width: 148px; white-space: normal; font-size: 13px !important; }
  .ac-wide .ac-sticky .ac-code { display: block; }
  .ac-card { padding: 14px; }
  .ac-card--flush .table th:first-child, .ac-card--flush .table td:first-child { padding-left: 14px; }
  .ac-memo { min-width: 180px; }
  /* the line editor stacks: account and memo on one row each, the amounts side by side */
  .ac-lines-edit thead { display: none; }
  .ac-lines-edit, .ac-lines-edit tbody, .ac-lines-edit tfoot { display: block; }
  .ac-lines-edit tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--surface-stroke-soft); }
  .ac-lines-edit tbody td { padding: 0; border: 0; width: auto !important; }
  .ac-lines-edit tbody td:nth-child(1), .ac-lines-edit tbody td:nth-child(2) { grid-column: 1 / -1; }
  .ac-lines-edit tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
  .ac-lines-edit tfoot td { border: 0; padding: 8px 0 0; }
  .ac-lines-edit tfoot td:first-child { grid-column: 1 / -1; }
  .ac-amount { min-width: 0; }
}

@media print {
  .ac-tabs, .ac-range, .ac-actions, .ac-toolbar, .ac-editor-slot, .ac-detail__actions, .ac-expense-form, .chart__data, .form-error, .btn { display: none !important; }
  .ac-print-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 14px; font-size: 12px; color: #000; }
  .ac-head p { display: none; }
  .ac-head h1 { font-size: 22px; color: #000; }
  .app__main { padding: 0 !important; }
  .ac-panel, .ac-panel * { color: #000 !important; box-shadow: none !important; }
  .ac-panel .card { background: #fff !important; border-color: #bbb !important; break-inside: avoid; }
  .ac-panel .table th, .ac-panel .table td { border-color: #ccc !important; background: #fff !important; }
  .ac-row-head th { background: #f1f1f1 !important; }
  .ac-row-grand th, .ac-row-grand td { border-top: 2px solid #000 !important; }
  .ac-sticky { position: static; }
  .ac-scroll { overflow: visible !important; }
  .ac-wide { min-width: 0; font-size: 10.5px; }
  .ac-kpis, .ac-aging { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-grid, .ac-split, .ac-split--wide, .ac-bs, .in-charts { grid-template-columns: minmax(0, 1fr); }
  .ac-journal .ac-lines { display: table-row !important; }
  .ac-check { border-color: #000 !important; background: #fff !important; }
}
