/* DPMSHub design tokens */
/* DPMSHub — generated from tokens.json */
:root, [data-theme="light"] {
  --ink: #172033;
  --ink-2: #263149;
  --ink-3: #39445c;
  --menu-text: #d5dae4;
  --menu-hint: #8792a8;
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --line: #e3e5e8;
  --line-soft: #eef0f2;
  --line-control: #868d99;
  --muted: #6b7280;
  --brand: #1f6f5c;
  --brand-strong: #185a4a;
  --on-brand: #ffffff;
  --brand-2: #3d8f7a;
  --brand-tint: #e7f2ef;
  --brand-line: #9fd0c0;
  --gold: #c9a24f;
  --gold-hi: #e8cf92;
  --gold-deep: #a8823a;
  --gold-text: #8a6d2a;
  --gold-tint: #f7f3ea;
  --gold-tint-2: #f7f1e3;
  --gold-line: #ead9b0;
  --warn-bg: #fff8ec;
  --warn-line: #f0c98a;
  --warn-title: #9a5b00;
  --warn-text: #7a4a07;
  --danger: #b42318;
  --danger-strong: #912018;
  --danger-tint: #fdecea;
  --danger-line: #f3b8b0;
  --risk-low: #2f8f74;
  --risk-medium: #d99a2b;
  --risk-high: #c0392b;
  --paper: #fbf8f1;
  --paper-2: #eee8da;
  --shadow-sm: 0 1px 2px rgba(23,32,51,0.06), 0 1px 3px rgba(23,32,51,0.05);
  --shadow-md: 0 8px 24px rgba(23,32,51,0.12);
  --shadow-lg: 0 30px 70px rgba(4,8,18,0.45);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --font-sans: "Inter", "PingFang HK", "Noto Sans HK", "Noto Sans CJK HK", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Cardo", "Noto Serif HK", "Noto Serif CJK HK", "PMingLiU", serif;
}
.dh-display { font-family: var(--font-sans); font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dh-title-lg { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 600; }
.dh-title { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.dh-subtitle { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; }
.dh-body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.dh-body-strong { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; }
.dh-small { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.dh-eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; }
.dh-total { font-family: var(--font-sans); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dh-price { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dh-welcome { font-family: var(--font-serif); font-size: 30px; line-height: 36px; font-weight: 400; font-style: italic; }
/* DPMSHub components */
/* DPMSHub components. Load tokens.css first: every colour, space, radius and shadow here is a token. */

/* ---------- base helpers ---------- */
.dh { font-family: var(--font-sans); font-size: 15px; line-height: 22px; color: var(--ink); -webkit-font-smoothing: antialiased; }
.dh-num { font-variant-numeric: tabular-nums; }
.dh-ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dh-goods { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Button ---------- */
.dh-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4);
  border-radius: var(--radius-sm); border: 1px solid var(--line-control); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.dh-btn:hover { background: var(--surface-2); }
.dh-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-btn .dh-ic { width: 18px; height: 18px; stroke-width: 1.9; }
.dh-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dh-btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.dh-btn--ghost { background: transparent; border-color: transparent; color: var(--brand); }
.dh-btn--ghost:hover { background: var(--brand-tint); }
.dh-btn--danger { background: var(--danger); border-color: var(--danger); color: var(--on-brand); }
.dh-btn--danger:hover { background: var(--danger-strong); border-color: var(--danger-strong); }
.dh-btn--lg { height: 48px; padding: 0 var(--space-5); font-size: 16px; }
.dh-btn--sm { height: 32px; padding: 0 var(--space-3); font-size: 13px; }
.dh-btn--block { display: flex; width: 100%; }
.dh-btn:disabled, .dh-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Top menu ---------- */
.dh-topmenu { display: flex; align-items: stretch; gap: var(--space-5); height: 56px; padding: 0 var(--space-6); background: var(--ink); color: var(--menu-text); font-family: var(--font-sans); box-sizing: border-box; }
.dh-wordmark { display: inline-block; font: 700 19px/1 var(--font-sans); letter-spacing: -.01em; color: var(--on-brand); white-space: nowrap; text-decoration: none; }
.dh-wordmark b { font-weight: 600; color: var(--gold); }
.dh-wordmark img, .dh-wordmark svg { height: 22px; width: auto; margin-right: 10px; vertical-align: -5px; }
.dh-topmenu .dh-wordmark { align-self: center; }
.dh-topmenu__nav { display: flex; align-items: stretch; gap: 2px; }
.dh-topmenu__item { display: flex; align-items: center; padding: 0 var(--space-3); border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  color: var(--menu-text); font: 500 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap; }
.dh-topmenu__item:hover { background: var(--ink-2); color: var(--on-brand); }
.dh-topmenu__item.is-active, .dh-topmenu__item[aria-current="page"] { color: var(--on-brand); border-bottom-color: var(--gold); }
.dh-topmenu__item:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -5px; }
.dh-topmenu__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); font-size: 13px; color: var(--menu-hint); white-space: nowrap; }
.dh-topmenu__shop { color: var(--menu-text); font-weight: 600; }
.dh-user { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--menu-text); font-size: 13px; }
.dh-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink); font: 700 12px/1 var(--font-sans); flex: 0 0 auto; }

/* ---------- Tabs ---------- */
.dh-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dh-tab { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 14px/1 var(--font-sans); white-space: nowrap; cursor: pointer; }
.dh-tab:hover { color: var(--ink); border-color: var(--line-control); }
.dh-tab.is-active, .dh-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.dh-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-tab__count { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---------- Field ---------- */
.dh-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
.dh-label { font: 600 13px/18px var(--font-sans); color: var(--ink); }
.dh-input, .dh-select { box-sizing: border-box; width: 100%; height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 15px/1 var(--font-sans); }
.dh-input::placeholder { color: var(--muted); }
.dh-input:focus, .dh-select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.dh-select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 10px center; background-size: 18px; }
.dh-help { font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-field.is-error .dh-input, .dh-field.is-error .dh-select { border-color: var(--danger); }
.dh-field.is-error .dh-help { color: var(--danger); }
.dh-search { position: relative; }
.dh-search .dh-ic { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.dh-search .dh-input { padding-left: 38px; }

/* ---------- Status pill and tag ---------- */
.dh-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-3); font: 600 13px/1 var(--font-sans); white-space: nowrap; box-sizing: border-box; }
.dh-pill .dh-ic { width: 15px; height: 15px; stroke-width: 2.1; }
.dh-pill--success { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand); }
.dh-pill--warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-title); }
.dh-pill--danger { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger); }
.dh-pill--lg { height: 36px; padding: 0 16px; font-size: 14px; }
.dh-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--radius-xs); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 500 13px/1 var(--font-sans); white-space: nowrap; }
.dh-tag--brand { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand); font-weight: 700; letter-spacing: .08em; }

