/* VAULT / PRIVATE SHELTERS — application stylesheet.
   Vocabulary: docs/ARCHITECTURE.md §8, snippets: docs/UI.md. Mobile-first, no framework. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --graphite: #141a1a;
  --graphite-2: #0e1313;
  --surface: #202928;
  --cream: #f6f2e9;
  --cream-2: #efe9dc;
  --white: #fffdf8;
  --bronze: #b69a6a;
  --bronze-light: #c9b088;
  --bronze-dark: #725a32;
  --bronze-tint: #f0e7d5;
  --text: #18211f;
  --muted: #5a655e;
  --line: #ddd8cc;
  --line-strong: #c9c2b2;
  --field-border: #8f897c;
  --positive: #35634f;
  --warning: #7b5727;
  --error: #9a392f;
  --on-dark: #f6f2e9;
  --on-dark-muted: rgba(246, 242, 233, .74);
  --on-dark-line: rgba(246, 242, 233, .14);

  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(20, 26, 26, .09);
  --shadow-sm: 0 2px 10px rgba(20, 26, 26, .06);
  --ring: 0 0 0 3px var(--cream), 0 0 0 5px var(--bronze-dark);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;

  --container: 1240px;
  --gutter: 1.25rem;
  --header-h: 64px;
  --bottom-bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 2rem; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 3rem; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; color: inherit; }
h1, h2 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.005em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
a { color: var(--bronze-dark); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--text); }
strong, b { font-weight: 600; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--bronze); color: var(--graphite); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bronze-dark); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .panel--dark :focus-visible, .site-header :focus-visible, .ops-sidebar :focus-visible,
.bare :focus-visible, .home :focus-visible, .bottom-bar :focus-visible, .toast :focus-visible, .site-footer--dark :focus-visible {
  outline-color: var(--bronze);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--bronze); color: var(--graphite); padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------------------------------------------------------------- text utilities */
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: lining-nums tabular-nums; text-align: right; white-space: nowrap; }
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze-dark);
  line-height: 1.4;
}
.lede { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li + li { margin-top: .35rem; }

/* ---------------------------------------------------------------- layout primitives */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { gap: var(--space-6); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
}
.sidebar-layout { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
.sidebar-layout__main, .sidebar-layout__aside { min-width: 0; }
@media (min-width: 1000px) {
  .sidebar-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: var(--space-7); }
  .sidebar-layout__aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}

/* ---------------------------------------------------------------- page structure */
.page-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.page-head .eyebrow { margin-bottom: var(--space-1); }
.page-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  line-height: 1.06; letter-spacing: -.012em;
  text-wrap: balance;
}
.page-lede { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); max-width: 64ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
@media (min-width: 900px) {
  .page-head { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-6); margin-bottom: var(--space-7); }
  .page-head > :not(.page-actions) { grid-column: 1; }
  .page-actions { grid-column: 2; grid-row: 1 / span 3; align-self: end; justify-content: flex-end; margin-top: 0; }
}
.section { margin-top: var(--space-7); }
.section:first-child { margin-top: 0; }
.section-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-title + .muted, .section-title + p { margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-4); }
/* Page flow: direct children of the customer main column never touch. */
.main > * + * { margin-top: var(--space-5); }
.main > .flash-region + *, .main > * + .page-head { margin-top: 0; }
.main > p + .page-head { margin-top: var(--space-4); }
.main > * + .section { margin-top: var(--space-7); }
.table-wrap + p, .table-wrap + .small, .cost + p, .dl + p, .timeline + h3, .timeline + .section-title { margin-top: var(--space-4); }
.timeline + h3.section-title { margin-top: var(--space-6); }

