:root {
  --bg-0: #070707;
  --bg-1: #0f0f10;
  --bg-2: #151517;
  --bg-3: #1d1d20;
  --text-0: #f3f0e8;
  --text-1: #c9c2b4;
  --text-2: #958f84;
  --line-0: rgba(255, 255, 255, 0.08);
  --line-1: rgba(255, 255, 255, 0.16);
  --danger: #f16b6b;
  --success: #89d79b;
  --warning: #f3c06d;
  --accent: #ffb347;
  --accent-soft: rgba(255, 179, 71, 0.2);
  --accent-strong: #ff8f1f;
  --grain-opacity: 0.35;
  --global-contrast: 1;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 3px rgba(255, 179, 71, 0.35);
}

body[data-accent="teal"] {
  --accent: #6ecfcb;
  --accent-soft: rgba(110, 207, 203, 0.22);
  --accent-strong: #3da39e;
}

body[data-accent="crimson"] {
  --accent: #e37f7f;
  --accent-soft: rgba(227, 127, 127, 0.22);
  --accent-strong: #d15d5d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-0);
  background:
    radial-gradient(circle at 14% -8%, rgba(255, 179, 71, 0.18), transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(90, 120, 175, 0.16), transparent 42%),
    linear-gradient(180deg, #050506, #09090a 28%, #0d0d10 70%, #08080b);
  filter: contrast(var(--global-contrast));
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  margin: 0;
  color: var(--text-1);
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.06), transparent 24%),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.06), transparent 22%),
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.08), transparent 20%);
  animation: grainShift 600ms steps(8) infinite;
}

.sprocket-left,
.sprocket-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.14) 0 14px,
      transparent 14px 38px
    );
}

.sprocket-left {
  left: 0;
}

.sprocket-right {
  right: 0;
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(0.5%, 0.5%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.auth-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 179, 71, 0.22), transparent 42%),
    rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(8px);
}

.auth-card {
  width: min(520px, 100%);
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    var(--bg-1);
  box-shadow: var(--shadow-deep);
  display: grid;
  gap: 0.85rem;
  animation: dissolveIn 400ms ease-out;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-subtitle {
  color: var(--text-1);
  line-height: 1.45;
}

.countdown-reel {
  position: relative;
  margin: 0.2rem auto 0.3rem;
  width: 176px;
  height: 176px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--line-1);
  border-top-color: var(--accent);
  animation: reelSpin 4s linear infinite;
}

.countdown-center {
  width: 102px;
  height: 102px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.07em;
  color: #18120a;
  background: radial-gradient(circle at 30% 20%, #ffd9a3, var(--accent));
  box-shadow: 0 0 34px var(--accent-soft);
}

.countdown-ticks {
  position: absolute;
  inset: -4px;
  pointer-events: none;
}

.countdown-ticks span {
  position: absolute;
  font-size: 0.72rem;
  color: var(--text-2);
  opacity: 0.7;
}

.countdown-ticks span:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.countdown-ticks span:nth-child(2) {
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}

.countdown-ticks span:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.countdown-ticks span:nth-child(4) {
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
}

.google-button-host {
  min-height: 40px;
}

.auth-status {
  font-size: 0.92rem;
  color: var(--text-2);
}

@keyframes reelSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dissolveIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 18px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line-0);
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 10, 0.8);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-chip {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 25%, #ffdba9, var(--accent));
  color: #21170a;
}

.brand-wrap h2 {
  font-size: 1.05rem;
}

.brand-wrap p {
  font-size: 0.74rem;
  color: var(--text-2);
}

