:root {
  color-scheme: dark;
  --ink: #0b0b0b;
  --ink-soft: #11100f;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(18, 16, 13, 0.82);
  --gold: #d4af37;
  --gold-light: #f1d778;
  --gold-dark: #8d6f18;
  --gold-glow: rgba(212, 175, 55, 0.2);
  --crimson: #8b0000;
  --crimson-light: #c12a2a;
  --text: #f5f0e5;
  --muted: #a49d90;
  --line: rgba(212, 175, 55, 0.12);
  --ease-fluid: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --cursor-x: 72%;
  --cursor-y: 12%;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) #111;
  transition: color 0.6s var(--ease-fluid), background-color 0.6s var(--ease-fluid), border-color 0.6s var(--ease-fluid), box-shadow 0.6s var(--ease-fluid), transform 0.6s var(--ease-fluid), opacity 0.6s var(--ease-fluid), filter 0.6s var(--ease-fluid);
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(212, 175, 55, 0.08), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(139, 0, 0, 0.13), transparent 34%),
    repeating-linear-gradient(118deg, transparent 0 92px, rgba(255, 255, 255, 0.012) 93px, transparent 96px),
    linear-gradient(135deg, #080808 0%, #0d0c0b 48%, #080808 100%);
  font: 500 14px/1.6 "Montserrat", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(112deg, transparent 0 27%, rgba(212, 175, 55, 0.035) 27.2%, transparent 27.7%),
    linear-gradient(67deg, transparent 0 62%, rgba(255, 255, 255, 0.025) 62.2%, transparent 62.8%),
    linear-gradient(155deg, transparent 0 75%, rgba(139, 0, 0, 0.035) 75.4%, transparent 76%);
}

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

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

::selection {
  color: #0b0b0b;
  background: var(--gold);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-dark), var(--gold));
  border: 3px solid #111;
  border-radius: 999px;
}

h1,
h2,
h3,
.brand strong,
.crest {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.035em;
}

.hidden,
.goo-filter {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 34vw;
  height: 34vw;
  pointer-events: none;
  opacity: 0.14;
  filter: blur(80px);
  animation: driftFluid 20s ease-in-out infinite alternate;
}

.ambient-gold {
  top: -14vw;
  right: -8vw;
  background: var(--gold);
  border-radius: 57% 43% 36% 64% / 52% 32% 68% 48%;
}

.ambient-crimson {
  bottom: -17vw;
  left: -12vw;
  background: var(--crimson);
  border-radius: 38% 62% 70% 30% / 64% 48% 52% 36%;
  animation-delay: -8s;
}

.center-card {
  position: relative;
  width: min(480px, calc(100% - 32px));
  margin: 14vh auto;
  padding: 56px 48px;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 58% 42% 34% 66% / 48% 36% 64% 52%;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  animation: pulseFluid 18s ease-in-out infinite alternate;
}

.center-card::before {
  position: absolute;
  inset: -35%;
  z-index: -1;
  content: "";
  background: conic-gradient(from 90deg, transparent, rgba(212, 175, 55, 0.18), transparent 26%);
  animation: slowSpin 14s linear infinite;
}

.center-card h1 {
  margin: 12px 0 5px;
  color: var(--gold-light);
  font-size: clamp(26px, 6vw, 40px);
}

.center-card p {
  margin: 0 0 28px;
  color: var(--muted);
}

.crest {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 25%, rgba(212, 175, 55, 0.2), transparent 52%);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 64% 36% 58% 42% / 42% 65% 35% 58%;
  box-shadow: 0 0 35px var(--gold-glow), inset 0 0 18px rgba(212, 175, 55, 0.08);
  font-size: 35px;
  font-weight: 700;
  animation: pulseFluid 12s ease-in-out infinite alternate-reverse;
}

.crest.small {
  width: 44px;
  height: 44px;
  margin: 0;
  font-size: 21px;
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

aside {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px 20px;
  background: rgba(8, 8, 8, 0.78);
  border-right: 1px solid rgba(212, 175, 55, 0.13);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
}

aside::after {
  position: absolute;
  top: 10%;
  right: -1px;
  width: 1px;
  height: 34%;
  content: "";
  background: linear-gradient(transparent, var(--gold), transparent);
  box-shadow: 0 0 16px var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 10px 28px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--gold-light);
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 5px;
}

.nav {
  position: relative;
  width: 100%;
  padding: 12px 15px 12px 18px;
  overflow: hidden;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 18px 8px 18px 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.nav::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 4px;
  height: 4px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(0);
  box-shadow: 0 0 12px var(--gold);
}

.nav:hover {
  color: var(--text);
  background: rgba(212, 175, 55, 0.055);
  border-color: rgba(212, 175, 55, 0.09);
  transform: translateX(4px);
}

