/* ══════════════════════════════════════════════════════════════════════════
   vCardly design system
   Layout rule: header, every page section and footer share ONE .container,
   so left/right edges always align. Footer is in normal flow (never fixed).
   ══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-900: #00162e;
  --navy-800: #002244;
  --navy-700: #0b3560;
  --teal-600: #008585;
  --teal-500: #009f9f;
  --teal-400: #19b8b8;
  --ink: #0b2239;
  --ink-soft: #3d5166;
  --muted: #5b6b7b;
  --line: #dbe3ec;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --info-bg: #eff8ff;
  --warn: #b54708;
  --warn-bg: #fffaeb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, .06), 0 1px 3px rgba(11, 34, 57, .08);
  --shadow-md: 0 8px 24px rgba(11, 34, 57, .10);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;            /* sticky footer: main grows, footer sits at the bottom */
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(0, 159, 159, .25); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; transition: top .15s; }
.skip-link:focus { top: 0; color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 80px); }
.section--white { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--ink-soft); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-400); margin-bottom: .8rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon--up { transform: rotate(-90deg); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--teal-500); color: #fff; }
.btn--primary:hover { background: var(--teal-600); color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn--danger { background: #fff; color: var(--danger); border-color: #f4c7c3; }
.btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--surface-2); color: var(--navy-800); }
.btn--sm { min-height: 40px; padding: .45rem .95rem; font-size: .9rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.inline-form { display: inline; margin: 0; }

/* ══ HEADER ═══════════════════════════════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-800); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(0, 22, 46, .18); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { border-radius: 9px; display: block; }
.nav-panel { display: flex; align-items: center; flex: 1; gap: 1.5rem; min-width: 0; }
.primary-nav { display: flex; align-items: center; gap: .25rem; flex: 1; }          /* nav fills the middle … */
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: none; } /* … actions pin to the right edge */
.nav-link { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; white-space: nowrap; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-link.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-header .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; padding: .2rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.lang-switch .icon { margin-inline: .4rem .1rem; opacity: .8; }
.lang-current, .lang-link { padding: .25rem .6rem; border-radius: 999px; line-height: 1.3; }
.lang-current { background: #fff; color: var(--navy-800); }
.lang-link { color: rgba(255, 255, 255, .85); text-decoration: none; }
.lang-link:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.4rem;
    background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 24px rgba(0, 22, 46, .25);
  }
  .js .nav-panel { display: none; }
  .js .site-header.nav-open .nav-panel { display: flex; }
  .js .site-header.nav-open .nav-toggle-open { display: none; }
  .js .site-header.nav-open .nav-toggle-close { display: block; }
  .primary-nav { flex-direction: column; align-items: stretch; }
  .nav-link { padding: .8rem .9rem; font-size: 1rem; }
  .header-actions { margin-left: 0; flex-wrap: wrap; }
  .header-actions .btn { flex: 1 1 auto; }
  .no-js .nav-panel, html:not(.js) .nav-panel { position: static; }
}
@media (max-width: 960px) { html:not(.js) .header-inner { flex-wrap: wrap; } html:not(.js) .nav-toggle { display: none; } }

