:root {
  --bg: #0d1117;
  --panel: rgba(10, 16, 24, 0.88);
  --panel-strong: rgba(18, 26, 38, 0.96);
  --line: rgba(231, 215, 191, 0.12);
  --text: #f5e8d5;
  --muted: #baa892;
  --gold: #f2c572;
  --gold-deep: #af7c2f;
  --emerald: #37b788;
  --crimson: #d95c4e;
  --roulette-red: #be473b;
  --roulette-black: #1d2735;
  --roulette-green: #179c70;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 197, 114, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(55, 183, 136, 0.12), transparent 24%),
    linear-gradient(135deg, #080b10 0%, #121923 44%, #09131b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  min-height: 100vh;
  padding: 18px;
}

.history-panel,
.card,
.hero-card,
.overlay-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.history-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}

.panel-header h1,
.hero-card h2,
.card h3,
.overlay-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.eyebrow,
.mini-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.history-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 16px;
}

.meta-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.meta-card strong {
  font-size: 1.02rem;
}

.meta-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.regime-chip-button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  color: #10151d;
  font-weight: 800;
  text-align: left;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
  cursor: pointer;
}

.history-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  padding-right: 0;
  overflow-x: clip;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.history-item.low {
  margin-right: 14px;
  background: linear-gradient(135deg, rgba(69, 112, 175, 0.18), rgba(255, 255, 255, 0.03));
  border-color: rgba(106, 156, 231, 0.26);
}

.history-item.high {
  margin-left: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(214, 156, 62, 0.18));
  border-color: rgba(242, 197, 114, 0.24);
}

.history-item.zero {
  margin-left: 7px;
  margin-right: 7px;
  background: linear-gradient(135deg, rgba(23, 156, 112, 0.18), rgba(255, 255, 255, 0.03));
}

.history-item.red {
  box-shadow: inset 3px 0 0 rgba(190, 71, 59, 0.95);
}

.history-item.black {
  box-shadow: inset 3px 0 0 rgba(177, 190, 210, 0.45);
}

.history-item.green {
  box-shadow: inset 3px 0 0 rgba(23, 156, 112, 0.95);
}

