/* [Claude Code 2026-08-07] Fortune Lotto client 樣式（無 build、無框架） */

:root {
  --bg: #0b0e1a;
  --bg2: #131829;
  --card: #171d33;
  --card2: #1e2540;
  --line: #2a3253;
  --text: #e8ecf8;
  --text-soft: #9aa3c4;
  --text-mute: #6b7499;
  --gold: #f5c451;
  --gold2: #e0a32c;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;
  --purple: #a78bfa;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2340 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
               "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-size: 15px; line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 560px; margin: 0 auto; padding: 0 0 40px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(11, 14, 26, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.logo { font-size: 24px; }
.brand-name { font-weight: 800; letter-spacing: .5px; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet { text-align: right; }
.coin-label { font-size: 10px; color: var(--text-mute); }
.coin { font-size: 17px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.acct { font-size: 10px; color: var(--text-mute); }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line); background: var(--card2); color: var(--text);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: filter .15s, transform .08s;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.15); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.ghost { background: transparent; }
.btn.primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%); color: #2a1d02; border: none; font-weight: 700; }
.btn.block { display: block; width: 100%; margin-top: 10px; }

/* ---------- 大廳 tab（每款遊戲一個） ---------- */
.lobby {
  display: flex; gap: 8px; padding: 12px 14px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.lobby[hidden] { display: none; }
.lobby-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--text-soft); cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.lobby-tab:hover { background: var(--card2); }
.lobby-tab.active {
  border-color: var(--gold); background: var(--card2); color: var(--text);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.lt-name { font-size: 13.5px; font-weight: 700; }
.lt-sub { font-size: 10px; color: var(--text-mute); }

/* ---------- 參數化家族（直選 / 組選：輸入號碼） ---------- */
.fam-card {
  border: 1px solid var(--line); background: var(--card2);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.fam-head { display: flex; align-items: baseline; gap: 10px; }
.fam-name { font-size: 14px; font-weight: 700; flex: 1; }
.fam-odds { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
.fam-rule { font-size: 11px; color: var(--text-mute); margin: 4px 0 9px; }
.fam-input { display: flex; gap: 8px; }
.fam-input input {
  flex: 1; background: #0d1122; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; color: var(--text); font-family: Consolas, monospace;
  font-size: 18px; letter-spacing: 6px; text-align: center;
}
.fam-input input:focus { outline: none; border-color: var(--gold); }
.fam-msg { font-size: 11px; margin-top: 6px; min-height: 14px; }
.fam-msg.bad { color: var(--red); }

/* ---------- 開獎區 ---------- */
.draw-panel {
  min-height: 268px; /* 🔴 開獎前後（數字空 vs 有值）高度一致，版面不跳 */
  margin: 14px; padding: 18px 16px 16px;
  background: linear-gradient(160deg, var(--card2) 0%, var(--card) 100%);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.phase-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mute); }
.phase-badge {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #2a3253; color: var(--text-soft);
}
.phase-badge.ok   { background: rgba(52,211,153,.15); color: var(--green); }
.phase-badge.warn { background: rgba(245,196,81,.15); color: var(--gold); }
.phase-badge.draw { background: rgba(167,139,250,.18); color: var(--purple); }
.phase-badge.bad  { background: rgba(248,113,113,.15); color: var(--red); }
.round-id { flex: 1; }
.online { font-variant-numeric: tabular-nums; }

.countdown-wrap { text-align: center; margin: 10px 0 6px; }
.countdown {
  font-size: 46px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
  color: var(--text);
}
.countdown.urgent { color: var(--red); animation: pulse .6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.countdown-label { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.digits { display: flex; gap: 8px; justify-content: center; margin: 14px 0 8px; }
.digit {
  width: 52px; height: 62px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  background: #0d1122; border: 1px solid var(--line); color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.digit.revealed {
  color: #2a1d02;
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold2) 100%);
  border-color: transparent;
  animation: pop .38s cubic-bezier(.34,1.56,.64,1) both;
}

/* [Claude Code 2026-08-09] 飛籌碼：別人下注時從左邊動態飛一枚到右邊的門 / 分頁。
 * 🔴 position:fixed + transform/opacity → GPU 合成、不觸發 reflow；
 *    pointer-events:none → 絕對不會擋住玩家正要點的下注格（§1.1g 的精神）。
 */
.chip-fly {
  position: fixed; z-index: 60; pointer-events: none;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: #2a1d02; background: linear-gradient(160deg, var(--gold) 0%, var(--gold2) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transition: transform .62s cubic-bezier(.22, .61, .36, 1), opacity .62s ease-in;
  will-change: transform, opacity;
}
/* 機器人的注用冷色，跟真人一眼分得開 */
.chip-fly.bot {
  color: #dbe6ff;
  background: linear-gradient(160deg, #3c5083 0%, #2a3860 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
/* 命中回饋：只用 box-shadow 擴散，不改尺寸 → 不會推動版面 */
.bet-cell.hit, .tab.hit { animation: chipHit .32s ease-out; }
@keyframes chipHit {
  0%   { box-shadow: 0 0 0 0 rgba(245, 196, 81, .55); }
  100% { box-shadow: 0 0 0 9px rgba(245, 196, 81, 0); }
}
/* 使用者若在系統開了「減少動態效果」就整個不顯示（不是改成瞬移，那更難受）。
 * JS 照常跑、只是看不到 —— 這樣程式邏輯只有一條路徑。 */
@media (prefers-reduced-motion: reduce) {
  .chip-fly { display: none; }
  .bet-cell.hit, .tab.hit { animation: none; }
}

/* [Claude Code 2026-08-08] 快3 的開獎格：內容是骰面符號 ⚀⚁⚂⚃⚄⚅ 而不是數字。
 * 骰面字元本身筆畫細、預設大小看起來比數字小一截，所以放大並改用等寬字型排版。
 * 顏色不套 .revealed 的金色漸層（骰子是白底黑點才像骰子）。
 */
.digit.dice { font-size: 44px; line-height: 1; }
.digit.dice.revealed {
  color: #14203a;
  background: linear-gradient(160deg, #f6f9ff 0%, #d9e4f5 100%);
}
.hist-digits b { font-variant-numeric: tabular-nums; }
@keyframes pop { from { transform: scale(.4) rotateX(70deg); opacity: 0; } to { transform: none; opacity: 1; } }

.draw-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mute); }
.fair { font-family: Consolas, monospace; opacity: .8; }

/* ---------- card ---------- */
.card {
  margin: 14px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.hint { font-size: 11px; color: var(--text-mute); }

/* ---------- 走勢 ---------- */
.history { display: flex; flex-direction: column; gap: 5px; height: 210px; overflow-y: auto; }
.hist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 9px; border-radius: 8px; background: var(--card2);
  font-size: 12px; cursor: pointer;
}
.hist-item:hover { background: #253057; }
.hist-seq { color: var(--text-mute); min-width: 58px; font-variant-numeric: tabular-nums; }
.hist-digits { flex: 1; display: flex; gap: 5px; }
.hist-digits b {
  width: 22px; height: 22px; border-radius: 6px; background: #0d1122;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 12px; font-weight: 700;
}
.hist-sum { color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ---------- 投注 ---------- */
.chips { display: flex; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--card2); color: var(--text-soft);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer;
  font-family: inherit; font-variant-numeric: tabular-nums;
}
.chip.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #2a1d02; border-color: transparent; font-weight: 700;
}

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab {
  flex: 1; border: 1px solid var(--line); background: transparent; color: var(--text-soft);
  border-radius: 9px; padding: 7px 4px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.tab.active { background: var(--card2); color: var(--text); border-color: var(--blue); }

.bet-row { margin-bottom: 12px; }
.bet-row-title { font-size: 11px; color: var(--text-mute); margin-bottom: 5px; }
.bet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bet-grid.dense { grid-template-columns: repeat(5, 1fr); }

.bet-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 8px 2px 22px;
  height: 62px; /* 🔴 固定高度：底下兩行小字（盤面 / 我的）有沒有內容都不影響版面 */
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card2); color: var(--text);
  cursor: pointer; font-family: inherit;
  transition: transform .08s, border-color .15s, background .15s;
}
.bet-cell:hover:not(:disabled) { border-color: var(--gold); background: #232b4d; }
.bet-cell:active:not(:disabled) { transform: scale(.95); }
.bet-cell:disabled { opacity: .3; cursor: not-allowed; }
.bc-label { font-size: 14px; font-weight: 700; }
.bc-odds { font-size: 10.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
/* 底下兩行：上＝全場這門押多少（盤面）、下＝我自己押多少 */
.bc-board {
  position: absolute; bottom: 11px; left: 0; right: 0;
  font-size: 9px; color: var(--text-mute); font-variant-numeric: tabular-nums;
}
.bc-board.has { color: var(--blue); }
.bc-mine {
  position: absolute; bottom: 2px; left: 0; right: 0;
  font-size: 9.5px; color: var(--gold); font-variant-numeric: tabular-nums;
}
.bc-mine.has { font-weight: 700; }

.note { font-size: 11px; color: var(--text-mute); margin-top: 6px; }

/* 🔴 投注區也固定高度 + 內部捲動。
 * 不固定的話，切到「龍虎 / 出現次數」（各 10 列）會比「總和」（1 列）高一倍，
 * 整頁跟著跳。固定之後只有這一區自己捲，其他區塊完全不動。
 */
#betArea { height: 560px; overflow-y: auto; padding-right: 4px; }

/* ---------- 本期注單 ---------- */
.mybets { display: flex; flex-direction: column; gap: 5px; height: 150px; overflow-y: auto; }
.mybet {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 8px; background: var(--card2); font-size: 12.5px;
}
.mb-amt, .mb-odds { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.mb-st { font-size: 11px; color: var(--text-mute); min-width: 62px; text-align: right; }
.mybet.st-pending  { opacity: .6; }
.mybet.st-rejected, .mybet.st-failed { opacity: .45; text-decoration: line-through; }
.mybet.st-win  { background: rgba(52,211,153,.13); }
.mybet.st-win .mb-st { color: var(--green); font-weight: 700; }
.mybet.st-push .mb-st { color: var(--blue); }
.empty { color: var(--text-mute); font-size: 12px; text-align: center; padding: 14px 0; }

/* ================================================================
 * 橫版（landscape）——[Claude Code 2026-08-07] 使用者要求：直版 / 橫版可切換
 *
 * 做法：<html> 上掛 data-orient="portrait|landscape"，版面差異全部靠 CSS，
 *       不重畫 DOM、不重連 WS —— 切換是純視覺，遊戲狀態完全不受影響。
 * 直版 = 單欄（手機直握）；橫版 = 左欄開獎+走勢、右欄投注+注單（手機橫握 / 桌機）。
 * ================================================================ */
:root[data-orient="landscape"] #app { max-width: 1180px; padding-bottom: 20px; }

/* 橫版三欄：左＝牌桌+動態（百人版的重點）、中＝開獎+走勢+注單、右＝投注 */
:root[data-orient="landscape"] main {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(280px, 340px) 1fr;
  grid-template-areas:
    "table draw bet"
    "feed  hist bet"
    "feed  mine bet";
  gap: 0;
  align-items: start;
}
:root[data-orient="landscape"] #secTable { grid-area: table; margin: 12px 6px 6px 14px; }
:root[data-orient="landscape"] #secFeed  { grid-area: feed;  margin: 6px 6px 14px 14px; }
:root[data-orient="landscape"] #secDraw  { grid-area: draw;  margin: 12px 6px 6px 6px; }
:root[data-orient="landscape"] #secHist  { grid-area: hist;  margin: 6px 6px 6px 6px; }
:root[data-orient="landscape"] #secMine  { grid-area: mine;  margin: 6px 6px 14px 6px; }
:root[data-orient="landscape"] #secBet   { grid-area: bet;   margin: 12px 14px 14px 6px; }
:root[data-orient="landscape"] .ptable { max-height: 200px; }
:root[data-orient="landscape"] .feed   { max-height: 300px; }

/* 橫版把開獎區壓扁一點，讓右邊的投注區看得到更多 */
:root[data-orient="landscape"] .countdown { font-size: 38px; }
:root[data-orient="landscape"] .digit { width: 44px; height: 52px; font-size: 26px; }
:root[data-orient="landscape"] .history { max-height: 168px; }

/* 橫版時定位膽一排放 10 個（一位一列，直觀對應開獎號） */
:root[data-orient="landscape"] .bet-grid.dense { grid-template-columns: repeat(10, 1fr); }

/* 真的處於窄橫向（手機橫握）時再壓縮一次 */
@media (orientation: landscape) and (max-height: 460px) {
  :root[data-orient="landscape"] .countdown { font-size: 30px; }
  :root[data-orient="landscape"] .digit { width: 38px; height: 44px; font-size: 22px; }
  :root[data-orient="landscape"] .topbar { padding: 7px 12px; }
  :root[data-orient="landscape"] .history { max-height: 120px; }
}

/* 直版在寬螢幕上維持窄欄（手機版面），不要被拉寬變得空曠 */
:root[data-orient="portrait"] #app { max-width: 560px; }

#btnOrient { font-size: 15px; line-height: 1; padding: 6px 9px; }
#btnRandom { flex: 0 0 auto; }
.card-head .chips { margin-left: auto; }

/* ================================================================
 * 百人版：本局牌桌 + 即時動態
 * ================================================================ */
/* 🔴 所有「內容會變動」的區塊一律用固定 height + 內部捲動，不是 max-height。
 * 用 max-height 的話，區塊會隨內容從空的長到滿，別人一下注整個版面就被往下推 ——
 * 玩家正要點的按鈕會在手指落下前跑掉。固定高度 = 版面永遠不動。
 */
.ptable, .feed { display: flex; flex-direction: column; gap: 3px; height: 240px; overflow-y: auto; }
.prow {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center;
  padding: 5px 8px; border-radius: 7px; background: var(--card2); font-size: 12px;
}
.prow.me { background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.35); }
.pnick { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnick b { color: var(--gold); font-size: 10px; }
.plast { color: var(--text-mute); font-size: 10.5px; white-space: nowrap; max-width: 84px; overflow: hidden; text-overflow: ellipsis; }
.pamt  { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.pbets { color: var(--text-mute); font-size: 10.5px; min-width: 34px; text-align: right; }
.pwin  { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.plose { color: var(--text-mute); min-width: 46px; text-align: right; }

.frow {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px;
  padding: 4px 8px; font-size: 11.5px; border-bottom: 1px solid rgba(255,255,255,.04);
  animation: feedin .25s ease both;
}
@keyframes feedin { from { opacity: 0; transform: translateY(-4px); } }
.fnick { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fname { color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.famt  { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- 細單 ---------- */
.bet-item { cursor: pointer; }
.bet-item:hover { background: #253057; }
.bet-detail {
  background: #0d1122; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin: 2px 0 6px; font-size: 12px;
}
.bet-detail[hidden] { display: none; }

/* ---------- 走勢 / 遺漏 ---------- */
.th { margin: 16px 0 8px; font-size: 13px; color: var(--text); }
.trend-wrap { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.trend-pos { flex: 0 0 auto; }
.tp-name { font-size: 10px; color: var(--text-mute); text-align: center; margin-bottom: 3px; }
.tp-grid { display: flex; flex-direction: column; gap: 1px; }
.tp-row { display: grid; grid-template-columns: repeat(10, 12px); gap: 1px; }
.tp-cell {
  height: 12px; border-radius: 2px; background: #141a2e;
  font-size: 8px; line-height: 12px; text-align: center; color: transparent;
}
.tp-cell.on { background: var(--gold); color: #2a1d02; font-weight: 700; }

.miss-tbl { display: flex; flex-direction: column; gap: 2px; font-size: 10px; }
.mrow { display: grid; grid-template-columns: 34px repeat(10, 1fr); gap: 2px; align-items: center; }
.mrow.mhead span { color: var(--text-mute); text-align: center; font-size: 10px; }
.mp { color: var(--text-mute); }
.mcell {
  display: flex; flex-direction: column; align-items: center;
  background: var(--card2); border-radius: 3px; padding: 2px 0; line-height: 1.25;
}
.mcell b { color: var(--text-soft); font-size: 10px; }
.mcell i { color: var(--text-mute); font-size: 8.5px; font-style: normal; }
.mcell.just { background: rgba(245,196,81,.2); }
.mcell.just b { color: var(--gold); }
.mcell.cold { background: rgba(96,165,250,.14); }
.mcell.cold b { color: var(--blue); }

.sparks { display: flex; flex-direction: column; gap: 8px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 60px; }
.sk { font-size: 10px; color: var(--text-mute); width: 28px; align-self: center; }
.spark i { flex: 1; background: var(--gold); border-radius: 2px 2px 0 0; min-width: 4px; }
.spark i.c2 { background: var(--purple); }

.forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fm {
  background: var(--card2); border-radius: 8px; padding: 8px 4px; text-align: center;
}
.fm span { display: block; font-size: 10.5px; color: var(--text-mute); }
.fm b { display: block; font-size: 16px; color: var(--gold); }
.fm i { display: block; font-size: 10px; color: var(--text-mute); font-style: normal; }

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed; left: 0; right: 0; bottom: 22px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  pointer-events: none;
}
.toast {
  background: rgba(30,37,64,.96); border: 1px solid var(--line);
  color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: rise .25s ease both;
}
.toast.good { border-color: var(--green); color: var(--green); }
.toast.bad  { border-color: var(--red); color: var(--red); }
.toast.warn { border-color: var(--gold); color: var(--gold); }
.toast.out  { animation: fade .45s ease both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes fade { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4,6,14,.75); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal[hidden] { display: none; }
.modal-box {
  width: 100%; max-width: 400px; max-height: 82vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.modal-head {
  display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 15px; flex: 1; }
.modal-body { padding: 16px; }
.modal-body label { display: block; font-size: 12px; color: var(--text-soft); margin-bottom: 10px; }
.modal-body input {
  display: block; width: 100%; margin-top: 4px;
  background: #0d1122; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; color: var(--text); font-size: 14px; font-family: inherit;
}
.modal-note { font-size: 12.5px; color: var(--text-soft); margin: 0 0 14px; }
.modal-note.small { font-size: 11px; color: var(--text-mute); }
.modal-sep { text-align: center; font-size: 11px; color: var(--text-mute); margin: 14px 0 0; }
.kv { display: flex; gap: 8px; font-size: 12px; margin-bottom: 7px; }
.kv b { min-width: 68px; color: var(--text-mute); font-weight: 500; }
.kv code { color: var(--gold); font-family: Consolas, monospace; }
.kv code.wrap { word-break: break-all; }
.hlist { display: flex; flex-direction: column; gap: 4px; }
.hrow {
  display: grid; grid-template-columns: 60px 1fr auto auto; gap: 8px;
  padding: 6px 8px; background: var(--card2); border-radius: 7px; font-size: 12px;
}
.hrow .good { color: var(--green); font-weight: 700; }
