:root {
  color-scheme: dark;
  --bg: #0e1220;
  --paper: #161d31;
  --paper-2: #1b2338;
  --ink: #f2f5ff;
  --muted: #98a4bf;
  --line: #232c45;
  --orange: #d4ff3f;
  --orange-2: #4fd1ff;
  --green: #3ddc84;
  --radius: 14px;
  --grad: linear-gradient(120deg, #d4ff3f, #4fd1ff);
  --glow: 0 0 18px rgba(212, 255, 63, 0.22);
  --danger: #ff5d5d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
p {
  margin: 8px 0 14px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.accent {
  color: var(--orange);
}
.muted,
.note {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.skip {
  position: absolute;
  left: 10px;
  top: -80px;
  background: white;
  padding: 10px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  overflow-y: auto;
}
.brand {
  display: block;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.08em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-ball,
.brand-dot {
  color: var(--orange);
}
.brand-ball {
  font-size: 34px;
  vertical-align: middle;
  letter-spacing: 0;
}
.tagline {
  font-size: 12px;
  color: var(--muted);
  margin: 13px 0 26px;
}
.side-nav {
  display: grid;
  gap: 4px;
}
.side-nav > a {
  padding: 11px 10px;
  color: var(--ink);
  border-radius: 7px;
  font-weight: 550;
}
.side-nav > a:hover {
  background: var(--bg);
  color: var(--orange);
  text-decoration: none;
}
.side-nav > a span {
  float: right;
}
.side-nav form {
  padding: 10px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 24px 10px 5px;
}
.sidebar-note {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 30px;
}
main {
  margin-left: 236px;
  padding: 0 38px 20px;
  max-width: 1450px;
  min-height: 100vh;
}
.page-top {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.page-top > span {
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 10px;
}
.page-top > a {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  background: rgba(212, 255, 63, 0.12);
  color: var(--orange);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.heading {
  padding: 35px 0 28px;
}
.heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.heading-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.back {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
}
.back + .heading {
  padding-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 17px;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 10px;
  color: #0e1220;
  font-weight: 650;
  min-height: 46px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}
.button:hover {
  background: #e6ff7a;
  text-decoration: none;
  color: #0e1220;
}
.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button.secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(212, 255, 63, 0.06);
}
.button.small {
  padding: 9px 12px;
  min-height: 40px;
  font-size: 13px;
}
.wide {
  width: 100%;
}
.text-button {
  background: none;
  border: 0;
  padding: 9px 0;
  color: var(--orange);
  text-align: left;
  min-height: 40px;
  text-decoration: underline;
  font-weight: 550;
}
.days {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.days a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
}
.days a[aria-current] {
  color: #0e1220;
  background: var(--orange);
  border-color: var(--orange);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  padding-bottom: 26px;
}
.filters label:first-of-type {
  flex: 1.6;
}
.filters label {
  flex: 1;
  min-width: 0;
}
.filters button {
  flex: 0 0 auto;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 7px;
  color: var(--muted);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper-2, #1b2338);
  color: var(--ink);
  border-radius: 7px;
  padding: 11px 12px;
  min-height: 46px;
  color: var(--ink);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
select {
  padding-right: 24px;
}
textarea {
  resize: vertical;
}
.list-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 0 12px;
}
.game-list {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.game-row {
  display: grid;
  grid-template-columns: 76px 112px minmax(0, 1fr) 156px;
  gap: 18px;
  padding: 25px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.game-row:last-child {
  border-bottom: 0;
}
.game-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-time strong {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.game-time span {
  font-size: 11px;
  color: var(--muted);
}
.game-image {
  width: 112px;
  height: 100px;
  background: #1c2438;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-image > span {
  font-size: 82px;
  line-height: 1;
  color: var(--orange);
  transform: rotate(-20deg);
  position: relative;
}
.game-image i {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #1c2438;
  left: 0;
  top: 50%;
}
.game-info h2 {
  font-size: 18px;
  margin: 6px 0;
}
.game-info h2 a {
  color: var(--ink);
}
.game-info p {
  font-size: 12px;
  margin: 5px 0;
}
.game-info .eyebrow {
  font-size: 9px;
}
.game-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.game-action > strong {
  font-size: 18px;
}
.game-action > .muted {
  font-size: 11px;
}
.game-action .button {
  font-size: 12px;
  width: 100%;
  padding: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.panel form > div {
  margin-bottom: 18px;
}
.panel form > div > label {
  margin-bottom: 7px;
}
.panel form > .button {
  margin-top: 10px;
}
.form-panel {
  max-width: 700px;
}
.auth-panel {
  max-width: 480px;
}
.auth-panel .helptext {
  font-size: 12px;
}
.helptext {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0;
}
.helptext ul {
  padding-left: 18px;
}
.errorlist {
  font-size: 13px;
  color: var(--danger);
  padding-left: 18px;
  margin: 7px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
}
.detail-grid > div > .panel + .panel {
  margin-top: 22px;
}
.detail-grid > .panel {
  min-width: 0;
}
.booking-panel h2 {
  font-size: 30px;
}
.booking-panel label {
  margin-top: 16px;
}
.booking-panel select {
  margin-bottom: 10px;
}
.booking-panel p {
  font-size: 13px;
}
.note {
  padding: 0 12px;
  font-size: 12px;
}
.status {
  display: inline-block;
  padding: 5px 9px;
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.danger {
  color: var(--danger) !important;
}
.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.gallery > a {
  flex: 1 1 130px;
  max-width: 260px;
}
.gallery img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 7px;
}
.gallery figure {
  margin: 0;
  width: 140px;
}
.gallery figcaption {
  font-size: 12px;
}
.rows {
  padding: 0;
}
.member-row {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.member-row > div {
  min-width: 0;
}
.member-row h2 {
  font-size: 18px;
  margin: 3px 0 8px;
}
.member-row p {
  font-size: 13px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.member-row:last-child {
  border-bottom: 0;
}
.member-row > .button {
  flex-shrink: 0;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}
.member-row > .row-actions {
  justify-content: flex-end;
  max-width: 300px;
}
.heading > .row-actions { margin-top: 22px; }
main > .panel + .panel,
main > .detail-grid + .panel,
main > .portal-grid + .panel,
main > .panel + .rows { margin-top: 22px; }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.portal-grid > .panel { display: flex; flex-direction: column; align-items: flex-start; }
.portal-grid > .panel > .button { margin-top: auto; }
.filters label { margin-bottom: 0; }
.filters label input, .filters label select { margin-top: 7px; }
.filters.single-search { display: flex; flex-wrap: wrap; }
.filters.single-search label { flex: 1 1 200px; }
.lower {
  margin-top: 22px;
}
.inline {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline > * {
  min-width: 0;
}
.inline input,
.inline select {
  flex: 1;
}
.inline > .button {
  flex-shrink: 0;
}
.search {
  max-width: 640px;
  margin: 0 0 20px;
}
.organizer-select {
  max-width: 520px;
  margin-bottom: 22px;
}
.balance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 5px 0 25px;
  margin-bottom: 25px;
}
.balance-summary div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balance-summary span {
  font-size: 12px;
  color: var(--muted);
}
.balance-summary strong {
  font-size: clamp(19px, 2.4vw, 30px);
  letter-spacing: -0.04em;
}
.pass {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pass:last-of-type {
  border-bottom: 0;
}
details {
  font-size: 13px;
  margin-top: 20px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.journal-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.journal-row:last-child {
  border: 0;
}
.journal-row strong {
  font-size: 13px;
}
.journal-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.journal-amount {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  min-width: 110px;
}
.journal-amount .text-button {
  font-size: 11px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
}
.pagination a {
  padding: 10px;
}
.empty {
  padding: 45px 24px;
  text-align: left;
  color: var(--muted);
}
.empty h2 {
  color: var(--ink);
}
.empty p {
  max-width: 500px;
}
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.venue-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 20px;
}
.venue-placeholder {
  height: 160px;
  background: #1c2438;
  display: grid;
  place-items: center;
  font-size: 72px;
  color: var(--orange);
  border-radius: 8px;
  margin-bottom: 20px;
}
.venue-card p {
  font-size: 13px;
}
.venue-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 10px;
  color: var(--muted);
}
.demo {
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(212, 255, 63, 0.25);
  background: rgba(212, 255, 63, 0.07);
  border-radius: 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.demo form {
  display: inline;
}
.demo button {
  font-size: 11px;
  min-height: 30px;
  padding: 4px;
}
.message {
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  margin-top: 20px;
}
.message.error {
  background: rgba(255, 93, 93, 0.08);
  border-color: rgba(255, 93, 93, 0.4);
}
.bottom-nav {
  display: none;
}
dialog {
  margin: 0;
  padding: 24px;
  width: min(340px, 88vw);
  max-width: 88vw;
  max-height: 100dvh;
  height: 100dvh;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  overflow-y: auto;
}
dialog::backdrop {
  background: rgba(6, 8, 16, 0.72);
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.drawer-head button {
  border: 0;
  background: var(--bg);
  border-radius: 50%;
  font-size: 26px;
  width: 42px;
  height: 42px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (min-width: 1600px) {
  main {
    margin-right: auto;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 28px 16px;
  }
  main {
    margin-left: 210px;
    padding-left: 26px;
    padding-right: 26px;
  }
  .game-row {
    grid-template-columns: 66px minmax(0, 1fr) 140px;
    gap: 16px;
  }
  .game-image {
    display: none;
  }
  .game-time strong {
    font-size: 23px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 0 18px 90px;
    max-width: 100%;
  }
  .page-top {
    height: 59px;
  }
  .heading {
    padding: 28px 0 23px;
  }
  h1 {
    font-size: 31px;
  }
  .heading > p,
  .heading-action p {
    font-size: 13px;
  }
  .heading-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .heading-action .button {
    align-self: flex-start;
  }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    z-index: 20;
  }
  .bottom-nav > a,
  .bottom-nav > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: inherit;
    line-height: 1.3;
    font-size: 10px;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 5px 0;
    min-height: 52px;
    min-width: 0;
  }
  .bottom-nav span {
    font-size: 21px;
    line-height: 1.2;
  }
  .bottom-nav [aria-current] {
    color: var(--orange);
  }
  .days {
    gap: 6px;
  }
  .days a {
    font-size: 11px;
    padding: 9px 11px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 22px;
  }
  .filters label:first-of-type {
    grid-column: 1/-1;
  }
  .filters button {
    align-self: end;
  }
  .filters label {
    margin-bottom: 0;
    font-size: 11px;
  }
  .filters input,
  .filters select {
    font-size: 13px;
  }
  .list-caption {
    font-size: 9px;
  }
  .game-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 15px;
    align-items: start;
  }
  .game-info h2 {
    font-size: 17px;
    line-height: 1.25;
  }
  .game-time {
    padding-top: 2px;
  }
  .game-time strong {
    font-size: 23px;
  }
  .game-time span {
    font-size: 10px;
  }
  .game-action {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
  }
  .game-action > strong {
    font-size: 15px;
  }
  .game-action > .muted {
    font-size: 10px;
  }
  .game-action .button {
    width: auto;
    min-height: 38px;
    padding: 8px 13px;
    font-size: 11px;
  }
  .game-info p {
    font-size: 11px;
  }
  .game-info .eyebrow {
    font-size: 8px;
  }
  .panel {
    padding: 22px 18px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-grid > div:nth-child(2) {
    grid-row: 1;
  }
  .detail-grid > div > .panel + .panel {
    margin-top: 18px;
  }
  .booking-panel h2 {
    font-size: 28px;
  }
  .note {
    padding: 0 4px;
  }
  .rows {
    padding: 0;
  }
  .member-row {
    padding: 20px 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .member-row > div {
    width: 100%;
  }
  .member-row > .button {
    font-size: 12px;
  }
  .row-actions {
    max-width: none;
    justify-content: flex-start;
    width: 100%;
  }
  .portal-grid { grid-template-columns: 1fr; gap: 18px; }
  .member-row > .row-actions { max-width: none; justify-content: flex-start; }
  .row-actions .text-button {
    font-size: 12px;
  }
  .balance-summary {
    gap: 8px;
  }
  .balance-summary strong {
    font-size: 21px;
  }
  .balance-summary span {
    font-size: 10px;
  }
  .journal-row {
    gap: 12px;
  }
  .journal-row > div:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .journal-amount {
    min-width: 82px;
    max-width: 110px;
  }
  .journal-row strong {
    font-size: 12px;
  }
  .venue-grid {
    grid-template-columns: 1fr;
  }
  .inline {
    flex-wrap: wrap;
  }
  .inline input,
  .inline select {
    flex-basis: 160px;
  }
  .search .inline {
    flex-wrap: nowrap;
  }
  .search .button {
    font-size: 12px;
    padding: 11px 13px;
  }
  .form-panel form > div {
    margin-bottom: 20px;
  }
  .footer {
    margin-top: 32px;
    font-size: 9px;
    flex-wrap: wrap;
  }
  .lower {
    margin-top: 18px;
  }
  .gallery img {
    height: 115px;
  }
  .back {
    font-size: 12px;
  }
  .empty {
    padding: 32px 18px;
  }
  .empty h2 {
    font-size: 20px;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  .game-list {
    margin: 0 -4px;
  }
  .demo {
    font-size: 10px;
  }
  .demo button {
    font-size: 10px;
  }
  .pagination {
    gap: 12px;
  }
  .roster-row h2 {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* ===================== DARK VOLT THEME ===================== */

body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(79, 209, 255, 0.07), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(212, 255, 63, 0.05), transparent 55%),
    var(--bg);
}
.sidebar {
  background: #0a0e19;
}
.brand .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heading h1 {
  letter-spacing: -0.02em;
}
.heading .eyebrow,
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.button {
  background: var(--grad);
  border: 0;
  color: #0e1220;
  font-weight: 750;
  box-shadow: var(--glow);
}
.button:hover {
  background: linear-gradient(120deg, #e6ff7a, #7adcff);
  text-decoration: none;
  color: #0e1220;
  box-shadow: 0 0 26px rgba(212, 255, 63, 0.4);
}
.text-button {
  color: var(--orange);
}
.bottom-nav {
  background: #0a0e19;
  border-top: 1px solid var(--line);
}
.bottom-nav a,
.bottom-nav button {
  color: var(--muted);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
select option {
  background: var(--paper);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.gallery img {
  border-radius: 10px;
}
.status {
  font-weight: 650;
}
.demo {
  border-radius: 10px;
}
.demo button {
  color: var(--orange);
}
.message {
  border-radius: 10px;
}
.message.error {
  color: var(--danger);
}
footer.footer {
  color: var(--muted);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #2a3450;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4667;
}

/* ===================== LIGHT THEME (toggle) — Volt light ===================== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f5ee;
  --paper: #ffffff;
  --paper-2: #f1f4ec;
  --ink: #1c2438;
  --muted: #5e697a;
  --line: #dde3d6;
  /* volt olive: readable lime-dark for links, labels and borders */
  --orange: #526900;
  --orange-2: #0aa2c0;
  --green: #167344;
  --danger: #b3261e;
  --grad: linear-gradient(120deg, #d4ff3f, #4fd1ff);
  --glow: 0 2px 14px rgba(127, 158, 0, 0.3);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(79, 209, 255, 0.1), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(212, 255, 63, 0.12), transparent 55%),
    var(--bg);
}
html[data-theme="light"] .sidebar {
  background: #fbfcf9;
}
html[data-theme="light"] .bottom-nav {
  background: #fbfcf9;
  border-top: 1px solid var(--line);
}
html[data-theme="light"] .brand .accent {
  background: linear-gradient(120deg, #7f9e00, #0aa2c0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .button {
  background: var(--grad);
  color: #1c2438;
  font-weight: 750;
  box-shadow: 0 2px 16px rgba(212, 255, 63, 0.55);
}
html[data-theme="light"] .button:hover {
  background: linear-gradient(120deg, #e6ff7a, #7adcff);
  color: #1c2438;
  box-shadow: 0 2px 24px rgba(212, 255, 63, 0.7);
}
html[data-theme="light"] .button.secondary {
  background: transparent;
  border-color: #c9d2be;
  color: #5e7a00;
}
html[data-theme="light"] .button.secondary:hover {
  border-color: #7f9e00;
  color: #5e7a00;
  background: rgba(212, 255, 63, 0.12);
}
html[data-theme="light"] .days a[aria-current] {
  color: #1c2438;
  background: #d4ff3f;
  border-color: #d4ff3f;
}
html[data-theme="light"] .showcase-art {
  background: linear-gradient(120deg, #eef2e4, #e4f0f6);
  color: #7f9e00;
}
html[data-theme="light"] .venue-placeholder {
  background: #eef2e4;
  color: #7f9e00;
}
html[data-theme="light"] .status {
  background: rgba(127, 158, 0, 0.1);
  color: #5e7a00;
}
html[data-theme="light"] .demo {
  border: 1px solid rgba(127, 158, 0, 0.35);
  background: rgba(212, 255, 63, 0.16);
}
html[data-theme="light"] .demo button {
  color: #5e7a00;
}
html[data-theme="light"] .message {
  background: rgba(127, 158, 0, 0.08);
  border: 1px solid rgba(127, 158, 0, 0.3);
  border-radius: 10px;
}
html[data-theme="light"] .message.error {
  background: rgba(255, 93, 93, 0.08);
  border-color: rgba(255, 93, 93, 0.4);
  color: #b3261e;
}
html[data-theme="light"] .danger {
  color: #b3261e !important;
}
html[data-theme="light"] .roster-guest {
  border-left-color: #dde3d6;
}
html[data-theme="light"] .autobook {
  border-top-color: #dde3d6;
}
html[data-theme="light"] .schedule-item {
  background: rgba(212, 255, 63, 0.16);
  border-left: 3px solid #7f9e00;
}
html[data-theme="light"] .schedule-item:hover {
  background: rgba(212, 255, 63, 0.3);
}
html[data-theme="light"] .nav-avatar.placeholder {
  background: rgba(212, 255, 63, 0.2);
  color: #5e7a00;
}
html[data-theme="light"] .showcase-dot {
  border-color: #7f9e00;
}
html[data-theme="light"] .showcase-dot.active {
  background: #7f9e00;
}
html[data-theme="light"] .showcase-arrow {
  background: #fff;
  border-color: #c9d2be;
  color: #1c2438;
}
html[data-theme="light"] .showcase-arrow:hover {
  border-color: #7f9e00;
  color: #5e7a00;
  background: rgba(212, 255, 63, 0.15);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c3ccb6;
  border-radius: 6px;
}
html[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}

/* Secondary actions stay quiet in both themes; retain a visible outline. */
.button, html[data-theme="light"] .button { box-shadow: none; }
.button:hover, html[data-theme="light"] .button:hover { box-shadow: none; }
.button.secondary, html[data-theme="light"] .button.secondary {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; box-shadow: none;
}
.button.secondary:hover, html[data-theme="light"] .button.secondary:hover {
  background: var(--paper-2); border-color: var(--muted); color: var(--ink);
}
.panel > ul { padding-left: 20px; }
.panel > ul > li + li { margin-top: 8px; }
@media (max-width: 380px) {
  main { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 28px; }
  .panel { padding: 20px 16px; }
  .rows { padding: 0; }
  .filters { grid-template-columns: minmax(0, 1fr); }
}
