/* ==========================================================================
   "Legacy Ledger" design system for the branch portal.
   Dense, typographic, angular (after the ID card artwork), with organic motion.
   1 fonts · 2 tokens · 3 base · 4 motion · 5 layout · 6 components · 7 forms
   8 member shell · 9 admin shell · 10 public · 11 utilities
   ========================================================================== */

/* 1. Fonts (self-hosted, never render-blocking) ------------------------------ */
@font-face { font-family: "EB Garamond"; font-weight: 600; font-display: swap; src: url("../fonts/eb-garamond-600.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 700; font-display: swap; src: url("../fonts/eb-garamond-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-ext-500.woff2") format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Tokens ------------------------------------------------------------------ */
:root {
  /* Brand (fixed) */
  --brand-dark: #123b2a; --brand-accent: #1f6b3d; --brand-light: #edf7ef;
  --gold: #f1f500; --gold-deep: #c9ca00;
  --ink: #10251b; --muted: #64746a; --paper: #f7fbf7; --line: #dce9df; --surface: #ffffff;
  --danger: #b42318; --success: #15803d;

  /* Derived. Gold is never text on light surfaces: --gold-ink is gold-deep darkened to 5.65:1. */
  --gold-ink: #6a6b00;
  --leaf: #7cc576;
  --link: var(--brand-accent);
  --heading: var(--brand-dark);
  --success-ink: #116a33; --success-bg: #e8f7ee;
  --warning-ink: #8a5a00; --warning-bg: #fff6e0;
  --danger-bg: #fdecea;
  --info-ink: #1d4f86; --info-bg: #e9f1fb;
  --neutral-bg: #eef1ef;
  --surface-2: var(--brand-light);
  --surface-3: #f2f7f3;
  --rule: #e6efe8;
  --overlay: rgba(16, 37, 27, .55);
  --focus: #1d4f86;
  --shadow-1: 0 1px 0 rgba(16, 37, 27, .04), 0 1px 2px rgba(16, 37, 27, .06);
  --shadow-2: 0 2px 4px rgba(16, 37, 27, .05), 0 12px 28px -12px rgba(16, 37, 27, .28);
  --shadow-3: 0 24px 60px -20px rgba(16, 37, 27, .45);

  --font-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-lg: 10px; --r: 8px; --r-sm: 6px;
  --tap: 44px; --gutter: 16px; --rail: 220px; --sidebar: 248px; --sidebar-rail: 64px; --tabbar: 62px;

  /* Density: comfortable by default; compact for admin and on request */
  --pad: 16px; --pad-sm: 10px; --row: 10px; --fs: 15px; --gap: 16px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .16s; --t: .28s; --t-slow: .6s;
  color-scheme: light;
}
:root[data-density="compact"], :root:not([data-density="comfortable"]) .layout-admin { --pad: 12px; --pad-sm: 8px; --row: 7px; --fs: 14px; --gap: 12px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8f3eb; --muted: #a9bcb0; --paper: #0c1c14; --surface: #12271c; --line: #23402f; --rule: #1b3426;
    --surface-2: #173324; --surface-3: #142c20; --heading: #edf7ef; --link: #7fd39c; --gold-ink: #f1f500;
    --success-ink: #6ee7a0; --success-bg: #12301f; --warning-ink: #ffd27a; --warning-bg: #33280f;
    --danger: #ff8a80; --danger-bg: #3a1714; --info-ink: #9cc4f5; --info-bg: #14263b; --neutral-bg: #1b3126;
    --focus: #f1f500; --overlay: rgba(0, 0, 0, .65);
    --shadow-1: 0 1px 0 rgba(0,0,0,.3); --shadow-2: 0 12px 28px -12px rgba(0,0,0,.6); --shadow-3: 0 24px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8f3eb; --muted: #a9bcb0; --paper: #0c1c14; --surface: #12271c; --line: #23402f; --rule: #1b3426;
  --surface-2: #173324; --surface-3: #142c20; --heading: #edf7ef; --link: #7fd39c; --gold-ink: #f1f500;
  --success-ink: #6ee7a0; --success-bg: #12301f; --warning-ink: #ffd27a; --warning-bg: #33280f;
  --danger: #ff8a80; --danger-bg: #3a1714; --info-ink: #9cc4f5; --info-bg: #14263b; --neutral-bg: #1b3126;
  --focus: #f1f500; --overlay: rgba(0, 0, 0, .65);
  --shadow-1: 0 1px 0 rgba(0,0,0,.3); --shadow-2: 0 12px 28px -12px rgba(0,0,0,.6); --shadow-3: 0 24px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* 3. Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs)/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.12; margin: 0 0 .4rem; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .9rem; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
img { height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.25rem 0; }
small, .small { font-size: .84rem; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; letter-spacing: -.01em; }
table { border-collapse: collapse; width: 100%; }
.num, .stat-value, .kpi-value, .attention-count { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--brand-dark); }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 2.6em; height: 2.6em; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--gold); color: var(--brand-dark); padding: 10px 16px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.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; }

