/* Werracle Orak — yönetim paneli
   Dil: siyah zemin, gümüş metal, logonun kırmızı parıltısı. Düz, sakin yüzeyler; tek vurgulu parça sağlık faktörü ufku.
   Renk anlam taşır: yeşil kâr/sağlıklı, kehribar dikkat, kırmızı tasfiye/hata, mor simülasyon; kırmızı yalnızca marka ve etkileşim. */

:root {
  --ground: #070709;
  --ground-2: #0b0b0e;
  --panel: #101014;
  --raised: #17171c;
  --line: #25252c;
  --line-2: #393943;
  --text: #ededf1;
  --muted: #9b9ca7;
  --faint: #686974;
  --signal: #ff4b57; /* logonun kırmızısı: seçili öğe, bağlantı, odak */
  --signal-fill: #d91f2b; /* birincil düğme dolgusu */
  --metal: #c9ccd3; /* logonun gümüşü: başlık vurgusu */
  --ok: #4fd1a1; /* sağlıklı, kâr, bot aktif */
  --warn: #f2b453; /* testnet, kritik yakınlık */
  --bad: #ff4d4d; /* tasfiye edilebilir, hata */
  --sim: #a995ff; /* simülasyon */
  --radius: 10px;
  --radius-s: 8px;
  --font: 'Hanken Grotesk', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* eski adlar (satır içi stiller ve betik kullanır) */
  --ink: var(--ground);
  --glass: var(--panel);
  --glass-strong: var(--raised);
  --edge: var(--line);
  --edge-hi: var(--line-2);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
h1, h2, h3 { font-family: var(--display); }

/* ------------------------------------------------------------ yerleşim */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 22px; background: radial-gradient(130% 34% at 18% 0%, rgba(255, 40, 55, 0.11), transparent 62%), var(--ground-2); border-right: 1px solid var(--line);
}
.main { padding: 0 30px 40px; max-width: 1360px; min-width: 0; }
.pane > section, .pane > div.card { margin-bottom: 18px; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 40, 55, 0.35)); }
.brand h1 { font-size: 19px; margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.brand p { margin: 1px 0 0; color: var(--muted); font-size: 12.5px; }

/* gezinme */
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: transparent;
  color: var(--muted); padding: 9px 10px 9px 12px; border-radius: var(--radius-s); cursor: pointer; font-weight: 500; font-size: 14.5px;
}
.nav-item svg { flex: none; opacity: 0.85; }
.nav-item:hover { color: var(--text); background: rgba(200, 200, 215, 0.06); }
.nav-item.on { color: var(--text); background: var(--raised); }
.nav-item.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--signal); }
.nav-item.on svg { color: var(--signal); opacity: 1; }

/* durum satırları */
.pills { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.pill { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.sim { background: var(--sim); }
.dot.live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 209, 161, 0.45); } 60% { box-shadow: 0 0 0 6px rgba(79, 209, 161, 0); } }

/* --------------------------------------------------------- komut çubuğu */
.cmdbar {
  position: sticky; top: 0; z-index: 12; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 14px 0 12px; margin-bottom: 18px; background: var(--ground); border-bottom: 1px solid var(--line);
}
.power { display: flex; align-items: center; gap: 13px; min-width: 0; }
.switch {
  position: relative; width: 52px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised);
  cursor: pointer; padding: 0; flex: none; transition: background 0.2s, border-color 0.2s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.switch[aria-checked='true'] { background: rgba(79, 209, 161, 0.22); border-color: rgba(79, 209, 161, 0.6); }
