:root {
  color-scheme: light;
  --ink: #f7f7f7;
  --muted: #c7c7c7;
  --line: #323232;
  --paper: #000000;
  --surface: #111111;
  --green: #df64aa;
  --green-2: #f4d7e8;
  --blue: #bf2f83;
  --amber: #b06922;
  --rose: #a43f54;
  --shadow: 0 18px 50px rgba(25, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  touch-action: pan-x pan-y manipulation;
  background: #000;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  touch-action: pan-x pan-y manipulation;
  overscroll-behavior-y: auto;
}

body.station-background-active {
  position: relative;
  isolation: isolate;
}

body.station-background-active::before,
body.station-background-active::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  pointer-events: none;
}

body.station-background-active::before {
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.58)),
    url("./assets/backgrounds/rotunde-background.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.08) brightness(1.18);
  opacity: 0.88;
  transform: translateZ(0);
}

body.station-background-active::after {
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), transparent 46%);
}

body.station-background-active #app {
  position: relative;
  z-index: 1;
}

html:has(.welcome-screen),
body:has(.welcome-screen) {
  height: 100%;
  overflow: hidden;
}

html:has(.welcome-screen):has(.asw-selected),
body:has(.welcome-screen):has(.asw-selected) {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

body:has(.welcome-screen):has(.asw-selected) .welcome-screen {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: visible;
}

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

button,
a,
[role="button"] {
  touch-action: manipulation;
}

button {
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 2px solid #111;
  border-radius: 8px;
  color: #111;
  background: #df64aa;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #f4d7e8;
  outline-offset: 3px;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(190px, 220px) minmax(0, 1500px);
  justify-content: center;
}

.app-shell.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.welcome-screen {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  overflow: hidden;
}

.app-lock-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.app-lock-form {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  text-align: center;
}

.app-lock-form h1 {
  margin: 0;
  color: #df64aa;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1;
}

.app-lock-form input {
  min-height: 54px;
  border: 1px solid #df64aa;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f7f7f7;
  background: #050505;
  text-align: center;
  font-weight: 800;
}

.welcome-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: block;
  object-fit: cover;
  filter: grayscale(1) brightness(0.72);
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  justify-self: center;
  display: grid;
  gap: 18px;
  text-align: center;
}

.welcome-content h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0;
}

.welcome-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.intro-screen {
  background: #f7f7f7;
}

.intro-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.intro-photo {
  object-fit: cover;
  filter: grayscale(0) brightness(1.12) contrast(0.86);
  opacity: 0.36;
}

.intro-screen .welcome-content {
  width: min(980px, calc(100vw - 64px));
  padding: clamp(24px, 3vw, 50px) clamp(24px, 5vw, 64px);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
}

.intro-screen .welcome-content h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.intro-screen .welcome-content h1,
.intro-screen .welcome-content p {
  color: #fff;
}

.rotundenrum-title {
  display: block;
  margin-top: 0.16em;
  color: #df64aa;
}

.welcome-content .intro-hint {
  width: min(520px, 100%);
  justify-self: center;
  color: #f7f7f7;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.welcome-content .install-hint {
  justify-self: center;
  max-width: 520px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #f7f7f7;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.start-button {
  justify-self: center;
  min-height: 54px;
  border-radius: 8px;
  padding: 14px 28px;
  color: #111;
  background: #df64aa;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-secondary-links {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quiet-start-link {
  margin-top: 4px;
  padding: 6px 10px;
  color: rgba(247, 247, 247, 0.72);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(223, 100, 170, 0.45);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.quiet-start-link:hover,
.quiet-start-link:focus {
  color: #111;
  background: #df64aa;
}

.main-start-button {
  flex-basis: 100%;
  width: min(360px, 100%);
  min-height: 66px;
  font-size: 1.35rem;
}

.secondary-start-button,
.link-start-button {
  color: #f7f7f7;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid #df64aa;
}

.board-start-button {
  flex-basis: 100%;
  width: min(360px, 100%);
  min-height: 60px;
  border-width: 2px;
  color: #111;
  background: #f4d7e8;
  border-color: #df64aa;
  font-size: 1.22rem;
  box-shadow: 0 12px 28px rgba(223, 100, 170, 0.24);
}

.start-button:hover,
.start-button:focus {
  background: #bf2f83;
}

.secondary-start-button:hover,
.secondary-start-button:focus,
.link-start-button:hover,
.link-start-button:focus {
  color: #111;
  background: #f4d7e8;
}

.board-start-button:hover,
.board-start-button:focus {
  color: #111;
  background: #df64aa;
}

.sidebar {
  background: #000;
  color: #f7fbf8;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
}

.brand {
  display: grid;
  gap: 8px;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand p {
  margin: 0;
  color: #cbd8d3;
  line-height: 1.45;
}

.language-toggle {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #df64aa;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.welcome-screen > .language-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.floating-language {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 21;
}

.language-toggle button {
  min-width: 48px;
  min-height: 36px;
  color: #f7f7f7;
  background: transparent;
  font-weight: 900;
}

.language-toggle button.active {
  color: #111;
  background: #df64aa;
}

.history-nav {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: calc(34px + env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  gap: 10px;
}

.history-nav button {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background-color: #df64aa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 116% 116%;
  font-size: 0 !important;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.history-nav button::before {
  content: none;
}

.history-nav button::after {
  content: none;
}

.history-nav [data-history-back],
.lightbox-arrow-left {
  background-image: url("./assets/icons/arrow-back.png");
}

.history-nav [data-history-forward],
.lightbox-arrow-right {
  background-image: url("./assets/icons/arrow-forward.png");
}

.history-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.floor-nav {
  display: grid;
  gap: 8px;
}

.floor-nav summary {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #df64aa;
  border-radius: 8px;
  color: #111;
  background: #df64aa;
  font-weight: 900;
  cursor: pointer;
}

.floor-list {
  display: grid;
  gap: 0;
  border: 1px solid #df64aa;
  border-radius: 8px;
  overflow: hidden;
}

.floor-table-head {
  min-height: 38px;
  padding: 9px 12px;
  display: block;
  color: #111;
  background: #df64aa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-home-button {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 120;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.floating-home-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.floating-home-button:hover,
.floating-home-button:focus {
  transform: scale(1.04);
}

.feed-modal-open .floating-home-button,
.feed-modal-open .history-nav,
.feed-modal-open .floating-language,
.studentspace-modal-open .floating-language,
.studentspace-modal-open .floating-home-button,
.studentspace-modal-open .history-nav {
  display: none;
}

body.modal-overlay-open .asw-container .asw-widget .asw-menu-btn,
body.modal-overlay-open .asw-container .asw-menu-btn,
body.modal-overlay-open .asw-widget .asw-menu-btn,
body.modal-overlay-open button.asw-menu-btn {
  display: none !important;
}

/* Sienna button appearance only. Remove this block to restore its default look. */
.asw-container .asw-widget .asw-menu-btn,
.asw-container .asw-menu-btn,
.asw-widget .asw-menu-btn,
button.asw-menu-btn {
  position: fixed !important;
  left: max(22px, env(safe-area-inset-left)) !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  z-index: 30 !important;
  width: 64px !important;
  height: 64px !important;
  border: 2px solid #f4d7e8 !important;
  border-radius: 50% !important;
  background: #df64aa !important;
  outline: 3px solid #bf2f83 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3) !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

.asw-container .asw-widget .asw-menu-btn:hover,
.asw-container .asw-menu-btn:hover,
.asw-widget .asw-menu-btn:hover,
button.asw-menu-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.34) !important;
}

.asw-container .asw-widget .asw-menu-btn:focus-visible,
.asw-container .asw-menu-btn:focus-visible,
.asw-widget .asw-menu-btn:focus-visible,
button.asw-menu-btn:focus-visible {
  outline: 3px solid #f4d7e8 !important;
  outline-offset: 4px !important;
}

.floor-button,
.admin-button,
.back-button,
.primary-button,
.ghost-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.floor-button {
  display: block;
  justify-content: initial;
  width: 100%;
  min-height: 50px;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 0;
  color: #111;
  background: #f4d7e8;
  text-align: left;
}

.floor-button.active {
  color: #fff;
  background: #bf2f83;
}

.admin-button {
  margin-top: auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.panel-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.panel-title-row h3 {
  margin: 0;
}

.pull-refresh-indicator {
  --pull-distance: 0px;
  --pull-progress: 0;
  --pull-scale: 0.78;
  --pull-rotation: 0deg;
  position: fixed;
  z-index: 110;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 215, 232, 0.72);
  border-radius: 50%;
  background: rgba(255, 250, 253, 0.9);
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-64px + var(--pull-distance))) scale(var(--pull-scale));
  transition: transform 180ms ease, opacity 160ms ease;
}

.pull-refresh-indicator.is-pulling,
.pull-refresh-indicator.is-ready,
.pull-refresh-indicator.is-refreshing,
.pull-refresh-indicator.is-complete {
  opacity: 1;
}

.pull-refresh-indicator.is-pulling {
  transition: none;
}

.pull-refresh-indicator.is-refreshing,
.pull-refresh-indicator.is-complete {
  transform: translate(-50%, 10px) scale(1);
}

.pull-refresh-spinner {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
  transform: rotate(var(--pull-rotation));
}

.pull-refresh-spinner i {
  position: absolute;
  top: 0;
  left: 9.5px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: #bf2f83;
  transform-origin: 1.5px 11px;
}

.pull-refresh-spinner i:nth-child(1) { transform: rotate(0deg); opacity: 1; }
.pull-refresh-spinner i:nth-child(2) { transform: rotate(30deg); opacity: 0.92; }
.pull-refresh-spinner i:nth-child(3) { transform: rotate(60deg); opacity: 0.84; }
.pull-refresh-spinner i:nth-child(4) { transform: rotate(90deg); opacity: 0.76; }
.pull-refresh-spinner i:nth-child(5) { transform: rotate(120deg); opacity: 0.68; }
.pull-refresh-spinner i:nth-child(6) { transform: rotate(150deg); opacity: 0.6; }
.pull-refresh-spinner i:nth-child(7) { transform: rotate(180deg); opacity: 0.52; }
.pull-refresh-spinner i:nth-child(8) { transform: rotate(210deg); opacity: 0.44; }
.pull-refresh-spinner i:nth-child(9) { transform: rotate(240deg); opacity: 0.36; }
.pull-refresh-spinner i:nth-child(10) { transform: rotate(270deg); opacity: 0.28; }
.pull-refresh-spinner i:nth-child(11) { transform: rotate(300deg); opacity: 0.2; }
.pull-refresh-spinner i:nth-child(12) { transform: rotate(330deg); opacity: 0.14; }

.pull-refresh-indicator.is-ready {
  animation: pull-refresh-bounce 420ms ease-in-out infinite alternate;
}

.pull-refresh-indicator.is-refreshing .pull-refresh-spinner {
  animation: pull-refresh-spin 880ms steps(12) infinite;
}

.pull-refresh-indicator.is-complete .pull-refresh-spinner {
  animation: pull-refresh-finish 320ms ease both;
}

@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}

@keyframes pull-refresh-bounce {
  to { transform: translate(-50%, calc(-60px + var(--pull-distance))) scale(1.07); }
}

@keyframes pull-refresh-finish {
  50% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pull-refresh-indicator,
  .pull-refresh-indicator.is-ready,
  .pull-refresh-indicator.is-refreshing .pull-refresh-spinner,
  .pull-refresh-indicator.is-complete .pull-refresh-spinner {
    animation: none;
    transition: none;
  }
}

.main {
  min-width: 0;
  padding: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 140px;
}

.station-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
}

.station-main-studentspace {
  display: grid;
  justify-items: center;
}

.map-main {
  padding-top: 92px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h2,
.station-view h2,
.admin-view h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
  letter-spacing: 0;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.section-title-action {
  flex: 0 0 auto;
  min-width: fit-content;
}

.topbar p,
.station-intro,
.empty-state {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}

.station-header {
  display: grid;
  gap: 8px;
}

.station-header .eyebrow,
.station-header .station-intro {
  margin: 0;
}

.station-header h2 {
  max-width: 900px;
  line-height: 1.08;
}

.station-header .station-intro {
  max-width: 820px;
  color: #f1f1f1;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.audio-guide-unit {
  width: 100%;
  max-width: 820px;
  margin-top: 8px;
}

.audio-guide-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255, 138, 203, 0.28);
  border-radius: 999px;
  background: rgba(244, 215, 232, 0.16);
  color: #f8e7f0;
  box-shadow: none;
}

.audio-guide-restart {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 155, 209, 0.32);
  border-radius: 50%;
  color: rgba(255, 213, 235, 0.92);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(17, 17, 17, 0.16);
}

.audio-guide-restart:focus-visible {
  outline: 2px solid #9c236a;
  outline-offset: 2px;
}

.audio-guide-timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  margin: 3px 10px 0;
  color: rgba(246, 185, 217, 0.64);
  font-size: 0.62rem;
  font-weight: 800;
}

.audio-guide-timeline input[type="range"] {
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.audio-guide-timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 155, 209, 0.78) 0 var(--mini-audio-progress, 0%),
      rgba(244, 215, 232, 0.28) var(--mini-audio-progress, 0%) 100%
    );
}

.audio-guide-timeline input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border: 1.5px solid #fff1f8;
  border-radius: 50%;
  background: rgba(223, 100, 170, 0.9);
  box-shadow: none;
}

.audio-guide-timeline input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 215, 232, 0.28);
}

.audio-guide-timeline input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 155, 209, 0.78);
}

.audio-guide-timeline input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 1.5px solid #fff1f8;
  border-radius: 50%;
  background: rgba(223, 100, 170, 0.9);
  box-shadow: none;
}

.audio-guide-timeline input[type="range"]:focus-visible {
  outline: 2px solid #ff9bd1;
  outline-offset: 3px;
}

.audio-guide-main {
  appearance: none;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.audio-guide-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.audio-guide-text-only .audio-guide-main {
  grid-template-columns: minmax(0, 1fr);
  padding: 6px 8px;
}

.audio-guide-main:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.audio-guide-main.is-playing .audio-guide-play::after {
  width: 8px;
  height: 11px;
  border: 0;
  background: linear-gradient(90deg, #fff7fb 0 35%, transparent 35% 65%, #fff7fb 65%);
  transform: translate(-50%, -50%);
}

.audio-guide-play {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(223, 100, 170, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.audio-guide-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid #fff7fb;
  transform: translate(-42%, -50%);
}

.audio-guide-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
}

.audio-guide-copy strong {
  font-size: 0.78rem;
}

.audio-guide-copy small {
  overflow: hidden;
  color: rgba(247, 219, 234, 0.72);
  font-size: 0.62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-guide-transcript {
  --read-text-scale: 1;
  margin: 3px 10px 0;
  color: #f7dbea;
  font-size: 0.95rem;
}

.audio-guide-transcript summary {
  width: fit-content;
  padding: 5px 2px;
  color: rgba(255, 155, 209, 0.78);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.audio-guide-transcript p {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(223, 100, 170, 0.72);
  color: #ededed;
  font-size: calc(1rem * var(--read-text-scale));
  line-height: 1.58;
}

.audio-guide-transcript-content {
  --read-text-scale: 1;
}

.audio-guide-transcript .read-text-size-controls.is-compact {
  position: static;
  margin: 4px 0 6px;
  border: 1px solid rgba(214, 92, 168, 0.36);
  border-radius: 12px;
  padding: 6px 8px;
  color: #f7dbea;
  background: rgba(79, 36, 68, 0.68);
  backdrop-filter: blur(4px);
}

.audio-guide-transcript .read-text-size-controls.is-compact > span {
  font-size: 0.78rem;
}

.audio-guide-transcript .read-text-size-controls.is-compact button {
  min-width: 34px;
  min-height: 32px;
  border-color: rgba(247, 219, 234, 0.86);
  border-radius: 999px;
  padding: 3px 7px;
  color: #f7dbea;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.audio-guide-transcript .read-text-size-controls.is-compact button[aria-pressed="true"] {
  color: #1a1118;
  background: #f7dbea;
}

.audio-guide-outro {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 4px;
}

.audio-guide-task {
  grid-column: 1 / -1;
  margin-top: 0;
}

.station-task-accordion {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 2px solid rgba(255, 214, 93, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(245, 86, 179, 0.95), rgba(255, 151, 149, 0.95) 52%, rgba(255, 219, 92, 0.96)),
    rgba(17, 17, 17, 0.92);
  box-shadow: 0 14px 36px rgba(223, 100, 170, 0.25), 0 12px 34px rgba(0, 0, 0, 0.22);
}

.station-task-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: #1b0b18;
  cursor: pointer;
  list-style: none;
}

.station-task-accordion > summary::-webkit-details-marker {
  display: none;
}

.station-task-accordion > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.station-task-accordion > summary strong {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.station-task-accordion > summary small {
  color: rgba(27, 11, 24, 0.76);
  font-size: 0.8rem;
  font-weight: 700;
}

.station-task-accordion-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 247, 237, 0.94);
  color: #d53b9b;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 5px 14px rgba(27, 11, 24, 0.2);
  transition: transform 180ms ease;
}

.station-task-accordion[open] .station-task-accordion-icon {
  transform: rotate(45deg);
}

.station-task-accordion-content {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
  background: rgba(17, 17, 17, 0.9);
}

.station-task-accordion-content > .content-panel,
.station-task-accordion-content > .education-mindmap-panel {
  margin: 0;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
  gap: 12px;
  align-items: start;
}

.map-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-translation-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  border-radius: 8px;
  padding: 10px 16px;
  color: #111;
  background: #df64aa;
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.floor-arrows {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(110px, auto);
  gap: 10px;
  justify-content: flex-end;
}

.floor-arrow-down {
  grid-column: 1;
}

.floor-arrow-up {
  grid-column: 2;
}

.floor-arrow {
  min-width: 110px;
  min-height: 46px;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111;
  background: #df64aa;
  border: 2px solid #111;
  font-weight: 900;
}

.floor-arrow span {
  font-size: 1.3rem;
  line-height: 1;
}

.floor-arrow:hover,
.floor-arrow:focus {
  background: #f4d7e8;
}

.floor-map {
  width: 100%;
  aspect-ratio: 1.35;
  display: block;
  background: #edf3ef;
}

.real-floor-map {
  aspect-ratio: 2070 / 1420;
  background: #fff;
}

.map-room {
  fill: #fffdf8;
  stroke: #aebbb6;
  stroke-width: 2;
}

.map-hall {
  fill: #dfece7;
  stroke: #aebbb6;
  stroke-width: 2;
}

.map-label {
  fill: #5d6c67;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.station-pin {
  transform-box: fill-box;
  transform-origin: center;
  cursor: pointer;
}

.station-pin circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 4px 10px rgba(20, 50, 42, 0.28));
}

