* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.20), transparent 30%),
    radial-gradient(circle at 50% 95%, rgba(250, 204, 21, 0.09), transparent 32%),
    #050816;
  color: #f9fafb;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.75) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 42px 42px, 78px 78px;
  background-position: 0 0, 22px 18px;
  opacity: 0.22;
}

header {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.25)),
    #020617;
  color: white;
  padding: 30px 16px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.5px; }
header p { margin: 10px 0 0; color: #bae6fd; font-weight: bold; letter-spacing: 0.4px; }

main { max-width: 900px; margin: 0 auto; padding: 16px; }

.card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.hidden { display: none; }

label {
  display: block;
  color: #cbd5e1;
  font-weight: bold;
  margin: 14px 0 6px;
}

input,
select {
  width: 100%;
  border: 2px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 16px;
  font-size: 1.1rem;
  background: rgba(2, 6, 23, 0.86);
  color: #f9fafb;
}

input:focus,
select:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12); }

.profile-grid, .kid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

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

.profile-button, .kid-button {
  border: 3px solid transparent;
  border-radius: 18px;
  min-height: 90px;
  padding: 18px 10px;
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(135deg, #1e293b, #312e81);
  color: #f9fafb;
  cursor: pointer;
}

.profile-button.active, .kid-button.active {
  border-color: #facc15;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: scale(1.02);
}

.selected-profile-note, .profile-label {
  text-align: center;
  color: #cbd5e1;
  font-size: 1rem;
  margin: 14px 0 0;
  min-height: 24px;
}

.profile-label { margin: 0 0 12px; }

.standings-row, .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #374151;
}

.standings-row:last-child, .item:last-child { border-bottom: none; }