/* ---------- Alert ---------- */
.dh-alert { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); font-family: var(--font-sans); box-sizing: border-box; }
.dh-alert__title { display: flex; align-items: center; gap: var(--space-2); font: 600 16px/22px var(--font-sans); }
.dh-alert__title .dh-ic { width: 20px; height: 20px; stroke-width: 1.9; }
.dh-alert__body { font-size: 14px; line-height: 20px; }
.dh-alert__actions { display: flex; gap: var(--space-2); margin-top: var(--space-1); }
.dh-alert--warning { background: var(--warn-bg); border-color: var(--warn-line); }
.dh-alert--warning .dh-alert__title { color: var(--warn-title); }
.dh-alert--warning .dh-alert__body { color: var(--warn-text); }
.dh-alert--success { background: var(--brand-tint); border-color: var(--brand-line); }
.dh-alert--success .dh-alert__title { color: var(--brand); }
.dh-alert--danger { background: var(--danger-tint); border-color: var(--danger-line); }
.dh-alert--danger .dh-alert__title { color: var(--danger); }
.dh-alert--info { background: var(--surface-2); border-color: var(--line); }
.dh-alert--info .dh-alert__body { color: var(--ink-3); }

/* ---------- Card and tile ---------- */
.dh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: var(--space-6); color: var(--ink); font-family: var(--font-sans); box-sizing: border-box; }
.dh-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.dh-card__num { font: 500 13px/1 var(--font-sans); letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-card__title { margin: 0; font: 600 20px/28px var(--font-sans); }
.dh-card__body { margin: var(--space-2) 0 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.dh-card__note { margin: var(--space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--gold-text); }
.dh-iconbadge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-line);
  background: var(--gold-tint-2); color: var(--gold-deep); flex: 0 0 auto; box-sizing: border-box; }
.dh-iconbadge .dh-ic { width: 22px; height: 22px; }
.dh-iconbadge--brand { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand); }
.dh-tile { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--ink); font-family: var(--font-sans); box-sizing: border-box; }
.dh-tile .dh-iconbadge { border-radius: var(--radius-sm); }
.dh-tile__title { display: block; font: 600 16px/22px var(--font-sans); }
.dh-tile__sub { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Table ---------- */
.dh-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; font: 400 14px/20px var(--font-sans); color: var(--ink); }
.dh-table th { padding: 10px 16px; text-align: left; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; color: var(--muted);
  background: var(--page); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dh-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dh-table tbody tr:last-child td { border-bottom: 0; }
.dh-table tbody tr:hover td { background: var(--page); }
.dh-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.dh-table .dh-sub { display: block; font-size: 13px; color: var(--muted); }
.dh-table a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ---------- Product tile (POS) ---------- */
.dh-product { position: relative; display: flex; flex-direction: column; min-height: 236px; padding: var(--space-3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-xl); color: var(--ink); font-family: var(--font-sans); cursor: pointer; box-sizing: border-box; }
.dh-product:hover { border-color: var(--line-control); }
.dh-product.is-selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow-md); }
.dh-product__media { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: var(--radius-md); background: var(--gold-tint); color: var(--gold-deep); overflow: hidden; }
.dh-product__media svg { width: 54px; height: 54px; }
.dh-product__media img { width: 100%; height: 100%; object-fit: cover; }
.dh-product__name { margin-top: var(--space-3); font: 600 15px/20px var(--font-sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dh-product__code { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted); letter-spacing: .02em; }
.dh-product__spec { font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-product__price { margin-top: auto; padding-top: var(--space-2); padding-right: 36px; font: 700 17px/24px var(--font-sans); font-variant-numeric: tabular-nums; }
.dh-product__add { position: absolute; right: var(--space-3); bottom: var(--space-3); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: var(--brand-tint); color: var(--brand); cursor: pointer; }
.dh-product__add .dh-ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Cart (POS) ---------- */
.dh-cart { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); color: var(--ink); font-family: var(--font-sans); box-sizing: border-box; }
.dh-cart__head { display: flex; align-items: baseline; justify-content: space-between; }
.dh-cart__head b { font: 600 17px/24px var(--font-sans); }
.dh-cart__ref { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-cart__customer { display: flex; align-items: center; gap: var(--space-3); padding: 10px 12px; border: 1px dashed var(--line-control); border-radius: var(--radius-lg); }
.dh-cart__cav { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--muted); flex: 0 0 auto; }
.dh-cart__cav .dh-ic { width: 18px; height: 18px; }
.dh-cart__cname { font: 600 15px/20px var(--font-sans); }
.dh-cart__clink { font-size: 13px; line-height: 18px; color: var(--brand); font-weight: 600; }
.dh-cart__items { display: flex; flex-direction: column; }
.dh-cart__item { display: flex; align-items: center; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.dh-cart__thumb { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-tint-2); color: var(--gold-deep); flex: 0 0 auto; }
.dh-cart__thumb svg { width: 24px; height: 24px; }
.dh-cart__iname { font: 600 15px/20px var(--font-sans); }
.dh-cart__ispec { font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-cart__iprice { margin-left: auto; font: 600 15px/20px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-cart__sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-cart__total { display: flex; align-items: baseline; justify-content: space-between; }
.dh-cart__total span { font: 600 15px/20px var(--font-sans); }
.dh-cart__total b { font: 700 32px/36px var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dh-paymethods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.dh-paymethod { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.dh-paymethod.is-selected, .dh-paymethod[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.dh-paymethod:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Stepper ---------- */
.dh-stepper { display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); }
.dh-step { display: flex; align-items: center; gap: var(--space-2); font: 600 14px/18px var(--font-sans); color: var(--muted); white-space: nowrap; }
.dh-step__dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-control);
  background: var(--surface); color: var(--muted); font: 600 13px/1 var(--font-sans); box-sizing: border-box; flex: 0 0 auto; }
.dh-step__dot .dh-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.dh-step.is-current { color: var(--ink); }
.dh-step.is-current .dh-step__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.dh-step.is-done { color: var(--ink); }
.dh-step.is-done .dh-step__dot { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.dh-stepper__line { flex: 1 1 24px; min-width: 16px; height: 2px; border-radius: 1px; background: var(--line); }
.dh-step__text { display: flex; flex-direction: column; }
.dh-step__sub { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); }
.dh-step.is-current .dh-step__text > :first-child { color: var(--brand); }
.dh-stepper__line.is-done { background: var(--brand); }

/* ---------- Customer file ---------- */
.dh-cfile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; color: var(--ink); font-family: var(--font-sans); }
.dh-cfile__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.dh-cfile__title { font: 600 17px/24px var(--font-sans); }
.dh-cfile__ref { font-size: 13px; line-height: 18px; color: var(--muted); letter-spacing: .04em; }
.dh-cfile__body { display: grid; grid-template-columns: 248px 1fr; }
.dh-cfile__side { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-right: 1px solid var(--line); }
.dh-cfile__main { padding: var(--space-6); min-width: 0; }
.dh-cavatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink); font: 700 20px/1 var(--font-sans); }
.dh-cname { font: 600 22px/28px var(--font-sans); }
.dh-cname small { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); }
.dh-kv { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; }
.dh-kv > div { display: flex; justify-content: space-between; gap: var(--space-3); }
.dh-kv dt { color: var(--muted); }
.dh-kv dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.dh-pane__title { margin: 0; font: 600 20px/28px var(--font-sans); }
.dh-pane__sub { margin: 2px 0 var(--space-5); font-size: 14px; line-height: 20px; color: var(--muted); }