.switch[aria-checked='true']::after { transform: translateX(22px); background: var(--ok); }
.power-text { min-width: 0; }
.power-text b { display: block; font-size: 15px; line-height: 1.25; }
.power-text span { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.segment { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--ground-2); border: 1px solid var(--line); justify-self: center; max-width: 100%; overflow-x: auto; }
.segment button {
  border: 0; background: transparent; padding: 7px 15px; border-radius: 7px; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500;
}
.segment button[aria-pressed='true'] { background: var(--raised); color: var(--text); }
.segment button[data-mode='simulation'][aria-pressed='true'] .dot { background: var(--sim); }
.segment button[data-mode='testnet'][aria-pressed='true'] .dot { background: var(--warn); }
.segment button[data-mode='mainnet'][aria-pressed='true'] .dot { background: var(--ok); }
.segment button:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------------------------------------------------------------- düğmeler */
.btn {
  border: 1px solid var(--line-2); background: var(--raised); padding: 8px 14px; border-radius: var(--radius-s); cursor: pointer;
  font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #212128; border-color: #52525f; text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn.primary { background: var(--signal-fill); border-color: var(--signal-fill); color: #fff; font-weight: 600; box-shadow: 0 0 0 0 rgba(255, 40, 55, 0); }
.btn.primary:hover { background: #ee2a37; border-color: #ee2a37; box-shadow: 0 0 14px rgba(255, 40, 55, 0.35); }
.btn.danger { background: rgba(255, 77, 77, 0.14); border-color: rgba(255, 77, 77, 0.5); color: #ffb3b3; }
.btn.danger:hover { background: rgba(255, 77, 77, 0.22); }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--raised); }

/* ------------------------------------------------------------------ kartlar */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card h2 { font-size: 18px; font-weight: 650; margin: 0 0 3px; letter-spacing: -0.015em; }
.card .sub, .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 78ch; }
.card-h { font-size: 16px; margin: 0 0 10px; font-weight: 650; letter-spacing: -0.01em; }
.sec-head { margin: 4px 0 12px; }
.sec-head h2 { margin: 0; font-size: 19px; font-weight: 650; }
.sec-head .sub { margin-bottom: 0; }

/* uyarı şeritleri */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 11px 15px; border-radius: var(--radius-s); margin-bottom: 14px; border: 1px solid; font-size: 14px; }
.banner.warn { background: rgba(242, 180, 83, 0.08); border-color: rgba(242, 180, 83, 0.38); }
.banner.bad { background: rgba(255, 77, 77, 0.08); border-color: rgba(255, 77, 77, 0.4); }
.banner.info { background: rgba(201, 204, 211, 0.06); border-color: rgba(201, 204, 211, 0.28); }

/* ---------------------------------------------- sağlık faktörü ufku (ana parça) */
.horizon { padding: 22px 24px 14px; margin-bottom: 18px; border-color: var(--line-2); background: linear-gradient(180deg, var(--panel), var(--ground-2)); }
.horizon-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.horizon-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.horizon-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 64ch; }
.horizon-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.horizon-legend span { display: inline-flex; gap: 7px; align-items: center; }
#hfStrip { width: 100%; height: 190px; display: block; margin-top: 12px; }
#hfStrip .axis text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
#hfStrip .edge-label { fill: var(--bad); font-size: 12px; font-weight: 600; }

