/* eVeyra — state services portal. Brand blue of the eVeyra mark, navy of the state emblem, flat grey tiles. */
:root {
  --lapis: #195BEB; --lapis-700: #1449C2; --lapis-900: #112235; --lapis-50: #EDF3FE; --lapis-100: #D7E4FD;
  --mal: #0F7A5A; --mal-50: #E3F3EC; --gold: #D9A441; --gold-50: #FBF4E6; --gold-700: #8A5F22;
  --ink: #14273A; --muted: #5B6B7D; --line: #E3E8EF; --line-2: #EEF1F5; --bg: #F4F6F9; --paper: #fff; --tile: #F2F4F7; --tile-h: #E8EDF4;
  --err: #B3322B; --err-50: #FBEAE8; --warn: #9A5B00; --warn-50: #FFF1D9;
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --display: 'Wix Madefor Display', 'Wix Madefor Text', system-ui, sans-serif;
  --body: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.cab { background: var(--bg); }
a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--lapis-900); }
:focus-visible { outline: 3px solid #7CA5FF; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; }
.mono { font-family: var(--mono); font-size: .93em; letter-spacing: .01em; }
.up { text-transform: uppercase; }
.muted { color: var(--muted); }
.block { display: block; }
.center { text-align: center; }
.fh { color: var(--muted); font-size: 13.5px; }
.ic { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none; border: 0; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn .ic { width: 19px; height: 19px; }
.btn-primary { background: var(--lapis); color: #fff; }
.btn-primary:hover { background: var(--lapis-900); color: #fff; }
.btn-gold { background: var(--gold); color: var(--lapis-900); }
.btn-gold:hover { background: #F0B83A; color: var(--lapis-900); }
.btn-ghost { background: var(--tile); color: var(--ink); }
.btn-ghost:hover { background: var(--lapis-50); color: var(--lapis); }
.cab .btn-ghost, .panel .btn-ghost { background: var(--tile); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #8E241E; color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 54px; font-size: 16.5px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.btn-row form { margin: 0; }

/* Utility bar + header */
.util { background: var(--lapis-900); color: #C7D1EE; font-size: 13.5px; }
.util-in { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.util-flag { display: inline-flex; gap: 8px; align-items: center; }
.util-flag img { display: block; }
.util-links { display: flex; gap: 20px; align-items: center; }
.util-links a { color: #C7D1EE; text-decoration: none; font-weight: 600; }
.util-links a:hover { color: #fff; }
.lang-util { background: rgba(255,255,255,.1); padding: 3px 12px; border-radius: 999px; }
.hdr { background: #fff; box-shadow: 0 1px 0 rgba(17,34,53,.06), 0 6px 18px rgba(17,34,53,.04); position: sticky; top: 0; z-index: 20; }
.hdr-in { display: flex; align-items: center; height: 72px; gap: 36px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 46px; width: auto; margin: 0 -6px; }
.ftr .logo img { height: 50px; }
.mainnav { display: flex; gap: 6px; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 12px; border-radius: 8px; position: relative; }
.mainnav a:hover { background: var(--lapis-50); color: var(--lapis); }
.mainnav a.on { color: var(--lapis); }
.mainnav a.on { background: var(--lapis-50); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-signin { height: 42px; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.bell:hover { background: var(--lapis-50); }
.bell .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.me-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--tile); }
.me-btn:hover { background: var(--lapis-50); color: var(--lapis); }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--lapis); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; overflow: hidden; flex: none; font-family: var(--display); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava-lg { width: 48px; height: 48px; font-size: 16px; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; color: var(--ink); cursor: pointer; border-radius: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 10%, #2D6CF5 0%, #195BEB 45%, #1247C4 100%); color: #fff; }
.hero-rosette { position: absolute; width: 760px; right: -150px; top: 50%; transform: translateY(-50%); color: #fff; opacity: .16; pointer-events: none; }
.hero-cards { position: absolute; right: max(24px, calc(50% - 610px)); top: 50%; width: 400px; height: 330px; transform: translateY(-50%); pointer-events: none; }
.hc { position: absolute; width: 360px; height: auto; border-radius: 13px; box-shadow: 0 2px 4px rgba(6,24,80,.2), 0 30px 60px rgba(6,24,80,.35); }
.hc-1 { left: 0; top: 0; transform: rotate(-6deg); z-index: 1; }
.hc-2 { right: -10px; bottom: 0; transform: rotate(5deg); opacity: .96; }
@media (max-width: 1180px) { .hero-cards { display: none; } }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; color: #fff; opacity: .1; pointer-events: none; }
.hero-waves svg { width: 100%; height: 100%; }
.hero-in { position: relative; padding: 72px 24px 64px; }
.hero-kicker { margin: 0 0 12px; color: #D9E5FF; font-weight: 600; font-size: 16px; }
.hero-h { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; font-weight: 800; margin: 0 0 30px; max-width: 13ch; letter-spacing: -.03em; }
.hero-search { position: relative; display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 8px 8px 8px 20px; max-width: 760px; box-shadow: 0 18px 50px rgba(9,18,52,.35); color: var(--ink); }
.hero-search > .ic { color: var(--muted); }
.hero-search input { flex: 1; border: 0; font: inherit; font-size: 18px; padding: 14px 12px; outline: none; min-width: 0; background: transparent; color: var(--ink); }
.hero-search .btn { height: 52px; padding: 0 28px; font-size: 16px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; list-style: none; margin: 0; padding: 6px; box-shadow: 0 18px 50px rgba(9,18,52,.25); z-index: 5; }
.suggest a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.suggest li.act a, .suggest a:hover { background: var(--lapis-50); color: var(--lapis); }
.hero-pop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; max-width: 760px; }
.hero-pop span { color: #D9E5FF; font-size: 14px; margin-right: 4px; }
.hero-pop a { color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); }
.hero-pop a:hover { background: rgba(255,255,255,.24); color: #fff; }
.attention { display: flex; align-items: center; gap: 12px; margin-top: -26px; position: relative; z-index: 2; background: #fff; box-shadow: 0 12px 30px rgba(17,34,53,.12); border-radius: var(--r); padding: 16px 20px; color: var(--ink); text-decoration: none; font-weight: 700; }
.attention span { flex: 1; }
.attention .ic { color: var(--gold-700); }

/* Sections */
.sec { padding: 56px 0; }
.wrap.sec { padding: 56px 24px; }
.sec-tint { background: var(--bg); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.sec-h h2 { font-size: 30px; margin: 0; font-weight: 700; }
.sec-h a { font-weight: 700; text-decoration: none; }
.sec-p { margin: -12px 0 24px; color: var(--muted); max-width: 64ch; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.topics li { }
.topics a { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; text-decoration: none; color: var(--ink); }
.topics a:hover .topic-tx b { color: var(--lapis); }
.topic-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--lapis-50); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.topic-ic .ic { width: 26px; height: 26px; }
.topic-tx b { display: block; font-size: 17px; font-family: var(--display); font-weight: 700; }
.topic-tx span { color: var(--muted); font-size: 14.5px; }
.topic-n { font-weight: 700; color: var(--muted); font-size: 14px; min-width: 32px; height: 32px; border-radius: 50%; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.sit-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sit { background: #fff; border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(17,34,53,.04); transition: box-shadow .2s, transform .2s; }
.sit:hover { color: var(--ink); box-shadow: 0 14px 30px rgba(17,34,53,.1); transform: translateY(-2px); }
.sit:hover b { color: var(--lapis); }
.sit-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--lapis); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.sit-ic .ic { width: 26px; height: 26px; }
.sit b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.sit-p { color: var(--muted); font-size: 14.5px; }
.sit ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; font-size: 14.5px; }
.sit ol li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
.sit ol li::before { content: counter(s); font-weight: 800; color: var(--lapis); font-size: 12.5px; min-width: 20px; height: 20px; border-radius: 50%; background: var(--lapis-50); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.verify-box { background: var(--lapis-50); border-radius: var(--r-lg); padding: 32px; }
.verify-box h2, .live h2 { margin: 0 0 8px; font-size: 24px; }
.verify-box p { color: var(--muted); margin: 0 0 20px; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 0; background: #fff; padding: 0 14px; font: inherit; font-size: 17px; letter-spacing: .08em; color: var(--ink); }
.inline input:focus { outline: 2px solid var(--lapis); }
.live { padding: 32px; border-radius: var(--r-lg); background: var(--tile); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 18px 0 12px; }
.live-grid dt { color: var(--muted); font-size: 14px; }
.live-grid dd { margin: 0; font-family: var(--display); font-size: 36px; font-weight: 800; color: var(--lapis); letter-spacing: -.02em; }
.sec-bottom { padding-bottom: 56px; }
.app-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: radial-gradient(120% 120% at 100% 0%, #1E3A5C 0%, #112235 60%); color: #fff; border-radius: 28px; padding: 48px 64px 48px 56px; overflow: hidden; }
.app-logo { display: block; height: 60px; width: auto; margin: 0 0 18px -8px; }
.app-band h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.02em; }
.app-band p { color: #C3CEDC; margin: 0 0 20px; max-width: 52ch; }
.app-feats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.app-feats li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.app-feats .ic { width: 22px; height: 22px; color: #FF9A83; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #FBE9E5; color: #B3402E; }
.app-phone { display: flex; justify-content: center; padding: 4px 0; }

/* Page heads, lists */
.pagehead { background: var(--lapis-50); padding: 30px 0 34px; }
.pagehead.slim { padding: 22px 0 24px; }
.pagehead h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 8px; font-weight: 800; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 70ch; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.search-inline { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; margin-top: 20px; max-width: 680px; box-shadow: 0 1px 2px rgba(17,34,53,.05); }
.search-inline > .ic { color: var(--muted); }
.search-inline input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16.5px; min-width: 0; padding: 8px 4px; }
.search-inline:focus-within { box-shadow: 0 0 0 3px rgba(25,91,235,.25); }
.cat-block { margin-bottom: 40px; }
.cat-block h2 { font-size: 22px; margin: 0 0 14px; }
.cat-block h2 a { color: var(--ink); text-decoration: none; }
.cat-block h2 a:hover { color: var(--lapis); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-list li { }
.svc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--tile); border-radius: 14px; }
.svc-row:hover { background: var(--tile-h); }
.svc-row:hover b { color: var(--lapis); }
.svc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.svc-tx b { display: block; font-size: 16.5px; }
.svc-tx span { color: var(--muted); font-size: 14.5px; }
.svc-meta { display: flex; gap: 6px; }
.tag { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag-fast { background: var(--mal-50); color: var(--mal); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty-s { color: var(--muted); margin: 0; }
.steps-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.steps-path li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; padding-bottom: 18px; }
.steps-path li::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--lapis-100); }
.steps-path li:last-child::before { display: none; }
.sp-n { width: 44px; height: 44px; border-radius: 50%; background: var(--lapis); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); font-size: 18px; }
.sp-card { display: grid; gap: 4px; padding: 16px 20px; background: var(--tile); border-radius: 16px; text-decoration: none; color: var(--ink); }
.sp-card:hover { background: var(--tile-h); }
.sp-card:hover b { color: var(--lapis); }
.sp-card b { font-size: 17px; }
.sp-card span { color: var(--muted); font-size: 14.5px; }
.sp-card em { font-style: normal; font-size: 13.5px; color: var(--lapis); font-weight: 600; }

/* Service page */
.svc-page { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.facts-list { margin: 0; display: grid; gap: 6px; }
.facts-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; background: var(--tile); border-radius: 14px; }
.facts-list dt { color: var(--muted); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.facts-list dt .ic { color: var(--lapis); width: 20px; height: 20px; }
.facts-list dd { margin: 0; font-weight: 600; }
.facts-list.compact { gap: 4px; }
.facts-list.compact > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; background: #fff; }
.facts-list.compact dd { font-weight: 600; font-size: 14.5px; }
.h3 { font-size: 21px; margin: 32px 0 12px; }
.h4 { font-size: 16px; margin: 22px 0 10px; font-family: var(--body); font-weight: 700; }
.how { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.svc-act { position: sticky; top: 96px; background: #fff; border-radius: 22px; padding: 24px; display: grid; gap: 14px; box-shadow: 0 1px 2px rgba(17,34,53,.05), 0 16px 40px rgba(17,34,53,.08); }
.elig { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; }
.elig.ok { background: var(--mal-50); color: #0B5A42; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.elig.ok .ic { width: 20px; height: 20px; }
.elig.bad { background: var(--warn-50); color: #6B4000; }
.elig.bad ul { margin: 6px 0 0; padding-left: 18px; }
.biz-pick b { display: block; margin-bottom: 8px; }
.biz-pick ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.biz-pick a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--tile); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.biz-pick a:hover { background: var(--lapis-50); color: var(--lapis); }
.biz-pick small { display: block; color: var(--muted); font-weight: 500; }

/* Forms */
.form-page { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.svc-form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 1px 2px rgba(17,34,53,.05), 0 12px 32px rgba(17,34,53,.06); }
.svc-form.plain { border: 0; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field, fieldset.field { grid-column: 1 / -1; display: grid; gap: 7px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.half { grid-column: span 1; }
.field > label, fieldset.field > legend { font-weight: 700; font-size: 15px; padding: 0; }
.opt { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  font: inherit; color: var(--ink); min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid transparent; background: var(--tile); width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis); background: #fff; box-shadow: 0 0 0 4px rgba(25,91,235,.12); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--err); }
.fe { color: var(--err); font-size: 13.5px; font-weight: 700; }
.fh { color: var(--muted); font-size: 13.5px; }
.rc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rc-i, .ck-i, .ck-one { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: var(--tile); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.rc-i:hover, .ck-i:hover { background: var(--tile-h); }
.rc-i input, .ck-i input, .ck-one input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--lapis); flex: none; }
.rc-i:has(input:checked), .ck-i:has(input:checked) { background: var(--lapis-50); color: var(--lapis-700); }
.ck { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ck-i[hidden] { display: none; }
.ck-i:has(input:disabled) { opacity: .5; cursor: default; }
.group-filter { max-width: 340px; margin-bottom: 4px; }
.ck-one { background: none; padding: 0; font-weight: 600; }
.pn-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pn-wrap input { max-width: 240px; letter-spacing: .08em; }
.pn-who { font-size: 14px; font-weight: 700; }
.pn-who.ok { color: var(--mal); }
.pn-who.bad { color: var(--err); }
.fr-rows { display: grid; gap: 8px; }
.fr-row { display: grid; grid-template-columns: 220px 90px 40px 1fr; gap: 8px; align-items: center; }
.fr-row input { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid transparent; background: var(--tile); font: inherit; width: 100%; }
.fr-row input:focus { outline: none; border-color: var(--lapis); background: #fff; }
.fr-del { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--tile); font-size: 20px; cursor: pointer; color: var(--muted); }
.founders .btn { justify-self: start; }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.plate-opt { position: relative; display: grid; gap: 6px; justify-items: start; padding: 12px; background: var(--tile); border-radius: 12px; cursor: pointer; }
.plate-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plate-opt:has(input:checked) { background: var(--lapis-50); box-shadow: inset 0 0 0 2px var(--lapis); }
.plate-opt:has(input:focus-visible) { outline: 3px solid var(--gold); }
.plate-fee { font-size: 13px; color: var(--muted); font-weight: 600; }
.slot-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.slot-d, .slot-t { flex: none; height: 42px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--tile); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); }
.slot-d:hover, .slot-t:hover { background: var(--tile-h); }
.slot-d.on, .slot-t.on { background: var(--lapis); color: #fff; }
.slot-times { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; align-items: center; }
.sign { grid-column: 1 / -1; margin-top: 26px; padding: 22px; border-radius: 18px; background: var(--lapis-50); display: grid; gap: 16px; }
.sign .field input { background: #fff; }
.sign-h { display: flex; gap: 14px; align-items: flex-start; }
.sign-h .ic { color: var(--lapis); width: 28px; height: 28px; }
.sign-h b { display: block; font-size: 16.5px; }
.sign-h span { color: var(--muted); font-size: 14.5px; }
.sign .field input { max-width: 360px; }
.sign .btn { justify-self: start; }
.form-side { position: sticky; top: 96px; }
.alert { background: var(--err-50); color: #7E1F19; border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; margin-bottom: 18px; }

/* Number plate */
.plate { display: inline-flex; align-items: stretch; height: 40px; border: 2px solid #14273A; border-radius: 6px; background: #fff; overflow: hidden; font-family: var(--mono); font-weight: 700; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.plate-c { background: var(--lapis); color: #fff; width: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9px; }
.plate-c img { border-radius: 1px; }
.plate-n { padding: 0 10px; display: flex; align-items: center; font-size: 22px; letter-spacing: .04em; white-space: nowrap; }
.plate-r { border-left: 2px solid #111; padding: 0 8px; display: flex; align-items: center; font-size: 17px; }
.plate-sm { height: 30px; } .plate-sm .plate-n { font-size: 16px; padding: 0 7px; } .plate-sm .plate-r { font-size: 13px; padding: 0 6px; } .plate-sm .plate-c { width: 20px; font-size: 7px; }
.plate-lg { height: 52px; } .plate-lg .plate-n { font-size: 30px; } .plate-lg .plate-r { font-size: 22px; } .plate-lg .plate-c { width: 32px; font-size: 11px; }

/* Verification */
.narrow { max-width: 860px; }
.vres { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-lg); margin-bottom: 20px; }
.vres-ok { background: var(--mal-50); color: #0B4C38; }
.vres-bad { background: var(--err-50); color: #7E1F19; }
.vres b { font-size: 19px; font-family: var(--display); }
.vres p { margin: 4px 0 0; }
.vres-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
.vres-ok .vres-ic { color: var(--mal); } .vres-bad .vres-ic { color: var(--err); }
.vres-ic .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.vdoc { display: grid; gap: 18px; }
.vdoc-card { max-width: 440px; }
.kv { margin: 0; display: grid; grid-template-columns: 1fr; }
.kv > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 14px; padding: 11px 0; }
.kv > div + div { box-shadow: inset 0 1px 0 var(--line-2); }
.kv dt { color: var(--muted); font-size: 14.5px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.kv.big dd { font-size: 17px; }
.kv.cols3 { grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.kv.cols3 > div { grid-template-columns: 1fr; gap: 2px; }
.rules { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 24px; }

/* Exam */
.exam { display: grid; gap: 18px; }
.q { border: 0; background: var(--tile); border-radius: 18px; padding: 18px 20px; margin: 0; display: grid; gap: 8px; }
.q legend { font-weight: 700; font-size: 17px; display: flex; gap: 12px; padding: 0 6px; margin-left: -6px; }
.qn { min-width: 28px; height: 28px; border-radius: 50%; background: var(--lapis); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.qa { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.qa:hover { background: #fff; }
.qa input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--lapis); }
.qa:has(input:checked) { background: #fff; color: var(--lapis-700); font-weight: 600; }
.review { padding-left: 22px; display: grid; gap: 12px; margin-top: 24px; }
.review li { display: grid; gap: 2px; padding-left: 6px; }
.review li.ok::marker { color: var(--mal); } .review li.bad::marker { color: var(--err); }
.review span { color: var(--muted); font-size: 14.5px; }
.next-steps { display: flex; gap: 10px; flex-wrap: wrap; }
.err-page { text-align: center; padding: 90px 24px !important; }
.err-code { font-family: var(--display); font-size: 96px; font-weight: 800; color: var(--lapis-100); line-height: 1; }
.err-page .lead { margin: 0 auto 24px; }

/* Tables, pills */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 11px 14px; background: var(--bg); white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; } .tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--lapis); }
.tbl-foot { display: flex; justify-content: flex-end; padding: 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--mal-50); color: #0B5A42; }
.pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-info { background: var(--lapis-50); color: var(--lapis); }
.pill-err { background: var(--err-50); color: #8E241E; }
.pill-off { background: var(--bg); color: var(--muted); }

/* Footer */
.ftr { background: var(--lapis-900); color: #B4C0CF; padding: 52px 0 24px; font-size: 14.5px; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
.ftr-brand p { max-width: 36ch; }
.ftr-call b { color: #fff; font-family: var(--display); font-size: 26px; margin-right: 6px; }
.ftr h2 { font-family: var(--body); font-size: 14px; color: #fff; margin: 6px 0 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #B4C0CF; text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 0; font-size: 13px; color: #8494A8; flex-wrap: wrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.ftr-emblem { display: flex; gap: 12px; align-items: center; margin-top: 18px; color: #DCE3EC; font-size: 13px; line-height: 1.35; }
.ftr-emblem img { width: 44px; height: 44px; }

/* ---------- Cabinet ---------- */
.cab-shell { display: grid; grid-template-columns: 272px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 64px; }
.cab-side { position: sticky; top: 96px; align-self: start; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 1px 2px rgba(17,34,53,.04); }
.cab-me { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; margin-bottom: 6px; border-radius: 16px; background: var(--bg); }
.cab-me b { display: block; font-size: 15px; line-height: 1.3; }
.cab-me .pn { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.cab-nav { display: grid; gap: 2px; }
.cab-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.cab-nav a .ic { width: 20px; height: 20px; color: #8090A3; }
.cab-nav a:hover { background: var(--bg); }
.cab-nav a.on { background: var(--lapis-50); color: var(--lapis); }
.cab-nav a.on .ic { color: var(--lapis); }
.cab-nav em { margin-left: auto; font-style: normal; background: var(--err); color: #fff; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 9px; }
.cab-side-foot { margin-top: 10px; padding-top: 10px; display: grid; gap: 2px; box-shadow: inset 0 1px 0 var(--line-2); }
.cab-side-foot a, .cab-side-foot button { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--muted); text-decoration: none; font: inherit; font-size: 14.5px; font-weight: 600; background: none; border: 0; cursor: pointer; border-radius: 12px; width: 100%; }
.cab-side-foot a:hover, .cab-side-foot button:hover { color: var(--ink); background: var(--bg); }
.cab-side-foot .ic { width: 18px; height: 18px; }
.cab-side-foot form { margin: 0; }
.cab-main { min-width: 0; }
.cab-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cab-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cab-head > :not(h1) { display: flex; gap: 8px; }
.cab-head form { margin: 0; }
.panel { background: #fff; border-radius: 22px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(17,34,53,.04); }
.panel.flush { padding: 0; overflow: hidden; }
.panel.calm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 24px; color: var(--muted); }
.panel.calm > .ic { width: 40px; height: 40px; color: var(--lapis); }
.pad { padding: 20px 24px 0; }
.ph2 { font-size: 18px; margin: 0 0 14px; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.ph-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ph-row .ph2 { margin: 0; }
.ph-row a { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > .panel { margin-bottom: 20px; }
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { border-radius: var(--r-sm); padding: 13px 16px; font-weight: 700; }
.flash-ok { background: var(--mal-50); color: #0B5A42; }
.flash-err { background: var(--err-50); color: #7E1F19; }
.ov-id { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; background: linear-gradient(120deg, #195BEB, #1247C4); color: #fff; border-radius: 22px; padding: 20px 24px; margin-bottom: 20px; }
.ov-id .fh { color: #D9E5FF; display: block; }
.ov-id b { font-size: 16.5px; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--gold-50); color: var(--ink); text-decoration: none; }
.todo a:hover { background: #F7EBD3; }
.todo .ic { color: var(--gold-700); }
.todo b { display: block; } .todo span span { color: var(--muted); font-size: 14px; }
.app-list { list-style: none; margin: 0; padding: 0; }
.app-list { display: grid; gap: 2px; }
.app-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; margin: 0 -14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.app-list a:hover { background: var(--bg); }
.app-list a:hover b { color: var(--lapis); }
.al-main { display: grid; min-width: 0; }
.al-main span { color: var(--muted); font-size: 13.5px; }
.al-date { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes { display: grid; gap: 2px; }
.notes a { display: grid; gap: 2px; padding: 12px 14px 12px 28px; margin: 0 -14px; border-radius: 14px; text-decoration: none; color: var(--ink); position: relative; }
.notes a:hover { background: var(--bg); }
.notes li.unread a { background: var(--lapis-50); }
.notes li.unread a::before { content: ''; position: absolute; left: 12px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--lapis); }
.notes span { color: var(--muted); font-size: 14.5px; }
.notes time { color: var(--muted); font-size: 12.5px; }

/* Document cards — official templates rendered as SVG */
.wallet { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.papers.small { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 14px; }
.pp-cover img { display: block; width: 100%; height: auto; border-radius: 6px 14px 14px 6px; box-shadow: 0 1px 2px rgba(17,34,53,.2), 0 12px 28px rgba(17,34,53,.22); }
.dc { position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden; border-radius: 18px; text-decoration: none; color: var(--ink); background: #fff; padding: 16px 18px 18px; min-height: 168px; box-shadow: 0 1px 2px rgba(17,34,53,.05), 0 8px 22px rgba(17,34,53,.06); transition: transform .2s, box-shadow .2s; }
a.dc:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(17,34,53,.06), 0 14px 30px rgba(17,34,53,.1); color: var(--ink); }
.dc .dc-head { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: #8A5F22; margin-bottom: 4px; }
.dc .dc-head img { width: 34px; height: 34px; margin: -4px -2px; }
.dc-paper-t { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.dc-paper-s { color: var(--muted); font-size: 13px; }
.dc-paper-f { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); padding-top: 10px; box-shadow: inset 0 1px 0 var(--line-2); }
.dc-paper-f .mono { color: var(--lapis); font-weight: 600; }
.dc-inval { opacity: .75; }
.dc-stamp { position: absolute; right: 12px; top: 38%; transform: rotate(-12deg); color: #C7362D; background: rgba(255,255,255,.9); box-shadow: 0 0 0 2px #C7362D; font-weight: 900; font-size: 12.5px; padding: 3px 10px; border-radius: 6px; letter-spacing: .06em; }

.doc-view { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'stage side' 'data side'; gap: 20px 24px; align-items: start; }
.qr-panel { padding: 22px; margin: 0; }
.qr { width: 180px; margin: 0 auto 10px; }
.qr svg { width: 100%; height: auto; display: block; }
.code { font-size: 18px; letter-spacing: .14em; font-weight: 700; background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.small-link { display: block; text-align: center; font-size: 14px; font-weight: 700; margin-top: 8px; }
.mrz { background: var(--bg); border-radius: var(--r-sm); padding: 12px 14px; display: grid; font-size: 13px; letter-spacing: .12em; margin-top: 14px; overflow-x: auto; }
.mrz span { white-space: nowrap; }
.statement { font-size: 16px; margin: 16px 0 0; padding: 14px 16px; background: var(--bg); border-radius: var(--r-sm); }

/* Application */
.ah-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ah-top .mono { font-size: 15px; font-weight: 700; color: var(--muted); }
.progress { margin: 14px 0 4px; display: grid; gap: 8px; }
.bar { height: 8px; background: var(--lapis-50); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lapis), #4C73D6); border-radius: 4px; animation: fill var(--eta, 30s) linear forwards; }
@keyframes fill { to { width: 96%; } }
.result { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); margin-top: 12px; }
.result p { margin: 0; font-weight: 600; }
.result.ok { background: var(--mal-50); color: #0B4C38; }
.result.bad { background: var(--err-50); color: #7E1F19; }
.result .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.cp-form { display: grid; gap: 12px; width: 100%; }
.cp-form .field input { max-width: 320px; }
.cp-form .btn-row { margin-top: 0; }
.sigbox { display: flex; gap: 12px; margin-top: 16px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-sm); font-size: 13.5px; }
.sigbox .ic { color: var(--mal); }
.sigbox b { display: block; }
.sigbox span { color: var(--muted); display: block; }
.sigbox code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 3px #fff; }
.tl-ok { background: var(--mal); } .tl-info { background: var(--lapis); } .tl-warn { background: var(--gold); } .tl-err { background: var(--err); } .tl-off { background: #A9B1C4; }
.timeline b { display: block; font-size: 15px; }
.timeline span { display: block; color: var(--ink); font-size: 14px; }
.timeline time { color: var(--muted); font-size: 12.5px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.bill-lines { list-style: none; margin: 0; padding: 0; }
.bill-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; box-shadow: inset 0 -1px 0 var(--line-2); font-size: 15px; }
.bill-lines b { white-space: nowrap; }
.bill-total { display: flex; justify-content: space-between; padding: 16px 0 10px; font-size: 18px; font-weight: 800; }
.bill-total b { font-family: var(--display); font-size: 26px; color: var(--lapis); }
.vpay-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.vpay-logo { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--lapis); }
.vpay-logo b { color: var(--gold-700); }
.card-form { display: grid; gap: 14px; }
.card-form .field input { letter-spacing: .04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { grid-column: auto; }
.card-preview { position: relative; height: 190px; border-radius: 16px; padding: 20px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(224,165,38,.55), transparent 45%), linear-gradient(135deg, #0F1F52, #24479F); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.cp-chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #F2D27E, #C9962C); }
.cp-num { align-self: center; font-size: 20px; letter-spacing: .12em; }
.cp-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cp-exp { position: absolute; right: 20px; bottom: 20px; font-size: 14px; }

.tax-sum { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--mal-50); margin-bottom: 20px; flex-wrap: wrap; }
.tax-sum span:first-child { font-weight: 700; }
.tax-sum b { font-family: var(--display); font-size: 30px; }
.tax-sum.has-debt { background: var(--gold-50); }
.fine-list { list-style: none; margin: 0; padding: 0; }
.fine-list li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.fine-list label, .fine-list.done li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; cursor: pointer; }
.fine-list.done li { grid-template-columns: 1fr auto; cursor: default; padding: 12px 0; }
.fine-list input { width: 18px; height: 18px; accent-color: var(--lapis); }
.fine-main { display: grid; gap: 2px; }
.fine-main span { color: var(--muted); font-size: 13.5px; }
.fine-sum { text-align: right; display: grid; }
.fine-sum s { color: var(--muted); font-size: 13px; }
.fine-sum b { font-size: 17px; }
.fine-sum em { font-style: normal; color: var(--mal); font-size: 12px; font-weight: 700; }
.veh-list { display: grid; gap: 16px; }
.veh-top { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.veh-n { display: block; font-family: var(--display); font-size: 21px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.people li { display: flex; gap: 12px; align-items: flex-start; }
.people b { display: block; }
.people span { display: block; font-size: 14px; }
.kq { display: inline-flex !important; gap: 6px; align-items: center; color: var(--lapis); font-weight: 700; margin-top: 4px; }
.kq .ic { width: 18px; height: 18px; }
.biz-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.biz-n { margin: 2px 0 0; font-size: 24px; }
.biz-bin { text-align: right; } .biz-bin b { display: block; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a, .chips > span { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--tile); text-decoration: none; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.chips a:hover { background: var(--lapis-50); color: var(--lapis); }
.big-p { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.appts { list-style: none; margin: 0; padding: 0; }
.appts li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; }
.appts li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.appts li.past { opacity: .6; }
.appts form { margin: 0; }
.appt-time b { display: block; font-family: var(--display); font-size: 22px; color: var(--lapis); }
.appt-time span { color: var(--muted); font-size: 13px; }
.appt-main { display: grid; }
.appt-main span { color: var(--muted); font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-row > div { background: #fff; border-radius: 18px; padding: 16px 18px; display: grid; box-shadow: 0 1px 2px rgba(17,34,53,.04); }
.stat-row b { font-family: var(--display); font-size: 28px; color: var(--lapis); }
.stat-row span { color: var(--muted); font-size: 13.5px; }
.review-form { display: grid; gap: 14px; }

@media (max-width: 1080px) {
  .sit-rail { grid-template-columns: repeat(2, 1fr); }
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-page, .form-page, .doc-view, .checkout { grid-template-columns: 1fr; }
  .svc-act, .form-side { position: static; }
  .app-band { grid-template-columns: 1fr; padding: 40px 36px; }

}
@media (max-width: 960px) {
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column; padding: 10px 16px 18px; box-shadow: 0 20px 30px rgba(10,20,50,.1); }
  .mainnav.open { display: flex; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .hdr-in { gap: 12px; }
  .me-n, .btn-signin span { display: none; }
  .btn-signin { width: 42px; padding: 0; }
  .topics { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .cab-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; }
  .cab-side { position: static; min-width: 0; }
  .cab-me { display: none; }
  .cab-nav { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; gap: 4px; padding-bottom: 4px; }
  .cab-side { background: none; padding: 0; box-shadow: none; }
  .cab-nav a { white-space: nowrap; background: #fff; }
  .cab-nav a.on { background: var(--lapis); color: #fff; }
  .cab-nav a.on .ic { color: #fff; }
  .cab-side-foot { display: none; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .kv.cols3 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .ov-id { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .wrap.sec { padding: 36px 16px; }
  .sec { padding: 36px 0; }
  .util-flag span, .util-flag { font-size: 12px; }
  .util-links a:not(.lang-util) { display: none; }
  .hero-in { padding: 40px 16px 40px; }
  .hero-rosette { width: 460px; right: -220px; top: 30%; }
  .hero-search { padding: 6px 6px 6px 14px; }
  .hero-search input { font-size: 16px; padding: 12px 8px; }
  .hero-search .btn { padding: 0 16px; height: 46px; }
  .sit-rail, .sit-grid { grid-template-columns: 1fr; }
  .sec-h h2 { font-size: 24px; }
  .fields { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .svc-form { padding: 20px 16px; }
  .facts-list > div { grid-template-columns: 1fr; gap: 4px; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .kv.cols3 { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr; }
  .app-band { padding: 28px 20px 32px; border-radius: 22px; }
  .app-band h2 { font-size: 26px; }
  .live-grid dd { font-size: 28px; }
  .verify-box, .live { padding: 22px; }
  .inline { flex-direction: column; }
  .inline input { flex: none; height: 48px; }
  .wrap.sec-bottom { padding-bottom: 40px; }
  .hero-pop a:nth-of-type(n+4) { display: none; }
  .al-date { display: none; }
  .fr-row { grid-template-columns: 1fr 70px 40px; }
  .fr-row .pn-who { grid-column: 1 / -1; }
  .panel { padding: 18px 16px; }
  .cab-head h1 { font-size: 24px; }
  .appts li { grid-template-columns: 80px 1fr; }
  .appts li form, .appts li > .pill { grid-column: 2; justify-self: start; }
  .wallet { grid-template-columns: 1fr; }
}

/* ---------- eGov-style service tiles ---------- */
.sec-top0 { padding-top: 8px; }
.sec-more { margin: 22px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 148px; padding: 20px; border-radius: 20px; background: var(--tile); color: var(--ink); text-decoration: none; transition: background .15s, transform .15s; }
.tile:hover { background: var(--tile-h); color: var(--ink); }
.tile:hover b { color: var(--lapis); }
.tile b { font-size: 16px; line-height: 1.3; font-weight: 700; }
.tile-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--lapis); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.tile-ic .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.tile-tag { position: absolute; top: 20px; right: 18px; font-style: normal; font-size: 12px; font-weight: 700; color: #0B6A4C; background: #DCF1E7; padding: 3px 9px; border-radius: 999px; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--tile); text-decoration: none; color: var(--ink); min-height: 150px; }
.cat .tile-ic { margin-bottom: 8px; }
.cat b { font-size: 16px; line-height: 1.3; }
.cat > span:last-child { color: var(--muted); font-size: 13.5px; }
.cat:hover { background: var(--tile-h); color: var(--ink); }
.cat:hover b { color: var(--lapis); }
.aud { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--tile); }
.aud a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; color: var(--muted); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.aud a .ic { width: 18px; height: 18px; }
.aud a:hover { color: var(--ink); }
.aud a.on { background: #fff; color: var(--lapis); box-shadow: 0 1px 2px rgba(17,34,53,.08), 0 2px 8px rgba(17,34,53,.06); }
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.cat-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.cat-side .aud { display: flex; }
.cat-side .aud a { flex: 1; justify-content: center; padding: 0 10px; }
.cat-nav { display: grid; gap: 2px; }
.cat-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.cat-nav a:hover { background: var(--tile); }
.cat-nav a.on { background: var(--lapis-50); color: var(--lapis); }
.cat-nav em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.cn-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--tile); color: var(--lapis); display: flex; align-items: center; justify-content: center; flex: none; }
.cn-ic .ic { width: 18px; height: 18px; }
.cat-nav a.on .cn-ic { background: var(--lapis); color: #fff; }
.cat-main .tiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 1080px) {
  .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .catalog { grid-template-columns: 1fr; gap: 18px; }
  .cat-side { position: static; }
  .cat-nav { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cat-nav a { white-space: nowrap; background: var(--tile); }
  .cat-nav em { margin-left: 4px; }
}
@media (max-width: 640px) {
  .tiles-4, .tiles, .cat-main .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 132px; padding: 16px; border-radius: 18px; gap: 10px; }
  .tile b { font-size: 14.5px; }
  .tile-ic { width: 42px; height: 42px; }
  .tile-tag { position: static; align-self: flex-start; margin-top: auto; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { min-height: 128px; padding: 16px; }
  .sec-h { flex-wrap: wrap; }
  .aud { width: 100%; } .aud a { flex: 1; justify-content: center; padding: 0 8px; }
  .hero-mark { display: none; }
  .app-logo { height: 48px; }
}

/* ================= Live documents ================= */
.lcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: block; aspect-ratio: var(--ar, 856 / 540); perspective: 1400px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.lc-flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2,.75,.25,1); }
.lcard.is-moving .lc-flip { transition: transform .12s ease-out; }
.lcard.is-flipped .lc-flip { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.lc-face { position: absolute; inset: 0; overflow: hidden; border-radius: 3.74% / 5.93%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #EEF0EA; box-shadow: 0 1px 2px rgba(17,34,53,.16), 0 14px 34px rgba(17,34,53,.18); }
.lcard-passport .lc-face { border-radius: 1.1% / 1.6%; }
.lc-face img { display: block; width: 100%; height: 100%; }
.lc-back { transform: rotateY(180deg); }
.lc-holo { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(115deg, transparent 18%, rgba(255,110,196,.85) 30%, rgba(110,226,255,.85) 42%, rgba(255,246,140,.85) 54%, rgba(166,132,255,.85) 66%, transparent 80%);
  background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: color-dodge; opacity: .5; animation: holo-idle 7s ease-in-out infinite; }
.lcard.is-moving .lc-holo { animation: none; opacity: .75; }
.lc-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), rgba(255,255,255,0) 42%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .25s; }
.lcard.is-moving .lc-glare { opacity: 1; }
@keyframes holo-idle { 0%, 100% { background-position: 10% 20%; } 50% { background-position: 90% 80%; } }
a.lcard:hover .lc-face { box-shadow: 0 2px 4px rgba(17,34,53,.16), 0 22px 44px rgba(17,34,53,.24); }
.lcard.is-inval .lc-face { filter: grayscale(.55); }
@media (prefers-reduced-motion: reduce) { .lc-holo { animation: none; } .lc-flip { transition: none; } }
.stage { display: grid; gap: 14px; justify-items: center; }
.stage .lcard { width: 100%; max-width: 640px; }
.stage-passport { grid-template-columns: minmax(0, .5fr) minmax(0, 1.4fr); align-items: center; gap: 22px; justify-items: stretch; }
.pp-cover { margin: 0; }
.pp-cover img { display: block; width: 100%; height: auto; border-radius: 6px 16px 16px 6px; box-shadow: 0 1px 2px rgba(17,34,53,.2), 0 14px 30px rgba(17,34,53,.24); }
.lc-turn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 1px 2px rgba(17,34,53,.08), 0 4px 14px rgba(17,34,53,.08); }
.lc-turn:hover { color: var(--lapis); }
.lc-turn .ic { width: 20px; height: 20px; transition: transform .5s; }
.lc-turn.is-back .ic { transform: rotate(180deg); }
.dv-stage { grid-area: stage; background: linear-gradient(160deg, #E9EEF6, #F6F4EE); border-radius: 26px; padding: 34px 28px 22px; }
.dv-side { grid-area: side; position: sticky; top: 96px; display: grid; gap: 12px; }
.dv-actions { display: grid; gap: 8px; }
.dv-data { grid-area: data; margin: 0; }
.kv-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.kv-2 > div { grid-template-columns: 1fr; gap: 2px; }
.kv-2 > div, .kv-2 > div + div { box-shadow: inset 0 -1px 0 var(--line-2); }
.paper-big { margin: 0 auto; max-width: 620px; }
.paper-big img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 3px rgba(17,34,53,.18), 0 18px 40px rgba(17,34,53,.18); }
.wallet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.wallet .lcard-passport { grid-column: span 1; }
.papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: start; }
.papers.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 14px; }
.papers .lcard { align-self: start; }
.ptile { position: relative; display: grid; gap: 0; text-decoration: none; color: var(--ink); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(17,34,53,.06), 0 8px 22px rgba(17,34,53,.07); transition: transform .2s, box-shadow .2s; }
a.ptile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17,34,53,.08), 0 16px 34px rgba(17,34,53,.12); color: var(--ink); }
.ptile-img { display: block; height: 190px; overflow: hidden; background: #F3EFE3; }
.ptile-img img { display: block; width: 100%; height: auto; }
.ptile-b { display: grid; gap: 3px; padding: 12px 14px 14px; }
.ptile-b b { font-size: 14.5px; line-height: 1.3; }
.ptile-s { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile-n { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ptile-n .mono { color: var(--lapis); }
.ptile-void { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 800; color: #B4312A; background: #FFF; padding: 3px 9px; border-radius: 999px; box-shadow: 0 0 0 1.5px #B4312A; }
.ptile.is-inval .ptile-img { opacity: .6; }

/* Wallet rail on the overview */
.ov-wallet { overflow: hidden; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc(50% - 10px)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; margin: -6px -4px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; align-self: start; }
.rail .lcard-passport { grid-row: 1; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.rail-dots i { width: 7px; height: 7px; border-radius: 4px; background: #CDD5E0; transition: width .2s, background .2s; }
.rail-dots i.on { width: 20px; background: var(--lapis); }
.wallet-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--lapis-50); color: var(--ink); text-decoration: none; }
.wallet-empty > .ic:first-child { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--lapis); color: #fff; }
.wallet-empty span { flex: 1; display: grid; } .wallet-empty span span { color: var(--lapis); font-weight: 700; font-size: 14.5px; }
.quick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 20px; }
.quick a { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; box-shadow: 0 1px 2px rgba(17,34,53,.04); }
.quick a:hover { color: var(--lapis); box-shadow: 0 8px 22px rgba(17,34,53,.08); }
.q-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.q-ic .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.q-ic em { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lapis); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.q-ic em.alert { background: var(--err); }
.ov-facts { margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; }
.ov-facts dt { color: var(--muted); font-size: 13.5px; }
.ov-facts dd { margin: 0; font-weight: 700; }
.al-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.al-ic .ic { width: 20px; height: 20px; }
.al-main b { line-height: 1.3; }

/* Hero sample cards */
.hero-cards { pointer-events: none; }
.hero-cards .lcard { position: absolute; width: 360px; pointer-events: auto; }
.hero-cards .hc-1 { left: 0; top: 0; transform: rotate(-6deg); z-index: 1; }
.hero-cards .hc-2 { right: -10px; bottom: 0; transform: rotate(5deg); }
.hero-cards .lc-face { box-shadow: 0 2px 4px rgba(6,24,80,.2), 0 30px 60px rgba(6,24,80,.35); }

/* ================= Mobile app shell ================= */
.tabbar { display: none; }
.hdr-lang { display: none; }
.menu-page { padding-top: 18px; padding-bottom: 32px; display: grid; gap: 16px; }
.menu-me { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(17,34,53,.04); }
.menu-me > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.menu-me b { font-size: 18px; } .menu-me .mono { color: var(--muted); font-size: 13px; } .menu-me em { font-style: normal; color: var(--lapis); font-weight: 700; font-size: 13.5px; }
.menu-me > .ic { color: #9AA6B5; }
.ava-xl { width: 60px; height: 60px; font-size: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.menu-grid a { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; }
.mg-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.mg-ic .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.menu-grid em { position: absolute; top: 10px; right: 14px; font-style: normal; background: var(--err); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 9px; }
.menu-list { display: grid; background: #fff; border-radius: 22px; overflow: hidden; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.menu-list > * + * { box-shadow: inset 0 1px 0 var(--line-2); }
.menu-list form { margin: 0; }
.menu-list a > span, .menu-list button > span { flex: 1; }
.menu-list .ic { width: 22px; height: 22px; color: var(--lapis); }
.menu-list a > .ic:last-child { color: #9AA6B5; width: 18px; }
.menu-list button { color: var(--err); } .menu-list button .ic { color: var(--err); }
.menu-lang { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-lang::before { content: ''; width: 22px; height: 22px; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23195BEB' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.5 2.6 3.6 5.4 3.6 8.5s-1.1 5.9-3.6 8.5c-2.5-2.6-3.6-5.4-3.6-8.5S9.5 6.1 12 3.5z'/%3E%3C/svg%3E"); }

@media (max-width: 1080px) {
  .quick { grid-template-columns: repeat(4, 1fr); }
  .doc-view { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'side' 'data'; }
  .dv-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .dv-side .facts-list { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .util, .mainnav, .burger, .btn-signin { display: none !important; }
  .hdr-in { height: 60px; gap: 12px; }
  .logo img { height: 40px; }
  .me-n { display: none; }
  .me-btn { padding: 3px; background: none; }
  .hdr-lang { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 rgba(17,34,53,.08), 0 -8px 24px rgba(17,34,53,.06); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 2px; color: #6C7A8C; text-decoration: none; font-size: 11px; font-weight: 600; }
  .tabbar .ic { width: 46px; height: 30px; padding: 4px 12px; border-radius: 15px; stroke-width: 1.7; transition: background .2s; }
  .tabbar a.on { color: var(--lapis); }
  .tabbar a.on .ic { background: var(--lapis-50); stroke-width: 2; }
  .tabbar em { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
  .cab-side { display: none; }
  .cab-shell { padding-top: 16px; padding-bottom: 24px; gap: 0; }
  .cab-head { margin-bottom: 14px; }
  body.cab .ftr { display: none; }
  .ftr { padding: 32px 0 20px; }
  .ftr-top { grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; }
  .ftr-top > div:not(.ftr-brand) { display: none; }
  .svc-act { order: -1; }
  .svc-page { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
  .qr { width: 150px; }
  .rail { grid-auto-columns: 88%; gap: 14px; }
  .wallet { grid-template-columns: 1fr; gap: 18px; }
  .dv-stage { padding: 22px 14px 16px; border-radius: 22px; margin: 0 -4px; }
  .stage-passport { grid-template-columns: 1fr; }
  .stage-passport .pp-cover { display: none; }
  .ov-facts { grid-template-columns: 1fr; gap: 2px; }
  .ov-facts dd + dt { margin-top: 10px; }
  .kv-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .quick { gap: 8px; }
  .quick a { padding: 12px 2px 10px; font-size: 11.5px; border-radius: 16px; }
  .q-ic { width: 42px; height: 42px; }
  .dv-side { grid-template-columns: 1fr; }
  .papers { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ptile-img { height: 150px; }
  .ptile-n { flex-direction: column; gap: 0; }
  .app-list a { grid-template-columns: 36px minmax(0, 1fr); row-gap: 6px; }
  .app-list a > .pill { grid-column: 2; justify-self: start; }
  .al-ic { width: 36px; height: 36px; }
  .menu-grid { gap: 8px; }
  /* Tables become cards */
  .tbl.rsp thead { display: none; }
  .tbl.rsp, .tbl.rsp tbody, .tbl.rsp tr, .tbl.rsp td { display: block; width: 100%; }
  .tbl.rsp tr { padding: 12px 4px; }
  .tbl.rsp tr + tr { box-shadow: inset 0 1px 0 var(--line-2); }
  .tbl.rsp td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .tbl.rsp td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; max-width: 45%; }
  .tbl.rsp td[data-label=""]::before { display: none; }
  .tbl.rsp td:first-child { font-weight: 700; }
  .tbl.rsp .num { text-align: right; }
  .panel.flush .tbl.rsp tr { padding: 12px 16px; }
}
@media (min-width: 641px) { .papers .lcard { grid-column: span 2; } }

/* Application page: the filed form next to its data */
.two.app-two { grid-template-columns: minmax(200px, 250px) 1fr 1fr; align-items: start; }
.app-form { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(17,34,53,.16), 0 14px 32px rgba(17,34,53,.14); transition: transform .2s ease, box-shadow .2s ease; }
.app-form img { display: block; width: 100%; height: auto; }
.app-form span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid rgba(17,34,53,.07); color: var(--ink); font-size: 13px; font-weight: 600; }
.app-form span svg { width: 16px; height: 16px; }
.app-form:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(17,34,53,.16), 0 20px 40px rgba(17,34,53,.18); }
@media (max-width: 1100px) { .two.app-two { grid-template-columns: 220px 1fr; } .two.app-two > :last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .two.app-two { grid-template-columns: 1fr; gap: 0; } .app-form { width: 62%; max-width: 260px; margin: 0 auto 20px; } }
@media (prefers-reduced-motion: reduce) { .app-form { transition: none; } .app-form:hover { transform: none; } }

/* ---------- Finance and credit (State Credit Bureau) ---------- */
.fin-score { display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 28px; align-items: center; }
.fin-g { position: relative; width: 260px; margin: 0 auto; }
.fin-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.fin-gauge .g-tick { font: 600 11px var(--body); fill: var(--muted); }
.fin-num { position: absolute; left: 0; right: 0; bottom: 6px; display: grid; justify-items: center; line-height: 1; }
.fin-num b { font: 800 52px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.fin-num b.na { color: #B7C1CD; }
.fin-num span { margin-top: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.fin-gr p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.grade { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; }
.grade i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.grade.off { color: var(--muted); font-weight: 700; }
.fin-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-radius: 16px; background: var(--bg); }
.fin-tot > div { padding: 14px 16px; }
.fin-tot > div:nth-child(n+3) { box-shadow: inset 0 1px 0 #fff; }
.fin-tot > div:nth-child(even) { box-shadow: inset 1px 0 0 #fff; }
.fin-tot > div:nth-child(4) { box-shadow: inset 1px 0 0 #fff, inset 0 1px 0 #fff; }
.fin-tot dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.fin-tot dd { margin: 2px 0 0; font: 700 19px/1.25 var(--display); }
.fin-tot dd em { font: 600 12.5px var(--body); font-style: normal; color: var(--err); white-space: nowrap; }
.fin-tot dd.ok { color: #0B5A42; } .fin-tot dd.warn { color: var(--warn); } .fin-tot dd.bad { color: var(--err); }
.fin-tot dd .muted { font: 500 14px var(--body); }
.fin-ban { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.fb-ic { width: 48px; height: 48px; border-radius: 15px; flex: none; display: flex; align-items: center; justify-content: center; }
.fb-ic .ic { width: 24px; height: 24px; }
.fin-ban.is-on .fb-ic { background: var(--mal-50); color: var(--mal); }
.fin-ban.is-off .fb-ic { background: var(--gold-50); color: var(--gold-700); }
.fin-ban.is-lifting .fb-ic { background: var(--warn-50); color: var(--warn); }
.fb-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fb-t span { color: var(--muted); font-size: 14.5px; }
.fin-two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.loans { list-style: none; margin: 0; padding: 0; }
.loan { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.loan + .loan { box-shadow: inset 0 1px 0 var(--line-2); }
.loan-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--lapis-50); color: var(--lapis); }
.loan-ic.lk-mfo { background: var(--gold-50); color: var(--gold-700); }
.loan.is-closed .loan-ic { background: var(--bg); color: var(--muted); }
.loan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.loan-sub { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.loan-bar { height: 6px; border-radius: 4px; background: var(--line-2); margin: 12px 0 10px; overflow: hidden; }
.loan-bar i { display: block; height: 100%; border-radius: 4px; background: var(--lapis); }
.loan.is-over .loan-bar i { background: var(--err); }
.loan-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 12px; margin: 8px 0 0; }
.loan-kv dt { color: var(--muted); font-size: 12px; }
.loan-kv dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.factors li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.f-ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; line-height: 1; background: var(--bg); color: var(--muted); }
.f-up .f-ic { background: var(--mal-50); color: var(--mal); }
.f-down .f-ic { background: var(--err-50); color: var(--err); }
.inq { list-style: none; margin: 0; padding: 0; }
.inq li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14.5px; }
.inq li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.inq li span { display: grid; font-weight: 600; }
.inq em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }
.inq time { color: var(--muted); white-space: nowrap; }

/* ---------- Courts and restrictions ---------- */
.rs-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 22px; margin-bottom: 20px; }
.rs-hero.is-clear { background: var(--mal-50); }
.rs-hero.is-ban { background: var(--err-50); }
.rs-ic { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; }
.rs-ic .ic { width: 28px; height: 28px; stroke-width: 1.9; }
.is-clear .rs-ic { color: var(--mal); } .is-ban .rs-ic { color: var(--err); }
.rs-hero > div > b { display: block; font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
.rs-hero > div > span { color: #3F5064; font-size: 14.5px; }
.rs-sum { display: flex; gap: 6px; margin: 0; }
.rs-sum > div { background: rgba(255,255,255,.75); border-radius: 14px; padding: 10px 14px; min-width: 104px; }
.rs-sum dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rs-sum dd { margin: 0; font: 700 18px var(--display); }
.enf-list { list-style: none; margin: 0; padding: 0; }
.enf-list li { box-shadow: inset 0 1px 0 var(--line-2); }
.enf-list label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 24px; cursor: pointer; }
.enf-list input { width: 18px; height: 18px; accent-color: var(--lapis); }
.enf-main { display: grid; gap: 2px; }
.enf-main span { color: var(--muted); font-size: 13.5px; }
.enf-sum b { font: 700 18px var(--display); white-space: nowrap; }
.rs .tbl-foot { justify-content: space-between; gap: 16px; align-items: center; padding: 14px 24px; box-shadow: inset 0 1px 0 var(--line-2); }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.rlist li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.rlist li > div { display: grid; gap: 2px; }
.rlist li > div > span { font-size: 14.5px; }
.rlist .muted { font-size: 13px; }
.r-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--warn-50); color: var(--warn); }
.r-travel_ban .r-ic { background: var(--err-50); color: var(--err); }
.rlist.past .r-ic { background: var(--bg); color: var(--muted); }
.calm-row { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.calm-row .ic { color: var(--mal); }
.cases { list-style: none; margin: 0; padding: 0; }
.cases a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; color: var(--ink); text-decoration: none; }
.cases li + li a { box-shadow: inset 0 1px 0 var(--line-2); }
.cases a > .ic { color: var(--muted); }
.case-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--lapis-50); color: var(--lapis); }
.case-main { display: grid; gap: 3px; min-width: 0; }
.case-main > span { color: var(--muted); font-size: 13.5px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hear { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink); font-weight: 600; }
.hear .ic { width: 15px; height: 15px; }
.cert-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cert-links a { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: var(--tile); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.cert-links a:hover { background: var(--tile-h); }
.cert-links .ic { color: var(--lapis); }
.rs-hist summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.rs-hist summary::-webkit-details-marker { display: none; }
.rs-hist summary .ph2 { margin: 0; }
.rs-hist summary > .ic { transform: rotate(90deg); color: var(--muted); transition: transform .15s; }
.rs-hist[open] summary > .ic { transform: rotate(-90deg); }
.rs-hist[open] summary { margin-bottom: 8px; }
.case-subj { margin: 10px 0 16px; font-size: 22px; }
.case-dec p { margin: 0 0 4px; }
.parties { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.parties li { display: flex; gap: 12px; align-items: center; }
.parties li > span:last-child { display: grid; }
.parties li > span:last-child > span { color: var(--muted); font-size: 13.5px; }
.parties em { font-style: normal; color: var(--muted); font-weight: 500; }
.tline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.tline::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tline li { position: relative; display: grid; gap: 1px; padding: 0 0 14px; }
.tline li::before { content: ''; position: absolute; left: -18px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--lapis); box-shadow: 0 0 0 3px #fff; }
.tline time { color: var(--muted); font-size: 12.5px; }
.todo li.urgent a { background: var(--err-50); }
.todo li.urgent .ic { color: var(--err); }

/* ---------- Officer desk: bailiffs, courts, credit bureau ---------- */
.oj-seg { margin: 4px 0 18px; }
.oj-who { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.oj-who > div { display: grid; }
.oj-who > div span { color: var(--muted); font-size: 14px; }
.oj-flags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.oj-list { list-style: none; margin: 0 0 8px; padding: 0; }
.oj-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; }
.oj-list li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.oj-list li > div { display: grid; gap: 2px; min-width: 0; }
.oj-list .muted { font-size: 13px; }
.oj-list .oj-form { margin: 0; flex: none; }
.oj-loan { flex-wrap: wrap; }
.oj-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.oj-inline input:not([type]) { width: 110px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; }
.oj-h3 { font-size: 16px; margin: 18px 0 10px; }
.alert-s { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--lapis-50); color: var(--lapis-900); font-size: 14px; }

@media (max-width: 1080px) {
  .fin-score { grid-template-columns: 260px minmax(0, 1fr); }
  .fin-tot { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fin-tot > div:nth-child(n) { box-shadow: inset 1px 0 0 #fff; }
  .fin-tot > div:first-child { box-shadow: none; }
  .cert-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .fin-score { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 16px; }
  .fin-gr p { max-width: 36ch; }
  .fin-tot { width: 100%; grid-template-columns: 1fr 1fr; text-align: left; }
  .fin-tot > div:nth-child(odd) { box-shadow: none; }
  .fin-tot > div:nth-child(n+3) { box-shadow: inset 0 1px 0 #fff; }
  .fin-tot > div:nth-child(4) { box-shadow: inset 1px 0 0 #fff, inset 0 1px 0 #fff; }
  .fin-two { grid-template-columns: minmax(0, 1fr); }
  .fin-ban { flex-wrap: wrap; padding: 16px; }
  .fin-ban .btn { width: 100%; }
  .loan-kv { grid-template-columns: 1fr 1fr; }
  .rs-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .rs-hero > div > b { font-size: 19px; }
  .rs-sum { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-sum > div { min-width: 0; padding: 10px 12px; }
  .rs .tbl-foot { flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .enf-list label { padding: 14px 16px; }
  .cases a { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .oj-flags { margin-left: 0; }
}
.dc-off { display: grid; gap: 8px; justify-items: start; }
.dc-off > :first-child { filter: grayscale(1); opacity: .55; width: 100%; }
.fin-tot dd { white-space: nowrap; }
.loan-kv dd { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .fin-score { grid-template-columns: 250px minmax(0, .8fr) minmax(0, 1.3fr); } .fin-tot dd { font-size: 17px; } }
@media (max-width: 860px) {
  .enf-list label { grid-template-columns: auto minmax(0, 1fr); }
  .enf-sum { grid-column: 2; }
  .rs-sum dd { font-size: 16px; }
  .rs-sum dt { font-size: 11.5px; }
}
.svc-form.oj-form { box-shadow: none; border-radius: 0; background: none; }
.svc-form.oj-form .fields { margin-bottom: 16px; }
.oj-list .svc-form.oj-form { display: flex; gap: 8px; align-items: center; }
.oj-loan .svc-form.oj-form { width: 100%; }
.oj-loan .oj-inline { margin: 0; flex: 1; flex-wrap: wrap; }
.oj-inline .ck-i { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; padding: 8px 12px; }
.oj-inline .ck-i input { width: 17px; height: 17px; accent-color: var(--lapis); }
.svc-form.plain .ck-i.half { grid-column: span 1; align-self: end; align-items: center; font-size: 14.5px; }
.oj-who > .oj-flags { display: flex; align-items: center; }

/* ---------- Lender's cabinet (credit bureau) ---------- */
.lend-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--lapis-900, #0E2A6B); color: #fff; margin-bottom: 18px; }
.lh-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.lh-id h2 { color: #fff; margin: 2px 0 0; font-size: 22px; }
.lh-id .muted { color: rgba(255,255,255,.72); }
.lh-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.lh-ic .ic { width: 26px; height: 26px; }
.lh-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; margin: 0; }
.lh-stats > div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 14px; }
.lh-stats dt { font-size: 12px; color: rgba(255,255,255,.7); white-space: nowrap; }
.lh-stats dd { margin: 0; font: 700 18px var(--display); white-space: nowrap; }
.lh-stats dd.neg { color: #FFB4AA; }
.lend .seg { margin-bottom: 18px; }
.lend-two { align-items: start; }
.lend-p { margin: -4px 0 14px; font-size: 14.5px; }
.svc-form.lend-form { box-shadow: none; background: none; border-radius: 0; }
.svc-form.lend-form .fields { margin-bottom: 16px; }
.cons { list-style: none; margin: 0; padding: 0; }
.cons li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.cons li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.cons-who { display: grid; gap: 2px; min-width: 0; }
.cons-who > span { font-size: 13.5px; color: var(--muted); }
.cons-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.cons-ask { border: 2px solid var(--lapis-50); }
.pf { list-style: none; margin: 0; padding: 0; }
.pf li { display: grid; gap: 6px; padding: 14px 0; }
.pf li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.pf li.is-closed { opacity: .65; }
.pf-top { display: flex; justify-content: space-between; gap: 12px; }
.pf-sum { display: grid; text-align: right; }
.pf-sum b { font: 700 16px var(--display); white-space: nowrap; }
.pf-sum .muted { font-size: 12.5px; white-space: nowrap; }
.pf-meta { font-size: 13px; }
.pf-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.pf-form input:not([type]) { width: 120px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; }
.pf-form .ck-i { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.keys { list-style: none; margin: 0 0 16px; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.keys li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.keys li > div { display: grid; gap: 2px; min-width: 0; }
.keys li .muted { font-size: 13px; }
.keys li.is-off { opacity: .55; }
.key-form { display: flex; gap: 8px; }
.key-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; }
.key-new { border: 2px solid var(--mal); }
.key-box { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.api-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; }
.api-steps li { display: grid; gap: 4px; }
.api-steps code { font-size: 13px; background: var(--bg); border-radius: 8px; padding: 4px 8px; justify-self: start; }
.api-ex { background: #0F1B2D; color: #D9E6FF; border-radius: 12px; padding: 14px; font-size: 12.5px; overflow-x: auto; margin: 0 0 14px; white-space: pre; }
.rep-name { margin: 4px 0 10px; font-size: 22px; }
.biz-bureau { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; margin: 16px 0 4px; border-radius: 16px; background: var(--lapis-50); color: var(--ink); text-decoration: none; }
.biz-bureau > .ic:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--lapis); }
.biz-bureau > span { display: grid; }
.biz-bureau > span > span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 1080px) { .lend-head { grid-template-columns: 1fr; } .lh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .lend-head { padding: 18px; border-radius: 20px; }
  .lh-id h2 { font-size: 19px; }
  .cons li { flex-direction: column; align-items: stretch; }
  .cons-act { justify-content: flex-start; }
  .key-form { flex-direction: column; }
  .pf-form input:not([type]) { flex: 1 1 120px; }
}
.lend-two > * { min-width: 0; }

/* ---------- Empty states, result rows (all sizes) ---------- */
.panel.calm { gap: 10px; padding: 36px 24px 32px; }
.panel.calm > .ic { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis); box-sizing: border-box; }
.panel.calm > p { margin: 2px 0 6px; font-size: 16px; color: #3F5064; max-width: 36ch; }
.panel.calm .btn-row { justify-content: center; }
.people .ava { display: inline-flex; }
.panel.flush > .empty-s.pad { padding-bottom: 22px; }
.drows { display: grid; gap: 8px; margin-top: 14px; }
.drow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--bg); color: var(--ink); text-decoration: none; }
.drow:hover { background: var(--lapis-50); }
.drow-th { width: 56px; height: 72px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(17,34,53,.14); display: block; }
.drow.is-card .drow-th { height: 36px; align-self: center; border-radius: 4px; }
.drow-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.drow-b { display: grid; gap: 2px; min-width: 0; }
.drow-b b { font-size: 15.5px; line-height: 1.3; }
.drow-b .mono { font-size: 13px; color: var(--lapis); }
.drow-d { font-size: 12.5px; color: var(--muted); }
.drow > .ic { color: var(--muted); }
.drow.is-inval .drow-th { filter: grayscale(1); opacity: .6; }
.ah-svc { font-size: 19px; line-height: 1.3; margin: 12px 0 4px; }
.app-form-d summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; cursor: pointer; font-weight: 700; }
.app-form-d summary::-webkit-details-marker { display: none; }
.app-form-d summary > .ic:first-child { color: var(--lapis); }
.app-form-d summary > .ic:last-child { transform: rotate(90deg); color: var(--muted); transition: transform .15s; }
.app-form-d[open] summary > .ic:last-child { transform: rotate(-90deg); }
.app-form-d[open] summary { margin-bottom: 14px; }
.app-form-d .app-form { display: block; }
.app-form-d .app-form span { display: none; }
.panel.calm.is-ok > .ic { background: var(--mal-50); color: var(--mal); }
.svc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.svc-links a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.svc-links a:hover { background: var(--lapis-50); }
.svc-links a > .ic:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #fff; color: var(--lapis); box-sizing: border-box; }
.svc-links a > .ic:last-child { color: var(--muted); }
@media (max-width: 1080px) { .svc-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .svc-links { grid-template-columns: 1fr; gap: 0; } .svc-links a { background: none; padding: 12px 0; border-radius: 0; } .svc-links a + a { box-shadow: inset 0 1px 0 var(--line-2); } }
.reg-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: #0E3B33; color: #fff; text-decoration: none; margin-bottom: 16px; }
.reg-link > .ic:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.12); box-sizing: border-box; }
.reg-link > span { display: grid; }
.reg-link > span > span { color: #BFD6CC; font-size: 14px; }
.reg-link > .ic:last-child { color: #BFD6CC; }
.fin-num b.na { font-size: 24px; color: var(--muted); letter-spacing: -.01em; padding-bottom: 8px; }
.drow.is-card { grid-template-columns: 76px minmax(0, 1fr) auto; }
.drow.is-card .drow-th { width: 76px; height: 48px; border-radius: 6px; }
@media (max-width: 860px) { .drow.is-card { grid-template-columns: 64px minmax(0, 1fr) auto; } .drow.is-card .drow-th { width: 64px; height: 40px; } }
@media (max-width: 860px) { .biz-bin { text-align: left; } }

/* ---------- Border control (officer) ---------- */
.bc-form { display: grid; gap: 14px; }
.bc-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.bc-f { display: grid; gap: 6px; flex: 1 1 260px; }
.bc-f > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.bc-f select, .bc-f input { height: 52px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; font: inherit; font-size: 17px; }
.bc-dir { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 14px; }
.bc-dir label { cursor: pointer; }
.bc-dir input { position: absolute; opacity: 0; }
.bc-dir span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 11px; font-weight: 700; color: var(--muted); }
.bc-dir input:checked + span { background: #fff; color: var(--lapis); box-shadow: 0 1px 3px rgba(17,34,53,.12); }
.bc-dir input:focus-visible + span { outline: 3px solid var(--lapis-100); }
.bc-row .btn { height: 52px; }
.bc-scan { max-width: 420px; }
.bc-res { border: 3px solid transparent; }
.bc-res.is-allow { border-color: var(--mal); }
.bc-res.is-deny { border-color: var(--err); }
.bc-verdict { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; font: 800 24px var(--display); }
.bc-verdict .ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; color: #fff; box-sizing: border-box; stroke-width: 2.4; }
.is-allow .bc-verdict { color: #0B5A42; } .is-allow .bc-verdict .ic { background: var(--mal); }
.is-deny .bc-verdict { color: var(--err); } .is-deny .bc-verdict .ic { background: var(--err); }
.bc-who { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.bc-ph img { width: 150px; height: 188px; object-fit: cover; border-radius: 14px; display: block; }
.bc-ph .ava-xl { width: 150px; height: 188px; border-radius: 14px; font-size: 40px; }
.bc-who h2 { margin: 0 0 10px; font-size: 24px; }
.bc-checks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
.bc-checks li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.bc-checks li.ok { background: var(--mal-50); } .bc-checks li.ok .ic { color: var(--mal); }
.bc-checks li.bad { background: var(--err-50); color: #7A1E16; } .bc-checks li.bad .ic { color: var(--err); }
.bc-act { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: var(--err); color: #fff; }
.bc-recent { list-style: none; margin: 0; padding: 0; }
.bc-recent li { display: grid; grid-template-columns: 90px 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; font-size: 14.5px; }
.bc-recent li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.bc-recent time { color: var(--muted); font-size: 13px; }

/* ---------- Travel (citizen) ---------- */
.trv-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px 24px; border-radius: 22px; margin-bottom: 20px; }
.trv-hero.is-home { background: var(--lapis-50); } .trv-hero.is-away { background: var(--gold-50); } .trv-hero.is-ban { background: var(--err-50); }
.trv-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.trv-ic .ic { width: 28px; height: 28px; }
.is-home .trv-ic { color: var(--lapis); } .is-away .trv-ic { color: var(--gold-700); } .is-ban .trv-ic { color: var(--err); }
.trv-hero b { display: block; font: 800 22px/1.2 var(--display); }
.trv-hero span { color: #3F5064; font-size: 14.5px; }
.xings { list-style: none; margin: 0; padding: 0; }
.xings li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.xings li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.xings li > div { display: grid; gap: 2px; }
.xings li > div > span { font-size: 14px; color: var(--muted); }
.xings time { font-size: 13px; color: var(--muted); text-align: right; }
.x-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--lapis-50); color: var(--lapis); }
.xings li.denied .x-ic { background: var(--err-50); color: var(--err); }
@media (max-width: 860px) {
  .bc-who { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .bc-ph img, .bc-ph .ava-xl { width: 96px; height: 120px; }
  .bc-verdict { font-size: 20px; }
  .bc-act .btn { flex: 1; }
  .bc-recent li { grid-template-columns: auto minmax(0, 1fr); }
  .bc-recent time { grid-column: 2; }
  .xings li { grid-template-columns: 38px minmax(0, 1fr); }
  .xings time { grid-column: 2; text-align: left; }
}

/* ---------- Bank accounts ---------- */
.accs { display: grid; gap: 20px; }
.acc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 4px 2px; }
.acc-total > span:first-child { flex-basis: 100%; color: var(--muted); font-weight: 600; font-size: 14px; }
.acc-total b { font: 800 40px/1 var(--display); letter-spacing: -.02em; }
.acc-fx { display: flex; gap: 12px; color: var(--muted); font-size: 14px; }
.acc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.acc-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 2px; min-height: 160px; padding: 18px 20px; border-radius: 20px; color: #fff; text-decoration: none;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.16), transparent 55%), var(--bk, #123B6D); box-shadow: 0 10px 24px -14px var(--bk, #123B6D); overflow: hidden; }
.acc-card::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
a.acc-card:hover { transform: translateY(-1px); }
a.acc-card:focus-visible { outline: 3px solid var(--lapis-100); outline-offset: 2px; }
.acc-bank { font-weight: 700; font-size: 15px; }
.acc-kind { font-size: 13px; opacity: .75; }
.acc-bal { align-self: end; font: 800 28px/1.1 var(--display); margin-top: 18px; }
.acc-iban { font-size: 13px; opacity: .8; letter-spacing: .02em; }
.acc-one { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-one .acc-card { min-height: 210px; }
.acc-side { display: grid; gap: 14px; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 1px 2px rgba(17,34,53,.06); }
.topup { display: flex; gap: 10px; align-items: end; }
.topup .field { flex: 1; margin: 0; }
.acc-kv { margin: 0; }
.err-t { color: var(--err); font-weight: 700; }
.tf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.tf-form .field { display: grid; gap: 6px; margin: 0; }
.tf-form .field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.tf-form .field input, .tf-form .field select { height: 48px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; font: inherit; min-width: 0; width: 100%; box-sizing: border-box; }
.tf-form .field.bad input, .tf-form .field.bad select { box-shadow: inset 0 0 0 2px var(--err); }
.tf-form .btn { grid-column: 1 / -1; justify-self: start; }
.pay-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line-2); }
.pay-form > div { display: grid; flex: 1 1 260px; }
.pay-form select { height: 44px; border-radius: 12px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; font: inherit; }
.txs { list-style: none; margin: 0; padding: 0; }
.txs li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; }
.txs li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.txs li > div { display: grid; gap: 2px; min-width: 0; }
.txs li > div b { font-weight: 600; overflow-wrap: anywhere; }
.txs li > div > span { font-size: 13px; color: var(--muted); }
.tx-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); }
.txs li.in .tx-ic { background: var(--mal-50); color: var(--mal); }
.tx-sum { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.txs li.in .tx-sum { color: var(--mal); }
/* checkout: pay from an account */
.acc-pay { display: grid; gap: 12px; }
.acc-pay-h { margin: 0; font-weight: 700; }
.acc-pick { display: grid; gap: 8px; }
.acc-pick label { cursor: pointer; }
.acc-pick input { position: absolute; opacity: 0; }
.acc-pick label > span { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.acc-pick input:checked + span { box-shadow: inset 0 0 0 2px var(--lapis); background: var(--lapis-50); }
.acc-pick input:focus-visible + span { outline: 3px solid var(--lapis-100); }
.acc-pick em { font-style: normal; font-weight: 700; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 18px 0 6px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) {
  .acc-total b { font-size: 34px; }
  .acc-cards { grid-template-columns: minmax(0, 1fr); }
  .acc-one { grid-template-columns: minmax(0, 1fr); }
  .tf-form { grid-template-columns: minmax(0, 1fr); }
  .tf-form .btn { justify-self: stretch; }
  .topup { flex-direction: column; align-items: stretch; }
  .pay-form .btn, .pay-form select { flex: 1 1 100%; }
}

/* ---------- Participation: ballots, petitions, drafts ---------- */
.civ { display: grid; gap: 20px; }
.ph3 { font-size: 15px; color: var(--muted); margin: 22px 0 6px; }
.bl-list, .pt-list, .dl-list { list-style: none; margin: 0; padding: 0; }
.bl-list li + li, .pt-list li + li, .dl-list li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.bl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 14px 0; color: inherit; text-decoration: none; }
.bl-row:hover b { color: var(--lapis); }
.bl-row > .ic:last-child { color: var(--muted); }
.bl-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--lapis-50); color: var(--lapis); }
.bl-ic .ic { width: 24px; height: 24px; }
.bl-row > div { display: grid; gap: 4px; }
.bl-k { font-size: 13px; font-weight: 700; color: var(--muted); }
.bl-row b { font-size: 17px; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; }
.bl-meta .pill .ic { width: 13px; height: 13px; vertical-align: -2px; }
.bl-head { display: grid; gap: 10px; }
.bl-q { font: 800 clamp(22px, 3vw, 30px)/1.2 var(--display); margin: 0; letter-spacing: -.01em; }
.bl-turn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 0; }
.bl-turn div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.bl-turn dt { font-size: 13px; color: var(--muted); }
.bl-turn dd { margin: 2px 0 0; font: 800 22px var(--display); }
.vote-form { display: grid; gap: 16px; }
.vote-opts { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.vote-opts label { cursor: pointer; }
.vote-opts input { position: absolute; opacity: 0; }
.vote-opts label > span { display: grid; gap: 2px; padding: 16px 18px 16px 52px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.vote-opts label > span::before { content: ''; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: #fff; }
.vote-opts input:checked + span { box-shadow: inset 0 0 0 2px var(--lapis); background: var(--lapis-50); }
.vote-opts input:checked + span::before { box-shadow: inset 0 0 0 6px var(--lapis); }
.vote-opts input:focus-visible + span { outline: 3px solid var(--lapis-100); }
.vote-opts b { font-size: 17px; }
.vote-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--muted); }
.vote-note .ic { flex: none; margin-top: 2px; }
.vote-form .btn { justify-self: start; }
.bl-done { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; background: var(--mal-50); }
.bl-done-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--mal); color: #fff; display: flex; align-items: center; justify-content: center; }
.bl-done b { font-size: 19px; }
.bl-receipt { display: inline-block; margin: 6px 0 0; padding: 10px 16px; border-radius: 12px; background: #fff; font-size: 24px; letter-spacing: .06em; font-weight: 700; }
.res { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.res li { display: grid; gap: 4px; }
.res-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.res-h > span { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.res-bar { display: block; height: 10px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.res-bar span { display: block; height: 100%; border-radius: 6px; background: #8FA9C9; }
.res li.win .res-bar span { background: var(--lapis); }
.rc-form { display: flex; gap: 10px; max-width: 460px; }
.rc-form input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; font-size: 16px; }
.ok-t { color: #0B5A42; font-weight: 700; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 10px 20px; align-items: center; padding: 14px 0; color: inherit; text-decoration: none; }
.pt-row > div { display: grid; gap: 4px; justify-items: start; }
.pt-row b { font-size: 16.5px; }
.pt-row:hover b { color: var(--lapis); }
.pt-prog { display: grid; gap: 6px; }
.pt-bar { display: block; height: 8px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.pt-bar span { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.pt-n { font-size: 14px; color: var(--muted); }
.pt-n b { color: var(--ink, #112235); }
.pt-head { display: grid; gap: 12px; }
.pt-body p, .pt-ans p { margin: 0 0 12px; line-height: 1.6; }
.pt-ans { box-shadow: inset 4px 0 0 var(--lapis); }
.pt-form, .pt-sign { display: grid; gap: 4px; max-width: 720px; }
.pt-form textarea { min-height: 180px; }
.pt-form .btn, .pt-sign .btn { justify-self: start; margin-top: 8px; }
.civ-more { display: flex; gap: 18px; margin: 14px 0 0; }
.dl-list a { display: grid; gap: 4px; padding: 12px 0; color: inherit; text-decoration: none; }
.dl-list a:hover b { color: var(--lapis); }
.ctabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; scrollbar-width: none; }
.ctabs a { flex: none; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--muted); font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.ctabs a.on { background: var(--lapis); color: #fff; box-shadow: none; }
@media (max-width: 860px) {
  .pt-row { grid-template-columns: minmax(0, 1fr); }
  .bl-turn dd { font-size: 18px; }
  .vote-form .btn, .pt-form .btn, .pt-sign .btn { justify-self: stretch; }
  .bl-receipt { font-size: 20px; }
}
.civ > *, .accs > * { min-width: 0; }
.vote-opts, .disc-stance { min-width: 0; }

/* ---------- Health ---------- */
.ins-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 22px; border-radius: 22px; }
.ins-card.is-ok { background: var(--mal-50); } .ins-card.is-no { background: var(--warn-50); }
.ins-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.is-ok .ins-ic { color: var(--mal); } .is-no .ins-ic { color: var(--warn); }
.ins-card b { display: block; font: 800 20px/1.2 var(--display); }
.ins-card span { color: #3F5064; font-size: 14.5px; }
.rx-list { list-style: none; margin: 0; padding: 0; }
.rx-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.rx-list li + li { box-shadow: inset 0 1px 0 var(--line-2); }
.rx-list li > div { display: grid; gap: 2px; min-width: 0; }
.rx-list li > div > span { font-size: 14px; }
.rx-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--lapis-50); color: var(--lapis); }
.rx-list li.dispensed, .rx-list li.closed { opacity: .65; }
.rx-list li.dispensed .rx-ic, .rx-list li.closed .rx-ic { background: var(--bg); color: var(--muted); }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ph-row .ph2 { margin: 0; }
.tbl.vx { width: 100%; }
.vx-form { margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line-2); }
@media (max-width: 860px) {
  .ins-card { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .ins-ic { width: 44px; height: 44px; }
  .ins-card .btn { grid-column: 1 / -1; }
  .rx-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .rx-list li > .btn, .rx-list li > form { grid-column: 2; justify-self: start; }
}
.oj-who > div { display: grid; gap: 4px; justify-items: start; }
.veh-docs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.veh-docs li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
.veh-docs li.ok { background: var(--mal-50); } .veh-docs li.ok > .ic { color: var(--mal); }
.veh-docs li.bad { background: var(--warn-50); } .veh-docs li.bad > .ic { color: var(--warn); }
.veh-docs .ic { flex: none; margin-top: 2px; }
.chk { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; font-weight: 600; } .chk input { width: 20px; height: 20px; accent-color: var(--lapis); }

/* ---------- Business tools, invoices ---------- */
.biz-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
.biz-tools a { display: grid; justify-items: start; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg); color: inherit; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.biz-tools a .ic { color: var(--lapis); width: 22px; height: 22px; }
.biz-tools a:hover { background: var(--lapis-50); }
.inv-form { display: grid; gap: 10px; max-width: 760px; }
.inv-lines { display: grid; gap: 8px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px; gap: 8px; }
.inv-line input { height: 46px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 0 12px; font: inherit; min-width: 0; }
.inv-form .btn { justify-self: start; }
.inv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.inv { padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.inv-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.inv-t { width: 100%; }
.inv-t td { padding: 8px 6px; }
.inv-tot td { font-weight: 800; border-top: 2px solid var(--line); }
.small { font-size: 13px; }
@media (max-width: 860px) {
  .biz-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-line { grid-template-columns: minmax(0, 1fr) 70px 90px; }
  .inv-form .btn { justify-self: stretch; }
  .inv p.small { overflow-wrap: anywhere; }
}
.push-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.push-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--lapis-50); color: var(--lapis); display: flex; align-items: center; justify-content: center; }
.push-card > div { display: grid; gap: 2px; }
.push-card > div span { font-size: 14px; color: var(--muted); }
.push-card [hidden] { display: none; }
@media (max-width: 860px) { .push-card { grid-template-columns: 44px minmax(0, 1fr); margin: 0 0 12px; } .push-card .btn { grid-column: 1 / -1; } }
.kid-docs { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 700; font-size: 14px; }
.kid-docs .ic { width: 16px; height: 16px; }
.kid-head { display: flex; gap: 16px; align-items: center; }
.kid-head > div { display: grid; gap: 2px; }
.kid-head b { font: 800 22px var(--display); }

/* ---------- Promo banners: headline on the left, soft 3D art on the right ---------- */
.promo-wrap { padding-top: 44px; padding-bottom: 8px; }
.promo-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.promo-h h2 { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.promo-nav { display: flex; gap: 8px; }
.promo-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.promo-nav button:first-child .ic { transform: rotate(180deg); }
.promo-nav button:hover:not(:disabled) { background: var(--lapis-50); border-color: var(--lapis-100); color: var(--lapis); }
.promo-nav button:disabled { opacity: .4; cursor: default; }
.promo-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 2); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo-rail::-webkit-scrollbar { display: none; }
.promo { scroll-snap-align: start; position: relative; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); height: 252px; border-radius: 26px; background: #E3EBFE; color: var(--ink); text-decoration: none; overflow: hidden; }
.promo:hover { color: var(--ink); }
.promo-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 28px 0 26px 28px; }
.promo-tx b { font-family: var(--display); font-size: 23px; line-height: 1.12; letter-spacing: -.015em; }
.promo-tx > span { color: #43536A; font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.promo-tx em { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--lapis); }
.promo-tx em .ic { width: 18px; height: 18px; transition: transform .15s ease; }
.promo:hover .promo-tx em .ic { transform: translateX(3px); }
.promo-art { position: relative; overflow: hidden; }
.promo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); transition: transform .5s ease; }
.promo:hover .promo-art img { transform: scale(1.04); }
.panel-promo { padding: 22px 24px 24px; }
.panel-promo .promo-h h2 { font-size: 20px; }
.panel-promo .promo-rail { grid-auto-columns: calc((100% - 18px) / 1.55); }
.panel-promo .promo { height: 228px; }
.panel-promo .promo-tx > span { -webkit-line-clamp: 3; }
.panel-promo .promo-tx b { font-size: 20px; }
.panel-promo .promo-tx > span { font-size: 14px; }

/* Life situations: illustrations instead of icons */
.sit-art { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: #E3EBFE; margin-bottom: 6px; display: block; }
.pagehead-art .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.pagehead-art .sit-art { width: 200px; height: 200px; border-radius: 40px; margin: 0; }

@media (max-width: 1080px) {
  .promo-rail { grid-auto-columns: calc((100% - 18px) / 1.6); }
}
@media (max-width: 640px) {
  .promo-wrap { padding-top: 28px; }
  .promo-h h2 { font-size: 24px; }
  .promo-nav { display: none; }
  .promo-rail { grid-auto-columns: 84%; gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .promo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; border-radius: 22px; }
  .promo-art { order: -1; aspect-ratio: 16 / 9; }
  .promo-art img { -webkit-mask-image: none; mask-image: none; object-position: 50% 55%; }
  .promo-tx { padding: 4px 18px 18px; }
  .promo-tx b { font-size: 19px; }
  .promo-tx > span { font-size: 14px; }
  .promo-tx em { margin-top: 6px; }
  .sit-art { width: 76px; height: 76px; border-radius: 20px; }
  .pagehead-art .sit-art { width: 92px; height: 92px; border-radius: 24px; }
}

/* ---------- Applying for a child ---------- */
.for-whom { display: grid; gap: 10px; margin-bottom: 16px; }
.for-whom > b { font-size: 15px; }
.fw-opts { display: grid; gap: 8px; }
.fw-opts a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.fw-opts a:hover { border-color: var(--lapis-100); background: var(--lapis-50); color: var(--ink); }
.fw-opts a.on { border-color: var(--lapis); background: var(--lapis-50); box-shadow: inset 0 0 0 1px var(--lapis); }
.fw-opts .ava { width: 38px; height: 38px; font-size: 14px; flex: none; }
.fw-opts a > span:last-child { display: grid; line-height: 1.25; }
.fw-opts small { color: var(--muted); font-size: 13px; }
.elig.info { background: var(--lapis-50); color: var(--ink); display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; }
.elig.info .ic { color: var(--lapis); }
.for-kid { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--lapis-50); border: 1px solid var(--lapis-100); max-width: 560px; }
.for-kid .ava { width: 44px; height: 44px; flex: none; }
.for-kid > span:nth-child(2) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.for-kid small { color: var(--muted); font-size: 13px; }
.for-kid a { font-weight: 600; font-size: 14px; }
.al-kid { display: inline-flex; align-items: center; gap: 5px; color: var(--lapis) !important; font-weight: 600; }
.al-kid .ic { width: 15px; height: 15px; }
.ah-kid { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; padding: 8px 12px; border-radius: 12px; background: var(--lapis-50); color: var(--ink); text-decoration: none; font-size: 15px; }
.ah-kid .ava { width: 30px; height: 30px; font-size: 12px; }
.ah-kid > span:nth-child(2) { flex: 1; }
.kid-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.kid-svcs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.kid-svcs a:hover { border-color: var(--lapis-100); background: var(--lapis-50); color: var(--ink); }
.kid-svcs a > span:nth-child(2) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.kid-svcs b { font-weight: 600; font-size: 15px; }
.kid-svcs small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-svcs a.todo small { color: #A15C07; }
.kid-svcs > a > .ic { color: var(--faint, #9AA3B5); width: 18px; height: 18px; flex: none; }
.ks-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--lapis-50); color: var(--lapis); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ks-ic .ic { width: 22px; height: 22px; }
.kid-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.kid-stat > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tile); align-items: start; }
.kid-stat .ic { grid-row: span 2; color: var(--lapis); width: 22px; height: 22px; margin-top: 2px; }
.kid-stat dt { font-size: 13px; color: var(--muted); }
.kid-stat dd { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.kid-stat .none dd { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .kid-svcs, .kid-stat { grid-template-columns: 1fr; }
}