/* ---------- Check rows ---------- */
.dh-checks { display: flex; flex-direction: column; font-family: var(--font-sans); }
.dh-check { display: grid; grid-template-columns: 132px 1fr 28px; align-items: center; gap: var(--space-3); min-height: 48px; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 20px; }
.dh-check__label { font-size: 14px; color: var(--muted); }
.dh-check__value { font-weight: 500; color: var(--ink); }
.dh-check__mark { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.dh-check__mark .dh-ic { width: 15px; height: 15px; stroke-width: 2.8; }
.dh-check.is-pending .dh-check__mark { background: var(--surface-2); color: var(--muted); }
.dh-checklist { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font: 400 15px/22px var(--font-sans); color: var(--ink); }
.dh-checklist li { display: flex; align-items: center; gap: var(--space-2); }
.dh-checklist .dh-check__mark { width: 22px; height: 22px; }
.dh-checklist .dh-check__mark .dh-ic { width: 13px; height: 13px; }

/* ---------- Screening rows ---------- */
.dh-screens { display: flex; flex-direction: column; gap: var(--space-2); }
.dh-screen { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 140px; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-family: var(--font-sans); color: var(--ink); }
.dh-screen__name { font: 600 15px/20px var(--font-sans); }
.dh-screen__src { font-size: 12px; line-height: 16px; color: var(--muted); }
.dh-screen__bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.dh-screen__bar i { display: block; height: 100%; width: var(--done, 100%); background: linear-gradient(90deg, var(--brand-line), var(--brand)); border-radius: 3px; }
.dh-screen__state { font-size: 14px; color: var(--muted); white-space: nowrap; }
.dh-screen > :last-child { justify-self: end; }

/* ---------- Risk rating ---------- */
.dh-risk { display: flex; align-items: center; gap: var(--space-8); font-family: var(--font-sans); color: var(--ink); }
.dh-risk__ring { position: relative; width: 168px; height: 168px; flex: 0 0 auto; }
.dh-risk__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dh-risk__seg { fill: none; stroke: var(--line-soft); stroke-width: 14; }
.dh-risk__seg.is-lit { stroke: var(--brand); }
.dh-risk__seg.is-lit.is-alt { stroke: var(--brand-2); }
.dh-risk__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dh-risk__level { font: 700 28px/1.1 var(--font-sans); letter-spacing: -.01em; color: var(--brand); }
.dh-risk__level.is-medium { color: var(--warn-title); }
.dh-risk__level.is-high { color: var(--danger); }
.dh-risk__count { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-scale { flex: 1; min-width: 220px; }
.dh-scale__label { font: 600 12px/16px var(--font-sans); letter-spacing: .12em; color: var(--muted); }
.dh-scale__bar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 8px; margin: 16px 0 10px; }
.dh-scale__bar i { border-radius: 4px; }
.dh-scale__bar i:nth-child(1) { background: var(--risk-low); }
.dh-scale__bar i:nth-child(2) { background: var(--risk-medium); }
.dh-scale__bar i:nth-child(3) { background: var(--risk-high); }
.dh-scale__knob { position: absolute; top: 50%; left: var(--at, 16%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--shadow-sm); box-sizing: border-box; }
.dh-scale__ticks { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Compliance record ---------- */
.dh-record { position: relative; width: 300px; min-height: 360px; padding: var(--space-5) var(--space-5) var(--space-10); border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); box-shadow: var(--shadow-md); color: var(--ink); font-family: var(--font-sans); box-sizing: border-box; }
.dh-record__head { position: relative; padding-bottom: var(--space-3); border-bottom: 2px solid var(--gold); }
.dh-record__title { font: 700 17px/24px var(--font-sans); letter-spacing: .02em; padding-right: 44px; }
.dh-record__ref { font-size: 12px; line-height: 16px; color: var(--muted); letter-spacing: .03em; }
.dh-record__badge { position: absolute; top: 2px; right: 0; padding: 3px 6px; border-radius: 4px; background: var(--danger); color: var(--on-brand); font: 700 10px/1.2 var(--font-sans); letter-spacing: .08em; }
.dh-record__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.dh-record__row span { color: var(--muted); }
.dh-record__row b { font-weight: 600; text-align: right; }
.dh-record__lines { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-4); }
.dh-record__lines i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.dh-record__lines i:nth-child(2) { width: 82%; }
.dh-record__lines i:nth-child(3) { width: 64%; }
.dh-record__foot { position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-4); display: flex; justify-content: space-between; font-size: 11px; line-height: 14px; color: var(--ink-3); }
.dh-stamp { position: absolute; right: var(--space-5); bottom: 44px; padding: 6px 14px; border: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--brand-tint);
  color: var(--brand); text-align: center; font: 800 20px/1 var(--font-sans); letter-spacing: .12em; transform: rotate(-10deg); }