.station-pin text {
  fill: #fff;
  font-size: 17px;
  font-weight: 800;
  pointer-events: none;
}

.station-pin:hover circle,
.station-pin:focus circle {
  fill: var(--amber);
}

.station-pin.real-map-pin circle {
  fill: #fff;
  fill-opacity: 0.001;
  stroke: transparent;
  filter: none;
  pointer-events: all;
}

.station-pin.real-map-pin text {
  display: none;
}

.station-pin.real-map-pin:hover circle,
.station-pin.real-map-pin:focus circle {
  fill: #fff;
  fill-opacity: 0.001;
  stroke: transparent;
}

.station-list {
  display: grid;
  gap: 12px;
}

.station-card,
.comment-card,
.media-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.station-card {
  width: 100%;
  padding: 16px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.station-card strong {
  color: #df64aa;
  font-size: 1rem;
}

.station-card span {
  color: var(--muted);
  line-height: 1.4;
}

.station-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(35, 107, 89, 0.13);
}

.station-view,
.admin-view {
  display: grid;
  gap: 22px;
  padding-top: 42px;
}

.app-shell.view-station,
.app-shell.view-board,
.app-shell.view-voices {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.station-view {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1180px;
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 1fr);
  justify-self: center;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
}

.station-view > * {
  min-width: 0;
  max-width: 100%;
}

.station-navigation-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-right: 120px;
}

.station-navigation-actions > .back-button,
.next-station-button {
  width: 220px;
  max-width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  flex: 0 0 220px;
  gap: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  line-height: 1;
}

.next-station-button {
  width: min(310px, 100%);
  flex-basis: 310px;
  justify-content: center;
  margin-left: auto;
  white-space: nowrap;
}

.next-station-button span {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.station-next-action {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 30px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(223, 100, 170, 0.42);
}

.station-view::before {
  content: none;
}

.station-view::after {
  content: none;
}

.app-shell.view-board::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
    url("./assets/backgrounds/schwarzes-brett-background.jpg") center / cover no-repeat;
  pointer-events: none;
}

.app-shell.view-board::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: -1;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.app-shell.view-voices::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: -2;
  background: #000;
  pointer-events: none;
}

.back-button,
.ghost-button {
  color: var(--green);
  background: var(--green-2);
}

.primary-button {
  color: #fff;
  background: var(--green);
}

.secondary-button {
  color: #111;
  background: #f4d7e8;
}

.danger-button {
  color: #fff;
  background: var(--rose);
}

.station-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.station-route-note {
  grid-column: 1 / -1;
  width: min(100%, 820px);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(187, 126, 255, 0.58);
  border-radius: 16px;
  padding: 14px 16px;
  color: #f3e9ff;
  background: linear-gradient(135deg, rgba(115, 55, 162, 0.42), rgba(222, 90, 173, 0.24));
  box-shadow: 0 10px 24px rgba(13, 10, 16, 0.18);
}

.station-route-note span {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #221327;
  background: #f3d6ff;
  font-size: 1.35rem;
  font-weight: 950;
}

.station-route-note p {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  font-weight: 850;
  line-height: 1.35;
}

.station-view-station-5-new,
.station-view-studentspace {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  justify-self: center;
}

.station-view-station-5-new .station-grid,
.station-view-studentspace .station-grid {
  justify-items: stretch;
}

.studentspace-station-body {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 22px;
  justify-self: center;
  margin-inline: auto;
}

.station-view-station-5-new .studentspace-game,
.station-view-studentspace .studentspace-game {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.station-info-panel,
.station-audio-panel {
  grid-column: 1 / -1;
}

.station-audio-panel {
  order: -10;
}

.studentspace-game {
  grid-column: 1 / -1;
  border: 2px solid #df64aa;
  background: rgba(17, 17, 17, 0.94);
}

.studentspace-game-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.studentspace-game-header h3 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.studentspace-kicker {
  margin: 0 0 5px;
  color: #ff8acb !important;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studentspace-count {
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid #df64aa;
  border-radius: 8px;
  color: #111;
  background: #f4d7e8;
  text-align: center;
  font-weight: 900;
}

.studentspace-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.studentspace-room {
  position: relative;
  min-height: 340px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid #111;
  border-radius: 8px;
  background:
    linear-gradient(var(--studentspace-wall) 0 72%, var(--studentspace-floor) 72% 100%);
  box-shadow: inset 0 0 0 8px #f4d7e8;
  touch-action: pan-y;
}

.studentspace-window {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 34%;
  height: 30%;
  border: 5px solid #111;
  background:
    linear-gradient(90deg, transparent 48%, #111 48% 52%, transparent 52%),
    linear-gradient(transparent 48%, #111 48% 52%, transparent 52%),
    #bfe3ef;
}

.studentspace-door {
  position: absolute;
  top: 24%;
  right: 8%;
  width: 17%;
  height: 48%;
  border: 5px solid #111;
  border-bottom: 0;
  background: #f4d7e8;
}

.studentspace-door::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
}

.studentspace-room-item {
  position: absolute;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.studentspace-room-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.studentspace-room-sofa {
  left: 12%;
  bottom: 22%;
  width: 34%;
  height: 18%;
  border: 4px solid #111;
  border-radius: 8px 8px 3px 3px;
  background: #df64aa;
}

.studentspace-room-sofa::before,
.studentspace-room-sofa::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 42%;
  height: 18px;
  border: 4px solid #111;
  background: #df64aa;
}

.studentspace-room-sofa::before {
  left: -4px;
}

.studentspace-room-sofa::after {
  right: -4px;
}

.studentspace-room-table {
  left: 47%;
  bottom: 25%;
  width: 22%;
  height: 10%;
  border: 4px solid #111;
  background: #f2c14e;
}

.studentspace-room-table::before,
.studentspace-room-table::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 4px;
  height: 42px;
  background: #111;
}

.studentspace-room-table::before {
  left: 14%;
}

.studentspace-room-table::after {
  right: 14%;
}

.studentspace-room-quiet {
  right: 8%;
  bottom: 12%;
  width: 19%;
  height: 14%;
  border: 4px solid #111;
  background: #b7d7c9;
}

.studentspace-room-plants {
  left: 6%;
  bottom: 10%;
  width: 11%;
  height: 18%;
  border: 4px solid #111;
  border-top: 0;
  background: #f2c14e;
}

.studentspace-room-plants::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 74%;
  width: 130%;
  height: 85%;
  border-radius: 50% 50% 45% 45%;
  background: #5e9f78;
}

.studentspace-room-light {
  top: 5%;
  left: 53%;
  width: 5px;
  height: 23%;
  background: #111;
}

.studentspace-room-light::after {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -13px;
  width: 48px;
  height: 26px;
  border: 4px solid #111;
  border-radius: 50% 50% 4px 4px;
  background: #f2c14e;
}

.studentspace-room-sockets {
  right: 29%;
  bottom: 31%;
  width: 24px;
  height: 18px;
  border: 3px solid #111;
  background: #fff;
}

.studentspace-room-water {
  right: 11%;
  top: 47%;
  width: 10%;
  height: 17%;
  border: 4px solid #111;
  background: #8bc7dd;
}

.studentspace-room-board {
  left: 50%;
  top: 15%;
  width: 18%;
  height: 18%;
  border: 4px solid #111;
  background: #e9f1ed;
  box-shadow:
    inset 12px 10px 0 #df64aa,
    inset -12px -10px 0 #f2c14e;
}

.studentspace-controls {
  display: grid;
  gap: 14px;
}

.studentspace-color-controls {
  display: grid;
  gap: 10px;
}

.studentspace-color-controls fieldset {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
}

.studentspace-color-controls legend {
  min-width: 52px;
  padding: 0;
  color: #f7f7f7;
  font-size: 0.82rem;
  font-weight: 900;
}

.studentspace-color {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #111;
}

.studentspace-color.is-selected {
  box-shadow: 0 0 0 3px #df64aa;
}

.studentspace-hint {
  margin: 0;
  color: #cfcfcf !important;
  font-size: 0.82rem;
  line-height: 1.4 !important;
}

.studentspace-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.studentspace-option {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  border: 3px solid #fff;
  border-radius: 8px;
  padding: 4px;
  color: #f7f7f7;
  background: #df64aa;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.studentspace-option img,
.studentspace-upload-sticker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.studentspace-upload-sticker {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px dashed #df64aa;
  border-radius: 8px;
  padding: 3px;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.studentspace-upload-sticker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.studentspace-upload-sticker span {
  font-size: 1.5rem;
  line-height: 1;
}

.studentspace-upload-sticker small {
  font-size: 0.58rem;
  line-height: 1.05;
}

.studentspace-placed-sticker {
  position: absolute;
  z-index: 4;
  width: clamp(48px, 12%, 84px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 4px solid #fff;
  border-radius: 16px;
  padding: 3px;
  background: transparent;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
  cursor: grab;
  touch-action: none;
}

.studentspace-placed-sticker:active {
  cursor: grabbing;
}

.studentspace-placed-sticker img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

.studentspace-placed-sticker span {
  display: grid;
  place-items: center;
}

.studentspace-reset {
  justify-self: start;
}

.studentspace-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.studentspace-actions > * {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.studentspace-share {
  border-top: 1px solid rgba(223, 100, 170, 0.45);
  padding-top: 10px;
}

.studentspace-share summary {
  color: #ff8acb;
  font-weight: 900;
  cursor: pointer;
}

.studentspace-share form {
  margin-top: 12px;
}

.studentspace-gallery {
  margin-top: 22px;
  border-top: 1px solid rgba(223, 100, 170, 0.5);
  padding-top: 18px;
}

.studentspace-gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.studentspace-gallery-header h3 {
  margin: 0;
}

.studentspace-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studentspace-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.studentspace-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.studentspace-gallery-grid figcaption {
  padding: 7px 8px;
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Station 5: light collage workshop */
.studentspace-game {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: clamp(16px, 2.5vw, 28px);
  color: #252225;
  background:
    radial-gradient(circle at 20% 30%, rgba(223, 100, 170, 0.055) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 60%, rgba(37, 34, 37, 0.035) 0 1px, transparent 1.5px),
    #f8f6f2;
  background-size: 17px 19px, 23px 29px, auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.studentspace-game-header {
  margin-bottom: 20px;
  padding: 0 2px;
}

.studentspace-game-header h3 {
  margin: 0;
  color: #252225;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
}

.studentspace-game-header p:last-child {
  max-width: 620px;
  margin: 8px 0 0;
  color: #5f5a61;
  line-height: 1.5;
}

.studentspace-kicker {
  width: fit-content;
  margin: 0 0 8px;
  padding: 4px 8px;
  color: #252225 !important;
  background: #f3d6e8;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.studentspace-layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.studentspace-controls {
  max-height: 720px;
  overflow: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 8px;
  padding: 15px;
  color: #252225;
  background: #f1eef4;
  box-shadow: 0 8px 18px rgba(37, 34, 37, 0.1);
}

.studentspace-color-controls,
.studentspace-sticker-library,
.studentspace-sticker-library section {
  display: grid;
  gap: 12px;
}

.studentspace-color-controls fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
}

.studentspace-color-controls legend,
.studentspace-window-tools strong,
.studentspace-sticker-library h4 {
  margin: 0;
  padding: 0;
  color: #5f5a61;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studentspace-swatches {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.studentspace-color,
.studentspace-custom-color {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(70, 63, 55, 0.18);
}

.studentspace-color.is-selected {
  outline: 2px solid #df64aa;
  outline-offset: 2px;
}

.studentspace-custom-color {
  position: relative;
  display: grid;
  place-items: center;
  color: #5f5a61;
  background: #fffefd;
  cursor: pointer;
}

.studentspace-custom-color input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.studentspace-window-tools {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(86, 77, 66, 0.12);
  border-bottom: 1px solid rgba(86, 77, 66, 0.12);
  padding: 13px 0;
}

.studentspace-create-tools {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid rgba(86, 77, 66, 0.12);
  padding-bottom: 13px;
}

.studentspace-create-tools strong {
  color: #5f5a61;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studentspace-create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.studentspace-create-grid > button,
.studentspace-draw-sticker-button {
  min-height: 76px;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 6px;
  padding: 12px;
  color: #252225;
  background: #fffefd;
  font-weight: 900;
  box-shadow: 0 3px 7px rgba(37, 34, 37, 0.07);
}

.studentspace-draw-sticker-button {
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 0;
  text-align: center;
  background: #df64aa;
  box-shadow: 0 8px 16px rgba(223, 100, 170, 0.24);
}

.studentspace-draw-sticker-button span {
  display: none;
}

.studentspace-draw-sticker-button small {
  color: #252225;
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.05;
}

.studentspace-writing-tools {
  display: grid;
  gap: 9px;
}

.studentspace-writing-tools label {
  display: grid;
  gap: 6px;
}

.studentspace-writing-tools span {
  color: #5f5a61;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studentspace-writing-tools textarea {
  width: 100%;
  min-height: 58px;
  resize: vertical;
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 6px;
  padding: 9px;
  color: #252225;
  background: #fffefd;
  font: inherit;
  font-weight: 700;
}

.studentspace-writing-tools button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: #f3d6e8;
  font-weight: 900;
}

.studentspace-window-tools > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.studentspace-window-tools select,
.studentspace-window-tools button {
  min-height: 38px;
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 6px;
  padding: 7px 9px;
  color: #252225;
  background: #fffefd;
  font-weight: 800;
}

.studentspace-window-tools button {
  background: #d9ebde;
}

.studentspace-window-cross-toggle {
  min-height: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: rgba(255, 254, 253, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
}

.studentspace-window-cross-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #df64aa;
  flex: 0 0 auto;
}

.studentspace-window-photo-upload {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37, 34, 37, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: rgba(255, 254, 253, 0.72);
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.studentspace-window-photo-upload.is-loading {
  opacity: 0.74;
  cursor: wait;
}

.studentspace-window-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.studentspace-window-upload-status {
  margin: -2px 0 0;
  color: #9e3f79;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.studentspace-sticker-library {
  gap: 16px;
}

.studentspace-sticker-library section,
.studentspace-library-category {
  gap: 7px;
}

.studentspace-library-category {
  border-top: 1px solid rgba(37, 34, 37, 0.1);
  padding-top: 8px;
}

.studentspace-library-category summary {
  color: #5f5a61;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.studentspace-library-category .studentspace-options {
  margin-top: 8px;
}

.studentspace-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.studentspace-option {
  min-width: 0;
  min-height: 108px;
  contain: content;
  display: grid;
  grid-template-rows: minmax(0, 78px) minmax(1.9em, auto);
  gap: 2px;
  align-content: center;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 6px;
  padding: 7px 7px 6px;
  color: #252225;
  background: #fffefd;
  box-shadow: 0 3px 7px rgba(37, 34, 37, 0.07);
  filter: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.studentspace-option:hover,
.studentspace-option:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 34, 37, 0.12);
}

.studentspace-option span,
.studentspace-option svg {
  width: min(100%, 78px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #f3d6e8;
  box-shadow: inset 0 0 0 1px rgba(223, 100, 170, 0.08);
}

.studentspace-option small {
  width: 100%;
  max-width: 100%;
  min-height: 1.9em;
  display: grid;
  place-items: center;
  overflow-wrap: anywhere;
  color: #5f5a61;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.02;
  text-align: center;
}

.studentspace-stage-wrap {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.studentspace-gallery-jump {
  width: 100%;
  min-height: 50px;
  border: 2px solid #a83273;
  border-radius: 8px;
  padding: 12px 18px;
  color: #252225;
  background: #f3b6d9;
  box-shadow: 0 5px 12px rgba(111, 29, 75, 0.16);
  font-size: 0.95rem;
  font-weight: 900;
}

.studentspace-gallery-jump:hover,
.studentspace-gallery-jump:focus-visible {
  background: #f7c9e3;
  border-color: #7f2459;
}

.studentspace-layers {
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 253, 0.92);
  overflow: hidden;
}

.studentspace-layers > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #252225;
  font-weight: 900;
}

.studentspace-layer-list {
  max-height: 230px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
  border-top: 1px solid rgba(37, 34, 37, 0.1);
  padding: 8px;
}

.studentspace-layer-list > p {
  margin: 2px 4px;
  color: #5f5a61;
  font-size: 0.78rem;
}

.studentspace-layer-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px;
  background: #fffefd;
}

.studentspace-layer-row.is-selected {
  border-color: #df64aa;
  background: #fdf4fa;
}

.studentspace-layer-select {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: baseline;
  border: 0;
  padding: 6px;
  color: #252225;
  background: transparent;
  text-align: left;
}

.studentspace-layer-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.studentspace-layer-select small {
  flex: none;
  color: #8b647a;
  font-size: 0.64rem;
}

.studentspace-layer-buttons {
  display: flex;
  gap: 3px;
}

.studentspace-layer-buttons button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 100, 170, 0.32);
  border-radius: 6px;
  padding: 0;
  color: #252225;
  background: #f3d6e8;
  font-weight: 900;
}

.studentspace-layer-buttons button:disabled {
  opacity: 0.35;
}

.studentspace-layer-number {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  border: 2px solid #fffefd;
  border-radius: 50%;
  color: #fff;
  background: #df64aa;
  box-shadow: 0 2px 6px rgba(37, 34, 37, 0.28);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.studentspace-room.is-layers-open .studentspace-layer-number {
  display: grid;
}

@keyframes studentspace-layer-highlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223, 100, 170, 0); }
  45% { box-shadow: 0 0 0 7px rgba(223, 100, 170, 0.48); }
}

.studentspace-room :is(.studentspace-placed-sticker, .studentspace-placed-window, .studentspace-placed-text, .studentspace-placed-note).is-layer-highlighted .studentspace-selection-frame {
  opacity: 1;
  animation: studentspace-layer-highlight 700ms ease-out;
}

.studentspace-live-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 254, 253, 0.86);
  box-shadow: 0 8px 18px rgba(37, 34, 37, 0.08);
}