/* ══ FOOTER ═══════════════════════════════════════════════════════════════ */
.site-footer { flex-shrink: 0; margin-top: auto; background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; padding-block: 3.2rem 2.4rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 34ch; color: rgba(255, 255, 255, .65); font-size: .9rem; }
.footer-col h2 { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.footer-col a { display: block; color: rgba(255, 255, 255, .72); text-decoration: none; padding: .25rem 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.to-top { color: rgba(255, 255, 255, .8); text-decoration: none; white-space: nowrap; }
.to-top:hover { color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } .footer-bottom-inner { flex-direction: column; align-items: flex-start; } }

/* ══ HERO / MARKETING ═════════════════════════════════════════════════════ */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(25, 184, 184, .35), transparent 60%), linear-gradient(135deg, var(--navy-800) 0%, #013a5e 55%, var(--teal-600) 120%); color: #fff; padding-block: clamp(44px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 440px); filter: drop-shadow(0 24px 40px rgba(0, 10, 25, .45)); border-radius: 18px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: min(72%, 320px); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 1rem; border-radius: 50%; background: var(--teal-500); color: #fff; font-weight: 800; }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow-md); border-color: rgba(0, 159, 159, .5); transform: translateY(-2px); }
.feature .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(0, 159, 159, .12); color: var(--teal-600); margin-bottom: 1rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-split p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 760px) { .about-split { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--teal-600)); color: #fff; text-align: center; border-radius: 20px; padding: clamp(32px, 5vw, 56px) var(--gutter); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* ══ CONTENT PAGES (about, legal, faq …) ══════════════════════════════════ */
.page-head { background: linear-gradient(135deg, var(--navy-800), #013a5e); color: #fff; padding-block: clamp(32px, 5vw, 56px); }
.page-head h1 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
.page-head p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 62ch; }
.page-body { padding-block: clamp(28px, 5vw, 56px); }
.prose { max-width: 820px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose .meta { color: var(--muted); font-size: .9rem; }
.check-list { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 2rem; margin: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--teal-600); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: rgba(0, 159, 159, .5); }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ══ FORMS / CARDS ════════════════════════════════════════════════════════ */
.auth-wrap { display: grid; place-items: center; padding: clamp(28px, 6vw, 72px) var(--gutter); }
.card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); padding: clamp(22px, 4vw, 36px); }
.card--narrow { max-width: 460px; }
.card--medium { max-width: 560px; }
.card h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.card .sub { color: var(--ink-soft); margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .35rem; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.req { color: var(--danger); margin-left: .15rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: .65rem .85rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #c5d1de; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 140px; resize: vertical; }
.input::placeholder { color: #8a99a9; }
.input:hover { border-color: #9fb2c6; }
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0, 159, 159, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field-error { color: var(--danger); font-size: .85rem; min-height: 0; margin: 0; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--navy-800); background: var(--surface-2); }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal-500); flex: none; }
.form-foot { text-align: center; color: var(--ink-soft); font-size: .95rem; margin: 1.2rem 0 0; }
.form-foot a + a, .form-foot span + a { margin-left: .35rem; }
.form-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .95rem; margin-bottom: 1.1rem; }
.alert--error { background: var(--danger-bg); color: var(--danger); border-color: #f4c7c3; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: #abefc6; }
.alert--info { background: var(--info-bg); color: #175cd3; border-color: #b2ddff; }
.alert--warn { background: var(--warn-bg); color: var(--warn); border-color: #fedf89; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; }
.result-icon .icon { width: 32px; height: 32px; }
.result-icon--ok { background: var(--success-bg); color: var(--success); }
.result-icon--bad { background: var(--danger-bg); color: var(--danger); }
.center { text-align: center; }
.mt-1 { margin-top: .9rem; }
.mt-2 { margin-top: 1.6rem; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; max-width: 1000px; margin-inline: auto; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.info-card .icon { width: 42px; height: 42px; padding: 9px; border-radius: 11px; background: rgba(0, 159, 159, .12); color: var(--teal-600); }
.info-card h3 { margin: 0 0 .15rem; font-size: 1rem; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ══ QR STUDIO ════════════════════════════════════════════════════════════ */
.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.panel h2 .icon { color: var(--teal-600); }
.fieldset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fieldset-grid .span-2 { grid-column: 1 / -1; }
.color-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.color-input { display: flex; align-items: center; gap: .6rem; }
.color-input input[type="color"] { width: 46px; height: 46px; padding: 3px; border: 1.5px solid #c5d1de; border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.color-input output { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); text-transform: uppercase; }
/* Sticky only when the whole panel fits the viewport – otherwise its lower part (card preview) could never be reached. */
@media (min-width: 961px) and (min-height: 1180px) { .studio-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.field > .btn { justify-self: start; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fieldset-grid { grid-template-columns: 1fr; } }

.qr-stage { display: grid; place-items: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; overflow: hidden; }
.qr-stage canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; } /* integer module size = never blurry */
.qr-meta { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

.scan-status { display: grid; gap: .35rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.scan-status strong { display: flex; align-items: center; gap: .45rem; }
.scan-status ul { margin: 0; padding-left: 1.2rem; }
.scan-status[data-level="ok"] { background: var(--success-bg); border-color: #abefc6; color: var(--success); }
.scan-status[data-level="warn"] { background: var(--warn-bg); border-color: #fedf89; color: var(--warn); }
.scan-status[data-level="error"] { background: var(--danger-bg); border-color: #f4c7c3; color: var(--danger); }
.scan-status .muted { color: inherit; opacity: .85; }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.actions .btn--wide { grid-column: 1 / -1; }
.actions .btn { min-height: 46px; }
@media (max-width: 400px) { .actions { grid-template-columns: 1fr; } }

.vcard-preview { --card-brand: #002244; --card-name: #002244; position: relative; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); aspect-ratio: 91 / 61; display: grid; grid-template-rows: 9% 1fr 9%; }
.vcard-preview::before, .vcard-preview::after { content: ""; background: var(--card-brand); }
.vcard-body { display: grid; grid-template-columns: 34% 1fr; gap: 4%; align-items: center; padding: 3% 4%; min-height: 0; }
.vcard-qr { display: grid; place-items: center; gap: 2px; text-align: center; font-size: .56rem; color: var(--muted); min-width: 0; }
.vcard-qr canvas { width: 100%; height: auto; image-rendering: pixelated; }
.vcard-text { min-width: 0; font-size: clamp(.55rem, 1.6vw, .74rem); line-height: 1.35; overflow: hidden; }
.vcard-name { font-weight: 800; font-size: 1.35em; color: var(--card-name); overflow-wrap: anywhere; }
.vcard-sub { color: var(--ink-soft); margin-bottom: .35em; overflow-wrap: anywhere; }
.vcard-line { overflow-wrap: anywhere; color: var(--ink); }

/* ══ DASHBOARD ════════════════════════════════════════════════════════════ */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: .8rem 1rem; white-space: nowrap; }
.table td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafcfd; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; object-fit: contain; image-rendering: pixelated; }
.empty { text-align: center; padding: clamp(32px, 6vw, 64px) 1rem; }
.empty .icon { width: 56px; height: 56px; color: var(--teal-500); margin-bottom: .8rem; }
@media (max-width: 720px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-top: 1px solid var(--line); padding: .6rem 0; }
  .table td { border: 0; padding: .3rem 1rem; }
  .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

/* ══ TOASTS ═══════════════════════════════════════════════════════════════ */
.toast-region { position: fixed; z-index: 500; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: .5rem; max-width: min(92vw, 380px); pointer-events: none; }
.toast { pointer-events: auto; padding: .8rem 1rem; border-radius: 10px; background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); font-size: .93rem; animation: toast-in .2s ease-out; }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ══ MISC ═════════════════════════════════════════════════════════════════ */
.error-page { text-align: center; padding: clamp(48px, 10vw, 120px) var(--gutter); }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--navy-800), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .btn, .input { border: 2px solid ButtonText; } }
@media print {
  .site-header, .site-footer, .toast-region, .actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .panel, .card, .prose { box-shadow: none; border: 0; }
}