.standings-name { font-size: 1.25rem; font-weight: bold; }
.standings-score { font-size: 1.7rem; font-weight: bold; color: #facc15; }

.score {
  text-align: center;
  font-size: 3.5rem;
  font-weight: bold;
  margin: 8px 0;
  color: #facc15;
}

.score-label { text-align: center; font-size: 1.1rem; color: #cbd5e1; }

.money-box, .cashout-box, .redeem-available-box, .settings-box {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.settings-box { text-align: left; }
.redeem-available-box { border-color: #facc15; }

.money-label, .redeem-available-label { color: #cbd5e1; font-size: 1rem; }
.money-total { color: #86efac; font-size: 2.5rem; font-weight: bold; margin-top: 6px; }
.redeem-available-total { color: #facc15; font-size: 2.8rem; font-weight: bold; margin-top: 6px; }

h2 { margin-top: 0; color: #f9fafb; }
h3 { color: #f9fafb; margin: 20px 0 8px; }
h4 { color: #e2e8f0; margin: 12px 0 8px; }

.item-title { font-size: 1.1rem; font-weight: bold; }
.item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.item-points { color: #cbd5e1; margin-top: 4px; }
.credit-pill {
  display: inline-block;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
}

.chore-section {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.chore-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.chore-section-header h3 { margin: 0; }
.chore-section-header span { color: #93c5fd; font-size: 0.95rem; }

.chore-category {
  margin-top: 14px;
}

.chore-category h4 {
  color: #facc15;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
}

.settings-grid, .approval-actions, .manual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.manual-row { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.manual-row label { margin-top: 0; }

.kid-chore-admin-section {
  background: #111827;
  border: 1px solid #475569;
  border-radius: 18px;
  padding: 16px;
  margin: 16px 0;
}

.kid-chore-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.kid-chore-admin-header h4 {
  margin: 0;
  color: #93c5fd;
  font-size: 1.2rem;
}

.kid-chore-admin-header span {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.chore-admin-section {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0;
}

.chore-admin-section h5 {
  margin: 0 0 10px;
  color: #f9fafb;
  font-size: 1rem;
}

.chore-admin-category-title {
  color: #facc15;
  font-weight: bold;
  margin: 14px 0 8px;
}

.chore-admin-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr auto auto;
  gap: 8px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #334155;
}

.chore-admin-row:last-child { border-bottom: none; }
.chore-admin-row label { margin-top: 0; }
.chore-admin-row input, .chore-admin-row select { padding: 12px; font-size: 1rem; }

button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.login-button { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; width: 100%; margin-top: 16px; min-height: 58px; font-size: 1.2rem; }
.logout-button { background: #475569; color: white; width: 100%; }
.earn-button { background: linear-gradient(135deg, #16a34a, #0d9488); color: white; }
.earn-button.done-today, .earn-button.pending { background: #475569; color: #cbd5e1; cursor: not-allowed; }
.redeem-button { background: linear-gradient(135deg, #7c3aed, #db2777); color: white; }
.approve-button { background: #16a34a; color: white; }
.reject-button, .subtract-button, .reset-button, .delete-chore-button { background: #dc2626; color: white; }
.add-button, .paid-button, .cashout-button, .save-chore-button { background: linear-gradient(135deg, #0d9488, #2563eb); color: white; }
.export-button { background: linear-gradient(135deg, #2563eb, #7c3aed); color: white; }
.reset-button, .paid-button, .export-button, .cashout-button, .full-width-button { width: 100%; margin-top: 8px; }

.message {
  min-height: 28px;
  text-align: center;
  font-weight: bold;
  color: #93c5fd;
  margin: 10px 0;
}

.small-note { color: #cbd5e1; font-size: 0.95rem; line-height: 1.4; margin-bottom: 0; }

.log-entry {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.log-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: bold;
  color: #f9fafb;
}

.log-time { color: #cbd5e1; font-size: 0.85rem; white-space: nowrap; }
.log-details { color: #cbd5e1; margin-top: 6px; line-height: 1.35; }

.expiration-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.expiration-summary > div, .expiration-row {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 14px;
  padding: 14px;
}

.expiration-label, .expiration-row-sub { color: #cbd5e1; font-size: 0.95rem; }
.expiration-total { color: #facc15; font-size: 2.4rem; font-weight: bold; margin-top: 6px; }
.expiration-next, .expiration-row-main { color: #f9fafb; font-size: 1.1rem; font-weight: bold; margin-top: 6px; }
.expiration-list { display: grid; gap: 10px; }
.expiration-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.expiration-days { color: #93c5fd; font-weight: bold; white-space: nowrap; }

.app-version {
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
  margin: 10px 0 4px;
}

.app-version-inside {
  max-width: 900px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

@media (max-width: 900px) {
  .chore-admin-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  main { padding: 12px; }
  .profile-grid, .kid-row, .item, .manual-row, .expiration-summary, .expiration-row, .settings-grid, .chore-admin-row { grid-template-columns: 1fr; }
  .profile-button { min-height: 74px; font-size: 1.3rem; }
  .approval-actions { grid-template-columns: 1fr; }
  .chore-section-header { display: block; }
  button { width: 100%; }
  .kid-chore-admin-header { display: block; }
  .log-topline { display: block; }
}

/* Parent UI refresh v2.8.0 */
.parent-command-bar {
  position: sticky;
  top: 8px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  margin: 0 0 12px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(124, 58, 237, 0.26)),
    rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.command-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 16px;
}

.command-eyebrow {
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-kid {
  color: #facc15;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1;
}

.command-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 6px;
}

.command-stats span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 999px;
}

.command-stats strong { color: #f9fafb; }

.command-actions {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 10px;
}

.command-action-box {
  padding: 12px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 16px;
}

.command-action-box label {
  margin-top: 0;
  color: #e2e8f0;
}

.command-inline {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.command-inline-wide {
  grid-template-columns: minmax(70px, 0.7fr) minmax(120px, 1.3fr) auto;
}

.command-inline input {
  padding: 12px;
  font-size: 1rem;
}

.parent-note {
  margin: 0 0 14px;
  text-align: center;
}

.parent-panel {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 0;
  margin: 14px 0;
  overflow: hidden;
}

.parent-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid transparent;
}

.parent-panel summary::-webkit-details-marker { display: none; }

.parent-panel summary::after {
  content: "▾";
  color: #93c5fd;
  font-weight: bold;
  transition: transform 0.15s ease;
}

.parent-panel[open] summary {
  border-bottom-color: rgba(51, 65, 85, 0.9);
}

.parent-panel:not([open]) summary::after {
  transform: rotate(-90deg);
}

.parent-panel summary span {
  color: #f9fafb;
  font-size: 1.1rem;
  font-weight: bold;
}

.parent-panel summary small {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-left: auto;
}

.parent-panel > :not(summary) {
  margin: 14px;
}

.compact-money-box {
  text-align: center;
  margin: 14px;
}

#parentZoneCard {
  overflow: visible;
}

@media (max-width: 900px) {
  .parent-command-bar,
  .command-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .parent-command-bar {
    top: 0;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 16px;
  }

  .command-inline,
  .command-inline-wide {
    grid-template-columns: 1fr;
  }

  .parent-panel summary {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .parent-panel summary small {
    grid-column: 1 / -1;
    margin-left: 0;
  }
}

/* Status bar refresh v2.8.1 */
.app-status-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin: 0 0 16px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(124, 58, 237, 0.30)),
    rgba(2, 6, 23, 0.97);
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
}

.topbar-identity {
  min-width: 0;
}

.topbar-eyebrow {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-kid {
  color: #facc15;
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1.05;
  margin-top: 3px;
}

.topbar-kid-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.topbar-kid-switcher.hidden {
  display: none;
}

.app-message {
  margin: -2px 0 14px;
}

.topbar-kid-button {
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: bold;
  min-width: 74px;
}

.topbar-kid-button.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(14, 165, 233, 0.88));
  color: #020617;
  border-color: rgba(250, 204, 21, 0.95);
}

.topbar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topbar-stat {
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.topbar-stat strong {
  display: block;
  color: #f9fafb;
  font-size: 1.25rem;
  line-height: 1;
}

.topbar-stat span {
  display: block;
  color: #cbd5e1;
  font-size: 0.78rem;
  margin-top: 4px;
}

.topbar-logout {
  background: #475569;
  color: white;
  min-width: 96px;
  height: 100%;
}

.parent-command-bar {
  position: relative;
  top: auto;
  z-index: 1;
}

@media (max-width: 700px) {
  .app-status-bar {
    top: 0;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 16px;
  }

  .topbar-stats {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    order: 3;
  }

  .topbar-logout {
    width: auto;
    min-width: 82px;
    padding: 10px 12px;
  }

  .topbar-kid {
    font-size: 1.25rem;
  }

  .topbar-kid-switcher {
    gap: 5px;
  }

  .topbar-kid-button {
    width: auto;
    min-width: 68px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }
}

/* Enterprise front page refresh v2.9.0 */
.login-page {
  max-width: 1180px;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.header-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(124, 58, 237, 0.38));
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
  font-size: 2rem;
}

.front-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0;
}

.hero-copy,
.mission-status-panel,
.enterprise-card {
  position: relative;
  overflow: hidden;
}

.hero-copy,
.mission-status-panel {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.25), transparent 35%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
}

.hero-copy::after,
.mission-status-panel::after,
.enterprise-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-40%);
}

.hero-kicker,
.card-eyebrow {
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.8vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.hero-copy p {
  color: #cbd5e1;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.5;
  max-width: 680px;
  margin: 18px 0 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  border: 1px solid rgba(147, 197, 253, 0.32);
  background: rgba(2, 6, 23, 0.52);
  border-radius: 999px;
  color: #e2e8f0;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}

.mission-status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.status-header strong {
  color: #86efac;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
}

.front-stats-grid,
.competition-grid,
.login-dashboard-grid {
  display: grid;
  gap: 14px;
}

.front-stats-grid {
  grid-template-columns: 1fr 1fr;
}

.front-stat {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(51, 65, 85, 0.94);
  border-radius: 18px;
  padding: 16px;
  min-height: 102px;
}

.front-stat span {
  color: #94a3b8;
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.front-stat strong {
  display: block;
  color: #facc15;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  margin-top: 8px;
  line-height: 1;
}

.skeleton-stat strong {
  color: #64748b;
}

.login-dashboard-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.enterprise-card {
  border-color: rgba(56, 189, 248, 0.24);
}

.profile-button {
  display: grid;
  place-items: center;
  gap: 7px;
}

.profile-button span {
  font-size: 1.7rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(51, 65, 85, 0.88);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.rank-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-weight: 900;
}

.leaderboard-main {
  min-width: 0;
}

.leaderboard-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.leaderboard-title-line strong {
  font-size: 1.2rem;
}

.leaderboard-title-line span {
  color: #facc15;
  font-weight: 800;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(51, 65, 85, 0.9);
  margin: 10px 0 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #facc15);
  border-radius: 999px;
}

.leaderboard-detail {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.35;
}

.muted-detail {
  color: #94a3b8;
  margin-top: 3px;
}

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

.crew-stat-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.76));
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 20px;
  padding: 18px;
}

.crew-stat-header {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-weight: 800;
}

.crew-stat-header strong {
  color: #facc15;
}

.crew-stat-number {
  color: #facc15;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 900;
  margin-top: 12px;
}

.crew-stat-label {
  color: #94a3b8;
  margin-top: 3px;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-stat-grid div {
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.88);
  background: rgba(2, 6, 23, 0.5);
  padding: 11px;
}

.mini-stat-grid strong,
.mini-stat-grid span {
  display: block;
}

.mini-stat-grid strong {
  color: #e2e8f0;
  font-size: 1.15rem;
}

.mini-stat-grid span {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 2px;
}

@media (max-width: 920px) {
  .front-hero,
  .login-dashboard-grid,
  .competition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    text-align: left;
  }

  .header-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.55rem;
    flex: 0 0 auto;
  }

  .hero-copy,
  .mission-status-panel {
    border-radius: 22px;
    padding: 20px;
  }

  .front-stats-grid,
  .mini-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .rank-badge {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .front-stats-grid,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified command bars v2.9.2 */
.login-access-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1.25fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin: 12px 0 18px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(124, 58, 237, 0.32)),
    rgba(2, 6, 23, 0.97);
  border: 1px solid rgba(147, 197, 253, 0.48);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(14px);
}

.access-brand,
.access-profile-stack,
.access-code-panel {
  min-width: 0;
}

.access-kicker {
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-title {
  color: #facc15;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 900;
  line-height: 1.05;
  margin-top: 4px;
}

.access-subtitle {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-top: 4px;
}

.access-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.login-access-bar .profile-button {
  min-height: 68px;
  padding: 10px 8px;
  font-size: 1rem;
  border-radius: 16px;
}

.login-access-bar .profile-button span {
  font-size: 1.35rem;
}

.login-access-bar .selected-profile-note {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 0.92rem;
}

.access-code-panel label {
  margin-top: 0;
  color: #e2e8f0;
}

.access-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.access-code-row input {
  padding: 13px 14px;
}

.login-access-bar .login-button {
  width: auto;
  min-width: 112px;
  min-height: 0;
  margin-top: 0;
  padding: 12px 18px;
  white-space: nowrap;
}

.login-access-bar .message {
  min-height: 22px;
  margin: 8px 0 0;
  text-align: left;
}

.single-card-grid {
  grid-template-columns: 1fr;
}

.single-card-grid .leaderboard-card {
  width: 100%;
}

@media (max-width: 1020px) {
  .login-access-bar {
    grid-template-columns: 1fr;
  }

  .login-access-bar .message {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .login-access-bar {
    top: 0;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 16px;
    padding: 12px;
  }

  .access-brand {
    text-align: center;
  }

  .access-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-access-bar .profile-button {
    min-height: 56px;
    padding: 8px 5px;
    font-size: 0.88rem;
  }

  .login-access-bar .profile-button span {
    font-size: 1.1rem;
  }

  .access-code-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .login-access-bar .login-button {
    min-width: 88px;
    padding: 10px 12px;
  }
}

@media (max-width: 420px) {
  .access-code-row {
    grid-template-columns: 1fr;
  }

  .login-access-bar .login-button {
    width: 100%;
  }
}


/* Unified command bar polish v2.9.2 */
.mission-topbar {
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.26), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 58, 237, 0.30)),
    rgba(2, 6, 23, 0.98);
  border: 1px solid rgba(147, 197, 253, 0.52);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.login-access-bar.mission-topbar,
.app-status-bar.mission-topbar {
  border-radius: 20px;
}

.access-kicker,
.topbar-eyebrow {
  color: #67e8f9;
}

.access-title,
.topbar-kid {
  color: #facc15;
  text-shadow: 0 0 22px rgba(250, 204, 21, 0.16);
}

.access-profile-stack,
.access-code-panel,
.topbar-stat,
.topbar-logout,
.topbar-identity {
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
  padding: 10px;
}

.topbar-identity {
  padding: 11px 12px;
}

.topbar-logout {
  background: rgba(71, 85, 105, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
}

.login-access-bar .message {
  text-align: center;
}

.parent-command-bar {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(124, 58, 237, 0.18)),
    rgba(2, 6, 23, 0.78);
  border-color: rgba(147, 197, 253, 0.30);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

#creditSummaryCard {
  display: none !important;
}

@media (max-width: 700px) {
  .login-access-bar.mission-topbar,
  .app-status-bar.mission-topbar {
    border-radius: 0 0 18px 18px;
    margin-top: -12px;
  }

  .access-profile-stack,
  .access-code-panel,
  .topbar-stat,
  .topbar-logout,
  .topbar-identity {
    border-radius: 14px;
  }
}

/* Parent flow cleanup v2.9.3 */
.priority-approval-card {
  margin: 0 0 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.16)),
    rgba(15, 23, 42, 0.94);
  border-color: rgba(147, 197, 253, 0.36);
}

.priority-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.priority-card-header h2 {
  margin-bottom: 0;
}

.queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: #fde68a;
  font-size: 0.88rem;
  font-weight: bold;
  white-space: nowrap;
}

.queue-badge.all-clear {
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.38);
  color: #86efac;
}

.compact-note {
  margin-top: 10px;
  margin-bottom: 0;
}

.topbar-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topbar-expiring-stat strong {
  color: #facc15;
}

.parent-command-bar.compact-command-bar {
  position: relative;
  top: auto;
  z-index: 1;
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.parent-command-bar.compact-command-bar .command-actions {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

#parentZoneCard > h2 {
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .priority-approval-card {
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 0 0 18px 18px;
  }

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

  .topbar-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar-stat {
    padding: 8px 5px;
  }

  .topbar-stat strong {
    font-size: 1.05rem;
  }

  .topbar-stat span {
    font-size: 0.68rem;
  }

  .parent-command-bar.compact-command-bar .command-actions {
    grid-template-columns: 1fr;
  }
}

/* v3.0 Settings Center + Motivation Layer */
.motivation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.motivation-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.motivation-highlight strong {
  display: block;
  color: #f9fafb;
  font-size: 1rem;
}

.motivation-highlight span {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-top: 4px;
}

.motivation-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(124, 58, 237, 0.42));
  border: 1px solid rgba(147, 197, 253, 0.35);
  font-size: 1.4rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(14, 165, 233, 0.32);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-center-box {
  margin-bottom: 18px;
}

.settings-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.settings-row:last-child {
  border-bottom: none;
}

.kid-settings-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.settings-row label {
  margin-top: 0;
}

.reward-settings-row input,
.kid-settings-row input {
  min-height: 46px;
}

.motivation-card {
  overflow: hidden;
}

@media (max-width: 900px) {
  .settings-grid-wide,
  .motivation-grid {
    grid-template-columns: 1fr;
  }

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

/* Mission Control News Desk v3.1.0 */
.news-front-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.news-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-desk-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.briefing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
}

.briefing-meta span,
.news-live-pill {
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(2, 6, 23, 0.56);
  border-radius: 999px;
  padding: 7px 10px;
}

.news-live-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.40);
  box-shadow: 0 0 22px rgba(248, 113, 113, 0.16);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.news-story-box {
  border-left: 4px solid #facc15;
  background: rgba(2, 6, 23, 0.40);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 20px 0 18px;
}

.news-label {
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 950;
  margin-bottom: 8px;
}

.news-story-box p {
  margin: 0;
  max-width: none;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.news-briefing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.news-briefing-item {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 15px;
}

.news-briefing-item span {
  display: block;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.news-briefing-item strong {
  display: block;
  color: #f8fafc;
  font-size: 0.98rem;
  line-height: 1.35;
}

.news-signoff {
  margin-top: 14px;
  color: #cbd5e1;
  font-style: italic;
  font-weight: 700;
}

.telemetry-panel .front-stats-grid {
  margin-top: 12px;
}

.news-refresh-box h4 {
  margin-top: 0;
}

.compact-news-message {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .news-front-hero {
    grid-template-columns: 1fr;
  }

  .news-copy {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .news-desk-header,
  .news-briefing-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .news-live-pill {
    width: fit-content;
  }
}

/* v3.1.1 Mobile command-center cleanup */
@media (max-width: 700px) {
  body.logged-in-mode .site-header {
    display: none;
  }

  #appScreen {
    padding-top: 0;
  }

  .app-status-bar.mission-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    margin: 0 -12px 10px;
    border-radius: 0 0 18px 18px;
    padding: 8px;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .topbar-identity {
    padding: 8px;
    min-height: 0;
  }

  .topbar-eyebrow {
    font-size: 0.64rem;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  .topbar-kid {
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 4px;
  }

  body.parent-mode .topbar-kid {
    display: none;
  }

  body.parent-mode .topbar-kid-switcher {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.parent-mode .topbar-kid-switcher.hidden {
    display: none;
  }

  .topbar-kid-button {
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
    font-size: 0.76rem;
    border-radius: 12px;
  }

  .topbar-logout {
    min-width: 70px;
    width: auto;
    min-height: 0;
    height: auto;
    padding: 9px 10px;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  .topbar-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    order: 3;
  }

  .topbar-stat {
    min-height: 42px;
    padding: 7px 4px;
    border-radius: 12px;
  }

  .topbar-stat strong {
    font-size: 1rem;
  }

  .topbar-stat span {
    font-size: 0.62rem;
    margin-top: 3px;
    line-height: 1.05;
  }

  .app-message {
    margin: 0 0 10px;
    min-height: 0;
    padding: 0 4px;
    font-size: 0.88rem;
  }

  .priority-approval-card {
    margin: 0 -6px 10px;
    border-radius: 0 0 16px 16px;
    padding: 12px;
  }

  .priority-card-header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .priority-card-header h2 {
    font-size: 1.18rem;
  }

  .queue-badge {
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .priority-approval-card .compact-note {
    display: none;
  }

  #parentZoneCard {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  #parentZoneCard > h2 {
    display: none;
  }

  .parent-command-bar.compact-command-bar {
    margin: 0 0 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .parent-command-bar.compact-command-bar .command-actions {
    gap: 8px;
  }

  .command-action-box {
    padding: 10px;
    border-radius: 14px;
  }

  .command-action-box label {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .command-inline,
  .command-inline-wide {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .command-inline-wide input[type="text"] {
    grid-column: 1 / -1;
    order: 3;
  }

  .command-inline input {
    padding: 10px;
    font-size: 0.95rem;
    min-height: 42px;
  }

  .command-inline button {
    width: auto;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .parent-panel {
    margin: 10px 0;
    border-radius: 16px;
  }

  .parent-panel summary {
    padding: 13px 14px;
    gap: 8px;
  }

  .parent-panel summary span {
    font-size: 1rem;
  }

  .parent-panel summary small {
    display: none;
  }

  .parent-panel > :not(summary) {
    margin: 10px;
  }

  .settings-box {
    padding: 12px;
    border-radius: 14px;
  }

  .item {
    gap: 8px;
    padding: 10px 0;
  }

  .item-title {
    font-size: 1rem;
  }

  .item-points {
    font-size: 0.86rem;
  }

  .approval-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .approval-actions button {
    min-height: 42px;
    font-size: 0.86rem;
    padding: 10px 8px;
  }

  .money-box,
  .cashout-box,
  .redeem-available-box {
    padding: 12px;
    border-radius: 14px;
  }

  .money-total,
  .redeem-available-total {
    font-size: 1.7rem;
  }

  .log-entry {
    padding: 10px;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .topbar-stat span {
    font-size: 0.56rem;
  }

  .topbar-stat strong {
    font-size: 0.92rem;
  }

  .topbar-kid-button {
    font-size: 0.7rem;
  }

  .command-inline,
  .command-inline-wide,
  .approval-actions {
    grid-template-columns: 1fr;
  }

  .command-inline button {
    width: 100%;
  }
}

/* v3.1.3 Phone-first Parent Mission Control cleanup */
.mission-intel-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.36), transparent);
}

.motivation-grid-inline {
  margin-top: 0;
}

.enterprise-card::after,
.hero-copy::after,
.mission-status-panel::after {
  z-index: 0;
}

.enterprise-card > *,
.hero-copy > *,
.mission-status-panel > * {
  position: relative;
  z-index: 1;
}

.priority-approval-card {
  padding: 0;
  overflow: hidden;
}

.priority-approval-card > summary.priority-card-header {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.priority-approval-card > summary.priority-card-header::-webkit-details-marker {
  display: none;
}

.priority-approval-card > summary.priority-card-header::after {
  content: "▾";
  color: #93c5fd;
  font-weight: 900;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.priority-approval-card:not([open]) > summary.priority-card-header::after {
  transform: rotate(-90deg);
}

.priority-approval-card #approvalList,
.priority-approval-card .compact-note {
  margin-left: 18px;
  margin-right: 18px;
}

.priority-approval-card #approvalList {
  margin-bottom: 8px;
}

.topbar-approval-stat.hidden {
  display: none;
}

.topbar-approval-stat.needs-clearance strong {
  color: #facc15;
}

.parent-panel summary {
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 211, 238, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(124, 58, 237, 0.14)),
    rgba(15, 23, 42, 0.84);
}

.parent-panel[open] summary {
  background:
    radial-gradient(circle at 4% 0%, rgba(34, 211, 238, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(124, 58, 237, 0.18)),
    rgba(15, 23, 42, 0.92);
}

@media (max-width: 700px) {
  body.parent-mode #appScreen {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.parent-mode .app-status-bar.mission-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
    margin: 0 -8px 8px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  }

  body.parent-mode .topbar-identity {
    padding: 6px;
    background: transparent;
    border-color: rgba(147, 197, 253, 0.22);
  }

  body.parent-mode .topbar-eyebrow {
    display: none;
  }

  body.parent-mode .topbar-kid-switcher {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.parent-mode .topbar-kid-button {
    min-height: 36px;
    padding: 7px 6px;
    font-size: 0.76rem;
    border-radius: 12px;
  }

  body.parent-mode .topbar-logout {
    min-width: 62px;
    padding: 8px 8px;
    font-size: 0.72rem;
    border-radius: 12px;
  }

  body.parent-mode .topbar-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  body.parent-mode .topbar-stat {
    min-height: 34px;
    padding: 5px 3px;
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.42);
  }

  body.parent-mode .topbar-stat strong {
    font-size: 0.88rem;
    line-height: 1;
  }

  body.parent-mode .topbar-stat span {
    font-size: 0.52rem;
    line-height: 1;
    margin-top: 2px;
  }

  body.parent-mode .topbar-expiring-stat span {
    font-size: 0;
  }

  body.parent-mode .topbar-expiring-stat span::after {
    content: "Expire";
    font-size: 0.52rem;
  }

  body.parent-mode .topbar-approval-stat span {
    font-size: 0;
  }

  body.parent-mode .topbar-approval-stat span::after {
    content: "Clear";
    font-size: 0.52rem;
  }

  body.parent-mode .priority-approval-card {
    margin: 0 -2px 8px;
    border-radius: 14px;
  }

  body.parent-mode .priority-approval-card > summary.priority-card-header {
    padding: 10px 12px;
    grid-template-columns: 1fr auto auto;
  }

  body.parent-mode .priority-card-header h2 {
    font-size: 1rem;
    line-height: 1.1;
  }

  body.parent-mode .priority-card-header .card-eyebrow {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  body.parent-mode .queue-badge {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  body.parent-mode .priority-approval-card #approvalList,
  body.parent-mode .priority-approval-card .compact-note {
    margin-left: 12px;
    margin-right: 12px;
  }

  body.parent-mode .parent-command-bar.compact-command-bar {
    padding: 8px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
      linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.16)),
      rgba(2, 6, 23, 0.76);
  }

  body.parent-mode .command-action-box {
    padding: 8px;
    border-radius: 12px;
  }

  body.parent-mode .command-action-box label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #67e8f9;
  }

  body.parent-mode .command-inline,
  body.parent-mode .command-inline-wide {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }

  body.parent-mode .command-inline-wide input[type="text"] {
    grid-column: 1 / -1;
    order: 3;
  }

  body.parent-mode .command-inline input {
    min-height: 38px;
    padding: 8px;
    font-size: 0.9rem;
  }

  body.parent-mode .command-inline button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  body.parent-mode .parent-panel {
    margin: 8px 0;
    border-radius: 14px;
  }

  body.parent-mode .parent-panel summary {
    padding: 11px 12px;
  }

  body.parent-mode .parent-panel summary span {
    font-size: 0.92rem;
  }

  body.parent-mode .parent-panel > :not(summary) {
    margin: 8px;
  }

  body.parent-mode .settings-box,
  body.parent-mode .kid-chore-admin-section,
  body.parent-mode .chore-admin-section {
    padding: 10px;
    border-radius: 12px;
  }

  body.parent-mode input,
  body.parent-mode select {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.95rem;
    border-radius: 11px;
  }

  body.parent-mode label {
    font-size: 0.78rem;
    margin: 9px 0 4px;
  }

  body.parent-mode .settings-row,
  body.parent-mode .kid-settings-row,
  body.parent-mode .chore-admin-row {
    gap: 6px;
    padding: 9px 0;
  }

  body.parent-mode .money-total {
    font-size: 1.45rem;
  }

  body.parent-mode .small-note {
    font-size: 0.82rem;
  }
}

@media (max-width: 390px) {
  body.parent-mode .topbar-stat strong {
    font-size: 0.8rem;
  }

  body.parent-mode .topbar-stat span::after,
  body.parent-mode .topbar-stat span {
    font-size: 0.48rem;
  }

  body.parent-mode .topbar-kid-button {
    font-size: 0.68rem;
  }
}

body.parent-mode .topbar-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* v3.2.1 Mobile front-page command bar cleanup */
@media (max-width: 700px) {
  body:not(.logged-in-mode) .site-header {
    display: none;
  }

  .login-page {
    padding: 0 10px 16px;
    max-width: 100%;
  }

  .login-access-bar.mission-topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
    margin: 0 -10px 8px;
    border-radius: 0 0 16px 16px;
  }

  .login-access-bar .access-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    min-height: 0;
  }

  .login-access-bar .access-kicker {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    margin: 0;
    white-space: nowrap;
  }

  .login-access-bar .access-title {
    font-size: 1rem;
    line-height: 1;
    margin: 0;
    text-align: right;
  }

  .login-access-bar .access-subtitle {
    display: none;
  }

  .login-access-bar .access-profile-stack,
  .login-access-bar .access-code-panel {
    padding: 6px;
    border-radius: 12px;
  }

  .login-access-bar .access-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .login-access-bar .profile-button {
    min-height: 38px;
    padding: 5px 4px;
    font-size: 0.72rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .login-access-bar .profile-button span {
    font-size: 0.88rem;
    line-height: 1;
  }

  .login-access-bar .selected-profile-note {
    display: none;
  }

  .login-access-bar .access-code-panel label {
    display: none;
  }

  .login-access-bar .access-code-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 6px;
  }

  .login-access-bar .access-code-row input {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .login-access-bar .login-button {
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .login-access-bar .message {
    min-height: 0;
    margin: 4px 0 0;
    font-size: 0.76rem;
    line-height: 1.2;
    text-align: center;
  }

  .login-access-bar .message:empty {
    display: none;
  }

  .front-hero {
    margin: 8px 0;
    gap: 8px;
  }

  .news-front-hero .hero-copy,
  .mission-status-panel.telemetry-panel {
    border-radius: 16px;
    padding: 12px;
  }

  .news-desk-header {
    gap: 8px;
    align-items: flex-start;
  }

  .news-front-hero .hero-kicker {
    font-size: 0.62rem;
    margin-bottom: 4px;
  }

  .briefing-meta {
    gap: 6px;
  }

  .briefing-meta span:not(:first-child),
  .news-live-pill {
    display: none;
  }

  .news-front-hero .hero-copy h2 {
    font-size: 1.12rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-top: 2px;
  }

  .news-story-box {
    margin: 9px 0;
    padding: 9px 10px;
    border-left-width: 3px;
    border-radius: 12px;
  }

  .news-label {
    font-size: 0.56rem;
    margin-bottom: 4px;
  }

  .news-story-box p {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .news-briefing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .news-briefing-item {
    padding: 8px;
    border-radius: 12px;
  }

  .news-briefing-item span {
    font-size: 0.52rem;
    margin-bottom: 3px;
    letter-spacing: 0.08em;
  }

  .news-briefing-item strong {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .news-signoff {
    display: none;
  }

  .mission-status-panel.telemetry-panel {
    gap: 8px;
  }

  .status-header {
    gap: 8px;
    font-size: 0.82rem;
  }

  .status-header strong {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .telemetry-panel .front-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 4px;
  }

  .front-stat {
    min-height: 0;
    padding: 8px 4px;
    border-radius: 12px;
  }

  .front-stat span {
    font-size: 0.52rem;
    line-height: 1.1;
  }

  .front-stat strong {
    font-size: 0.98rem;
    margin-top: 4px;
  }

  .login-dashboard-grid,
  .competition-card {
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .login-access-bar .access-title {
    font-size: 0.92rem;
  }

  .login-access-bar .access-kicker {
    font-size: 0.5rem;
  }

  .login-access-bar .profile-button {
    font-size: 0.66rem;
  }

  .telemetry-panel .front-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v3.3.0 Parent backfill + no-expiration cleanup */
.topbar-date-control {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.topbar-date-control.hidden {
  display: none;
}

.topbar-date-control label {
  margin: 0;
  color: #93c5fd;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-date-control select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.70);
  color: #f9fafb;
  padding: 8px 10px;
  font-weight: bold;
}

@media (max-width: 700px) {
  body.parent-mode .topbar-date-control {
    margin-top: 5px;
  }

  body.parent-mode .topbar-date-control label {
    display: none;
  }

  body.parent-mode .topbar-date-control select {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  body.parent-mode .topbar-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
