:root {
  --bg: #12161d;
  --bg-2: #1b2230;
  --panel: #202734;
  --panel-2: #2a3342;
  --ink: #e8dfcf;
  --muted: #b7ad9c;
  --accent: #c28a2e;
  --accent-2: #4f7ea8;
  --line: #3b4657;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background:
    linear-gradient(140deg, rgba(35, 62, 96, 0.28) 0%, transparent 34%),
    linear-gradient(220deg, rgba(194, 138, 46, 0.12) 0%, transparent 38%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 22px
    ),
    linear-gradient(180deg, #081019 0%, #111927 30%, #18263a 72%, #0e1621 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(70, 122, 190, 0.34), transparent 20%),
    radial-gradient(circle at 78% 20%, rgba(59, 97, 150, 0.22), transparent 24%),
    radial-gradient(circle at 52% 72%, rgba(34, 71, 118, 0.16), transparent 26%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

body::after {
  background:
    radial-gradient(circle at 84% 14%, rgba(194, 138, 46, 0.20), transparent 16%),
    radial-gradient(circle at 18% 82%, rgba(194, 138, 46, 0.10), transparent 18%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 13px
    );
  opacity: 0.48;
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(18, 22, 29, 0.92);
  background: rgba(18, 22, 29, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: #f3e7cf;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.site-nav-button {
  text-decoration: none;
}

.site-nav-inline-form {
  margin: 0;
  display: flex;
  align-items: center;
}

.site-nav-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: pointer;
}

.site-nav-inline-form,
.site-nav-inline-form .site-nav-button {
  display: inline;
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 33, 46, 0.92);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

main {
  padding: 0 1.25rem 3rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(9, 14, 22, 0.72);
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer-nav a {
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-social-links {
  justify-content: center;
  margin-top: 0.85rem;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 126, 168, 0.6);
  background:
    linear-gradient(180deg, rgba(52, 83, 119, 0.32), rgba(27, 43, 63, 0.5)),
    rgba(18, 26, 37, 0.76);
  color: #dbe9f7;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.social-button:hover,
.social-button:focus-visible {
  border-color: rgba(194, 138, 46, 0.72);
  color: #fff3dd;
  outline: none;
}

.footer-social-links {
  justify-content: flex-end;
}

.footer-social-button {
  min-width: 6.6rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.95rem;
}

.hero,
.page {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 4rem 0 2rem;
}

.hero-media {
  position: relative;
  min-height: 26rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide.is-leaving {
  opacity: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 28%);
  display: block;
  transform: scale(1.03);
  transform-origin: var(--focus-x, 50%) var(--focus-y, 28%);
}

.hero-slide.is-active img,
.hero-slide.is-leaving img {
  animation: heroPortraitFloat 11s ease-out both;
}

.hero-slide[data-hero-wide].is-active img,
.hero-slide[data-hero-wide].is-leaving img {
  animation: heroWidePan 13s ease-out both;
}

.hero-copy {
  background-color: rgba(33, 45, 63, 0.97);
  background:
    radial-gradient(circle at top right, rgba(86, 126, 176, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(28, 40, 58, 0.98), rgba(34, 49, 69, 0.96) 55%, rgba(24, 34, 47, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(132, 170, 214, 0.08);
}

.hero-copy-home {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
}

.hero-logo {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin-bottom: 0.35rem;
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.25rem;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  margin: 0 0 0.35rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-top: 0;
}

@keyframes heroPortraitFloat {
  from {
    transform: scale(1.03) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

@keyframes heroWidePan {
  from {
    transform: scale(1.08) translateX(-4%);
  }
  to {
    transform: scale(1.16) translateX(4%);
  }
}

@keyframes heroPortraitFloatMobile {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.04) translateY(-1%);
  }
}

@keyframes heroWidePanMobile {
  from {
    transform: scale(1.02) translateX(-2%);
  }
  to {
    transform: scale(1.08) translateX(2%);
  }
}

.site-nav a,
.button,
th {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.lead {
  font-size: 1.2rem;
  max-width: 34rem;
  color: var(--muted);
  margin: 0 auto;
}

.desktop-only {
  display: contents;
}

.mobile-only {
  display: none;
}

.hero-actions-panel {
  text-align: center;
}

.hero-actions-panel h2 {
  margin-bottom: 0.75rem;
}

.hero-actions-panel .hero-actions,
.hero-actions-panel .hero-social-links {
  justify-content: center;
}

.button {
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 1.08rem;
  line-height: 1.15;
  text-decoration: none;
  background: rgba(194, 138, 46, 0.08);
  color: var(--accent);
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #18120c;
  font-weight: 700;
}

.hero-actions,
.panel-grid,
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.35rem;
  margin: 1.25rem 0 1.5rem;
}

.admin-action-card {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
}

.admin-reset-card {
  justify-content: flex-start;
  margin: 0;
}

.band-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel,
.list-item {
  background:
    linear-gradient(180deg, rgba(38, 52, 72, 0.92), rgba(27, 36, 49, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.photo-panel {
  padding: 0;
  overflow: hidden;
  grid-column: span 2;
}

.photo-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.panel[id] {
  scroll-margin-top: 6.5rem;
}

.panel:target {
  border-color: rgba(194, 138, 46, 0.8);
  box-shadow:
    0 0 0 1px rgba(194, 138, 46, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.16),
    0 0 34px rgba(194, 138, 46, 0.18);
}

.link-panel {
  text-decoration: none;
  color: inherit;
}

.page {
  padding-top: 2rem;
}

.legal-page .lead {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.narrow {
  max-width: 720px;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.stack-form input,
.stack-form textarea,
.stack-form select,
.search-bar input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 26, 0.72);
  color: var(--ink);
  font: inherit;
}

.stack-form input::placeholder,
.stack-form textarea::placeholder,
.search-bar input::placeholder {
  color: #8f8a82;
}

.stack-form textarea {
  min-height: 8rem;
}

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.document-search-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.log-filter-bar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
}

.combined-log-filter-bar {
  grid-template-columns: minmax(9rem, 0.65fr) minmax(0, 1fr) minmax(0, 1fr) auto auto;
}

.kind-filter {
  position: relative;
  min-width: 9rem;
}

.kind-filter summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 18, 26, 0.72);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.kind-filter summary::-webkit-details-marker {
  display: none;
}

.kind-filter summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-0.12rem);
}

.kind-filter[open] summary::after {
  transform: rotate(225deg) translateY(-0.12rem);
}

.kind-filter summary span {
  color: var(--muted);
  font-weight: 700;
}

.kind-filter-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 0.35rem;
  min-width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(35, 49, 69, 0.98), rgba(24, 33, 46, 0.98)),
    var(--panel);
  box-shadow: 0 18px 38px rgba(6, 10, 18, 0.34);
}

.kind-filter-menu label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.kind-filter-menu label:hover {
  background: rgba(255, 255, 255, 0.06);
}

.kind-filter-menu input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.log-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.log-tools .log-filter-bar {
  flex: 1 1 34rem;
  margin-bottom: 0;
}

.log-tools > form:not(.log-filter-bar) {
  flex: 0 0 auto;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  padding-right: 3rem;
}

.clear-search-inline {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(59, 70, 87, 0.7);
  border: 1px solid rgba(102, 119, 141, 0.8);
  font-size: 0.9rem;
  line-height: 1;
}

.date-placeholder {
  color: #8f8a82;
  -webkit-text-fill-color: #8f8a82;
}

.list {
  display: grid;
  gap: 1rem;
}

.document-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.document-breadcrumbs a {
  text-decoration: none;
}

.document-folder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.admin-users-list {
  margin-top: 1.5rem;
}

.admin-user-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-user-form-row label {
  display: grid;
  gap: 0.45rem;
}

.admin-user-form-row input,
.admin-user-form-row select {
  min-height: 3.1rem;
  height: 3.1rem;
}

.admin-user-form-row select {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
}

.shared-player-panel {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(36, 52, 75, 0.95), rgba(22, 31, 45, 0.97)),
    linear-gradient(180deg, rgba(28, 35, 48, 0.98), rgba(20, 26, 36, 0.96));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.shared-player-label,
.shared-player-meta {
  margin: 0;
}

.shared-player-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
}

.shared-player-title {
  margin: 0.35rem 0 0.25rem;
}

.shared-player-meta {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.shared-player-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.shared-player-nav[disabled] {
  opacity: 0.45;
  cursor: default;
}

.shared-player-toggle.is-on {
  background: rgba(194, 138, 46, 0.18);
}

.shared-player-audio {
  width: min(100%, 38rem);
  margin-top: 0;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.recording-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.recording-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(48, 67, 92, 0.18), rgba(255, 255, 255, 0.03));
}

.recording-title-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.recording-play-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.recording-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.recording-detail-head h3 {
  margin-top: 0;
}

.recording-title-button:hover,
.recording-title-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.recording-row.is-selected {
  border-color: rgba(79, 126, 168, 0.55);
  background: rgba(79, 126, 168, 0.12);
}

.recording-row.is-playing {
  border-color: rgba(194, 138, 46, 0.65);
  background: rgba(194, 138, 46, 0.14);
  box-shadow: inset 0 0 0 1px rgba(194, 138, 46, 0.1);
}

.rehearsal-documents {
  margin-top: 1rem;
}

.search-match-summary {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
}

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

.admin-user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 14rem));
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}

.admin-user-actions form {
  margin: 0;
}

.admin-user-actions > * {
  width: 100%;
}

.admin-user-actions .button {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-upload-form input[type="file"] {
  max-width: 100%;
}

.hero-focus-editor {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 26, 0.72);
  cursor: crosshair;
}

.hero-focus-editor img {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
}

.hero-focus-marker {
  position: absolute;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: -0.85rem;
  margin-top: -0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 114, 114, 0.72);
  background: rgba(140, 18, 18, 0.14);
  box-shadow: 0 0 0 4px rgba(17, 25, 39, 0.32);
  pointer-events: none;
}

