/*
 * assets/store/store.css: the /products/ store design system (2026-10-28).
 *
 * Read NOTES store-ui-kit.md (the UI kit contract) before adding a component.
 * Every class starts with dhs-. Page templates use these classes, not Tailwind
 * utilities; the one exception is `overflow-x-auto` on the compare table
 * wrapper, which scripts/assert-products.cjs looks for by name.
 *
 * Geometry follows the measured marketplace pattern (containers 1400/32, the
 * service page 1304, header 81, search 42, radii 4/8/12/9999, card media 5:3,
 * card grid 1/2/3/4 at 600/900/1160, package tabs 59 with a 3px underline).
 * Colour and type are Digital Heroes' own: Inter, near-black actions and the
 * moss accent. Light is the default; html.dark (set from the visitor's saved
 * choice by the theme init in head.njk) swaps the tokens. Mobile first, and
 * every layout here is checked at 360px with no horizontal scroll.
 *
 * Loaded after /assets/tailwind.css. Its preflight resets elements; the small
 * reset below repeats the parts these components rely on, scoped with :where()
 * to the store's own containers (.dhs-scope), so nothing here reaches the chat
 * widget, the consent banner or the phone picker, which carry their own styles.
 */

/* ── 0. Fallback face for Inter (same metrics as the site's, so the web font
   swaps in without moving the layout) ───────────────────────────────────── */
@font-face{font-family:"Inter Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans");size-adjust:106.67%;ascent-override:90.82%;descent-override:22.61%;line-gap-override:0%}
@font-face{font-family:"Inter Fallback R";src:local("Roboto"),local("Roboto-Regular");size-adjust:107.66%;ascent-override:89.99%;descent-override:22.41%;line-gap-override:0%}

/* ── 1. Tokens ────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --dhs-font: Inter, "Inter Fallback", "Inter Fallback R", "Helvetica Neue", Arial, sans-serif;
  --dhs-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* text */
  --dhs-text-strong: #222325;
  --dhs-text-heading: #404145;
  --dhs-text-body: #62646a;
  --dhs-text-muted: #6b6d73;      /* 5.2:1 on white, safe for small text */
  --dhs-text-inverse: #ffffff;

  /* lines and surfaces */
  --dhs-border-input: #c5c6c9;
  --dhs-border: #dadbdd;
  --dhs-border-light: #e4e5e7;
  --dhs-border-faint: #efeff0;
  --dhs-bg: #ffffff;
  --dhs-bg-subtle: #fafafa;
  --dhs-bg-muted: #efeff0;
  --dhs-bg-media: #f5f5f5;
  --dhs-bg-hover: #f5f5f5;

  /* actions */
  --dhs-primary: #222325;
  --dhs-primary-hover: #404145;
  --dhs-on-primary: #ffffff;
  --dhs-accent: #3f6b54;          /* DH moss: links, active states, success */
  --dhs-accent-hover: #2f5541;
  --dhs-on-accent: #ffffff;
  --dhs-accent-soft: #e8f0ea;
  --dhs-accent-text: #24453a;
  --dhs-danger: #c62828;
  --dhs-on-danger: #ffffff;
  --dhs-danger-soft: #ffeded;
  --dhs-danger-text: #ab2d2d;
  --dhs-warning: #b26a00;
  --dhs-warning-soft: #fff4e5;
  --dhs-warning-text: #8a4f00;
  --dhs-info: #2b59c3;
  --dhs-info-soft: #eef2fc;
  --dhs-info-text: #1d3369;
  --dhs-star: #222325;
  --dhs-focus: #3f6b54;
  --dhs-overlay: rgba(12, 12, 13, .5);

  /* order status pills */
  --dhs-st-missing-bg: #fff4e5;   --dhs-st-missing-fg: #8a4f00;
  --dhs-st-progress-bg: #e6ebff;  --dhs-st-progress-fg: #1d3369;
  --dhs-st-delivered-bg: #e8f0ea; --dhs-st-delivered-fg: #24453a;
  --dhs-st-revision-bg: #f2eafb;  --dhs-st-revision-fg: #5b2a91;
  --dhs-st-completed-bg: #2e2f32; --dhs-st-completed-fg: #ffffff;
  --dhs-st-cancelled-bg: #efeff0; --dhs-st-cancelled-fg: #55575d;
  --dhs-st-late-bg: #ffeded;      --dhs-st-late-fg: #ab2d2d;

  /* shape */
  --dhs-r-sm: 4px;
  --dhs-r: 8px;
  --dhs-r-lg: 12px;
  --dhs-r-pill: 9999px;
  --dhs-shadow-1: 0 1.2px 1.92px rgba(0,0,0,.02), 0 2px 3.68px rgba(0,0,0,.04), 0 1px 5px rgba(0,0,0,.05);
  --dhs-shadow-2: 0 .14px 2.29px rgba(0,0,0,.03), 0 .37px 4.43px rgba(0,0,0,.047), 0 3px 7px rgba(0,0,0,.09);
  --dhs-shadow-3: 0 .08px 2.56px rgba(0,0,0,.05), 0 1.28px 5.58px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.13);
  --dhs-shadow-pop: 0 0 2.17px rgba(0,0,0,.047), 0 1.75px 6.01px rgba(0,0,0,.07), 0 3.63px 14.47px rgba(0,0,0,.09), 0 22px 48px rgba(0,0,0,.14);

  /* layout */
  --dhs-container: 1400px;
  --dhs-container-svc: 1304px;
  --dhs-gutter: 20px;
  --dhs-header-h: 0px;            /* height a sticky element must clear; 0 while the header scrolls away */
  --dhs-bar-h: 72px;              /* the phone bottom bar */
  --dhs-bnav-h: 60px;             /* the phone bottom nav (signed-in buyers, under 600px) */
  --dhs-bnav-offset: 0px;         /* what fixed-bottom UI must clear; set on body[data-bnav] while the nav shows */
  --dhs-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) {
  :root { --dhs-gutter: 32px; --dhs-header-h: 81px; }
}

html.dark {
  color-scheme: dark;
  --dhs-text-strong: #eef1ef;
  --dhs-text-heading: #e1e5e2;
  --dhs-text-body: #b8c0bb;
  --dhs-text-muted: #98a29c;
  --dhs-text-inverse: #121614;
  --dhs-border-input: #4a534e;
  --dhs-border: #343c38;
  --dhs-border-light: #2b322e;
  --dhs-border-faint: #232926;
  --dhs-bg: #121614;
  --dhs-bg-subtle: #171c19;
  --dhs-bg-muted: #222825;
  --dhs-bg-media: #1b201d;
  --dhs-bg-hover: #1d2320;
  --dhs-primary: #eef1ef;
  --dhs-primary-hover: #ffffff;
  --dhs-on-primary: #121614;
  --dhs-accent: #7fb38c;
  --dhs-accent-hover: #93c2a0;
  --dhs-on-accent: #121614;
  --dhs-accent-soft: rgba(127, 179, 140, .14);
  --dhs-accent-text: #a9d4b4;
  --dhs-danger: #f08a8a;
  --dhs-on-danger: #121614;
  --dhs-danger-soft: rgba(240, 138, 138, .12);
  --dhs-danger-text: #f4a3a3;
  --dhs-warning: #f0a54a;
  --dhs-warning-soft: rgba(240, 165, 74, .12);
  --dhs-warning-text: #f3b766;
  --dhs-info: #8eaaf5;
  --dhs-info-soft: rgba(142, 170, 245, .12);
  --dhs-info-text: #a9bff7;
  --dhs-star: #eef1ef;
  --dhs-focus: #93c2a0;
  --dhs-overlay: rgba(0, 0, 0, .62);
  --dhs-st-missing-bg: rgba(240, 165, 74, .16);  --dhs-st-missing-fg: #f3b766;
  --dhs-st-progress-bg: rgba(142, 170, 245, .16); --dhs-st-progress-fg: #b4c7f8;
  --dhs-st-delivered-bg: rgba(127, 179, 140, .18); --dhs-st-delivered-fg: #a9d4b4;
  --dhs-st-revision-bg: rgba(190, 150, 240, .16); --dhs-st-revision-fg: #d2b6f5;
  --dhs-st-completed-bg: #eef1ef; --dhs-st-completed-fg: #121614;
  --dhs-st-cancelled-bg: #2b322e; --dhs-st-cancelled-fg: #b8c0bb;
  --dhs-st-late-bg: rgba(240, 138, 138, .16);    --dhs-st-late-fg: #f4a3a3;
  --dhs-shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --dhs-shadow-2: 0 2px 6px rgba(0,0,0,.45);
  --dhs-shadow-3: 0 4px 12px rgba(0,0,0,.5);
  --dhs-shadow-pop: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px rgba(0,0,0,.6);
}

/* ── 2. Base and the scoped reset ─────────────────────────────────────────── */
body.dhs {
  margin: 0;
  background: var(--dhs-bg);
  color: var(--dhs-text-body);
  font-family: var(--dhs-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: no-preference) { html:has(body.dhs) { scroll-behavior: smooth; } }

.dhs-scope, .dhs-scope *, .dhs-scope *::before, .dhs-scope *::after { box-sizing: border-box; }
:where(.dhs-scope) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol, fieldset) { margin: 0; }
:where(.dhs-scope) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(.dhs-scope) :where(ul, ol) { padding: 0; list-style: none; }
:where(.dhs-scope) :where(fieldset) { padding: 0; border: 0; min-width: 0; }
:where(.dhs-scope) :where(legend) { padding: 0; }
:where(.dhs-scope) :where(a) { color: inherit; text-decoration: none; }
:where(.dhs-scope) :where(img, video) { display: block; max-width: 100%; height: auto; }
:where(.dhs-scope) :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
:where(.dhs-scope) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-transform: none; }
:where(.dhs-scope) :where(table) { border-collapse: collapse; border-spacing: 0; text-indent: 0; }
:where(.dhs-scope) :where(hr) { height: 0; border: 0; border-top: 1px solid var(--dhs-border); margin: 0; }
:where(.dhs-scope) :where(strong, b) { font-weight: 700; color: var(--dhs-text-strong); }
.dhs-scope [hidden], .dhs-scope[hidden] { display: none !important; }
.dhs-scope :focus-visible { outline: 2px solid var(--dhs-focus); outline-offset: 2px; }
.dhs-scope :focus:not(:focus-visible) { outline: none; }
::selection { background: var(--dhs-accent-soft); color: var(--dhs-text-strong); }

.dhs-icon { display: inline-block; flex: none; vertical-align: middle; }
.dhs-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.dhs-skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--dhs-r);
  background: var(--dhs-primary); color: var(--dhs-on-primary);
  font-weight: 600; text-decoration: none;
  transform: translateY(-150%); transition: transform .15s var(--dhs-ease);
}
.dhs-skip:focus { transform: none; outline: 2px solid var(--dhs-focus); outline-offset: 2px; }

/* Signed in or out: the header and pages show one of two states, chosen by a
   class on <html> that store.js sets (and a hint sets before first paint). */
html:not(.dhs-auth-in) [data-dhs-auth="in"] { display: none !important; }
html.dhs-auth-in [data-dhs-auth="out"] { display: none !important; }