/* 4. Motion ------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .36s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-14px, 6px, 0); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(241, 245, 0, .55); } 60% { box-shadow: 0 0 0 7px rgba(241, 245, 0, 0); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes float { 0%, 100% { transform: rotate(6deg) translateY(4px); } 50% { transform: rotate(4deg) translateY(-8px); } }
.reveal > * { animation: rise .55s var(--ease-out) both; }
.reveal > *:nth-child(2) { animation-delay: .04s; } .reveal > *:nth-child(3) { animation-delay: .08s; } .reveal > *:nth-child(4) { animation-delay: .12s; }
.reveal > *:nth-child(5) { animation-delay: .16s; } .reveal > *:nth-child(6) { animation-delay: .2s; } .reveal > *:nth-child(7) { animation-delay: .24s; }
.reveal > *:nth-child(8) { animation-delay: .28s; } .reveal > *:nth-child(n+9) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* 5. Layout primitives ---------------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: var(--gutter); }
.container-mid { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 2.25rem; }
.stack > * + * { margin-top: var(--gap); }
.stack-sm > * + * { margin-top: .5rem; }
.stack-lg > * + * { margin-top: calc(var(--gap) * 1.5); }
.cluster { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento > * { grid-column: span 12; min-width: 0; }
@media (min-width: 760px) { .b-6, .b-4, .b-3, .b-5, .b-7 { grid-column: span 6; } }
@media (min-width: 1100px) { .b-4 { grid-column: span 4; } .b-8 { grid-column: span 8; } .b-3 { grid-column: span 3; } .b-5 { grid-column: span 5; } .b-7 { grid-column: span 7; } }
.page-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: calc(var(--gap) * 1.1); padding-bottom: .65rem; border-bottom: 1px solid var(--rule); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--gold); transform-origin: left; animation: grow-x .7s var(--ease-out) both; }
.page-head h1 { margin: 0; view-transition-name: page-title; }
.page-head p { margin: .2rem 0 0; color: var(--muted); max-width: 70ch; }
.eyebrow { display: block; font: 700 .72rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .3rem; }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }

/* 6. Components ------------------------------------------------------------------ */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: .45rem .95rem;
  border-radius: var(--r); border: 1px solid transparent; font: 700 .9rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t), transform var(--t) var(--ease-spring); }
.btn:active { transform: translateY(1px) scale(.98); }
@media (pointer: coarse) { .btn { min-height: var(--tap); } }
.btn-primary { background: linear-gradient(180deg, #24774a, var(--brand-accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(16,37,27,.25); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 16px -6px rgba(18, 59, 42, .6); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--brand-dark); border-color: var(--gold-deep); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-gold:hover { background: #f6fa3d; transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(201, 202, 0, .7); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--brand-accent); color: var(--link); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .btn-danger { color: #2a0d0a; }
.btn-danger:hover { filter: brightness(.93); }
.btn-sm { min-height: 32px; padding: .3rem .65rem; font-size: .82rem; }
@media (pointer: coarse) { .btn-sm { min-height: 40px; } }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
@media (pointer: coarse) { .btn-icon { width: var(--tap); } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
button { font: inherit; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; min-height: var(--tap); }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-body { padding: var(--pad); }
.card-head { padding: var(--pad-sm) var(--pad); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; min-height: 48px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.12rem; }
.card-foot { padding: var(--pad-sm) var(--pad); border-top: 1px solid var(--rule); background: var(--surface-3); border-radius: 0 0 var(--r-lg) var(--r-lg); }
a.card-link { display: block; text-decoration: none; color: inherit; transition: transform var(--t) var(--ease-spring), box-shadow var(--t), border-color var(--t-fast); }
a.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line)); }
.card-accent { border-top: 3px solid var(--gold); }

/* Shard band: angular decoration from the ID card artwork */
.shard-band { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; isolation: isolate; }
.shard-band::before { content: ""; position: absolute; top: -20px; bottom: -20px; right: -40px; width: min(900px, 120%); background: url("../img/shards.svg") right center / cover no-repeat; z-index: -1; animation: drift 26s ease-in-out infinite; }
.shard-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-deep) 30%, transparent 85%); }