.dh-stamp small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .3em; }
.dh-filechip { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--page); border: 1px solid var(--line);
  border-radius: var(--radius-lg); font-family: var(--font-sans); color: var(--ink); }
.dh-filechip__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--danger-tint); color: var(--danger); }
.dh-filechip__name { display: block; font: 600 15px/20px var(--font-sans); }
.dh-filechip__meta { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Sign-in page ---------- */
.dh-login { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; padding: var(--space-10) var(--space-6); box-sizing: border-box;
  background-color: var(--ink);
  background-image: radial-gradient(45% 40% at 16% 8%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%),
                    radial-gradient(50% 55% at 88% 92%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%);
  background-size: cover; background-position: center; font-family: var(--font-sans); }
.dh-login__card { width: 400px; max-width: 100%; padding: var(--space-8); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); color: var(--ink); box-sizing: border-box; }
.dh-login__company { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.dh-login__logo { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font: 700 16px/1 var(--font-sans); overflow: hidden; }
.dh-login__logo img { width: 100%; height: 100%; object-fit: contain; }
.dh-login__cname { font: 600 15px/20px var(--font-sans); }
.dh-login__welcome { margin: 0; font: italic 400 30px/36px var(--font-serif); color: var(--ink); }
.dh-login__sub { margin: var(--space-1) 0 var(--space-6); font-size: 14px; line-height: 20px; color: var(--muted); }
.dh-login__form { display: flex; flex-direction: column; gap: var(--space-4); }
.dh-login__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dh-login__foot .dh-wordmark { font-size: 14px; color: var(--ink); }
.dh-login__foot .dh-wordmark b { color: var(--gold-text); }
.dh-login__lang a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ---------- Page header ---------- */
.dh-pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-5); font-family: var(--font-sans); color: var(--ink); }
.dh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-crumbs a { color: var(--muted); text-decoration: none; }
.dh-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.dh-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-control); }
.dh-pagehead__title { margin: 0; font: 600 24px/32px var(--font-sans); }
.dh-pagehead__desc { margin: 4px 0 0; max-width: 760px; font-size: 14px; line-height: 20px; color: var(--muted); }
.dh-pagehead__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: 0 0 auto; }
.dh-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--space-3); font: 600 14px/20px var(--font-sans); color: var(--brand); text-decoration: none; }
.dh-back .dh-ic { width: 16px; height: 16px; transform: rotate(180deg); }
.dh-back:hover { text-decoration: underline; }

/* ---------- Filter bar ---------- */
.dh-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-4); padding: var(--space-4) var(--space-5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); font-family: var(--font-sans); box-sizing: border-box; }
.dh-filterbar .dh-field { width: 176px; }
.dh-filterbar .dh-field--sm { width: 124px; }
.dh-filterbar .dh-field--grow { flex: 1 1 180px; width: auto; }
.dh-filterbar__actions { display: flex; align-items: center; gap: var(--space-4); }
.dh-link { padding: 0; border: 0; background: none; font: 600 14px/20px var(--font-sans); color: var(--brand); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dh-link:hover { text-decoration: underline; }
.dh-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.dh-daterange { display: flex; align-items: center; gap: 6px; }
.dh-daterange .dh-input { width: 132px; }
.dh-daterange span { color: var(--muted); }

/* ---------- Form sections ---------- */
.dh-formsec { padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-family: var(--font-sans); color: var(--ink); box-sizing: border-box; }
.dh-formsec__head { display: flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); }
.dh-formsec__head .dh-iconbadge { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.dh-formsec__head .dh-iconbadge .dh-ic { width: 18px; height: 18px; }
.dh-formsec__title { margin: 0; font: 600 16px/22px var(--font-sans); }
.dh-formsec__note { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.dh-formgrid--one { grid-template-columns: minmax(0, 1fr); }
.dh-formgrid .is-wide { grid-column: 1 / -1; }
.dh-req { margin-left: 2px; color: var(--danger); }
.dh-affix { display: flex; align-items: stretch; }
.dh-affix__text { display: flex; align-items: center; padding: 0 var(--space-3); border: 1px solid var(--line-control); background: var(--surface-2); color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.dh-affix__text:first-child { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.dh-affix__text:last-child { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dh-affix .dh-input { border-radius: 0; }
.dh-affix .dh-input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.dh-affix .dh-input:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dh-textarea { box-sizing: border-box; width: 100%; min-height: 88px; padding: 10px var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 15px/22px var(--font-sans); resize: vertical; }
.dh-textarea::placeholder { color: var(--muted); }
.dh-textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.dh-count { align-self: flex-end; font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Choices ---------- */
.dh input[type="checkbox"], .dh input[type="radio"] { accent-color: var(--brand); }
.dh-segmented { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.dh-seg { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 92px; height: 40px; padding: 0 var(--space-4);
  border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 15px/1 var(--font-sans); cursor: pointer; box-sizing: border-box; }
.dh-seg .dh-ic { width: 18px; height: 18px; }
.dh-seg:hover { background: var(--surface-2); }
.dh-seg[aria-checked="true"], .dh-seg.is-selected { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.dh-seg:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* segmented choice made of real radio inputs (keeps the form's name and values) */
label.dh-seg { position: relative; }
.dh-seg input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dh-seg:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.dh-seg:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-seg:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.dh-radiocards { display: flex; flex-direction: column; gap: var(--space-2); }
.dh-radiocard { display: grid; grid-template-columns: 18px 1fr; gap: 2px var(--space-3); align-items: start; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-control);
  border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-sans); cursor: pointer; }
.dh-radiocard input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand); }
.dh-radiocard__title { font: 600 15px/22px var(--font-sans); color: var(--ink); }
.dh-radiocard__desc { grid-column: 2; font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-radiocard:has(input:checked), .dh-radiocard.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.dh-radiocard:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-switch { display: inline-flex; align-items: center; gap: var(--space-3); font: 500 15px/22px var(--font-sans); color: var(--ink); cursor: pointer; }
.dh-switch input { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin: 0; border-radius: 12px; background: var(--line-control); appearance: none; -webkit-appearance: none; cursor: pointer; transition: background .15s ease-out; }
.dh-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .15s ease-out; }
.dh-switch input:checked { background: var(--brand); }
.dh-switch input:checked::after { transform: translateX(20px); }
.dh-switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-checktiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
.dh-checktile { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 500 14px/20px var(--font-sans); cursor: pointer; box-sizing: border-box; }
.dh-checktile input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.dh-checktile svg { width: 22px; height: 22px; color: var(--gold-deep); }
.dh-checktile:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.dh-checktile:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Dialog ---------- */
.dh-scrim { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); background: color-mix(in srgb, var(--ink) 45%, transparent); }
.dh-dialog { display: flex; flex-direction: column; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); overflow: hidden; background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); color: var(--ink); font-family: var(--font-sans); }
.dh-dialog__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.dh-dialog__head .dh-iconbadge { width: 40px; height: 40px; }
.dh-dialog__title { margin: 0; font: 600 20px/28px var(--font-sans); }
.dh-dialog__close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--muted); cursor: pointer; }
.dh-dialog__close:hover { background: var(--surface-2); color: var(--ink); }
.dh-dialog__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-dialog__close .dh-ic { width: 18px; height: 18px; }
.dh-dialog__steps { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.dh-dialog__body { flex: 1 1 auto; overflow: auto; padding: var(--space-5) var(--space-6); background: var(--page); }
.dh-dialog__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); background: var(--surface); }
.dh-dialog__spacer { flex: 1 1 auto; }
.dh-audit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); font-size: 13px; line-height: 18px; color: var(--muted); }
.dh-audit b { font-weight: 500; color: var(--ink-3); }