/* ── 3. Layout ────────────────────────────────────────────────────────────── */
.dhs-container { width: 100%; max-width: var(--dhs-container); margin-inline: auto; padding-inline: var(--dhs-gutter); }
.dhs-container--svc { max-width: var(--dhs-container-svc); }
.dhs-container--narrow { max-width: 1064px; }
.dhs-container--tight { max-width: 600px; }
.dhs-main { display: block; min-height: 50vh; }
.dhs-main [id] { scroll-margin-top: calc(var(--dhs-header-h) + 16px); }
.dhs-page { padding-block: 24px 64px; }
@media (min-width: 900px) { .dhs-page { padding-block: 32px 96px; } }

.dhs-section { margin-bottom: 32px; }
.dhs-section:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .dhs-section { margin-bottom: 64px; } }
.dhs-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }

.dhs-band { background: var(--dhs-bg-subtle); padding-block: 32px 56px; }
.dhs-band--rule { border-top: 1px solid var(--dhs-border); background: transparent; padding-block: 48px; }

/* Card grid: 1 / 2 / 3 / 4 columns at 600 / 900 / 1160. */
.dhs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 24px; }
@media (min-width: 600px) { .dhs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (min-width: 900px) { .dhs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .dhs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .dhs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dhs-grid__wide { grid-column: 1 / -1; }

/* Service page: one column on phones (head, gallery, package card, body),
   main 712 + sidebar 415 at 1440. The sidebar sticks under the header. */
.dhs-svc {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "gallery" "aside" "body";
  padding-block: 24px 64px;
}
.dhs-svc__head { grid-area: head; margin-bottom: 16px; }
.dhs-svc__gallery { grid-area: gallery; margin-bottom: 24px; }
.dhs-svc__aside { grid-area: aside; margin-bottom: 32px; min-width: 0; }
.dhs-svc__body { grid-area: body; min-width: 0; }
.dhs-svc__body > * { margin-bottom: 32px; }
.dhs-svc__body > *:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .dhs-svc {
    grid-template-columns: minmax(0, 59.08fr) minmax(0, 35.42fr); column-gap: 5.5%;
    grid-template-areas: "head aside" "gallery aside" "body aside";
    grid-template-rows: auto auto 1fr;
    padding-block: 32px 96px;
  }
  .dhs-svc__aside { margin-bottom: 0; }
  .dhs-svc__sticky { position: sticky; top: calc(var(--dhs-header-h) + 24px); }
  .dhs-svc__gallery { margin-bottom: 64px; }
  .dhs-svc__body > * { margin-bottom: 64px; }
}
@media (min-width: 1160px) {
  .dhs-svc { grid-template-columns: minmax(0, 57.42fr) minmax(0, 33.6fr); column-gap: 9.15%; }
}

/* Main column plus a 360px sidebar (checkout, order page). */
.dhs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dhs-split__main, .dhs-split__aside { min-width: 0; }
.dhs-split--aside-first .dhs-split__aside { order: -1; }
@media (min-width: 900px) {
  .dhs-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
  .dhs-split--aside-first .dhs-split__aside { order: 0; }
  .dhs-split__sticky { position: sticky; top: calc(var(--dhs-header-h) + 24px); }
}
@media (min-width: 1160px) { .dhs-split { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }

/* Small layout helpers. */
.dhs-stack { display: flex; flex-direction: column; gap: 16px; }
.dhs-stack--xs { gap: 4px; }
.dhs-stack--sm { gap: 8px; }
.dhs-stack--lg { gap: 24px; }
.dhs-stack--xl { gap: 32px; }
.dhs-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dhs-cluster--sm { gap: 8px; }
.dhs-cluster--lg { gap: 16px 24px; }
.dhs-cluster--between { justify-content: space-between; }
.dhs-cluster--end { justify-content: flex-end; }
.dhs-cluster--nowrap { flex-wrap: nowrap; }
.dhs-grow { flex: 1 1 auto; min-width: 0; }
.dhs-w-full { width: 100%; }
.dhs-text-center { text-align: center; }
.dhs-text-right { text-align: right; }
.dhs-nowrap { white-space: nowrap; }
.dhs-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dhs-break { overflow-wrap: anywhere; word-break: normal; }
.dhs-mt-0 { margin-top: 0 !important; }
.dhs-mt-xs { margin-top: 4px; } .dhs-mt-sm { margin-top: 8px; } .dhs-mt-md { margin-top: 16px; }
.dhs-mt-lg { margin-top: 24px; } .dhs-mt-xl { margin-top: 32px; } .dhs-mt-2xl { margin-top: 48px; }
.dhs-mb-0 { margin-bottom: 0 !important; }
.dhs-mb-xs { margin-bottom: 4px; } .dhs-mb-sm { margin-bottom: 8px; } .dhs-mb-md { margin-bottom: 16px; }
.dhs-mb-lg { margin-bottom: 24px; } .dhs-mb-xl { margin-bottom: 32px; } .dhs-mb-2xl { margin-bottom: 48px; }
@media (max-width: 599px) { .dhs-hide-sm { display: none !important; } }
@media (min-width: 600px) { .dhs-only-sm { display: none !important; } }
@media (max-width: 899px) { .dhs-hide-md { display: none !important; } }
@media (min-width: 900px) { .dhs-only-md { display: none !important; } }

/* ── 4. Type ──────────────────────────────────────────────────────────────── */
.dhs-h1 { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--dhs-text-heading); letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 600px) { .dhs-h1 { font-size: 28px; } }
.dhs-h1--xl { color: var(--dhs-text-strong); }
@media (min-width: 600px) { .dhs-h1--xl { font-size: 32px; line-height: 1.125; } }
.dhs-h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--dhs-text-heading); letter-spacing: -.005em; }
.dhs-h2--lg { font-size: 22px; line-height: 30px; color: var(--dhs-text-strong); }
@media (min-width: 600px) { .dhs-h2--lg { font-size: 24px; line-height: 32px; } }
.dhs-h2--xl { font-size: 24px; line-height: 32px; color: var(--dhs-text-strong); }
@media (min-width: 600px) { .dhs-h2--xl { font-size: 32px; line-height: 38px; } }
.dhs-h3 { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-h4 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-lead { font-size: 16px; line-height: 24px; color: var(--dhs-text-body); }
.dhs-body { font-size: 16px; line-height: 24px; color: var(--dhs-text-body); }
.dhs-small { font-size: 14px; line-height: 22px; }
.dhs-caption { font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-micro { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-muted); }
.dhs-muted { color: var(--dhs-text-muted); }
.dhs-strong { color: var(--dhs-text-strong); font-weight: 700; }
.dhs-num { font-variant-numeric: tabular-nums; }
.dhs-price { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); font-variant-numeric: tabular-nums; }
.dhs-price--lg { font-size: 24px; line-height: 30px; }
.dhs-link { color: var(--dhs-accent); font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.dhs-link:hover { color: var(--dhs-accent-hover); text-decoration: underline; }
.dhs-prose { font-size: 16px; line-height: 26px; color: var(--dhs-text-body); }
.dhs-prose > * + * { margin-top: 16px; }
.dhs-prose h3 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); margin-top: 24px; }
.dhs-prose ul { list-style: disc; padding-left: 22px; }
.dhs-prose ol { list-style: decimal; padding-left: 22px; }
.dhs-prose li + li { margin-top: 6px; }
.dhs-prose a { color: var(--dhs-accent); text-decoration: underline; text-underline-offset: 3px; }
.dhs-prose a:hover { color: var(--dhs-accent-hover); }
.dhs-hr { border: 0; border-top: 1px solid var(--dhs-border); margin-block: 24px; }
.dhs-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 21px; color: var(--dhs-text-muted); }
.dhs-note .dhs-icon { margin-top: 2px; }

/* ── 5. Buttons ───────────────────────────────────────────────────────────── */
.dhs-btn {
  --dhs-btn-h: 42px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--dhs-btn-h); padding: 8px 20px;
  border: 1px solid transparent; border-radius: var(--dhs-r-sm);
  font-family: inherit; font-size: 16px; line-height: 20px; font-weight: 600;
  text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.dhs-btn--primary { background: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-btn--primary:hover { background: var(--dhs-primary-hover); }
.dhs-btn--accent { background: var(--dhs-accent); color: var(--dhs-on-accent); }
.dhs-btn--accent:hover { background: var(--dhs-accent-hover); }
.dhs-btn--secondary { background: transparent; color: var(--dhs-text-heading); border-color: var(--dhs-text-heading); }
.dhs-btn--secondary:hover { background: var(--dhs-bg-hover); color: var(--dhs-text-strong); }
.dhs-btn--ghost { background: transparent; color: var(--dhs-text-strong); }
.dhs-btn--ghost:hover { background: var(--dhs-bg-hover); }
.dhs-btn--danger { background: var(--dhs-danger); color: var(--dhs-on-danger); }
.dhs-btn--danger:hover { filter: brightness(.92); }
.dhs-btn--link { min-height: 0; padding: 0; border: 0; background: none; color: var(--dhs-text-strong); font-weight: 400; font-size: 14px; line-height: 21px; text-decoration: underline; text-underline-offset: 3px; }
.dhs-btn--link:hover { color: var(--dhs-accent); }
.dhs-btn--sm { --dhs-btn-h: 32px; padding: 4px 12px; font-size: 14px; line-height: 18px; }
.dhs-btn--lg { --dhs-btn-h: 48px; padding: 10px 24px; font-size: 16px; }
.dhs-btn--block { display: flex; width: 100%; }
.dhs-btn--wrap { white-space: normal; }
/* Full width call to action: label centred, arrow pinned right (package card "Continue"). */
.dhs-btn--cta { display: flex; width: 100%; padding-inline: 48px; }
.dhs-btn--cta > .dhs-icon:last-child { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.dhs-btn[disabled], .dhs-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.dhs-btn.is-busy, .dhs-btn.is-busy[disabled] { opacity: 1; color: transparent !important; pointer-events: none; }
.dhs-btn.is-busy > * { visibility: hidden; }
.dhs-btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  color: var(--dhs-on-primary); animation: dhs-spin .7s linear infinite;
}
.dhs-btn--secondary.is-busy::after, .dhs-btn--ghost.is-busy::after, .dhs-btn--link.is-busy::after { color: var(--dhs-text-strong); }
.dhs-btn--accent.is-busy::after { color: var(--dhs-on-accent); }
.dhs-btn--danger.is-busy::after { color: var(--dhs-on-danger); }
@keyframes dhs-spin { to { transform: rotate(360deg); } }
.dhs-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dhs-spin .7s linear infinite; vertical-align: middle; }

.dhs-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 40px; height: 40px; border-radius: var(--dhs-r); color: var(--dhs-text-strong);
  background: transparent; border: 1px solid transparent; transition: background-color .15s;
}
.dhs-iconbtn:hover { background: var(--dhs-bg-hover); }
.dhs-iconbtn--outline { border-color: var(--dhs-border-light); }
.dhs-iconbtn--sm { width: 32px; height: 32px; }

