﻿:root {
  color-scheme: dark;
  --bg: #07101f;
  --panel: #121d34;
  --panel-2: #1d2942;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f9ff;
  --muted: #9fb4da;
  --accent: #4da3ff;
  --bad: #ff8a8a;
  --good: #72e6be;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #14244a 0, var(--bg) 58%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

body.locked {
  overflow: hidden;
}

body.locked .app-shell {
  display: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 16, 31, 0.9);
}

.auth-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.auth-card p,
.panel-head p,
.topbar p,
.field span,
.auth-status small {
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
}

h2 {
  margin-top: 4px;
  font-size: 22px;
}

#view-settle .panel-head p,
#view-settle .settle-result {
  font-size: 13px;
}

#view-settle h2 {
  font-size: 20px;
}

#view-settle .lottery-btn,
#view-settle .ghost-btn,
#view-settle .primary-btn {
  font-size: 14px;
}

input,
button,
textarea,
select,
a {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

input {
  min-height: 48px;
  padding: 0 12px;
  text-align: center;
}

select {
  min-height: 48px;
  padding: 0 12px;
}

select option {
  color: #07101f;
  background: #f3f7ff;
}

textarea {
  min-height: 210px;
  padding: 14px;
  resize: vertical;
}

.auth-message {
  min-height: 20px;
  color: #ffd08a;
  font-size: 13px;
}

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.topbar,
.panel-head,
.action-row,
.tabs,
.segmented,
.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar {
  margin-bottom: 14px;
}

.notice-bar {
  flex: 1;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 208, 138, 0.34);
  border-radius: 14px;
  color: #ffd08a;
  background: rgba(255, 208, 138, 0.1);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.topbar-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.top-actions {
  justify-content: flex-end;
}

.auth-status {
  display: grid;
  justify-items: end;
}

.auth-status span {
  font-weight: 900;
}

.tabs {
  width: 188px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.tab,
.lottery-btn,
.ghost-btn,
.icon-btn,
.danger-btn,
.rank-type-btn {
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
  padding: 0 16px;
}

.top-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
}

.bot-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.danger-btn {
  background: rgba(255, 99, 132, 0.2);
  color: #ffb3bf;
}

.delete-entry-btn {
  border-color: rgba(255, 79, 79, 0.78);
  background: linear-gradient(180deg, rgba(255, 79, 79, 0.96), rgba(197, 38, 48, 0.96));
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 79, 79, 0.18);
}

.delete-entry-btn:hover {
  border-color: rgba(255, 138, 138, 0.9);
  background: linear-gradient(180deg, rgba(255, 94, 94, 1), rgba(212, 44, 54, 1));
}

.tab,
.tabs button {
  flex: 1;
}

.tab {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 14px;
}

.mini-segmented {
  width: auto;
  padding: 4px;
  gap: 4px;
}

.mini-segmented .lottery-btn {
  min-width: 64px;
  height: 44px;
  padding: 0 12px;
}

.tab.active,
.lottery-btn.active,
.rank-type-btn.active,
.primary-btn {
  background: linear-gradient(180deg, #62b4ff, #3d86ff);
  color: white;
  font-weight: 900;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
  gap: 14px;
}

.live-board,
.workspace-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.panel,
.settings-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(18, 29, 52, 0.94);
}

.bot-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.bot-layout {
  display: grid;
  gap: 14px;
}