.stat { padding: var(--pad); display: flex; gap: .8rem; align-items: flex-start; }
.stat-icon { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); color: var(--brand-accent); flex: none; }
:root[data-theme="dark"] .stat-icon { color: var(--link); }
.stat-label { font-size: .74rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat-value { font: 700 1.75rem/1.05 var(--font-head); color: var(--heading); }
.stat-meta { font-size: .8rem; color: var(--muted); }
.kpi-ribbon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
@media (min-width: 760px) { .kpi-ribbon { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.kpi { position: relative; padding: var(--pad-sm) var(--pad); display: grid; gap: .1rem; align-content: start; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.kpi-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font: 700 1.9rem/1 var(--font-head); color: var(--heading); }
.kpi-meta { font-size: .78rem; color: var(--muted); }
.kpi.is-warn::before, .kpi.is-good::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.kpi.is-good::before { background: var(--success); }
.spark { width: 100%; height: 28px; margin-top: .25rem; overflow: visible; }
.spark .line { fill: none; stroke: var(--brand-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: color-mix(in srgb, var(--brand-accent) 14%, transparent); }
:root[data-theme="dark"] .spark .line { stroke: var(--link); }

.attention { display: grid; gap: 0; grid-template-columns: 1fr; margin-bottom: var(--gap); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
@media (min-width: 760px) { .attention { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .attention { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.attention-item { position: relative; display: flex; align-items: center; gap: .75rem; padding: var(--pad-sm) var(--pad); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.attention-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.attention-item.is-clear::before { background: var(--success); }
.attention-count { font: 700 1.9rem/1 var(--font-head); color: var(--heading); min-width: 2ch; }
.attention-text { flex: 1; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.attention-text strong { display: block; color: var(--ink); font-size: .9rem; }

.chip { display: inline-flex; align-items: center; gap: .28rem; padding: .12rem .5rem .12rem .38rem; border-radius: var(--r-sm); font-size: .76rem; font-weight: 700; line-height: 1.45; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.chip .icon { width: .95em; height: .95em; vertical-align: 0; }
.chip-success { background: var(--success-bg); color: var(--success-ink); border-color: color-mix(in srgb, var(--success-ink) 22%, transparent); }
.chip-warning { background: var(--warning-bg); color: var(--warning-ink); border-color: color-mix(in srgb, var(--warning-ink) 22%, transparent); }
.chip-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.chip-info { background: var(--info-bg); color: var(--info-ink); border-color: color-mix(in srgb, var(--info-ink) 22%, transparent); }
.chip-neutral { background: var(--neutral-bg); color: var(--muted); border-color: var(--line); }
.chip-brand { background: var(--gold); color: var(--brand-dark); border-color: var(--gold-deep); }
button.chip { cursor: pointer; font-family: inherit; min-height: 32px; padding-inline: .6rem; }
@media (pointer: coarse) { button.chip { min-height: var(--tap); } }
button.chip:hover { filter: brightness(.95); }
.badge-new { display: inline-block; padding: .02rem .4rem; border-radius: 4px; background: var(--gold); color: var(--brand-dark); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

.banner { display: flex; gap: .8rem; align-items: flex-start; padding: var(--pad-sm) var(--pad); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.banner > .icon { margin-top: .12rem; width: 1.4em; height: 1.4em; }
.banner-body { flex: 1; min-width: 0; }
.banner-body > :last-child { margin-bottom: 0; }
.banner h2, .banner h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.banner-success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success-ink) 28%, transparent); }
.banner-success > .icon { color: var(--success-ink); }
.banner-warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning-ink) 28%, transparent); }
.banner-warning > .icon { color: var(--warning-ink); }
.banner-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
.banner-danger > .icon { color: var(--danger); }
.banner-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info-ink) 28%, transparent); }
.banner-info > .icon { color: var(--info-ink); }

.table-wrap { width: 100%; }
.table { font-size: .88rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--surface-3); position: sticky; top: 0; z-index: 1; }
.table th, .table td { padding: var(--row) .75rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr { transition: background-color var(--t-fast); }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table-check { width: 40px; }
.table-dense { font-size: .84rem; }
.table-dense th, .table-dense td { padding: 6px .65rem; }
@media (max-width: 767px) {
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { background: var(--surface); border-bottom: 1px solid var(--rule); padding: .45rem .15rem; }
  .table-cards tr:last-child { border-bottom: 0; }
  .table-cards td { border: 0; padding: .18rem .7rem; display: flex; gap: .75rem; justify-content: space-between; align-items: center; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
  .table-cards td.td-main { display: block; text-align: left; font-weight: 700; font-size: .96rem; }
  .table-cards td.td-main::before, .table-cards td.actions::before { content: none; }
  .table-cards td.actions { justify-content: flex-end; }
}
@media (min-width: 768px) { .table-wrap { overflow-x: auto; } }

.tabs { position: relative; display: flex; gap: .15rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--gap); }
.tab { flex: none; min-height: 40px; padding: .4rem .85rem; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; border-radius: var(--r) var(--r) 0 0; transition: color var(--t-fast), background var(--t-fast); }
@media (pointer: coarse) { .tab { min-height: var(--tap); } }
.tab:hover { color: var(--ink); background: var(--surface-3); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--heading); }
.tab-ink { position: absolute; bottom: 0; left: 0; height: 3px; width: 0; background: var(--gold-deep); border-radius: 3px 3px 0 0; transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); pointer-events: none; }
.tabs:not(.has-ink) .tab[aria-selected="true"], .tabs:not(.has-ink) .tab[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold-deep); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: rise .4s var(--ease-out) both; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r); background: var(--surface-3); border: 1px solid var(--line); }
.segmented a, .segmented button { display: inline-flex; gap: .35rem; align-items: center; min-height: 34px; padding: .25rem .7rem; border-radius: var(--r-sm); border: 0; background: none; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .84rem; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.segmented [aria-current="page"], .segmented [aria-pressed="true"] { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-1); }
.seg-n { font-weight: 500; font-size: .76rem; color: var(--muted); }

