:root {
  color-scheme: dark;
  --bg-900: #01040f;
  --bg-800: #07163b;
  --bg-700: #0f2b6c;
  --emerald: #00b1ff;
  --emerald-soft: rgba(0, 177, 255, 0.12);
  --sky: #1428a0;
  --text: #e6f1ff;
  --text-muted: #90a7d1;
  --card: rgba(7, 22, 59, 0.85);
  --card-border: rgba(20, 40, 160, 0.35);
  --shadow: 0 25px 50px -12px rgba(1, 12, 46, 0.7);
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(0, 177, 255, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(20, 40, 160, 0.16), transparent 60%), var(--bg-900);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body[data-page="admin"] {
  background: linear-gradient(160deg, rgba(15, 43, 108, 0.6), rgba(1, 4, 15, 0.95)), var(--bg-900);
}

body.body--ultra {
  background: radial-gradient(circle at 10% 10%, rgba(0, 177, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(20, 40, 160, 0.3), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(0, 177, 255, 0.18), transparent 60%),
    var(--bg-900);
  animation: ultraShift 16s ease-in-out infinite alternate;
}

body.body--ultra::before,
body.body--ultra::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(0, 177, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(20, 40, 160, 0.45), transparent 60%);
  filter: blur(0px);
  mix-blend-mode: screen;
}

body.body--ultra::before {
  animation: ultraSwirl 18s linear infinite;
  opacity: 0.45;
}

body.body--ultra::after {
  animation: ultraSwirlReverse 26s linear infinite;
  opacity: 0.3;
}

.pulse-overlay,
.ambient-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  z-index: 0;
}

.pulse-overlay {
  background: radial-gradient(circle at 15% 20%, rgba(0, 177, 255, 0.3), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(20, 40, 160, 0.35), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 177, 255, 0.25), transparent 65%);
  mix-blend-mode: screen;
}

.pulse-overlay--active {
  opacity: 0.75;
  animation: pulseGlow 14s ease-in-out infinite;
}

.ambient-stars {
  background-image: radial-gradient(rgba(0, 177, 255, 0.5) 1px, transparent 0),
    radial-gradient(rgba(20, 40, 160, 0.4) 1px, transparent 0);
  background-size: 180px 180px, 120px 120px;
  background-position: 0 0, 60px 60px;
  mix-blend-mode: screen;
}

.ambient-stars--active {
  opacity: 0.7;
  animation: starfieldDrift 28s linear infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: scale(1.05);
    filter: hue-rotate(25deg);
  }
}

@keyframes starfieldDrift {
  from {
    background-position: 0 0, 60px 60px;
  }
  to {
    background-position: 120px 160px, 180px 200px;
  }
}

@keyframes ultraShift {
  from {
    background-position: 0% 0%, 100% 20%, 50% 80%, center;
  }
  to {
    background-position: 30% 20%, 70% 40%, 40% 60%, center;
  }
}

@keyframes ultraSwirl {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.1);
  }
}

@keyframes ultraSwirlReverse {
  from {
    transform: rotate(360deg) scale(1.08);
  }
  to {
    transform: rotate(0deg) scale(1.15);
  }
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover,
.button:focus-visible {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 0.35em;
  font-weight: 800;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--emerald), var(--sky));
  color: #01040f;
  box-shadow: 0 10px 30px rgba(0, 177, 255, 0.25);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 35px rgba(0, 177, 255, 0.35);
  text-decoration: none;
}