/* ── 6. Forms ─────────────────────────────────────────────────────────────── */
.dhs-form { display: flex; flex-direction: column; gap: 20px; }
.dhs-fieldset { display: flex; flex-direction: column; gap: 16px; }
.dhs-fieldset__legend { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); margin-bottom: 4px; }
.dhs-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .dhs-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dhs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dhs-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-label__opt { font-weight: 400; color: var(--dhs-text-muted); }
.dhs-label__req { color: var(--dhs-danger); margin-left: 2px; }
.dhs-input, .dhs-select, .dhs-textarea {
  display: block; width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--dhs-border-input); border-radius: var(--dhs-r-sm);
  background: var(--dhs-bg); color: var(--dhs-text-strong);
  font-family: inherit; font-size: 16px; line-height: 22px;
  transition: border-color .15s, box-shadow .15s;
}
.dhs-input::placeholder, .dhs-textarea::placeholder { color: var(--dhs-text-muted); opacity: 1; }
.dhs-input:hover, .dhs-select:hover, .dhs-textarea:hover { border-color: var(--dhs-text-muted); }
.dhs-input:focus, .dhs-select:focus, .dhs-textarea:focus { outline: none; border-color: var(--dhs-text-strong); box-shadow: 0 0 0 1px var(--dhs-text-strong); }
.dhs-input[aria-invalid="true"], .dhs-select[aria-invalid="true"], .dhs-textarea[aria-invalid="true"] { border-color: var(--dhs-danger); box-shadow: 0 0 0 1px var(--dhs-danger); }
.dhs-input[disabled], .dhs-select[disabled], .dhs-textarea[disabled] { background: var(--dhs-bg-muted); color: var(--dhs-text-muted); cursor: not-allowed; }
.dhs-textarea { min-height: 120px; resize: vertical; }
.dhs-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2362646a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
}
html.dark .dhs-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8c0bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.dhs-help { font-size: 13px; line-height: 19px; color: var(--dhs-text-muted); }
.dhs-error { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--dhs-danger-text); }
.dhs-error:empty { display: none; }
.dhs-counter { font-size: 12px; line-height: 16px; color: var(--dhs-text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.dhs-counter.is-over { color: var(--dhs-danger-text); font-weight: 600; }
.dhs-inputgroup { display: flex; align-items: stretch; }
.dhs-inputgroup > .dhs-input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.dhs-inputgroup > .dhs-btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Checkbox and radio rows. */
.dhs-check { position: relative; display: block; padding-left: 28px; font-size: 14px; line-height: 21px; color: var(--dhs-text-heading); cursor: pointer; }
.dhs-check input { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; accent-color: var(--dhs-primary); cursor: pointer; }
.dhs-check a { color: var(--dhs-accent); text-decoration: underline; text-underline-offset: 2px; }
/* Selectable option cards (a radio or checkbox inside a bordered label). */
.dhs-choice { position: relative; display: block; padding: 14px 16px 14px 46px; border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dhs-choice:hover { border-color: var(--dhs-text-muted); }
.dhs-choice:has(input:checked) { border-color: var(--dhs-text-strong); box-shadow: 0 0 0 1px var(--dhs-text-strong); background: var(--dhs-bg-subtle); }
.dhs-choice input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: var(--dhs-primary); }
.dhs-choice__title { display: block; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-choice__text { display: block; margin-top: 2px; font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }
.dhs-choices { display: grid; gap: 10px; }

/* Toggle switch: <label class="dhs-switch"><input type="checkbox" role="switch"><span class="dhs-switch__track"></span> Label</label> */
.dhs-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--dhs-text-body); cursor: pointer; }
.dhs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dhs-switch__track { position: relative; width: 31px; height: 18px; border-radius: var(--dhs-r-pill); background: var(--dhs-border); transition: background-color .15s; flex: none; }
.dhs-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(34, 35, 37, .1); transition: transform .15s var(--dhs-ease); }
.dhs-switch input:checked + .dhs-switch__track { background: var(--dhs-accent); }
.dhs-switch input:checked + .dhs-switch__track::after { transform: translateX(13px); }
.dhs-switch input:focus-visible + .dhs-switch__track { outline: 2px solid var(--dhs-focus); outline-offset: 2px; }

/* ── 7. Header, search, menus, drawer ─────────────────────────────────────── */
.dhs-header { position: relative; z-index: 50; background: var(--dhs-bg); border-bottom: 1px solid var(--dhs-border-light); }
.dhs-header__inner {
  display: grid; align-items: center;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "burger logo actions" "search search search";
  gap: 8px 8px; padding-block: 8px 12px;
}
.dhs-header__burger { grid-area: burger; }
.dhs-logo { grid-area: logo; justify-self: center; display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--dhs-text-strong); }
.dhs-logo__img { height: 36px; width: auto; }
.dhs-logo__dark { display: none; }
html.dark .dhs-logo__light { display: none; }
html.dark .dhs-logo__dark { display: block; }
.dhs-logo__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--dhs-text-muted); padding-left: 10px; border-left: 1px solid var(--dhs-border); white-space: nowrap; }
.dhs-search { grid-area: search; position: relative; display: flex; width: 100%; min-width: 0; }
.dhs-search__input {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 10px 2px 10px 16px;
  border: 1px solid var(--dhs-border-input); border-right: 0; border-radius: var(--dhs-r-sm) 0 0 var(--dhs-r-sm);
  background: var(--dhs-bg); color: var(--dhs-text-strong); font-size: 16px; line-height: 20px;
}
.dhs-search__input::placeholder { color: var(--dhs-text-muted); opacity: 1; }
.dhs-search__input:focus { outline: none; border-color: var(--dhs-text-strong); }
.dhs-search__input::-webkit-search-cancel-button { cursor: pointer; }
.dhs-search__btn { flex: none; width: 50px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0 var(--dhs-r-sm) var(--dhs-r-sm) 0; background: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-search__btn:hover { background: var(--dhs-primary-hover); }
.dhs-nav { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.dhs-nav__link {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  border-radius: var(--dhs-r); font-size: 16px; line-height: 24px; font-weight: 600;
  color: var(--dhs-text-strong); white-space: nowrap; transition: background-color .15s;
}
.dhs-nav__link:hover { background: var(--dhs-bg-hover); }
.dhs-nav__link[aria-current="page"] { color: var(--dhs-accent); }
.dhs-nav__wide { display: none; }
.dhs-nav__signin { height: 36px; padding: 0 12px; border: 1px solid var(--dhs-text-strong); border-radius: var(--dhs-r); font-size: 15px; font-weight: 600; color: var(--dhs-text-strong); display: inline-flex; align-items: center; white-space: nowrap; }
.dhs-nav__signin:hover { background: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-badge-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dhs-danger); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px var(--dhs-bg); }
html.dark .dhs-badge-dot { color: #121614; }
.dhs-acct { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 4px; border-radius: var(--dhs-r); color: var(--dhs-text-strong); }
.dhs-acct:hover { background: var(--dhs-bg-hover); }
.dhs-acct .dhs-acct__chev { display: none; }
/* Inbox: an icon link with the unread messages badge, from 600px (phones reach it from the drawer, the account menu and the bottom nav). */
.dhs-nav__icon { display: none; }
.dhs-iconbtn[aria-current="page"] { color: var(--dhs-accent); }

@media (min-width: 600px) {
  .dhs-header { position: sticky; top: 0; }
  .dhs-header__inner { grid-template-columns: 40px auto minmax(0, 1fr) auto; grid-template-areas: "burger logo search actions"; gap: 16px; min-height: 80px; padding-block: 0; }
  .dhs-logo { justify-self: start; }
  .dhs-logo__img { height: 44px; }
  .dhs-nav__signin { height: 42px; padding: 0 16px; font-size: 16px; }
  .dhs-nav__icon { display: inline-flex; }
}
/* 600 to 767 signed in: Inbox, the bell and the account button take the room the Services label had. */
@media (min-width: 600px) and (max-width: 767px) { html.dhs-auth-in .dhs-logo__label { display: none; } }
@media (min-width: 900px) {
  .dhs-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions"; gap: 24px; }
  .dhs-header__burger { display: none; }
  .dhs-search { max-width: 600px; }
  .dhs-nav__wide { display: inline-flex; }
  .dhs-acct .dhs-acct__chev { display: inline-block; }
}
@media (min-width: 1160px) { .dhs-header__inner { gap: 32px; } }

/* Dropdown: <div class="dhs-dd"><button data-dhs-dropdown aria-controls aria-expanded> + <div class="dhs-menu" hidden> */
.dhs-dd { position: relative; display: inline-flex; }
.dhs-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 240px; max-width: calc(100vw - 16px);
  background: var(--dhs-bg); color: var(--dhs-text-body);
  border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r);
  box-shadow: var(--dhs-shadow-pop); padding: 8px 0;
}
.dhs-menu--left { right: auto; left: 0; }
.dhs-menu__head { padding: 8px 16px 12px; border-bottom: 1px solid var(--dhs-border-faint); margin-bottom: 8px; }
.dhs-menu__name { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-menu__sub { font-size: 13px; line-height: 18px; color: var(--dhs-text-muted); overflow-wrap: anywhere; }
.dhs-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 16px;
  font-size: 15px; line-height: 20px; color: var(--dhs-text-heading); text-align: left; background: none; border: 0;
}
.dhs-menu__item:hover, .dhs-menu__item:focus-visible { background: var(--dhs-bg-hover); color: var(--dhs-text-strong); outline-offset: -2px; }
.dhs-menu__item[aria-current="page"] { font-weight: 600; color: var(--dhs-text-strong); }
.dhs-menu__sep { height: 1px; margin: 8px 0; background: var(--dhs-border-faint); border: 0; }
.dhs-menu__text { flex: 1 1 auto; min-width: 0; }
.dhs-menu__count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dhs-danger); color: #fff; font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; }
html.dark .dhs-menu__count { color: #121614; }
.dhs-menu__item.is-busy { opacity: .7; pointer-events: none; }
.dhs-menu__item.is-busy::after { content: ""; flex: none; margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dhs-spin .7s linear infinite; }
@media (max-width: 599px) {
  .dhs-header .dhs-dd { position: static; }
  .dhs-header .dhs-menu { top: 56px; left: 8px; right: 8px; min-width: 0; max-width: none; }
}

/* Notifications panel inside the bell menu. */
.dhs-notifs { width: 380px; padding: 0; }
@media (max-width: 599px) { .dhs-notifs { width: auto; } }
.dhs-notifs__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--dhs-border-faint); }
.dhs-notifs__title { font-size: 16px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-notifs__list { max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.dhs-notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--dhs-border-faint); color: inherit; text-decoration: none; position: relative; }
.dhs-notif:last-child { border-bottom: 0; }
a.dhs-notif:hover { background: var(--dhs-bg-hover); }
.dhs-notif__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
.dhs-notif__body { min-width: 0; flex: 1 1 auto; }
.dhs-notif__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-notif__text { font-size: 13px; line-height: 19px; color: var(--dhs-text-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dhs-notif__time { font-size: 12px; line-height: 16px; color: var(--dhs-text-muted); margin-top: 2px; }
.dhs-notif.is-unread { background: var(--dhs-accent-soft); }
.dhs-notif.is-unread .dhs-notif__title::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--dhs-accent); vertical-align: middle; }

