/* Kraga Console: Kraga orijinal tasarım dili (lacivert gece, tek mavi vurgu, renk yalnız durum bildirir). */
:root {
  color-scheme: dark;
  --bg: #060914;
  --surface: #0b1120;
  --card: linear-gradient(180deg, rgba(14, 21, 39, .9), rgba(9, 14, 27, .9));
  --card-in: linear-gradient(180deg, rgba(18, 27, 50, .7), rgba(11, 17, 32, .7));
  --input: #070b17;
  --code: #060a15;
  --line: rgba(185, 202, 255, .1);
  --line-in: rgba(185, 202, 255, .09);
  --line-hover: rgba(91, 156, 255, .32);
  --accent: #5b9cff;
  --accent-deep: #2463f2;
  --accent-edge: #1a4ccf;
  --blue-text: #b9d0ff;
  --blue-soft: rgba(91, 156, 255, .14);
  --h: #f4f7ff;
  --text: #c4cde3;
  --muted: #8c98b6;
  --dim: #66728f;
  --ok: #6ee7b7;
  --ok-bg: rgba(16, 185, 129, .1);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, .1);
  --err: #f87171;
  --err-bg: rgba(239, 68, 68, .1);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Manrope', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1100px circle at 50% -24%, rgba(47, 107, 255, .14), transparent 68%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 500 14px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(47, 107, 255, .38); }
a { color: var(--blue-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--h); letter-spacing: -.015em; margin: 0; font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
* { scrollbar-width: thin; scrollbar-color: rgba(185, 202, 255, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(185, 202, 255, .16); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; transition: opacity .25s; }
.boot img { opacity: .9; animation: breathe 1.6s ease-in-out infinite; }
.boot.out { opacity: 0; pointer-events: none; }
@keyframes breathe { 50% { opacity: .35; } }

/* ── Düğmeler ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)); box-shadow: rgba(255, 255, 255, .1) 0 1px 0 inset; color: var(--h); font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: filter .15s, border-color .15s; }
.btn:hover { border-color: var(--line-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: linear-gradient(#5b9cff, #2463f2); border-color: var(--accent-edge); color: #fff; box-shadow: rgba(255, 255, 255, .38) 0 1px 0 inset, rgba(0, 0, 0, .14) 0 -1px 0 inset, rgba(0, 0, 0, .4) 0 1px 2px, rgba(36, 99, 242, .34) 0 8px 18px -6px; }
.btn.primary:hover { filter: brightness(1.1); border-color: var(--accent-edge); }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: rgba(248, 113, 113, .4); }
.btn.sm { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; }
.btn.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--h); background: rgba(255, 255, 255, .05); }
.btn.block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--h); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.icon-btn svg { width: 16px; height: 16px; }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ── Girişler ── */
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--input); color: var(--h); outline: none; transition: border-color .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: rgba(91, 156, 255, .55); box-shadow: 0 0 0 3px rgba(91, 156, 255, .12); }
.input::placeholder { color: var(--dim); }
select.input { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c98b6' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
select.input option { background: #0b1120; color: var(--h); }
.input-affix { position: relative; }
.input-affix > b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.input-affix > .input { padding-left: 28px; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* ── Giriş ekranı ── */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; width: 100%; margin: 0 auto; padding: 22px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--h); text-decoration: none !important; }
.brand img { display: block; }
.brand .brand-bird { width: 28px; height: 28px; object-fit: contain; }
.brand .brand-word { width: auto; height: 26px; }
.brand .tag { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font: 700 14px var(--body); }
.auth-links { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-links a { color: var(--text); font-weight: 600; font-size: 13.5px; padding: 7px 10px; border-radius: 9px; }
.auth-links a:hover { background: rgba(255, 255, 255, .05); text-decoration: none; color: var(--h); }
.auth-main { display: grid; place-items: center; padding: 24px 16px 48px; }
.auth-box { width: 100%; max-width: 392px; text-align: center; }
.auth-box h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; }
.auth-box > p { margin: 12px auto 28px; max-width: 300px; color: var(--muted); }
.auth-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; display: grid; gap: 12px; }
.auth-card .btn { height: 40px; }
.google-btn img { width: 16px; height: 16px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-legal { margin: 2px 0 0; color: var(--dim); font-size: 12px; text-align: center; line-height: 1.6; }
.auth-msg { min-height: 0; font-size: 13px; text-align: center; color: var(--muted); }
.auth-msg.err { color: var(--err); }
.auth-msg.ok { color: var(--ok); }
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(6, 10, 22, .8); border: 1px solid var(--line); }
.seg button { flex: 1; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; padding: 0 10px; }
.seg button:hover { color: var(--h); }
.seg button.on { background: rgba(91, 156, 255, .18); border-color: rgba(91, 156, 255, .35); color: var(--h); }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue-text); font-weight: 700; cursor: pointer; font-size: 13px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-foot { padding: 18px; text-align: center; color: var(--dim); font-size: 12px; }