.hero-focus-marker.is-hidden {
  display: none;
}

.hero-focus-marker::before,
.hero-focus-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ff6d6d;
  box-shadow: 0 0 10px rgba(255, 72, 72, 0.45);
  transform: translate(-50%, -50%);
}

.hero-focus-marker::before {
  width: 2px;
  height: 1.7rem;
}

.hero-focus-marker::after {
  width: 1.7rem;
  height: 2px;
}

.hero-preview-section {
  display: grid;
  gap: 0.85rem;
}

.hero-preview-section h3 {
  margin: 0;
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.hero-preview-card {
  display: grid;
  gap: 0.45rem;
}

.hero-preview-card h4 {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-crop-preview {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 18, 26, 0.72);
}

.hero-crop-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 28%);
}

.hero-preview-card-desktop .hero-crop-preview {
  aspect-ratio: 5 / 3;
}

.hero-preview-card-mobile .hero-crop-preview {
  aspect-ratio: 16 / 9;
}

.hero-preview-card-compact .hero-crop-preview {
  aspect-ratio: 4 / 5;
}

.hero-image-actions {
  display: grid;
  grid-template-columns: minmax(0, 14rem);
  gap: 1rem;
  align-items: end;
}

.hero-image-actions .button {
  width: 100%;
}

.hero-editor-panel {
  display: grid;
  gap: 1rem;
}