.main-nav {
  justify-self: center;
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-btn:hover {
  color: var(--text-0);
  border-color: var(--line-0);
}

.nav-btn.is-active {
  color: #201408;
  background: radial-gradient(circle at 30% 10%, #ffd7a1, var(--accent));
  border-color: transparent;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.user-identity {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
  font-size: 0.9rem;
}

.app-main {
  position: relative;
  z-index: 4;
  margin: 0 18px;
  padding: 1rem;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: dissolveIn 260ms ease-out;
}

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}

.stage-panel,
.control-rack,
.timeline-section,
.preset-grid article,
.settings-section,
.version-history,
.list-card,
.compare-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-0);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-soft);
}

.stage-panel {
  padding: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.section-head.compact {
  margin-bottom: 0.6rem;
}

.section-head h3,
.section-head h4 {
  font-size: 0.98rem;
}

.section-head p {
  font-size: 0.9rem;
}

.inline-actions {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.48rem 0.86rem;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #1d130a;
  background: radial-gradient(circle at 20% 10%, #ffd8a8, var(--accent));
}

.btn-secondary {
  border-color: var(--line-1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-0);
}

.btn-ghost {
  border-color: var(--line-0);
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.01);
}

.upload-intent-grid {
  display: grid;
  grid-template-columns: minmax(260px, 42%) 1fr;
  gap: 0.9rem;
}

.drop-zone {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  border: 1px dashed var(--line-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 179, 71, 0.1), rgba(255, 179, 71, 0.03)),
    var(--bg-2);
  overflow: hidden;
}

.drop-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.08), transparent 85%);
  transform: translateX(-110%);
  transition: transform 260ms ease;
}

.drop-zone:hover::after {
  transform: translateX(110%);
}

.drop-zone.is-dragover {
  box-shadow: var(--focus-ring);
}

#sourcePreview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.drop-zone.has-image #sourcePreview {
  display: block;
}

.drop-zone.has-image .drop-zone-text {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  border-radius: 10px;
  padding: 0.5rem 0.58rem;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.drop-zone-text {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.intent-panel label,
.field label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-1);
  margin-bottom: 0.34rem;
  letter-spacing: 0.04em;
}

textarea,
select,
input[type="number"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-1);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-0);
  padding: 0.52rem 0.58rem;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-strong);
}

.intent-chips {
  margin-top: 0.54rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  font-size: 0.8rem;
  padding: 0.26rem 0.62rem;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.result-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.result-media {
  height: 150px;
  background: linear-gradient(170deg, #09090c, #1a1a1f);
  display: grid;
  place-items: center;
}

.result-media img,
.result-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-body {
  padding: 0.72rem;
  display: grid;
  gap: 0.48rem;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.badge-row {
  display: flex;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.03);
}

.badge.success {
  color: var(--success);
  border-color: rgba(137, 215, 155, 0.45);
}

.badge.failed {
  color: var(--danger);
  border-color: rgba(241, 107, 107, 0.45);
}

.badge.not_configured,
.badge.not_executed {
  color: var(--warning);
  border-color: rgba(243, 192, 109, 0.45);
}

.action-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-small {
  border-radius: 999px;
  border: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-0);
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-small:hover {
  border-color: var(--accent);
}

.btn-small.is-favorited {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #2a1605;
}

.context-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line-1);
  background: rgba(0, 0, 0, 0.58);
  color: var(--text-0);
  cursor: pointer;
}

.result-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-2);
  font-size: 0.8rem;
}

.control-rack {
  padding: 0.92rem;
  display: grid;
  gap: 0.62rem;
  align-content: start;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.advanced-panel {
  border-top: 1px dashed var(--line-1);
  padding-top: 0.55rem;
  display: grid;
  gap: 0.56rem;
}

.timeline-section {
  margin-top: 0.9rem;
  padding: 0.88rem;
}

.timeline-list,
.list-grid {
  display: grid;
  gap: 0.58rem;
}

.timeline-item,
.list-card {
  border-radius: 12px;
  padding: 0.68rem;
  border: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.03);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.run-summary {
  color: var(--text-2);
  font-size: 0.84rem;
}

.compare-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background:
    linear-gradient(165deg, rgba(255, 179, 71, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.25);
}

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

.compare-card {
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 0.62rem;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.42rem;
}

.library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

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

.preset-grid article {
  padding: 0.8rem;
  display: grid;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}

.preset-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08), transparent 85%);
  transform: translateX(-110%);
}