.studentspace-history-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.studentspace-history-tools button {
  min-height: 40px;
  border: 1px solid rgba(223, 100, 170, 0.34);
  border-radius: 8px;
  padding: 8px 10px;
  color: #252225;
  background: #f3d6e8;
  font-weight: 900;
}

.studentspace-history-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.studentspace-history-tools button:not(:disabled):hover,
.studentspace-history-tools button:not(:disabled):focus-visible {
  border-color: #df64aa;
  background: #fdf4fa;
}

.studentspace-live-color-group,
.studentspace-live-object-tools {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.studentspace-live-tools > .studentspace-color-controls-compact {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid rgba(37, 34, 37, 0.1);
  padding-bottom: 8px;
}

.studentspace-color-controls-compact fieldset {
  min-width: 0;
}

.studentspace-color-controls-compact .studentspace-swatches {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px;
  scrollbar-width: none;
}

.studentspace-color-controls-compact .studentspace-swatches::-webkit-scrollbar {
  display: none;
}

.studentspace-live-color-group > span,
.studentspace-live-object-tools strong,
.studentspace-live-object-tools label span {
  color: #5f5a61;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.studentspace-live-object-tools {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  border-top: 1px solid rgba(37, 34, 37, 0.1);
  padding-top: 8px;
}

.studentspace-live-object-tools label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.studentspace-live-object-tools input {
  width: 100%;
  accent-color: #df64aa;
}

.studentspace-snap-toggle {
  min-height: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: #f3d6e8;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.studentspace-snap-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #df64aa;
}

.studentspace-room {
  position: relative;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 10px solid #fffefd;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(37, 34, 37, 0.07), transparent 16%, transparent 84%, rgba(37, 34, 37, 0.06)),
    linear-gradient(var(--studentspace-wall) 0 68%, transparent 68%),
    linear-gradient(var(--studentspace-floor) 0 100%);
  box-shadow: inset 0 -18px 30px rgba(37, 34, 37, 0.06), 0 12px 24px rgba(37, 34, 37, 0.14);
  touch-action: pan-y;
}

.studentspace-room::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 68%;
  height: 7px;
  background: rgba(37, 34, 37, 0.15);
  box-shadow: 0 6px 12px rgba(37, 34, 37, 0.07);
  pointer-events: none;
}

.studentspace-room::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -8%;
  right: -8%;
  bottom: -2%;
  height: 34%;
  background:
    linear-gradient(90deg, rgba(37, 34, 37, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(37, 34, 37, 0.06));
  background-size: 46px 100%, auto;
  transform: perspective(360px) rotateX(18deg);
  transform-origin: bottom;
  pointer-events: none;
}

.studentspace-paper-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(223, 100, 170, 0.04) 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 70%, rgba(37, 34, 37, 0.025) 0 1px, transparent 1.5px);
  background-size: 15px 17px, 22px 25px;
}

.studentspace-snap-guides {
  position: absolute;
  inset: 0;
  z-index: 19;
  pointer-events: none;
}

.studentspace-snap-guide {
  position: absolute;
  display: block;
  background: #e15aad;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 10px rgba(225, 90, 173, 0.35);
  opacity: 0.95;
  pointer-events: none;
}

.studentspace-snap-guide.is-vertical {
  width: 1.5px;
  transform: translateX(-50%);
}

.studentspace-snap-guide.is-horizontal {
  height: 1.5px;
  transform: translateY(-50%);
}

.studentspace-snap-guide.is-spacing {
  background: repeating-linear-gradient(90deg, #e15aad 0 8px, transparent 8px 13px);
}

.studentspace-snap-guide.is-vertical.is-spacing {
  background: repeating-linear-gradient(180deg, #e15aad 0 8px, transparent 8px 13px);
}

.studentspace-placed-sticker,
.studentspace-placed-window,
.studentspace-placed-text,
.studentspace-placed-note {
  position: absolute;
  z-index: calc(var(--studentspace-layer, 30) + var(--studentspace-selected-boost, 0));
  --selection-inset: 0px;
  --studentspace-handle-size: 28px;
  --studentspace-handle-offset: -6px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.studentspace-room :is(.studentspace-placed-sticker, .studentspace-placed-window, .studentspace-placed-text, .studentspace-placed-note).is-locked {
  pointer-events: none;
}

.studentspace-placed-sticker {
  --selection-inset: 20%;
  width: clamp(92px, 24%, 188px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--sticker-rotation)) scale(var(--sticker-scale));
  filter: none;
}

.studentspace-placed-sticker.is-rug {
  filter: none;
}

.studentspace-selection-frame {
  position: absolute;
  inset: var(--selection-inset);
  border: 1.5px dashed #df64aa;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.studentspace-sticker-delete {
  position: absolute;
  top: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  right: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  z-index: 3;
  width: var(--studentspace-handle-size);
  height: var(--studentspace-handle-size);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: transparent;
  background: url("./assets/icons/studentspace-adjust-delete.png") center / contain no-repeat;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 120ms ease, transform 120ms ease;
}

.studentspace-resize-handle {
  position: absolute;
  right: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  bottom: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  z-index: 3;
  width: var(--studentspace-handle-size);
  height: var(--studentspace-handle-size);
  border: 0;
  border-radius: 50%;
  background: url("./assets/icons/studentspace-adjust-resize.png") center / contain no-repeat;
  box-shadow: none;
  cursor: nwse-resize;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 120ms ease, transform 120ms ease;
}

.studentspace-rotate-handle {
  position: absolute;
  left: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  bottom: calc(var(--selection-inset) + var(--studentspace-handle-offset));
  z-index: 3;
  width: var(--studentspace-handle-size);
  height: var(--studentspace-handle-size);
  border: 0;
  border-radius: 50%;
  background: url("./assets/icons/studentspace-adjust-rotate.png") center / contain no-repeat;
  box-shadow: none;
  cursor: grab;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 120ms ease, transform 120ms ease;
}

.studentspace-rotate-handle::after {
  content: none;
}

.studentspace-placed-sticker svg,
.studentspace-placed-sticker > img,
.studentspace-window-scene,
.studentspace-window-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.studentspace-placed-sticker > img {
  object-fit: contain;
  image-rendering: auto;
}

.studentspace-window-scene {
  overflow: hidden;
  background: #b9c8d5;
}

.studentspace-window-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--window-crop-x, 50%) var(--window-crop-y, 50%);
  transform: scale(var(--window-crop-zoom, 1));
  transform-origin: var(--window-crop-x, 50%) var(--window-crop-y, 50%);
}

.studentspace-placed-window {
  --selection-inset: -2px;
  width: clamp(120px, 28%, 230px);
  aspect-ratio: 1.55;
  transform: translate3d(-50%, -50%, 0) rotate(var(--window-rotation)) scale(var(--window-scale));
  filter: drop-shadow(0 6px 6px rgba(70, 63, 55, 0.18));
}

.studentspace-placed-text {
  max-width: 260px;
  padding: 4px 8px;
  color: #252225;
  font-size: clamp(1rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translate3d(-50%, -50%, 0) rotate(var(--text-rotation)) scale(var(--text-scale));
}

.studentspace-placed-note {
  width: 150px;
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: #252225;
  background: #f6de76;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  transform: translate3d(-50%, -50%, 0) rotate(var(--note-rotation)) scale(var(--note-scale));
  box-shadow: 0 8px 13px rgba(70, 63, 55, 0.18);
}

.studentspace-window-frame {
  position: absolute;
  inset: -7px;
  --studentspace-window-cross: rgba(116, 132, 142, 0.74);
  --studentspace-window-cross-edge: rgba(37, 34, 37, 0.14);
  border: 7px solid #fffefd;
  box-shadow: inset 0 0 0 1px var(--studentspace-window-cross-edge), 0 2px 8px rgba(37, 34, 37, 0.1);
  pointer-events: none;
}

.studentspace-window-frame::before,
.studentspace-window-frame::after {
  content: "";
  position: absolute;
  background: var(--studentspace-window-cross);
  box-shadow: 0 1px 2px rgba(255, 254, 253, 0.25);
}

.studentspace-window-frame::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.studentspace-window-frame::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.studentspace-window-frame.without-cross::before,
.studentspace-window-frame.without-cross::after {
  display: none;
}

.studentspace-window-label {
  display: none;
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  border-radius: 999px;
  min-height: 18px;
  place-items: center;
  padding: 2px 6px;
  color: #252225;
  background: rgba(255, 254, 253, 0.82);
  font-size: clamp(0.44rem, 1.5vw, 0.58rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.studentspace-crop-window-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #252225;
  background: #df64aa;
  font-weight: 950;
}

.studentspace-edit-drawing-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #252225;
  background: #df64aa;
  font-weight: 950;
}

.studentspace-duplicate-button,
.studentspace-lock-button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: #252225;
  background: #f3d6e8;
  font-weight: 950;
  box-shadow: inset 0 0 0 2px rgba(223, 100, 170, 0.2), 0 4px 10px rgba(37, 34, 37, 0.08);
}

.studentspace-duplicate-button:hover,
.studentspace-duplicate-button:focus-visible,
.studentspace-lock-button:hover,
.studentspace-lock-button:focus-visible {
  background: #df64aa;
  outline: 3px solid rgba(223, 100, 170, 0.24);
  outline-offset: 2px;
}

.studentspace-layer-tools {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(223, 100, 170, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 28%, rgba(223, 100, 170, 0.08) 0 1px, transparent 1.6px),
    #fffefd;
  background-size: 14px 16px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 6px 14px rgba(37, 34, 37, 0.07);
}

.studentspace-layer-tools > span {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  color: #252225;
  background: #f3d6e8;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.studentspace-layer-tools > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.studentspace-layer-tools button {
  min-height: 36px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 8px;
  padding: 6px 7px;
  color: #252225;
  background: rgba(248, 246, 242, 0.92);
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 2px 6px rgba(37, 34, 37, 0.08);
}

.studentspace-layer-tools button span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fffefd;
  background: #df64aa;
  font-size: 0.84rem;
  line-height: 1;
}

.studentspace-layer-tools button:hover,
.studentspace-layer-tools button:focus-visible {
  border-color: rgba(223, 100, 170, 0.55);
  background: #fdf4fa;
  transform: translateY(-1px);
}

.studentspace-layer-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.studentspace-layer-tools p {
  margin: 0;
  border-radius: 8px;
  padding: 8px;
  color: #5f5a61;
  background: rgba(243, 214, 232, 0.52);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
}

.studentspace-window-crop-dialog {
  max-width: min(620px, calc(100vw - 28px));
}

.studentspace-window-crop-preview {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1.55;
  margin: 0 auto;
  filter: drop-shadow(0 10px 16px rgba(70, 63, 55, 0.18));
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.studentspace-window-crop-preview.is-dragging {
  cursor: grabbing;
}

.studentspace-window-crop-preview .studentspace-window-scene {
  position: absolute;
  inset: 0;
}

.studentspace-window-crop-controls {
  display: grid;
  gap: 12px;
}

.studentspace-window-crop-controls label {
  display: grid;
  gap: 5px;
  color: #5f5a61;
  font-size: 0.9rem;
  font-weight: 900;
}

.studentspace-window-crop-controls input {
  width: 100%;
  accent-color: #df64aa;
  touch-action: none;
}

.studentspace-window-crop-hint {
  margin: 0;
  color: #5f5a61;
  font-size: 0.86rem;
  line-height: 1.35;
}

.studentspace-placed-sticker.is-selected,
.studentspace-placed-window.is-selected,
.studentspace-placed-text.is-selected,
.studentspace-placed-note.is-selected {
  --studentspace-selected-boost: 0;
}

.studentspace-placed-sticker.is-selected .studentspace-selection-frame,
.studentspace-placed-window.is-selected .studentspace-selection-frame,
.studentspace-placed-text.is-selected .studentspace-selection-frame,
.studentspace-placed-note.is-selected .studentspace-selection-frame {
  opacity: 1;
}

.studentspace-placed-sticker.is-selected .studentspace-sticker-delete,
.studentspace-placed-sticker.is-selected .studentspace-resize-handle,
.studentspace-placed-sticker.is-selected .studentspace-rotate-handle,
.studentspace-placed-window.is-selected .studentspace-sticker-delete,
.studentspace-placed-window.is-selected .studentspace-resize-handle,
.studentspace-placed-window.is-selected .studentspace-rotate-handle,
.studentspace-placed-text.is-selected .studentspace-sticker-delete,
.studentspace-placed-text.is-selected .studentspace-resize-handle,
.studentspace-placed-text.is-selected .studentspace-rotate-handle,
.studentspace-placed-note.is-selected .studentspace-sticker-delete,
.studentspace-placed-note.is-selected .studentspace-resize-handle,
.studentspace-placed-note.is-selected .studentspace-rotate-handle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.studentspace-hint {
  margin: 0;
  color: #5f5a61 !important;
  font-size: 0.82rem;
  line-height: 1.4 !important;
}

.studentspace-reset,
.studentspace-download-button,
.studentspace-submit-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: #252225;
  background: #f1eef4;
  font-weight: 900;
}

.studentspace-custom-sticker-upload {
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 2px dashed rgba(37, 34, 37, 0.22);
  border-radius: 6px;
  padding: 6px;
  color: #5f5a61;
  background: rgba(255, 254, 253, 0.7);
  cursor: pointer;
  text-align: center;
}

.studentspace-custom-sticker-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.studentspace-custom-sticker-upload span {
  font-size: 1.4rem;
  line-height: 1;
}

.studentspace-custom-sticker-upload small {
  font-size: 0.68rem;
  font-weight: 800;
}

.studentspace-option img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
}

.studentspace-option img.studentspace-preview-image {
  object-fit: contain;
  transform: translateZ(0) scale(1.18);
  transform-origin: center;
}

.studentspace-empty-library {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed rgba(37, 34, 37, 0.18);
  border-radius: 6px;
  padding: 12px;
  color: #5f5a61 !important;
  background: rgba(255, 254, 253, 0.74);
  font-size: 0.8rem;
  line-height: 1.35 !important;
}