/* Bell additions (2026-10-29): "Mark all as read", a close button on phones,
   a dashboard link, and the bottom sheet the phone bottom nav opens. */
.dhs-notif__title, .dhs-notif__time { display: block; }
.dhs-notifs__tools { display: flex; align-items: center; gap: 12px; }
.dhs-notifs__readall { font-size: 14px; }
.dhs-notifs__close { display: none; }
.dhs-notifs__foot { padding: 10px 16px; border-top: 1px solid var(--dhs-border-faint); text-align: center; }
.dhs-notifs__list:focus { outline: none; }
@media (max-width: 599px) {
  .dhs-notifs__close { display: inline-flex; }
  .dhs-header .dhs-menu.is-sheet {
    position: fixed; top: auto; left: 8px; right: 8px; z-index: 60;
    bottom: calc(var(--dhs-bnav-offset, 0px) + 8px);
    max-height: calc(100vh - var(--dhs-bnav-offset, 0px) - 72px);
    max-height: calc(100dvh - var(--dhs-bnav-offset, 0px) - 72px);
    display: flex; flex-direction: column; border-radius: var(--dhs-r-lg);
    animation: dhs-sheet-in .22s var(--dhs-ease);
  }
  .dhs-header .dhs-menu.is-sheet .dhs-notifs__list { flex: 1 1 auto; min-height: 0; max-height: none; }
}
@keyframes dhs-sheet-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* Behind the sheet: a child of the header (z 49 inside its stacking context, so under the sheet's 60 and, with the header at 50, over the page and the bottom nav at 46). A tap closes the sheet and nothing else. */
.dhs-sheet-backdrop { position: fixed; inset: 0; z-index: 49; background: var(--dhs-overlay); }
.dhs-sheet-backdrop[hidden] { display: none; }
html.dhs-sheet-open #dhwc-launch, html.dhs-sheet-open #dhwc-teaser, html.dhs-sheet-open #dhwc-msgpop, html.dhs-sheet-open #dh-float-cluster { visibility: hidden; }

/* Search suggestions: a listbox under the header search (store.js wireSearch). */
.dhs-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 61;
  max-height: min(460px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0; background: var(--dhs-bg); color: var(--dhs-text-body);
  border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r); box-shadow: var(--dhs-shadow-pop);
}
.dhs-suggest__group + .dhs-suggest__group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--dhs-border-faint); }
.dhs-suggest__label { padding: 6px 16px 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-muted); }
.dhs-suggest__opt {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px;
  font-size: 15px; line-height: 20px; color: var(--dhs-text-heading); text-decoration: none; cursor: pointer;
}
.dhs-suggest__opt:hover, .dhs-suggest__opt.is-active { background: var(--dhs-bg-hover); color: var(--dhs-text-strong); }
.dhs-suggest__opt.is-active { box-shadow: inset 3px 0 0 var(--dhs-accent); }
.dhs-suggest__icon { flex: none; display: inline-flex; color: var(--dhs-text-muted); }
.dhs-suggest__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhs-suggest__text b { font-weight: 700; color: var(--dhs-text-strong); }
.dhs-suggest__meta { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-suggest__hl { background: none; color: var(--dhs-text-strong); font-weight: 700; }
.dhs-suggest__opt--muted { font-size: 14px; color: var(--dhs-text-muted); }
.dhs-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.dhs-suggest__opt--chip { min-height: 32px; padding: 4px 12px; border: 1px solid var(--dhs-border); border-radius: var(--dhs-r-pill); font-size: 14px; }
.dhs-suggest__opt--chip:hover, .dhs-suggest__opt--chip.is-active { border-color: var(--dhs-text-strong); box-shadow: none; }
.dhs-suggest__note { padding: 10px 16px; font-size: 14px; line-height: 20px; color: var(--dhs-text-muted); }
/* 600 to 899 the field is narrow (the logo and the icons share the row): the panel spans the header row instead. */
@media (min-width: 600px) and (max-width: 899px) {
  .dhs-header__inner { position: relative; }
  .dhs-header .dhs-search { position: static; }
  .dhs-suggest { top: calc(100% - 6px); left: var(--dhs-gutter); right: var(--dhs-gutter); }
}
@media (max-width: 599px) {
  .dhs-suggest { max-height: 60vh; }
  .dhs-suggest__opt:not(.dhs-suggest__opt--chip) .dhs-suggest__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Phone menu: a <dialog> drawer from the left. */
.dhs-drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0;
  width: min(320px, 86vw); height: 100%; max-height: 100%; max-width: none;
  background: var(--dhs-bg); color: var(--dhs-text-body); box-shadow: var(--dhs-shadow-pop);
  overflow-y: auto; overscroll-behavior: contain;
}
.dhs-drawer::backdrop { background: var(--dhs-overlay); }
.dhs-drawer[open] { animation: dhs-drawer-in .22s var(--dhs-ease); }
@keyframes dhs-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.dhs-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--dhs-border-faint); }
.dhs-drawer__body { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 20px; }
.dhs-drawer__who { padding: 12px; border-radius: var(--dhs-r); background: var(--dhs-bg-subtle); }
.dhs-drawer__label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-muted); margin-bottom: 6px; }
.dhs-drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 600; color: var(--dhs-text-strong); border-bottom: 1px solid var(--dhs-border-faint); }
.dhs-drawer__link:hover { color: var(--dhs-accent); }
.dhs-drawer__link--sub { font-weight: 400; color: var(--dhs-text-heading); }
.dhs-drawer__text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* ── 8. Category strip ────────────────────────────────────────────────────── */
.dhs-strip { background: var(--dhs-bg); border-bottom: 1px solid var(--dhs-border-light); }
.dhs-strip__list { display: flex; align-items: center; gap: 0; height: 40px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dhs-strip__list::-webkit-scrollbar { display: none; }
.dhs-strip__item { flex: none; padding: 0 10px; }
.dhs-strip__item:first-child { padding-left: 0; }
.dhs-strip__link { position: relative; display: inline-flex; align-items: center; height: 40px; font-size: 15px; line-height: 24px; color: var(--dhs-text-body); white-space: nowrap; }
.dhs-strip__link:hover { color: var(--dhs-text-strong); }
.dhs-strip__link[aria-current] { color: var(--dhs-text-strong); font-weight: 600; box-shadow: inset 0 -3px 0 var(--dhs-accent); }
@media (min-width: 600px) { .dhs-strip__link { font-size: 16px; } }
@media (max-width: 899px) { .dhs-strip__list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; } }

/* ── 9. Footer ────────────────────────────────────────────────────────────── */
.dhs-footer { background: var(--dhs-bg); border-top: 1px solid var(--dhs-border); color: var(--dhs-text-body); }
.dhs-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-block: 40px; }
.dhs-footer__brand { grid-column: 1 / -1; }
@media (min-width: 600px) { .dhs-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 900px) { .dhs-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .dhs-footer__brand { grid-column: auto; } }
.dhs-footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.dhs-footer__logo { height: 42px; width: auto; }
.dhs-footer__blurb { font-size: 14px; line-height: 22px; }
.dhs-footer__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--dhs-text-strong); margin-bottom: 12px; }
.dhs-footer__links { display: flex; flex-direction: column; gap: 10px; }
.dhs-footer__link { font-size: 14px; line-height: 22px; color: var(--dhs-text-body); }
.dhs-footer__link:hover { color: var(--dhs-text-strong); text-decoration: underline; text-underline-offset: 3px; }
.dhs-footer__bar { border-top: 1px solid var(--dhs-border-light); }
.dhs-footer__barin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; font-size: 14px; line-height: 22px; }
.dhs-footer__copy { display: flex; align-items: center; gap: 12px; }
.dhs-footer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.dhs-footer__tool { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--dhs-text-body); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 4px 0; }
.dhs-footer__tool:hover { color: var(--dhs-text-strong); text-decoration: underline; text-underline-offset: 3px; }
.dhs-theme-dark { display: none; }
html.dark .dhs-theme-light { display: none; }
html.dark .dhs-theme-dark { display: inline-block; }

/* ── 10. Breadcrumbs ──────────────────────────────────────────────────────── */
.dhs-crumbs { min-height: 35px; display: flex; align-items: center; }
.dhs-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 24px; color: var(--dhs-text-strong); }
.dhs-crumbs__item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dhs-crumbs__item + .dhs-crumbs__item::before { content: "/"; color: var(--dhs-border-input); }
.dhs-crumbs__link { color: var(--dhs-text-strong); }
.dhs-crumbs__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dhs-crumbs__home { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; }
.dhs-crumbs__home:hover { background: var(--dhs-bg-hover); }
.dhs-crumbs__current { color: var(--dhs-text-muted); }