/* ---------------------------------------------------------------- surfaces */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:focus-within { border-color: var(--line-strong); }
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, #ece5d6 0%, #e2dac8 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card__media img, .card__media picture, .card__media svg { width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.025); }
.card__media .badge { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; }
.card__media:not(:has(img, picture, svg))::after, .media-placeholder::after {
  content: "VAULT";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.75rem; letter-spacing: .3em; color: rgba(114, 90, 50, .45);
}
.media-placeholder { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(160deg, #ece5d6, #e2dac8); border-radius: var(--radius); }
.card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
@media (min-width: 1024px) { .card__body { padding: var(--space-5) var(--space-6) var(--space-6); } }
.card__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.625rem; line-height: 1.15; letter-spacing: -.005em;
}
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.card__title a:hover { color: var(--bronze-dark); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { box-shadow: var(--ring); }
.card__meta { font-size: .875rem; color: var(--muted); line-height: 1.55; }
.card__meta > * + *::before { content: "·"; margin: 0 .45em; color: var(--line-strong); }
.card__meta.stack > * + *::before, .card__meta > div + div::before, .card__meta > p + p::before { content: none; }
ul.card__meta, ol.card__meta { list-style: none; padding: 0; display: grid; gap: .1rem; }
ul.card__meta > li::before, ol.card__meta > li::before { content: none; }
.card__body > .price { margin-top: auto; padding-top: var(--space-3); }
.card__actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
/* Catalogue cards: primary action full width, Save + Compare as an even pair (same everywhere). */
.card__actions:has(> .js-toggle) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.card__actions:has(> .js-toggle) > .btn--primary { grid-column: 1 / -1; }
.card__actions > .js-toggle, .card__actions > .js-toggle .btn { width: 100%; }
.card__actions > .js-toggle .btn { padding-inline: .5rem; white-space: nowrap; gap: .35rem; }
.card .avail:has(> .avail__label) { display: grid; grid-template-columns: .55rem minmax(0, 1fr); column-gap: .6rem; row-gap: 0; align-items: center; }
.card .avail:has(> .avail__label) > * { grid-column: 2; }
.card .avail:has(> .avail__label)::before { grid-row: 2; }
.avail__label { font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.card__body > .price + .card__actions { margin-top: var(--space-2); }
.card a:not(.card__title a), .card button, .card input, .card select, .card label { position: relative; z-index: 1; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  min-width: 0;
}
@media (min-width: 768px) { .panel { padding: var(--space-6); } }
.panel > h2, .panel > h3 { margin-bottom: var(--space-3); }
.panel > h2 { font-size: 1.5rem; }
.panel--dark {
  background: var(--graphite); color: var(--on-dark); border-color: var(--graphite);
}
.panel--dark .muted, .panel--dark .page-lede, .panel--dark .lede, .panel--dark .card__meta, .panel--dark .field__hint { color: var(--on-dark-muted); }
.panel--dark .eyebrow { color: var(--bronze); }
.panel--dark a:not(.btn) { color: var(--bronze-light); }
.panel--dark a:not(.btn):hover { color: var(--on-dark); }
.panel--dark .dl > div, .panel--dark .cost__row, .panel--dark hr { border-color: var(--on-dark-line); }
.panel--dark .dl dt { color: var(--on-dark-muted); }
.panel--quiet { background: var(--cream-2); border-color: transparent; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--text); --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .625rem 1.375rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em;
  text-align: center; text-decoration: none; white-space: normal;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { --btn-bg: var(--bronze); --btn-fg: var(--graphite); --btn-bd: var(--bronze); }
.btn--primary:hover { --btn-bg: var(--bronze-light); --btn-bd: var(--bronze-light); }
.btn--secondary { --btn-bg: var(--graphite); --btn-fg: var(--cream); --btn-bd: var(--graphite); }
.btn--secondary:hover { --btn-bg: var(--surface); --btn-bd: var(--surface); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--text); }
.btn--danger { --btn-bg: var(--error); --btn-fg: #fff; --btn-bd: var(--error); }
.btn--danger:hover { --btn-bg: #842f26; --btn-bd: #842f26; }
.btn--sm { min-height: 38px; padding: .375rem .875rem; font-size: .875rem; }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { opacity: 1; cursor: progress; }
.btn.is-loading::before {
  content: ""; width: 1em; height: 1em; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: vault-spin .8s linear infinite;
}
.btn[aria-pressed="true"]:not(.is-loading)::before { content: "\2713"; font-weight: 700; }
.btn[aria-pressed="true"] { --btn-bg: var(--graphite); --btn-fg: var(--cream); --btn-bd: var(--graphite); }
.btn--primary[aria-pressed="true"] { --btn-bg: var(--bronze-dark); --btn-fg: #fff; --btn-bd: var(--bronze-dark); }
.btn[aria-pressed="true"]:hover { --btn-bg: var(--surface); --btn-bd: var(--surface); }
.panel--dark .btn--ghost, .on-dark .btn--ghost { --btn-fg: var(--on-dark); --btn-bd: rgba(246, 242, 233, .35); }
.panel--dark .btn--ghost:hover, .on-dark .btn--ghost:hover { --btn-bg: rgba(246, 242, 233, .08); --btn-bd: var(--on-dark); }
.panel--dark .btn--secondary { --btn-bg: var(--cream); --btn-fg: var(--graphite); --btn-bd: var(--cream); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--bronze-dark); text-decoration: underline; text-underline-offset: .2em; font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .form-grid > .field:has(.textarea), .form-grid > fieldset, .form-grid > .form-actions,
  .form-grid > .error-summary, .form-grid > .notice, .form-grid > h2, .form-grid > h3, .form-grid > p { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field__label { font-size: .9375rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.field__label .muted, .field__optional { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  display: block; width: 100%;
  min-height: 48px; padding: .7rem .9rem;
  background: var(--white); color: var(--text);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #7a827c; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible,
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(182, 154, 106, .45);
}
.input[disabled], .select[disabled], .textarea[disabled], .input[readonly] { background: var(--cream-2); color: var(--muted); }
.select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2318211f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
.select[multiple] { background-image: none; padding-right: .9rem; }
.textarea { min-height: 140px; resize: vertical; }
input[type="file"].input { padding: .45rem .5rem; cursor: pointer; font-size: .9375rem; color: var(--muted); }
input[type="file"].input::file-selector-button {
  margin-right: .85rem; min-height: 36px; padding: .35rem .9rem;
  background: var(--cream-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px;
  font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer;
}
input[type="file"].input:hover::file-selector-button { border-color: var(--text); }
input[type="search"].input::-webkit-search-decoration { -webkit-appearance: none; }
.field__hint { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.field__error { font-size: .875rem; font-weight: 600; color: var(--error); line-height: 1.45; display: flex; gap: .4rem; }
.field__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; margin-top: .1rem; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; }
.field__error:empty { display: none; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field--error .field__label { color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; }
fieldset > .check + .check { margin-top: .25rem; }
.check {
  display: flex; align-items: flex-start; gap: .75rem;
  min-height: 44px; padding: .55rem 0;
  cursor: pointer; line-height: 1.45;
}
.check input[type="checkbox"], .check input[type="radio"] {
  flex: none; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0;
  accent-color: var(--bronze-dark); cursor: pointer;
}
.check--card { padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); }
.check--card:has(input:checked) { border-color: var(--bronze-dark); box-shadow: inset 0 0 0 1px var(--bronze-dark); background: var(--bronze-tint); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-top: var(--space-2); }
.error-summary {
  border: 2px solid var(--error); border-radius: var(--radius-sm);
  background: #fbf1ee; padding: var(--space-4) var(--space-5);
}
.error-summary:focus { outline: none; box-shadow: 0 0 0 3px rgba(154, 57, 47, .25); }
.error-summary h2, .error-summary__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--error); margin-bottom: .35rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 500; }

/* ---------------------------------------------------------------- status */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: .03em;
  white-space: nowrap; vertical-align: middle;
  background: #ece7dc; color: var(--text);
  font-family: var(--font-sans); font-style: normal;
}
h1 .badge, .page-title .badge, h2 .badge { vertical-align: .35em; }
.badge--neutral { background: #ece7dc; color: #3b4541; }
.badge--info { background: #e2e9e8; color: #24464a; }
.badge--positive { background: #e0ebe3; color: var(--positive); }
.badge--warning { background: #f3e8d4; color: var(--warning); }
.badge--danger { background: #f5e1dd; color: var(--error); }
.badge--demo {
  background: var(--graphite); color: var(--bronze-light); border-color: var(--graphite);
  text-transform: uppercase; letter-spacing: .12em; font-size: .6875rem;
}
.badge--dot::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- notices */
.notice {
  position: relative;
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .9375rem; line-height: 1.55;
}
.notice > :first-child:not(.notice__close) { flex: 1; min-width: 0; }
/* Notices with running text and inline links/times (no close button) flow as one block, not flex columns. */
.notice:not(:has(> .notice__close)) { display: block; }
.notice strong:first-child { display: block; margin-bottom: .1rem; }
.notice p + p { margin-top: .35rem; }
.notice--demo { background: var(--bronze-tint); border-color: #e3d6bd; border-left-color: var(--bronze); color: #3d3322; }
.notice--info { background: #edf2f1; border-color: #d5e0de; border-left-color: #3c6469; }
.notice--success { background: #ecf3ee; border-color: #d1e2d6; border-left-color: var(--positive); }
.notice--warning { background: #f8f0e1; border-color: #eadbbe; border-left-color: var(--warning); }
.notice--error { background: #fbf0ed; border-color: #efd3cd; border-left-color: var(--error); }
.notice__close {
  flex: none; margin: -.5rem -.6rem -.5rem 0; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--muted); font-size: 1.25rem; line-height: 1;
}
.notice__close:hover { color: var(--text); background: rgba(20, 26, 26, .05); }
.flash-region { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.flash-region:empty { display: none; }

/* ---------------------------------------------------------------- data */
.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.table-wrap:focus-visible { outline: 2px solid var(--bronze-dark); outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.table caption { text-align: left; padding: var(--space-4) var(--space-5) 0; font-weight: 600; }
.table th, .table td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { padding-left: 1.25rem; }
.table th:last-child, .table td:last-child { padding-right: 1.25rem; }
.table thead th {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: #faf7f0; white-space: nowrap; vertical-align: bottom;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: #fcfaf5; }
.table tbody th { font-weight: 600; }
.table .num, .table th.num { text-align: right; }
.table a { font-weight: 500; }
.table a, .table .badge, .table time, .table .nowrap { white-space: nowrap; }
.table a.wrap, .table .wrap { white-space: normal; }
.table .cell-min { min-width: 9rem; }
.table--compact th, .table--compact td { padding: .55rem .75rem; }
/* Comparison tables become labelled rows on phones (cells carry data-label). */
@media (max-width: 639px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td, .table--stack th:first-child, .table--stack td:first-child, .table--stack td:last-child { padding: .2rem 0; border: 0; text-align: left; }
  .table--stack th[scope="row"] { margin-bottom: .25rem; }
  .table--stack td[data-label] { display: flex; justify-content: space-between; gap: var(--space-4); text-align: right; }
  .table--stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; text-align: left; flex: none; max-width: 45%; }
  .table--stack td[data-label]:empty { display: none; }
  .table--stack tbody tr:hover > * { background: none; }
}

.dl { display: grid; }
.dl > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.dl > div:first-child { padding-top: 0; }
.dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { font-size: .875rem; color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .dl > div { grid-template-columns: minmax(8rem, 38%) minmax(0, 1fr); gap: var(--space-4); align-items: baseline; }
}
.sidebar-layout__aside .dl > div { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.sidebar-layout__aside .dl dt { max-width: 7.5rem; }
.sidebar-layout__aside .dl dd { overflow-wrap: break-word; }
.sidebar-layout__aside .dl dd { text-align: right; }
.sidebar-layout__aside .dl dd time { white-space: normal; }

.price { display: flex; flex-direction: column; gap: .1rem; }
.price__amount {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.75rem; line-height: 1.1; letter-spacing: -.005em;
  font-variant-numeric: lining-nums tabular-nums;
}
.price__qualifier { font-size: .8125rem; color: var(--muted); letter-spacing: .01em; }

.avail { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.avail::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(90, 101, 94, .15); }
.avail--positive { color: var(--positive); }
.avail--positive::before { background: var(--positive); box-shadow: 0 0 0 3px rgba(53, 99, 79, .16); }
.avail--warning { color: var(--warning); }
.avail--warning::before { background: var(--warning); box-shadow: 0 0 0 3px rgba(123, 87, 39, .16); }
.avail--neutral { color: var(--muted); }

.cost { display: flex; flex-direction: column; }
.cost__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem;
}
.cost__row > :last-child { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; font-weight: 500; }
.cost__row--pending { color: var(--muted); }
.cost__row--pending > :last-child { font-weight: 400; font-style: italic; white-space: normal; }
.cost__row--total {
  border-bottom: 0; border-top: 1px solid var(--text);
  margin-top: .25rem; padding-top: .9rem; font-weight: 600;
}
.cost__row--total > :last-child { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
.panel--dark .cost__row--total { border-top-color: var(--on-dark); }

/* ---------------------------------------------------------------- navigation components */
.tabs {
  display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: var(--space-5);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__link {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem;
  color: var(--muted); font-weight: 500; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__link:hover { color: var(--text); }
.tabs__link.is-active, .tabs__link[aria-current="page"], .tabs__link[aria-selected="true"] { color: var(--text); border-bottom-color: var(--bronze); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px; padding: .4rem 1rem;
  background: var(--white); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .875rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
button.chip { font: inherit; font-size: .875rem; font-weight: 500; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--graphite); color: var(--cream); border-color: var(--graphite); }
.chip__x {
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: -.4rem;
  border-radius: 50%; background: var(--cream-2); color: var(--text); font-size: 1rem; line-height: 1;
}
.chip:hover .chip__x { background: var(--line); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-1); margin-top: var(--space-6); }
.pagination__link, .pagination__gap {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--radius-sm); font-size: .9375rem; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--text);
}
.pagination__link { border: 1px solid transparent; }
.pagination__link:hover { border-color: var(--line-strong); background: var(--white); color: var(--text); }
.pagination__link[aria-current="page"] { background: var(--graphite); color: var(--cream); font-weight: 600; }
.pagination__link.is-disabled { color: #9aa19c; pointer-events: none; }
.pagination__gap { color: var(--muted); min-width: 24px; padding: 0; }
@media (max-width: 479px) {
  .pagination { gap: 0; }
  .pagination__link { min-width: 38px; padding: 0 .4rem; }
  .pagination__gap { min-width: 18px; }
}

/* ---------------------------------------------------------------- process */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline__item { position: relative; padding: 0 0 var(--space-5) 2.25rem; min-height: 2.5rem; }
.timeline__item::before {
  content: ""; position: absolute; left: .3rem; top: .35rem; z-index: 1;
  width: .95rem; height: .95rem; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--line-strong);
}
.timeline__item::after {
  content: ""; position: absolute; left: calc(.3rem + .475rem - 1px); top: 1.4rem; bottom: .1rem;
  width: 2px; background: var(--line);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::after { content: none; }
.timeline__item.is-done::before { background: var(--graphite); border-color: var(--graphite); }
.timeline__item.is-done::after { background: var(--graphite); }
.timeline__item.is-current::before { background: var(--bronze); border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(182, 154, 106, .25); }
.timeline__title { display: block; font-weight: 600; line-height: 1.4; }
.timeline__item:not(.is-done):not(.is-current) .timeline__title { color: var(--muted); font-weight: 500; }
.timeline__meta { display: block; font-size: .875rem; color: var(--muted); margin-top: .1rem; }
.panel--dark .timeline__item::before { background: var(--graphite); border-color: rgba(246, 242, 233, .35); }
.panel--dark .timeline__item::after { background: var(--on-dark-line); }
.panel--dark .timeline__item.is-done::before { background: var(--cream); border-color: var(--cream); }
.panel--dark .timeline__item.is-done::after { background: rgba(246, 242, 233, .5); }
.panel--dark .timeline__meta, .panel--dark .timeline__item:not(.is-done):not(.is-current) .timeline__title { color: var(--on-dark-muted); }

.next-action {
  display: grid; gap: var(--space-2);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line); border-left: 3px solid var(--bronze);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .next-action { padding: var(--space-5) var(--space-6); } }
.next-action::before {
  content: "Next step"; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-dark);
}
.next-action[data-label]::before { content: attr(data-label); }
.next-action__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.next-action__text { color: var(--muted); max-width: 62ch; }
.next-action .btn, .next-action .cluster { justify-self: start; margin-top: var(--space-2); }

/* ---------------------------------------------------------------- media */
.figure { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.figure img, .figure picture, .figure svg {
  width: 100%; border-radius: var(--radius); background: linear-gradient(160deg, #ece5d6, #e2dac8);
  border: 1px solid var(--line);
}
.figure__caption { font-size: .8125rem; color: var(--muted); letter-spacing: .02em; }
.figure__caption::before { content: ""; display: inline-block; width: 1.25rem; height: 1px; background: var(--bronze); vertical-align: middle; margin-right: .6rem; }

/* ---------------------------------------------------------------- empty */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--space-3);
  padding: var(--space-7) var(--space-5);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 253, 248, .55);
}
.empty::before {
  content: ""; width: 3rem; height: 1px; background: var(--bronze); margin-bottom: var(--space-2);
}
.empty__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.75rem; line-height: 1.2; }
.empty__text { color: var(--muted); max-width: 46ch; }
.empty .btn, .empty .cluster { margin-top: var(--space-3); }

/* ---------------------------------------------------------------- dialog */
.dialog {
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--text);
  box-shadow: 0 30px 80px rgba(20, 26, 26, .3);
  overflow: auto;
}
@media (min-width: 640px) { .dialog { padding: var(--space-6); } }
.dialog::backdrop { background: rgba(14, 19, 19, .62); }
.dialog[open] { animation: vault-rise .22s var(--ease); }
.dialog > h2, .dialog__title { font-size: 1.75rem; margin-bottom: var(--space-3); padding-right: 2.5rem; }
.dialog > form, .dialog__body { display: flex; flex-direction: column; gap: var(--space-4); }
.dialog .form-actions { justify-content: flex-end; }
.dialog__close {
  position: absolute; top: .75rem; right: .75rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-sm); font-size: 1.5rem; line-height: 1; color: var(--muted);
}
.dialog__close:hover { background: var(--cream-2); color: var(--text); }
html:has(dialog[open]) { overflow: hidden; }

/* ---------------------------------------------------------------- loading */
.skeleton {
  display: block; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #ebe5d8 0%, #f4efe4 50%, #ebe5d8 100%);
  background-size: 200% 100%;
  animation: vault-shimmer 1.4s ease-in-out infinite;
  min-height: 1rem;
}
.skeleton--text { height: .9rem; width: 70%; margin: .35rem 0; }
.skeleton--title { height: 1.6rem; width: 55%; margin: .35rem 0 .7rem; }
.skeleton--media { aspect-ratio: 3 / 2; border-radius: 0; }
.skeleton--card { height: 360px; border-radius: var(--radius); }
[aria-busy="true"]:not(.btn) { opacity: .6; transition: opacity .2s; pointer-events: none; }
.spinner {
  display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: middle;
  border: 2px solid var(--line-strong); border-top-color: var(--bronze-dark); border-radius: 50%;
  animation: vault-spin .8s linear infinite;
}
.loading-row { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: var(--space-6); color: var(--muted); }

@keyframes vault-spin { to { transform: rotate(360deg); } }
@keyframes vault-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes vault-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vault-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- toasts */
.toasts {
  position: fixed; z-index: 900;
  left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--space-2); align-items: stretch;
  pointer-events: none;
}
.has-bottom-bar .toasts { bottom: calc(var(--bottom-bar-h) + var(--space-3) + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .toasts { left: auto; right: var(--space-5); bottom: var(--space-5); width: 380px; } }
@media (min-width: 900px) { .has-bottom-bar .toasts { bottom: var(--space-5); } }
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: .85rem .6rem .85rem 1.1rem;
  background: var(--graphite); color: var(--on-dark);
  border-left: 3px solid var(--bronze); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(14, 19, 19, .28);
  font-size: .9375rem; line-height: 1.5;
  animation: vault-rise .22s var(--ease);
}
.toast__text { flex: 1; padding-top: .1rem; }
.toast--success { border-left-color: #6fa58a; }
.toast--warning { border-left-color: #d0a35a; }
.toast--error { border-left-color: #dd7b6e; }
.toast .notice__close { color: var(--on-dark-muted); margin: -.45rem 0 -.45rem 0; }
.toast .notice__close:hover { color: var(--on-dark); background: rgba(246, 242, 233, .08); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }

/* ---------------------------------------------------------------- wordmark */
.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  color: inherit; text-decoration: none; line-height: 1;
}
.wordmark:hover { color: inherit; }
.wordmark__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .32em; margin-right: -.32em; }
.wordmark__sub { font-size: .5625rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); white-space: nowrap; }
.wordmark--center { align-items: center; text-align: center; }
.wordmark--lg .wordmark__name { font-size: 2.25rem; letter-spacing: .36em; margin-right: -.36em; }
.wordmark--lg .wordmark__sub { font-size: .6875rem; letter-spacing: .42em; margin-right: -.42em; }

/* ---------------------------------------------------------------- customer shell */
.demo-ribbon {
  background: var(--graphite-2); color: var(--bronze-light);
  text-align: center; font-size: .75rem; letter-spacing: .06em; line-height: 1.4;
  padding: .45rem var(--gutter);
  border-bottom: 1px solid rgba(182, 154, 106, .18);
}
.demo-ribbon__dot { display: inline-block; width: .35rem; height: .35rem; border-radius: 50%; background: var(--bronze); margin-right: .6rem; vertical-align: middle; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--graphite); color: var(--on-dark);
  border-bottom: 1px solid rgba(182, 154, 106, .22);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.site-header .wordmark { margin-right: auto; min-height: 44px; justify-content: center; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: .25rem; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 .8rem;
  color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  border-radius: var(--radius-sm);
}
.primary-nav a:hover { color: var(--on-dark); }
.primary-nav a[aria-current="page"] { color: var(--on-dark); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; height: 2px; background: var(--bronze);
  bottom: calc((44px - var(--header-h)) / 2);
}
.count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--bronze); color: var(--graphite);
  font-size: .6875rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.profile { position: relative; display: none; }
.profile__toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .25rem .6rem .25rem .3rem;
  background: transparent; color: var(--on-dark); border: 1px solid var(--on-dark-line); border-radius: 999px;
  font-size: .875rem;
}
.profile__toggle:hover, .profile__toggle[aria-expanded="true"] { border-color: rgba(182, 154, 106, .6); }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--bronze-light); border: 1px solid rgba(182, 154, 106, .45);
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem; letter-spacing: .04em;
}
.profile__caret { width: 10px; height: 10px; opacity: .7; transition: transform .2s; }
.profile__toggle[aria-expanded="true"] .profile__caret { transform: rotate(180deg); }
.menu-panel {
  display: none;
  position: absolute; right: 0; top: calc(100% + .6rem); z-index: 200;
  width: 280px; padding: var(--space-2);
  background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-panel.is-open { display: block; animation: vault-rise .18s var(--ease); }
.menu-panel__head { padding: var(--space-3) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); }
.menu-panel__ref { font-family: var(--font-sans); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.menu-panel a, .menu-panel button.menu-panel__item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-sm); border: 0; background: none; text-align: left;
  color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.menu-panel a:hover, .menu-panel button.menu-panel__item:hover { background: var(--cream-2); }
.menu-panel form { margin: 0; border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-2); }

.main { padding-top: var(--space-6); padding-bottom: var(--space-8); }
@media (min-width: 768px) { .main { padding-top: var(--space-7); } }
.has-bottom-bar .main { padding-bottom: calc(var(--space-8) + var(--bottom-bar-h)); }

/* mobile bottom bar + sheet */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--graphite); border-top: 1px solid rgba(182, 154, 106, .22);
}
.bottom-bar a, .bottom-bar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-height: 44px; background: none; border: 0;
  color: var(--on-dark-muted); text-decoration: none; font-size: .6875rem; font-weight: 500; letter-spacing: .04em;
}
.bottom-bar svg { width: 22px; height: 22px; }
.bottom-bar a[aria-current="page"], .bottom-bar button[aria-expanded="true"] { color: var(--on-dark); }
.bottom-bar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--bronze);
}
.bottom-bar .count { position: absolute; top: 8px; left: calc(50% + 6px); }
.sheet {
  display: none;
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom)); z-index: 110;
  max-height: calc(100vh - var(--bottom-bar-h) - 40px); overflow: auto;
  padding: var(--space-3) var(--gutter) var(--space-5);
  background: var(--white); color: var(--text);
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
  box-shadow: 0 -20px 60px rgba(14, 19, 19, .25);
}
.sheet.is-open { display: block; animation: vault-rise .2s var(--ease); }
.sheet__ref { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--space-2); }
.sheet ul { list-style: none; padding: 0; margin: 0; }
.sheet a, .sheet button.menu-panel__item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; min-height: 52px; padding: 0 var(--space-2);
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left;
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500;
}
.sheet a[aria-current="page"] { color: var(--bronze-dark); font-weight: 600; }
.sheet form { margin: 0; }
.sheet form button.menu-panel__item { border-bottom: 0; color: var(--muted); }
@media (min-width: 900px) {
  .primary-nav { display: block; }
  .profile { display: block; }
  .bottom-bar, .sheet { display: none !important; }
  .has-bottom-bar .main { padding-bottom: var(--space-8); }
}