.button--ghost {
  background: transparent;
  border: 1px solid rgba(20, 40, 160, 0.4);
  color: var(--text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(0, 177, 255, 0.6);
  color: var(--emerald);
  text-decoration: none;
}

.admin-header {
  padding: 3.5rem 1.5rem 1.5rem;
}

.admin-header__content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.admin-header p {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0;
}

.admin-main {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.admin-card,
.admin-dashboard,
.table-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.admin-card {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-feedback {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.admin-feedback--error {
  color: #ff8787;
}

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-toolbar h2 {
  margin-bottom: 0.25rem;
}

.admin-toolbar__actions {
  display: flex;
  gap: 0.75rem;
}

.admin-subtext {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(7, 22, 59, 0.65);
  border: 1px solid rgba(0, 177, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-card__value {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.stat-card__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.table-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-card--wide {
  padding: 0;
  overflow: hidden;
}

.table-card--wide .table-card__header {
  padding: 2rem 2rem 0;
}

.table-scroll {
  overflow-x: auto;
  padding: 0 2rem 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(0, 177, 255, 0.15);
  text-align: left;
}

.admin-table tbody tr:hover {
  background: rgba(0, 177, 255, 0.08);
}

#command-table td span {
  display: block;
}

.command-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 177, 255, 0.16);
  color: var(--emerald);
  border: 1px solid rgba(0, 177, 255, 0.4);
}

.command-badge--secret {
  background: rgba(194, 110, 255, 0.2);
  border-color: rgba(194, 110, 255, 0.35);
  color: #f0d5ff;
}

.admin-table--wide th,
.admin-table--wide td {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .admin-card,
  .admin-dashboard,
  .table-card {
    padding: 1.5rem;
  }

  .table-card--wide .table-card__header {
    padding: 1.5rem 1.5rem 0;
  }

  .table-scroll {
    padding: 0 1.5rem 1.5rem;
  }
}

.site-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(0, 177, 255, 0.35);
  color: var(--emerald);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
}

.hero__badge:focus-visible {
  outline: 2px solid rgba(0, 177, 255, 0.55);
  outline-offset: 4px;
}

.hero__badge--charged {
  box-shadow: 0 0 0 10px rgba(0, 177, 255, 0.12), 0 10px 30px rgba(0, 177, 255, 0.35);
  transform: scale(1.04);
}

.hero__badge--unlocked {
  background: linear-gradient(135deg, rgba(0, 177, 255, 0.22), rgba(20, 40, 160, 0.45));
  border-color: rgba(0, 177, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 177, 255, 0.35);
}

.sigma-handshake {
  margin: 0.75rem auto 0;
  max-width: 520px;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  margin-top: 1.5rem;
}

.site-hero p {
  margin: 1.25rem auto 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.apple-diss {
  margin: 1.75rem auto 0;
  max-width: 680px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: rgba(20, 40, 160, 0.35);
  border: 1px solid rgba(0, 177, 255, 0.35);
  color: var(--text);
  font-weight: 600;
  text-shadow: 0 0 15px rgba(0, 177, 255, 0.35);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-main {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.panels-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.panel-card__tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 40, 160, 0.35);
  background: rgba(20, 40, 160, 0.12);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-card__description {
  margin: 0;
  color: var(--text-muted);
}

.editor-section {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(7, 22, 59, 0.94), rgba(1, 4, 15, 0.94));
  border: 1px solid rgba(20, 40, 160, 0.3);
  box-shadow: var(--shadow);
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 14px;
  border: 1px solid rgba(20, 40, 160, 0.25);
  background: rgba(7, 22, 59, 0.65);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 177, 255, 0.28);
}

.form-field--full {
  grid-column: 1 / -1;
}

.editor-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.editor-feedback {
  margin: 0;
  min-height: 1.25rem;
  color: var(--emerald);
  font-size: 0.95rem;
}

.site-footer {
  margin: 4rem auto 3rem;
  max-width: 960px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
}

.age-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(1, 4, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 1.5rem;
}

.age-gate__box {
  width: min(480px, 100%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(7, 22, 59, 0.96), rgba(1, 4, 15, 0.96));
  border: 1px solid rgba(20, 40, 160, 0.35);
  box-shadow: 0 25px 70px rgba(1, 18, 60, 0.75);
  text-align: center;
}

.age-gate__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--emerald);
}

.age-gate__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none;
}

.modal.hidden {
  display: none;
}

.modal--open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 15, 0.78);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  margin: 5vh auto;
  width: min(760px, calc(100% - 3rem));
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(7, 22, 59, 0.97);
  border: 1px solid rgba(20, 40, 160, 0.4);
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 1rem;
}

.modal__body {
  color: var(--text-muted);
}

.modal__body h3,
.modal__body h4,
.modal__body h5 {
  color: var(--text);
  margin-top: 1.5rem;
}

.modal__body ul,
.modal__body ol {
  padding-left: 1.25rem;
}

.modal__body li {
  margin-bottom: 0.5rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(7, 22, 59, 0.75);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--text);
  outline: none;
  border: 1px solid rgba(0, 177, 255, 0.45);
}

.command-palette {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 1200;
  pointer-events: none;
}

.command-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 15, 0.75);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.command-palette__panel {
  position: relative;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(7, 22, 59, 0.95);
  border: 1px solid rgba(0, 177, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 12, 46, 0.6);
  pointer-events: auto;
  z-index: 1;
}

.command-palette__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.command-palette__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.command-palette__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 177, 255, 0.25);
  background: rgba(1, 4, 15, 0.9);
  color: var(--text);
  font-size: 1rem;
}