/* ── 11. Tabs ─────────────────────────────────────────────────────────────── */
.dhs-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--dhs-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dhs-tabs::-webkit-scrollbar { display: none; }
.dhs-tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0 13px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--dhs-text-muted);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.dhs-tab:hover { color: var(--dhs-text-strong); }
.dhs-tab[aria-selected="true"] { color: var(--dhs-text-strong); }
.dhs-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dhs-text-strong); }
.dhs-tabs--accent .dhs-tab[aria-selected="true"]::after { background: var(--dhs-accent); }
.dhs-tab:focus-visible { outline-offset: -2px; }
.dhs-tab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--dhs-r-pill); background: var(--dhs-bg-muted); color: var(--dhs-text-heading); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dhs-tab[aria-selected="true"] .dhs-tab__count { background: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-tabpanel { padding-top: 24px; }
.dhs-tabpanel:focus-visible { outline-offset: 4px; }

/* ── 12. Cards ────────────────────────────────────────────────────────────── */
.dhs-card { background: var(--dhs-bg); border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); min-width: 0; }
.dhs-card--flat { border-radius: 0; }
.dhs-card--subtle { background: var(--dhs-bg-subtle); border-color: transparent; border-radius: var(--dhs-r-lg); }
.dhs-card--raised { border-color: var(--dhs-border-light); box-shadow: var(--dhs-shadow-2); }
.dhs-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--dhs-border-faint); }
.dhs-card__title { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-card__body { padding: 20px; }
.dhs-card__foot { padding: 16px 20px; border-top: 1px solid var(--dhs-border-faint); }
@media (min-width: 600px) { .dhs-card__head, .dhs-card__body, .dhs-card__foot { padding-inline: 24px; } .dhs-card__body { padding-block: 24px; } }

/* Summary rows (checkout summary, order sidebar). */
.dhs-sum { display: flex; flex-direction: column; gap: 10px; }
.dhs-sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }
.dhs-sum__row > :last-child { color: var(--dhs-text-strong); text-align: right; }
.dhs-sum__row--total { padding-top: 12px; border-top: 1px solid var(--dhs-border); font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-sum__row--total > :last-child { font-size: 18px; }
.dhs-sum__media { display: flex; gap: 12px; align-items: flex-start; }
.dhs-sum__thumb { flex: none; width: 96px; aspect-ratio: 5 / 3; border-radius: var(--dhs-r-sm); overflow: hidden; background: var(--dhs-bg-media); border: 1px solid var(--dhs-border-faint); }
.dhs-sum__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Definition grid: label above value on phones, two columns from 600. */
.dhs-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; font-size: 14px; line-height: 21px; }
.dhs-dl dt { color: var(--dhs-text-muted); }
.dhs-dl dd { color: var(--dhs-text-strong); font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
@media (min-width: 600px) { .dhs-dl--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dhs-dl--inline { grid-template-columns: max-content minmax(0, 1fr); }
.dhs-dl--inline dd { margin: 0; }

/* Service card. The whole card is ONE link (the hub gate reads the price inside it). */
.dhs-scard { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.dhs-scard__media { position: relative; aspect-ratio: 5 / 3; overflow: hidden; border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r); background: var(--dhs-bg-media); }
/* Product images are 1200x630 cards with the title on the left: crop the right edge. */
.dhs-scard__img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .3s var(--dhs-ease); }
.dhs-scard:hover .dhs-scard__img { transform: scale(1.03); }
.dhs-scard__chip { position: absolute; top: 8px; left: 8px; }
.dhs-scard__seller { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 24px; margin-top: 12px; }
.dhs-scard__who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-scard__title { margin-top: 8px; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--dhs-text-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dhs-scard:hover .dhs-scard__title { text-decoration: underline; text-underline-offset: 3px; }
.dhs-scard__rating { margin-top: 8px; }
.dhs-scard__rating:empty { display: none; }
.dhs-scard__price { margin-top: 8px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-scard__meta { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--dhs-text-heading); }

/* Package card (sidebar on the service page). Each tab panel is an
   <article id="tier-<id>" data-price-usd> because the store gate reads them. */
.dhs-pkg { background: var(--dhs-bg); border: 1px solid var(--dhs-border); }
.dhs-pkgtabs { display: flex; }
.dhs-pkgtab {
  flex: 1 1 0; min-width: 0; height: 59px; padding: 0 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-muted); background: var(--dhs-bg-subtle);
  border: 0; border-bottom: 1px solid var(--dhs-border); cursor: pointer; transition: color .15s, background-color .15s;
}
.dhs-pkgtab + .dhs-pkgtab { border-left: 1px solid var(--dhs-border); }
.dhs-pkgtab:hover { color: var(--dhs-text-strong); }
.dhs-pkgtab[aria-selected="true"] { background: var(--dhs-bg); color: var(--dhs-text-strong); border-bottom: 3px solid var(--dhs-text-strong); }
.dhs-pkgtab:focus-visible { outline-offset: -3px; }
.dhs-pkg__panel { padding: 24px 20px 20px; }
@media (min-width: 600px) { .dhs-pkg__panel { padding: 32px 24px 20px; } }
.dhs-pkg__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dhs-pkg__name { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-pkg__price { font-size: 20px; line-height: 24px; font-weight: 400; color: var(--dhs-text-heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dhs-pkg__desc { font-size: 16px; line-height: 21px; color: var(--dhs-text-body); margin-bottom: 16px; }
.dhs-pkg__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-pkg__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.dhs-pkg__features { margin-bottom: 24px; }
.dhs-pkg__foot { display: flex; flex-direction: column; gap: 12px; }
.dhs-pkg__compare { align-self: center; }
.dhs-contact { margin-top: 16px; padding: 24px; border-radius: var(--dhs-r-lg); background: var(--dhs-bg-subtle); display: flex; flex-direction: column; gap: 12px; }
.dhs-contact__title { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-contact__text { font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }

/* Feature checklist. */
.dhs-checklist { display: flex; flex-direction: column; gap: 8px; }
.dhs-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }
.dhs-checklist li > .dhs-icon { margin-top: 2px; color: var(--dhs-accent); }
.dhs-checklist li.is-off { color: var(--dhs-text-muted); }
.dhs-checklist li.is-off > .dhs-icon { color: var(--dhs-border-input); }

/* Seller row and about-the-seller card. */
.dhs-seller { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dhs-seller__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dhs-seller__name { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-seller__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; line-height: 21px; color: var(--dhs-text-muted); }
.dhs-seller__sep { width: 1px; height: 16px; background: var(--dhs-border); }
.dhs-sellercard { border: 1px solid var(--dhs-border); border-radius: var(--dhs-r-sm); }
.dhs-sellercard__top { display: flex; align-items: center; gap: 16px; padding: 24px; }
.dhs-sellercard__bottom { padding: 24px; border-top: 1px solid var(--dhs-border); }
.dhs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--dhs-border); }
.dhs-stats dt { font-size: 14px; line-height: 20px; color: var(--dhs-text-muted); }
.dhs-stats dd { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }

/* Gallery: the image letterboxed in a 5:3 frame, edge to edge on phones. */
.dhs-gallery { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--dhs-bg-media); border: 1px solid var(--dhs-border-faint); }
.dhs-gallery__img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 599px) { .dhs-gallery { margin-inline: calc(var(--dhs-gutter) * -1); border-inline: 0; } }

/* ── 13. Badges, pills, avatars ───────────────────────────────────────────── */
.dhs-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--dhs-r-sm); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
.dhs-badge--amber { background: #f5d4a5; color: #2b1308; }
.dhs-badge--moss { background: var(--dhs-accent-soft); color: var(--dhs-accent-text); }
.dhs-badge--info { background: var(--dhs-info-soft); color: var(--dhs-info-text); }
.dhs-badge--outline { background: transparent; border: 1px solid var(--dhs-border); color: var(--dhs-text-strong); }
.dhs-badge--plain { background: transparent; padding: 0; color: var(--dhs-text-strong); }
html.dark .dhs-badge--amber { background: rgba(245, 212, 165, .16); color: #f5d4a5; }

.dhs-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--dhs-r-pill); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
.dhs-pill--missing_details { background: var(--dhs-st-missing-bg); color: var(--dhs-st-missing-fg); }
.dhs-pill--in_progress { background: var(--dhs-st-progress-bg); color: var(--dhs-st-progress-fg); }
.dhs-pill--delivered { background: var(--dhs-st-delivered-bg); color: var(--dhs-st-delivered-fg); }
.dhs-pill--revision { background: var(--dhs-st-revision-bg); color: var(--dhs-st-revision-fg); }
.dhs-pill--completed { background: var(--dhs-st-completed-bg); color: var(--dhs-st-completed-fg); }
.dhs-pill--cancelled { background: var(--dhs-st-cancelled-bg); color: var(--dhs-st-cancelled-fg); }
.dhs-pill--late { background: var(--dhs-st-late-bg); color: var(--dhs-st-late-fg); }
.dhs-pill--paid { background: var(--dhs-st-delivered-bg); color: var(--dhs-st-delivered-fg); }
.dhs-pills { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.dhs-avatar { --dhs-av: 32px; flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--dhs-av); height: var(--dhs-av); border-radius: 50%; overflow: hidden; background: var(--dhs-accent); color: #fff; font-size: calc(var(--dhs-av) * .45); line-height: 1; font-weight: 600; text-transform: uppercase; }
.dhs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dhs-avatar--24 { --dhs-av: 24px; }
.dhs-avatar--32 { --dhs-av: 32px; }
.dhs-avatar--40 { --dhs-av: 40px; }
.dhs-avatar--48 { --dhs-av: 48px; }
.dhs-avatar--64 { --dhs-av: 64px; }
.dhs-avatar--96 { --dhs-av: 96px; }
.dhs-avatar--neutral { background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
html.dark .dhs-avatar { color: #121614; }
html.dark .dhs-avatar--neutral { color: var(--dhs-text-heading); }
.dhs-avatar--brand { background: #3f6b54; }

/* ── 14. Rating ───────────────────────────────────────────────────────────── */
.dhs-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--dhs-star); vertical-align: middle; }
.dhs-star { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; }
.dhs-star__off, .dhs-star__on { position: absolute; inset: 0; display: block; }
.dhs-star__off svg, .dhs-star__on svg { display: block; width: 100%; height: 100%; }
.dhs-star__off { color: var(--dhs-border-input); }
.dhs-star__on { color: var(--dhs-star); clip-path: inset(0 100% 0 0); }
.dhs-star.is-full .dhs-star__on { clip-path: none; }
.dhs-star.is-half .dhs-star__on { clip-path: inset(0 50% 0 0); }
.dhs-stars--sm .dhs-star { width: 14px; height: 14px; }
.dhs-stars--lg .dhs-star { width: 20px; height: 20px; }
.dhs-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; line-height: 24px; color: var(--dhs-text-strong); }
.dhs-rating > .dhs-icon { color: var(--dhs-star); }
.dhs-rating > .dhs-icon path { fill: currentColor; }
.dhs-rating__score { font-weight: 700; }
.dhs-rating__count { color: var(--dhs-text-muted); }
.dhs-rating--sm { font-size: 14px; line-height: 20px; }

/* Star input: radios 1..5 in DOM order; :has() fills the stars up to the pick. */
.dhs-starinput { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; margin: 0; }
.dhs-starinput input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dhs-starinput label { display: inline-flex; padding: 2px; color: var(--dhs-border-input); cursor: pointer; border-radius: var(--dhs-r-sm); transition: color .1s, transform .1s; }
.dhs-starinput label svg { width: 28px; height: 28px; }
.dhs-starinput label svg path { fill: currentColor; }
.dhs-starinput input:checked + label,
.dhs-starinput label:has(~ input:checked) { color: var(--dhs-star); }
.dhs-starinput:hover label { color: var(--dhs-border-input); }
.dhs-starinput:hover label:hover,
.dhs-starinput:hover label:has(~ label:hover) { color: var(--dhs-star); transform: scale(1.06); }
.dhs-starinput input:focus-visible + label { outline: 2px solid var(--dhs-focus); outline-offset: 1px; }
.dhs-starinput__value { margin-left: 8px; font-size: 14px; color: var(--dhs-text-muted); }

/* Reviews summary histogram: <progress class="dhs-meter"> carries the share (no inline styles). */
.dhs-hist { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.dhs-hist__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 14px; line-height: 24px; }
.dhs-hist__label { font-weight: 600; color: var(--dhs-text-strong); white-space: nowrap; }
.dhs-hist__count { color: var(--dhs-text-muted); font-variant-numeric: tabular-nums; }
.dhs-meter, .dhs-progressbar { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: var(--dhs-r-pill); overflow: hidden; background: var(--dhs-border-light); color: var(--dhs-text-strong); }
.dhs-meter::-webkit-progress-bar, .dhs-progressbar::-webkit-progress-bar { background: var(--dhs-border-light); border-radius: var(--dhs-r-pill); }
.dhs-meter::-webkit-progress-value { background: var(--dhs-text-strong); border-radius: var(--dhs-r-pill); }
.dhs-meter::-moz-progress-bar { background: var(--dhs-text-strong); border-radius: var(--dhs-r-pill); }
.dhs-progressbar { height: 4px; }
.dhs-progressbar::-webkit-progress-value { background: var(--dhs-accent); border-radius: var(--dhs-r-pill); transition: width .2s; }
.dhs-progressbar::-moz-progress-bar { background: var(--dhs-accent); border-radius: var(--dhs-r-pill); }

.dhs-reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--dhs-text-heading); }
.dhs-review { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--dhs-border-light); }
.dhs-review__main { min-width: 0; flex: 1 1 auto; }
.dhs-review__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dhs-review__name { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-review__country { font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-review__title { margin-top: 10px; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-review__text { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--dhs-text-heading); overflow-wrap: anywhere; white-space: pre-line; }
.dhs-review__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.dhs-review__fact b { display: block; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-review__fact span { font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-review__reply { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--dhs-border); background: var(--dhs-bg-subtle); font-size: 14px; line-height: 21px; }
.dhs-review__reply-title { font-weight: 700; color: var(--dhs-text-strong); margin-bottom: 4px; }

/* ── 15. Tables ───────────────────────────────────────────────────────────── */
/* Always add the literal class overflow-x-auto next to dhs-table-wrap on the
   compare table: scripts/assert-products.cjs checks for it. */
.dhs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.dhs-table { width: 100%; font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }
.dhs-table th { padding: 12px 16px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-text-muted); background: var(--dhs-bg-subtle); border-bottom: 1px solid var(--dhs-border); white-space: nowrap; }
.dhs-table td { padding: 14px 16px; border-bottom: 1px solid var(--dhs-border-faint); vertical-align: middle; }
.dhs-table tbody tr:hover td { background: var(--dhs-bg-subtle); }
.dhs-table td.dhs-table__num, .dhs-table th.dhs-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dhs-table--bordered { border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); overflow: hidden; }

.dhs-compare { width: 100%; min-width: 560px; table-layout: fixed; border: 1px solid var(--dhs-border-faint); font-size: 14px; line-height: 21px; background: var(--dhs-bg); color: var(--dhs-text-body); }
.dhs-compare col.dhs-compare__labelcol { width: 25%; }
.dhs-compare th, .dhs-compare td { padding: 12px 16px; border-right: 1px solid var(--dhs-border-faint); text-align: center; vertical-align: middle; }
.dhs-compare th:last-child, .dhs-compare td:last-child { border-right: 0; }
.dhs-compare tbody tr:nth-child(2n) { background: var(--dhs-bg-subtle); }
.dhs-compare__label { text-align: left !important; vertical-align: top !important; color: var(--dhs-text-muted); font-weight: 400; }
.dhs-compare thead th { padding: 24px 16px 16px; vertical-align: top; font-weight: 400; background: var(--dhs-bg); border-bottom: 1px solid var(--dhs-border-light); }
.dhs-compare__price { display: block; font-size: 19px; line-height: 26px; color: var(--dhs-text-strong); font-variant-numeric: tabular-nums; }
.dhs-compare__tier { display: block; margin-top: 4px; font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-strong); }
.dhs-compare__tagline { display: block; margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--dhs-text-body); text-align: left; }
.dhs-compare__yes { color: var(--dhs-accent); }
.dhs-compare__no { color: var(--dhs-border-input); }
.dhs-compare tfoot td { padding: 16px; border-top: 1px solid var(--dhs-border-faint); background: var(--dhs-bg); }