/* footer + trust panel */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); color: var(--text); }
.has-bottom-bar .site-footer { padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .has-bottom-bar .site-footer { padding-bottom: 0; } }
.site-footer__inner { padding-top: var(--space-7); padding-bottom: var(--space-6); display: grid; gap: var(--space-6); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-5); border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}
.site-footer__base a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
.site-footer__base { align-items: center; }
.site-footer__base a:hover { color: var(--text); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); list-style: none; padding: 0; margin: 0 -.25rem; }
/* Message thread */
.thread { list-style: none; padding: 0; margin: 0; }
.thread .split { align-items: baseline; gap: var(--space-1) var(--space-4); }
.thread .split + p { margin-top: var(--space-2); }
@media (min-width: 768px) {
  .msg--customer { margin-left: 12%; }
  .msg--staff { margin-right: 12%; }
}
.msg--customer { border-color: var(--line-strong); }
.countdown { display: inline-block; margin-left: .35rem; font-weight: 600; white-space: nowrap; }
.filters { padding: var(--space-5); }
.filters__more { border-top: 1px solid var(--line); }
.filters__summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none;
}
.filters__summary::-webkit-details-marker { display: none; }
.filters__summary::after {
  content: ""; width: 12px; height: 8px; flex: none; transition: transform .2s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2318211f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.filters__more[open] > .filters__summary::after { transform: rotate(180deg); }
.filters__more[open] > .filters__body { padding-top: var(--space-3); }
.card__media .figure__caption {
  position: absolute; left: var(--space-4); bottom: var(--space-3); z-index: 1;
  font-size: .6875rem; letter-spacing: .08em; color: var(--on-dark-muted);
}
.card__media img { border: 0; border-radius: 0; }
.records { list-style: none; padding: 0; }
.records a { display: inline-block; padding: .75rem 0; margin: -.75rem 0; }
.version-form { align-items: flex-end; }
.version-form .field { flex: 1 1 16rem; }
@media (min-width: 1024px) { .filters .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .trust { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-7); } }
.trust__title { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.trust__intro { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
.trust__list { display: grid; gap: var(--space-5) var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust__list dt { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: .3rem; }
.trust__list dd { margin: 0; font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.trust__list dd + dd { margin-top: .15rem; }

/* ---------------------------------------------------------------- ops shell */
.ops-body { background: #f3efe6; }
.ops-shell { min-height: 100vh; }
.ops-sidebar {
  display: none;
  background: var(--graphite); color: var(--on-dark);
}
.ops-sidebar.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 150; overflow-y: auto; animation: vault-fade .18s; }
.ops-sidebar__brand { display: none; padding: var(--space-5) var(--space-5) var(--space-4); border-bottom: 1px solid var(--on-dark-line); }
.ops-sidebar__brand .wordmark__name { font-size: 1.3rem; }
.ops-sidebar__realm { display: block; margin-top: .65rem; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.ops-nav { padding: var(--space-3); }
.ops-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ops-nav a {
  display: flex; align-items: center; gap: .75rem;
  min-height: 44px; padding: 0 .85rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.ops-nav a:hover { background: rgba(246, 242, 233, .06); color: var(--on-dark); }
.ops-nav a[aria-current="page"] { background: var(--surface); color: var(--on-dark); box-shadow: inset 2px 0 0 var(--bronze); }
.ops-nav svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.ops-nav__group { margin: var(--space-4) .85rem .35rem; font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 242, 233, .5); }
.ops-sidebar__foot { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--on-dark-line); font-size: .8125rem; color: var(--on-dark-muted); }
.ops-topbar {
  position: sticky; top: 0; z-index: 140;
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--header-h); padding: 0 var(--gutter);
  background: var(--graphite); color: var(--on-dark);
  border-bottom: 1px solid rgba(182, 154, 106, .22);
}
.ops-topbar .wordmark__name { font-size: 1.2rem; }
.ops-topbar__brand { margin-right: auto; display: flex; align-items: center; gap: var(--space-3); }
.ops-topbar__tools { display: flex; align-items: center; gap: var(--space-2); }
.ops-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  background: transparent; color: var(--on-dark); border: 1px solid var(--on-dark-line); border-radius: var(--radius-sm);
  font-size: .875rem;
}
.ops-menu-toggle svg { width: 20px; height: 20px; }
.demo-marker {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .65rem; border: 1px solid rgba(182, 154, 106, .6); border-radius: 999px;
  color: var(--bronze-light); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; white-space: nowrap;
}
.demo-marker::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--bronze); }
.ops-user { display: none; text-align: right; line-height: 1.25; }
.ops-user__name { display: block; font-size: .875rem; font-weight: 600; }
.ops-user__role { display: block; font-size: .75rem; color: var(--on-dark-muted); text-transform: capitalize; }
.ops-topbar .menu-panel { top: calc(100% + .4rem); }
.ops-account { position: relative; }
.ops-content { padding: var(--space-5) var(--gutter) var(--space-8); max-width: 1440px; }
.ops-content .page-title { font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.6rem); }
.ops-content .page-head { margin-bottom: var(--space-5); }
.ops-content .section { margin-top: var(--space-6); }
.ops-content .panel { padding: var(--space-5); }
.ops-content .table th, .ops-content .table td { padding-top: .7rem; padding-bottom: .7rem; }
.ops-flash { padding: var(--space-4) var(--gutter) 0; max-width: 1440px; }
.ops-flash .flash-region { margin-bottom: 0; }
.ops-flash:has(> .flash-region:empty) { display: none; }
@media (min-width: 640px) { .ops-user { display: block; } }
@media (min-width: 1024px) {
  .ops-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .ops-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .ops-sidebar.is-open { position: sticky; inset: auto; animation: none; }
  .ops-sidebar__brand { display: block; }
  .ops-nav { flex: 1; }
  .ops-menu-toggle { display: none; }
  .ops-topbar__brand .wordmark { display: none; }
  .ops-topbar { background: var(--white); color: var(--text); border-bottom-color: var(--line); }
  .ops-topbar .demo-marker { color: var(--bronze-dark); border-color: var(--bronze); }
  .ops-topbar .ops-user__role { color: var(--muted); }
  .ops-topbar :focus-visible { outline-color: var(--bronze-dark); }
  .ops-content { padding: var(--space-6) var(--space-6) var(--space-8); }
  .ops-flash { padding: var(--space-5) var(--space-6) 0; }
}
.ops-account__toggle {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .2rem .5rem .2rem .25rem;
  background: none; border: 1px solid transparent; border-radius: 999px; color: inherit;
}
.ops-account__toggle:hover, .ops-account__toggle[aria-expanded="true"] { border-color: var(--line-strong); }
.ops-topbar .avatar { width: 32px; height: 32px; font-size: .9rem; }

