/* Жүйрік — shared styles for passenger, driver and dispatcher apps.
   Layout: full-bleed map; one floating sheet (bottom on phones, left card on desktop). */
:root {
  --bg: #E9EEEB; --panel: #FFFFFF; --panel-2: #F1F5F3; --ink: #13242B; --muted: #5A6C73; --line: #DCE4E1;
  --accent: #E0442E; --accent-ink: #FFFFFF; --accent-soft: #FCE9E5; --sky: #138FA2; --sky-soft: #DCF0F3;
  --ok: #1E9A69; --ok-soft: #E1F4EB; --warn: #B7791F; --warn-soft: #FBF0DC; --star: #F2B230;
  --scrim: rgba(10, 20, 24, .45); --toast-bg: #13242B; --toast-fg: #FFFFFF;
  --map-bg: #E4EAE6;
  --shadow: 0 12px 32px rgba(19, 36, 43, .16), 0 2px 6px rgba(19, 36, 43, .08);
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1517; --panel: #152024; --panel-2: #1C2A2F; --ink: #E5EDEF; --muted: #95A8AF; --line: #283A41;
    --accent: #FF5B42; --accent-ink: #FFFFFF; --accent-soft: #3A211C; --sky: #43C4D7; --sky-soft: #163539;
    --ok: #3CC48D; --ok-soft: #133226; --warn: #E9B04F; --warn-soft: #3A2D14; --star: #F5BE45;
    --scrim: rgba(0, 0, 0, .55); --toast-bg: #E5EDEF; --toast-fg: #0D1517; --map-bg: #111B1E;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.4 var(--f-body); -webkit-font-smoothing: antialiased; }
body.app { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font: 600 19px/1.3 var(--f-display); letter-spacing: -.01em; }
h3 { font: 600 15px/1.3 var(--f-body); }
p { margin: 0; }
.sub { color: var(--muted); }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

/* map */
.map { position: fixed; inset: 0; background: var(--map-bg); z-index: 0; }
.map-fallback { display: grid; place-items: center; background:
  repeating-linear-gradient(0deg, transparent 0 46px, var(--line) 46px 48px),
  repeating-linear-gradient(90deg, transparent 0 46px, var(--line) 46px 48px), var(--map-bg); }
.map-fallback-msg { max-width: 280px; margin-bottom: 40vh; background: var(--panel); border-radius: 14px; padding: 12px 14px; text-align: center; color: var(--muted); font-size: 13.5px; box-shadow: var(--shadow); }
.leaflet-container { font: inherit; background: var(--map-bg); }
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: brightness(.72) contrast(1.1) saturate(.7) invert(.92) hue-rotate(180deg); } }
.mk { background: none; border: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pin-a { background: var(--sky); }
.pin-b { background: var(--accent); width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); }
.car { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; transition: transform .6s linear; }
.car svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.me-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--sky); border: 3px solid var(--panel); box-shadow: 0 0 0 8px color-mix(in srgb, var(--sky) 25%, transparent); }

/* top bar */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; background: var(--panel); padding: 6px 14px 6px 6px; border-radius: 999px; box-shadow: var(--shadow); }
.mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 17px/1 var(--f-display); }
.word { font: 700 16px/1 var(--f-display); letter-spacing: -.01em; }
.tag { font: 600 11px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--sky); background: var(--sky-soft); padding: 5px 8px; border-radius: 999px; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border-radius: 999px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 600; font-variant-numeric: tabular-nums; }

/* sheet */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--panel); border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  max-height: 68%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px;
  padding-top: 8px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sheet::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line); flex: none; }