.command-palette__input:focus {
  outline: 2px solid rgba(0, 177, 255, 0.45);
  outline-offset: 2px;
  border-color: rgba(0, 177, 255, 0.55);
}

.command-palette__hint {
  margin: -0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.command-palette__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 177, 255, 0.18);
  background: rgba(7, 22, 59, 0.72);
}

.command-palette__option,
.command-palette__empty {
  padding: 0.85rem 1rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.command-palette__option {
  cursor: pointer;
  color: var(--text);
}

.command-palette__option:hover {
  background: rgba(0, 177, 255, 0.12);
}

.command-palette__option.is-active {
  background: rgba(0, 177, 255, 0.22);
  color: var(--emerald);
}

.command-palette__empty {
  color: var(--text-muted);
}

@media (max-width: 540px) {
  .command-palette__panel {
    padding: 1.25rem;
    gap: 0.75rem;
  }

  .command-palette__list {
    max-height: 220px;
  }
}

.quiz {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz__question {
  font-size: 1.1rem;
  color: var(--text);
}

.quiz__answers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz__answers button {
  text-align: left;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 40, 160, 0.35);
  background: rgba(7, 22, 59, 0.75);
  color: var(--text);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.quiz__answers button:hover,
.quiz__answers button:focus-visible {
  border-color: var(--emerald);
  transform: translateX(4px);
  outline: none;
}

.quiz__progress {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz__result {
  font-size: 1.1rem;
  color: var(--emerald);
  margin-top: 1rem;
}

.routine-generator {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(7, 22, 59, 0.85);
  border: 1px solid rgba(0, 177, 255, 0.3);
  box-shadow: var(--shadow);
}

.routine-generator__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.routine-generator__result p {
  margin: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.routine-generator__emoji {
  font-size: 1.4rem;
}

.routine-generator__highlight {
  margin: 0;
  font-size: 0.95rem;
  color: var(--emerald);
  font-weight: 600;
}

.routine-generator__button {
  align-self: flex-start;
}

.routine-generator__history {
  border-top: 1px solid rgba(0, 177, 255, 0.18);
  padding-top: 1rem;
}

.routine-generator__history h4 {
  margin: 0 0 0.5rem;
}

.routine-generator__history-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.routine-generator__history-move {
  color: var(--emerald);
  font-weight: 600;
}

.fortune-cookie {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fortune-cookie__fortune {
  font-size: 1.25rem;
  font-weight: 700;
}

.fortune-cookie__mantra,
.fortune-cookie__hint {
  margin: 0;
  color: var(--text-muted);
}

.fortune-cookie__hint {
  font-size: 0.85rem;
  opacity: 0.8;
}

.synergy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.synergy__intro {
  font-weight: 600;
  margin: 0;
}

.synergy__list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.synergy__highlight {
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(0, 177, 255, 0.12);
  border: 1px solid rgba(0, 177, 255, 0.25);
}

.synergy__boost {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.export-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.export-panel textarea {
  width: 100%;
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: rgba(7, 22, 59, 0.65);
  color: var(--text);
  padding: 1rem;
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.85rem;
  resize: vertical;
}

.export-panel__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.export-panel__status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.export-panel__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tntc-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tntc-hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.tntc-main {
  max-width: 480px;
  margin: 0 auto 4rem;
  padding: 0 1rem 2rem;
}

.video-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.video-card iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 18px;
  background: #000;
}

.video-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.video-card__tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.video-card__tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 177, 255, 0.12);
  border: 1px solid rgba(0, 177, 255, 0.3);
  color: var(--sky);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-feed__empty {
  text-align: center;
  color: var(--text-muted);
}

.video-feed__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.video-feed__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--sky);
  animation: video-feed-spin 0.8s linear infinite;
}

[data-theme="dark"] .video-feed__spinner {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--sky);
}

.video-feed__sentinel {
  width: 100%;
  height: 1px;
}

.video-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.video-card__info time {
  color: inherit;
}

.video-card__channel {
  font-weight: 600;
  color: var(--text-primary);
}

.video-card__counter {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@keyframes video-feed-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .site-hero {
    padding-top: 3.5rem;
  }

  .editor-section {
    padding: 2rem 1.5rem;
  }

  .panel-card {
    padding: 1.5rem;
  }

  .video-card iframe {
    height: 240px;
  }
}

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

.gallery__item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(7, 22, 59, 0.75);
  border: 1px solid rgba(20, 40, 160, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery__item h4 {
  margin: 0;
  color: var(--text);
}

.gallery__item p {
  margin: 0;
  color: var(--text-muted);
}

.gallery__item a {
  align-self: flex-start;
  font-size: 0.85rem;
}