.history-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.history-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.history-number.red {
  color: white;
  background: linear-gradient(135deg, #d76457, var(--roulette-red));
}

.history-number.black {
  color: #eef3ff;
  background: linear-gradient(135deg, #364255, var(--roulette-black));
}

.history-number.green {
  color: white;
  background: linear-gradient(135deg, #46c79b, var(--roulette-green));
}

.history-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.history-flag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.history-flag.low {
  color: #eaf4ff;
  background: linear-gradient(135deg, rgba(68, 112, 176, 0.95), rgba(114, 170, 255, 0.92));
}

.history-flag.high {
  color: #241400;
  background: linear-gradient(135deg, rgba(242, 197, 114, 0.96), rgba(255, 230, 156, 0.94));
}

.history-flag.zero {
  color: white;
  background: rgba(23, 156, 112, 0.22);
}

.history-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.history-side strong {
  color: var(--text);
  font-size: 0.8rem;
}

.history-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.history-actions-top {
  margin-top: 0;
  margin-bottom: 12px;
}

.ghost-button,
.danger-button,
.primary-button,
.number-chip {
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.ghost-button,
.danger-button,
.primary-button {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.danger-button {
  color: white;
  background: linear-gradient(135deg, #8f2b27, var(--crimson));
}

.primary-button {
  color: #10151d;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
}

.ghost-button:hover,
.danger-button:hover,
.primary-button:hover,
.number-chip:hover,
.regime-chip-button:hover {
  transform: translateY(-1px);
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
}

.hero-card p {
  margin: 10px 0 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-weight: 700;
}

.grid-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.card {
  padding: 20px;
}

.accent-card {
  background:
    linear-gradient(145deg, rgba(175, 124, 47, 0.17), transparent 55%),
    rgba(18, 26, 38, 0.94);
}

.card-head {
  margin-bottom: 16px;
}

.card-head h3 {
  margin-bottom: 5px;
}

.card-head p {
  margin: 0;
  color: var(--muted);
}

.manual-entry-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.manual-entry-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.98rem;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.keyboard-actions {
  margin-top: 12px;
}

.keyboard-actions .ghost-button {
  width: 100%;
}

.mobile-keyboard-toggle,
.mobile-keyboard-sheet {
  display: none;
}

.mobile-keyboard-toggle {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 36;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: #10151d;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.mobile-keyboard-toggle strong {
  font-size: 0.92rem;
}

.mobile-keyboard-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 10, 16, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.mobile-keyboard-sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-keyboard-card {
  width: min(100%, 560px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.mobile-keyboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-keyboard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mobile-number-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.number-chip {
  padding: 10px 0;
  border-radius: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #e2d1bc, #fff6e8);
}

.number-chip.red {
  color: white;
  background: linear-gradient(135deg, #d76457, var(--roulette-red));
}

.number-chip.black {
  color: #eef3ff;
  background: linear-gradient(135deg, #364255, var(--roulette-black));
}

.number-chip.zero {
  color: white;
  background: linear-gradient(135deg, #0f7d67, var(--emerald));
}

.number-chip.double-zero {
  color: #08120f;
  background: linear-gradient(135deg, #85f2d1, #d7fff0);
}

.token-wrap,
.recommendations,
.regime-details,
.memory-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  color: var(--muted);
}

.token,
.hot-token,
.context-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.token strong,
.hot-token strong,
.context-token strong {
  font-size: 0.94rem;
}

.token span,
.hot-token span,
.context-token span {
  color: var(--muted);
  font-size: 0.78rem;
}

.companions-grid {
  display: grid;
  gap: 14px;
}

.leader-callout {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.leader-title {
  margin: 0;
  font-size: 1rem;
}

.leader-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.leader-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 900;
}

.leader-number.red {
  color: white;
  background: linear-gradient(135deg, #d76457, var(--roulette-red));
}

.leader-number.black {
  color: #eef3ff;
  background: linear-gradient(135deg, #364255, var(--roulette-black));
}

.leader-number.green {
  color: white;
  background: linear-gradient(135deg, #46c79b, var(--roulette-green));
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.signal-pill,
.recommendation-chip,
.detail-pill,
.timeline-pill {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.signal-pill,
.recommendation-chip {
  background: rgba(242, 197, 114, 0.12);
  color: var(--gold);
}

.timeline-pill {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.timeline-pill.active {
  color: #10151d;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
}

.signal-pill.stable {
  color: white;
  background: rgba(55, 183, 136, 0.28);
}

.signal-pill.emerging {
  color: #10151d;
  background: linear-gradient(135deg, #f2c572, #fff0b2);
}

.signal-pill.fragile {
  color: white;
  background: rgba(217, 92, 78, 0.34);
}

.recommendation-card,
.regime-card,
.memory-card {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.recommendation-card h4,
.regime-card h4,
.memory-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}


.memory-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.memory-card-head h4 {
  margin-bottom: 0;
}

.memory-delete-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(217, 92, 78, 0.34);
  border-radius: 10px;
  color: #ffd8d3;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(217, 92, 78, 0.14);
  cursor: pointer;
}

.memory-delete-button:hover {
  background: rgba(217, 92, 78, 0.24);
}
.recommendation-card p,
.regime-card p,
.memory-card p,
.leader-callout p {
  margin: 8px 0 0;
  color: var(--muted);
}

.recommendation-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.regime-bars {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.bar-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #f9efc9);
}

.regime-hint {
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 9, 14, 0.7);
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  padding: 22px;
  overflow: auto;
  background: var(--panel-strong);
}

.overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.overlay-body {
  display: grid;
  gap: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-card h4 {
  margin: 0 0 8px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 8px;
  color: #10151d;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
}

@media (max-width: 1080px) {
  .app-shell,
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .history-panel {
    min-height: 360px;
  }

  .hero-card,
  .overlay-head,
  .leader-topline {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .history-item {
    align-items: flex-start;
  }
}


@media (max-width: 820px) {
  body {
    min-height: 100dvh;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  body.mobile-keyboard-open {
    overflow-y: hidden;
    overflow-x: hidden;
  }

  .app-shell {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 8px;
    min-height: auto;
    padding: 8px 8px calc(98px + env(safe-area-inset-bottom));
    align-items: start;
    overflow-x: clip;
  }

  .history-panel,
  .card,
  .hero-card,
  .overlay-card {
    border-radius: 18px;
  }

  .history-panel {
    position: sticky;
    top: 8px;
    align-self: start;
    height: auto;
    max-height: none;
    padding: 10px 8px;
    overflow: visible;
  }

  .history-panel .panel-header h1 {
    font-size: 1.05rem;
  }

  .history-panel .eyebrow,
  .history-panel .meta-hint,
  .history-side,
  .history-flags,
  .memory-card-wrap,
  .entry-card {
    display: none;
  }

  .history-meta {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 8px 0 8px;
  }

  .meta-card {
    padding: 8px;
    border-radius: 12px;
  }

  .meta-card span {
    font-size: 0.64rem;
    margin-bottom: 4px;
  }

  .meta-card strong,
  .regime-chip-button {
    font-size: 0.8rem;
  }

  .regime-chip-button {
    padding: 8px 9px;
    border-radius: 11px;
  }

  .history-actions {
    margin: 0 0 8px;
    gap: 6px;
  }

  .history-actions .ghost-button,
  .history-actions .danger-button {
    padding: 8px 7px;
    font-size: 0.68rem;
    border-radius: 11px;
  }

  .history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    height: auto;
    max-height: none;
    padding-right: 0;
    overflow: visible;
    overflow-x: clip;
  }

  .history-item {
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .history-item.red,
  .history-item.black,
  .history-item.green {
    box-shadow: none;
  }

  .history-item.low {
    margin-left: 0;
    margin-right: 28px;
    border-color: transparent;
    background: transparent;
  }

  .history-item.high {
    margin-left: 28px;
    margin-right: 0;
    border-color: transparent;
    background: transparent;
  }

  .history-item.zero {
    margin-left: 14px;
    margin-right: 14px;
    background: transparent;
  }

  .history-main {
    width: 100%;
    gap: 0;
  }

  .history-number {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .main-panel {
    min-width: 0;
    gap: 8px;
  }

  .hero-card,
  .card {
    padding: 11px;
  }

  .hero-card {
    gap: 8px;
  }

  .hero-card h2 {
    font-size: 1.04rem;
    line-height: 1.08;
  }

  .hero-card p,
  .card-head p,
  .regime-hint,
  .memory-card p,
  .recommendation-card p,
  .regime-card p,
  .leader-note {
    font-size: 0.74rem;
  }

  .hero-badges {
    gap: 5px;
  }

  .hero-badge {
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .manual-entry-form,
  #number-grid,
  .keyboard-actions {
    display: none;
  }

  .grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack {
    display: contents;
  }

  .consigne-card {
    order: 1;
  }

  .hot-card {
    order: 2;
  }

  .regime-card-wrap {
    order: 3;
  }

  .companions-card {
    order: 4;
  }

  .mobile-keyboard-toggle,
  .mobile-keyboard-sheet {
    display: flex;
  }

  .mobile-keyboard-toggle {
    left: 148px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 12px 14px;
    border-radius: 16px;
  }

  .mobile-keyboard-card {
    width: calc(100% - 140px);
    margin-left: 132px;
    padding: 13px;
    border-radius: 18px;
  }

  .mobile-keyboard-head,
  .overlay-head,
  .leader-topline {
    flex-direction: column;
  }

  .leader-number {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  .leader-callout,
  .recommendation-card,
  .regime-card,
  .memory-card {
    border-radius: 14px;
  }

  .signal-strip,
  .timeline-strip,
  .recommendation-numbers,
  .token-wrap,
  .recommendations,
  .regime-details,
  .memory-details {
    gap: 7px;
  }

  .signal-pill,
  .recommendation-chip,
  .detail-pill,
  .timeline-pill {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .hot-token,
  .context-token {
    width: 100%;
    justify-content: space-between;
    padding: 8px 10px;
  }

  .number-chip {
    min-height: 44px;
    font-size: 0.94rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 6px calc(96px + env(safe-area-inset-bottom));
  }

  .history-panel {
    top: 6px;
    padding: 8px 6px;
  }

  .history-panel .panel-header h1 {
    font-size: 0.98rem;
  }

  .history-meta {
    gap: 5px;
    margin: 6px 0 6px;
  }

  .meta-card {
    padding: 7px;
  }

  .history-actions {
    gap: 5px;
    margin-bottom: 6px;
  }

  .history-actions .ghost-button,
  .history-actions .danger-button {
    padding: 7px 6px;
    font-size: 0.64rem;
  }

  .history-item.low {
    margin-right: 24px;
  }

  .history-item.high {
    margin-left: 24px;
  }

  .history-item.zero {
    margin-left: 12px;
    margin-right: 12px;
  }

  .history-number {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .hero-card h2 {
    font-size: 1rem;
  }

  .mobile-number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-keyboard-toggle {
    left: 130px;
    right: 6px;
    padding: 11px 12px;
  }

  .mobile-keyboard-card {
    width: calc(100% - 124px);
    margin-left: 118px;
    padding: 12px;
  }
}