.hero-editor-toolbar {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 10rem;
  gap: 1rem;
  align-items: center;
}

.hero-editor-status {
  text-align: center;
}

.hero-editor-status h2 {
  margin-bottom: 0.25rem;
}

.hero-editor-toolbar .button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.admin-users-list > .panel > .stack-form > .button {
  width: auto;
  justify-self: start;
  min-width: 14rem;
}

.admin-danger-button {
  border-color: rgba(184, 72, 72, 0.75);
  color: #f7d7d7;
  background: rgba(114, 26, 26, 0.26);
}

.admin-danger-button:hover,
.admin-danger-button:focus-visible {
  border-color: rgba(214, 98, 98, 0.9);
  color: #fff0f0;
  outline: none;
}

.compact-list {
  padding-left: 1.2rem;
}

.notes {
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
}

.indexer-status {
  margin: 0.15rem 0 1rem;
  color: #f0d8ab;
  font-weight: 700;
}

.indexer-stats-wrap {
  overflow-x: auto;
}

.indexer-stats {
  min-width: 24rem;
  font-size: 0.95rem;
}

.indexer-stats th,
.indexer-stats td {
  padding: 0.55rem 0.7rem;
}

.indexer-stats tbody tr:last-child th,
.indexer-stats tbody tr:last-child td {
  border-bottom: 0;
}