/* ---------------------------------------------------------------- bare shell */
.bare {
  background: var(--graphite) radial-gradient(1200px 600px at 50% -10%, #223029 0%, rgba(20, 26, 26, 0) 70%);
  color: var(--on-dark);
}
.bare-main {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6);
  padding: var(--space-7) var(--space-4) var(--space-6);
}
.bare .wordmark { color: var(--on-dark); }
.bare-card {
  width: 100%; max-width: 520px;
  background: var(--cream); color: var(--text);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
}
@media (min-width: 640px) { .bare-card { padding: var(--space-7) var(--space-7) var(--space-6); } }
.bare-card--wide { max-width: 720px; }
.bare-card :focus-visible { outline-color: var(--bronze-dark); }
.bare-card > * + * { margin-top: var(--space-4); }
.bare-card h1, .bare-card .page-title { font-size: clamp(2rem, 1.7rem + 1.4vw, 2.6rem); line-height: 1.1; }
.bare-card .page-head { margin-bottom: var(--space-5); }
.bare-card .page-head .page-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
.bare-card .page-head { grid-template-columns: minmax(0, 1fr); }
.bare-card .flash-region { margin-bottom: 0; }
.bare-foot { font-size: .8125rem; color: var(--on-dark-muted); letter-spacing: .04em; text-align: center; }
.bare-foot a { color: var(--on-dark-muted); }
.status-code { font-family: var(--font-serif); font-size: 1rem; letter-spacing: .2em; color: var(--bronze-dark); }

