/* style.css —— 深色主题，彩票风格 */

:root {
  --bg: #0d1524;
  --bg-card: #141e31;
  --bg-panel: #182338;
  --border: #24314d;
  --text: #dbe4f5;
  --text-dim: #8899b5;
  --red: #e84545;
  --red-dark: #7a1f1f;
  --blue: #2f7fe8;
  --blue-dark: #123c77;
  --gold: #ffb04a;
  --green: #5ad0a8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.5;
}

/* ============ 顶栏 ============ */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #16203a, #101a2e);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.type-switch { display: flex; gap: 8px; }
.type-switch[hidden] { display: none !important; }

/* 顶部主菜单（页面切换） */
.nav-switch { display: flex; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 22px; }
.nav-btn {
  padding: 6px 18px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.active {
  background: linear-gradient(135deg, var(--blue), #1b5fb0);
  color: #fff;
  font-weight: 600;
}
.type-btn {
  padding: 7px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-panel);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.type-btn:hover { color: var(--text); border-color: var(--blue); }
.type-btn.active {
  background: linear-gradient(135deg, var(--red), #c23333);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}
.update-info { color: var(--text-dim); font-size: 12px; }

/* ============ 顶栏登录区 ============ */
.auth-area { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.auth-note { color: var(--text-dim); font-size: 12px; }
.auth-user { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.badge-member {
  background: linear-gradient(135deg, var(--gold), #e08a2e);
  color: #241300;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
}
.badge-normal {
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
}

/* ============ 提示条 ============ */
.flash {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.flash.show { opacity: 1; }

/* ============ 登录/注册弹窗 ============ */
.modal-mask[hidden] { display: none !important; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.modal {
  width: 340px;
  max-width: 92vw;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.modal h3 { font-size: 18px; }
.modal-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.modal-input:focus { border-color: var(--blue); }
.modal-error { color: var(--red); font-size: 13px; min-height: 18px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-note { color: var(--text-dim); font-size: 12px; line-height: 1.6; }

/* ============ 推荐区会员锁定 ============ */
.rec-wrap { position: relative; }
#rec-list.locked .ball,
#rec-list.locked .rec-index,
#rec-list.locked .btn-copy {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.rec-gate[hidden] { display: none !important; }
.rec-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(13, 21, 36, .55);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  text-align: center;
  padding: 20px;
}
.gate-title { font-size: 16px; font-weight: 600; color: var(--text); }
.gate-sub { font-size: 12px; color: var(--text-dim); }

/* ============ 布局 ============ */
main { max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; }
.view[hidden] { display: none !important; }

/* 分区标题 */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.section-title { font-size: 17px; font-weight: 700; color: var(--text); }
.section-sub { font-size: 12px; color: var(--text-dim); }

/* 双栏区域 */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}
.two-col > .panel { min-width: 0; height: 100%; }
#prize-table { overflow-x: auto; }
#prize-table .prize-table { min-width: 420px; }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.panel-title { font-size: 14px; color: var(--text-dim); font-weight: 600; margin-bottom: 10px; }
.chart { width: 100%; height: 300px; }
.chart-tall { height: 360px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.grid .panel { min-width: 0; }
.panel-wide { grid-column: span 2; }

/* ============ 最新开奖 ============ */
.latest-card { margin-bottom: 16px; background: linear-gradient(135deg, #1c2740, #16203a); }
.latest-info { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.issue-tag {
  font-size: 18px; font-weight: 700; color: var(--gold);
}
.date-tag { color: var(--text-dim); font-size: 13px; }
.balls-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plus { color: var(--text-dim); font-size: 20px; margin: 0 6px; font-weight: 700; }
.latest-meta { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }

/* ============ 号码球 ============ */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.main-ball {
  background: radial-gradient(circle at 32% 28%, #ff7a6e, var(--red) 60%, var(--red-dark));
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), 0 2px 6px rgba(232, 69, 69, .35);
}
.sub-ball {
  background: radial-gradient(circle at 32% 28%, #6aa8ff, var(--blue) 60%, var(--blue-dark));
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), 0 2px 6px rgba(47, 127, 232, .35);
}
.ball.dim { opacity: .55; }

/* ============ 统计摘要卡片 ============ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.stat-value { font-size: 22px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.stat-tip { font-size: 11px; color: #5d6f8d; margin-top: 2px; }

/* ============ 登录页 ============ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(232, 69, 69, .18), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(47, 127, 232, .16), transparent 65%),
    var(--bg);
  padding: 24px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.login-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  background: linear-gradient(90deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.login-sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin: 8px 0 22px;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.login-tab {
  padding: 9px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.login-tab.active { background: linear-gradient(135deg, var(--red), #b83030); color: #fff; font-weight: 600; }
.login-field { display: block; margin-bottom: 16px; }
.login-field > span { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.login-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 127, 232, .18); }
.login-error {
  min-height: 18px;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.5;
}
.login-submit { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; }
.login-submit:disabled { opacity: .65; cursor: not-allowed; }
.login-note {
  margin-top: 18px;
  font-size: 11px;
  color: #5d6f8d;
  line-height: 1.7;
  text-align: center;
}
.login-footer {
  margin-top: 16px;
  font-size: 11px;
  color: #5d6f8d;
  text-align: center;
}

/* ============ 热冷号 ============ */
.hc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.hc-group { margin-bottom: 0; }
.hc-group:last-child { margin-bottom: 0; }

/* 排列3 各位置热冷号：三列 */
.pl3-hotcold {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
}
.hc-title { font-size: 13px; margin-bottom: 8px; }
.hc-title.hot { color: var(--red); }
.hc-title.cold { color: var(--blue); }
.hc-group .ball { margin-right: 6px; margin-bottom: 4px; }

/* ============ 推荐区 ============ */
.rec-panel { margin-top: 0; }
.rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.rec-controls { display: flex; align-items: center; gap: 12px; }
.rec-label { font-size: 13px; color: var(--text-dim); }
#rec-count {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #c23333);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232, 69, 69, .4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

#rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.rec-body { flex: 1; min-width: 0; }
.btn-copy {
  margin-left: auto;
  flex-shrink: 0;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-copy:hover { border-color: var(--gold); color: var(--gold); }
.btn-copy.copied, .btn-secondary.copied { border-color: #4ade80; color: #4ade80; }
.rec-index {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  font-family: Consolas, monospace;
  min-width: 28px;
}
.rec-balls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rec-balls .ball { width: 32px; height: 32px; font-size: 14px; }
.rec-tags { margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 8px;
}
.empty { color: var(--text-dim); text-align: center; padding: 20px; }

/* ============ 号码核对 ============ */
#check-panel, #prize-table { margin-top: 4px; }
.check-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.check-row:last-child { margin-bottom: 0; }
.check-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.check-input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  outline: none;
  transition: border-color .15s;
  min-width: 220px;
}
.check-input:focus { border-color: var(--blue); }
#check-issue.check-input { min-width: 180px; }
.check-field-full { width: 100%; }
.check-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}
.check-row #check-btn { min-width: 96px; }

.check-result {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-result.win { border-color: var(--gold); background: rgba(255, 176, 74, .07); }
.check-result.lose { border-color: var(--border); }
.check-line { font-size: 14px; color: var(--text); }
.check-line b { color: var(--gold); }
.check-summary {
  font-size: 14px;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(47, 127, 232, .08);
}
.check-summary b { color: var(--gold); }
.check-bets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-bet {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.check-bet.win { border-color: var(--gold); background: rgba(255, 176, 74, .1); }
.bet-no {
  min-width: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.bet-hit {
  font-size: 13px;
  color: var(--text-dim);
  font-family: Consolas, monospace;
}
.bet-prize {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-dim);
}
.bet-prize.win { color: var(--gold); font-weight: 600; }
.balls-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.balls-inline .ball { width: 30px; height: 30px; font-size: 13px; }
.ball.hit {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  animation: hitPulse 1s ease-in-out 2;
}
@keyframes hitPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 176, 74, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 176, 74, .85); }
}
.check-msg {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.win-msg { color: var(--gold); background: rgba(255, 176, 74, .12); }
.lose-msg { color: var(--text-dim); background: rgba(136, 153, 181, .08); }

/* ============ 奖金对照表 ============ */
.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prize-table th, .prize-table td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}
.prize-table th {
  background: var(--bg-card);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.prize-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.prize-table tbody tr:nth-child(even) { background: rgba(24, 35, 56, .5); }
.prize-table tbody tr:hover { background: rgba(47, 127, 232, .08); }
.prize-note { color: var(--text-dim); font-size: 12px; margin-top: 10px; }

/* ============ 购买记录 ============ */
.check-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.check-summary-row .check-summary { flex: 1 1 240px; }
.btn-record {
  background: linear-gradient(135deg, var(--gold), #e08a2e);
  color: #2a1600;
  border: none;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 176, 74, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn-record:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255, 176, 74, .55); }
.btn-record:active { transform: translateY(0); }
.btn-record.done {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  box-shadow: none;
  cursor: default;
}
.record-tip { font-size: 12px; color: var(--green); }
.record-tip:empty { display: none; }
.record-empty {
  color: var(--text-dim);
  font-size: 13px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
}
.record-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.record-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.record-stat-item span { font-size: 12px; color: var(--text-dim); }
.record-stat-item b { font-size: 17px; color: var(--gold); }
.record-note { color: var(--text-dim); font-size: 12px; margin-bottom: 12px; }
.record-list { display: flex; flex-direction: column; gap: 12px; }
.record-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.record-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(47, 127, 232, .06);
  border-bottom: 1px solid var(--border);
}
.record-title { font-size: 14px; font-weight: 600; color: var(--text); }
.record-stat { font-size: 13px; color: var(--text-dim); }
.record-stat b { color: var(--gold); }
.record-del {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.record-del:hover { border-color: #e84545; color: #e84545; }
.record-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.record-bet {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.record-bet.win { border-color: var(--gold); background: rgba(255, 176, 74, .08); }

/* 推荐记录：状态与开奖信息 */
/* 推荐记录：号码两列排布，保证每注都完整展示 */
.archive-bets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.archive-bets .record-bet { min-width: 0; }
.archive-bets .balls-inline { flex: 0 0 auto; }
.archive-bets .bet-prize { margin-left: auto; text-align: right; }

.archive-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.archive-status.pending { color: var(--text-dim); border: 1px solid var(--border); }
.archive-status.done { color: var(--green); border: 1px solid var(--green); }
.archive-draw {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.archive-win { font-size: 13px; color: var(--text-dim); }
.archive-win b { color: var(--gold); }

/* ============ 页脚 ============ */
.footer {
  text-align: center;
  color: #5d6f8d;
  font-size: 12px;
  padding: 20px;
  border-top: 1px solid var(--border);
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: span 1; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .hc-grid { grid-template-columns: 1fr; }
  .pl3-hotcold { grid-template-columns: 1fr; }
  .archive-bets { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { gap: 10px; }
  .update-info { margin-left: 0; width: 100%; }
  .nav-switch { order: 3; }
  .btn-record { width: 100%; }
}