/* Order and billing rows: a table on wide screens, cards on phones. */
.dhs-rows { border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); background: var(--dhs-bg); overflow: hidden; }
.dhs-rows__head { display: none; }
.dhs-orow { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "media main" "meta meta"; gap: 12px 14px; padding: 16px; border-top: 1px solid var(--dhs-border-faint); color: inherit; text-decoration: none; }
.dhs-orow:first-child, .dhs-rows__head + .dhs-orow { border-top: 0; }
a.dhs-orow:hover { background: var(--dhs-bg-subtle); }
.dhs-orow__media { grid-area: media; aspect-ratio: 5 / 3; border-radius: var(--dhs-r-sm); overflow: hidden; background: var(--dhs-bg-media); border: 1px solid var(--dhs-border-faint); }
.dhs-orow__media img { width: 100%; height: 100%; object-fit: cover; }
.dhs-orow__main { grid-area: main; min-width: 0; }
.dhs-orow__title { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--dhs-text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dhs-orow__sub { margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--dhs-text-muted); }
.dhs-orow__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; line-height: 21px; }
.dhs-orow__cell { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.dhs-orow__label { color: var(--dhs-text-muted); }
.dhs-orow__value { color: var(--dhs-text-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.dhs-orow__end { display: none; color: var(--dhs-text-muted); }
@media (min-width: 900px) {
  .dhs-rows__head { display: grid; grid-template-columns: 88px minmax(0, 1fr) 150px 170px 120px 24px; gap: 16px; padding: 12px 20px; background: var(--dhs-bg-subtle); border-bottom: 1px solid var(--dhs-border); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-text-muted); }
  .dhs-orow { grid-template-columns: 88px minmax(0, 1fr) 150px 170px 120px 24px; grid-template-areas: none; align-items: center; gap: 16px; padding: 16px 20px; }
  .dhs-orow__media, .dhs-orow__main { grid-area: auto; }
  .dhs-orow__meta { display: contents; }
  .dhs-orow__label { display: none; }
  .dhs-orow__cell:last-child { justify-content: flex-end; }
  .dhs-orow__end { display: inline-flex; justify-content: flex-end; }
}

/* ── 16. Accordion (FAQ) and disclosure ───────────────────────────────────── */
/* <details> ONLY for a real FAQ: scripts/inject-faq-schema.cjs turns every
   <details><summary> on a built page into FAQPage markup. Put the question in
   the FIRST <span> of the summary. For anything else use .dhs-disclosure. */
.dhs-faq { border-top: 1px solid var(--dhs-border); }
.dhs-faq__item { border-bottom: 1px solid var(--dhs-border); }
.dhs-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--dhs-text-heading); cursor: pointer; list-style: none; }
.dhs-faq__q::-webkit-details-marker { display: none; }
.dhs-faq__q::marker { content: ""; }
.dhs-faq__q:hover { color: var(--dhs-text-strong); }
.dhs-faq__q .dhs-icon { transition: transform .2s var(--dhs-ease); color: var(--dhs-text-muted); }
.dhs-faq__item[open] > .dhs-faq__q .dhs-icon { transform: rotate(180deg); }
.dhs-faq__a { padding: 0 0 20px; font-size: 16px; line-height: 26px; color: var(--dhs-text-body); }
.dhs-faq__a > * + * { margin-top: 12px; }
.dhs-faq--band .dhs-faq__item { border-color: var(--dhs-border-faint); }

.dhs-disclosure__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--dhs-text-heading); text-align: left; }
.dhs-disclosure__btn .dhs-icon { transition: transform .2s var(--dhs-ease); }
.dhs-disclosure__btn[aria-expanded="true"] .dhs-icon { transform: rotate(180deg); }
.dhs-disclosure__btn--link { width: auto; justify-content: flex-start; padding: 6px 0; font-weight: 600; color: var(--dhs-accent); }
.dhs-disclosure__panel { padding-bottom: 12px; }

/* ── 17. Listing: filters, results bar, how it works, tag pills ───────────── */
.dhs-pagehead { padding-block: 8px 16px; }
.dhs-pagehead__sub { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--dhs-text-body); max-width: 820px; }
.dhs-filters { display: flex; gap: 12px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--dhs-gutter) * -1); padding-inline: var(--dhs-gutter); }
.dhs-filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .dhs-filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.dhs-filters__group { flex: none; display: flex; align-items: center; gap: 8px; }
.dhs-filters__label { font-size: 14px; font-weight: 600; color: var(--dhs-text-muted); white-space: nowrap; }
.dhs-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); background: var(--dhs-bg);
  font-size: 15px; line-height: 20px; font-weight: 600; color: var(--dhs-text-strong); white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.dhs-chip:hover { border-color: var(--dhs-text-strong); }
.dhs-chip[aria-pressed="true"], .dhs-chip.is-active, .dhs-chip[aria-current="page"] { background: var(--dhs-primary); border-color: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-chip--lg { height: 48px; padding: 0 20px; font-size: 16px; font-weight: 700; }
.dhs-popover { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 260px; max-width: calc(100vw - 32px); padding: 20px; background: var(--dhs-bg); border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r); box-shadow: var(--dhs-shadow-pop); }
.dhs-popover__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--dhs-border-faint); }
/* Phones and tablets: a popover inside the scrolling filter row would be
   clipped, so it opens as a sheet pinned to the bottom of the screen. */
@media (max-width: 899px) {
  /* Above the chat launcher (z 2147483000), so its Apply button is never covered. */
  .dhs-popover { position: fixed; top: auto; left: 8px; right: 8px; bottom: 8px; min-width: 0; max-width: none; max-height: 70vh; overflow-y: auto; z-index: 2147483003; box-shadow: 0 -8px 40px rgba(0, 0, 0, .18); }
}
.dhs-resultsbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px 16px; }
.dhs-resultsbar__count { font-size: 16px; line-height: 24px; color: var(--dhs-text-muted); }
.dhs-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dhs-text-muted); }
.dhs-sort .dhs-select { width: auto; min-height: 36px; padding-block: 6px; font-size: 14px; font-weight: 600; color: var(--dhs-text-strong); border-color: transparent; padding-left: 8px; }
.dhs-sort .dhs-select:hover { border-color: var(--dhs-border); }

.dhs-howit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; counter-reset: dhs-step; }
@media (min-width: 600px) { .dhs-howit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .dhs-howit { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dhs-howit__step { position: relative; padding: 24px; border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r-lg); background: var(--dhs-bg); }
.dhs-howit__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--dhs-accent-soft); color: var(--dhs-accent-text); margin-bottom: 16px; }
.dhs-howit__step::before { counter-increment: dhs-step; content: counter(dhs-step); position: absolute; top: 20px; right: 24px; font-size: 32px; line-height: 1; font-weight: 700; color: var(--dhs-border); }
.dhs-howit__title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); margin-bottom: 6px; }
.dhs-howit__text { font-size: 15px; line-height: 23px; color: var(--dhs-text-body); }

.dhs-tagpills { display: flex; flex-wrap: wrap; gap: 12px; }
.dhs-tagpill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 16px; border-radius: var(--dhs-r-pill); background: var(--dhs-bg-muted); color: var(--dhs-text-strong); font-size: 15px; line-height: 22px; }
.dhs-tagpill:hover { background: var(--dhs-border-light); }