/* ---------------------------------------------------------------- public pages */
.home {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  color: var(--on-dark); background: var(--graphite);
  overflow: hidden;
}
.home__media { position: absolute; inset: 0; z-index: -2; }
.home__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.home__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 19, 19, .55) 0%, rgba(14, 19, 19, .15) 28%, rgba(14, 19, 19, .35) 52%, rgba(14, 19, 19, .92) 100%);
}
@media (min-width: 900px) {
  .home__overlay {
    background:
      linear-gradient(90deg, rgba(14, 19, 19, .9) 0%, rgba(14, 19, 19, .72) 32%, rgba(14, 19, 19, .18) 62%, rgba(14, 19, 19, .05) 100%),
      linear-gradient(180deg, rgba(14, 19, 19, .45) 0%, rgba(14, 19, 19, 0) 22%, rgba(14, 19, 19, 0) 72%, rgba(14, 19, 19, .6) 100%);
  }
}
.home__top { padding: var(--space-5) var(--gutter); }
@media (min-width: 768px) { .home__top { padding: var(--space-6) var(--gutter); } }
.home__body {
  align-self: end;
  padding: var(--space-6) var(--gutter) var(--space-6);
  max-width: 720px;
}
@media (min-width: 900px) {
  .home__body { align-self: center; padding-left: calc(var(--gutter) + 1vw); padding-bottom: var(--space-7); }
}
.home .eyebrow { color: var(--bronze); letter-spacing: .3em; margin-bottom: var(--space-4); }
.home__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);
  line-height: 1.02; letter-spacing: -.015em;
  text-wrap: balance;
}
.home__title em { font-style: italic; color: var(--bronze-light); }
.home__rule { width: 3.5rem; height: 1px; background: var(--bronze); margin: var(--space-5) 0; border: 0; }
.home__text { font-size: 1.0625rem; line-height: 1.7; color: rgba(246, 242, 233, .86); max-width: 34rem; }
.home__text + .home__text { margin-top: .35rem; }
@media (min-width: 768px) { .home__text { font-size: 1.125rem; } }
.home__descriptor {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: var(--space-5);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted);
}
.home__descriptor::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; border: 1px solid var(--bronze); }
.home__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  padding: var(--space-4) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(246, 242, 233, .12);
  font-size: .8125rem; letter-spacing: .04em; color: var(--on-dark-muted);
}
.home__foot ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); list-style: none; padding: 0; margin: 0 0 0 -.5rem; }
.home__foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--on-dark-muted); text-decoration: none; }
.home__foot a:hover { color: var(--on-dark); text-decoration: underline; }
@media (min-width: 768px) { .home__foot ul { margin: 0 -.5rem 0 0; } }