/* ── Uygulama iskeleti ── */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.col { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); background: rgba(6, 9, 20, .72); backdrop-filter: blur(10px); }
.side .brand { padding: 4px 8px 14px; }
.side .brand { gap: 8px; }
.side .brand .brand-word { height: 24px; }
.side .brand .tag { font-size: 13px; }
.nav-group { display: grid; gap: 1px; margin-bottom: 10px; }
.nav-group > small { padding: 6px 10px 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--text); font-weight: 600; border: 1px solid transparent; }
.nav a svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .04); color: var(--h); text-decoration: none; }
.nav a.on { background: rgba(91, 156, 255, .14); border-color: rgba(91, 156, 255, .26); color: var(--h); }
.nav a.on svg { color: var(--blue-text); }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.side-bal { display: block; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-in); color: var(--text); }
.side-bal:hover { border-color: var(--line-hover); text-decoration: none; }
.side-bal small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.side-bal b { color: var(--h); font-size: 17px; font-weight: 800; }
.who-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: left; cursor: pointer; color: var(--text); }
.who-btn:hover { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); font-weight: 800; font-size: 12px; }
.who-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }

.main { min-width: 0; padding: 28px 36px 64px; }
.page { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Kartlar ve ızgaralar ── */
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px 20px; min-width: 0; }
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 10px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 20px) / 3)), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(max(320px, calc((100% - 10px) / 2)), 1fr)); }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.stat small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.stat b { display: block; margin-top: 6px; color: var(--h); font: 800 26px/1.15 var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.stat span { display: block; margin-top: 4px; color: var(--dim); font-size: 12.5px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 16px; align-items: start; }

/* ── Tablolar ── */
.table-wrap { overflow-x: auto; margin: 0 -20px -18px; border-top: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; padding: 10px 14px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); background: rgba(6, 10, 22, .35); }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-in); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: rgba(91, 156, 255, .035); }
.t th:first-child, .t td:first-child { padding-left: 20px; }
.t th:last-child, .t td:last-child { padding-right: 20px; }
.t .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .h { color: var(--h); font-weight: 700; }
.t .sub { color: var(--dim); font-size: 12px; }
.t .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--h); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ── Rozet, ilerleme ── */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border-color: rgba(110, 231, 183, .22); }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(251, 191, 36, .22); }
.badge.err { color: var(--err); background: var(--err-bg); border-color: rgba(248, 113, 113, .22); }
.badge.blue { color: #cfe0ff; background: var(--blue-soft); border-color: rgba(91, 156, 255, .25); }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b9cff, #2463f2); }
.bar.full > i { background: #f59e0b; }
.kv { display: grid; gap: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.kv dt, .kv > div > span:first-child { color: var(--muted); }
.kv b { color: var(--h); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 13px; }
.note.small { font-size: 12px; color: var(--dim); }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ── Kod kutusu ── */
.code { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--code); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 10px; border-bottom: 1px solid var(--line); }
.code-head .seg { background: none; border: 0; padding: 0; }
.code-head .seg button { height: 26px; font-size: 12px; flex: none; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 12.5px/1.7 var(--mono); color: #c9d4ea; white-space: pre; }
.code .k { color: #8fb8ff; } .code .s { color: #9fd4a8; } .code .c { color: #66718c; font-style: italic; }

/* ── Grafik ── */
.chart { position: relative; height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: rgba(185, 202, 255, .07); }
.chart .ax { fill: var(--dim); font: 600 10.5px var(--body); }
.chart rect.b { fill: url(#barGrad); }
.chart rect.b.err { fill: rgba(248, 113, 113, .65); }
.chart rect.hit { fill: transparent; cursor: default; }
.chart rect.hit:hover + rect.b, .chart g.col:hover rect.b { filter: brightness(1.25); }
.chart-tip { position: absolute; pointer-events: none; z-index: 3; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #0d1428; color: var(--text); font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.chart-tip b { color: var(--h); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--accent); vertical-align: -1px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .input { height: 34px; width: auto; min-width: 150px; font-size: 13px; }

/* ── Menü, modal, bildirim ── */
.menu { position: fixed; z-index: 40; min-width: 190px; padding: 5px; border-radius: 12px; border: 1px solid var(--line); background: #0c1326; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.menu button { display: flex; width: 100%; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
.menu button:hover { background: rgba(255, 255, 255, .05); color: var(--h); }
.menu button.danger { color: var(--err); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 2px; }
.modal-back { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 12, .66); backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #0a1020; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.modal.wide { max-width: 720px; }
.modal h2 { font-size: 19px; margin-bottom: 6px; }
.modal > p { margin: 0 0 16px; color: var(--muted); }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.secret { display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 11px; border: 1px solid rgba(91, 156, 255, .3); background: var(--code); }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--h); font-size: 12.5px; }
.warnbox { margin-top: 12px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(251, 191, 36, .22); background: var(--warn-bg); color: #fde7a8; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 11px; border: 1px solid var(--line); background: #0d1428; color: var(--h); font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(248, 113, 113, .35); color: #fecaca; }

/* ── Deneme alanı ── */
.wb { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.wb-set { display: grid; gap: 14px; position: sticky; top: 20px; }
.wb-chat { display: flex; flex-direction: column; min-height: 560px; padding: 0; overflow: hidden; }
.wb-msgs { flex: 1; padding: 18px 20px; display: grid; gap: 14px; align-content: start; overflow: auto; max-height: calc(100vh - 260px); min-height: 380px; }
.msg { display: grid; gap: 5px; }
.msg > small { color: var(--muted); font-weight: 700; font-size: 12px; }
.msg > div { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-in); background: var(--card-in); color: var(--h); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.msg.user > div { background: rgba(91, 156, 255, .1); border-color: rgba(91, 156, 255, .22); }
.msg.err > div { color: #fecaca; border-color: rgba(248, 113, 113, .3); background: var(--err-bg); }
.msg .meta { color: var(--dim); font-size: 12px; }
.wb-input { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.wb-input textarea { min-height: 70px; }
.wb-input .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--blue-text); vertical-align: -2px; animation: breathe 1s infinite; }

/* ── Telefon ── */
.mtop { display: none; }
.mnav { display: none; }
@media (max-width: 980px) {
  .wb { grid-template-columns: minmax(0, 1fr); }
  .wb-set { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mtop { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(6, 9, 20, .9); backdrop-filter: blur(10px); }
  .mtop .brand .brand-bird { width: 24px; height: 24px; }
  .mtop .brand .brand-word { height: 22px; }
  .main { padding: 20px 16px calc(88px + env(safe-area-inset-bottom)); }
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(6, 9, 20, .94); backdrop-filter: blur(12px); }
  .mnav a, .mnav button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .mnav svg { width: 20px; height: 20px; }
  .mnav .on { color: var(--h); }
  .mnav .on svg { color: var(--blue-text); }
  .page-head h1 { font-size: 22px; }
  .table-wrap { margin: 0 -16px -16px; }
  .card { padding: 16px; }
  .t th:first-child, .t td:first-child { padding-left: 16px; }
  .t th:last-child, .t td:last-child { padding-right: 16px; }
  .wb-msgs { max-height: none; }
}
@media (max-width: 640px) {
  .grid.two, .grid.stats { grid-template-columns: minmax(0, 1fr); }
  .auth-links { display: none; }
  .auth-box h1 { font-size: 28px; }
  .hide-sm { display: none; }
  .toolbar .input { min-width: 0; flex: 1 1 140px; }
  .modal .row .btn { flex: 1 1 auto; }
}
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; border: 1px solid var(--line); background: #0a1020; }
.sheet .nav a { height: 44px; }
@media (min-width: 2400px) { html { zoom: 1.25; } }
@media (min-width: 3000px) { html { zoom: 1.5; } }
@media (min-width: 3600px) { html { zoom: 1.8; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