.flash-wrap {
  position: fixed;
  top: 5.25rem;
  right: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.75rem;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.flash {
  background: linear-gradient(180deg, rgba(58, 86, 122, 0.32), rgba(194, 138, 46, 0.14));
  border: 1px solid rgba(194, 138, 46, 0.45);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(6, 10, 18, 0.34);
  animation: flashToast 4.6s ease forwards;
  pointer-events: auto;
}

@keyframes flashToast {
  0% {
    opacity: 0;
    transform: translateY(-0.5rem);
  }

  10%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-0.8rem);
  }
}

.table-wrap {
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(35, 49, 69, 0.92), rgba(24, 33, 46, 0.98)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.log-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.pagination-summary {
  margin: 0;
  color: var(--muted);
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #f0d8ab;
}

.compact-log-table-wrap {
  overflow-x: visible;
}

.compact-log-table {
  table-layout: fixed;
}

.compact-log-table th,
.compact-log-table td {
  padding: 0.5rem 0.65rem;
  vertical-align: middle;
}

.compact-log-table td {
  white-space: nowrap;
}

.log-time-col {
  width: 11.5rem;
}

.log-kind-col {
  width: 5.75rem;
}

.log-ip-col {
  width: 8.5rem;
}

.log-entry-col {
  width: 28%;
}

.log-details-col {
  width: auto;
}

.log-time-cell,
.log-kind-cell,
.log-ip-cell,
.log-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-time-cell {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
}

.log-kind-cell {
  color: #f0d8ab;
  font-weight: 700;
}

.log-detail-separator {
  color: var(--muted);
}

audio {
  width: min(100%, 28rem);
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .site-header {
    padding: 0.7rem 1rem;
    gap: 0.65rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 1.5rem;
  }

  .hero-media {
    order: 2;
    width: 100%;
    min-height: 12rem;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .hero-media img {
    object-position: var(--focus-x, 50%) var(--focus-y, 28%);
    transform: scale(1);
  }

  .hero-slide.is-active img,
  .hero-slide[data-hero-wide].is-active img {
    animation-duration: 11s;
  }

  .hero-slide.is-active img,
  .hero-slide.is-leaving img {
    animation-name: heroPortraitFloatMobile;
  }

  .hero-slide[data-hero-wide].is-active img,
  .hero-slide[data-hero-wide].is-leaving img {
    animation-name: heroWidePanMobile;
  }

  .hero-copy-home {
    order: 1;
    gap: 0.3rem;
  }

  .hero-copy {
    padding: 1.05rem 1.1rem;
  }

  .lead {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 1rem;
    letter-spacing: 0.12em;
    margin: 0;
  }

  .hero-logo {
    width: min(100%, 14rem);
    margin-bottom: 0.15rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .band-grid {
    grid-template-columns: 1fr;
  }

  .photo-panel {
    grid-column: auto;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .admin-actions-grid {
    grid-template-columns: 1fr;
  }

  .compact-log-table-wrap {
    overflow-x: auto;
  }

  .compact-log-table {
    min-width: 46rem;
  }

  .admin-user-form-row {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    grid-template-columns: 1fr;
  }

  .recording-row {
    display: block;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 2.45rem;
    height: 2.45rem;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      transform 220ms ease,
      padding-top 220ms ease;
  }

  .site-nav.is-open {
    max-height: 22rem;
    opacity: 1;
    padding-top: 0.6rem;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 0.35rem 0;
  }

  .log-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links,
  .footer-social-links {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-logo {
    width: min(100%, 16rem);
  }

  .hero-image-actions {
    grid-template-columns: 1fr;
  }

  .hero-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-editor-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-admin-controls,
  .hero-upload-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .site-nav {
    transition: none;
  }
}
