:root {
  color-scheme: light;
  --ink: #191714;
  --muted: #6f6b63;
  --page: #f5f5f0;
  --surface: #ffffff;
  --surface-strong: #26221d;
  --line: #dfddd4;
  --accent: #e84c61;
  --accent-dark: #b72f44;
  --teal: #007f75;
  --teal-soft: #ddf5f0;
  --gold: #c89213;
  --gold-soft: #fff0c2;
  --danger: #b42318;
  --danger-soft: #ffe7e4;
  --shadow: 0 18px 55px rgba(25, 23, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 76, 97, 0.06), transparent 310px),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-topbar {
  background: rgba(38, 34, 29, 0.95);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-topbar .brand small {
  color: rgba(255, 255, 255, 0.7);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-link,
.subtle-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.topbar-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(25, 23, 20, 0.06);
}

.admin-topbar .topbar-link {
  background: rgba(255, 255, 255, 0.1);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 0;
}

.participant-shell {
  width: min(980px, calc(100% - 28px));
}

.participant-no-header .participant-shell {
  padding-top: clamp(18px, 4vw, 42px);
}

.hero-panel,
.login-panel {
  min-height: min(620px, calc(100vh - 120px));
  display: grid;
  align-content: center;
  gap: clamp(28px, 6vw, 54px);
  padding: clamp(24px, 6vw, 64px);
  background: var(--surface-strong);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.participant-no-header .hero-panel {
  min-height: min(720px, calc(100vh - 48px));
}

.hero-panel {
  background:
    linear-gradient(135deg, rgba(232, 76, 97, 0.44), transparent 52%),
    linear-gradient(45deg, rgba(0, 127, 117, 0.38), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    var(--surface-strong);
}

.login-panel {
  max-width: 680px;
  min-height: 460px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.dashboard-head h1,
.participant-header h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.join-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

label {
  font-weight: 800;
}

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

input[type="text"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="file"] {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

input[type="file"] {
  padding: 14px 16px;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 127, 117, 0.14);
}

.join-form button,
.button-secondary,
.request-actions button,
.import-panel button,
.event-actions button,
.close-event-form button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.request-actions button {
  background: var(--teal);
}

.button-danger,
.close-event-form .button-danger {
  background: var(--danger);
  color: #fff;
}

.event-actions .button-muted {
  background: rgba(25, 23, 20, 0.11);
  color: var(--ink);
}

.request-actions .button-danger {
  background: var(--danger);
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.prelaunch-panel {
  position: relative;
  overflow: hidden;
  justify-content: space-between;
}

.prelaunch-panel::after {
  position: absolute;
  right: clamp(20px, 8vw, 92px);
  bottom: -34px;
  width: min(340px, 52vw);
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, 0.16) 11% 13%, transparent 13% 24%, rgba(255, 255, 255, 0.16) 24% 26%, transparent 26% 37%, rgba(255, 255, 255, 0.16) 37% 39%, transparent 39% 50%, rgba(255, 255, 255, 0.16) 50% 52%, transparent 52% 63%, rgba(255, 255, 255, 0.16) 63% 65%, transparent 65% 76%, rgba(255, 255, 255, 0.16) 76% 78%, transparent 78%);
  content: "";
  opacity: 0.62;
}

.prelaunch-panel > * {
  position: relative;
  z-index: 1;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin: 0;
}

.event-details div {
  min-height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.event-details dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-details dd {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.form-error {
  margin: 0;
  color: #ffb3bd;
  font-weight: 800;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  line-height: 1.35;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.song-picker .form-error,
.catalog-list .form-error,
.search-results .form-error {
  color: var(--danger);
}

.notification-button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: #fff;
  font-weight: 900;
}

.notification-status {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.participant-header,
.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.participant-header {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background:
    linear-gradient(90deg, rgba(232, 76, 97, 0.09), transparent 52%),
    var(--surface);
  box-shadow: 0 10px 35px rgba(25, 23, 20, 0.08);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.admin-tabs {
  display: grid;
  gap: 18px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(25, 23, 20, 0.06);
}

.tab-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tab-button.is-active {
  background: var(--surface-strong);
  color: #fff;
}

.tab-panel[hidden] {
  display: none;
}

.song-picker,
.queue-panel,
.import-panel,
.event-admin-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(25, 23, 20, 0.08);
}

.song-picker {
  display: grid;
  gap: 12px;
}

.song-picker > label {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.queue-panel {
  position: sticky;
  top: 94px;
}

.participant-page .tool-layout {
  grid-template-columns: 1fr;
}

.participant-requests-panel {
  position: relative;
  top: auto;
  display: grid;
  gap: 16px;
  border-color: rgba(0, 127, 117, 0.28);
  background:
    linear-gradient(120deg, rgba(0, 127, 117, 0.13), rgba(245, 179, 55, 0.14) 58%, transparent),
    var(--surface);
  box-shadow: 0 16px 42px rgba(0, 127, 117, 0.14);
}

.participant-requests-panel .panel-heading {
  padding-bottom: 2px;
}

.participant-requests-panel .panel-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.participant-requests-panel .counter {
  min-width: 42px;
  min-height: 42px;
  background: #00564f;
  color: #fff;
  font-size: 1.05rem;
}

.participant-requests-panel .request-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.participant-requests-panel .empty-state {
  margin: 0;
  border: 1px dashed rgba(0, 127, 117, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.participant-requests-panel .request-item {
  min-height: 118px;
  padding: 16px;
}

.participant-requests-panel .request-item .badge {
  justify-self: start;
}

.participant-requests-panel .request-item strong {
  font-size: 1.05rem;
}

.participant-requests-panel .request-item-called {
  grid-column: 1 / -1;
  min-height: 132px;
  border-width: 2px;
  padding: clamp(18px, 4vw, 24px);
  background:
    linear-gradient(105deg, rgba(0, 127, 117, 0.22), rgba(255, 255, 255, 0.92) 62%),
    #fff;
}

.participant-requests-panel .request-item-called strong {
  font-size: clamp(1.25rem, 4vw, 1.85rem);
}

.song-picker,
.queue-panel,
.import-panel,
.event-admin-panel {
  padding: 18px;
}

.close-event-form {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.new-event-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr) minmax(0, 0.8fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.new-event-form input {
  min-height: 48px;
}

.new-event-form button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(25, 23, 20, 0.11);
  color: var(--ink);
  font-weight: 900;
}

.catalog-admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(25, 23, 20, 0.08);
}

.catalog-admin-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
}

.catalog-admin-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.event-admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.event-summary {
  display: grid;
  gap: 14px;
}

.event-summary h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.event-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.event-form {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: end;
}

.event-form label {
  align-self: center;
}

.event-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-input {
  margin-top: 10px;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.catalog-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.catalog-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.catalog-panel .panel-heading {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--teal-soft);
}

.song-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 127, 117, 0.045), transparent 40%),
    #fff;
  color: var(--ink);
  text-align: left;
}

.song-result:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(232, 76, 97, 0.12);
}

.song-result span,
.request-item,
.request-main {
  min-width: 0;
}

.song-info {
  display: grid;
  gap: 4px;
}

.song-result strong,
.song-result small,
.request-item strong,
.request-item small {
  display: block;
  overflow-wrap: anywhere;
}

.song-result small,
.request-item small,
.admin-request p {
  color: var(--muted);
}

.song-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.song-result em,
.song-meta small {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--teal-soft);
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.song-meta small {
  background: var(--gold-soft);
  color: #6d4b00;
}

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

.panel-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.counter {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #6d4b00;
  font-weight: 900;
}

.request-list,
.admin-queue,
.history-list {
  display: grid;
  gap: 12px;
}

.request-item,
.admin-request,
.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-item {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.request-item-called {
  border-color: #97ded3;
  background:
    linear-gradient(90deg, var(--teal-soft), #fff 70%);
  box-shadow: 0 10px 30px rgba(0, 127, 117, 0.12);
}

.request-item-called strong {
  color: #00564f;
  font-size: 1.08rem;
}

.called-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 23, 20, 0.62);
  backdrop-filter: blur(10px);
  animation: popup-backdrop-in 180ms ease-out;
}

.called-popup-panel {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  border-radius: 8px;
  padding: clamp(22px, 6vw, 34px);
  background:
    linear-gradient(135deg, rgba(0, 127, 117, 0.16), transparent 48%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(25, 23, 20, 0.28);
  animation: popup-panel-in 220ms ease-out;
}

.called-popup-panel h2 {
  margin: 2px 0 4px;
  font-size: clamp(2.1rem, 9vw, 4rem);
  line-height: 0.95;
}

.called-popup-panel strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
}

.called-popup-panel small {
  color: var(--muted);
  font-size: 1rem;
}

.called-popup-panel button {
  min-height: 50px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 950;
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status-pending {
  background: var(--gold-soft);
  color: #6d4b00;
}

.status-called {
  background: var(--teal-soft);
  color: #00564f;
}

.status-done {
  background: #e7f7df;
  color: #2f6b15;
}

.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-tile {
  display: grid;
  gap: 6px;
  min-height: 118px;
  align-content: center;
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-strong);
  color: #fff;
}

.stat-tile:nth-child(2) {
  background: var(--teal);
}

.stat-tile:nth-child(3) {
  background: #7f5526;
}

.stat-tile:nth-child(4) {
  background: #5b5f22;
}

.stat-tile span {
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
}

.stat-tile strong {
  color: rgba(255, 255, 255, 0.78);
}

.admin-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.admin-history {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.history-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(0, 127, 117, 0.05), transparent 42%),
    #fff;
}

.stats-dashboard,
.reports-panel {
  display: grid;
  gap: 18px;
}

.stats-hero,
.reports-panel,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(25, 23, 20, 0.08);
}

.stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: center;
}