.stepper { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; margin: 0 0 var(--gap); counter-reset: step; }
.stepper li { position: relative; display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; padding-right: .5rem; }
.stepper li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--muted); position: relative; z-index: 1; transition: background var(--t), color var(--t), transform var(--t) var(--ease-spring); }
.stepper li::after { content: ""; position: absolute; top: 15px; left: 30px; right: 0; height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.is-done::before { content: "✓"; background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.stepper li.is-done::after { background: var(--brand-accent); }
.stepper li.is-current { color: var(--ink); font-weight: 700; }
.stepper li.is-current::before { background: var(--gold); border-color: var(--gold-deep); color: var(--brand-dark); transform: scale(1.08); }
.stepper li a { color: inherit; }

.stage-track { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stage-track li { font-size: .72rem; font-weight: 700; padding: .2rem .45rem; border-radius: 4px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--rule); }
.stage-track li.is-done { background: var(--success-bg); color: var(--success-ink); }
.stage-track li.is-current { background: var(--gold); color: var(--brand-dark); border-color: var(--gold-deep); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 2.2rem; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.tl-dot .icon { width: 14px; height: 14px; }
.timeline .is-done .tl-dot { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.timeline .is-current .tl-dot { background: var(--gold); border-color: var(--gold-deep); color: var(--brand-dark); animation: pulse-dot 2.4s ease-out infinite; }
.timeline .is-problem .tl-dot { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.tl-title { font-weight: 700; }
.timeline .is-todo .tl-title { color: var(--muted); font-weight: 500; }
.tl-meta { font-size: .8rem; color: var(--muted); }
.tl-note { margin-top: .35rem; padding: .5rem .7rem; background: var(--surface-3); border-left: 3px solid var(--gold-deep); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; }

.history-strip { display: flex; gap: .4rem; overflow-x: auto; padding: 0 0 .2rem; list-style: none; margin: 0; }
.history-strip li { flex: none; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: .8rem; max-width: 260px; }
.history-strip time { display: block; color: var(--muted); font-size: .72rem; }

dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
dialog.modal[open] { animation: rise .35s var(--ease-spring) both; }
dialog.modal::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.modal-head { padding: 1rem 1.15rem .2rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-body { padding: .4rem 1.15rem .9rem; }
.modal-foot { padding: .8rem 1.15rem 1rem; display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--rule); }

.toasts { position: fixed; z-index: 900; right: 16px; top: 70px; width: min(420px, calc(100vw - 24px)); display: grid; gap: .5rem; }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; top: 66px; width: auto; } }
.toast { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .8rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); border-left: 4px solid var(--muted); animation: toast-in .5s var(--ease-spring) both; }
.toast-success { border-left-color: var(--success); } .toast-success > .icon { color: var(--success-ink); }
.toast-error { border-left-color: var(--danger); } .toast-error > .icon { color: var(--danger); }
.toast-info { border-left-color: var(--info-ink); } .toast-info > .icon { color: var(--info-ink); }
.toast-text { flex: 1; font-weight: 500; font-size: .92rem; }
.toast-close { flex: none; width: 34px; height: 34px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; margin: -6px -4px -6px 0; }
.toast-close:hover { background: var(--surface-2); color: var(--ink); }
.toast.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s var(--ease-out); }

/* Empty state: quiet and left-aligned */
.empty { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: flex-start; padding: var(--pad); color: var(--muted); }
.empty > .icon { width: 26px; height: 26px; color: var(--brand-accent); opacity: .7; flex: none; }
.empty > :not(.icon) { flex: 1 1 60%; }
.empty h2, .empty h3 { color: var(--heading); font-size: 1.08rem; margin-bottom: .15rem; }
.empty p { margin-bottom: .4rem; }
.empty .btn { flex: none; }
.empty.text-center, .text-center > .empty { justify-content: center; }

.skeleton { display: block; height: 1rem; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton + .skeleton { margin-top: .5rem; }

.pagination { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; justify-content: center; margin-top: var(--gap); list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 38px; min-height: 38px; display: inline-grid; place-items: center; padding: 0 .55rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .86rem; }
@media (pointer: coarse) { .pagination a, .pagination span { min-width: var(--tap); min-height: var(--tap); } }
.pagination [aria-current="page"] { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.pagination .is-disabled { color: var(--muted); opacity: .55; }

.alpha-bar { display: flex; flex-wrap: wrap; gap: 3px; margin: .4rem 0 var(--gap); list-style: none; padding: 0; }
.alpha-bar a { display: inline-grid; place-items: center; min-width: 32px; min-height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .84rem; color: var(--ink); transition: transform var(--t) var(--ease-spring), background var(--t-fast); }
@media (pointer: coarse) { .alpha-bar a { min-width: 40px; min-height: var(--tap); } }
.alpha-bar a:hover { transform: translateY(-2px); }
.alpha-bar a[aria-current="true"] { background: var(--gold); color: var(--brand-dark); border-color: var(--gold-deep); }

.dl { display: grid; grid-template-columns: 1fr; gap: .05rem 1rem; margin: 0; }
.dl dt { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .55rem; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) { .dl { grid-template-columns: minmax(130px, 34%) 1fr; } .dl dt, .dl dd { margin: 0; padding: .38rem 0; border-bottom: 1px dashed var(--rule); } .dl dt { padding-top: .5rem; } }

.avatar { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); flex: none; }
.avatar-lg { width: 84px; height: 84px; border-radius: var(--r); }
.avatar-xl { width: 128px; height: 128px; border-radius: var(--r); }
.person { display: flex; align-items: center; gap: .7rem; }
.person-name { font-weight: 700; }
.person-meta { font-size: .8rem; color: var(--muted); }

progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--brand-accent), var(--leaf)); border-radius: 999px; transition: width .8s var(--ease-out); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--brand-accent), var(--leaf)); border-radius: 999px; }
.strength[data-level="0"]::-webkit-progress-value, .strength[data-level="1"]::-webkit-progress-value { background: var(--danger); }
.strength[data-level="0"]::-moz-progress-bar, .strength[data-level="1"]::-moz-progress-bar { background: var(--danger); }
.strength[data-level="2"]::-webkit-progress-value { background: #b7791f; }
.strength[data-level="2"]::-moz-progress-bar { background: #b7791f; }

.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--brand-accent); transform-box: fill-box; transform-origin: bottom; animation: grow-y .8s var(--ease-out) both; }
.chart rect:nth-of-type(2n) { animation-delay: .03s; } .chart rect:nth-of-type(3n) { animation-delay: .06s; } .chart rect:nth-of-type(5n) { animation-delay: .09s; }
.chart .bar-target { fill: var(--gold); fill-opacity: .28; stroke: var(--gold-deep); stroke-width: 1; stroke-dasharray: 3 2; transform-box: fill-box; transform-origin: bottom; animation: grow-y .9s var(--ease-out) .1s both; }
.chart .bar:hover { fill: var(--brand-dark); }
:root[data-theme="dark"] .chart .bar:hover { fill: var(--link); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .grid-line { stroke: var(--rule); stroke-dasharray: 2 5; }
.chart text { fill: var(--muted); font: 500 11px var(--font-body); }
.chart .value-label { fill: var(--ink); font-weight: 700; }
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); list-style: none; padding: 0; margin: .4rem 0 0; }
.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: .35rem; background: var(--brand-accent); }
.legend-swatch.is-gold { background: rgba(241, 245, 0, .28); border: 1px dashed var(--gold-deep); }