.nav.active {
  color: var(--gold-light);
  background: linear-gradient(100deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.02));
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: inset 3px 0 var(--gold), 0 12px 30px rgba(0, 0, 0, 0.16);
}

.nav.active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.restart {
  margin-top: auto;
  color: var(--gold);
}

.logout {
  color: #ba6767;
}

.logout:hover,
.restart:hover {
  color: #fff;
}

main {
  width: min(1260px, 100%);
  padding: 34px clamp(24px, 5vw, 64px) 90px;
}

main > header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -8px -14px 30px;
  padding: 14px;
  background: linear-gradient(#0b0b0be8 65%, transparent);
  backdrop-filter: blur(10px);
}

main > header h1 {
  margin: 1px 0 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
}

main > header small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px 9px 20px 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18), transparent 80%);
  transform: translateX(-120%);
}

.button:hover:not(:disabled) {
  color: #0b0b0b;
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 10px 30px var(--gold-glow);
  transform: translateY(-3px) scale(1.015);
}

.button:hover:not(:disabled)::before {
  transform: translateX(120%);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.button:disabled {
  cursor: wait;
  filter: grayscale(0.7);
  opacity: 0.5;
}

.button.primary {
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light) 52%, var(--gold));
  border-color: rgba(255, 240, 166, 0.55);
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.18), inset 0 1px rgba(255, 255, 255, 0.35);
}

.button.danger {
  color: #ffdede;
  background: rgba(139, 0, 0, 0.36);
  border-color: rgba(193, 42, 42, 0.45);
}

.button.danger:hover:not(:disabled) {
  color: #fff;
  background: var(--crimson);
  border-color: var(--crimson-light);
  box-shadow: 0 12px 34px rgba(139, 0, 0, 0.34);
}

.publish {
  margin-top: 20px;
}

#notice:not(:empty) {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 30;
  width: min(460px, calc(100% - 48px));
  padding: 15px 19px;
  color: #fff4c7;
  background: rgba(34, 28, 10, 0.93);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 22px 8px 22px 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--gold-glow);
  backdrop-filter: blur(16px);
  animation: noticeIn 0.65s var(--ease-fluid) both;
}

#notice.error:not(:empty) {
  color: #ffe1e1;
  background: rgba(65, 3, 3, 0.95);
  border-color: rgba(193, 42, 42, 0.66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 0, 0, 0.3);
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageReveal 0.75s var(--ease-fluid) both;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(212, 175, 55, 0.09), rgba(255, 255, 255, 0.025) 48%, rgba(139, 0, 0, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.19);
  border-radius: 54px 28px 68px 24px / 34px 58px 30px 52px;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  animation: heroFluid 18s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  right: -8%;
  bottom: -65%;
  width: 42%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 66%);
  border-radius: 50%;
  animation: breatheGlow 7s ease-in-out infinite;
}

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

.hero h2 {
  max-width: 680px;
  margin: 7px 0 9px;
  color: var(--gold-light);
  font-size: clamp(27px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.15;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: #e8dca7;
  white-space: nowrap;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.status span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.08), 0 0 16px var(--gold);
  animation: statusPulse 2.2s ease-in-out infinite;
}

.card,
.grid article {
  position: relative;
  padding: 26px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 30px 14px 28px 16px / 20px 28px 18px 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px) saturate(120%);
}

.card::before,
.grid article::before {
  position: absolute;
  top: 0;
  left: 10%;
  width: 35%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}

.card:hover,
.grid article:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34), 0 0 40px rgba(212, 175, 55, 0.045);
  transform: translateY(-3px);
}

.card h3 {
  position: relative;
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 600;
}

.card h3::after {
  display: inline-block;
  width: 38px;
  height: 1px;
  margin: 0 0 5px 12px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid article {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  margin: 0 0 22px;
  border-radius: 56% 44% 37% 63% / 59% 36% 64% 41%;
  animation: pulseFluid 17s ease-in-out infinite alternate;
}

.grid article:nth-child(2) {
  animation-delay: -5s;
}

.grid article:nth-child(3) {
  animation-delay: -10s;
}

.grid article b {
  color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 0 22px var(--gold-glow);
}

.grid article span,
.hint {
  color: var(--muted);
}

.metric-refresh {
  animation: textBlurIn 0.75s var(--ease-fluid) both;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: #c5bdaf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 16px 7px 16px 7px;
  outline: 0;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.24);
}

