:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #66736d;
  --line: #dfe6e1;
  --surface: #ffffff;
  --surface-soft: #f5f7f3;
  --pitch: #10221b;
  --pitch-2: #173b2d;
  --gold: #d9ae4f;
  --red: #d14d45;
  --green: #23835d;
  --blue: #336b87;
  --shadow: 0 14px 36px rgba(20, 33, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-soft);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(23, 34, 29, 0.04);
}

.hero {
  color: #fff;
  background:
    linear-gradient(rgba(16, 34, 27, 0.82), rgba(16, 34, 27, 0.68)),
    repeating-linear-gradient(90deg, #153c2c 0 54px, #184633 54px 108px);
  min-height: 36vh;
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #1e2115;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
}

.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--pitch);
  font-size: 12px;
  font-weight: 800;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

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

h1 {
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.content {
  flex: 1;
  padding: 18px 16px 90px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar h1 {
  font-size: 21px;
  line-height: 1.1;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 14px;
}

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

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}

.section-title h2 {
  font-size: 19px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(23, 34, 29, 0.03);
}

.group-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  cursor: pointer;
}

.admin-group-choice {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}

.archive-game-card {
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}

.performance-scroll {
  overflow-x: auto;
}

.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.performance-table th,
.performance-table td {
  padding: 10px 6px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.performance-table th:first-child {
  text-align: left;
}

.performance-table thead button {
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.performance-table tbody tr:nth-child(even) {
  background: #f5f7f6;
}

.performance-table .own-performance {
  background: #e7f4ec;
}

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

.performance-player .avatar {
  flex-shrink: 0;
}

.profile-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #aac6b5;
  border-radius: 50%;
  background: #e7f4ec;
  color: var(--pitch);
  font-size: 14px;
  cursor: pointer;
}

.workspace-label {
  margin-bottom: 14px;
}

.workspace-options {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
}

.account-choice {
  justify-content: flex-start;
  min-height: 52px;
}

.performance-player small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.member-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.member-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.developer-controls {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.developer-controls summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.developer-controls > .stack {
  margin-top: 16px;
}

#invite-link {
  font-size: 13px;
}

.group-card.needs-pick,
.group-card.picked-open {
  background: #fbfdfb;
}

.group-card.in-play {
  border-color: rgba(35, 131, 93, 0.34);
  background: #f0f8f3;
}

.group-card.watching {
  background: #f8f8f7;
  border-color: #e4e7e4;
}

.group-card.completed,
.group-card.won-by-me,
.group-card.join {
  background: #fffaf0;
  border-color: #efd487;
}

.group-card.rollover {
  background: #fff7f5;
  border-color: #efc7c2;
}

.group-card.active {
  border-color: rgba(35, 131, 93, 0.42);
  box-shadow: var(--shadow);
}

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

.group-info {
  min-width: 0;
}

.group-info h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 58px;
}

.group-avatar-wrap.watching .crest,
.group-avatar-wrap.rollover .crest {
  filter: grayscale(1);
  opacity: 0.52;
}

.group-avatar-wrap .crest {
  width: 56px;
  height: 56px;
  font-size: 13px;
}

.pick-orb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  font-weight: 850;
}

.pick-orb.empty {
  color: var(--muted);
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pick-orb.empty::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #eef1ef;
  border: 3px solid #c7d0cb;
}

.sub-icon {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(23, 34, 29, 0.18);
}

.sub-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sub-icon.plus {
  background: var(--green);
}

.sub-icon.swap {
  background: var(--blue);
}

.sub-icon.lock {
  background: var(--red);
}

.sub-icon.muted {
  background: #9ca7a1;
}

.sub-icon.trophy {
  background: #a87708;
  color: #fff;
}

.sub-icon.trophy svg {
  width: 18px;
  height: 18px;
}

.sub-icon.swap svg {
  width: 15px;
  height: 15px;
}

.group-avatar-wrap small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.winner-avatar,
.join-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--pitch);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.join-avatar {
  background: var(--green);
}

.group-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.group-action-pill {
  flex: 0 0 auto;
  margin-left: auto;
  background: var(--pitch);
  color: #fff;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-live {
  color: #fff;
  background: var(--green);
}

.status-danger {
  color: #fff;
  background: var(--red);
}

.status-gold {
  color: #1f1b0f;
  background: #f2d37e;
}

.btn {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.btn.primary {
  color: #fff;
  background: var(--pitch);
  border-color: var(--pitch);
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #171408;
}

.btn.full {
  width: 100%;
}

.btn.icon {
  width: 42px;
  padding: 0;
  font-size: 20px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  transform: translateX(-50%);
  width: min(540px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 3), 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.tab {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.tab span:first-child {
  font-size: 20px;
  line-height: 1;
}

.tab.active {
  color: var(--pitch);
  background: #edf4ef;
}

.fixture {
  padding: 5px 0;
}

.kickoff-heading {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.kickoff-group {
  min-width: 0;
}

.fixture-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
}

.team-option {
  position: relative;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--ink);
  padding: 8px 6px;
  text-align: right;
}

.team-option .team-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: normal;
}

.team-option .crest {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
  font-size: 10px;
}

.team-option .club-badge img {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.team-option:has(.team-used),
.team-option:has(.team-lock) {
  min-height: 64px;
  padding-bottom: 24px;
}

.team-option.away {
  flex-direction: row-reverse;
  justify-content: flex-start;
  text-align: left;
}

.team-option.away .team-name {
  flex: 1;
  text-align: left;
}

.crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 3px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(23, 34, 29, 0.16);
}

.crest.muted {
  background: #d9dfda;
  color: var(--muted);
}

.club-badge {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--ink) !important;
}