.file-icon { width: 38px; height: 46px; border-radius: 4px; display: grid; place-items: end center; padding-bottom: 5px; font-size: .62rem; font-weight: 700; color: #fff; flex: none; background: var(--muted); clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.file-pdf { background: #b42318; } .file-doc { background: #1d4f86; } .file-xls { background: #15803d; } .file-ppt { background: #b7591f; } .file-img { background: #6b4fa0; }

.notice-list, .pick-list, .event-list, .feed, .recent-list { list-style: none; margin: 0; padding: 0; }
.notice-item { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.notice-item:last-child { border-bottom: 0; }
.notice-item a { color: inherit; text-decoration: none; }
.notice-item a:hover .notice-title { color: var(--link); }
.notice-title { font-weight: 700; transition: color var(--t-fast); }
.notice-item.is-unread .notice-title { color: var(--heading); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--gold-deep); flex: none; margin-top: .45rem; animation: pulse-dot 2.6s ease-out infinite; }
.read-dot { width: 9px; height: 9px; flex: none; }
.notice-body { white-space: pre-line; }
.notice-list.card-body { padding-block: .2rem; }
.pick-list li + li { margin-top: 3px; }
.pick-list a { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .5rem .65rem; border-radius: var(--r-sm); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast); }
.pick-list a:hover, .pick-list a[aria-current="true"] { border-color: var(--brand-accent); background: var(--surface-2); }
.event { display: flex; gap: .9rem; padding: var(--pad-sm) var(--pad); border-bottom: 1px solid var(--rule); }
.event:last-child { border-bottom: 0; }
.event-when { flex: none; width: 52px; text-align: center; border-radius: var(--r); background: var(--brand-dark); color: #fff; padding: .35rem 0; border-bottom: 3px solid var(--gold); align-self: flex-start; }
.event-day { display: block; font: 700 1.5rem/1 var(--font-head); }
.event-mon { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-light); }
.event-body { flex: 1; min-width: 0; }
.feed li { display: grid; grid-template-columns: 22px 1fr auto; gap: .6rem; padding: .5rem var(--pad); border-bottom: 1px solid var(--rule); align-items: start; font-size: .86rem; }
.feed li:last-child { border-bottom: 0; }
.feed .icon { color: var(--brand-accent); margin-top: .15rem; }
.feed time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.feed .who { color: var(--muted); font-size: .78rem; display: block; }
.recent-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem var(--pad); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-size: .88rem; }
.recent-list a:hover { background: var(--surface-3); }

.split { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .split > .sticky { position: sticky; top: 70px; } }
.doc-preview { width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.doc-preview-img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.doc-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }
.queue { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 1100px) { .queue { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .queue > .side-panel { position: sticky; top: 70px; } }
.queue-item { display: flex; gap: .6rem; align-items: center; padding: .55rem var(--pad); border-bottom: 1px solid var(--rule); transition: background var(--t-fast); }
.queue-item:hover { background: var(--surface-3); }
.queue-item.is-selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold-deep); }
.queue-item a { text-decoration: none; color: inherit; flex: 1; }
.queue-item .icon { color: var(--muted); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .7rem; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .6rem; }
.disclosure > summary { list-style: none; cursor: pointer; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure[open] > summary { border-bottom: 1px solid var(--rule); }
details > summary { cursor: pointer; }

.upload { position: relative; border: 1.5px dashed var(--line); border-radius: var(--r); padding: 1rem; text-align: center; background: var(--surface-3); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-spring); }
.upload.is-drag { border-color: var(--brand-accent); background: var(--surface-2); transform: scale(1.01); }
.upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-hint { color: var(--muted); font-size: .84rem; margin: .2rem 0 0; }
.upload-preview { display: flex; gap: .7rem; align-items: center; margin-top: .6rem; text-align: left; animation: rise .35s var(--ease-out) both; }
.upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.upload-preview[hidden] { display: none; }