/* ----------------------------------------------- özet şeridi (hücreler arası ince çizgi) */
.stats, .ledger {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin-bottom: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ledger { margin: 14px 0 0; }
.stats > .card.stat, .ledger > .stat { background: var(--panel); border: 0; border-radius: 0; padding: 16px 18px; box-shadow: inset -1px -1px 0 var(--line); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-family: var(--display); font-size: 28px; font-weight: 650; letter-spacing: -0.025em; margin-top: 5px; line-height: 1.1; }
.stat .value small { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.stat .foot { font-size: 12.5px; color: var(--faint); margin-top: 7px; overflow-wrap: anywhere; }
.stat.feature .value { color: var(--ok); }
.stat.feature.sim .value { color: var(--sim); }
.stat.feature.testnet .value { color: var(--warn); }

/* ------------------------------------------------------------- bot cüzdanı */
.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px); gap: 22px; align-items: center; }
.wallet-qr { width: 128px; height: 128px; border-radius: var(--radius-s); background: #fff; padding: 8px; display: grid; place-items: center; }
.wallet-qr svg { width: 100%; height: 100%; display: block; }
.wallet-qr.empty { background: var(--ground-2); border: 1px dashed var(--line-2); color: var(--faint); font-size: 12.5px; text-align: center; padding: 12px; }
.wallet-addr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wallet-addr .mono { font-size: 14px; word-break: break-all; padding: 7px 11px; border-radius: var(--radius-s); background: var(--ground-2); border: 1px solid var(--line); }
.wallet-bal dd { font-size: 15px; }

/* ------------------------------------------------------------------ ızgara */
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.grid-2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart { width: 100%; height: 230px; display: block; }
.chart text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-tabs button[aria-pressed='true'] { background: var(--raised); color: var(--text); border-color: var(--signal); font-weight: 600; }
.input.filter { max-width: 220px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- tablolar */
.table-wrap { overflow-x: auto; margin: 0 -6px; max-height: 480px; overflow-y: auto; }
.table-wrap.tall { max-height: 640px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 8px; position: sticky; top: 0; background: var(--panel); border-bottom: 1px solid var(--line-2); z-index: 1; }
td { padding: 9px 8px; border-top: 1px solid rgba(80, 80, 94, 0.5); white-space: nowrap; }
tbody tr:hover td { background: rgba(200, 200, 215, 0.04); }
td.num, th.num { text-align: right; }
td.mono, .mono { font-family: var(--mono); font-size: 12.5px; }
td a { color: var(--signal); }
.hf { font-weight: 650; }
.hf.bad { color: var(--bad); }
.hf.warn { color: var(--warn); }
.hf.ok { color: var(--ok); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); background: transparent; }
.tag.bad { color: var(--bad); border-color: rgba(255, 77, 77, 0.45); background: rgba(255, 77, 77, 0.08); }
.tag.warn { color: var(--warn); border-color: rgba(242, 180, 83, 0.45); background: rgba(242, 180, 83, 0.08); }
.tag.ok { color: var(--ok); border-color: rgba(79, 209, 161, 0.45); background: rgba(79, 209, 161, 0.08); }
.tag.sim { color: var(--sim); border-color: rgba(169, 149, 255, 0.45); background: rgba(169, 149, 255, 0.08); }
.empty { padding: 26px 8px; text-align: center; color: var(--muted); }

/* pozisyon gezgini */
.pos-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pos-chips .tag { font-size: 13px; padding: 4px 11px; }
.pos-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pos-bar .input { width: auto; min-width: 140px; }
.pos-bar .input.narrow { min-width: 0; width: 110px; }
.chk { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chk input { accent-color: var(--signal); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ----------------------------------------------------------- etkinlik akışı */
.feed { list-style: none; margin: 0; padding: 0; max-height: 480px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 10px 1fr; gap: 11px; padding: 9px 2px; border-top: 1px solid rgba(80, 80, 94, 0.5); font-size: 13.5px; }
.feed li:first-child { border-top: 0; }
.feed .dot { margin-top: 6px; }
.feed time { color: var(--faint); font-size: 12px; display: block; }

/* ------------------------------------------------------------- test alanı */
.testnet-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.faucets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.faucet { display: block; padding: 11px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--ground-2); color: var(--text); }
.faucet:hover { text-decoration: none; border-color: rgba(242, 180, 83, 0.6); }
.faucet b { display: block; font-weight: 600; }
.faucet span { color: var(--muted); font-size: 12.5px; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin: 6px 0; }
.steps li b { color: var(--text); font-weight: 600; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.joblog { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px; max-height: 160px; overflow: auto; white-space: pre-wrap; margin: 0; }

/* ------------------------------------------------------------------ kurulum */
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--ground-2); font-size: 14px; }
.checklist li.next { border-color: var(--signal); }
.checklist .dot { width: 16px; height: 16px; border-radius: 50%; background: transparent; border: 2px solid var(--faint); margin-top: 3px; }
.checklist li.ok .dot { background: var(--ok); border-color: var(--ok); }
.checklist li.warn .dot { background: var(--warn); border-color: var(--warn); }
.checklist li.fail .dot { background: var(--bad); border-color: var(--bad); }
.checklist li.fail { border-color: rgba(255, 77, 77, 0.6); }
.checklist .t { font-weight: 600; }
.checklist .d { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.checklist .fix { display: block; margin-top: 2px; font-size: 13px; color: var(--text); }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.setup-grid .field label { display: block; margin-bottom: 6px; font-size: 14px; }
.setup-grid .row { gap: 8px; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.input.narrow { width: 110px; min-width: 0; }

/* ----------------------------------------------------------- ayarlar çekmecesi */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 41; overflow-y: auto;
  background: var(--panel); border-left: 1px solid var(--line-2); padding: 24px; box-shadow: -24px 0 50px rgba(0, 0, 0, 0.45);
  animation: slidein 0.22s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
.drawer h2 { margin: 0 0 4px; font-size: 21px; }
.field { margin: 16px 0; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.input { width: 100%; padding: 9px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--ground-2); }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 75, 87, 0.2); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .input { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: rgba(0, 0, 0, 0.8); padding: 16px; }
.modal .card { max-width: 440px; width: 100%; background: var(--panel); border-color: var(--line-2); }

/* ----------------------------------------------------------------- giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(400px, 100%); padding: 28px; }
.login .brand-mark { width: 150px; height: 150px; margin: 0 auto 4px; }
.login h1 { margin: 10px 0 4px; text-align: center; font-size: 24px; letter-spacing: -0.02em; }

/* ----------------------------------------------------------------- toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: var(--radius-s); background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 14px; max-width: calc(100% - 32px); }
.toast.bad { border-color: rgba(255, 77, 77, 0.6); }

/* -------------------------------------------------------------- altbilgi */
footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------------------------------------------------- salt-okunur görünüm */
.viewer-only { display: none; }
body.viewer .viewer-only { display: inline-flex; }
body.viewer .cmdbar,
body.viewer #tabBtnKurulum,
body.viewer #tab-kurulum,
body.viewer #walletCard,
body.viewer #sec-preflight,
body.viewer #testnetCard,
body.viewer #svrToggle,
body.viewer [data-bid],
body.viewer [data-profile],
body.viewer #resetTotals { display: none !important; }
body.viewer #banners button { display: none !important; }

/* --------------------------------------------------------------- duyarlı */
@media (max-width: 1180px) {
  .grid-2, .testnet-grid { grid-template-columns: minmax(0, 1fr); }
  .wallet { grid-template-columns: auto minmax(0, 1fr); }
  .wallet-bal { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .shell { display: block; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow-x: auto; order: 3; width: 100%; gap: 4px; padding-bottom: 2px; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 12px; }
  .nav-item.on::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 2px; }
  .pills { flex-direction: row; flex-wrap: wrap; margin: 0 0 0 auto; padding: 0; border: 0; gap: 4px 14px; justify-content: flex-end; }
  .main { padding: 0 16px 30px; }
  .cmdbar { grid-template-columns: 1fr auto; padding-top: 12px; }
  .segment { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .segment button { flex: 1; justify-content: center; padding: 8px 10px; }
  .segment .long { display: none; }
  .grid-2.even, .setup-grid { grid-template-columns: minmax(0, 1fr); }
  .pos-bar .input { flex: 1 1 140px; }
}
@media (max-width: 600px) {
  .pills { display: none; }
  .stats, .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .value { font-size: 23px; }
  .card { padding: 15px; }
  .horizon { padding: 16px 14px 10px; }
  .horizon-head h2 { font-size: 21px; }
  #hfStrip { height: 150px; }
  .two { grid-template-columns: 1fr; }
  .wallet { grid-template-columns: 1fr; justify-items: start; }
  .wallet-qr { width: 116px; height: 116px; }
  .input.filter { max-width: none; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