.sheet.full { max-height: 92%; }
@media (min-width: 860px) {
  .sheet { left: max(20px, env(safe-area-inset-left, 0px)); right: auto; top: calc(80px + env(safe-area-inset-top, 0px)); bottom: auto; width: 400px;
    max-height: calc(100% - 100px - env(safe-area-inset-top, 0px)); border-radius: 22px; padding: 20px; }
  .sheet::before { display: none; }
  .sheet.full { max-height: calc(100% - 100px); }
}

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { color: var(--muted); font-size: 13.5px; }
.input { width: 100%; border: 1.5px solid var(--line); background: var(--panel); border-radius: 14px; padding: 13px 14px; font-size: 16px; outline: none; }
.input:focus { border-color: var(--sky); }
.input.big { font: 600 22px/1.2 var(--f-body); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
select.input { appearance: auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--accent); font-size: 13.5px; }
.hint { background: var(--warn-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }

.cta { border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); min-height: 54px; padding: 0 18px; font: 600 16px/1 var(--f-body);
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; flex: none; }
.cta[disabled] { opacity: .45; cursor: not-allowed; }
.cta.ok { background: var(--ok); }
.cta.sky { background: var(--sky); }
.cta .p { font: 600 15px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ghost { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 14px; min-height: 48px; padding: 0 16px; font-weight: 600; width: 100%; flex: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ghost.danger { color: var(--accent); }
.linkbtn { border: 0; background: none; color: var(--sky); font-weight: 600; padding: 6px 0; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.danger-btn { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 12px; min-height: 44px; font-weight: 600; }
.plain-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; min-height: 44px; font-weight: 600; }
.confirm { display: flex; flex-direction: column; gap: 10px; background: var(--accent-soft); border-radius: 16px; padding: 14px; }
.confirm p { font-weight: 600; }

/* addresses */
.addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.fields { display: flex; flex-direction: column; background: var(--panel-2); border-radius: 16px; min-width: 0; }
.afield { display: flex; align-items: center; gap: 12px; padding: 0 4px 0 14px; min-height: 52px; }
.afield + .afield { border-top: 1px solid var(--line); }
.afield:focus-within { box-shadow: inset 0 0 0 2px var(--sky); border-radius: 16px; }
.afield input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px/1.2 var(--f-body); padding: 14px 0; outline: none; text-overflow: ellipsis; }
.afield input::placeholder { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot.a { background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.dot.b { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.smallbtn { width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; }
.smallbtn svg.i { width: 19px; height: 19px; }
.swap { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: grid; place-items: center; }
.suggest { grid-column: 1 / -1; list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; max-height: 300px; overflow: auto; }
.suggest button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
.suggest button:hover, .suggest button.on { background: var(--panel-2); }
.sg-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); flex: none; color: var(--muted); }
.sg-ic svg.i { width: 16px; height: 16px; }
.sg-txt { display: flex; flex-direction: column; min-width: 0; }
.sg-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-empty { padding: 10px; color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.meta b { color: var(--ink); font-weight: 600; }

.tariffs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(122px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.tariffs::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .tariffs { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; } }
.tf { scroll-snap-align: start; text-align: left; border: 1.5px solid var(--line); background: var(--panel); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.tf[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tf-name { font-weight: 600; font-size: 14px; }
.tf-price { font: 600 17px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.tf-eta { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 9px; font-weight: 500; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* order states */
.status { display: flex; align-items: center; gap: 14px; }
.radar { width: 52px; height: 52px; border-radius: 50%; background: var(--sky-soft); position: relative; flex: none; display: grid; place-items: center; }
.radar::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sky); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.trip { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; min-width: 0; }
.trip .pts { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.trip .pts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.trip .pr { font: 600 15px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--sky-soft); color: var(--sky); display: grid; place-items: center; font: 700 17px/1 var(--f-display); flex: none; }
.pname { font-weight: 600; font-size: 16px; }
.prating { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.carline { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-2); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.plate { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 7px; font: 600 15px/1 var(--f-body); letter-spacing: .05em; overflow: hidden; font-variant-numeric: tabular-nums; background: var(--panel); }
.plate .n { padding: 7px 8px; }
.plate .r { border-left: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 6px; font-size: 12px; gap: 1px; }
.plate .r small { font-size: 8px; letter-spacing: .1em; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.act { border: 0; background: var(--panel-2); color: var(--ink); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; text-decoration: none; }
.act.danger { color: var(--accent); }
.stars { display: flex; gap: 4px; justify-content: center; }
.stars button { border: 0; background: transparent; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.stars svg { width: 34px; height: 34px; fill: var(--line); }
.stars button.on svg { fill: var(--star); }
.big-price { font: 700 32px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--accent-soft); color: var(--accent); }
.badge.info { background: var(--sky-soft); color: var(--sky); }
.badge.muted { background: var(--panel-2); color: var(--muted); }
.progress { height: 6px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 6px; width: 0; transition: width .3s linear; }

/* popover, toast, overlay */
.pop { position: fixed; z-index: 7; width: 250px; background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pop-addr { font-weight: 600; font-size: 14.5px; }
.pop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop-btns button { border: 0; border-radius: 11px; min-height: 40px; font-weight: 600; font-size: 13.5px; }
.pop-btns .pa { background: var(--sky-soft); color: var(--sky); }
.pop-btns .pb { background: var(--accent); color: var(--accent-ink); }
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: calc(70px + env(safe-area-inset-top, 0px)); background: var(--toast-bg); color: var(--toast-fg);
  padding: 10px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow); max-width: min(440px, calc(100% - 32px)); text-align: center; }
.overlay { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: flex; justify-content: flex-end; }
.panel { background: var(--panel); width: min(440px, 100%); height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
  padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.item .top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.item .rt { font-weight: 600; overflow-wrap: anywhere; }
.item .bot { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; align-items: center; }
.item .bot b { font: 600 14px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); text-align: center; padding: 24px 10px; }

/* driver */
.online-btn { border: 0; border-radius: 18px; min-height: 64px; font: 700 18px/1 var(--f-display); width: 100%; background: var(--ok); color: #fff; }
.online-btn.off { background: var(--panel-2); color: var(--ink); border: 1.5px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel-2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font: 600 16px/1.2 var(--f-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { color: var(--muted); font-size: 12px; }
.offer { border: 2px solid var(--accent); }
.offer-price { font: 700 34px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.timer { height: 8px; background: var(--panel-2); border-radius: 8px; overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--accent); width: 100%; }
.where { display: flex; gap: 12px; align-items: flex-start; }
.where .dot { margin-top: 6px; }
.where b { display: block; font-size: 16px; }
.where span { color: var(--muted); font-size: 13.5px; }
.navs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.navs .ghost { padding: 0 8px; font-size: 14px; gap: 6px; }
.navs .ghost svg.i { width: 18px; height: 18px; }
.cash { background: var(--warn-soft); border-radius: 16px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cash b { font: 700 28px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }

/* admin */
body.admin { overflow: auto; }
.adm-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line);
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.admin::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--panel); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); }
.adm-main { padding-block: 18px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font: 600 22px/1.15 var(--f-display); font-variant-numeric: tabular-nums; }
.card { background: var(--panel); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-map { height: 420px; border-radius: 14px; overflow: hidden; position: relative; }
.adm-map .map { position: absolute; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; }
td .small { color: var(--muted); font-size: 12.5px; }
td input.input { padding: 8px 10px; font-size: 14px; border-radius: 10px; width: 100px; }
.tbtn { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 10px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.tbtn.ok { color: var(--ok); }
.tbtn.bad { color: var(--accent); }
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card { background: var(--panel); border-radius: 22px; padding: 24px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