/* ---------- Approval panel ---------- */
.dh-approval { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-1) var(--space-4); align-items: start; padding: var(--space-4) var(--space-5); border: 1px solid var(--warn-line);
  border-radius: var(--radius-lg); background: var(--warn-bg); font-family: var(--font-sans); }
.dh-approval__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--warn-line); border-radius: 50%; background: var(--surface); color: var(--warn-title); }
.dh-approval__icon .dh-ic { width: 18px; height: 18px; }
.dh-approval__title { font: 600 16px/22px var(--font-sans); color: var(--warn-title); }
.dh-approval__body { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--warn-text); }
.dh-approval__state { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--warn-text); }
.dh-approval__action { align-self: center; }
.dh-approval.is-approved { border-color: var(--brand-line); background: var(--brand-tint); }
.dh-approval.is-approved .dh-approval__icon { border-color: var(--brand-line); color: var(--brand); }
.dh-approval.is-approved .dh-approval__title { color: var(--brand); }
.dh-approval.is-approved .dh-approval__body, .dh-approval.is-approved .dh-approval__state { color: var(--ink); }

/* ---------- Money and empty values ---------- */
.dh-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-amount--in { color: var(--brand); }
.dh-amount--out { color: var(--danger); }
.dh-amount__fx { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.dh-empty { color: var(--muted); }
.dh-table tfoot td { padding: 12px 16px; border-top: 2px solid var(--line); background: var(--page); font-weight: 700; }

/* ---------- Table actions and pagination ---------- */
.dh-tablecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dh-tablecard .dh-table { border: 0; border-radius: 0; }
.dh-table th[aria-sort="ascending"]::after { content: " ↑"; color: var(--ink-3); }
.dh-table th[aria-sort="descending"]::after { content: " ↓"; color: var(--ink-3); }
.dh-rowactions { display: flex; justify-content: flex-end; gap: var(--space-1); }
.dh-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-3); cursor: pointer; box-sizing: border-box; }
.dh-iconbtn:hover { border-color: var(--line-control); background: var(--surface-2); color: var(--ink); }
.dh-iconbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dh-iconbtn .dh-ic { width: 17px; height: 17px; }
.dh-tablefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line); font: 400 13px/18px var(--font-sans); color: var(--muted); }
.dh-pagination { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.dh-page { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 500 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; text-decoration: none; box-sizing: border-box; }
.dh-page:hover { border-color: var(--line-control); }
.dh-page[aria-current="page"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.dh-page.is-gap { border-color: transparent; background: transparent; color: var(--muted); }
.dh-page .dh-ic { width: 16px; height: 16px; }
.dh-page--prev .dh-ic { transform: rotate(180deg); }
.dh-select--sm { width: auto; height: 32px; padding: 0 30px 0 10px; font-size: 13px; background-position: right 8px center; background-size: 16px; }

/* ============================================================
   DPMSHub website — the look of the DPMSHub introduction film.
   App mockups use the DPMSHub design system (dpmshub-tokens.css + dpmshub-components.css, loaded first).
   ============================================================ */

:root {
  --night: #0f1626;
  --bg: #141c2e;
  --text: #eef1f6;
  --text-2: #b9c1d0;
  --text-3: #8f99ad;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .11);
  --gold-grad: linear-gradient(100deg, #f8e7b0 0%, #dcb765 38%, #b48d3c 62%, #f0d590 100%);
  --cta-grad: linear-gradient(135deg, #f3dfa4 0%, #d6b25e 55%, #c49a45 100%);
  --en-display: "Inter Display", "Inter", system-ui, sans-serif;
  --en-serif: "Cardo", Georgia, serif;
  --zh-sans: "NotoSansHK-DPMS", "PingFang HK", "Noto Sans HK", "Noto Sans CJK HK", "Microsoft JhengHei", sans-serif;
  --zh-serif: "NotoSerifHK-DPMS", "Noto Serif HK", "Noto Serif CJK HK", "PMingLiU", serif;
  --site-sans: "Inter", var(--zh-sans);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --font-sans: "Inter", "NotoSansHK-DPMS", "PingFang HK", "Noto Sans HK", "Noto Sans CJK HK", "Microsoft JhengHei", system-ui, sans-serif;
}

/* ---------- fonts ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/Cardo-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NotoSansHK-DPMS"; src: url("../fonts/NotoSansHK-DPMS-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "NotoSansHK-DPMS"; src: url("../fonts/NotoSansHK-DPMS-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NotoSansHK-DPMS"; src: url("../fonts/NotoSansHK-DPMS-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "NotoSansHK-DPMS"; src: url("../fonts/NotoSansHK-DPMS-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "NotoSerifHK-DPMS"; src: url("../fonts/NotoSerifHK-DPMS-SemiBold.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- language switch ---------- */
html.lang-zh .en { display: none !important; }
html:not(.lang-zh) .zh { display: none !important; }

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--site-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.lang-zh body { font-size: 17px; line-height: 1.75; letter-spacing: .02em; }
img, svg { display: block; }
a { color: inherit; }
::selection { background: rgba(201, 162, 79, .35); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.dh :focus-visible { outline-color: var(--brand); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold-hi); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the moving sky behind everything */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; background:
  radial-gradient(60% 50% at 75% 12%, rgba(57, 68, 92, .55), transparent 70%),
  radial-gradient(50% 45% at 15% 85%, rgba(31, 62, 70, .45), transparent 70%),
  radial-gradient(45% 40% at 85% 80%, rgba(78, 62, 26, .35), transparent 70%), var(--bg); }

/* ---------- type ---------- */
.eyebrow { text-wrap: balance; display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--gold-hi); font: 600 13px/1.4 var(--site-sans); letter-spacing: .18em; text-transform: uppercase; }
html.lang-zh .eyebrow { letter-spacing: .24em; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow .num { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(232, 207, 146, .45); font-size: 12px; letter-spacing: .08em; }
.eyebrow.nobar::before { display: none; }
.h1, .h2 { margin: 0; font-family: var(--en-display); font-weight: 600; letter-spacing: -.025em; color: #fff; }
.h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; }
.h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.06; }
html.lang-zh .h1, html.lang-zh .h2 { font-family: var(--zh-sans); font-weight: 300; letter-spacing: .04em; line-height: 1.3; }
html.lang-zh .h1 { font-size: clamp(38px, 4.8vw, 64px); }
.h1 .keep { word-break: keep-all; }
.h1 .ln > span, .h2 .ln > span { text-wrap: balance; }
.lede, .sub, .gcard p, .feats div > span, .tile div > span, .cta p, .dh-small { text-wrap: pretty; }
html.lang-zh .h2 { font-size: clamp(32px, 4.2vw, 56px); }
.gold { background: var(--gold-grad); background-size: 220% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--en-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.serif .zh, .serif.zh { font-family: var(--zh-serif); font-style: normal; font-weight: 600; letter-spacing: .06em; }
.h1 .serif, .h2 .serif { font-size: 1.08em; line-height: 1.05; }
html.lang-zh .h1 .serif, html.lang-zh .h2 .serif { font-size: 1em; line-height: 1.3; }
.lede { margin: 22px 0 0; max-width: 620px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
html.lang-zh .lede { line-height: 1.85; }
.muted { color: var(--text-3); }

/* heading lines that rise out of a mask, as in the film */
.ln { display: block; overflow: hidden; padding: .1em 0 .18em; margin: -.1em 0 -.18em; }
.ln > span { display: block; transform: translateY(150%); transition: transform 1s var(--ease-out); will-change: transform; }
.in .ln > span, .ln.in > span { transform: none; }
.ln > span.gold { display: inline-block; }
.in .ln:nth-child(2) > span { transition-delay: .12s; }
.in .ln:nth-child(3) > span { transition-delay: .24s; }
.in .gold { animation: shimmer 2.4s var(--ease-out) .5s both; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* fade-up reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; } .rv.d5 { transition-delay: .40s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--site-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: var(--cta-grad); color: var(--ink); box-shadow: 0 10px 30px rgba(201, 162, 79, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(201, 162, 79, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-line { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .26); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .4); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- top bar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(15, 22, 38, .78); border-bottom-color: rgba(255, 255, 255, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 72px; max-width: 1320px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 21px/1 var(--site-sans); letter-spacing: -.01em; }
.brand svg { width: 34px; height: 22px; }
.brand b { font-weight: 600; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langbtn { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--text-2); font: 600 13px/1 var(--site-sans); cursor: pointer; }
.langbtn span { padding: 7px 9px; border-radius: 7px; }
html:not(.lang-zh) .langbtn .l-en, html.lang-zh .langbtn .l-zh { background: rgba(255, 255, 255, .12); color: #fff; }
.menubtn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; }
.menubtn svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnav { display: none; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(96px, 12vw, 160px) 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 1320px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gemstage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin: 0 auto; }
.gemstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gemstage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 13%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 79, .28), transparent); filter: blur(6px); }
.words { position: relative; height: 1.5em; margin-top: -6%; text-align: center; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.5; }
.words .w { position: absolute; inset: 0; opacity: 0; transform: translateY(40%); filter: blur(8px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s; }
.words .w.on { opacity: 1; transform: none; filter: none; }
.words .w.out { opacity: 0; transform: translateY(-40%); filter: blur(8px); }
.words-rule { width: 120px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }

/* the HK$120,000 line */
.rules .big { margin: 6px 0 4px; font: 700 clamp(64px, 11vw, 150px)/1 var(--en-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.rules .sub { margin: 10px 0 0; font-size: clamp(19px, 2vw, 26px); color: var(--text-2); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.gcard { position: relative; padding: 30px 30px 32px; border-radius: 22px; border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)); box-shadow: 0 30px 70px rgba(4, 8, 18, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gcard .top { display: flex; align-items: center; justify-content: space-between; }
.gicon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(232, 207, 146, .45); background: radial-gradient(circle at 35% 30%, rgba(232, 207, 146, .22), rgba(201, 162, 79, .06)); color: var(--gold-hi); }
.gicon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gcard .n { font: 500 14px/1 var(--site-sans); letter-spacing: .16em; color: var(--text-3); }
.gcard h3 { margin: 26px 0 0; font: 600 24px/1.25 var(--en-display); letter-spacing: -.01em; color: #fff; }
html.lang-zh .gcard h3 { font-family: var(--zh-sans); font-weight: 500; letter-spacing: .04em; }
.gcard p { margin: 12px 0 0; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.source { margin: 30px auto 0; max-width: 860px; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.source a { color: var(--gold-hi); text-underline-offset: 3px; }
.closing { margin-top: clamp(88px, 10vw, 130px); }
.closing .sub { margin-top: 18px; }

/* one platform lockup */
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 22px; }
.lockup .mark { width: clamp(120px, 14vw, 170px); height: auto; }
.lockup .mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
.lockup.in .mark path { stroke-dashoffset: 0; }
.wordmark-xl { font: 700 clamp(56px, 8vw, 104px)/1 var(--site-sans); letter-spacing: -.03em; color: #fff; clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.2s var(--ease-out) .5s; }
.wordmark-xl b { font-weight: 500; }
.lockup.in .wordmark-xl { clip-path: inset(-20% 0 -20% 0); }
.one .h2 { margin-top: clamp(40px, 5vw, 60px); }
.dots { margin: 22px 0 0; color: var(--text-2); font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .06em; }
.forline { margin: 14px 0 0; color: var(--text-3); font-size: 16px; }

/* split layout: words beside a mockup */
.split { display: grid; grid-template-columns: minmax(320px, .82fr) 1.18fr; align-items: center; gap: clamp(32px, 4.5vw, 72px); max-width: 1440px;
  padding-left: clamp(var(--pad), calc((100% - 1320px) / 2 + var(--pad)), calc(60px + var(--pad))); }
.feats { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.feats li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feats .gicon { width: 48px; height: 48px; }
.feats .gicon svg { width: 22px; height: 22px; }
.feats div > b { display: block; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; }
.feats div > span { display: block; margin-top: 2px; color: var(--text-2); font-size: 16px; line-height: 1.55; }

/* fitted app mockups */
.fit { position: relative; width: 100%; }
.fit-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tilt { perspective: 2200px; }
.tilt .app { transform: rotateY(-9deg) rotateX(3deg); transition: transform 1.2s var(--ease-out); transform-origin: 30% 50%; }
.tilt:hover .app { transform: rotateY(-3deg) rotateX(1deg); }
.app { position: relative; border-radius: 18px; overflow: hidden; background: var(--page); box-shadow: 0 50px 110px rgba(2, 6, 16, .6), 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink); font-family: var(--font-sans); }
.app .dh-topmenu { height: 52px; padding: 0 20px; }
.app .dh-topmenu .dh-topmenu__item { font-size: 13.5px; }

/* POS mockup */
.pos-app { width: 1000px; }
.pos-body { display: grid; grid-template-columns: 1fr 372px; gap: 18px; padding: 18px; }
.pos-cat .dh-tabs { margin-bottom: 14px; flex-wrap: nowrap; gap: 6px; }
.pos-cat .dh-tab { height: 32px; padding: 0 12px; font-size: 13px; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pos-grid .dh-product { min-height: 222px; }
.pos-grid .dh-product__media { height: 84px; }
.pos-grid .dh-product__media svg { width: 48px; height: 48px; }
.pos-grid .dh-product { transition: border-color .3s, box-shadow .3s; }
.dh-cart { min-height: 588px; }
.cart-items .dh-cart__item { animation: itemIn .5s var(--ease-out) both; }
@keyframes itemIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.cart-empty { padding: 22px 0; text-align: center; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.cart-hint { display: flex; align-items: center; justify-content: center; min-height: 138px; border-radius: var(--radius-lg); border: 1px dashed var(--line-control); color: var(--muted); font-size: 14px; }
.cart-end { position: relative; min-height: 150px; }
.cart-end .dh-alert { animation: alertIn .6s var(--ease-out) both; }
@keyframes alertIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pulse { animation: pulse 1.6s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 111, 92, .45); } 100% { box-shadow: 0 0 0 16px rgba(31, 111, 92, 0); } }
.tap { position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 3px solid rgba(31, 111, 92, .9); background: rgba(31, 111, 92, .14); pointer-events: none; opacity: 0; z-index: 5; }
.tap.go { animation: tap .7s var(--ease-out); }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* compliance mockup */
.cdd-app { width: 1080px; }
.cdd-app .dh-cfile { border-radius: 0; border: 0; }
.cdd-app .dh-cfile__body { grid-template-columns: 252px 1fr; min-height: 448px; }
.cdd-app .dh-step { cursor: pointer; background: none; border: 0; padding: 4px 2px; font: inherit; color: inherit; }
.dh-step .dh-ic { display: none; }
.dh-step.is-done .dh-ic { display: block; }
.dh-step.is-done .num { display: none; }
.okline, .scr-sum, .dh-risk__level { transition: opacity .4s; }
.dh-scale__knob { transition: left 1s var(--ease-out); }
.cdd-app .dh-check { transition: opacity .3s; }
.cdd-app .dh-check.is-pending .dh-check__value { opacity: .35; }
.pane { display: none; }
.pane.on { display: block; animation: paneIn .55s var(--ease-out) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.idwrap { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.idcard { position: relative; min-height: 186px; padding: 16px 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #2b3a5c, #172033 60%, #1f3e46); box-shadow: 0 14px 30px rgba(23, 32, 51, .25); overflow: hidden; }
.idcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 207, 146, .25), transparent 70%); }
.idcard .t { font: 600 10.5px/1 var(--font-sans); letter-spacing: .16em; color: var(--gold-hi); }
.idcard .row { display: flex; gap: 16px; margin-top: 18px; }
.idcard .ph { width: 70px; height: 86px; border-radius: 8px; background: linear-gradient(180deg, #3b4a6b, #2a3654); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.idcard .ph svg { width: 56px; height: 56px; fill: #8792a8; }
.idcard .f { font-size: 10px; line-height: 1.4; letter-spacing: .1em; color: #8792a8; margin-top: 6px; }
.idcard .f:first-child { margin-top: 0; }
.idcard .v { font-size: 14px; line-height: 1.45; font-weight: 600; letter-spacing: .04em; }
.okline { margin-top: 18px; }
.scr-sum { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.scr-sum b { color: var(--brand); }
.cdd-app .dh-screen .dh-pill { opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
.cdd-app .dh-screen.done .dh-pill { opacity: 1; transform: none; }
.cdd-app .dh-screen.done .dh-screen__state { display: none; }
.cdd-app .dh-screen:not(.done) .dh-pill { position: absolute; }
.cdd-app .dh-screen { position: relative; }
.cdd-app .dh-screen__bar i { width: 0; transition: width 1.3s cubic-bezier(.4, 0, .2, 1); }
.cdd-app .dh-screen.run .dh-screen__bar i, .cdd-app .dh-screen.done .dh-screen__bar i { width: 100%; }
.riskwrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.cdd-app .dh-risk__seg { transition: stroke .3s; }
.recwrap { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.recwrap .dh-record { box-shadow: 0 18px 40px rgba(23, 32, 51, .18); }
.dh-stamp { opacity: 0; transform: rotate(-10deg) scale(1.6); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.pane.on .dh-stamp.go { opacity: 1; transform: rotate(-10deg) scale(1); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-2); color: #fff; font-size: 15px; font-weight: 500; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps-note { margin: 18px 0 0; color: var(--text-3); font-size: 14px; }

/* one customer record diagram */
.graph { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 56px; margin-top: clamp(56px, 7vw, 84px); }
.graph svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.graph .link { fill: none; stroke: #d9bd78; stroke-width: 2; stroke-dasharray: 6 8; opacity: 0; transition: opacity .8s; }
.graph.in .link { opacity: 1; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.node { position: relative; z-index: 1; padding: 26px; border-radius: 22px; border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; }
.node .gicon { margin: 0 auto 14px; }
.node h3 { margin: 0; color: #fff; font: 600 22px/1.3 var(--site-sans); }
.node .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.node .tags span { padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--text-2); font-size: 14px; }
.node.core { padding: 30px 26px; background: #fff; color: var(--ink); border: 0; box-shadow: 0 40px 90px rgba(2, 6, 16, .55); }
.node.core .dh-cavatar { width: 72px; height: 72px; margin: 0 auto 14px; font-size: 24px; }
.node.core h3 { color: var(--ink); }
.node.core small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.node.core .id { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 14px; font-weight: 600; }
.node.core .tags span { background: var(--surface-2); border-color: var(--line); color: var(--ink-3); }

/* platform tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.tile { display: flex; gap: 18px; align-items: center; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s var(--ease-out), border-color .3s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(232, 207, 146, .35); }
.tile .gicon { flex: 0 0 52px; border-radius: 14px; }
.tile div > b { display: block; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.35; }
.tile div > span { display: block; margin-top: 2px; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* closing call to action */
.cta .box { position: relative; padding: clamp(56px, 8vw, 96px) var(--pad); border-radius: 32px; border: 1px solid rgba(232, 207, 146, .22); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(201, 162, 79, .16), transparent 70%), radial-gradient(60% 80% at 50% 120%, rgba(31, 111, 92, .35), transparent 70%), rgba(15, 22, 38, .55); }
.cta .mark { width: 92px; margin: 0 auto 26px; }
.cta .hero-cta { justify-content: center; }
.mailline { margin: 22px 0 0; color: var(--text-3); font-size: 15px; }
.mailline a { color: var(--gold-hi); text-underline-offset: 3px; }
.urlpill { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(232, 207, 146, .4); color: var(--gold-hi); font: 600 16px/1 var(--site-sans); letter-spacing: .06em; text-decoration: none; }
.urlpill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* footer */
footer { padding: 56px 0 48px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(10, 15, 27, .6); color: var(--text-3); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
footer .brand { font-size: 19px; }
footer p { margin: 12px 0 0; line-height: 1.6; max-width: 520px; text-wrap: pretty; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: start; }
footer nav a { color: var(--text-2); text-decoration: none; }
footer nav a:hover { color: #fff; }
footer .credit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
footer .credit__label { color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
html.lang-zh footer .credit__label { font-size: 13px; letter-spacing: .3em; }
footer .credit img { display: block; width: auto; height: 60px; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .legal a { color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menubtn { display: inline-flex; }
  .mnav { position: fixed; top: 72px; left: 0; right: 0; z-index: 49; display: flex; flex-direction: column; gap: 4px; padding: 14px var(--pad) 22px; background: rgba(15, 22, 38, .96); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(14px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .mnav.open { opacity: 1; transform: none; visibility: visible; }
  .mnav a { padding: 12px 6px; color: #fff; font-size: 17px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .split { grid-template-columns: 1fr; }
  .split .copy { max-width: 720px; }
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero-cta, .hero-notes { justify-content: center; }
  .gemstage { max-width: 380px; grid-row: 1; }
  .cards3, .tiles { grid-template-columns: 1fr 1fr; }
  .cards3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .graph { grid-template-columns: 1fr; gap: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .graph svg.links { display: none; }
  .graph .node:not(.core)::before { content: ""; position: absolute; left: 50%; width: 2px; height: 28px; background: linear-gradient(var(--gold), var(--brand-hi, #6fbba3)); opacity: .6; }
  .graph .node:first-child::before { bottom: -29px; }
  .graph .node:last-child::before { top: -29px; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .wrap { height: 64px; gap: 12px; }
  .mnav { top: 64px; }
  .bar-end .btn-gold { display: none; }
  .cards3, .tiles { grid-template-columns: 1fr; }
  .gcard { padding: 26px; }
  .hero { padding-top: 96px; }
  .words { margin-top: -4%; }
  /* mockups lose their tilt and become one column */
  .tilt .app { transform: none !important; }
  .fit { height: auto !important; }
  .fit-in { position: static; transform: none !important; }
  .pos-app, .cdd-app { width: 100%; }
  .app .dh-topmenu__nav, .app .dh-topmenu__end > span:first-child { display: none; }
  .pos-body { grid-template-columns: 1fr; padding: 12px; }
  .pos-cat { display: none; }
  .dh-cart { min-height: 0; }
  .cdd-app .dh-cfile__head { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .cdd-app .dh-stepper { width: 100%; }
  .cdd-app .dh-step { font-size: 0; gap: 0; }
  .cdd-app .dh-step.is-current { font-size: 13px; gap: 6px; }
  .cdd-app .dh-cfile__body { grid-template-columns: 1fr; min-height: 0; }
  .cdd-app .dh-cfile__side { display: none; }
  .cdd-app .dh-cfile__main { padding: 16px; }
  .idwrap, .recwrap, .riskwrap { grid-template-columns: 1fr; }
  .idcard { max-width: 300px; }
  .recwrap { gap: 20px; }
  .recwrap .dh-checklist { display: none; }
  .cdd-app .dh-check { grid-template-columns: 104px 1fr 26px; }
  .cdd-app .dh-screen { grid-template-columns: 1fr auto; }
  .cdd-app .dh-screen__bar { grid-column: 1 / -1; grid-row: 2; }
  .cdd-app .dh-risk { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cdd-app .dh-scale { width: 100%; }
  .chips { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .chip { height: auto; min-height: 48px; padding: 12px 16px; border-radius: 16px; justify-content: flex-start; text-align: left; line-height: 1.4; }
  .chip svg { flex: none; }
  .hero { padding-bottom: 40px; }
  .hero .eyebrow::before { display: none; }
  .rules .big { font-size: 14vw; }
  .cta .box { border-radius: 24px; }
  footer .legal { flex-direction: column; }
}
@media (max-width: 420px) {
  .langbtn { height: 36px; }
  .brand { font-size: 19px; }
  .brand svg { width: 30px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln > span, .rv { transform: none !important; opacity: 1 !important; transition: none !important; }
  .in .gold { animation: none; }
  .lockup .mark path { stroke-dashoffset: 0 !important; transition: none; }
  .wordmark-xl { clip-path: none !important; transition: none; }
  .graph.in .link { animation: none; }
  .tilt .app { transition: none; }
  .words .w { transition: none; }
}