/* ── 18. Alerts, empty states, skeletons ──────────────────────────────────── */
.dhs-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--dhs-r); border: 1px solid var(--dhs-border); background: var(--dhs-bg-subtle); color: var(--dhs-text-heading); font-size: 14px; line-height: 21px; }
.dhs-alert__icon { flex: none; margin-top: 1px; }
.dhs-alert__body { min-width: 0; flex: 1 1 auto; }
.dhs-alert__title { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-alert__text { margin-top: 2px; }
.dhs-alert__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dhs-alert--warning { background: var(--dhs-warning-soft); border-color: transparent; border-left: 4px solid var(--dhs-warning); }
.dhs-alert--warning .dhs-alert__icon { color: var(--dhs-warning); }
.dhs-alert--info { background: var(--dhs-info-soft); border-color: transparent; border-left: 4px solid var(--dhs-info); }
.dhs-alert--info .dhs-alert__icon { color: var(--dhs-info); }
.dhs-alert--success { background: var(--dhs-accent-soft); border-color: transparent; border-left: 4px solid var(--dhs-accent); }
.dhs-alert--success .dhs-alert__icon { color: var(--dhs-accent); }
.dhs-alert--danger { background: var(--dhs-danger-soft); border-color: transparent; border-left: 4px solid var(--dhs-danger); }
.dhs-alert--danger .dhs-alert__icon { color: var(--dhs-danger); }

.dhs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 20px; }
.dhs-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); margin-bottom: 8px; }
.dhs-empty__title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-empty__text { max-width: 440px; font-size: 15px; line-height: 23px; color: var(--dhs-text-body); }
.dhs-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.dhs-empty--boxed { border: 1px dashed var(--dhs-border); border-radius: var(--dhs-r-lg); }

.dhs-skel { display: block; border-radius: var(--dhs-r-sm); background: var(--dhs-bg-muted); background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .55) 50%, transparent 100%); background-size: 200% 100%; background-repeat: no-repeat; animation: dhs-shimmer 1.4s ease-in-out infinite; }
html.dark .dhs-skel { background-image: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .06) 50%, transparent 100%); }
@keyframes dhs-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.dhs-skel--text { height: 14px; margin: 5px 0; }
.dhs-skel--title { height: 24px; width: 60%; margin: 4px 0 10px; }
.dhs-skel--short { width: 40%; }
.dhs-skel--avatar { width: 32px; height: 32px; border-radius: 50%; }
.dhs-skel--media { aspect-ratio: 5 / 3; border-radius: var(--dhs-r); }
.dhs-skel--btn { height: 42px; width: 140px; }
.dhs-skel--pill { height: 24px; width: 96px; border-radius: var(--dhs-r-pill); }
.dhs-skel--block { height: 120px; border-radius: var(--dhs-r); }
.dhs-skel-card { display: flex; flex-direction: column; }
.dhs-skel-card > .dhs-skel--media { margin-bottom: 12px; }
.dhs-skel-row { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--dhs-border-faint); }
.dhs-skel-row:first-child { border-top: 0; }
.dhs-skel-row__main { flex: 1 1 auto; min-width: 0; }

/* ── 19. Timeline, steps, activity feed ───────────────────────────────────── */
/* Vertical tracker: <ol class="dhs-steps"><li class="dhs-step is-done|is-current|is-upcoming|is-cancelled"> */
.dhs-steps { display: flex; flex-direction: column; }
.dhs-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; padding-bottom: 20px; }
.dhs-step:last-child { padding-bottom: 0; }
.dhs-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--dhs-border); }
.dhs-step:last-child::before { display: none; }
.dhs-step.is-done::before { background: var(--dhs-accent); }
.dhs-step__dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--dhs-border); background: var(--dhs-bg); color: var(--dhs-text-muted); }
.dhs-step.is-done .dhs-step__dot { background: var(--dhs-accent); border-color: var(--dhs-accent); color: var(--dhs-on-accent); }
.dhs-step.is-current .dhs-step__dot { border-color: var(--dhs-text-strong); box-shadow: 0 0 0 4px var(--dhs-bg-muted); }
.dhs-step.is-current .dhs-step__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dhs-text-strong); }
.dhs-step.is-cancelled .dhs-step__dot { background: var(--dhs-danger); border-color: var(--dhs-danger); color: var(--dhs-on-danger); }
.dhs-step__label { font-size: 14px; line-height: 24px; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-step.is-upcoming .dhs-step__label { font-weight: 400; color: var(--dhs-text-muted); }
.dhs-step__date { grid-column: 2; font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }

/* Horizontal stepper (checkout and success pages). */
.dhs-hsteps { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; font-size: 14px; line-height: 20px; }
.dhs-hsteps::-webkit-scrollbar { display: none; }
.dhs-hstep { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--dhs-text-muted); }
.dhs-hstep + .dhs-hstep::before { content: ""; width: 24px; height: 1px; background: var(--dhs-border); margin-right: 0; }
.dhs-hstep__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--dhs-border-input); font-size: 12px; font-weight: 700; }
.dhs-hstep.is-current { color: var(--dhs-text-strong); font-weight: 600; }
.dhs-hstep.is-current .dhs-hstep__num { background: var(--dhs-primary); border-color: var(--dhs-primary); color: var(--dhs-on-primary); }
.dhs-hstep.is-done { color: var(--dhs-text-strong); }
.dhs-hstep.is-done .dhs-hstep__num { background: var(--dhs-accent); border-color: var(--dhs-accent); color: var(--dhs-on-accent); }

/* Activity feed. */
.dhs-feed { display: flex; flex-direction: column; gap: 20px; }
.dhs-feed__item { display: flex; gap: 12px; min-width: 0; }
.dhs-feed__body { min-width: 0; flex: 1 1 auto; }
.dhs-feed__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.dhs-feed__name { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-feed__time { font-size: 12px; line-height: 18px; color: var(--dhs-text-muted); }
.dhs-feed__bubble { margin-top: 6px; padding: 12px 14px; border-radius: 4px var(--dhs-r-lg) var(--dhs-r-lg) var(--dhs-r-lg); background: var(--dhs-bg-subtle); border: 1px solid var(--dhs-border-faint); font-size: 15px; line-height: 23px; color: var(--dhs-text-heading); white-space: pre-line; overflow-wrap: anywhere; }
.dhs-feed__item--you .dhs-feed__bubble { background: var(--dhs-accent-soft); border-color: transparent; color: var(--dhs-text-strong); }
.dhs-feed__files { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dhs-feed__item--system { align-items: center; gap: 10px; font-size: 14px; line-height: 21px; color: var(--dhs-text-body); }
.dhs-feed__sysicon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
.dhs-feed__item--system .dhs-feed__time { margin-left: auto; white-space: nowrap; padding-left: 8px; }
.dhs-feed__day { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-muted); }
.dhs-feed__day::before, .dhs-feed__day::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--dhs-border-light); }