.bot-chat {
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.bot-message {
  width: fit-content;
  max-width: min(100%, 680px);
  white-space: pre-wrap;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.bot-message.user {
  justify-self: end;
  background: rgba(77, 163, 255, 0.28);
}

.bot-message.bot {
  justify-self: start;
}

.bot-compose {
  display: grid;
  gap: 10px;
}

.bot-group-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bot-group-field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.bot-group-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.bot-compose textarea {
  min-height: 110px;
}

.bot-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-grid,
.board-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.board-stat-grid {
  grid-template-columns: 1fr;
}

.summary-grid article,
.board-stat-grid article {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.summary-grid span,
.board-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong,
.board-stat-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 14px;
}

.segmented {
  justify-content: flex-end;
}

.rank-tabs,
.rank-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.rank-fold summary {
  display: grid;
  gap: 12px;
}

.rank-subtabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-type-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-height: 58px;
  width: 100%;
}

.rank-type-btn strong {
  color: var(--muted);
}

.rank-type-btn.active strong {
  color: #fff;
}

.rank-current {
  margin-top: 12px;
  color: var(--muted);
}

.rank-sub-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.rank-sub-btn span {
  font-weight: 900;
}

.rank-sub-btn strong {
  color: var(--muted);
}

.rank-sub-btn.active {
  background: var(--accent);
}

.rank-sub-btn.active strong {
  color: #fff;
}

.rank-list,
.preview-list,
.entry-list,
.license-list,
.failed-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.preview-list {
  max-height: min(420px, 48vh);
  overflow: auto;
  padding-right: 4px;
}

.preview-card,
.entry-card,
.rank-card,
.license-row,
.failed-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-card {
  grid-template-columns: minmax(76px, 0.9fr) minmax(84px, 1.3fr) minmax(76px, 0.75fr) minmax(80px, 0.75fr) minmax(110px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
}

.preview-card span,
.preview-card small {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-main {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 900;
}

.preview-main strong {
  color: var(--muted);
  font-size: 13px;
}

.preview-targets {
  font-weight: 850;
}

.preview-money,
.preview-total,
.preview-card small {
  color: var(--muted);
  font-size: 13px;
}

.failed-wrap {
  margin-top: 14px;
}

.failed-title {
  color: #ffd08a;
  font-weight: 900;
}

.failed-card {
  border-color: rgba(255, 138, 138, 0.35);
  background: rgba(255, 138, 138, 0.08);
}

.failed-card textarea {
  min-height: 64px;
  margin-top: 8px;
  font-size: 14px;
}

.failed-reason {
  color: #ffd08a;
  font-size: 13px;
  line-height: 1.45;
}

.failed-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.failed-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.entry-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rank-card {
  min-height: 42px;
  padding: 10px 12px;
}

.rank-card strong {
  font-size: 18px;
}

.empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--muted);
}

.compact-empty {
  padding: 10px 12px;
  font-size: 13px;
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.draw-ball {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.draw-ball-input {
  width: 54px;
  min-height: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: #2c3a57;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.22), inset 0 8px 12px rgba(255, 255, 255, 0.12);
}

.draw-ball.red .draw-ball-input {
  background: linear-gradient(180deg, #ff6b6b, #d9223a);
}

.draw-ball.blue .draw-ball-input {
  background: linear-gradient(180deg, #62b4ff, #1565d8);
}

.draw-ball.green .draw-ball-input {
  background: linear-gradient(180deg, #5bd88a, #15884d);
}

.draw-ball-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.draw-zodiac {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.draw-ball-input.special {
  border-color: rgba(255, 208, 111, 0.9);
}

.period {
  min-height: 44px;
  align-self: center;
  font-size: 15px;
}

.settle-result {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.settle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settle-summary strong,
.settle-summary span {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.settle-summary strong {
  grid-column: 1 / -1;
  color: var(--text);
}

.win-text {
  color: var(--good);
  font-weight: 900;
}

.rebate-text {
  color: #ffd08a;
  font-weight: 900;
}

.loss-text {
  color: var(--bad);
  font-weight: 900;
}

.settle-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.settle-break-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 208, 138, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.settle-break-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
}

.settle-break-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.settle-break-stats span,
.settle-play-row {
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.settle-play-list {
  display: grid;
  gap: 6px;
}

.settle-play-row {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) 46px repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.settle-play-row strong {
  color: var(--text);
}

.winner-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.winner-title {
  color: var(--text);
  font-weight: 900;
}

.winner-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(114, 230, 190, 0.1);
}

.winner-row span {
  color: var(--muted);
}

.winner-targets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.winner-target {
  min-width: 24px;
  padding: 2px 7px;
  border: 1px solid rgba(151, 188, 255, 0.28);
  border-radius: 999px;
  color: #9fc4ff;
  background: rgba(151, 188, 255, 0.08);
  font-style: normal;
  line-height: 1.35;
  text-align: center;
}

.winner-target.hit {
  border-color: rgba(255, 107, 107, 0.9);
  color: #fff;
  background: linear-gradient(180deg, #ff6666, #d92d3a);
  box-shadow: 0 6px 14px rgba(255, 79, 79, 0.2);
}

.winner-hit-count {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffd08a;
  background: rgba(255, 208, 138, 0.12);
  font-size: 12px;
  font-style: normal;
}

.muted-row {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 18px 14px;
  background: rgba(7, 16, 31, 0.72);
  overflow: auto;
}

.settings-card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.settings-title {
  margin-top: 14px;
  font-weight: 900;
  color: var(--text);
}

.play-settings-head,
.play-settings-row {
  display: grid;
  grid-template-columns: 90px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.play-settings-head {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.play-settings-row {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.play-settings-row label {
  display: grid;
  gap: 4px;
}

.play-settings-row label span {
  display: none;
}

.zodiac-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.zodiac-settings-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.zodiac-settings-row input {
  min-height: 38px;
  text-align: left;
}

details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

summary {
  padding: 14px;
  cursor: pointer;
  font-weight: 900;
}

.license-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.license-create {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(120px, 0.9fr);
  gap: 8px;
  padding: 0 12px 12px;
}

.license-summary span {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.unrecognized-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.unrecognized-settings summary small {
  color: var(--muted);
}

.settings-tools {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 12px 10px;
}

.unrecognized-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.unrecognized-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 208, 138, 0.22);
  border-radius: 12px;
  background: rgba(255, 208, 138, 0.07);
}

.unrecognized-card div {
  display: grid;
  gap: 4px;
}

.unrecognized-card span,
.unrecognized-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.danger-text {
  color: var(--bad);
}

@media (max-width: 820px) {
  body {
    background: var(--bg);
  }

  h2 {
    font-size: 20px;
  }

  .app-shell {
    padding: 10px 8px calc(86px + env(safe-area-inset-bottom));
  }

  .topbar {
    display: grid;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .notice-bar {
    min-height: auto;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.35;
    max-height: 50px;
    overflow: hidden;
  }

  .topbar-right {
    width: 100%;
    justify-items: stretch;
    gap: 6px;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: 6px;
  }

  .top-actions button,
  .top-actions a {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .auth-status {
    justify-items: start;
    align-content: center;
    min-width: 0;
  }

  .auth-status span,
  .auth-status small {
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .tabs {
    position: fixed;
    left: 50%;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 35;
    width: min(calc(100% - 16px), 520px);
    transform: translateX(-50%);
    padding: 3px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(13, 25, 48, 0.96);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
  }

  .tab {
    min-height: 40px;
    font-size: 14px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workspace-column {
    order: 1;
  }

  .live-board {
    order: 2;
    gap: 10px;
  }

  .view.active {
    gap: 10px;
  }

  .panel,
  .settings-card {
    padding: 12px;
    border-radius: 14px;
  }

  .panel-head {
    align-items: flex-start;
    gap: 8px;
  }

  textarea {
    min-height: 170px;
    padding: 12px;
    border-radius: 13px;
    font-size: 16px;
    line-height: 1.45;
  }

  .action-row {
    margin-top: 8px;
  }

  .action-row .primary-btn,
  .action-row .ghost-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .record-fold summary,
  .rank-fold summary {
    padding: 12px;
  }

  .record-fold .entry-list {
    margin-top: 8px;
  }

  .entry-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .entry-card .ghost-btn {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .rank-tabs,
  .rank-subtabs {
    gap: 6px;
    margin-top: 10px;
  }

  .rank-type-btn {
    min-height: 46px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 14px;
  }

  .rank-current {
    margin-top: 10px;
    font-size: 13px;
  }

  .rank-card strong {
    font-size: 16px;
  }

  .board-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid,
  .draw-grid,
  .license-summary,
  .license-create,
  .settle-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .play-settings-head {
    display: none;
  }

  .play-settings-row {
    grid-template-columns: 1fr 1fr;
  }

  .play-settings-row strong {
    grid-column: 1 / -1;
  }

  .play-settings-row label span {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }

  .zodiac-settings-list {
    grid-template-columns: 1fr;
  }

  .preview-card {
    grid-template-columns: 58px minmax(72px, 1fr) 64px 70px;
  }

  .preview-card small {
    grid-column: 1 / -1;
  }

  .winner-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding-inline: 6px;
  }

  .top-actions {
    grid-template-columns: 1fr 48px 48px 64px 48px;
  }

  .top-actions button,
  .top-actions a {
    padding: 0 6px;
  }

  .panel,
  .settings-card {
    padding: 10px;
  }

  .compact-head {
    display: grid;
  }

  .mini-segmented,
  .segmented {
    width: 100%;
    justify-content: stretch;
  }

  .mini-segmented .lottery-btn,
  .segmented .lottery-btn {
    flex: 1;
    min-width: 0;
  }

  .draw-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .settle-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settle-break-stats,
  .settle-play-row {
    grid-template-columns: 1fr 1fr;
  }

  .settle-play-row strong {
    grid-column: 1 / -1;
  }

  .license-summary,
  .license-create,
  .settle-summary {
    grid-template-columns: 1fr;
  }
}