.preset-grid article:hover::after {
  animation: stripSweep 500ms ease;
}

@keyframes stripSweep {
  to {
    transform: translateX(110%);
  }
}

.sync-pill {
  border-radius: 999px;
  border: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.6rem;
  display: inline-flex;
  gap: 0.5rem;
  color: var(--text-1);
  font-size: 0.8rem;
}

.settings-accordion {
  display: grid;
  gap: 0.62rem;
}

.settings-section {
  padding: 0.68rem;
}

.settings-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line-1);
  border-radius: 11px;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--text-0);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.settings-toggle::after {
  content: "▸";
  transition: transform 180ms ease;
}

.settings-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.settings-panel {
  display: none;
  padding: 0.65rem 0.2rem 0.2rem;
  gap: 0.55rem;
}

.settings-panel.is-open {
  display: grid;
}

.settings-note {
  font-size: 0.84rem;
  color: var(--text-2);
}

.api-key-rows {
  display: grid;
  gap: 0.55rem;
}

.api-key-row {
  border: 1px solid var(--line-1);
  border-radius: 11px;
  padding: 0.55rem;
  display: grid;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.24);
}

.api-key-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.api-key-row strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.key-state {
  font-size: 0.75rem;
  color: var(--text-2);
}

.key-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-1);
  font-size: 0.92rem;
}

.toggle input {
  accent-color: var(--accent-strong);
}

.theme-preview {
  border-radius: 12px;
  border: 1px solid var(--line-1);
  padding: 0.68rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 179, 71, 0.22), transparent 42%),
    rgba(0, 0, 0, 0.38);
}

.file-import {
  position: relative;
  overflow: hidden;
}

.version-history {
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.history-row {
  border: 1px solid var(--line-1);
  border-radius: 11px;
  padding: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.history-row-meta {
  display: grid;
  gap: 0.1rem;
}

.history-row-meta p {
  font-size: 0.8rem;
  color: var(--text-2);
}

.context-menu {
  position: fixed;
  z-index: 40;
  min-width: 180px;
  border: 1px solid var(--line-1);
  border-radius: 12px;
  background: rgba(5, 5, 8, 0.95);
  box-shadow: var(--shadow-deep);
  padding: 0.34rem;
  display: grid;
  gap: 0.2rem;
  animation: menuReveal 180ms ease-out;
}

.context-menu button {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-0);
  padding: 0.42rem 0.5rem;
  cursor: pointer;
}

.context-menu button:hover {
  background: var(--accent-soft);
  color: #241307;
}

@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast {
  position: fixed;
  right: 34px;
  bottom: 26px;
  z-index: 45;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(5, 5, 8, 0.92);
  color: var(--text-0);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.alert {
  border-radius: 10px;
  border: 1px solid rgba(241, 107, 107, 0.45);
  background: rgba(241, 107, 107, 0.12);
  color: #f9c4c4;
  padding: 0.46rem 0.55rem;
  font-size: 0.82rem;
}

.skeleton {
  height: 254px;
  border-radius: 14px;
  border: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.15), transparent 75%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

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

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.drop-zone:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 1120px) {
  .create-grid {
    grid-template-columns: 1fr;
  }

  .control-rack {
    order: -1;
  }

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

@media (max-width: 860px) {
  .upload-intent-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-self: start;
  }

  .app-header {
    grid-template-columns: 1fr;
  }

  .user-pill {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .app-main,
  .app-header {
    margin: 0;
  }

  .app-header {
    position: static;
    padding: 0.8rem;
  }

  .app-main {
    padding: 0.74rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    width: 100%;
  }

  .nav-btn {
    flex: 1 1 0;
    text-align: center;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