select {
  cursor: pointer;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(10, 9, 7, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(13, 11, 7, 0.92);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), 0 12px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

input[type="checkbox"] {
  accent-color: var(--gold);
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-auto-flow: column;
  gap: 11px;
  margin-bottom: 22px;
  text-transform: none;
}

.toggle input {
  position: absolute;
  width: 1px;
  opacity: 0;
}

.toggle span {
  width: 48px;
  height: 26px;
  padding: 4px;
  background: #2a2722;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 999px;
}

.toggle span::after {
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background: #8d8679;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.toggle input:checked + span {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-color: var(--gold-light);
  box-shadow: 0 0 22px var(--gold-glow);
}

.toggle input:checked + span::after {
  background: #fff5c8;
  transform: translateX(22px);
}

.announcement-picker,
.announcement-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-picker select {
  min-width: 240px;
  flex: 1;
}

.announcement-actions {
  margin-top: 22px;
}

.goo-actions {
  width: fit-content;
  padding: 4px;
  filter: url(#goo);
}

.announcement-buttons {
  display: grid;
  gap: 11px;
  margin-top: 10px;
}

.announcement-button {
  display: grid;
  grid-template-columns: auto minmax(150px, 0.7fr) minmax(240px, 1.3fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 20px 8px 20px 8px;
}

.announcement-button:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateX(3px);
}

.announcement-button input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

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

.section-heading h3 {
  margin-bottom: 0;
}

.transcript-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.transcript-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 24px 10px 24px 10px;
}

.transcript-entry:hover {
  background: rgba(212, 175, 55, 0.045);
  border-color: rgba(212, 175, 55, 0.28);
  transform: translateX(4px);
}

.transcript-entry h4 {
  margin: 0 0 4px;
  color: var(--gold-light);
  font-family: "Cinzel", Georgia, serif;
}

.transcript-entry p {
  margin: 0;
  color: var(--text);
}

.transcript-entry small {
  color: var(--muted);
}

.transcript-actions {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.transcript-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  border-radius: 24px 10px 24px 10px;
}

@keyframes pulseFluid {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  45% { border-radius: 38% 62% 68% 32% / 48% 66% 34% 52%; }
  100% { border-radius: 52% 48% 36% 64% / 35% 58% 42% 65%; }
}

@keyframes heroFluid {
  0% { border-radius: 54px 28px 68px 24px / 34px 58px 30px 52px; }
  50% { border-radius: 30px 62px 34px 70px / 58px 32px 60px 28px; }
  100% { border-radius: 68px 30px 54px 38px / 30px 62px 36px 56px; }
}

@keyframes driftFluid {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.95); }
  50% { transform: translate3d(4vw, 2vh, 0) rotate(35deg) scale(1.08); }
  100% { transform: translate3d(-2vw, 6vh, 0) rotate(70deg) scale(1); }
}

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

@keyframes breatheGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gestion-shell {
  overflow: visible;
}

.gestion-tabs,
.gestion-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.gestion-tabs {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.gestion-tabs .active {
  color: #0b0b0b;
  background: var(--gold);
  border-color: var(--gold-light);
}

.gestion-panel {
  display: none;
}

.gestion-panel.active {
  display: block;
  animation: pageReveal 0.55s var(--ease-fluid) both;
}

.compact-form {
  padding: 20px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 20px 9px 20px 9px;
}

.gestion-actions {
  align-self: end;
}

.gestion-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.gestion-entry {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: #d7d0c5;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 14px 6px 14px 6px;
}

.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
}

.metric-grid article {
  min-height: 100px;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pageReveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(22px) scale(0.99); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes noticeIn {
  from { opacity: 0; filter: blur(8px); transform: translate3d(20px, -15px, 0) scale(0.94); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes textBlurIn {
  0% { opacity: 0; filter: blur(9px); transform: translateY(12px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  main {
    padding-inline: 24px;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .grid article {
    min-height: 105px;
    border-radius: 28px 14px 28px 14px;
    animation: none;
  }
}

@media (max-width: 720px) {
  .layout {
    display: block;
  }

  aside {
    position: relative;
    height: auto;
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  aside::after {
    display: none;
  }

  .brand {
    padding-bottom: 16px;
  }

  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restart {
    margin-top: 10px;
  }

  .logout {
    margin-top: 4px;
  }

  main {
    padding: 20px 14px 70px;
  }

  main > header {
    margin: 0 -4px 22px;
    padding: 10px 4px;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .hero {
    display: block;
    border-radius: 34px 14px 34px 14px;
    animation: none;
  }

  .status {
    display: inline-block;
    margin-top: 20px;
  }

  .card {
    padding: 21px 17px;
  }

  .center-card {
    padding: 44px 24px;
    border-radius: 34px 14px 34px 14px;
    animation: none;
  }

  .announcement-button {
    grid-template-columns: auto 1fr;
  }

  .announcement-button input[type="url"] {
    grid-column: 1 / -1;
  }

  .transcript-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .transcript-actions {
    flex-wrap: wrap;
  }

  .goo-actions {
    width: 100%;
    filter: none;
  }
}

@media (max-width: 480px) {
  nav {
    grid-template-columns: 1fr;
  }

  main > header {
    align-items: flex-start;
  }

  main > header .button {
    padding-inline: 14px;
  }

  .announcement-picker,
  .announcement-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .announcement-picker select {
    min-width: 0;
  }
}

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