.crop-stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; margin: 0 auto; background: #0c1c14; border-radius: var(--r); overflow: hidden; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.crop-guide { position: absolute; inset: 10% 18% 18%; border: 2px dashed rgba(241, 245, 0, .85); border-radius: 50% 50% 45% 45%; pointer-events: none; }
.crop-controls { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: .6rem; flex-wrap: wrap; }
.crop-controls input[type="range"] { width: 160px; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: .35rem; z-index: 300; animation: rise .28s var(--ease-spring) both; transform-origin: top right; }
.menu-panel a, .menu-panel > button, .menu-panel form button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: .4rem .65rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; font-size: .9rem; }
.menu-panel a:hover, .menu-panel > button:hover, .menu-panel form button:hover { background: var(--surface-2); }
.menu-panel hr { margin: .3rem 0; }
.menu-head { padding: .45rem .65rem; font-size: .82rem; color: var(--muted); }
.menu-label { padding: .35rem .65rem 0; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.menu-seg { display: flex; gap: 3px; padding: .25rem .5rem .45rem; }
.menu-seg button { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 34px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: .8rem; font-weight: 700; cursor: pointer; }
.menu-seg button[aria-pressed="true"] { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.bell { position: relative; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--brand-dark); border: 2px solid var(--brand-dark); font-size: .66rem; font-weight: 700; display: grid; place-items: center; line-height: 1; animation: pulse-dot 2.4s ease-out infinite; }

/* Personalized greeting and next step */
.greet { display: grid; gap: .25rem; padding: calc(var(--pad) + 4px) var(--pad) calc(var(--pad) + 8px); border-radius: var(--r-lg); margin-bottom: var(--gap); }
.greet h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; view-transition-name: page-title; }
.greet p { color: var(--brand-light); margin: 0; }
.greet .eyebrow { color: var(--gold); }
.greet-facts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.greet-facts .chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.next-step { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: var(--pad); }
.ns-icon { width: 46px; height: 46px; border-radius: var(--r); background: var(--gold); color: var(--brand-dark); display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }
.ns-body h2 { font-size: 1.2rem; margin: 0 0 .15rem; }
.ns-body p { margin: 0; color: var(--muted); }
.ns-action { grid-column: 1 / -1; }
@media (min-width: 760px) { .next-step { grid-template-columns: auto 1fr auto; } .ns-action { grid-column: auto; } }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick a { display: flex; gap: .55rem; align-items: center; padding: .7rem .8rem; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; min-height: var(--tap); transition: background var(--t-fast); }
.quick a:hover { background: var(--surface-2); }
.quick a .icon { color: var(--brand-accent); transition: transform var(--t) var(--ease-spring); }
.quick a:hover .icon { transform: translateX(2px) rotate(-6deg); }
.quick .q-meta { margin-left: auto; font-weight: 500; font-size: .76rem; color: var(--muted); }

/* 7. Forms ------------------------------------------------------------------------ */
.form { max-width: 640px; }
.field { margin-bottom: .95rem; }
.field > label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .84rem; }
.hint { display: block; color: var(--muted); font-size: .82rem; margin: -.05rem 0 .35rem; }
.error-text { display: flex; gap: .35rem; align-items: flex-start; color: var(--danger); font-weight: 700; font-size: .86rem; margin: .3rem 0 0; animation: rise .3s var(--ease-out) both; }
.error-text .icon { margin-top: .1rem; }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 40px; padding: .5rem .7rem; border: 1px solid color-mix(in srgb, var(--line) 70%, var(--muted)); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 400 .95rem/1.4 var(--font-body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
@media (pointer: coarse) { input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select { min-height: var(--tap); font-size: 16px; } }
textarea { min-height: 100px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
.input-sm { width: auto; min-width: 160px; }
.grow { flex: 1; min-width: 0; width: auto; }
.is-invalid, [aria-invalid="true"] { border-color: var(--danger) !important; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--brand-accent); margin: 0; flex: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; min-height: 40px; padding: .45rem 0; cursor: pointer; font-size: .92rem; }
.check input { margin-top: .1rem; }
.choice-grid { display: grid; gap: .4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice-card { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-spring); }
.choice-card + .choice-card { margin-top: .4rem; }
.choice-grid .choice-card + .choice-card { margin-top: 0; }
.choice-card:hover { transform: translateY(-1px); border-color: var(--brand-accent); }
.choice-card:has(input:checked) { border-color: var(--brand-accent); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold-deep); }
.field-row { display: grid; gap: 0 .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: 1fr 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0 0 .95rem; }
legend { font-weight: 700; margin-bottom: .35rem; padding: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 1px; top: 1px; width: 44px; height: calc(100% - 2px); border: 0; background: transparent; color: var(--muted); border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); }
.strength-text { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.error-summary { margin-bottom: 1rem; }
.error-summary ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.error-summary a { color: var(--danger); font-weight: 700; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--tap); cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .35s var(--ease-spring); }
.switch input:checked { background: var(--brand-accent); }
.switch input:checked::after { transform: translateX(20px); }
.filters { display: grid; gap: .6rem; grid-template-columns: 1fr; align-items: end; margin-bottom: var(--gap); }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.filters .field { margin: 0; }
.filters label { font-size: .8rem; }
.card.filters { padding: var(--pad-sm) var(--pad); }

