:root {
  color-scheme: light;
  --paper: #f3f5f8;
  --panel: #ffffff;
  --ink: #101722;
  --soft-ink: #667085;
  --line: #e4e8ef;
  --line-strong: #c7d0dd;
  --red: #d4113b;
  --red-dark: #a90d2e;
  --green: #0f766e;
  --blue: #2563a9;
  --gold: #b7791f;
  --violet: #6b5bb8;
  --slate: #334155;
  --wash: #eef2f6;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e9edf3 0, #f7f8fb 260px),
    var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

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

.app-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #111827 0%, #172033 68%, #2b1220 100%);
}

.brand-zone {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.portal-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.portal-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
}

.portal-arrow {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff06a, #ffc400);
  box-shadow: inset 0 -1px 0 rgba(161, 98, 7, 0.24), 0 0 0 4px rgba(212, 17, 59, 0.86);
}

.logo-mark::after {
  content: "6";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #101722;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrap select,
.language-switch {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.select-wrap select {
  min-width: 178px;
  height: 40px;
  padding: 0 34px 0 12px;
  color: #fff;
  font-weight: 760;
  outline: none;
  appearance: none;
}

.select-wrap option {
  color: var(--ink);
}

.language-switch {
  display: flex;
  gap: 3px;
  padding: 4px;
}

.language-switch button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.language-switch button.active {
  color: var(--ink);
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  min-height: calc(100vh - 98px);
}

.entry-column {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f7f8fa;
}

.result-column {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
  padding: 18px;
  background: #f1f4f8;
}

.panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.entry-panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title.stacked {
  display: grid;
  align-items: start;
  gap: 4px;
}

.panel-title span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-title h2 {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.panel-title p {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.entry-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4f8;
}

.entry-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--soft-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 880;
}

.entry-tabs button.active {
  color: #fff;
  background: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 820;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.14);
}

input {
  height: 52px;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 760;
}

textarea {
  min-height: 104px;
  padding: 13px;
  resize: vertical;
  line-height: 1.45;
  font-size: 14px;
}

.ticket-textarea {
  min-height: 88px;
  font-size: 15px;
  font-weight: 760;
}

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

.primary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #df1946, #be123c);
  box-shadow: 0 8px 18px rgba(190, 18, 60, 0.18);
}

.primary-button:hover {
  background: linear-gradient(180deg, #e11d48, #9f1239);
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.ghost-button:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.danger-button {
  color: #fff;
  background: #7f1d1d;
}

.wide {
  flex: 1 1 170px;
}

.message {
  min-height: 18px;
  color: var(--red-dark);
  font-size: 12px;
  line-height: 1.4;
}

.number-display {
  display: flex;
  flex-wrap: wrap;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.slot-ball {
  width: 34px;
  height: 34px;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  background: #f1f5f9;
}

.number-pad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
}

.option-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.option-head strong {
  font-size: 13px;
}

.option-head span {
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.option-grid select {
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

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

.check-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.pick-ball,
.ball {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 850;
}

.pick-ball {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.pick-ball:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pick-ball.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.16);
}

.ball {
  position: relative;
  width: 34px;
  height: 34px;
  color: var(--ball-ink);
  border: 1px solid var(--ball-border);
  background: var(--ball-bg);
  font-size: 13px;
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.07);
}

.ball.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.tone-a {
  --ball-bg: #fff7d6;
  --ball-border: #f0c84b;
  --ball-ink: #725200;
}

.tone-b {
  --ball-bg: #e7f3ff;
  --ball-border: #8cc5f5;
  --ball-ink: #155b91;
}

.tone-c {
  --ball-bg: #fff0f3;
  --ball-border: #f59aaa;
  --ball-ink: #a31935;
}

.tone-d {
  --ball-bg: #f1edff;
  --ball-border: #b7a8f4;
  --ball-ink: #5643a4;
}

.tone-e {
  --ball-bg: #eef2f7;
  --ball-border: #b8c4d4;
  --ball-ink: #475569;
}

.ball.tier-1 {
  box-shadow: 0 3px 9px rgba(15, 23, 42, 0.08);
}

.ball.derived-hit:not(.direct-hit) {
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16), 0 3px 9px rgba(15, 23, 42, 0.07);
}

.ball.derived-hit:not(.direct-hit)::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #14b8a6;
}