.stats-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 0.98;
}

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

.stats-hero-grid span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  border-radius: 8px;
  padding: 14px;
  background: rgba(25, 23, 20, 0.06);
  color: var(--muted);
  font-weight: 850;
}

.stats-hero-grid strong {
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
}

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

.insight-panel h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.insight-panel p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 12px 0;
}

.insight-panel p:first-of-type {
  border-top: 0;
}

.insight-panel span {
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.reports-list {
  display: grid;
  gap: 12px;
}

.report-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.report-item strong,
.report-item small,
.report-item span {
  display: block;
  overflow-wrap: anywhere;
}

.report-item small,
.report-item span {
  margin-top: 4px;
  color: var(--muted);
}

.history-item strong,
.history-item small {
  display: block;
  overflow-wrap: anywhere;
}

.history-item small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-request h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.admin-request p {
  margin-bottom: 0;
}

.request-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.request-timeline span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(25, 23, 20, 0.06);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.request-timeline strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.notice {
  display: grid;
  gap: 4px;
  padding: 16px;
  margin-bottom: 18px;
}

.notice-error {
  border-color: #ffc6c1;
  background: var(--danger-soft);
  color: var(--danger);
}

.notice-success {
  border-color: #b7e7d9;
  background: var(--teal-soft);
  color: #00564f;
}

.import-panel {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.import-panel form {
  display: grid;
  gap: 12px;
}

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

.csv-format p {
  margin-bottom: 0;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: clamp(14px, 4vw, 32px);
  bottom: clamp(14px, 4vw, 32px);
  z-index: 80;
  display: grid;
  width: min(360px, calc(100vw - 28px));
  gap: 10px;
  pointer-events: none;
}

.new-request-toast {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-strong);
  color: #fff;
  box-shadow: 0 18px 55px rgba(25, 23, 20, 0.26);
  animation: toast-in 260ms ease-out;
}

.new-request-toast span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.new-request-toast strong {
  overflow-wrap: anywhere;
}

.new-request-toast small {
  color: rgba(255, 255, 255, 0.72);
}

.new-request-toast.is-leaving {
  animation: toast-out 240ms ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes popup-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popup-panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-nav {
    max-width: 52%;
  }

  .input-row,
  .tool-layout,
  .event-admin-panel,
  .event-form,
  .new-event-form,
  .stats-hero,
  .stats-hero-grid,
  .insight-grid,
  .report-item,
  .stats-grid,
  .admin-request {
    grid-template-columns: 1fr;
  }

  .event-form label,
  .event-actions {
    align-self: stretch;
  }

  .event-actions,
  .event-actions button {
    width: 100%;
  }

  .event-details {
    grid-template-columns: 1fr;
  }

  .tab-button {
    flex: 1 1 120px;
  }

  .catalog-admin-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-admin-panel .button-secondary {
    width: 100%;
  }

  .queue-panel {
    position: static;
  }

  .close-event-form {
    justify-content: stretch;
  }

  .close-event-form button {
    width: 100%;
  }

  .new-event-form button {
    width: 100%;
  }

  .report-item .button-secondary {
    width: 100%;
  }

  .participant-header,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-actions {
    justify-content: stretch;
  }

  .request-actions form,
  .request-actions button {
    width: 100%;
  }

  .song-result {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .song-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