/* 8. Member shell ----------------------------------------------------------------- */
.m-top { position: sticky; top: 0; z-index: 200; color: #fff; }
.m-top-inner { display: flex; align-items: center; gap: .5rem; min-height: 56px; }
.brand { display: flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; transition: transform .6s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-name { display: block; font: 700 1.05rem/1.05 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { display: block; font: 700 .64rem/1.2 var(--font-body); color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.m-top .btn-icon, .a-top .btn-icon, .p-header .btn-icon { color: #fff; background: transparent; }
.m-top .btn-icon:hover, .a-top .btn-icon:hover, .p-header .btn-icon:hover { background: rgba(255,255,255,.12); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.app-shell { display: block; }
.m-main { padding: var(--gap) 0 calc(var(--tabbar) + 2.5rem); min-width: 0; }
.rail { display: none; }
.tabbar { position: fixed; z-index: 250; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: var(--tabbar); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: var(--shadow-3); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700; position: relative; transition: color var(--t-fast); }
.tabbar a .icon { width: 22px; height: 22px; transition: transform var(--t) var(--ease-spring); }
.tabbar a:active .icon { transform: scale(.85); }
.tabbar a[aria-current="page"] { color: var(--heading); }
.tabbar a[aria-current="page"] .icon { transform: translateY(-2px); color: var(--brand-accent); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 5px; width: 22px; height: 3px; border-radius: 3px; background: var(--gold-deep); }
.tab-dot { position: absolute; top: 9px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--brand-dark); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .app-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 1.5rem; }
  .rail { display: block; position: sticky; top: 64px; align-self: start; padding: var(--gap) 0; }
  .rail ul { list-style: none; margin: 0; padding: 0; }
  .rail a { display: flex; align-items: center; gap: .65rem; min-height: 38px; padding: .35rem .7rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; transition: background var(--t-fast), transform var(--t) var(--ease-spring); }
  .rail a:hover { background: var(--surface-2); transform: translateX(2px); }
  .rail a[aria-current="page"] { background: var(--surface); color: var(--heading); font-weight: 700; box-shadow: var(--shadow-1), inset 3px 0 0 var(--gold-deep); }
  .rail .rail-sep { height: 1px; background: var(--rule); margin: .5rem .7rem; }
  .m-main { padding-bottom: 3rem; }
}

/* 9. Admin shell ------------------------------------------------------------------ */
.a-top { position: sticky; top: 0; z-index: 260; color: #fff; }
.a-top-inner { display: flex; align-items: center; gap: .5rem; min-height: 54px; padding-inline: var(--gutter); }
.global-search { display: none; flex: 1; max-width: 560px; margin-inline: 1rem; position: relative; }
.global-search input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; padding-left: 2.4rem; padding-right: 2.6rem; min-height: 38px; }
.global-search input::placeholder { color: #cfe3d6; }
.global-search input:focus { background: var(--surface); color: var(--ink); }
.global-search > .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #cfe3d6; pointer-events: none; }
.global-search kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font: 700 .7rem var(--font-body); color: #cfe3d6; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: .05rem .35rem; pointer-events: none; }
@media (min-width: 760px) { .global-search { display: block; } .search-toggle { display: none; } }
.mobile-search { padding: .5rem var(--gutter); background: var(--brand-dark); }
.mobile-search[hidden] { display: none; }
.admin-shell { display: block; }
.sidebar { position: fixed; z-index: 270; top: 0; bottom: 0; left: 0; width: min(290px, 86vw); background: #0f3123; color: #d9eadf; transform: translateX(-102%); transition: transform .35s var(--ease-out); overflow-y: auto; overflow-x: hidden; padding: .6rem .5rem 2rem; scrollbar-width: thin; }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-3); }
.sidebar-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 265; }
.sidebar-backdrop[hidden] { display: none; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: .2rem .4rem .6rem; color: #fff; }
.sidebar .btn-ghost { color: #fff; }
.nav-top, .nav-group ul, .nav-pinned { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-top a, .nav-group a, .nav-pinned a { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 36px; padding: .32rem 2rem .32rem .6rem; border-radius: var(--r-sm); color: #d9eadf; text-decoration: none; font-size: .88rem; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), transform var(--t) var(--ease-spring); }
@media (pointer: coarse) { .nav-top a, .nav-group a, .nav-pinned a { min-height: var(--tap); } }
.nav-top a:hover, .nav-group a:hover, .nav-pinned a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.sidebar a[aria-current="page"] { background: rgba(241,245,0,.1); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar a .icon { color: #8fc7a2; }
.sidebar a[aria-current="page"] .icon { color: var(--gold); }
.nav-pin { position: absolute; right: 2px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: #8fc7a2; border-radius: var(--r-sm); cursor: pointer; opacity: 0; transition: opacity var(--t-fast), transform var(--t) var(--ease-spring); }
.nav-item:hover .nav-pin, .nav-pin:focus-visible, .nav-pin[aria-pressed="true"] { opacity: 1; }
@media (pointer: coarse) { .nav-pin { opacity: .6; } }
.nav-pin[aria-pressed="true"] { color: var(--gold); }
.nav-pin:hover { transform: scale(1.15); }
.nav-pin .icon { width: 15px; height: 15px; }
.nav-pin[aria-pressed="true"] .icon { fill: var(--gold); }
.nav-group { margin-top: .5rem; }
.nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding: .25rem .6rem; border: 0; background: none; color: #8fb59c; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: var(--r-sm); }
.nav-group-toggle:hover { color: #fff; }
.nav-group-toggle .icon { transition: transform .3s var(--ease-spring); }
.nav-group-toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.nav-group ul[hidden] { display: none; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 999px; background: var(--gold); color: var(--brand-dark); font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.nav-pinned-wrap[hidden] { display: none; }
.nav-pinned-head { padding: .5rem .6rem .2rem; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rail-toggle { display: none; }
.a-main { padding: var(--gap) var(--gutter) 3rem; min-width: 0; }
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .admin-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar { position: sticky; top: 54px; height: calc(100vh - 54px); transform: none; width: auto; z-index: 1; box-shadow: none; }
  .sidebar-head { display: none; }
  .sidebar-backdrop { display: none !important; }
  .rail-toggle { display: inline-flex; }
  .a-main { padding: 1.1rem 1.6rem 3rem; }
  :root[data-sidebar="rail"] .admin-shell { grid-template-columns: var(--sidebar-rail) minmax(0, 1fr); }
  :root[data-sidebar="rail"] .sidebar { padding-inline: .4rem; }
  :root[data-sidebar="rail"] .nav-label, :root[data-sidebar="rail"] .nav-group-toggle, :root[data-sidebar="rail"] .nav-pin, :root[data-sidebar="rail"] .nav-count, :root[data-sidebar="rail"] .nav-pinned-head { display: none; }
  :root[data-sidebar="rail"] .sidebar a { justify-content: center; padding-inline: 0; }
  :root[data-sidebar="rail"] .nav-group ul[hidden] { display: block !important; }
  :root[data-sidebar="rail"] .nav-group { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid rgba(255,255,255,.08); }
}

/* 10. Public pages -------------------------------------------------------------- */
.p-header { color: #fff; position: sticky; top: 0; z-index: 200; }
.p-header-inner { display: flex; align-items: center; gap: .7rem; min-height: 60px; }
.p-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.p-nav .nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: .1rem; }
.p-nav .nav-links a { color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: var(--r-sm); min-height: 40px; display: inline-flex; align-items: center; font-weight: 500; font-size: .92rem; transition: background var(--t-fast); }
.p-nav .nav-links a:hover, .p-nav .nav-links a[aria-current="page"] { background: rgba(255,255,255,.12); }
@media (min-width: 900px) { .p-nav .nav-links { display: flex; } .p-menu-btn { display: none; } }
.p-mobile-nav { background: var(--brand-dark); padding: .4rem var(--gutter) 1rem; }
.p-mobile-nav[hidden] { display: none; }
.p-mobile-nav a { display: flex; min-height: var(--tap); align-items: center; color: #fff; text-decoration: none; padding: .2rem .5rem; border-radius: var(--r-sm); }
.p-mobile-nav a:hover { background: rgba(255,255,255,.1); }
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6.5vw, 3.6rem); max-width: 14ch; line-height: 1.02; }
.hero .lead { color: var(--brand-light); max-width: 50ch; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.hero .btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1.75rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r); overflow: hidden; max-width: 520px; }
.hero-facts div { background: rgba(10, 40, 27, .6); padding: .6rem .75rem; }
.hero-facts strong { display: block; font: 700 1.5rem/1 var(--font-head); color: #fff; }
.hero-facts span { font-size: .74rem; color: var(--brand-light); letter-spacing: .04em; }
.hero-card { justify-self: center; width: min(260px, 64vw); aspect-ratio: 1177 / 2000; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 70px -25px rgba(0,0,0,.65); animation: float 7s ease-in-out infinite; background: #eef2f3; transform: rotate(6deg); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; counter-reset: s; background: var(--rule); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.steps-list li { counter-increment: s; background: var(--surface); padding: 1.1rem 1.2rem; }
.steps-list li::before { content: counter(s, decimal-leading-zero); display: block; font: 700 2.2rem/1 var(--font-head); color: var(--gold-ink); margin-bottom: .45rem; }
.service-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); padding: 1.1rem; transition: background var(--t-fast); }
.service:hover { background: var(--surface-3); }
.service .stat-icon { transition: transform var(--t) var(--ease-spring); }
.service:hover .stat-icon { transform: rotate(-8deg) scale(1.08); }
.service h3 { margin-bottom: .2rem; }
.p-footer { margin-top: 3rem; padding: 2rem 0; color: var(--brand-light); }
.p-footer a { color: #fff; }
.p-footer h2 { color: #fff; font-size: 1.1rem; }
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: start center; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card > .card { animation: rise .5s var(--ease-out) both; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }
.verify { text-align: center; }
.verify .icon-xl { color: var(--success-ink); }
.verify.is-bad .icon-xl { color: var(--danger); }

/* 11. Utilities ------------------------------------------------------------------ */
.text-right { text-align: right; } .text-center { text-align: center; } .text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; } .nowrap { white-space: nowrap; } .break { overflow-wrap: anywhere; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: initial; } }
.hidden, [hidden] { display: none !important; }
.print-only { display: none; }
.qr-box { max-width: 220px; background: #fff; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); }
.code-list { columns: 2; list-style: none; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: 1.02rem; }
.code-list li { padding: .2rem 0; }
.diff { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 200px; overflow: auto; background: var(--surface-3); padding: .45rem; border-radius: var(--r-sm); }
.diff-before { border-left: 3px solid var(--danger); } .diff-after { border-left: 3px solid var(--success); }
.table th[scope="rowgroup"] { background: var(--surface-2); text-align: left; position: static; }
.card-link[aria-current="true"] { border-color: var(--brand-accent); box-shadow: inset 0 -3px 0 var(--gold-deep); }

/* Homepage digital ID card preview: deliberately marked as a non-printable sample. */
.digital-card-sample{position:relative;overflow:hidden;min-height:430px;padding:24px;background:linear-gradient(145deg,#123b2a,#1f6b3d);color:#fff;border:4px solid var(--gold);border-radius:18px;box-shadow:var(--shadow-3);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.digital-card-sample:after{content:"";position:absolute;inset:12px;border:1px solid rgba(241,245,0,.5);border-radius:12px;pointer-events:none}.sample-watermark{position:absolute;inset:0;display:grid;place-items:center;transform:rotate(-28deg);font-size:clamp(1.5rem,5vw,3rem);font-weight:700;letter-spacing:.12em;color:rgba(241,245,0,.27);z-index:1;white-space:nowrap}.sample-card-head,.sample-card-photo,.sample-card-name,.digital-card-sample>span,.sample-card-footer{position:relative;z-index:2}.sample-card-head{display:flex;align-items:center;gap:10px;letter-spacing:.08em}.sample-card-head img{width:48px;height:48px;background:#fff;border-radius:50%;padding:3px}.sample-card-photo{width:116px;height:132px;margin-top:12px;border:2px solid var(--gold);background:#edf7ef;color:#123b2a;display:grid;place-items:center;font-size:3rem}.sample-card-name{font-family:var(--font-head);font-size:1.6rem;letter-spacing:.08em}.sample-card-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.35);width:100%;padding-top:10px;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{background:#fff;border-radius:50%;padding:3px}
