/*
   WeTV / Private Media Desk
   A quiet, editorial interface: solid surfaces, strong type, warm accents.
*/

:root {
  --ink: #090a0d;
  --ink-soft: #101116;
  --panel: rgba(15, 16, 21, 0.94);
  --panel-deep: #0b0c10;
  --paper: #ede7df;
  --paper-dim: #c8bfb5;
  --muted: #a29b93;
  --faint: #716b66;
  --line: rgba(237, 231, 223, 0.14);
  --line-strong: rgba(237, 231, 223, 0.26);
  --accent: #c86c54;
  --accent-bright: #df8969;
  --accent-soft: #e0b08c;
  --danger: #a7504c;
  --success: #a8c6a0;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff8f1;
}

.cinema-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-color: var(--ink);
  background-image: url("/static/assets/lareina-song-hero.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cinema-backdrop::before,
.cinema-backdrop::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
}

.cinema-backdrop::before {
  background: rgba(7, 8, 11, 0.58);
}

.cinema-backdrop::after {
  right: auto;
  width: 64%;
  background: rgba(7, 8, 11, 0.38);
}

.site-grain {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.hidden {
  display: none !important;
}

.eyebrow,
.panel-kicker,
.section-kicker,
.label-note,
.nav-context,
.media-meta-label,
.info-label,
.rail-note-mark {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--paper-dim);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.eyebrow span {
  color: var(--accent-bright);
}

/* Access screen */
.auth-wrapper {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: clamp(28px, 7vw, 90px) clamp(20px, 8vw, 140px);
  position: relative;
  z-index: 2;
}

.auth-shell {
  width: min(520px, 100%);
  margin: 0;
}

.auth-copy {
  margin-bottom: 26px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 22px;
  color: #fff8f1;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wordmark-mark,
.nav-logo {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.auth-copy h1,
.dashboard-intro h1 {
  max-width: 680px;
  color: #fff8f1;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.auth-copy h1 em,
.dashboard-intro h1 em {
  color: var(--accent-soft);
  font-style: italic;
}

.auth-intro {
  max-width: 460px;
  margin-top: 22px;
  color: #c6bdb3;
  font-size: 15px;
  line-height: 1.7;
}

.auth-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: #e2d8ce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.auth-traits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-traits span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.auth-panel,
.paper-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel {
  width: min(400px, 100%);
  padding: 28px;
  border-left: 2px solid var(--accent);
}

.panel-kicker,
.section-kicker {
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
}

.auth-panel h2,
.section-heading h2,
.modal-header h3 {
  color: #fff8f1;
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.auth-panel h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.05;
}

.panel-lede,
.run-lede,
.helper-text,
.tab-desc {
  color: var(--muted);
}

.panel-lede {
  margin: 8px 0 24px;
  font-size: 13px;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--faint);
}

.panel-foot span {
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.panel-foot small {
  font-size: 9px;
  letter-spacing: 0.14em;
}

/* Shared controls */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--paper-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.label-note {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 64px;
}

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(5, 6, 9, 0.7);
  color: #fff8f1;
  font-size: 13px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.text-input,
.select-input {
  min-height: 46px;
  padding: 11px 13px;
}

.textarea-input {
  display: block;
  min-height: 170px;
  padding: 13px;
  resize: vertical;
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: #68625d;
}

.text-input:hover,
.select-input:hover,
.textarea-input:hover {
  border-color: rgba(237, 231, 223, 0.4);
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--accent-bright);
  outline: none;
  background: rgba(5, 6, 9, 0.92);
}

.select-input {
  cursor: pointer;
}

.select-input option {
  background: #101116;
  color: #fff8f1;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 10px 17px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1b0d0a;
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

.btn-secondary,
.btn-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper-dim);
}

.btn-secondary:hover:not(:disabled),
.btn-quiet:hover:not(:disabled) {
  border-color: var(--paper-dim);
  background: rgba(237, 231, 223, 0.08);
  color: #fff8f1;
}

.btn-warm {
  border-color: #d6b493;
  background: #d6b493;
  color: #201713;
}

.btn-warm:hover:not(:disabled) {
  border-color: #ebc7a2;
  background: #ebc7a2;
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff8f1;
}

.btn-danger:hover:not(:disabled) {
  border-color: #c36a5f;
  background: #c36a5f;
}

.btn-lg {
  min-height: 50px;
  padding: 13px 20px;
  font-size: 11px;
}

.btn-sm {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 10px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 11px;
  border: 0;
  background: transparent;
  color: var(--accent-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-toggle-pwd:hover {
  color: #fff8f1;
}

.alert {
  margin-bottom: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 11px 13px;
  color: var(--paper-dim);
  font-size: 12px;
}

.alert-error {
  border-color: rgba(167, 80, 76, 0.7);
  background: rgba(167, 80, 76, 0.13);
  color: #f0aaa1;
}

.alert-info {
  border-color: rgba(200, 108, 84, 0.45);
  background: rgba(200, 108, 84, 0.1);
  color: #e8c3aa;
}

/* Dashboard shell */
.app-layout {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  background: rgba(7, 8, 11, 0.28);
}

.navbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 15px clamp(18px, 5vw, 70px);
  background: rgba(8, 9, 12, 0.96);
}

.nav-brand,
.nav-title-group,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-brand {
  gap: 12px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.nav-title-group {
  flex-wrap: wrap;
  gap: 12px;
}

.nav-title {
  color: #fff8f1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-context {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.nav-context b {
  padding: 0 7px;
  color: var(--accent);
}

.nav-actions {
  gap: 10px;
}

.btn-cookie-status {
  min-height: 34px;
  border-color: var(--line);
  padding: 8px 12px;
  color: var(--paper-dim);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.btn-cookie-status:hover:not(:disabled) {
  border-color: var(--accent);
}

.status-dot,
.server-pulse {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a88a58;
}

.status-dot.active,
.server-pulse {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(168, 198, 160, 0.1);
}

.main-container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(45px, 7vw, 84px) 0 60px;
}

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.dashboard-intro h1 {
  margin-top: 15px;
  font-size: clamp(50px, 7vw, 92px);
}

.dashboard-intro p {
  max-width: 520px;
  margin-top: 18px;
  color: var(--paper-dim);
  font-size: 14px;
}

.server-note {
  display: flex;
  min-width: 215px;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--accent);
  padding: 8px 0 8px 15px;
}

.server-note div {
  display: grid;
  gap: 3px;
}

.server-note small {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.server-note strong {
  color: var(--paper-dim);
  font-size: 12px;
  font-weight: 500;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 385px);
  align-items: start;
  gap: 22px;
}

.workspace-main {
  display: grid;
  gap: 22px;
}

.paper-panel {
  padding: clamp(22px, 3vw, 32px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-index {
  min-width: 35px;
  color: var(--accent-bright);
  font-family: Newsreader, Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 0.95;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.05;
}

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

.url-input-group .text-input {
  min-width: 0;
}

.helper-text {
  margin-top: 10px;
  font-size: 11px;
}

.media-info-box {
  margin-top: 23px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 14px;
}

.media-info-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-badge {
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-rule {
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.info-label {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.media-info-box h3 {
  margin-top: 13px;
  color: #fff8f1;
  font-family: Newsreader, Georgia, serif;
  font-size: 25px;
  font-weight: 500;
}

.media-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.media-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 15px;
  color: var(--muted);
}

.media-meta-label {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

.media-meta strong {
  color: var(--paper);
  font-family: Newsreader, Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.media-meta-tail {
  font-size: 11px;
}

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

.span-full {
  grid-column: 1 / -1;
}

.radio-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-pill span {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 11px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.radio-pill:hover span {
  border-color: var(--paper-dim);
  color: var(--paper);
}

.radio-pill input:checked + span {
  border-color: var(--accent);
  background: rgba(200, 108, 84, 0.15);
  color: #f1c0a3;
}

.ep-range-text {
  width: 220px;
  min-height: 39px;
  padding: 9px 11px;
}

.checkbox-row {
  display: grid;
  gap: 11px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.workspace-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.run-panel {
  padding: clamp(22px, 3vw, 28px);
}

.run-lede {
  margin-top: -10px;
  font-size: 12px;
  line-height: 1.65;
}

.action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.action-buttons .btn-primary {
  flex: 1;
}

.progress-section {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 17px;
}

.progress-info-row,
.progress-stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress-info-row {
  color: var(--muted);
  font-size: 11px;
}

.percent-text {
  color: var(--accent-bright);
  font-family: Newsreader, Georgia, serif;
  font-size: 20px;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  margin: 13px 0 11px;
  overflow: hidden;
  background: #2a2523;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 250ms ease;
}

.progress-stats-row {
  color: var(--faint);
  font-size: 10px;
}

.progress-stats-row strong {
  color: var(--paper-dim);
  font-weight: 500;
}

.terminal-container {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-deep);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.btn-clear-log {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-clear-log:hover {
  color: var(--paper);
}

.terminal-body {
  height: 190px;
  overflow-y: auto;
  padding: 13px;
  color: #c6bbb2;
  font-family: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
}

.log-line {
  word-break: break-word;
}

.log-line.log-success {
  color: var(--success);
}

.log-line.log-warn {
  color: #d7b476;
}

.log-line.log-error {
  color: #e69a91;
}

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

.rail-note {
  position: relative;
  border-left: 2px solid var(--accent);
  background: rgba(225, 211, 198, 0.94);
  color: #2a211d;
  padding: 18px 20px 20px;
}

.rail-note-mark {
  color: #8b4f40;
  font-size: 9px;
  font-weight: 700;
}

.rail-note p {
  max-width: 260px;
  margin-top: 10px;
  font-family: Newsreader, Georgia, serif;
  font-size: 19px;
  line-height: 1.18;
}

.rail-signature {
  display: block;
  margin-top: 18px;
  color: #8b7b71;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 19px 0 30px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Cookies modal */
.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(4, 5, 7, 0.86);
  padding: 20px;
}

.modal-card {
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 32px);
}

.modal-header,
.modal-title-group {
  display: flex;
  align-items: center;
}

.modal-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.modal-title-group {
  gap: 12px;
}

.modal-icon {
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.modal-header h3 {
  font-size: 25px;
}

.modal-close-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff8f1;
}

.modal-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  color: var(--faint);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tab-btn.active {
  color: var(--accent-bright);
}

.tab-btn.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-desc {
  margin-bottom: 13px;
  font-size: 12px;
}

.textarea-input {
  margin-bottom: 14px;
  font-family: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 10px;
}

.drop-zone {
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--accent);
  background: rgba(200, 108, 84, 0.08);
}

.drop-icon {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.drop-zone p {
  color: var(--muted);
  font-size: 12px;
}

code {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 960px) {
  .dashboard-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .server-note {
    min-width: 0;
  }

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

  .workspace-rail {
    position: static;
  }
}

@media (max-width: 680px) {
  .cinema-backdrop {
    background-position: 66% center;
  }

  .cinema-backdrop::before {
    background: rgba(7, 8, 11, 0.72);
  }

  .cinema-backdrop::after {
    width: 100%;
    background: rgba(7, 8, 11, 0.18);
  }

  .auth-wrapper {
    align-items: flex-start;
    padding: 34px 18px 50px;
  }

  .auth-shell {
    margin-top: 6vh;
  }

  .auth-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .auth-panel {
    width: 100%;
  }

  .navbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-actions {
    width: 100%;
  }

  .btn-cookie-status {
    flex: 1;
  }

  .nav-context {
    display: none;
  }

  .main-container,
  .site-footer {
    width: min(100% - 32px, 1220px);
  }

  .dashboard-intro h1 {
    font-size: clamp(50px, 16vw, 78px);
  }

  .url-input-group {
    grid-template-columns: 1fr 1fr;
  }

  .url-input-group .text-input {
    grid-column: 1 / -1;
  }

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

  .span-full {
    grid-column: auto;
  }

  .ep-range-text {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .paper-panel,
  .auth-panel {
    padding: 20px;
  }

  .radio-pill-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .radio-pill span {
    text-align: center;
  }

  .action-buttons {
    display: grid;
  }
}