/* Delivery card. */
.dhs-delivery { border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); overflow: hidden; background: var(--dhs-bg); }
.dhs-delivery__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 20px; background: var(--dhs-bg-subtle); border-bottom: 1px solid var(--dhs-border-light); }
.dhs-delivery__title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-delivery__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dhs-delivery__msg { font-size: 15px; line-height: 24px; color: var(--dhs-text-heading); white-space: pre-line; overflow-wrap: anywhere; }
.dhs-delivery__ask { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-delivery__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dhs-delivery__actions .dhs-btn { flex: 1 1 200px; }

/* Message composer. */
.dhs-composer { border: 1px solid var(--dhs-border-input); border-radius: var(--dhs-r); background: var(--dhs-bg); transition: border-color .15s, box-shadow .15s; }
.dhs-composer:focus-within { border-color: var(--dhs-text-strong); box-shadow: 0 0 0 1px var(--dhs-text-strong); }
.dhs-composer__input { display: block; width: 100%; min-height: 88px; max-height: 280px; padding: 12px 14px; border: 0; background: transparent; resize: vertical; font-size: 15px; line-height: 22px; color: var(--dhs-text-strong); }
.dhs-composer__input:focus { outline: none; }
.dhs-composer__files { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.dhs-composer__files:empty { display: none; }
.dhs-composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 6px; border-top: 1px solid var(--dhs-border-faint); }
.dhs-composer__hint { font-size: 12px; color: var(--dhs-text-muted); margin-right: auto; padding-left: 4px; }

/* ── 20. Countdown ────────────────────────────────────────────────────────── */
.dhs-countdown { display: inline-flex; align-items: stretch; gap: 8px; font-variant-numeric: tabular-nums; }
.dhs-countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: var(--dhs-r); background: var(--dhs-bg-subtle); border: 1px solid var(--dhs-border-light); }
.dhs-countdown__num { font-size: 22px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-countdown__lbl { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-text-muted); }
.dhs-countdown.is-late .dhs-countdown__unit { background: var(--dhs-danger-soft); border-color: transparent; }
.dhs-countdown.is-late .dhs-countdown__num { color: var(--dhs-danger-text); }
.dhs-countdown__late { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--dhs-danger-text); }
.dhs-countdown--inline { display: inline; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-countdown--inline.is-late { color: var(--dhs-danger-text); }

/* ── 21. Files and uploads ────────────────────────────────────────────────── */
.dhs-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 16px; border: 1px dashed var(--dhs-border-input); border-radius: var(--dhs-r); background: var(--dhs-bg-subtle); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dhs-drop:hover, .dhs-drop.is-drag { border-color: var(--dhs-accent); background: var(--dhs-accent-soft); }
.dhs-drop:focus-within { outline: 2px solid var(--dhs-focus); outline-offset: 2px; }
.dhs-drop__icon { color: var(--dhs-text-heading); }
.dhs-drop__title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--dhs-text-strong); }
.dhs-drop__browse { color: var(--dhs-accent); text-decoration: underline; text-underline-offset: 3px; }
.dhs-drop__hint { font-size: 13px; line-height: 19px; color: var(--dhs-text-muted); max-width: 460px; }
.dhs-drop.is-disabled { opacity: .5; pointer-events: none; }
.dhs-files { display: flex; flex-direction: column; gap: 8px; }
.dhs-files:empty { display: none; }
.dhs-upload > .dhs-files { margin-top: 12px; }
.dhs-file { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--dhs-border-light); border-radius: var(--dhs-r); background: var(--dhs-bg); min-width: 0; }
.dhs-file__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--dhs-r-sm); display: inline-flex; align-items: center; justify-content: center; background: var(--dhs-bg-muted); color: var(--dhs-text-heading); }
.dhs-file__name { min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--dhs-text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dhs-file__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dhs-file__meta { grid-column: 2; min-width: 0; font-size: 12px; line-height: 16px; color: var(--dhs-text-muted); }
.dhs-file__action { grid-row: 1 / span 2; grid-column: 3; display: inline-flex; align-items: center; gap: 4px; }
.dhs-file__bar { grid-column: 1 / -1; margin-top: 6px; }
.dhs-file.is-error { border-color: var(--dhs-danger); }
.dhs-file.is-error .dhs-file__meta { color: var(--dhs-danger-text); }
.dhs-file.is-done .dhs-file__icon { background: var(--dhs-accent-soft); color: var(--dhs-accent-text); }

/* ── 22. Modal, toast, bottom bar ─────────────────────────────────────────── */
.dhs-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--dhs-r-lg); background: var(--dhs-bg); color: var(--dhs-text-body); box-shadow: var(--dhs-shadow-pop); overflow: hidden; display: flex; flex-direction: column; }
.dhs-modal:not([open]) { display: none; }
.dhs-modal--sm { width: min(420px, calc(100vw - 24px)); }
.dhs-modal--lg { width: min(760px, calc(100vw - 24px)); }
.dhs-modal::backdrop { background: var(--dhs-overlay); }
.dhs-modal[open] { animation: dhs-pop .18s var(--dhs-ease); }
@keyframes dhs-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dhs-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--dhs-border-faint); }
.dhs-modal__title { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-modal__body { padding: 20px 24px; overflow-y: auto; font-size: 15px; line-height: 23px; }
.dhs-modal__body > * + * { margin-top: 12px; }
.dhs-modal__error { margin: 0 24px; }
.dhs-modal__error:empty { display: none; }
.dhs-modal__foot { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; }
@media (max-width: 599px) { .dhs-modal__foot .dhs-btn { flex: 1 1 100%; } }
html.dhs-modal-open #dhwc-launch, html.dhs-modal-open #dhwc-teaser, html.dhs-modal-open #dh-float-cluster { visibility: hidden; }

.dhs-toasts { position: fixed; z-index: 2147483600; top: 16px; left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.dhs-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: var(--dhs-r); background: var(--dhs-primary); color: var(--dhs-on-primary); box-shadow: var(--dhs-shadow-pop); font-size: 14px; line-height: 21px; animation: dhs-toast-in .2s var(--dhs-ease); }
.dhs-toast__text { flex: 1 1 auto; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
.dhs-toast__close { flex: none; display: inline-flex; padding: 2px; border-radius: var(--dhs-r-sm); color: inherit; opacity: .75; }
.dhs-toast__close:hover { opacity: 1; }
.dhs-toast--success .dhs-toast__icon { color: #93c2a0; }
.dhs-toast--error { background: var(--dhs-danger); color: var(--dhs-on-danger); }
.dhs-toast--warning .dhs-toast__icon { color: #f0a54a; }
.dhs-toast--info .dhs-toast__icon { color: #a9bff7; }
html.dark .dhs-toast--success .dhs-toast__icon { color: #2f5541; }
html.dark .dhs-toast--warning .dhs-toast__icon { color: #8a4f00; }
html.dark .dhs-toast--info .dhs-toast__icon { color: #1d3369; }
.dhs-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes dhs-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Phone bottom bar (service page price + Continue). Toggle with DHS.stickyBar(). */
.dhs-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--dhs-bar-h); padding: 12px var(--dhs-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--dhs-bg); border-top: 1px solid var(--dhs-border-light); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .25s var(--dhs-ease); }
.dhs-bottombar.is-shown { transform: none; }
.dhs-bottombar__label { font-size: 12px; line-height: 16px; color: var(--dhs-text-muted); }
.dhs-bottombar__price { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); font-variant-numeric: tabular-nums; }
.dhs-bottombar .dhs-btn { flex: 0 1 200px; }
@media (min-width: 900px) { .dhs-bottombar { display: none; } }
@media (max-width: 899px) {
  body.dhs-has-bottombar #dhwc-launch, body.dhs-has-bottombar #dhwc-teaser, body.dhs-has-bottombar #dhwc-msgpop,
  body.dhs-has-bottombar #dh-float-cluster { translate: 0 calc(var(--dhs-bar-h) * -1); }
  body.dhs-has-bottombar .dhs-footer { padding-bottom: var(--dhs-bar-h); }
}

/* Phone bottom nav (2026-10-29, store/bottom-nav.njk): signed-in buyers,
   under 600px, on pages whose layout marks <body data-bnav>. While it shows,
   body carries --dhs-bnav-offset (its height plus the safe area): anything a
   page pins to the bottom of the screen uses bottom: var(--dhs-bnav-offset).
   The footer, the service page price bar and the chat launcher move up by it,
   and the header leaves its bell to the nav's Alerts. */
.dhs-bnav { display: none; }
@media (max-width: 599px) {
  html.dhs-auth-in body[data-bnav] { --dhs-bnav-offset: calc(var(--dhs-bnav-h) + env(safe-area-inset-bottom, 0px)); }
  html.dhs-auth-in .dhs-bnav {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--dhs-bg); border-top: 1px solid var(--dhs-border-light); box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
  }
  .dhs-bnav__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: var(--dhs-bnav-h); }
  .dhs-bnav__list > li { min-width: 0; }
  .dhs-bnav__item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 100%; height: 100%; padding: 6px 2px 4px; border: 0; background: none;
    font-size: 11px; line-height: 14px; font-weight: 600; color: var(--dhs-text-muted); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .dhs-bnav__item:hover { color: var(--dhs-text-strong); }
  .dhs-bnav__item[aria-current], .dhs-bnav__item[aria-expanded="true"] { color: var(--dhs-accent); }
  .dhs-bnav__item[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--dhs-accent); }
  .dhs-bnav__item:focus-visible { outline-offset: -3px; }
  .dhs-bnav__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dhs-bnav__badge { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dhs-danger); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px var(--dhs-bg); }
  html.dark .dhs-bnav__badge { color: #121614; }
  html.dhs-auth-in body[data-bnav] .dhs-header .dhs-nav__bell > [data-dhs-bell] { display: none; }
  html.dhs-auth-in body[data-bnav] .dhs-footer { padding-bottom: var(--dhs-bnav-offset); }
  html.dhs-auth-in body[data-bnav] .dhs-bottombar { bottom: var(--dhs-bnav-offset); padding-bottom: 12px; }
  html.dhs-auth-in body[data-bnav].dhs-has-bottombar .dhs-footer { padding-bottom: calc(var(--dhs-bnav-offset) + var(--dhs-bar-h)); }
  html.dhs-auth-in body[data-bnav] #dhwc-launch, html.dhs-auth-in body[data-bnav] #dhwc-teaser,
  html.dhs-auth-in body[data-bnav] #dhwc-msgpop, html.dhs-auth-in body[data-bnav] #dh-float-cluster { translate: 0 calc(var(--dhs-bnav-offset) * -1); }
  html.dhs-auth-in body[data-bnav].dhs-has-bottombar #dhwc-launch, html.dhs-auth-in body[data-bnav].dhs-has-bottombar #dhwc-teaser,
  html.dhs-auth-in body[data-bnav].dhs-has-bottombar #dhwc-msgpop, html.dhs-auth-in body[data-bnav].dhs-has-bottombar #dh-float-cluster { translate: 0 calc((var(--dhs-bnav-offset) + var(--dhs-bar-h)) * -1); }
}

/* ── 23. Sign-in panel ────────────────────────────────────────────────────── */
.dhs-signin { max-width: 440px; margin: 0 auto; padding: 32px 24px; border: 1px solid var(--dhs-border); border-radius: var(--dhs-r-lg); background: var(--dhs-bg); text-align: center; }
@media (max-width: 599px) { .dhs-signin { padding: 28px 20px; } }
.dhs-signin__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dhs-accent-soft); color: var(--dhs-accent-text); margin-bottom: 16px; }
.dhs-signin__title { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-signin__lead { margin-top: 8px; font-size: 15px; line-height: 23px; color: var(--dhs-text-body); }
.dhs-signin__form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.dhs-signin__sent { margin-top: 24px; text-align: left; }
.dhs-signin__alt { margin-top: 16px; font-size: 13px; line-height: 19px; color: var(--dhs-text-muted); }

/* ── 24. Invoice (and print) ──────────────────────────────────────────────── */
.dhs-invoice { max-width: 860px; margin: 0 auto; padding: 24px 20px; border: 1px solid var(--dhs-border); border-radius: var(--dhs-r); background: var(--dhs-bg); color: var(--dhs-text-heading); font-size: 14px; line-height: 21px; }
@media (min-width: 600px) { .dhs-invoice { padding: 48px; } }
.dhs-invoice__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; padding-bottom: 24px; border-bottom: 2px solid var(--dhs-text-strong); }
.dhs-invoice__logo { height: 52px; width: auto; }
.dhs-invoice__title { font-size: 28px; line-height: 34px; font-weight: 700; color: var(--dhs-text-strong); letter-spacing: -.01em; }
.dhs-invoice__no { font-size: 14px; color: var(--dhs-text-muted); font-variant-numeric: tabular-nums; }
.dhs-invoice__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding-block: 20px; border-bottom: 1px solid var(--dhs-border); }
@media (min-width: 600px) { .dhs-invoice__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dhs-invoice__k { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-text-muted); }
.dhs-invoice__v { display: block; margin-top: 2px; font-weight: 600; color: var(--dhs-text-strong); overflow-wrap: anywhere; }
.dhs-invoice__parties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 24px; }
@media (min-width: 600px) { .dhs-invoice__parties { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.dhs-invoice__party p { overflow-wrap: anywhere; }
.dhs-invoice__party-name { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-invoice__lines { width: 100%; margin-top: 8px; }
.dhs-invoice__lines th { padding: 10px 0; text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-text-muted); border-bottom: 1px solid var(--dhs-border); }
.dhs-invoice__lines td { padding: 14px 0; border-bottom: 1px solid var(--dhs-border-faint); vertical-align: top; }
.dhs-invoice__lines .dhs-num, .dhs-invoice__lines th.dhs-num { text-align: right; padding-left: 16px; white-space: nowrap; }
.dhs-invoice__totals { margin-left: auto; margin-top: 16px; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.dhs-invoice__row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.dhs-invoice__row--total { padding-top: 10px; border-top: 2px solid var(--dhs-text-strong); font-size: 16px; font-weight: 700; color: var(--dhs-text-strong); }
.dhs-invoice__notes { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--dhs-border); font-size: 13px; line-height: 20px; color: var(--dhs-text-muted); }
.dhs-invoice__stamp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 2px solid var(--dhs-accent); border-radius: var(--dhs-r-sm); color: var(--dhs-accent); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

@media print {
  @page { margin: 14mm; }
  html, html.dark { color-scheme: light; }
  html.dark {
    --dhs-text-strong: #222325; --dhs-text-heading: #404145; --dhs-text-body: #62646a; --dhs-text-muted: #6b6d73;
    --dhs-border: #dadbdd; --dhs-border-light: #e4e5e7; --dhs-border-faint: #efeff0;
    --dhs-bg: #ffffff; --dhs-bg-subtle: #fafafa; --dhs-bg-muted: #efeff0; --dhs-accent: #3f6b54;
  }
  body.dhs { background: #fff !important; color: #222325; overflow: visible; }
  .dhs-header, .dhs-strip, .dhs-footer, .dhs-skip, .dhs-noprint, .dhs-toasts, .dhs-bottombar, .dhs-crumbs,
  .dhs-bnav, .dhs-sheet-backdrop,
  #dh-float-cluster, #dhwc-root, #dh-consent, .iti--container { display: none !important; }
  .dhs-page { padding: 0 !important; }
  .dhs-container { max-width: none; padding: 0; }
  .dhs-invoice { max-width: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .dhs-invoice__logo.dhs-logo__light { display: block !important; }
  .dhs-invoice__logo.dhs-logo__dark { display: none !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .dhs-invoice__lines tr, .dhs-invoice__totals { break-inside: avoid; }
}

/* ── 25. Motion preference ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dhs-scope *, .dhs-scope *::before, .dhs-scope *::after, .dhs-scope[open] {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .dhs-skel { animation: none !important; }
  .dhs-btn.is-busy::after, .dhs-spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}