.public-header { background: var(--graphite); color: var(--on-dark); }
.public-header .container { display: flex; align-items: center; min-height: var(--header-h); }
.public-main { padding-top: var(--space-7); padding-bottom: var(--space-8); }
.public-footer { border-top: 1px solid var(--line); }
.public-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5);
  padding-top: var(--space-4); padding-bottom: var(--space-4); font-size: .8125rem; color: var(--muted);
}
.public-footer ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); list-style: none; margin: 0 -.5rem; padding: 0; }
.public-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; color: var(--muted); }
.public-footer a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- kit page helpers (local only) */
.kit-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); }
.kit-swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); font-size: .8125rem; }
.kit-swatch span { display: block; height: 56px; }
.kit-swatch p { padding: .5rem .75rem; }
.kit-swatch--graphite span { background: var(--graphite); } .kit-swatch--surface span { background: var(--surface); }
.kit-swatch--cream span { background: var(--cream); } .kit-swatch--white span { background: var(--white); }
.kit-swatch--bronze span { background: var(--bronze); } .kit-swatch--bronze-dark span { background: var(--bronze-dark); }
.kit-swatch--text span { background: var(--text); } .kit-swatch--muted span { background: var(--muted); }
.kit-swatch--line span { background: var(--line); } .kit-swatch--positive span { background: var(--positive); }
.kit-swatch--warning span { background: var(--warning); } .kit-swatch--error span { background: var(--error); }
.kit-media { position: absolute; inset: 0; display: grid; place-items: center; }
.kit-media svg { width: 70%; height: auto; }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .skeleton { animation: none; background: #ebe5d8; }
  .card:hover .card__media img { transform: none; }
}
@media (forced-colors: active) {
  .btn, .chip, .badge, .input, .select, .textarea { border: 1px solid CanvasText; }
  .avail::before, .timeline__item::before { forced-color-adjust: none; }
}
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .demo-ribbon { background: none; color: #000; border: 1px solid #000; }
  .site-header, .bottom-bar, .sheet, .skip-link, .ops-sidebar, .ops-topbar, .toasts, .flash-region,
  .page-actions, .form-actions, .card__actions, .btn, .pagination, .site-footer, .home__media, .home__overlay, .notice__close { display: none !important; }
  .main, .ops-content { padding: 0 !important; }
  .panel, .card, .table-wrap, .next-action { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .panel--dark { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .table-wrap { overflow: visible; }
  .sidebar-layout { display: block; }
  .home { min-height: 0; color: #000; background: #fff; }
}

/* --- ops QA additions --- */
.table-wrap { position: relative; }
.sidebar-layout__aside .dl > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
@media (pointer: coarse) { .ops-topbar__brand .wordmark { min-height: 44px; justify-content: center; } }
