:root {
  --navy: #102658;
  --navy-2: #0b1c42;
  --steel: #1f4a75;
  --orange: #f36801;
  --orange-2: #d85c00;
  --white: #ffffff;
  --bg: #f4f6fa;
  --ink: #1c2534;
  --muted: #6b7688;
  --line: #e3e8f0;
  --danger: #d64545;
  --ok: #1e9e4a;
  --ok-soft: #e9f7ee;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(16, 38, 88, 0.10);
}

/* Per-section accent themes */
.theme-schedule { --accent: #0284c7; --accent-dark: #0369a1; --accent-soft: #e0f2fe; }
.theme-fees     { --accent: #1e9e4a; --accent-dark: #157a37; --accent-soft: #e9f7ee; }
.theme-umpiring { --accent: #b08a3e; --accent-dark: #8f6d2c; --accent-soft: #faf0dc; }
.theme-roster   { --accent: #7c3aed; --accent-dark: #6d28d9; --accent-soft: #f3e8ff; }
.theme-bronze   { --accent: #b08a3e; --accent-dark: #8f6d2c; --accent-soft: #faf0dc; }
.theme-playoff  { --accent: #d4a017; --accent-dark: #b0890f; --accent-soft: #fdf6e0; }

* { box-sizing: border-box; }

/* Root font scaled +25% (16px -> 20px); all rem sizes follow */
html { font-size: 20px; }

/* ---------- Aptos (bundled from Microsoft Office) ---------- */

@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Aptos";
  src: url("../fonts/Aptos-Bold-Italic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: Aptos, "Aptos Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ---------- */

.topbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 14px 16px calc(14px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(16, 38, 88, 0.35);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }

.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }

.topbar-medal {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--orange);
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.3px; }
.brand-name em { font-style: normal; color: var(--orange); }
.brand-tag { display: block; font-size: 0.72rem; color: #b9c6e2; letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.3; margin-top: 2px; }

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

.topbar-user .btn-ghost {
  background: #7cb518;
  color: #fff;
  border: none;
}
.topbar-user .btn-ghost:hover {
  background: #699d13;
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.chip-admin { background: var(--orange); color: var(--white); }
.chip-user { background: var(--steel); color: var(--white); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
  flex: 1;
}

.admin-intro h1, .user-intro h1 {
  margin: 4px 0 2px;
  font-size: 1.5rem;
  color: var(--navy);
}
.admin-intro p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }

.intro-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.intro-row .btn { margin-top: 6px; }
.char-count { text-align: right; font-size: 0.8rem; color: var(--muted); margin: 4px 0 10px; }
.announcements-list { list-style: none; margin: 14px 0; padding: 0; text-align: left; }
.announcements-list .record-item { font-size: 0.92rem; }

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  margin: 14px 0 12px;
  gap: 4px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 2px;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab.active {
  background: var(--accent, var(--navy));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(16, 38, 88, 0.35);
}

.tab-panel { display: none; animation: fade 0.2s ease; }
.tab-panel.active { display: block; }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Season bar ---------- */

.season-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.season-bar .field-input { flex: 1; }

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.form-card { padding: 16px; border-top: 4px solid var(--accent, var(--orange)); }
.list-card { padding: 8px 16px 12px; }

/* List cards (all admin tabs): dark gradient */
.tab-panel .list-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-color: var(--navy-2);
  box-shadow: 0 6px 18px rgba(16, 38, 88, 0.35);
}
.tab-panel .list-card .panel-title { color: #fff; }
.tab-panel .list-card .record-item { border-color: rgba(255, 255, 255, 0.15); }
.tab-panel .list-card .record-title { color: #fff; }
.tab-panel .list-card .record-sub { color: #b9c6e2; }
.tab-panel .list-card .record-item.empty { color: #b9c6e2; }

/* Paid fee records: light green row + yellow tag */
.record-item.record-paid {
  background: #dcf2e3;
  border-color: transparent;
  border-radius: 10px;
  margin: 8px 0;
  padding: 12px 14px;
}
.record-item.record-paid .record-title { color: #1c6b3a; }
.record-item.record-paid .record-sub { color: #3f6d50; }
.record-item.record-paid .record-item.empty { color: #3f6d50; }
.paid-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #b8860b;
  background: #fff8dc;
  border: 1px solid #e6cf7a;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Playoff eligibility radios */
.panel-note { margin: -4px 0 8px; color: #b9c6e2; font-size: 0.85rem; }
.playoff-radio { display: flex; gap: 8px; flex-shrink: 0; }
.playoff-radio label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.playoff-radio label.radio-y.active { background: var(--ok); border-color: var(--ok); color: #fff; }
.playoff-radio label.radio-n.active { background: var(--danger); border-color: var(--danger); color: #fff; }
.playoff-radio input { display: none; }

.panel-title {
  margin: 6px 0 12px;
  font-size: 0.95rem;
  color: var(--accent, var(--navy));
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.collapsible .collapsible-body { display: none; }
.collapsible.open .collapsible-body { display: block; }
.collapsible-toggle {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.collapsible-toggle:focus-visible { outline: 2px solid var(--accent, var(--navy)); outline-offset: 2px; border-radius: 6px; }
.title-label { justify-self: start; }
.collapsible-toggle .form-season { justify-self: center; max-width: none; white-space: normal; text-align: center; }
.chevron-btn {
  justify-self: end;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent, var(--navy));
  color: #fff;
  background: var(--accent, var(--navy));
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}
.collapsible.open .chevron-btn { transform: rotate(180deg); }
.form-season {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent, var(--navy));
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.count-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--navy));
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- User portal ---------- */

.user-page {
  background:
    linear-gradient(rgba(210, 228, 246, 0.55), rgba(232, 240, 249, 0.72)),
    url("../TB-wallpaper.jpeg") center / cover no-repeat fixed;
}
.user-page .user-intro h1 { font-size: 1.9rem; margin: 0; }
.user-page .user-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.chip-season { background: #b08a3e; color: #fff; font-size: 0.85rem; padding: 6px 12px; }

/* Announcements ticker */
.announcements-bar {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #0b1c42, #102658);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(16, 38, 88, 0.4);
}
.announcement-icon {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  padding: 9px 13px;
  font-size: 1.15rem;
  line-height: 1;
  transform: scaleX(-1);
}
.ticker { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 14s linear infinite;
}
.ticker-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 12px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.admin-page {
  background:
    linear-gradient(rgba(150, 190, 235, 0.55), rgba(195, 220, 245, 0.78)),
    url("../TB-wallpaper.jpeg") center / cover no-repeat fixed;
}
.admin-page .admin-intro h1 { color: var(--navy); }
.admin-page .admin-intro p { color: #000000; }
.user-page .season-line { margin: 4px 0 0; color: var(--muted); font-size: 1.05rem; }
.user-page .season-line b { color: var(--navy); }

.user-page .tabs { margin-top: 16px; }
.user-page .tab { font-size: 0.98rem; padding: 13px 2px; }

/* User portal section backgrounds derive from each tab's theme */
.user-page .theme-fees { --accent: #7c3aed; --accent-dark: #6d28d9; --accent-soft: #f3e8ff; }
.user-page .tab-panel {
  border-radius: 14px;
  padding: 12px;
  background: var(--accent-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
}
.stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-value.ok { color: var(--ok); }
.stat-value.bad { color: var(--danger); }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.summary-card { padding: 16px 18px; }
.summary-line { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.summary-line b { color: var(--navy); }

/* Summary + Next sections (bronze) */
.summary-section { margin-bottom: 16px; }
.summary-section .collapsible-toggle { display: flex; align-items: center; justify-content: space-between; }
.summary-section .stat-grid { margin: 6px 0 10px; }

.next-section { margin-bottom: 16px; }
.next-card { padding: 12px 16px 14px; border-top: 4px solid var(--accent, var(--navy)); }
.next-game-card {
  background: linear-gradient(135deg, #b08a3e, #8f6d2c);
  border-color: #8f6d2c;
}
.next-game-card .panel-title { color: #fff; }
.next-game-card .record-title { color: #fff; }
.next-game-card .record-sub { color: #f5e7c8; }
.next-game-card .next-empty { color: #f5e7c8; }
.next-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.next-col { min-width: 0; flex: 1; }
.next-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #f5e7c8;
  margin: 22px 0 6px;
}
.next-col .next-subtitle:first-child { margin-top: 2px; }
.next-col .next-detail { padding: 0 0 2px; }
.next-col .next-subtitle + .next-detail { border-bottom: 1px dashed rgba(255, 255, 255, 0.35); padding-bottom: 14px; }
.next-medal { width: 115px; height: 115px; border-radius: 16px; object-fit: cover; flex-shrink: 0; margin-top: 26px; }
.next-detail { padding: 2px 0 4px; min-width: 0; }
.next-detail .record-title { font-size: 1.25rem; }
.next-detail .record-sub { font-size: 1.05rem; margin-top: 4px; }
.next-empty { color: var(--muted); margin: 6px 0; font-size: 1rem; }

.avail-list { list-style: none; margin: 0; padding: 0; }
.avail-item {
  padding: 16px;
  margin-bottom: 14px;
}
.avail-item.empty { color: var(--muted); text-align: center; font-size: 1rem; }
.avail-item.past { background: #f6f8fb; }

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

.user-page .record-title { font-size: 1.2rem; }
.user-page .record-sub { font-size: 1rem; margin-top: 4px; }
.user-page .chip { font-size: 0.78rem; padding: 5px 12px; }

.chip-past { background: var(--muted); color: #fff; }
.chip-ok { background: var(--ok); color: #fff; }
.chip-bad { background: var(--danger); color: #fff; }

.avail-marks { display: flex; gap: 12px; margin-top: 14px; }
.avail-marks.static { display: block; }

.mark-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mark-btn.yes:hover { background: #f2f4f8; border-color: var(--ok); color: var(--ok); }
.mark-btn.yes.active { background: var(--ok); border-color: var(--ok); color: #fff; }
.mark-btn.no:hover { background: #f2f4f8; border-color: var(--danger); color: var(--danger); }
.mark-btn.no.active { background: var(--danger); border-color: var(--danger); color: #fff; }

.avail-others {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}
.avail-line { margin: 3px 0; line-height: 1.5; }
.avail-line.ok b { color: var(--ok); }
.avail-line.bad b { color: var(--danger); }
.avail-others.muted { color: var(--muted); border-top: none; }

.fees-card { padding: 18px; position: relative; }
.fee-watermark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  user-select: none;
  pointer-events: none;
}
.fee-watermark[hidden] { display: none; }
.fee-watermark-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.15;
}
.fee-watermark span {
  font-size: 1.7rem;
  font-weight: 800;
  color: rgba(16, 38, 88, 0.18);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-style: italic;
}
.fees-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--muted);
}
.fees-row:last-child { border-bottom: none; }
.fees-row b { color: var(--navy); font-size: 1.3rem; }
.fees-row b.ok { color: var(--ok); }
.fees-row b.bad { color: var(--danger); }
.fees-row .muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Form fields ---------- */

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.field-input {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 104, 1, 0.18);
  background: #fff;
}
.field-input:read-only { background: #eef1f6; color: var(--muted); }

select.field-input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7688' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 3px 10px rgba(243, 104, 1, 0.35); }
.btn-primary:hover { background: var(--orange-2); }

.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }

.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-block { width: 100%; margin-top: 14px; }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }

.btn-accent { background: var(--accent, var(--orange)); color: #fff; box-shadow: 0 3px 10px rgba(16, 38, 88, 0.25); }
.btn-accent:hover { background: var(--accent-dark, var(--orange-2)); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b33636; }

/* ---------- Confirmation modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 28, 66, 0.55);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal.show { display: flex; opacity: 1; }

.modal-box {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.18s ease;
}
.modal.show .modal-box { transform: none; }

.modal-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.modal-msg { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }

.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; margin: 0; }

/* ---------- Toggle (Home/Away) ---------- */

.toggle {
  display: flex;
  background: #f1f4f9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.toggle-btn.active {
  background: var(--accent, var(--navy));
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 38, 88, 0.3);
}

/* ---------- Season panel ---------- */

.season-panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border: 1px solid var(--navy-2);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0 0;
  box-shadow: 0 6px 18px rgba(16, 38, 88, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.season-panel .field-label { color: #b9c6e2; }
.season-panel .btn-secondary { background: var(--orange); }
.season-panel .btn-secondary:hover { background: var(--orange-2); }
.season-panel .season-hint { color: #b9c6e2; }
.season-panel-row { display: flex; gap: 10px; align-items: flex-end; }
.season-panel .field-group { flex: 1; min-width: 0; }
.season-hint { font-size: 0.76rem; color: var(--muted); padding-bottom: 10px; max-width: 180px; text-align: right; line-height: 1.3; }

.active-banner {
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.active-banner b { color: var(--navy); }

/* ---------- Record list ---------- */

.record-list { list-style: none; margin: 0; padding: 0; }

.list-card .record-list { padding-top: 4px; }

.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.record-item:last-child { border-bottom: none; }

.record-info { min-width: 0; }
.record-title { font-weight: 700; color: var(--accent, var(--navy)); font-size: 0.98rem; }
.record-sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; line-height: 1.4; }

.record-item.empty { color: var(--muted); font-size: 0.9rem; justify-content: center; padding: 20px 0; }

.record-actions { display: flex; gap: 6px; flex-shrink: 0; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.icon-btn.edit:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.icon-btn.del:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Editing state on form */
.form-card.editing { border-top-color: var(--accent-dark, var(--navy)); box-shadow: 0 4px 20px rgba(16, 38, 88, 0.25); }
.btn-cancel { margin-top: 8px; width: 100%; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  max-width: 560px;
  margin: 0 auto;
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(16, 38, 88, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--danger); }

/* ---------- "You are awesome!" flash ---------- */

.awesome-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  background: linear-gradient(135deg, #b08a3e, #f4c542);
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
  padding: 20px 30px;
  border-radius: 18px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.awesome-flash.show {
  animation: awesomePop 0.55s ease forwards, awesomeFlash 1.5s ease 0.55s forwards;
}
.mind-flash {
  background: linear-gradient(135deg, #d64545, #f4776a);
  font-size: 1.3rem;
}
@keyframes awesomePop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes awesomeFlash {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.25; }
  70% { opacity: 0.9; }
}

/* ---------- Login (split layout) ---------- */

.login-page { background: #fff; }
.login-page .topbar { display: none; }
.login-page .footer { display: none; }
.login-page .container { max-width: none; padding: 0; }

.login-split {
  display: flex;
  min-height: 100vh;
}

.login-visual {
  flex: 1 1 50%;
  min-height: 100%;
  overflow: hidden;
}
.login-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 64px;
  background: #fff;
  position: relative;
}

.login-inner {
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.login-heading { margin: 0 0 10px; font-size: 2.5rem; color: var(--navy); }
.login-heading em { font-style: normal; color: var(--orange); }

.login-medal {
  width: 163px;
  height: 163px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 20px;
}

.login-tagline {
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.login-sub {
  color: var(--muted);
  margin: 42px 0 18px;
  font-size: 1.15rem;
}

.login-form .field-label { text-align: left; font-size: 0.98rem; }
.login-form .field-input { margin-bottom: 12px; text-align: left; font-size: 1.15rem; padding: 14px; }
.login-form .btn-block { margin-top: 12px; font-size: 1.15rem; padding: 15px 16px; }

.login-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.dev-note {
  background: #fff4ea;
  border: 1px solid #f8d9bf;
  color: var(--orange-2);
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 10px;
  margin: 0 0 14px;
}

@media (max-width: 680px) {
  .login-split { flex-direction: column; }
  .login-visual { flex: none; height: 180px; min-height: 0; }
  .login-panel { justify-content: flex-start; padding-top: 26px; }
  .login-copy { position: static; margin-top: 28px; }
  .login-sub { margin: 26px 0 12px; }
}

/* ---------- Error card ---------- */

.error-card {
  max-width: 440px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.error-card h2 { margin: 0 0 8px; color: var(--navy); }
.error-card p { color: var(--muted); }
.error-card .btn { margin-top: 10px; }

/* ---------- Footer ---------- */

.footer {
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .brand-logo { width: 48px; height: 48px; }
  .topbar-medal { width: 40px; height: 40px; }
  .topbar-left { gap: 7px; }
  .season-panel-row { flex-direction: column; align-items: stretch; }
  .season-panel-row .btn { width: 100%; }
  .season-hint { max-width: none; text-align: left; padding-bottom: 0; }
}