.ball.direct-hit {
  color: #fff;
  border-color: #111827;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.32), 0 7px 16px rgba(15, 23, 42, 0.18);
}

.saved-line,
.generated-line,
.hit-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.saved-strip {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.saved-strip.empty {
  color: var(--soft-ink);
  font-size: 13px;
  justify-content: center;
  border-style: dashed;
}

.status-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.10);
  font-size: 11px;
  font-weight: 950;
}

.result-card {
  overflow: hidden;
}

.result-card {
  grid-column: 1 / -1;
}

.result-card > .panel-head {
  min-height: 52px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.result-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.empty-state {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--soft-ink);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.score {
  min-height: 102px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.score:last-child {
  border-right: 0;
}

.score span {
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 900;
}

.score strong {
  display: block;
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.15;
}

.score.good strong {
  color: var(--green);
}

.score.bad strong {
  color: var(--red);
}

.score.warn strong {
  color: var(--gold);
}

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

.hit-metric {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hit-metric span {
  display: block;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 950;
}

.hit-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.hit-metric.good strong {
  color: var(--green);
}

.hit-metric.warn strong {
  color: var(--gold);
}

.history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.compact-field {
  gap: 6px;
}

.compact-field select {
  height: 42px;
}

.return-card {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
}

.return-card span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 850;
}

.return-card strong {
  color: #0f766e;
  font-size: 18px;
  font-weight: 900;
}

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

.data-status-grid article {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.data-status-grid span {
  display: block;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 900;
}

.data-status-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.compact-empty {
  min-height: 88px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-row div {
  display: grid;
  gap: 3px;
}

.history-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.history-row span {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 760;
}

.rank-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.rank-badge {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ink);
  font-size: 12px !important;
  font-weight: 850 !important;
}

.generated-list {
  display: grid;
  gap: 10px;
}

.generated-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.color-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-ink);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.legend-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 999px;
}

.legend-direct {
  border: 1px solid #111827;
  background: #111827;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.36);
}

.legend-derived {
  border: 1px solid #14b8a6;
  background: #f8fffd;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.14);
}

.legend-derived::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #14b8a6;
}

.legend-new {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.generated-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.generated-item:hover,
.saved-number-item:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.generated-topline {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.rank-chip {
  flex: 0 0 auto;
  display: inline-flex;
  min-width: 38px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #101722;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 950;
}

.saved-number-list {
  display: grid;
  gap: 8px;
}

.saved-number-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.saved-number-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  text-align: left;
}

.saved-number-item:hover,
.saved-number-item.active {
  border-color: rgba(190, 18, 60, 0.36);
  box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.08);
}

.delete-saved-button {
  min-height: 36px;
  margin-right: 10px;
  border: 1px solid rgba(127, 29, 29, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: #991b1b;
  background: rgba(127, 29, 29, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.delete-saved-button:hover {
  border-color: rgba(127, 29, 29, 0.28);
  background: rgba(127, 29, 29, 0.10);
}

.generated-meta {
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 850;
}

.hit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hit-table th,
.hit-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.hit-table th {
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 950;
}

.hit-table tr:last-child td {
  border-bottom: 0;
}

.rank-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.rank-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.rank-count-card {
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rank-count-card span {
  display: block;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 950;
}

.rank-count-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
}

.table-wrap {
  overflow-x: auto;
}

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

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 400px minmax(0, 1fr);
  }

  .result-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-zone {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .entry-column {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hit-overview {
    grid-template-columns: 1fr;
  }

  .history-toolbar {
    grid-template-columns: 1fr;
  }

  .data-status-grid {
    grid-template-columns: 1fr;
  }

  .score:nth-child(2) {
    border-right: 0;
  }

  .score:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  body {
    background: #fff;
  }

  .topbar,
  .entry-column,
  .result-column {
    padding: 14px;
  }

  h1 {
    font-size: 21px;
  }

  .toolbar,
  .generated-item,
  .option-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .number-pad {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score,
  .score:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score:last-child {
    border-bottom: 0;
  }

  .saved-strip {
    display: grid;
    justify-content: stretch;
  }

  .saved-number-item {
    grid-template-columns: 1fr;
  }

  .delete-saved-button {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
  }
}