.studentspace-shared-filter {
  display: grid;
  gap: 5px;
}

.studentspace-shared-library-content,
.studentspace-gallery-content {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.studentspace-shared-library > summary,
.studentspace-gallery > summary {
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
}

.studentspace-shared-library > summary {
  background: #f8e4f0;
}

.studentspace-gallery > summary {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  border: 2px solid #862556;
  border-radius: 8px;
  padding: 16px 58px 16px 20px;
  color: #21151c;
  background: #e052a3;
  box-shadow: 0 7px 16px rgba(111, 29, 75, 0.2);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 950;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

.studentspace-shared-library > summary::marker,
.studentspace-gallery > summary::marker {
  color: #9e3f79;
}

.studentspace-gallery > summary::marker {
  content: "";
}

.studentspace-gallery > summary::-webkit-details-marker {
  display: none;
}

.studentspace-gallery > summary::after {
  content: "▾";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(37, 34, 37, 0.72);
  border-radius: 50%;
  background: rgba(255, 254, 253, 0.72);
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

.studentspace-gallery[open] > summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.studentspace-shared-filter span,
.studentspace-shared-option em,
.studentspace-shared-option b {
  color: #5f5a61;
  font-size: 0.58rem;
  font-weight: 800;
}

.studentspace-shared-filter select {
  min-height: 36px;
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 6px;
  padding: 7px;
  color: #252225;
  background: #fffefd;
  font-weight: 800;
}

.studentspace-shared-option {
  min-height: 118px;
  grid-template-rows: 62px minmax(1.9em, auto) auto auto;
  align-content: start;
}

.studentspace-shared-option em,
.studentspace-shared-option b {
  display: block;
  font-style: normal;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.studentspace-shared-option small {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.62rem;
  line-height: 1.02;
}

.studentspace-shared-option span {
  width: min(100%, 62px);
  padding: 5px;
  background: rgba(243, 214, 232, 0.55);
}

.studentspace-shared-option span img {
  object-fit: contain;
}

.studentspace-shared-option b {
  justify-self: center;
  border-radius: 999px;
  padding: 2px 5px;
  color: #252225;
  background: rgba(223, 100, 170, 0.18);
  font-size: 0.5rem;
}

.studentspace-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.studentspace-actions > * {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.studentspace-download-button {
  background: #d7e7ef;
}

.studentspace-submit-button {
  background: #e15aad;
}

.studentspace-reset {
  background: #f1eef4;
}

.studentspace-gallery {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  border-top: 1px solid rgba(37, 34, 37, 0.1);
  padding-top: 18px;
}

.studentspace-gallery h4 {
  margin: 8px 0 0;
  color: #252225;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.05;
}

.studentspace-gallery p {
  margin: 5px 0 0;
  color: #5f5a61 !important;
  font-size: 0.86rem;
  line-height: 1.4 !important;
}

.studentspace-gallery .studentspace-gallery-open-hint {
  margin: 0;
  color: #7f4668 !important;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15 !important;
}

.studentspace-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.studentspace-gallery-card {
  position: relative;
  width: 100%;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 6px;
  padding: 8px;
  color: inherit;
  background: #fffefd;
  font: inherit;
  text-align: left;
  box-shadow: 0 5px 12px rgba(37, 34, 37, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.studentspace-gallery-card:hover,
.studentspace-gallery-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 34, 37, 0.13);
}

.studentspace-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  object-fit: cover;
}

.studentspace-gallery-card strong {
  color: #252225;
  font-size: 0.9rem;
}

.studentspace-gallery-card span {
  color: #5f5a61;
  font-size: 0.74rem;
  font-weight: 800;
}

.studentspace-gallery-preview-dialog {
  position: relative;
  max-width: min(920px, calc(100vw - 24px));
}

.studentspace-gallery-preview-image {
  overflow: hidden;
  border: 8px solid #fffefd;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: #f8f6f2;
  box-shadow: 0 8px 18px rgba(37, 34, 37, 0.12);
}

.studentspace-gallery-preview-image img {
  width: 100%;
  height: 100%;
  max-height: min(62dvh, 620px);
  display: block;
  object-fit: contain;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.studentspace-gallery-preview-meta,
.studentspace-gallery-preview-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.studentspace-gallery-preview-meta span {
  color: #5f5a61;
  font-size: 0.78rem;
  font-weight: 850;
}

.studentspace-gallery-preview-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  color: #252225;
  background: #f1eef4;
  font-weight: 900;
}

.studentspace-gallery-preview-actions button:not(:disabled):last-child {
  background: #df64aa;
}

.studentspace-gallery-preview-actions button:disabled {
  opacity: 0.45;
}

.studentspace-gallery-lightbox {
  z-index: 120;
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-dialog {
  max-width: none;
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: #000;
  box-shadow: none;
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: contain;
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-meta {
  display: grid;
  gap: 6px;
  justify-content: stretch;
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-meta strong {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.studentspace-gallery-lightbox .studentspace-gallery-preview-meta span {
  color: #dfd6df;
}

.studentspace-drawing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(34, 30, 27, 0.62);
}

.studentspace-drawing-dialog {
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 8px;
  padding: clamp(14px, 3vw, 22px);
  color: #252225;
  background:
    radial-gradient(circle at 18% 25%, rgba(223, 100, 170, 0.055) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 75%, rgba(37, 34, 37, 0.035) 0 1px, transparent 1.5px),
    #f8f6f2;
  background-size: 18px 20px, 25px 27px, auto;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.studentspace-drawing-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.studentspace-drawing-header h4 {
  margin: 0;
  color: #252225;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
}

.studentspace-drawing-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: #9e0030;
  font-size: 1.2rem;
  font-weight: 900;
}

[data-studentspace-gallery-preview-overlay] {
  z-index: 140;
}

.studentspace-gallery-preview-dialog .studentspace-drawing-close {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
}

.studentspace-gallery-preview-dialog .studentspace-drawing-header {
  padding-top: 34px;
}

.studentspace-drawing-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.75fr);
  gap: 12px;
  align-items: end;
}

.studentspace-drawing-tools fieldset,
.studentspace-share-choice {
  margin: 0;
  border: 0;
  padding: 0;
}

.studentspace-drawing-tools legend,
.studentspace-drawing-size span,
.studentspace-meta-field span,
.studentspace-share-choice legend {
  color: #5f5a61;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.studentspace-drawing-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.studentspace-drawing-colors button,
.studentspace-drawing-custom-color {
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(70, 63, 55, 0.18);
}

.studentspace-drawing-colors button.is-selected {
  outline: 2px solid #df64aa;
  outline-offset: 2px;
}

.studentspace-drawing-custom-color {
  position: relative;
  display: grid;
  place-items: center;
  background: #fffefd;
}

.studentspace-drawing-custom-color input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.studentspace-drawing-size,
.studentspace-drawing-category,
.studentspace-meta-field {
  display: grid;
  gap: 7px;
}

.studentspace-drawing-category {
  grid-column: 1 / -1;
}

.studentspace-drawing-category span {
  font-weight: 900;
}

.studentspace-drawing-category select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(37, 34, 37, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: #fffefd;
  font: inherit;
  font-weight: 800;
}

.studentspace-drawing-size input {
  width: 100%;
  accent-color: #df64aa;
  touch-action: none;
}

.studentspace-custom-color,
.studentspace-drawing-custom-color,
.studentspace-custom-color input,
.studentspace-drawing-custom-color input,
[data-studentspace-scale],
[data-studentspace-rotation],
[data-studentspace-drawing-size] {
  touch-action: manipulation;
}

[data-studentspace-scale],
[data-studentspace-rotation],
[data-studentspace-drawing-size] {
  touch-action: none;
}

.studentspace-drawing-tool-buttons,
.studentspace-drawing-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.studentspace-drawing-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f5a61;
  font-size: 0.82rem;
  line-height: 1.35;
}

.studentspace-drawing-tool-buttons button,
.studentspace-drawing-actions button,
.studentspace-meta-field input,
.studentspace-meta-field select {
  min-height: 38px;
  border: 1px solid rgba(37, 34, 37, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  color: #252225;
  background: #fffefd;
  font-weight: 900;
}

.studentspace-drawing-tool-buttons button.is-selected,
.studentspace-drawing-insert {
  background: #e15aad !important;
}

.studentspace-drawing-paper {
  position: relative;
  overflow: hidden;
  border: 8px solid #fffefd;
  border-radius: 6px;
  background:
    linear-gradient(rgba(223, 100, 170, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 34, 37, 0.035) 1px, transparent 1px),
    #fffefd;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(37, 34, 37, 0.1);
}

.studentspace-drawing-paper canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}

.studentspace-meta-dialog {
  width: min(520px, 100%);
}

.studentspace-meta-preview {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(37, 34, 37, 0.1) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.1) 75%),
    linear-gradient(45deg, rgba(37, 34, 37, 0.1) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.1) 75%),
    #fffefd;
  background-position: 0 0, 8px 8px, 0 0;
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: inset 0 0 0 1px rgba(37, 34, 37, 0.1);
}

.studentspace-meta-preview img {
  max-width: 120px;
  max-height: 120px;
}

.studentspace-share-choice {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(37, 34, 37, 0.1);
  padding-top: 10px;
}

.studentspace-share-choice label {
  display: flex;
  gap: 8px;
  align-items: start;
  font-weight: 800;
}

.studentspace-share-choice p {
  margin: 0;
  color: #5f5a61 !important;
  font-size: 0.8rem;
  line-height: 1.35 !important;
}

.studentspace-share-dialog {
  width: min(560px, 100%);
}

.studentspace-submit-status {
  display: grid;
  gap: 10px;
  color: #252225;
}

.studentspace-submit-status h5,
.studentspace-submit-status p {
  margin: 0;
}

.studentspace-submit-status > p,
.studentspace-submit-status li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.studentspace-submit-status ul {
  display: grid;
  gap: 7px;
  max-height: min(36vh, 300px);
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.studentspace-submit-status li {
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(255, 254, 253, 0.8);
}

.studentspace-submit-status b,
.studentspace-submit-status > p > span {
  font-size: 0.76rem;
  text-align: right;
}

.studentspace-submit-status .is-confirmed {
  color: #3f6d45;
}

.studentspace-submit-status .is-failed {
  color: #9e0030;
}

.studentspace-submit-status .studentspace-submit-pending {
  display: block;
  color: #5f5a61;
  font-size: 0.82rem;
}

.studentspace-share-picker {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 9px;
  max-height: min(34vh, 320px);
  overflow: auto;
  padding-right: 3px;
}

.studentspace-share-picker.is-visible {
  display: grid;
}

.studentspace-share-picker label {
  display: grid;
  gap: 7px;
  border: 1px dashed rgba(37, 34, 37, 0.18);
  border-radius: 6px;
  padding: 8px;
  color: #252225;
  background: rgba(255, 254, 253, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.studentspace-share-picker img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(37, 34, 37, 0.09) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.09) 75%),
    linear-gradient(45deg, rgba(37, 34, 37, 0.09) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.09) 75%),
    #fffefd;
  background-position: 0 0, 8px 8px, 0 0;
  background-size: 16px 16px, 16px 16px, auto;
}

.studentspace-share-picker input {
  width: 20px;
  height: 20px;
  accent-color: #e15aad;
}

.studentspace-share-picker small {
  color: #5f5a61;
  font-size: 0.72rem;
}

.studentspace-shared-preview-dialog {
  width: min(520px, 100%);
}

.studentspace-shared-preview-image {
  min-height: 230px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 34, 37, 0.1);
  border-radius: 6px;
  padding: 18px;
  background:
    linear-gradient(45deg, rgba(37, 34, 37, 0.055) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.055) 75%),
    linear-gradient(45deg, rgba(37, 34, 37, 0.055) 25%, transparent 25% 75%, rgba(37, 34, 37, 0.055) 75%),
    #fffefd;
  background-position: 0 0, 10px 10px, 0 0;
  background-size: 20px 20px, 20px 20px, auto;
}

.studentspace-shared-preview-image img {
  max-width: min(100%, 280px);
  max-height: 280px;
  display: block;
  object-fit: contain;
}

.studentspace-shared-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.studentspace-shared-preview-meta span,
.studentspace-shared-preview-meta b {
  border-radius: 999px;
  padding: 5px 8px;
  color: #252225;
  background: rgba(223, 100, 170, 0.16);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.studentspace-shared-preview-meta b {
  background: rgba(215, 231, 239, 0.8);
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.rotunde-collection-panel,
.contribution-submit-disclosure {
  grid-column: 1 / -1;
}

.contribution-submit-disclosure {
  padding: 0;
  overflow: hidden;
}

.contribution-submit-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.contribution-submit-disclosure > summary::-webkit-details-marker {
  display: none;
}

.contribution-submit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #df64aa;
  color: #111;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.contribution-submit-disclosure[open] .contribution-submit-icon {
  transform: rotate(45deg);
}

.contribution-submit-content {
  padding: 0 22px 22px;
}

.contribution-submit-disclosure-prominent {
  width: 100%;
  max-width: 1180px;
  justify-self: center;
  border-color: #df64aa;
  background: #111;
  box-shadow: 0 12px 28px rgba(223, 100, 170, 0.22);
}

.contribution-submit-disclosure-prominent > summary {
  min-height: 68px;
  color: #111;
  background: #df64aa;
  font-size: 1.15rem;
}

.contribution-submit-disclosure-prominent .contribution-submit-icon {
  color: #df64aa;
  background: #111;
}

.contribution-submit-disclosure-prominent .contribution-submit-content {
  padding-top: 22px;
}

.board-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.board-submit-panel {
  max-width: 760px;
}

.voices-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.content-panel {
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  backdrop-filter: blur(2px);
}

.content-panel h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.content-panel p {
  color: #e8e8e8;
  line-height: 1.65;
}

.content-panel a {
  color: #ff8acb;
  font-weight: 800;
}

.content-panel a:hover,
.content-panel a:focus {
  color: #f4d7e8;
}

.station-info-link {
  margin: 0;
}

.station-info-link a,
.archive-glossary-link .primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(223, 100, 170, 0.72);
  border-radius: 8px;
  color: #f7f7f7;
  background: rgba(223, 100, 170, 0.1);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.station-info-link a:hover,
.station-info-link a:focus,
.archive-glossary-link .primary-button:hover,
.archive-glossary-link .primary-button:focus {
  color: #fff;
  border-color: #df64aa;
  background: rgba(223, 100, 170, 0.22);
}

.archive-glossary-link {
  margin-top: 10px;
}

.station-link-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 14px;
}

.station-link-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 2px;
  top: 6px;
  height: 2px;
  border-radius: 999px;
  background: #df64aa;
}

.station-link-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #df64aa;
  border-right: 2px solid #df64aa;
  transform: rotate(45deg);
}

.related-station-link {
  display: grid;
  gap: 12px;
}

.related-station-link p {
  margin: 0;
}

.archive-glossary-view {
  max-width: 980px;
}

.archive-glossary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.archive-entry-list {
  display: grid;
  gap: 12px;
}

.archive-entry {
  border: 1px solid rgba(223, 100, 170, 0.28);
  border-radius: 8px;
  background: rgba(244, 215, 232, 0.06);
  overflow: hidden;
}

.archive-entry summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: #ff8acb;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.archive-entry summary::-webkit-details-marker {
  display: none;
}

.archive-entry summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: #df64aa;
  font-size: 1.1rem;
  line-height: 1;
}

.archive-entry[open] summary {
  background: rgba(223, 100, 170, 0.12);
}

.archive-entry[open] summary::after {
  content: "−";
}

.archive-entry-content {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.archive-entry-content > p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.archive-source {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid #df64aa;
  border-radius: 0 6px 6px 0;
  background: rgba(223, 100, 170, 0.1);
}

.archive-source-label {
  color: #ff8acb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-source p,
.archive-source small {
  margin: 0;
  padding: 0;
}

.archive-source p {
  color: #f4d7e8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.archive-source a {
  display: grid;
  gap: 4px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.archive-source-link-label {
  color: #ff8acb;
  font-size: 0.78rem;
  font-weight: 850;
}

.archive-source small {
  color: rgba(247, 247, 247, 0.68);
  font-size: 0.72rem;
}

.archive-source-note {
  padding: 10px 12px !important;
  border-left: 3px solid rgba(247, 247, 247, 0.38);
  color: rgba(247, 247, 247, 0.72);
  background: rgba(247, 247, 247, 0.06);
  font-size: 0.82rem;
  font-style: italic;
}

.board-feed-panel {
  display: grid;
  gap: 16px;
  border: 2px solid #df64aa;
  background: rgba(16, 16, 16, 0.88);
  box-shadow:
    inset 0 0 0 8px rgba(223, 100, 170, 0.16),
    0 18px 46px rgba(0, 0, 0, 0.3);
}

.board-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 10px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 7px;
  color: #f7f7f7;
  font-weight: 900;
}

.search-box span {
  font-size: 0.85rem;
}

.search-box input,
.search-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #df64aa;
  border-radius: 8px;
  padding: 10px 12px;
  color: #f7f7f7;
  background: #050505;
}

.content-panel > .board-tools {
  grid-template-columns: 1fr;
}

.board-feed-panel > .board-tools,
.voices-feed-panel > .board-tools {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  padding: clamp(10px, 2vw, 22px);
}

.board-card {
  --board-note-color: #fff7c9;
  --board-reply-color: #fff1a8;
  --board-reply-line: rgba(156, 124, 34, 0.18);
  --board-reply-strip: #d7b36b;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  color: #111;
  background: var(--board-note-color);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  transform: rotate(-0.7deg);
}

.board-card:nth-child(even) {
  transform: rotate(0.7deg);
}

.board-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #df64aa;
  box-shadow:
    0 2px 0 rgba(17, 17, 17, 0.25),
    0 0 0 3px rgba(244, 215, 232, 0.7);
  transform: translateX(-50%);
}