.club-badge .badge-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.club-badge:has(img:not([hidden])) .badge-fallback {
  visibility: hidden;
}

.league-heading {
  margin: 10px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
}

.club-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
}

.club-badge img[hidden] {
  display: none;
}

.team-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
  line-height: 1.12;
}

.vs {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fixture-time {
  width: 32px;
  align-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.team-option.selected {
  border-color: var(--green);
  background: #e7f4ec;
  box-shadow: inset 0 0 0 1px rgba(35, 131, 93, 0.22);
}

.team-option.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.team-option.disabled.selected {
  opacity: 0.82;
}

.team-lock {
  position: absolute;
  left: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(23, 34, 29, 0.16);
}

.team-lock svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-option.away .team-lock {
  left: auto;
  right: 7px;
}

.team-used {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .team-option .team-name {
    font-size: 12px;
  }
}

.team-option.away .team-used {
  left: auto;
  right: 8px;
}

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

.player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.player.out {
  opacity: 0.62;
}

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

.history {
  padding: 12px;
}

.history-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.history-head:disabled {
  cursor: default;
  opacity: 1;
}

.history-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.history-head small {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.team-picks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.team-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 56px;
  padding: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.team-pick-row:nth-child(even) {
  background: #f6f8f6;
}

.team-pick-row.through {
  background: #e7f4ec;
}

.team-pick-row.through:nth-child(even) {
  background: #dcefe4;
}

.team-pick-row.lost {
  background: #fbe5e5;
}

.team-pick-row.lost:nth-child(even) {
  background: #f6dada;
}

.team-pick-code {
  flex: 0 0 auto;
}

.avatar-strip {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 2px 5px;
  scrollbar-width: none;
}

.avatar-strip::-webkit-scrollbar {
  display: none;
}

.avatar.mini {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  font-size: 10px;
  box-shadow: 0 0 0 1px rgba(23, 34, 29, 0.08);
}

.team-pick-row.through .avatar.mini {
  border-color: var(--green);
}

.team-pick-row.lost .avatar.mini {
  border-color: #b94343;
}

.form {
  display: grid;
  gap: 12px;
}

.stake-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.stake-field legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.stake-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.stake-choice:has(input:checked) {
  background: #e7f4ec;
  border-color: var(--green);
}

.custom-stake {
  margin-top: 12px;
}

.custom-stake[hidden] {
  display: none;
}

.create-league-picker {
  margin-top: 10px;
}

.modal .create-league-picker {
  border-top: 0;
  padding-top: 0;
}

.create-league-picker > summary[hidden] {
  display: none;
}

.create-league-summary-row > p {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.create-league-summary-row > button {
  flex-shrink: 0;
}

.create-league-picker[open] > * + * {
  margin-top: 12px;
}

.check-row[hidden] {
  display: none;
}

.field {
  position: relative;
  display: grid;
  gap: 6px;
}

.field select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
}

.field:has(> select)::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 19px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
}

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

.check-row {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-row input {
  width: 20px;
  height: 20px;
}

.empty {
  padding: 22px 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd5cf;
  border-radius: 8px;
  background: #fbfcfb;
}

.notice {
  padding: 12px;
  border-radius: 8px;
  background: #fff7df;
  border: 1px solid #efd487;
  color: #4b3a11;
  line-height: 1.35;
  font-size: 13px;
}

.pick-notice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pick-notice .crest {
  flex: 0 0 42px;
}

.pick-notice > span:last-child {
  min-width: 0;
}

.deadline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 12px 10px;
  min-height: 88px;
  border-radius: 8px;
  background: #eaf4ef;
  border: 1px solid #bdd8ca;
}

.deadline strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.deadline-date {
  color: var(--green);
  font-weight: 600;
}

.deadline.locked .deadline-date {
  color: var(--muted);
}

.deadline > span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
}

.deadline.locked {
  background: #f0f0ef;
  border-color: var(--line);
}

.deadline.locked > span {
  color: var(--muted);
}

.history-lock {
  margin: 12px 0 0;
  line-height: 1.6;
}

.round-participants {
  margin-top: 12px;
  padding: 4px 2px;
  gap: 8px;
}

.dev-card {
  border-style: dashed;
  background: #fbfcfb;
}

.dev-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

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

.stat {
  padding: 12px 8px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 20px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  background: rgba(14, 22, 18, 0.42);
  padding: 18px 12px;
}

.modal {
  width: min(516px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  line-height: 1.5;
}

.modal > * {
  min-width: 0;
}

.modal h2,
.modal h3 {
  line-height: 1.3;
}

.modal p {
  line-height: 1.55;
}

.modal .form {
  gap: 16px;
}

.modal .btn {
  min-height: 46px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
  white-space: normal;
}

.modal .btn.icon {
  flex: 0 0 42px;
}

.modal .row {
  flex-wrap: wrap;
  row-gap: 4px;
}

.modal details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.modal summary {
  cursor: pointer;
  line-height: 1.5;
}

.modal details[open] > * + * {
  margin-top: 12px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

@media (min-width: 760px) {
  body {
    background:
      linear-gradient(rgba(16, 34, 27, 0.72), rgba(16, 34, 27, 0.78)),
      repeating-linear-gradient(90deg, #123223 0 72px, #173b2d 72px 144px);
  }

  .screen {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
  }

  .tabs {
    border-radius: 8px 8px 0 0;
  }
}
