@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

:root {
  color-scheme: light;
  --bg: #eef2e8;
  --card: #ffffff;
  --accent: #186247;
  --accent-light: #e4f3ea;
  --accent-dark: #0e3d2f;
  --correct: #1a8c3f;
  --correct-bg: #e6f7ec;
  --wrong: #c62828;
  --wrong-bg: #fce8e8;
  --text: #17211c;
  --text-dim: #637066;
  --border: #dce1d5;
  --selected-bg: #dbeef5;
  --selected-border: #1976d2;
  --gold: #e6a800;
  --paper: #fbfaf2;
  --paper-soft: #f7f6ec;
  --shadow: 0 18px 50px rgba(31, 48, 38, 0.12);
  --shadow-soft: 0 10px 26px rgba(31, 48, 38, 0.08);
  --body-bg: radial-gradient(circle at 16% 0%, rgba(235, 193, 113, 0.28), transparent 32rem),
    radial-gradient(circle at 100% 16%, rgba(86, 146, 110, 0.2), transparent 30rem),
    linear-gradient(180deg, #f8f4e8 0%, var(--bg) 44%, #e8eee4 100%);
  --card-border: rgba(220, 225, 213, 0.95);
  --dashboard-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 242, 0.96));
  --surface-soft: #eef1e7;
  --surface-hover: #ffffff;
  --chip-bg: #ecefe5;
  --count-bg: #f0efe3;
  --series: #8a6a2f;
  --material-bg: #fbfbf7;
  --table-cell: #ffffff;
  --focus-ring: rgba(24, 98, 71, 0.1);
  --hero-bg: linear-gradient(135deg, rgba(14, 61, 47, 0.96) 0%, rgba(24, 98, 71, 0.92) 56%, rgba(222, 169, 82, 0.9) 100%);
  --bank-card-bg: rgba(255, 255, 255, 0.72);
  --bank-card-selected: linear-gradient(135deg, #ffffff 0%, #eaf5ee 100%);
  --button-secondary-bg: rgba(255, 255, 255, 0.8);
  --floating-bg: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101a16;
  --card: #17231e;
  --accent: #55c797;
  --accent-light: #1c3b2f;
  --accent-dark: #8ee0b8;
  --correct: #64d88a;
  --correct-bg: #133321;
  --wrong: #ff8b84;
  --wrong-bg: #3a1e1f;
  --text: #ecf4ee;
  --text-dim: #a9b9ad;
  --border: #31433a;
  --selected-bg: #17324a;
  --selected-border: #6bbcff;
  --gold: #f1c76d;
  --paper: #111c18;
  --paper-soft: #15221d;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.3);
  --body-bg: radial-gradient(circle at 16% 0%, rgba(181, 137, 66, 0.2), transparent 32rem),
    radial-gradient(circle at 100% 16%, rgba(67, 161, 112, 0.18), transparent 30rem),
    linear-gradient(180deg, #08110e 0%, var(--bg) 48%, #0b1512 100%);
  --card-border: rgba(66, 88, 76, 0.95);
  --dashboard-bg: linear-gradient(180deg, rgba(23, 35, 30, 0.96), rgba(17, 28, 24, 0.96));
  --surface-soft: #213129;
  --surface-hover: #24382f;
  --chip-bg: #223128;
  --count-bg: #26352d;
  --series: #d5b36c;
  --material-bg: #111c18;
  --table-cell: #16241f;
  --focus-ring: rgba(85, 199, 151, 0.18);
  --hero-bg: linear-gradient(135deg, rgba(5, 32, 24, 0.98) 0%, rgba(20, 83, 62, 0.95) 58%, rgba(126, 91, 43, 0.92) 100%);
  --bank-card-bg: rgba(23, 35, 30, 0.78);
  --bank-card-selected: linear-gradient(135deg, #1c3028 0%, #173f30 100%);
  --button-secondary-bg: rgba(23, 35, 30, 0.86);
  --floating-bg: rgba(23, 35, 30, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; }

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.8;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  user-select: none;
  min-height: 56px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #22946a 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(24, 98, 71, 0.24);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); }
.btn-secondary { background: var(--button-secondary-bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn-danger { background: var(--wrong); color: white; border: 2px solid var(--wrong); }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; min-height: 44px; }
.btn-block { width: 100%; }

#startBtn {
  min-height: 64px;
  border-radius: 22px;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

/* ===== Forms ===== */
select {
  width: 100%;
  padding: 15px 18px;
  background-color: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23666'%3E%3Cpath d='M5 7l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select:focus { border-color: var(--accent); }

.number-input,
.bank-search {
  width: 100%;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
}

.number-input:focus,
.bank-search:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.number-input {
  max-width: 160px;
}

label { display: block; font-weight: 700; margin-bottom: 6px; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-green { color: var(--correct); }
.text-red { color: var(--wrong); }
.text-gold { color: var(--gold); }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.fw-900 { font-weight: 900; }
.gap-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Homepage ===== */
.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    var(--hero-bg);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px;
  padding: 34px;
  margin-bottom: 22px;
  color: white;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 52%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

/* ===== Settings browser ===== */
.quiz-dashboard {
  background: var(--dashboard-bg);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 0 26px;
  align-items: start;
}

.quiz-dashboard .settings-section:first-child {
  grid-row: span 4;
  padding-right: 26px;
  border-right: 1px solid var(--border);
}

.settings-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.settings-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.quiz-dashboard > #startBtn {
  grid-column: 2;
  margin-top: 24px;
}

.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-hint {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.selected-pill {
  flex: 0 0 auto;
  background: #173d30;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(23, 61, 48, 0.16);
}

.section-kicker {
  color: #a27423;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.filter-row,
.bank-toolbar,
.quiz-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.filter-label {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}

.collection-card {
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  min-height: 112px;
  padding: 13px;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.collection-card:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.collection-card.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-color: var(--accent-dark);
  color: white;
  box-shadow: 0 14px 28px rgba(24, 98, 71, 0.18);
}

.collection-title,
.collection-desc,
.collection-count {
  display: block;
}

.collection-title {
  font-weight: 900;
  line-height: 1.4;
}

.collection-desc {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 4px;
}

.collection-count {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  margin-top: 8px;
}

.collection-card.active .collection-desc,
.collection-card.active .collection-count {
  color: rgba(255, 255, 255, 0.76);
}

.filter-chip {
  border: 1px solid transparent;
  background: var(--chip-bg);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.filter-chip:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.bank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 470px;
  overflow: auto;
  padding: 3px 6px 3px 3px;
  margin-top: 16px;
}

.bank-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 18px;
  background: var(--bank-card-bg);
  padding: 14px;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 48, 38, 0.04);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bank-card:hover,
.bank-card.selected {
  border-color: rgba(24, 98, 71, 0.46);
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(31, 48, 38, 0.1);
}

.bank-card.selected {
  background: var(--bank-card-selected);
}

.bank-check {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.bank-card.selected .bank-check {
  background: var(--accent);
  border-color: var(--accent);
}

.bank-main {
  min-width: 0;
}

.bank-title,
.bank-meta {
  display: block;
}

.bank-title {
  font-weight: 900;
  line-height: 1.45;
}

.bank-meta,
.bank-series,
.bank-count {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

.bank-series {
  grid-column: 2;
  width: fit-content;
  margin-top: 5px;
  color: var(--series);
  font-size: 0.76rem;
  font-weight: 900;
}

.bank-count {
  grid-column: 2;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--count-bg);
  white-space: nowrap;
  font-weight: 700;
}

.empty-state {
  color: var(--text-dim);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.browse-picker {
  background: var(--dashboard-bg);
}

.browse-picker select {
  background-color: var(--paper);
}

/* ===== Page header ===== */
.page-header {
  padding: 24px 0 8px;
  text-align: center;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}
.page-header .subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-panel .page-header {
  padding: 0 0 24px;
  text-align: left;
  max-width: 620px;
}
.hero-panel .page-header .eyebrow {
  display: inline-flex;
  width: fit-content;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 900;
}
.hero-panel .page-header h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin-bottom: 8px;
}
.hero-panel .page-header .subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  margin-bottom: 0;
}

/* ===== Stat boxes ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  min-width: 120px;
}
.stat-box:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stat-box .num { font-size: 2.05rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-box .num.red { color: var(--wrong); }
.stat-box .lbl { font-size: 0.9rem; color: var(--text); font-weight: 900; margin-top: 7px; }
.stat-note { font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }

.hero-panel .stat-box {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}
.hero-panel .stat-box:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.44);
}
.hero-panel .stat-box .num { color: white; }
.hero-panel .stat-box .num.red { color: #ffd2c9; }
.hero-panel .stat-box .lbl { color: rgba(255, 255, 255, 0.95); }
.hero-panel .stat-note { color: rgba(255, 255, 255, 0.66); }

/* ===== Copy button ===== */
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--bg); border: 2px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; cursor: pointer;
  transition: all 0.15s; color: var(--text);
}
.copy-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.copy-btn.copied { border-color: var(--correct); color: var(--correct); background: var(--correct-bg); }

/* ===== Back link ===== */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 700; color: var(--accent);
  padding: 12px 0; cursor: pointer;
}
.back-link:hover { text-decoration: underline; }

/* ===== Review item ===== */
.review-item {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 10px;
}
.review-item.ri-wrong { border-left: 5px solid var(--wrong); }
.review-item.ri-correct { border-left: 5px solid var(--correct); }
.review-item.ri-neutral { border-left: 5px solid var(--border); }

.ri-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.ri-badge {
  font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 6px;
}
.ri-badge.badge-wrong { background: var(--wrong-bg); color: var(--wrong); }
.ri-badge.badge-correct { background: var(--correct-bg); color: var(--correct); }
.ri-badge.badge-neutral { background: var(--bg); color: var(--text-dim); }

.ri-q { font-size: 1.1rem; line-height: 1.8; margin-bottom: 10px; }
.ri-opts { font-size: 1rem; line-height: 1.9; color: var(--text-dim); margin-bottom: 10px; }
.ri-opts .opt-correct { color: var(--correct); font-weight: 700; }
.ri-opts .opt-wrong { color: var(--wrong); font-weight: 700; text-decoration: line-through; }

/* ===== Question materials ===== */
.q-materials {
  margin: 0 0 18px;
}
.material-block {
  background: var(--material-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.material-title {
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.material-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.material-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.6;
}
.material-table th,
.material-table td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.material-table th {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 900;
}
.material-table td {
  background: var(--table-cell);
}
.material-image-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.material-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.material-text,
.material-notes {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.material-notes {
  margin-top: 8px;
}

/* ===== Changelog ===== */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-links a {
  color: var(--text-dim);
  font-weight: 700;
}

.page-header-compact {
  padding-top: 8px;
}

.changelog-list {
  display: grid;
  gap: 14px;
}

.changelog-day h2 {
  color: var(--accent-dark);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.changelog-day ul {
  list-style: none;
}

.changelog-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.changelog-item:first-child {
  border-top: 0;
}

.changelog-time,
.changelog-hash {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.changelog-message {
  line-height: 1.6;
}

.changelog-hash {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ===== Theme toggle ===== */
.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 998;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--floating-bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 9px 14px;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%);
  background: #333; color: white; padding: 14px 28px;
  border-radius: 12px; font-size: 1rem; font-weight: 700;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease; }

@media (max-width: 600px) {
  html { font-size: 17px; }
  .container { padding: 14px; }
  .hero-panel {
    border-radius: 26px;
    padding: 24px 18px;
  }
  .hero-panel .page-header {
    text-align: left;
    padding-bottom: 18px;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .card {
    border-radius: 22px;
    padding: 18px;
  }
  .quiz-dashboard {
    display: block;
  }
  .quiz-dashboard .settings-section:first-child {
    padding-right: 0;
    border-right: 0;
  }
  .quiz-dashboard > #startBtn {
    margin-top: 18px;
  }
  .settings-head {
    display: block;
  }
  .selected-pill {
    display: inline-flex;
    margin-top: 10px;
  }
  .bank-card {
    grid-template-columns: 28px 1fr;
  }
  .bank-list {
    grid-template-columns: 1fr;
    max-height: 420px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .bank-count {
    grid-column: 2;
  }
  .number-input {
    max-width: none;
    flex: 1 1 130px;
  }
  .changelog-item {
    grid-template-columns: 52px 1fr;
  }
  .changelog-hash {
    grid-column: 2;
  }
}