.board-card:has(.pinned-marker)::before {
  content: none;
}

.board-note-2 {
  --board-note-color: #f4d7e8;
  --board-reply-color: #ffc0e3;
  --board-reply-line: rgba(154, 0, 88, 0.14);
  --board-reply-strip: #df64aa;
}

.board-note-3 {
  --board-note-color: #e7f1ff;
  --board-reply-color: #d6e8ff;
  --board-reply-line: rgba(48, 96, 142, 0.16);
  --board-reply-strip: #7fa5c8;
}

.board-note-4 {
  --board-note-color: #e3ffd9;
  --board-reply-color: #d2f4c3;
  --board-reply-line: rgba(65, 128, 46, 0.15);
  --board-reply-strip: #7bbd74;
}

.board-card img {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  background: #f7f7f7;
}

.board-file-link {
  display: block;
  margin: 0;
  padding: 12px;
  color: #111;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.board-card-body {
  display: grid;
  gap: 10px;
  padding: 28px 16px 16px;
}

.board-card-body h3 {
  margin: 0;
  color: #111;
  font-size: 1.2rem;
}

.board-card-body p {
  margin: 0;
  color: #222;
  line-height: 1.5;
}

.board-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.board-card-meta span,
.board-card-meta time {
  width: fit-content;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  color: #111;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
}

.board-card-meta .board-retention-label {
  border-color: rgba(154, 0, 88, 0.22);
  color: #780044;
  background: rgba(255, 255, 255, 0.78);
}

.board-retention-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid #df64aa;
  color: #40373c;
  background: rgba(223, 100, 170, 0.09);
  font-size: 0.9rem;
  line-height: 1.45;
}

.board-card-actions {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(17, 17, 17, 0.28);
  color: #222;
  font-size: 0.92rem;
}

.board-card-actions a {
  color: #9a0058;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.public-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.report-button {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(17, 17, 17, 0.66);
  background: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.report-button:hover,
.report-button:focus-visible {
  color: #111;
  background: rgba(244, 215, 232, 0.92);
  outline: 2px solid rgba(223, 100, 170, 0.45);
  outline-offset: 2px;
}

.board-reply-details {
  border-top: 1px dashed rgba(17, 17, 17, 0.28);
  padding-top: 8px;
}

.board-reply-details summary {
  width: fit-content;
  padding: 6px 0;
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.board-reply-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 12px 14px;
  padding-left: 14px;
  border-left: 3px solid rgba(17, 17, 17, 0.18);
}

.board-reply {
  position: relative;
  display: grid;
  flex: 1 1 150px;
  max-width: 250px;
  gap: 7px;
  padding: 28px 12px 14px 50px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 34px, rgba(17, 17, 17, 0.22) 34px 35px, transparent 35px),
    repeating-linear-gradient(
      to bottom,
      transparent 0 26px,
      var(--board-reply-line) 26px 27px
    ),
    var(--board-reply-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.22);
  transform: rotate(-1.2deg);
}

.board-reply::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 22%;
  width: 72px;
  height: 18px;
  background: color-mix(in srgb, var(--board-reply-strip) 78%, #c08a66 22%);
  opacity: 0.84;
  transform: rotate(-6deg);
}

.board-reply img {
  width: calc(100% + 62px);
  max-height: 130px;
  margin: -28px -12px 4px -50px;
  object-fit: cover;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.board-reply .board-file-link {
  margin: -4px 0 2px;
  padding: 8px;
  border: 1px dashed rgba(17, 17, 17, 0.3);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.board-reply-link {
  color: #9a0058;
  font-size: 0.88rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.board-reply:nth-child(even) {
  transform: rotate(1.1deg);
}

.board-reply span,
.board-reply time {
  color: #333;
  font-size: 0.85rem;
}

.board-reply-form input,
.board-reply-form textarea {
  border-color: rgba(17, 17, 17, 0.22);
  color: #111;
  background: rgba(255, 255, 255, 0.82);
}

.board-reply-form-details {
  margin-top: 4px;
}

.board-reply-form-details > summary {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: #111;
  background: #f4d7e8;
  font-weight: 900;
  cursor: pointer;
}

.board-reply-form-details[open] > summary {
  margin-bottom: 10px;
}

.board-reply-file-label {
  color: #111 !important;
}

.board-reply-file-label span {
  color: #111;
}

.board-reply-file-label input {
  background: rgba(255, 255, 255, 0.82);
}

.file-label {
  display: grid;
  gap: 8px;
  color: #e8e8e8;
  font-weight: 800;
}

.voices-feed-panel {
  display: grid;
  gap: 18px;
  border-color: #df64aa;
  background:
    linear-gradient(rgba(223, 100, 170, 0.07), rgba(223, 100, 170, 0.07)),
    #050505;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.voice-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  width: 100%;
  min-height: 220px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 100, 170, 0.65);
  border-radius: 0;
  background: #f7f7f7;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
}

.voice-card:hover,
.voice-card:focus {
  outline: 3px solid #df64aa;
  outline-offset: -3px;
  transform: translateY(-2px);
}

.voice-fragment-2 {
  background: #f4d7e8;
  color: #111;
}

.voice-fragment-3 {
  background: #f9a6d8;
}

.voice-fragment-4 {
  background: #ffe8f5;
}

.voice-fragment-5 {
  background: #e4379b;
  color: #fff;
}

.voice-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  display: block;
  max-height: 320px;
  object-fit: contain;
  filter: grayscale(1);
  background: #050505;
}

.voice-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 18px;
  background: inherit;
}

.voice-card-body h3 {
  order: 1;
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.05;
}

.voice-card-body p {
  order: 2;
  margin: 0;
  color: inherit;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.24;
  font-weight: 500;
}

.voice-card-meta {
  order: 4;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.voice-card-meta span,
.voice-card-meta time {
  width: fit-content;
  border: 1px solid rgba(17, 17, 17, 0.62);
  border-radius: 999px;
  padding: 4px 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0.86;
}

.voice-fragment-2 .voice-card-meta span,
.voice-fragment-2 .voice-card-meta time {
  background: rgba(255, 255, 255, 0.38);
}

.voice-fragment-5 .voice-card-meta span,
.voice-fragment-5 .voice-card-meta time {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
}

.voice-author {
  order: 3;
  color: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  opacity: 0.84;
}

.voice-lightbox-card .lightbox-media {
  background: #000;
}

.voice-lightbox {
  padding-top: 118px;
}

.voice-feed-lightbox {
  grid-template-columns: 44px minmax(0, 760px) 44px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 70px 18px 24px;
  overscroll-behavior: contain;
  touch-action: none;
}

.voice-feed-lightbox .voice-lightbox-card {
  grid-column: 2;
  grid-row: 1;
  max-height: calc(100vh - 110px);
}

.collection-feed-lightbox .collection-lightbox-card {
  grid-column: 2;
  grid-row: 1;
  max-height: calc(100vh - 110px);
}

.voice-feed-nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #df64aa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 116% 116%;
  color: transparent;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
  box-shadow: none;
}

.voice-feed-nav-up {
  grid-column: 1;
  grid-row: 1;
  background-image: url("./assets/icons/arrow-back.png");
}

.voice-feed-nav-down {
  grid-column: 3;
  grid-row: 1;
  background-image: url("./assets/icons/arrow-forward.png");
}

.voice-feed-nav:hover,
.voice-feed-nav:focus {
  opacity: 1;
  outline: 3px solid #f4d7e8;
  outline-offset: 3px;
}

.voice-feed-hint {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
}

.voice-text-full {
  padding: 34px;
  background: #df64aa;
  color: #111;
}

.voice-lightbox-card.voice-fragment-1 .voice-text-full {
  background: #df64aa;
}

.voice-lightbox-card.voice-fragment-2 .voice-text-full {
  background: #f4d7e8;
}

.voice-lightbox-card.voice-fragment-3 .voice-text-full {
  background: #f9a6d8;
}

.voice-lightbox-card.voice-fragment-4 .voice-text-full {
  background: #ffe8f5;
}

.voice-lightbox-card.voice-fragment-5 .voice-text-full {
  background: #e4379b;
}

.voice-text-full p {
  max-width: 780px;
  margin: 0 auto;
  color: #111;
  font-size: clamp(2.2rem, 5.8vw, 5.8rem);
  line-height: 1.05;
  text-align: center;
}

.voice-text-full span {
  display: block;
  margin-top: 18px;
  color: #111;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 900;
  text-align: center;
}

.voice-lightbox-card.voice-fragment-5 .voice-text-full p,
.voice-lightbox-card.voice-fragment-5 .voice-text-full span {
  color: #fff;
}

.voices-form-panel {
  border-color: #df64aa;
}

.voices-submit-panel {
  max-width: 760px;
}

.voices-submit-panel .respectful-notice.small {
  margin-bottom: 24px;
}

.labelled-form label:not(.consent-check) {
  display: grid;
  gap: 7px;
  color: #e8e8e8;
  font-weight: 900;
}

.labelled-form label:not(.consent-check) span {
  font-size: 0.9rem;
}

.ai-transparency-banner {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 2px solid #df64aa;
  border-radius: 8px;
  color: #111;
  background: #df64aa;
  box-shadow: 0 16px 40px rgba(223, 100, 170, 0.18);
}

.ai-transparency-banner strong {
  font-size: 1.12rem;
}

.ai-transparency-banner span {
  font-weight: 800;
}

.ai-statement-panel {
  grid-column: 1 / -1;
  border: 2px solid #df64aa;
  color: #111;
  background: #df64aa;
}

.ai-statement-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  color: #111;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
}

.ai-statement-panel > summary::-webkit-details-marker {
  display: none;
}

.ai-statement-panel > summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #111;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

.ai-statement-panel[open] > summary::after {
  content: "-";
}

.ai-statement-panel > summary:hover,
.ai-statement-panel > summary:focus-visible {
  color: #5b0030;
}

.ai-statement-panel > summary:hover::after,
.ai-statement-panel > summary:focus-visible::after {
  border-color: #5b0030;
}

.ai-statement-body {
  margin-top: 18px;
}

.ai-statement-panel h3 {
  color: #111;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.ai-statement-panel p {
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
}

