/* МобіКС 1.0 — дизайн-токени і компоненти (база — прототип Den, tma.src) */
:root {
  --mobi: #E4803A; --mobi-50: #FDF3EB; --mobi-100: #FAE1CD; --mobi-600: #C9692A; --mobi-700: #A8541D;
  --ks: #3576CE; --ks-50: #EEF4FC; --ks-100: #D6E4F7; --ks-300: #8DB2E6; --ks-600: #2A61AE; --ks-700: #1F4C8C;
  --dot: #EFD547; --dot-50: #FDF9E4; --dot-100: #FAF0B5; --dot-700: #6E5C00; --dot-line: #F3E6A0;
  --ink: #16181D; --ink-2: #4A505C; --muted: #6B7280; --off: #A3A9B5; --line: #E4E7EC; --bg: #F6F7F9;
  --surface: #FFFFFF; --on-ink: #FFFFFF;
  --ok: #1F8A5B; --ok-50: #E8F5EE; --ok-700: #17694A; --err: #C8372A; --err-700: #A52C21; --err-line: #F5C9C4;
  --warn-50: #FDF9E4; --warn-700: #6E5C00;
  --f-head: 'Nunito', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tabbar-h: 64px;
  --tg-top: 0px; --tg-bottom: 0px; /* fullscreen Telegram, ставить app.js */
  --safe-b: max(env(safe-area-inset-bottom), var(--tg-bottom));
}
[data-theme="dark"] {
  --bg: #16181D; --surface: #1F2228; --ink: #F2F3F5; --ink-2: #C4C9D2; --muted: #A3A9B5; --off: #5B616E; --line: #31353E;
  --on-ink: #16181D;
  --ks-50: rgba(53,118,206,.18); --ks-100: #2B4A75; --ks-600: #7AA8EA; --ks-700: #A9C6F0;
  --mobi-50: rgba(228,128,58,.16); --mobi-600: #F09A5C; --mobi-700: #F4B183;
  --dot-50: rgba(239,213,71,.10); --dot-line: rgba(239,213,71,.3); --dot-700: #EFD547;
  --ok-50: rgba(31,138,91,.2); --ok-700: #5CC98A; --err-700: #FF8A80; --err-line: #6B2A25;
  --warn-50: rgba(239,213,71,.12); --warn-700: #F5E2A0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased; min-width: 320px;
}
h1, h2, h3, .num { font-family: var(--f-head); font-weight: 900; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.25; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ks-600); }
:focus-visible { outline: 2px solid var(--ks); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Каркас */
.app { max-width: 420px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding: 8px 16px calc(var(--tabbar-h) + 24px + var(--safe-b)); }
.app.no-tabs .main { padding-bottom: 24px; }
.pad { display: flex; flex-direction: column; gap: 14px; }

/* Шапка: вордмарк і перемикач */
.topbar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: calc(6px + var(--tg-top)) 12px 0 16px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.topbar-spacer { flex: 1; }
.ibtn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.ibtn:active { background: var(--line); }
.idot { position: relative; display: inline-block; line-height: 1; }
.idot i { position: absolute; left: .145em; top: .065em; width: .2em; height: .2em; margin-left: -.1em; border-radius: 50%; background: #EFD547; }
.wm { display: inline-flex; align-items: baseline; font: 900 24px var(--f-head); line-height: 1; letter-spacing: -.04em; user-select: none; }
.wm .m { color: var(--mobi); } .wm .k { color: var(--ks); }
[data-theme="dark"] .wm .k { color: #5B93E0; }

/* Таб-бар (іконка + індикатор зверху) */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 420px; z-index: 10;
  height: calc(var(--tabbar-h) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: var(--safe-b); }
.tabs button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
.tabs button.on { color: var(--ks-600); }
.tabs button.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ks); }

/* Кнопки-пігулки 52 / 44 / 36 */
.btn { height: 52px; border: 0; border-radius: 999px; background: var(--ks); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 0 20px; }
.btn:active { filter: brightness(.92); }
.btn.sec { background: var(--surface); color: var(--ks-600); border: 1.5px solid var(--ks-100); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.md { height: 44px; font-size: 15px; }
.btn.sm { height: 36px; font-size: 14px; width: auto; padding: 0 16px; }
.btn.promo { background: #A8541D; }
.btn.danger { background: var(--surface); color: var(--err-700); border: 1.5px solid var(--err-line); }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line); cursor: default; filter: none; }
.btn-row { display: flex; gap: 8px; } .btn-row > .btn { flex: 1; }

/* Поверхні, теги */
.card { background: var(--surface); border-radius: 20px; padding: 16px; }
.card.tint { background: var(--bg); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.t-ok { background: var(--ok-50); color: var(--ok-700); }
.t-off { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.t-ks { background: var(--ks-50); color: var(--ks-700); }
.t-mobi { background: var(--mobi-50); color: var(--mobi-700); }
.t-dot { background: var(--dot); color: #16181D; font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .sub { color: var(--ink-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .16em; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.sec-title { font: 900 18px/1.2 var(--f-head); letter-spacing: -.02em; margin: 6px 2px -4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* MobiKS-монетки */
.coins { display: inline-flex; align-items: center; gap: 6px; background: var(--dot-50); border: 1px solid var(--dot-line); border-radius: 999px; padding: 5px 12px 5px 5px; white-space: nowrap; }
.coins i { width: 22px; height: 22px; border-radius: 50%; background: var(--dot); color: #16181D; display: flex; align-items: center; justify-content: center; font: 900 11px var(--f-head); font-style: normal; }
.coins b { font-size: 16px; }

/* Знижка-плитка */
.disc { background: var(--surface); border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.disc .v { min-width: 62px; font: 900 24px var(--f-head); letter-spacing: -.03em; color: var(--mobi-600); }
.disc b { font-weight: 600; }
.disc.used { opacity: .6; } .disc.used .v { color: var(--off); text-decoration: line-through; }

/* Картка лояльності */
.lcard { position: relative; width: 100%; aspect-ratio: 340/214; border-radius: 20px; overflow: hidden; border: 0; padding: 0; text-align: left; display: block; font: inherit; }
.lcard svg.m { position: absolute; inset: 0; width: 100%; height: 100%; }
.lcard .in { position: relative; height: 100%; padding: 16px 16px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.lcard .strip { height: 31%; background: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #16181D; padding: 6px 14px 5px; }
.lcard .strip svg { width: 100%; flex: 1; min-height: 0; display: block; }
.lcard .strip .mono { font-size: 11px; line-height: 1; }

/* Каса на весь екран (vCashier) */
.cashier { position: fixed; inset: 0; background: #fff; color: #16181D; z-index: 50; display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
  padding: calc(16px + max(env(safe-area-inset-top), var(--tg-top))) 16px calc(24px + var(--safe-b)); }
/* правило 2 studio-ui: на широкому екрані (Telegram Desktop) вміст каси — колонкою ≤ 420 по центру */
.cashier > * { width: 100%; max-width: 420px; margin-inline: auto; }
.cashier .bcwrap { border: 1px solid #E4E7EC; border-radius: 20px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cashier .bcbox { width: 100%; max-width: 640px; height: 140px; }
.cashier .bcbox svg { width: 100%; height: 100%; display: block; }
.cashier .code { font-size: 20px; color: #16181D; }
@media (orientation: landscape) { .cashier .bcbox { height: 40vh; } }

/* Екран акції з розсилки (?cmp=<id>, MOBI/TASK11) — поверх вкладки, ширина як у застосунку */
.promo { position: fixed; inset: 0; z-index: 45; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.promo.on { opacity: 1; transform: none; }
.promo-in { width: 100%; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding: calc(8px + max(env(safe-area-inset-top), var(--tg-top))) 16px calc(24px + var(--safe-b)); }
.promo-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 28px rgba(22,24,29,.14); }
.promo-txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.promo-txt b { font-weight: 700; }
.promo .ibtn { transition: background .25s; }

/* Прогрес рівня */
.progress { height: 10px; background: var(--ks-50); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--ks); border-radius: inherit; }

/* Метрики */
.metric small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.metric .num { font-size: 26px; line-height: 1.15; }
.metric .num em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 800; }

/* Списки */
.list { background: var(--surface); border-radius: 20px; overflow: hidden; }
.li { padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.li + .li { border-top: 1px solid var(--line); }
.li .t { font-weight: 600; }
.li .s { font-size: 13px; color: var(--muted); }
.lic { width: 40px; height: 40px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--bg); color: var(--ink-2); }
.lic.plus { background: var(--ok-50); color: var(--ok-700); }
.lic.ref { background: var(--dot-50); color: var(--dot-700); }
.lic.minus { background: var(--mobi-50); color: var(--mobi-700); }
.amt { font: 900 17px/1 var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.plus { color: var(--ok); } [data-theme="dark"] .amt.plus { color: var(--ok-700); }
details.card { padding: 0; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] .chev { transform: rotate(180deg); }
.chev { color: var(--muted); transition: transform .25s; display: flex; }

/* Сегменти, чіпи, перемикач */
.seg { display: flex; background: #E9EBEF; border-radius: 999px; padding: 3px; }
[data-theme="dark"] .seg { background: var(--line); }
.seg button { flex: 1; height: 36px; border: 0; border-radius: 999px; background: transparent; font: 900 14px var(--f-head); color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22,24,29,.12); }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* Друзі: плитки поширення */
.reftile { height: 68px; border-radius: 16px; border: 1.5px solid var(--ks-100); background: var(--surface); color: var(--ks-600);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; }
.reftile:active { background: var(--ks-50); }
.reftile.pri { background: var(--ks); border-color: var(--ks); color: #fff; }
.linkbox { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 12px; letter-spacing: .02em; word-break: break-all; color: var(--ink-2); }

/* Поля */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input, .select { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background-color: var(--surface); padding: 0 14px; font-size: 16px; width: 100%; outline: none; min-width: 0; }
.select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; text-overflow: ellipsis; }
.input:focus, .select:focus { border-color: var(--ks); box-shadow: 0 0 0 4px var(--ks-100); }
.input.r { text-align: right; font-variant-numeric: tabular-nums; }

/* Каса */
.search { display: flex; gap: 8px; }
.search .input { flex: 1; }
.search .ibtn { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ks-50); color: var(--ks-600); }
.ava { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 900 18px/1 var(--f-head); flex: none; }
.ava.lv-start { background: #FAF0B5; color: #6E5C00; } .ava.lv-silver { background: #3576CE; color: #fff; } .ava.lv-gold { background: #16181D; color: #EFD547; }
[data-theme="dark"] .ava.lv-gold { background: #000; box-shadow: inset 0 0 0 1px #3A3F4A; }
.line { display: grid; grid-template-columns: 1fr 104px 36px; gap: 8px; align-items: center; }
.line + .line { margin-top: 8px; }
.line .ibtn { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); }
.summary .srow { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.summary .srow.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font: 900 22px/1.2 var(--f-head); }
.summary .srow.total .v { color: var(--mobi-600); }
.summary .srow.dsc .v { color: var(--ok); font-weight: 600; }
[data-theme="dark"] .summary .srow.dsc .v { color: var(--ok-700); }
.summary.loading { opacity: .55; transition: opacity .25s; }
.warn { background: var(--warn-50); color: var(--warn-700); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; }
.warn svg { flex: none; margin-top: 2px; }
.error-box { color: var(--err-700); font-size: 14px; font-weight: 500; }

/* QR */
.qrbox { background: #fff; border-radius: 20px; padding: 10px; width: min(260px, 100%); margin: 0 auto; box-shadow: 0 0 0 1.5px var(--ks-100); }
.qrbox svg { width: 100%; height: auto; display: block; }

/* Гість (vStart) */
.hero { position: relative; height: 200px; border-radius: 28px; background: #FAF0B5; overflow: hidden; flex: none; }
.hero svg { position: absolute; inset: 0; }
.hero .txt { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; color: #16181D; }
.hero .big { font-size: 60px; line-height: 1; color: #C9692A; }
body:has(.app.white), .app.white .topbar { background: var(--surface); }
.screen-white { background: var(--surface); padding: 8px 0 0; min-height: calc(100vh - 84px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }

/* Bottom-sheet, тост */
.sheet-veil { position: fixed; inset: 0; background: rgba(22,24,29,.35); z-index: 40; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sheet-veil.on { opacity: 1; visibility: visible; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 420px; background: var(--surface); border-radius: 24px 24px 0 0; z-index: 41;
  padding: 18px 18px calc(22px + var(--safe-b)); transform: translate(-50%, 105%); transition: transform .25s, visibility .25s; display: flex; flex-direction: column; gap: 12px; max-height: 85vh; overflow-y: auto; visibility: hidden; }
.sheet.on { transform: translate(-50%, 0); visibility: visible; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; }
.toast { position: fixed; left: 50%; width: calc(100% - 32px); max-width: 388px; bottom: calc(var(--tabbar-h) + 16px + var(--safe-b));
  background: #16181D; color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; z-index: 60;
  transform: translate(-50%, 200px); transition: transform .25s, opacity .25s; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); }
.toast .ok { color: #35C47A; display: flex; } .toast .bad { color: #FF8A80; display: flex; }
[data-theme="dark"] .toast { background: #2A2E36; }

/* Службові */
.loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ks); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo-flag { position: fixed; top: 2px; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--dot); color: #16181D; padding: 2px 8px; border-radius: 999px; z-index: 70; font-weight: 600; pointer-events: none; }

/* Магазини (vStores) */
.stores { margin: -8px -16px 0; }
.stores > .pad { padding: 16px; }
.stores-head { background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.ldot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.map { position: relative; height: 300px; background: #EEF1F5; overflow: hidden; }
.mpin { position: absolute; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(22,24,29,.25); padding: 0; display: flex; align-items: center; justify-content: center; }
.mpin span { border-radius: 50%; background: var(--dot); }
.storerow { border: 1.5px solid transparent; text-align: left; padding: 12px 14px; width: 100%; }
.storerow.on { border-color: var(--ks); }

/* Каса продавця (vSeller) */
.sr { position: absolute; left: -9999px; }
.scanbig { height: 140px; border: 0; border-radius: 24px; background: var(--ks); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 600; width: 100%; }
.scanbig:active { background: var(--ks-600); }
.stat { padding: 12px; }
.stat .num { font-size: 22px; display: block; line-height: 1.2; }
.stat span { font-size: 12px; line-height: 1.3; color: var(--ink-2); display: block; }
.stat.dot { background: var(--dot); } .stat.dot .num, .stat.dot span { color: #16181D; }
.donev { min-height: calc(100vh - 160px); justify-content: center; }
.okcircle { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.okcircle.undo { background: var(--off); }

/* Правила UI студії: курсор, переходи, hover, скрол мишею, помилки полів */
button:disabled, .btn:disabled { cursor: default; }
label, select, summary, [data-store], [data-city], [data-h], [data-tab], .chip, .mpin, .reftile, .scanbig, .storerow, .seg button, .tabs button, .lcard, .ibtn { cursor: pointer; }
button:disabled, .ibtn:disabled { cursor: default; }
.btn, .ibtn, .chip, .seg button, .tabs button, .reftile, .scanbig, .storerow, .card, .li, .disc, .mpin, .input, .select, .lcard, details.card > summary {
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, filter .25s, opacity .25s, transform .25s; }
@media (hover: hover) {
  .btn:not(:disabled):hover { filter: brightness(1.07); box-shadow: 0 2px 10px rgba(22,24,29,.14); }
  .btn.sec:not(:disabled):hover { background: var(--ks-50); filter: none; }
  .btn.ghost:not(:disabled):hover, .btn.danger:not(:disabled):hover { background: var(--line); filter: none; box-shadow: none; }
  .ibtn:not(:disabled):hover { background: var(--line); }
  .chip:hover { border-color: var(--ink-2); }
  .chip.on:hover { border-color: var(--ink); }
  .seg button:not(.on):hover { color: var(--ink); }
  .tabs button:not(.on):hover { color: var(--ink); }
  .reftile:hover { background: var(--ks-50); }
  .reftile.pri:hover { background: var(--ks-600); }
  .scanbig:hover { background: var(--ks-600); }
  .storerow:hover { border-color: var(--ks-300); }
  .lcard:hover { transform: translateY(-1px); }
  .card:has(> summary):hover, details.card > summary:hover { background: var(--bg); }
  .mpin:hover { transform: rotate(-45deg) scale(1.08); }
  .input:hover:not(:focus), .select:hover:not(:focus) { border-color: var(--off); }
}
.hscroll.can-drag { cursor: grab; }
.hscroll.dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
.hscroll.dragging * { pointer-events: none; }
.ferr { grid-column: 1 / -1; color: var(--err-700); font-size: 13px; font-weight: 500; margin-top: -2px; }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--err-line); }
.field .ferr { margin-top: 6px; }