.ai-statement-panel a {
  color: #111;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ai-statement-panel a:hover,
.ai-statement-panel a:focus {
  color: #5b0030;
}

.source-panel {
  display: grid;
  gap: 18px;
}

.source-panel-hero {
  margin: 18px 0 22px;
  border-color: rgba(223, 100, 170, 0.32);
  background:
    linear-gradient(135deg, rgba(244, 215, 232, 0.13), rgba(255, 219, 92, 0.06)),
    rgba(17, 17, 17, 0.74);
}

.station-photo-disclosure {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.station-photo-disclosure > summary {
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  list-style: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.station-photo-disclosure > summary::before {
  content: none;
}

.station-photo-disclosure > summary:hover,
.station-photo-disclosure > summary:focus-visible {
  filter: saturate(1.08) brightness(1.04);
  transform: translateY(-1px);
  outline: 0;
}

.station-photo-disclosure > summary::-webkit-details-marker {
  display: none;
}

.station-photo-disclosure-button-image {
  width: min(94vw, 820px);
  display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.32));
}

.station-photo-disclosure-icon {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 247, 252, 0.26);
  border-radius: 50%;
  color: #fff7fb;
  background: rgba(255, 247, 252, 0.16);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.station-photo-disclosure[open] .station-photo-disclosure-icon {
  transform: rotate(45deg);
}

.station-photo-disclosure[open] > summary {
  border-bottom: 0;
}

.station-photo-disclosure-content {
  padding: 12px 0 0;
}

.station-photo-grid {
  display: grid;
  gap: 14px;
}

.station-photo-grid-multiple {
  grid-template-columns: minmax(0, 1.08fr) minmax(190px, 0.82fr);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 4px;
}

.station-photo {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 215, 232, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.source-panel-hero .station-photo {
  border-color: rgba(255, 155, 209, 0.34);
}

.source-panel-hero .station-photo-grid-multiple .station-photo {
  height: clamp(300px, 46vw, 520px);
  max-height: none;
  object-fit: cover;
}

.source-panel-hero .station-photo-grid-multiple .station-photo:nth-child(2) {
  height: clamp(240px, 36vw, 430px);
  transform: rotate(1.2deg);
}

.source-panel-hero .station-photo-grid-multiple .station-photo:nth-child(1) {
  transform: rotate(-0.7deg);
}

@media (max-width: 720px) {
  .station-photo-grid-multiple {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .source-panel-hero .station-photo-grid-multiple .station-photo,
  .source-panel-hero .station-photo-grid-multiple .station-photo:nth-child(2) {
    height: auto;
    max-height: 460px;
    object-fit: contain;
    transform: none;
  }
}

.source-text-block {
  padding-top: 2px;
}

.source-text-block h3 {
  margin-bottom: 8px;
}

.source-text-block .quote-author {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 400;
}

.station-audio-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.station-audio-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

audio {
  width: 100%;
  margin-top: 10px;
}

.station-audio-controls {
  --audio-pink-strong: #df64aa;
  width: min(100%, 690px);
  min-width: 0;
  max-width: 100%;
  margin: 20px auto 0;
}

.station-audio-art {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 3283 / 1650;
  overflow: hidden;
}

.station-audio-controls-art {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.station-audio-toggle-art {
  position: absolute;
  z-index: 1;
  top: 12.4%;
  left: 35.5%;
  width: 29%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.station-audio-toggle-art-pause,
.station-audio-art.is-playing .station-audio-toggle-art-play {
  opacity: 0;
}

.station-audio-art.is-playing .station-audio-toggle-art-pause {
  opacity: 1;
}

.station-audio-timeline {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(42px, auto) minmax(0, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 48px), 560px);
  margin: 8px auto 0;
  padding-inline: 8px;
  pointer-events: auto;
  touch-action: none;
}

.station-audio-time {
  color: #df64aa;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.station-audio-progress {
  --audio-progress: 0%;
  position: relative;
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.station-audio-progress:focus-visible {
  outline: 4px solid rgba(223, 100, 170, 0.28);
  outline-offset: 3px;
}

.station-audio-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #df64aa 0 var(--audio-progress), #f4d7ea var(--audio-progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(223, 100, 170, 0.16);
}

.station-audio-progress::after {
  content: "";
  position: absolute;
  left: var(--audio-progress);
  top: 50%;
  width: 28px;
  height: 28px;
  border: 4px solid #fff4e8;
  border-radius: 50%;
  background: #df64aa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.station-audio-hotspot {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.station-audio-hotspot:active {
  transform: scale(0.97);
}

.station-audio-hotspot:focus-visible {
  outline: 4px solid rgba(223, 100, 170, 0.36);
  outline-offset: 3px;
}

.station-audio-hotspot-back,
.station-audio-hotspot-play,
.station-audio-hotspot-forward {
  top: 10%;
  width: 30%;
  height: 66%;
}

.station-audio-hotspot-back {
  left: 5%;
}

.station-audio-hotspot-play {
  left: 35%;
}

.station-audio-hotspot-forward {
  right: 5%;
}

.station-audio-hotspot-speed {
  top: 83%;
  width: 38%;
  height: 15%;
  border: 0;
}

.station-audio-hotspot-speed-15 {
  left: 10.8%;
}

.station-audio-hotspot-speed-2 {
  right: 9.6%;
}

.station-audio-hotspot-speed.is-active {
  background: rgba(223, 100, 170, 0.14);
  box-shadow: inset 0 0 0 2px rgba(223, 100, 170, 0.72);
  border-radius: 999px;
}

.read-instead {
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: #111;
  background: #f3d6e8;
  overflow: hidden;
}

.read-instead summary {
  min-height: 52px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #111;
  background: #efbddb;
  font-weight: 900;
  list-style: none;
}

.read-instead summary::-webkit-details-marker {
  display: none;
}

.read-instead summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  line-height: 1;
}

.read-instead[open] summary::after {
  content: "−";
}

.read-instead-content {
  --read-text-scale: 1;
  max-height: min(78vh, 820px);
  padding: 12px 16px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  contain: content;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 700px) {
  .read-instead-content {
    max-height: min(68vh, 620px);
  }
}

.read-text-size-controls {
  position: sticky;
  top: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px -16px 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  padding: 10px 16px;
  color: #111;
  background: rgba(243, 214, 232, 0.97);
  backdrop-filter: blur(5px);
}

.read-text-size-controls > span {
  font-size: 0.85rem;
  font-weight: 900;
}

.read-text-size-controls > div {
  display: flex;
  gap: 6px;
}

.read-text-size-controls button {
  min-width: 44px;
  min-height: 40px;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 5px 8px;
  color: #111;
  background: #fff;
  font-weight: 950;
}

.read-text-size-controls button[aria-pressed="true"] {
  color: #fff;
  background: #111;
}

.read-instead-close {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 10px 14px;
  color: #111;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 950;
}

.content-panel .station-credit {
  margin: 0;
}

.station-read-text {
  display: grid;
  gap: 1rem;
}

.read-instead p {
  margin: 0;
  color: #111;
  font-size: calc(1rem * var(--read-text-scale));
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.station-read-text strong {
  font-weight: 950;
}

.station-read-text em {
  font-style: italic;
}

.read-instead .station-credit {
  color: #111;
}

.content-panel .station-credit {
  margin-top: 8px;
  color: #f4d7e8;
  font-weight: 800;
}

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

.media-tile {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
}

.media-tile:nth-child(1) {
  background: linear-gradient(135deg, #df64aa, #bf2f83);
}

.media-tile:nth-child(2) {
  background: linear-gradient(135deg, #b06922, #a43f54);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
  background: transparent;
}

.collection-feed-panel {
  padding: 0;
  overflow: hidden;
}

.collection-feed-panel h3 {
  margin: 0;
  padding: 16px;
}

.rotunde-collection-panel .panel-title-row {
  padding-right: 10px;
}

.collection-refresh-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(223, 100, 170, 0.72);
  border-radius: 50%;
  padding: 0;
  color: #f4d7e8;
  background: rgba(223, 100, 170, 0.16);
  font-size: 1.15rem;
  font-weight: 900;
}

.collection-refresh-button:disabled {
  opacity: 0.55;
}

.collection-open-hint {
  margin: -6px 16px 12px;
  color: #c891b1;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.rotunde-playlist-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  border-color: rgba(223, 100, 170, 0.42);
  background:
    linear-gradient(135deg, rgba(223, 100, 170, 0.2), rgba(17, 17, 17, 0.92) 42%),
    rgba(17, 17, 17, 0.94);
}

.rotunde-playlist-panel h3 {
  color: #fff;
}

.rotunde-playlist-panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.spotify-embed.rotunde-playlist-embed {
  min-height: 352px;
  border-radius: 12px;
  overflow: hidden;
}

.collection-item {
  position: relative;
  min-width: 0;
  background: #171717;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.collection-item img,
.collection-item video {
  width: 100%;
  height: auto;
  max-height: 360px;
  display: block;
  object-fit: contain;
  background: #050505;
}

.collection-item:hover,
.collection-item:focus {
  outline: 3px solid #df64aa;
  outline-offset: -3px;
}

.collection-item > div:last-child {
  padding: 0;
}

.collection-item strong,
.collection-item span {
  display: block;
}

.collection-item p {
  margin: 7px 0;
}

.collection-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.collection-link {
  display: inline-block;
  margin: 7px 0;
  color: #df64aa;
  font-weight: 800;
  word-break: break-word;
}

.collection-link-button {
  border-radius: 8px;
  padding: 10px 14px;
  color: #111;
  background: #df64aa;
  text-decoration: none;
}

.collection-link-button:hover,
.collection-link-button:focus {
  background: #f4d7e8;
}

.link-collection-item {
  display: block;
  padding: 0;
  text-decoration: none;
}

.embed-preview {
  width: 100%;
  min-height: 180px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #df64aa, #bf2f83);
  color: #fff;
  font-weight: 900;
  text-align: center;
  word-break: break-word;
}

.spotify-collection-item {
  min-height: 210px;
  background: #121212;
}

.spotify-embed {
  width: 100%;
  min-height: 180px;
  display: block;
  border: 0;
  background: #121212;
}

.spotify-linked-media {
  align-content: center;
  gap: 0;
  background: #121212;
}

.spotify-linked-media .spotify-embed {
  min-height: min(56vh, 470px);
}

.link-preview {
  background: linear-gradient(135deg, #df64aa, #7b2ff7);
}

.feed-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 7px;
  color: #111;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 900;
}

.text-media,
.audio-media {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #df64aa, #bf2f83);
  color: #fff;
  font-weight: 800;
}

.text-collection-item {
  background: transparent;
}

.text-collection-item.text-tone-1 .text-media {
  background: linear-gradient(135deg, #df64aa, #bf2f83);
}

.text-collection-item.text-tone-2 .text-media {
  background: linear-gradient(135deg, #ff7ac8, #e23aa4);
}

.text-collection-item.text-tone-3 .text-media {
  background: linear-gradient(135deg, #f4d7e8, #df64aa);
  color: #111;
}

.text-collection-item.text-tone-3 .text-post-preview p,
.text-collection-item.text-tone-3 .text-post-preview span {
  color: #111;
}

.text-collection-item.text-tone-4 .text-media {
  background: linear-gradient(135deg, #bf2f83, #9b1b6b);
}

.text-collection-item.text-tone-5 .text-media {
  background: linear-gradient(135deg, #df64aa, #7b2ff7);
}

.text-post-preview,
.text-post-full {
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.text-post-preview span,
.text-post-full span {
  display: block;
}

.text-post-preview p,
.text-post-full p {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.text-post-preview span,
.text-post-full span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 800;
}

.voice-lightbox-card .voice-text-full p,
.voice-lightbox-card .voice-text-full span {
  color: #111;
}

.voice-lightbox-card.voice-fragment-5 .voice-text-full p,
.voice-lightbox-card.voice-fragment-5 .voice-text-full span {
  color: #fff;
}

.date-stamp {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.text-post-preview .date-stamp,
.text-post-full .date-stamp {
  color: rgba(255, 255, 255, 0.78);
}

.text-collection-item.text-tone-3 .date-stamp {
  color: rgba(17, 17, 17, 0.72);
}

.text-post-full {
  width: 100%;
  min-height: min(58vh, 520px);
  padding: 32px;
}

.audio-media audio {
  margin: 0;
}

.collection-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 64px minmax(0, 980px) 64px;
  place-items: center;
  gap: 14px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.86);
}

.collection-feed-lightbox {
  z-index: 130;
}

.lightbox-card {
  width: 100%;
  max-height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #df64aa;
  border-radius: 8px;
  background: #111;
}

.lightbox-media {
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
}

.linked-media {
  width: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

.linked-media:hover,
.linked-media:focus {
  outline: 3px solid #df64aa;
  outline-offset: -3px;
}

.linked-media img {
  width: 100%;
}

.link-media-preview {
  width: 100%;
  min-height: min(58vh, 520px);
  font-size: clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  word-break: break-word;
}

.new-window-hint {
  display: block;
  padding: 10px 14px;
  color: #111;
  background: #df64aa;
  font-size: 0.9rem;
  font-weight: 900;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  display: block;
  object-fit: contain;
}

.lightbox-media .text-media,
.lightbox-media .audio-media {
  width: 100%;
  min-height: min(58vh, 520px);
}

.lightbox-info {
  padding: 16px;
}

.lightbox-info strong,
.lightbox-info span {
  display: block;
}

.lightbox-info p {
  margin: 8px 0;
  color: #e8e8e8;
}

.lightbox-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox-arrow,
.lightbox-close {
  color: #111;
  background-color: #df64aa;
  font-weight: 900;
}

.lightbox-arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  background-color: #df64aa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 116% 116%;
  color: transparent;
  font-size: 0 !important;
  line-height: 1;
  text-align: center;
}

.lightbox-arrow::before {
  content: none;
}

.lightbox-arrow::after {
  content: none;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.voice-lightbox .lightbox-close {
  top: 26px;
  right: 28px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-form input,
.comment-form select,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #050505;
  color: var(--ink);
}

.comment-form input:disabled,
.comment-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-status {
  margin: 0;
  color: #f4d7e8;
  font-size: 0.92rem;
  font-weight: 800;
}

.comment-form input[type="file"] {
  background: #050505;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.consent-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 2px solid #df64aa;
  border-radius: 8px;
  background: #f4d7e8;
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.consent-check span {
  color: #111;
}

.consent-more {
  margin-top: 6px;
}

.consent-more summary {
  width: fit-content;
  color: #111;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.consent-more span {
  display: block;
  margin-top: 6px;
  color: #111;
  font-weight: 700;
}

.consent-check a {
  color: #111;
  font-weight: 900;
}

.consent-check a:hover,
.consent-check a:focus {
  color: #5f0038;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #df64aa;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.respectful-notice {
  max-width: 760px;
  margin: 14px 0 0;
  border: 2px solid #df64aa;
  border-radius: 8px;
  padding: 14px 16px;
  color: #111;
  background: #df64aa;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
}

.respectful-notice.small {
  margin-top: 0;
  font-size: 1rem;
}

.tips-view {
  gap: 22px;
  justify-items: center;
  overflow-x: hidden;
}

.tips-view > div:first-child,
.tips-submit-details,
.tips-view .respectful-notice,
.tips-context {
  width: 100%;
  max-width: 1160px;
}

.tips-view .respectful-notice {
  border-color: #9e0030;
  background: #eb7298;
}

.view-tips .language-toggle {
  border-color: #eb7298;
}

.view-tips .language-toggle button.active,
.view-tips .history-nav button {
  background-color: #eb7298;
}

.view-tips .history-nav button:not(:disabled) {
  box-shadow: 0 8px 22px rgba(158, 0, 48, 0.36);
}

.view-tips .floating-home-button {
  background: #eb7298;
  box-shadow: 0 10px 30px rgba(158, 0, 48, 0.38);
}

.view-tips .floating-home-button img {
  filter: saturate(0.72) hue-rotate(-8deg) brightness(1.03);
}

.tips-view .primary-button {
  color: #111;
  background: #eb7298;
}

.tips-view .consent-check {
  border-color: #9e0030;
  background: #ffd4e2;
}

.tips-view .consent-check input {
  accent-color: #eb7298;
}

.tips-context {
  font-size: 1.08rem;
}

.tips-submit-details {
  justify-self: center;
}

.tips-submit-details > summary {
  width: 100%;
  max-width: 1160px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 3px solid #111;
  border-radius: 18px;
  padding: 12px 16px 12px 18px;
  color: #111;
  background: #fff4bd;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 7px 7px 0 #9e0030;
  list-style: none;
}

.tips-submit-details > summary::-webkit-details-marker {
  display: none;
}

.tips-submit-details > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #111;
  border-radius: 999px;
  color: #111;
  background:
    linear-gradient(#111, #111) center / 16px 5px no-repeat,
    linear-gradient(#111, #111) center / 5px 16px no-repeat,
    #eb7298;
  box-shadow: 3px 3px 0 rgba(158, 0, 48, 0.65);
}

.tips-submit-details[open] > summary {
  margin-bottom: 16px;
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #9e0030;
}

.tips-submit-details[open] > summary::after {
  background:
    linear-gradient(#111, #111) center / 16px 5px no-repeat,
    #eb7298;
}

.tips-submit-panel {
  max-width: 1160px;
  border-color: #eb7298;
}

.tips-frame {
  position: relative;
  width: min(100%, 1160px);
  max-width: 1160px;
  min-height: 620px;
  box-sizing: border-box;
  border: 3px solid #9e0030;
  border-radius: 30px;
  padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(20px, 3vw, 34px) clamp(54px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(148, 78, 22, 0.18) 0 1px, transparent 1px 20px),
    #ffbd59;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.38),
    10px 10px 0 #9e0030;
  overflow: hidden;
}

.tips-frame::before {
  content: "";
  position: absolute;
  inset: 26px auto 26px 20px;
  width: 28px;
  border-right: 2px dashed rgba(158, 0, 48, 0.28);
  background:
    radial-gradient(circle at 50% 18px, #000 0 7px, rgba(255, 244, 189, 0.92) 7.5px 12px, transparent 12.5px) top center / 28px 54px repeat-y;
  opacity: 0.9;
  pointer-events: none;
}

.tips-frame::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 22px;
  background:
    linear-gradient(135deg, transparent 0 9px, rgba(158, 0, 48, 0.24) 9px 11px, transparent 11px 22px) 0 0 / 22px 28px repeat-y,
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.tips-frame-paper {
  position: relative;
  display: grid;
  align-content: start;
  gap: clamp(18px, 3vw, 30px);
  min-height: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.tips-frame-paper::before {
  content: "";
  position: absolute;
  inset: 106px 0 0 0;
  border-radius: 20px;
  background:
    linear-gradient(rgba(158, 0, 48, 0.12) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(158, 0, 48, 0.18), rgba(235, 114, 152, 0.08));
  pointer-events: none;
  z-index: 0;
}

.tips-frame-paper::after {
  content: none;
}

.tips-board-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  margin-bottom: 4px;
  padding: 16px 68px;
  border: 3px solid #111;
  border-radius: 18px;
  color: #111;
  background: #eb7298;
  box-shadow: 6px 6px 0 #9e0030;
}

.tips-board-header::before {
  content: "";
  position: absolute;
  left: 24px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #cbd4ca;
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.14);
}

.tips-board-header::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #cbd4ca;
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.14);
}

.tips-board-header span {
  max-width: 100%;
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: normal;
  font-weight: 900;
  line-height: 0.98;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tips-frame-tools {
  max-width: 880px;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  padding: 10px 28px 0 54px;
}

.tips-frame-tools .search-input {
  color: #111;
  background: rgba(255, 255, 255, 0.78);
}

.tips-frame-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  align-items: start;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 0 28px 28px 54px;
}

.tips-frame-list .tip-thread {
  min-width: 0;
  border: 3px solid #111;
  border-radius: 16px;
  padding: 20px;
  color: #111;
  background: #fff4bd;
  box-shadow: 6px 6px 0 rgba(177, 0, 58, 0.72);
}

.tips-frame-list .tip-thread strong,
.tips-frame-list .tip-thread p,
.tips-frame-list .tip-thread span,
.tips-frame-list .tip-thread time {
  color: #111;
}

.tips-frame-list .tip-thread p {
  font-size: 1rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.tips-frame-list .reply-details {
  border-top-color: rgba(17, 17, 17, 0.28);
}

.tips-frame-list .reply-details summary {
  color: #9e0030;
}

.tips-frame-list .reply-list {
  border-left-color: #9e0030;
}

.tips-frame-list .reply-form input,
.tips-frame-list .reply-form textarea {
  color: #111;
  background: rgba(255, 255, 255, 0.72);
}

.tips-empty-state {
  grid-column: 1 / -1;
  color: #111;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-card {
  position: relative;
  padding: 14px;
}

.pinned-marker {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #df64aa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.pinned-marker::before {
  content: none;
}

.pinned-marker::after {
  content: none;
}

.collection-item .pinned-marker,
.voice-card .pinned-marker,
.board-card .pinned-marker {
  top: 14px;
  right: 14px;
}

.voice-card .media-open-hint,
.collection-item .media-open-hint {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 5;
  display: block;
  width: auto;
  max-width: calc(100% - 56px);
  margin: 0;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff !important;
  background: rgba(5, 5, 5, 0.78);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.1;
  pointer-events: none;
}

.pin-admin-button.is-pinned {
  color: #111;
  background: #eb7298;
}

.comment-card p {
  margin: 7px 0 0;
  color: #e8e8e8;
}

.comment-card .prompted-comment {
  color: #f4d7e8;
  font-size: 1.08rem;
  font-weight: 800;
}

.prompted-comment span {
  color: #cfcfcf;
  font-weight: 700;
}

.education-mindmap-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 52px);
  border-color: rgba(232, 114, 170, 0.55);
  background: rgba(20, 16, 19, 0.96);
}

.education-mindmap-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: #f3b5d5;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.education-mindmap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(25px, 4vw, 46px);
  justify-items: center;
}

.education-mindmap-cloud {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(15px, 2.4vw, 30px);
}

.education-mindmap-center {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  aspect-ratio: 777 / 361;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 58px);
  color: #24101d;
  background: url("./assets/ui/education-gradient-block.png") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  font-weight: 950;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
  transform: rotate(-1deg);
}

.education-mindmap-answer {
  position: relative;
  width: min(100%, 340px);
  padding: clamp(18px, 2.6vw, 29px);
  color: #27121f;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 42% 58% 52% 48% / 56% 43% 57% 44%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.education-mindmap-answer p {
  margin: 0;
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 850;
  line-height: 1.3;
}

.education-mindmap-answer > span:last-child {
  display: block;
  margin-top: 10px;
  color: rgba(36, 16, 29, 0.68);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.education-mindmap-answer-1 {
  background: #f66fbd;
  transform: rotate(-2.5deg);
}

.education-mindmap-answer-2 {
  background: #fa86ae;
  transform: rotate(2deg) translateY(10px);
}

.education-mindmap-answer-3 {
  background: #ff9998;
  transform: rotate(-1deg) translateY(-5px);
}

.education-mindmap-answer-4 {
  background: #ffad8a;
  transform: rotate(2.7deg);
}

.education-mindmap-answer-5 {
  background: #ffc476;
  transform: rotate(-2deg) translateY(7px);
}

.education-mindmap-answer-6 {
  background: #ffd863;
  transform: rotate(1.2deg) translateY(-7px);
}

.education-mindmap-answer .pinned-marker {
  top: 12px;
  right: 16px;
}

.education-mindmap-empty {
  gap: 20px;
}

.education-mindmap-empty .empty-state {
  margin: 0;
}

.station-view-station-1 {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.station-view-station-1 .station-grid {
  grid-template-columns: minmax(0, 1fr);
}

.station-view-station-1 .station-grid > * {
  width: 100%;
  min-width: 0;
}

.station-view-station-1 .education-mindmap-center {
  width: min(92%, 560px);
}

.station-view-station-1 .education-mindmap-answer {
  width: min(92%, 340px);
}

@media (max-width: 720px) {
  .education-mindmap-panel {
    padding: 22px 16px 28px;
  }

  .education-mindmap {
    gap: 22px;
  }

  .education-mindmap-center {
    order: -1;
    width: min(100%, 440px);
    padding: 25px 18px;
  }

  .education-mindmap-cloud {
    gap: 13px;
  }

  .education-mindmap-answer {
    width: min(94%, 420px);
    border-radius: 24px 34px 25px 32px;
    transform: rotate(-1deg);
  }

  .education-mindmap-answer:nth-child(even) {
    transform: rotate(1deg);
  }
}

.tip-thread {
  display: grid;
  gap: 10px;
}

.tips-frame-list > .tip-thread[hidden] {
  display: none;
}

.reply-details {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.reply-details summary {
  width: fit-content;
  color: #df64aa;
  font-weight: 800;
  cursor: pointer;
}

.reply-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid rgba(223, 100, 170, 0.45);
}

.tip-reply-card {
  margin-left: 10px;
  border-left: 6px solid #df64aa;
  background: rgba(244, 215, 232, 0.12);
}

.tip-reply-label {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  color: #111;
  background: #df64aa;
  font-size: 0.76rem;
  font-weight: 900;
}

.reply-form {
  margin-top: 12px;
}

.reply-form textarea {
  min-height: 88px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status.approved {
  color: #111;
  background: #f4d7e8;
}

.status.pending {
  color: #7a4614;
  background: #f7e2c7;
}

.status.deleted {
  color: #111;
  background: #d7d7d7;
}

.admin-report-notice {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border-left: 4px solid #b42318;
  border-radius: 4px;
  padding: 12px 14px;
  color: #52120d;
  background: #fff0ed;
}

.admin-report-notice strong,
.admin-report-notice span,
.admin-report-notice small {
  color: inherit;
}

.admin-search {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-weight: 800;
}

.admin-search input {
  width: 100%;
  border: 1px solid rgba(223, 100, 170, 0.55);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #050505;
  font: inherit;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-deletion-code-panel {
  display: grid;
  gap: 14px;
  margin: 0 16px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(223, 100, 170, 0.55);
  border-radius: 8px;
  color: #111;
  background: #f8f6f2;
}

.admin-deletion-code-panel h3,
.admin-deletion-code-panel p {
  margin: 0;
}

.admin-deletion-code-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-deletion-code-panel label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.admin-deletion-code-panel input {
  width: 100%;
  border: 1px solid rgba(82, 18, 63, 0.45);
  border-radius: 8px;
  padding: 12px 14px;
  color: #111;
  background: #fff;
  font: inherit;
  text-transform: uppercase;
}

.admin-deletion-code-status {
  font-weight: 800;
}

.admin-deletion-code-result {
  color: var(--ink);
}

@media (max-width: 620px) {
  .admin-deletion-code-panel form {
    grid-template-columns: 1fr;
  }
}

.admin-storage-panel {
  display: grid;
  gap: 16px;
  margin: 0 16px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(223, 100, 170, 0.38);
  border-radius: 8px;
  color: #111;
  background: #f8f6f2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.admin-storage-panel > p,
.admin-storage-panel h3,
.admin-storage-panel-heading p,
.admin-storage-footnote {
  margin: 0;
}

.admin-storage-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-storage-panel-heading > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-storage-panel-heading h3 {
  font-size: 1.2rem;
}

.admin-storage-panel-heading p,
.admin-storage-footnote {
  color: #5d555a;
  font-size: 0.86rem;
  line-height: 1.4;
}

.admin-storage-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-storage-meter {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 6px;
  background: #fff;
}

.admin-storage-meter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-storage-meter-heading > div {
  display: grid;
  gap: 2px;
}

.admin-storage-meter-heading span,
.admin-storage-meter small {
  color: #635b60;
  font-size: 0.8rem;
  font-weight: 750;
}

.admin-storage-meter-heading > span {
  flex: 0 0 auto;
  text-align: right;
}

.admin-storage-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e3e5;
}

.admin-storage-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #72a477;
  transition: width 220ms ease;
}

.admin-storage-meter.is-warning .admin-storage-track > span {
  background: #d6a73d;
}

.admin-storage-meter.is-critical .admin-storage-track > span {
  background: #c14d58;
}

@media (max-width: 640px) {
  .admin-storage-panel-heading,
  .admin-storage-meter-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-storage-meter-heading > span {
    text-align: left;
  }
}

.admin-trash-button {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.admin-trash-button:hover,
.admin-trash-button:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.admin-trash-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.admin-trash-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-trash-button span {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #050505;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-trash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.admin-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(244, 215, 232, 0.42);
  border-radius: 8px;
  padding: 10px;
  background: rgba(244, 215, 232, 0.08);
}

.admin-trash-select-all,
.admin-trash-select {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff;
  font-weight: 850;
}

.admin-trash-select-all {
  border: 1px solid rgba(244, 215, 232, 0.5);
  border-radius: 8px;
  padding: 9px 11px;
  background: #151515;
}

.admin-trash-select input,
.admin-trash-select-all input {
  width: 22px;
  height: 22px;
  accent-color: var(--pink);
}

.admin-accordion-list {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.admin-overview-item {
  --admin-section-color: #df64aa;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #3b3b3b;
  border-left: 7px solid var(--admin-section-color);
  border-radius: 6px;
  padding: 10px 11px;
  color: #fff;
  background: #151515;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-overview-item[aria-pressed="true"],
.admin-overview-item:hover,
.admin-overview-item:focus-visible {
  border-color: var(--admin-section-color);
  background: #202020;
}

.admin-overview-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.admin-overview-item span {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.15;
}

.admin-overview-item strong {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--admin-section-color);
  font-size: 0.86rem;
}

.admin-trash-page-list {
  gap: 12px;
}

.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px dashed rgba(255, 209, 102, 0.65);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.12);
}

.admin-table {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(223, 100, 170, 0.34);
  border-radius: 8px;
  padding: 16px;
  background: rgba(17, 17, 17, 0.72);
}

.admin-accordion {
  --admin-section-color: #df64aa;
  position: relative;
  border-color: rgba(223, 100, 170, 0.32);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.82);
}

.admin-pending,
.admin-overview-pending {
  --admin-section-color: #ffd166;
}

.admin-comments,
.admin-overview-comments {
  --admin-section-color: #f4d7e8;
}

.admin-collection,
.admin-overview-collection {
  --admin-section-color: #df64aa;
}

.admin-board,
.admin-overview-board {
  --admin-section-color: #fff1a8;
}

.admin-tips,
.admin-overview-tips {
  --admin-section-color: #c8efbd;
}

.admin-voices,
.admin-overview-voices {
  --admin-section-color: #f08bc5;
}

.admin-studentspace-stickers,
.admin-overview-studentspace-stickers {
  --admin-section-color: #9ad5ff;
}

.admin-studentspace-gallery,
.admin-overview-studentspace-gallery {
  --admin-section-color: #c7b4f4;
}

.admin-accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  color: #111;
  background: var(--admin-section-color);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px 10px 42px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  position: relative;
  list-style: none;
}

.admin-accordion summary::-webkit-details-marker {
  display: none;
}

.admin-accordion summary::before {
  content: "▾";
  position: absolute;
  left: 16px;
  top: 50%;
  color: #111;
  font-size: 1rem;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.16s ease;
}

.admin-accordion[open] summary::before {
  transform: translateY(-50%) rotate(0deg);
}

.admin-accordion-heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-accordion-heading > span {
  line-height: 1.15;
}

.admin-accordion-heading small {
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.2;
}

.admin-accordion summary > .admin-accordion-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: rgba(255, 255, 255, 0.7);
}

.admin-accordion-content {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.admin-accordion[open] {
  margin-bottom: 0;
}

.admin-accordion[open] summary {
  border-radius: 8px 8px 4px 4px;
}

.admin-deleted summary {
  background: #d7d7d7;
}

.admin-table h3 {
  margin: 0;
  color: #df64aa;
  font-size: 1.2rem;
}

.admin-table h4 {
  margin: 12px 0 0;
  color: #df64aa;
  font-size: 1rem;
}

.voices-admin-section {
  border-color: #df64aa;
  background: rgba(223, 100, 170, 0.08);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.about-us-panel {
  grid-column: span 2;
}

.source-interviewees {
  color: #e8e8e8;
  line-height: 1.65;
}

.source-interviewees > p {
  margin-bottom: 10px;
}

.source-interviewees-list {
  display: grid;
  gap: 10px;
}

.source-interviewee-item {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(223, 100, 170, 0.75);
}

.source-interviewee-item strong,
.source-interviewee-item span {
  display: block;
}

.about-us-photo {
  min-height: 230px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border: 1px dashed #df64aa;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(223, 100, 170, 0.08);
  font-weight: 700;
}

@media (min-width: 921px) and (min-height: 650px) and (orientation: landscape) {
  .station-view[class*="station-view-station-"] {
    max-width: 980px;
  }

  .station-view[class*="station-view-station-"] .audio-guide-unit,
  .station-view[class*="station-view-station-"] .station-route-note {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .admin-view:has(> .legal-grid > .about-us-panel) {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
  }

  .legal-grid:has(> .about-us-panel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid:has(> .about-us-panel) > .ai-statement-panel,
  .legal-grid:has(> .about-us-panel) > .privacy-notice {
    grid-column: 1 / -1;
  }

  .legal-grid:has(> .about-us-panel) > .about-us-panel {
    grid-column: auto;
  }
}

.link-panel {
  color: var(--ink);
  text-decoration: none;
}

.link-panel:hover,
.link-panel:focus {
  border-color: var(--green);
  background: rgba(223, 100, 170, 0.14);
}

.privacy-contact-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  border: 2px solid #df64aa;
  border-radius: 8px;
  padding: 14px 16px;
  background: #f4d7e8;
  color: #111 !important;
  font-weight: 900;
}

.privacy-contact-note strong,
.privacy-contact-note a {
  color: #111;
}

.privacy-contact-note a {
  width: fit-content;
  font-size: 1.08rem;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.privacy-contact-note a:hover,
.privacy-contact-note a:focus {
  color: #5b0030;
}

.admin-row {
  --admin-rubric-color: #df64aa;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 8px solid var(--admin-rubric-color);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.admin-row.admin-row-selectable {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-row.admin-row-selectable.is-selected {
  border-color: #f4d7e8;
  background: rgba(244, 215, 232, 0.12);
}

.admin-item-select {
  align-self: start;
  display: grid;
  place-items: center;
  padding-top: 2px;
  cursor: pointer;
}

.admin-item-select input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.admin-row-comments {
  --admin-rubric-color: #f4d7e8;
}

.admin-row-collection {
  --admin-rubric-color: #df64aa;
}

.admin-row-board {
  --admin-rubric-color: #fff7c9;
}

.admin-board-thread {
  display: grid;
  gap: 10px;
}

.admin-board-replies {
  position: relative;
  display: grid;
  gap: 10px;
  margin-left: 28px;
  padding-left: 18px;
  border-left: 3px solid #fff7c9;
}

.admin-thread-label,
.admin-parent-context {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #111 !important;
  background: #fff7c9;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-row-reply {
  background:
    linear-gradient(90deg, rgba(255, 247, 201, 0.12), rgba(244, 215, 232, 0.06)),
    var(--surface);
}

.admin-row-tips {
  --admin-rubric-color: #e3ffd9;
}

.admin-row-voices {
  --admin-rubric-color: #e4379b;
}

.admin-row-deleted {
  --admin-rubric-color: #8a8a8a;
}

.admin-row-deleted {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-row-deleted.is-selected {
  border-color: #f4d7e8;
  background: rgba(244, 215, 232, 0.12);
}

.deleted-retention-note {
  color: #bdbdbd !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-row p {
  margin: 7px 0;
  color: #e8e8e8;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions button[disabled] {
  cursor: wait;
  opacity: 0.72;
  filter: grayscale(0.15);
}

.admin-row.is-admin-busy {
  opacity: 0.82;
}

.storage-status {
  width: fit-content;
  margin: 12px 0 0;
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 10px 12px;
  color: #111;
  background: #f4d7e8;
  font-weight: 800;
}

.admin-view .storage-status {
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
}

.storage-status-online {
  background: #e3ffd9;
  border-color: #e3ffd9;
}

.admin-preview {
  max-width: 320px;
  margin-top: 12px;
}

.admin-preview img,
.admin-preview video {
  width: 100%;
  max-height: 180px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-row-studentspace-sticker .admin-preview {
  width: 100%;
}

.admin-row-studentspace-sticker .admin-preview img {
  height: clamp(220px, 38vw, 320px);
  max-height: none;
  padding: 12px;
  object-fit: contain;
  background: #f7f7f3;
  border-color: #d6d6d0;
}

.admin-preview .text-media,
.admin-preview .audio-media {
  min-height: 96px;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .sidebar {
    min-height: auto;
    padding: 18px;
    gap: 12px;
  }

  .floor-nav {
    margin-top: 12px;
  }

  .map-main {
    padding-top: 24px;
  }

  .floor-list {
    grid-template-columns: 1fr;
  }

  .admin-button {
    margin-top: 0;
  }

  .map-layout,
  .station-grid,
  .collection-layout,
  .studentspace-layout,
  .board-layout,
  .voices-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .about-us-panel {
    grid-column: auto;
  }

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

  .collection-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 18px;
  }

  .tips-frame-list {
    grid-template-columns: 1fr;
  }

  .voice-lightbox {
    padding: 96px 18px 18px;
  }

  .voice-feed-lightbox {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 34px minmax(0, 1fr) 34px auto;
    gap: 8px;
    padding: 76px 14px 18px;
  }

  .voice-feed-lightbox .voice-lightbox-card,
  .collection-feed-lightbox .collection-lightbox-card {
    grid-column: 1;
    grid-row: 2;
    max-height: calc(100vh - 128px);
  }

  .voice-feed-nav {
    width: 48%;
    height: 34px;
    justify-self: center;
    border-radius: 999px;
    background-image: none;
    color: #111;
    font-size: 1.1rem;
    opacity: 0.58;
  }

  .voice-feed-nav-up {
    grid-column: 1;
    grid-row: 1;
  }

  .voice-feed-nav-down {
    grid-column: 1;
    grid-row: 3;
  }

  .voice-feed-hint {
    grid-column: 1;
    grid-row: 4;
  }

  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 0 !important;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: clip;
  }

  .asw-container .asw-widget .asw-menu-btn,
  .asw-container .asw-menu-btn,
  .asw-widget .asw-menu-btn,
  button.asw-menu-btn {
    left: max(14px, env(safe-area-inset-left)) !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
  }

  body.station-background-active::before {
    filter: none;
    opacity: 0.72;
  }

  .content-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .station-audio-controls {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }

  .station-audio-art,
  .station-audio-controls-art {
    width: 100%;
    max-width: 100%;
  }

  .station-audio-timeline {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    width: calc(100% - 12px);
    max-width: 100%;
    margin-top: 6px;
    padding-inline: 10px;
    gap: 8px;
  }

  .station-audio-time {
    font-size: 0.78rem;
  }

  .station-audio-progress {
    height: 38px;
  }

  .station-audio-progress::before {
    height: 13px;
  }

  .station-audio-progress::after {
    width: 30px;
    height: 30px;
  }

  .archive-glossary-grid {
    grid-template-columns: 1fr;
  }

  .welcome-screen {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 64px 16px 84px;
    place-items: center;
  }

  .intro-screen {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    padding: clamp(58px, 7dvh, 76px) 16px clamp(86px, 10dvh, 112px);
    overflow: hidden;
  }

  .welcome-content {
    width: min(100%, 360px);
    gap: 14px;
  }

  .welcome-content h1 {
    font-size: clamp(2.2rem, 12vw, 3.45rem);
    line-height: 0.98;
  }

  .welcome-content .install-hint {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .welcome-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .start-button,
  .main-start-button,
  .board-start-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.15;
  }

  .main-start-button {
    min-height: 58px;
    font-size: 1.1rem;
  }

  .board-start-button {
    min-height: 56px;
    font-size: 1.05rem;
    box-shadow: 0 10px 22px rgba(223, 100, 170, 0.2);
  }

  .welcome-actions .link-start-button:not(.board-start-button),
  .welcome-actions .secondary-start-button {
    width: 82%;
    min-height: 42px;
    justify-self: center;
    padding: 8px 12px;
    font-size: 0.88rem;
    line-height: 1.12;
  }

  .welcome-secondary-links {
    max-width: 100%;
  }

  .intro-screen .welcome-content {
    width: min(100%, 360px);
    justify-self: center;
    margin-inline: auto;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.34);
  }

  .intro-screen .welcome-content h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 1.08;
  }

  .intro-screen .welcome-content p {
    font-size: clamp(1rem, 4.4vw, 1.28rem);
  }

  .rotundenrum-title {
    margin-top: 0.1em;
    font-size: 1.06em;
    white-space: nowrap;
  }

  .welcome-content .intro-hint {
    font-size: 0.98rem;
    line-height: 1.38;
  }

  .intro-screen .main-start-button {
    min-height: 54px;
    font-size: 1.08rem;
  }

  .main {
    width: 100%;
    padding: 20px max(16px, env(safe-area-inset-right)) 150px max(16px, env(safe-area-inset-left));
  }

  .app-shell.view-station .main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .app-shell.view-station .main.station-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.view-station .main.station-main-studentspace {
    display: grid;
    justify-items: center;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .map-main {
    padding-top: 20px;
  }

  .floating-language {
    right: 14px;
    top: max(14px, calc(10px + env(safe-area-inset-top)));
  }

  .station-view,
  .admin-view {
    padding-top: 64px;
  }

  .section-title-row {
    display: grid;
    gap: 18px;
    align-items: stretch;
  }

  .section-title-action {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .history-nav {
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 7px;
  }

  .floating-home-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .history-nav button {
    width: 42px;
    height: 42px;
  }

  .history-nav button::before {
    left: 11px;
    right: 11px;
  }

  .history-nav [data-history-back]::after {
    left: 10px;
  }

  .history-nav [data-history-forward]::after {
    right: 10px;
  }

  .map-translation-label {
    top: 12px;
    left: 12px;
    padding: 8px 10px;
  }

  .floor-arrows {
    gap: 6px;
  }

  .floor-arrow {
    min-width: 92px;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .station-view {
    width: min(100%, calc(100vw - 32px));
    max-width: 760px;
    min-height: calc(100vh - 40px);
    margin-inline: auto;
    padding: 0;
    transform: none;
  }

  .station-view.station-view-station-5-new,
  .station-view.station-view-studentspace {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    justify-self: center;
  }

  .station-main-studentspace .station-view-studentspace,
  .station-main-studentspace .studentspace-station-body,
  .station-main-studentspace .studentspace-game {
    width: 100%;
    max-width: 100%;
    justify-self: center;
    margin-inline: auto;
  }

  .studentspace-gallery-lightbox {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .station-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .station-grid > * {
    width: 100%;
    max-width: 100%;
  }

  .station-view-station-5-new .station-grid,
  .station-view-station-5-new .station-grid > *,
  .station-view-station-5-new .studentspace-game,
  .station-view-studentspace .station-grid,
  .station-view-studentspace .station-grid > *,
  .station-view-studentspace .studentspace-game {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .station-navigation-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 48px;
    align-items: start;
    padding-top: 58px;
    padding-right: 0;
  }

  .station-navigation-actions > .back-button,
  .next-station-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1;
    white-space: normal;
    align-self: start;
  }

  .next-station-button {
    margin-left: 0;
  }

  .station-next-action {
    margin-top: 22px;
    padding-top: 18px;
  }

  .station-next-action .next-station-button {
    width: 100%;
    flex-basis: 100%;
  }

  .studentspace-game {
    width: 100%;
    max-width: none;
    justify-self: center;
    padding: 16px;
  }

  .studentspace-game-header {
    margin-bottom: 14px;
  }

  .studentspace-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .studentspace-controls {
    order: 2;
    width: 100%;
    max-height: none;
  }

  .studentspace-stage-wrap {
    order: 1;
    width: 100%;
    min-width: 0;
    justify-self: center;
  }

  .studentspace-gallery-jump {
    min-height: 56px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .studentspace-gallery > summary {
    min-height: 76px;
    padding: 18px 58px 18px 18px;
    font-size: 1.05rem;
  }

  .studentspace-room {
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .studentspace-live-tools {
    position: relative;
    z-index: 9;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  .studentspace-history-tools button {
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    align-items: center;
    padding: 8px 6px;
    font-size: clamp(0.62rem, 2.7vw, 0.78rem);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .studentspace-history-icon {
    grid-column: 1;
    justify-self: center;
    font-size: 1rem;
  }

  .studentspace-history-label {
    grid-column: 2;
    min-width: 0;
    justify-self: center;
    text-align: center;
  }

  .studentspace-history-tools button::after {
    content: "";
    grid-column: 3;
  }

  .studentspace-live-color-group {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
  }

  .studentspace-live-tools > .studentspace-color-controls-compact {
    grid-template-columns: 1fr;
  }

  .studentspace-live-color-group .studentspace-swatches {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px;
    scrollbar-width: none;
  }

  .studentspace-live-color-group .studentspace-swatches::-webkit-scrollbar {
    display: none;
  }

  .studentspace-live-object-tools {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .studentspace-placed-sticker,
  .studentspace-placed-window,
  .studentspace-placed-text,
  .studentspace-placed-note {
    --studentspace-handle-size: 22px;
    --studentspace-handle-offset: -4px;
  }

  .studentspace-placed-sticker {
    --selection-inset: 24%;
    width: clamp(88px, 25%, 160px);
  }

  .studentspace-controls {
    max-height: none;
    overflow: visible;
    order: 2;
  }

  .studentspace-controls > .studentspace-color-controls {
    display: none;
  }

  .studentspace-stage-wrap {
    order: 1;
  }

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

  .studentspace-option {
    min-height: 110px;
    grid-template-rows: minmax(0, 76px) minmax(1.9em, auto);
    gap: 2px;
    padding: 7px;
  }

  .studentspace-option span,
  .studentspace-option svg {
    width: min(100%, 76px);
  }

  .studentspace-option small {
    min-height: 1.9em;
    font-size: 0.62rem;
    line-height: 1.02;
  }

  .studentspace-drawing-overlay {
    align-items: start;
    padding: 10px;
  }

  .studentspace-drawing-dialog {
    max-height: calc(100dvh - 20px);
  }

  .studentspace-gallery-preview-dialog {
    max-height: calc(100dvh - 20px);
    padding-top: 12px;
  }

  .studentspace-gallery-preview-dialog .studentspace-drawing-header {
    padding-top: 40px;
  }

  .studentspace-gallery-preview-image {
    max-height: 52dvh;
  }

  .studentspace-gallery-preview-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .studentspace-drawing-tools {
    grid-template-columns: 1fr;
  }

  .studentspace-drawing-tool-buttons button,
  .studentspace-drawing-actions button {
    flex: 1;
  }

  .studentspace-size-control {
    grid-column: 1 / -1;
    width: 100%;
  }

  .studentspace-size-control input {
    width: 100%;
  }

  .studentspace-reset {
    width: 100%;
  }

  .studentspace-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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

  .studentspace-gallery h4 {
    font-size: 1.25rem;
  }

  .topbar,
  .admin-row {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .admin-item-select {
    justify-self: start;
  }

  .floor-list,
  .media-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-tools,
  .board-feed-panel > .board-tools,
  .voices-feed-panel > .board-tools {
    grid-template-columns: 1fr;
  }

  .tips-submit-details > summary {
    width: 100%;
    max-width: 980px;
    min-width: 0;
    padding: 11px 12px 11px 14px;
    font-size: clamp(0.86rem, 4.1vw, 0.98rem);
    box-shadow: 4px 4px 0 #9e0030;
  }

  .tips-submit-details > summary::after {
    width: 30px;
    height: 30px;
    font-size: 1.25rem;
  }

  .tips-frame {
    width: 100%;
    min-height: 540px;
    margin-inline: auto;
    border-width: 3px;
    border-radius: 22px;
    padding: 14px;
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.34),
      5px 5px 0 #9e0030;
  }

  .tips-frame::before,
  .tips-frame::after {
    content: none;
  }

  .tips-frame-paper {
    gap: 18px;
    padding: 0;
    background: transparent;
  }

  .tips-frame-paper::before {
    inset: 86px 0 0 0;
    border-radius: 16px;
    background:
      linear-gradient(rgba(158, 0, 48, 0.12) 1px, transparent 1px) 0 0 / 100% 42px,
      linear-gradient(90deg, rgba(158, 0, 48, 0.12), rgba(235, 114, 152, 0.06));
  }

  .tips-frame-paper::after {
    top: 12px;
    right: 16px;
    width: 66px;
    height: 20px;
  }

  .tips-board-header {
    min-height: 62px;
    padding: 12px 44px;
    justify-content: center;
    overflow: hidden;
  }

  .tips-board-header::before {
    left: 18px;
    width: 18px;
    height: 18px;
  }

  .tips-board-header::after {
    right: 18px;
    width: 18px;
    height: 18px;
  }

  .tips-board-header span {
    display: block;
    max-width: calc(100% - 12px);
    font-size: clamp(1.18rem, 6.4vw, 1.5rem);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tips-frame-tools {
    max-width: none;
    padding: 8px 10px 0;
  }

  .tips-frame-tools .search-input {
    min-width: 0;
  }

  .tips-frame-tools .search-box input {
    font-size: 16px;
    text-overflow: ellipsis;
  }

  .tips-frame-list {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 10px 22px;
  }

  .tips-frame-list .tip-thread {
    padding: 14px;
    box-shadow: 4px 4px 0 rgba(177, 0, 58, 0.72);
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .voice-card {
    min-height: auto;
    border-radius: 8px;
  }

  .voice-card img {
    max-height: 260px;
    min-height: 0;
    object-fit: contain;
  }

  .voice-card-body {
    padding: 18px 16px 20px;
    gap: 12px;
  }

  .voice-card-body h3 {
    font-size: 1.25rem;
    line-height: 1.12;
  }

  .voice-card-body p {
    font-size: 1.36rem;
    line-height: 1.26;
  }

  .voice-card-meta {
    gap: 6px;
  }

  .voice-card-meta span,
  .voice-card-meta time {
    padding: 4px 8px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .collection-lightbox {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .voice-feed-lightbox {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36px minmax(0, 1fr) 36px auto;
    row-gap: 10px;
    align-items: stretch;
    padding:
      max(70px, calc(56px + env(safe-area-inset-top)))
      14px
      max(14px, env(safe-area-inset-bottom));
  }

  .voice-feed-lightbox .voice-lightbox-card,
  .collection-feed-lightbox .collection-lightbox-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    height: 100%;
    max-height: none;
  }

  .voice-feed-lightbox .lightbox-media {
    position: relative;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .voice-feed-lightbox .lightbox-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .voice-feed-lightbox .lightbox-info {
    position: relative;
    z-index: 1;
    min-height: 0;
    max-height: min(32dvh, 260px);
    overflow-y: auto;
    background: #111;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .voice-feed-lightbox .combined-contribution-media {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
  }

  .voice-feed-nav {
    width: 46%;
    height: 36px;
    justify-self: center;
    border-radius: 999px;
    background-image: none;
    color: #111;
    font-size: 1rem;
    opacity: 0.52;
    box-shadow: none;
  }

  .voice-feed-nav-up {
    grid-column: 1;
    grid-row: 1;
  }

  .voice-feed-nav-down {
    grid-column: 1;
    grid-row: 3;
  }

  .voice-feed-hint {
    grid-column: 1;
    grid-row: 4;
    min-height: 20px;
    margin-top: 2px;
    line-height: 20px;
  }

  .voice-feed-lightbox .lightbox-close {
    top: max(12px, calc(8px + env(safe-area-inset-top)));
    right: max(14px, env(safe-area-inset-right));
  }

  .lightbox-card {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-arrow {
    grid-row: 2;
  }

  .lightbox-arrow-left {
    justify-self: end;
  }

  .lightbox-arrow-right {
    justify-self: start;
  }
}

/* Submission confirmations and locally rendered external-media placeholders. */
.submission-consent { display: grid; gap: .75rem; }
.submission-consent .consent-more summary { color: inherit; }
.submission-consent [hidden] { display: none !important; }
.external-media-placeholder { display: grid; gap: .8rem; padding: 1rem; border: 1px solid currentColor; border-radius: 12px; }
.external-media-placeholder p { margin: 0; }
.submission-privacy-dialog { width: min(90vw, 640px); max-height: 85vh; overflow: auto; color: #f8f6f2; background: #151515; border: 1px solid #df64aa; border-radius: 12px; padding: 1rem; }
.submission-privacy-dialog::backdrop { background: #000a; }
.submission-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  background: rgb(0 0 0 / 68%);
  overscroll-behavior: contain;
  touch-action: none;
}
.submission-upload-overlay[hidden] { display: none; }
.submission-upload-status {
  width: min(100%, 420px);
  padding: 28px 24px;
  color: #151515;
  text-align: center;
  background: #fff7df;
  border: 2px solid #df64aa;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgb(0 0 0 / 38%);
}
.submission-upload-status strong {
  display: block;
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  line-height: 1.3;
}
.submission-upload-status > p { margin: 12px 0 0; font-size: .95rem; }
.submission-upload-progress {
  position: relative;
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  background: rgb(223 100 170 / 22%);
  border: 1px solid rgb(143 48 105 / 45%);
  border-radius: 999px;
}
.submission-upload-progress span {
  position: absolute;
  inset: 0 auto 0 -42%;
  width: 42%;
  background: #df64aa;
  border-radius: inherit;
  animation: submission-upload-progress 1.15s ease-in-out infinite;
}
.submission-upload-overlay.is-success .submission-upload-progress span {
  inset: 0;
  width: 100%;
  animation: none;
}
.submission-upload-overlay.is-error .submission-upload-progress { display: none; }
.submission-upload-error { color: #7b173f; font-weight: 700; }
.submission-upload-status [data-submission-upload-retry] {
  min-height: 48px;
  margin-top: 20px;
  padding: 10px 18px;
  color: #111;
  font: inherit;
  font-weight: 800;
  background: #df64aa;
  border: 2px solid #8f3069;
  border-radius: 8px;
  cursor: pointer;
}
body.submission-upload-active,
body.admin-action-active { overflow: hidden; }
@keyframes submission-upload-progress {
  from { transform: translateX(0); }
  to { transform: translateX(338%); }
}
@media (prefers-reduced-motion: reduce) {
  .submission-upload-progress span { animation-duration: 2.4s; }
}
.combined-contribution-media { display: grid; gap: 1rem; width: 100%; }
.combined-contribution-media img { max-width: 100%; max-height: 60vh; object-fit: contain; }

/* Native disclosure controls retain keyboard support and built-in expanded states. */
.privacy-section + .privacy-section { margin-top: 12px; }
.privacy-section > summary { cursor: pointer; font-weight: 800; }
.privacy-section > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Keep the local Sienna header in the existing Rotunden palette. */
.asw-container .asw-menu-header { background-color: #df64aa !important; }

.board-photo-open { display: block; width: 100%; padding: 0; background: transparent; cursor: zoom-in; }
.board-photo-dialog { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 90dvh; overflow: visible; }
.board-photo-dialog::backdrop { background: #000d; }
.board-photo-dialog > img { display: block; max-width: 94vw; max-height: 82dvh; object-fit: contain; }
.board-photo-close { display: block; margin: 0 0 8px auto; width: 44px; height: 44px; border-radius: 50%; background: #df64aa; color: #111; font-size: 32px; }
@media (max-width: 620px) {
  .app-shell .main { padding-bottom: calc(196px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(196px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .welcome-screen > .language-toggle {
    position: fixed;
    top: max(14px, calc(10px + env(safe-area-inset-top)));
    right: max(14px, env(safe-area-inset-right));
  }
}

/* Preserve user-entered paragraphs without interpreting input as HTML. */
.board-card-body > p,
.board-reply > p,
.voice-card-body > p,
.lightbox-info > p,
.comment-card > p,
.education-mindmap-answer > p,
.text-post-preview > p,
.text-post-full > p,
.studentspace-user-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
