:root {
  --bg: #080607;
  --bg-soft: #100a0d;
  --panel: #171013;
  --panel-strong: #21151a;
  --panel-muted: #0d090b;
  --line: #41252d;
  --line-soft: #2b191e;
  --wine: #842330;
  --wine-bright: #ad3043;
  --gold: #d8b45f;
  --gold-bright: #efcf78;
  --text: #f7efe8;
  --muted: #c2b0a8;
  --dim: #897871;
  --danger: #d7656b;
  --radius: 8px;
  --header-height: 68px;
  --edge: 10px;
  --lux-width: 190px;
  --right-width: 380px;
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--text);
  background: var(--wine-bright);
}

::-moz-selection {
  color: var(--text);
  background: var(--wine-bright);
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(132, 35, 48, .28), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(216, 180, 95, .08), transparent 23%),
    linear-gradient(180deg, #10090c 0, var(--bg) 42%, #050405 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
label,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
label[for],
.gold-button,
.quiet-button,
.user-chip,
.brand {
  -webkit-tap-highlight-color: transparent;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
  background: transparent;
}

button:not(:disabled),
label:has(input[type="file"]:not(:disabled)) {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.is-hidden,
.utility-nodes {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 6, 8, .94);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: calc(100% - (var(--edge) * 2));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 18px;
}

.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 180, 95, .48);
  border-radius: 8px;
  color: var(--gold-bright);
  background: #160f0d;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  color: var(--dim);
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(18, 10, 13, .82);
}

.nav-button,
.quiet-button,
.ghost,
.user-chip,
.icon-button,
.gold-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(18, 11, 14, .74);
  font-weight: 800;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.nav-button {
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
}

.nav-button:hover,
.quiet-button:hover,
.ghost:hover,
.user-chip:hover,
.icon-button:hover {
  border-color: rgba(216, 180, 95, .46);
  color: var(--text);
}

.nav-button.is-active {
  border-color: rgba(173, 48, 67, .62);
  color: var(--text);
  background: rgba(132, 35, 48, .42);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-button.has-feedback {
  border-color: rgba(216, 180, 95, .58);
}

.admin-feedback-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #0a0608;
  border-radius: 999px;
  padding: 0 5px;
  color: var(--text);
  background: var(--wine-bright);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .38);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  color: var(--text);
}

.user-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #211308;
  background: var(--gold);
  font-weight: 900;
}

.page-shell {
  width: calc(100% - (var(--edge) * 2) - var(--lux-width) - 22px);
  max-width: none;
  margin: 0 var(--edge) 0 calc(var(--edge) + var(--lux-width) + 22px);
  padding: 20px 0 60px;
}

body[data-view="profile"] .page-shell,
body[data-view="admin"] .page-shell,
body[data-view="faq"] .page-shell,
body[data-view="placeholder"] .page-shell {
  width: 100%;
  margin-inline: 0;
}

.page-view {
  min-width: 0;
}

.lux-guide {
  position: fixed;
  z-index: 50;
  top: calc(var(--header-height) + 18px);
  left: var(--edge);
  width: var(--lux-width);
  display: grid;
  gap: 10px;
}

.lux-card,
.quick-timer {
  border: 1px solid rgba(216, 180, 95, .28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 10, 13, .96), rgba(5, 4, 4, .96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .36);
}

.lux-card {
  padding: 8px;
}

.lux-bubble {
  position: relative;
  display: block;
  min-height: 35px;
  margin-bottom: 6px;
  border: 1px solid rgba(216, 180, 95, .68);
  border-radius: 6px;
  padding: 8px;
  color: #211308;
  background: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.lux-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--gold-bright);
  transform: translateX(-50%);
}

.lux-mascot {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.lux-mascot img {
  display: block;
  width: calc(100% - 12px);
  height: auto;
  margin: 2px auto 8px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .42));
  transform-origin: 50% 72%;
  transition: transform .22s ease, filter .22s ease;
}

.lux-mascot:hover img,
.lux-mascot:focus-visible img {
  transform: scale(1.045);
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, .5));
}

.lux-guide.is-reacting .lux-mascot img {
  animation: lux-greeting .72s ease-in-out;
}

.lux-guide.is-reacting .lux-bubble {
  animation: lux-bubble-pop .46s ease-out;
}

@keyframes lux-greeting {
  0%, 100% { transform: translateY(0) rotate(0); }
  28% { transform: translateY(-9px) rotate(-4deg); }
  58% { transform: translateY(-3px) rotate(4deg); }
}

@keyframes lux-bubble-pop {
  0% { transform: scale(.92); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.lux-guide .gold-button {
  width: 100%;
}

.quick-timer {
  padding: 11px;
}

.quick-timer-head {
  display: grid;
  gap: 5px;
  text-align: center;
}

.quick-timer-head strong {
  color: var(--gold-bright);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-timer-head output {
  color: var(--text);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 25px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.quick-timer-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 11px;
}

.quick-timer-fields label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.quick-timer-fields input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 2px;
  color: var(--text);
  background: var(--panel-muted);
  font-weight: 800;
  text-align: center;
}

.quick-timer-fields input:disabled {
  color: var(--dim);
  opacity: .72;
}

.quick-timer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.quick-timer-actions button {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel-strong);
  font-size: 17px;
  font-weight: 900;
}

.quick-timer-actions button:first-child {
  border-color: rgba(216, 180, 95, .55);
  color: #211308;
  background: var(--gold);
}

.quick-timer-actions button:hover,
.quick-timer-actions button:focus-visible {
  border-color: var(--gold-bright);
  filter: brightness(1.08);
}

.quick-timer.is-running {
  border-color: rgba(216, 180, 95, .62);
}

.quick-timer.is-finished {
  animation: timer-finished .7s ease-out 2;
}

@keyframes timer-finished {
  0%, 100% { border-color: rgba(216, 180, 95, .28); }
  50% { border-color: var(--wine-bright); box-shadow: 0 0 0 2px rgba(173, 48, 67, .18); }
}

.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(239, 207, 120, .56);
  color: #211308;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 28px rgba(216, 180, 95, .12);
}

.gold-button:hover {
  transform: translateY(-1px);
  color: #160d07;
  background: #f2d47f;
}

.gold-button:disabled,
.quiet-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.wide-button {
  width: 100%;
}

.danger {
  color: #ef9da0;
  border-color: rgba(215, 101, 107, .36);
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-row {
  position: relative;
  width: 100vw;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px calc(-1 * (var(--edge) + var(--lux-width) + 22px));
}

.hero-copy {
  text-align: center;
}

.hero-copy h1,
.section-heading h1,
.admin-head h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.hero-copy p,
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-stats {
  position: absolute;
  top: 50%;
  right: var(--edge);
  width: var(--right-width);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  transform: translateY(-50%);
}

.hero-stats article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(17, 10, 13, .7);
}

.hero-stats strong {
  display: block;
  font-size: 21px;
}

.hero-stats span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.catalog-panel,
.selected-panel,
.event-viewer,
.room-panel,
.event-messages-panel,
.profile-card,
.manager-panel,
.admin-panel,
.auth-card,
.placeholder-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 11, 14, .82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.catalog-panel {
  overflow: hidden;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(30, 17, 22, .72);
}

.search-field {
  position: relative;
  display: block;
}

.search-field > span {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1;
  color: var(--gold);
  font-size: 20px;
}

.search-field input,
.auth-form input,
.api-details input,
.admin-create input,
.room-link-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text);
  background: #0b0709;
}

input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 95, .12);
}

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

.search-field input {
  padding-left: 44px;
}

.icon-button {
  width: 48px;
  padding: 0;
  font-size: 22px;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.showcase-card,
.file-card {
  min-width: 0;
  min-height: 245px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 100%, rgba(216, 180, 95, .11), transparent 30%),
    linear-gradient(180deg, #181014, #100b0d);
  text-align: left;
}

.showcase-card:hover,
.showcase-card.is-active,
.file-card:hover,
.file-card.is-active {
  border-color: rgba(216, 180, 95, .62);
  background:
    radial-gradient(circle at 88% 100%, rgba(216, 180, 95, .14), transparent 30%),
    linear-gradient(180deg, #1d1516, #120c0f);
}

.admin-user-card.is-active {
  border-color: rgba(216, 180, 95, .62);
  background: rgba(216, 180, 95, .08);
}

.showcase-card strong,
.file-card strong {
  color: var(--text);
  font-size: 23px;
  line-height: 1.15;
}

.showcase-card > span,
.file-card > span {
  color: var(--muted);
  line-height: 1.5;
}

.showcase-card small,
.file-card small {
  color: var(--dim);
  font-size: 12px;
}

.showcase-meta,
.card-footer {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.public-chip,
.showcase-chip,
.conduct-chip,
.count-chip,
.role-dot {
  width: max-content;
  border: 1px solid rgba(216, 180, 95, .28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(216, 180, 95, .07);
  font-size: 11px;
  font-weight: 900;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions button {
  min-height: 38px;
  flex: 1;
}

.selected-panel {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  overflow: hidden;
}

.focus-media {
  min-height: 142px;
  display: grid;
  align-content: end;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(216, 180, 95, .16), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(132, 35, 48, .42), transparent 34%),
    #25161b;
}

.focus-media span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 180, 95, .42);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(8, 6, 7, .66);
  font-weight: 900;
}

.focus-body {
  padding: 18px;
}

.focus-body h2 {
  margin-bottom: 9px;
  font-size: 27px;
  line-height: 1.12;
}

.focus-body > p:not(.conduct-meta) {
  min-height: 67px;
  color: var(--muted);
  line-height: 1.5;
}

#activeMeta:empty {
  display: none;
}

.conduct-meta {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.focus-summary {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
  background: rgba(9, 6, 7, .34);
}

.focus-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.focus-summary strong {
  max-width: 58%;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-viewer,
.room-panel,
.event-messages-panel {
  margin-top: 22px;
  overflow: hidden;
}

.event-page > .room-panel {
  margin: 22px 20px;
  box-shadow: none;
}

.event-page-head,
.room-head,
.event-messages-head,
.manager-head,
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(30, 17, 22, .68);
}

.event-page-head h2,
.room-head h2,
.event-messages-head h2,
.manager-head h2 {
  margin-bottom: 6px;
  font-size: 27px;
}

.event-page-head p,
.room-head p,
.manager-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.event-page-actions,
.room-actions,
.manager-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.event-page-actions .update-button input,
.manager-actions input,
.profile-actions input {
  display: none;
}

.event-page-actions > button,
.event-page-actions > .update-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.editor-dialog {
  width: min(560px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: #140c10;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62);
}

.editor-dialog::backdrop {
  background: rgba(5, 2, 4, .82);
  backdrop-filter: blur(4px);
}

.editor-dialog-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.editor-dialog-head h2 {
  margin: 5px 0 0;
  font-size: 28px;
}

.editor-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.editor-field textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  resize: vertical;
  color: var(--text);
  background: #0b0709;
}

.editor-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text);
  background: #0b0709;
}

.editor-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 180, 95, .12);
}

.editor-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tutorial-view {
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.tutorial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.tutorial-heading h1 {
  margin: 6px 0 4px;
  font-size: 48px;
}

.tutorial-heading p {
  margin: 0;
  color: var(--muted);
}

.tutorial-heading-actions,
.tutorial-actions,
.tutorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tutorial-total {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--dim);
  background: rgba(18, 10, 13, .78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-total strong {
  color: var(--text);
  font-size: 18px;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(16, 9, 12, .76);
}

.tutorial-catalog {
  border-right: 1px solid var(--line-soft);
  background: rgba(24, 13, 17, .72);
}

.tutorial-search {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.tutorial-search > span {
  left: 29px;
  top: 25px;
}

.tutorial-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px 0 44px;
  color: var(--text);
  background: #0b0709;
}

.tutorial-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.tutorial-list-item {
  width: 100%;
  display: grid;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 15px;
  color: var(--text);
  background: rgba(12, 7, 9, .54);
  text-align: left;
}

.tutorial-list-item:hover {
  border-color: rgba(216, 180, 95, .34);
  background: rgba(216, 180, 95, .05);
}

.tutorial-list-item.is-active {
  border-color: rgba(216, 180, 95, .62);
  background: linear-gradient(135deg, rgba(216, 180, 95, .09), rgba(132, 35, 48, .12));
}

.tutorial-list-item strong {
  font-size: 17px;
  line-height: 1.25;
}

.tutorial-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.tutorial-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tutorial-draft {
  color: var(--gold-bright);
}

.tutorial-reader {
  min-width: 0;
  background: #0d080a;
}

.tutorial-empty {
  min-height: 720px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.tutorial-empty h2,
.tutorial-empty p {
  margin: 0;
}

.tutorial-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(115deg, rgba(74, 18, 28, .34), rgba(20, 12, 15, .76));
}

.tutorial-document-head h2 {
  margin: 6px 0;
  font-size: 30px;
}

.tutorial-document-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tutorial-actions {
  justify-content: flex-end;
}

.tutorial-actions > button,
.tutorial-actions > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tutorial-actions input {
  display: none;
}

.tutorial-meta {
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 12px;
}

.tutorial-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tutorial-meta strong,
.tutorial-visibility {
  color: var(--text);
}

.tutorial-visibility.is-draft {
  color: var(--gold-bright);
}

.tutorial-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #0d080a;
}

.tutorial-versions {
  border-top: 1px solid var(--line-soft);
  padding: 20px 24px 24px;
  background: rgba(20, 11, 15, .82);
}

.tutorial-file-field {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(216, 180, 95, .42);
  border-radius: 6px;
  padding: 14px;
  color: var(--muted);
  background: rgba(216, 180, 95, .04);
  font-weight: 800;
}

.tutorial-file-field input {
  color: var(--text);
}

.tutorial-dialog .check-field {
  justify-self: start;
}

.owner-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 14px;
}

.event-detail-grid,
.room-grid,
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
}

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

.event-detail-grid article,
.room-grid article,
.profile-stats article {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 12px;
  background: rgba(8, 6, 7, .38);
}

.event-detail-grid span,
.room-grid span,
.profile-stats span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-detail-grid strong,
.room-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-shell {
  position: relative;
  min-height: 68vh;
  border-top: 1px solid var(--line-soft);
  background: #090607;
}

.frame-shell iframe {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
  background: #0d090b;
}

.empty-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #0c0a0b;
}

.empty-mark,
.error-code {
  color: var(--gold);
  font-weight: 900;
}

.room-grid {
  grid-template-columns: 1fr 1fr minmax(280px, 2fr);
}

.room-link-card input {
  min-height: 38px;
}

.event-messages-list,
.admin-logs-list {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
}

.section-heading {
  max-width: 760px;
  margin: 8px auto 22px;
  text-align: center;
}

.profile-card,
.manager-panel,
.admin-panel {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
}

.profile-card {
  padding: 24px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-main h2 {
  margin: 6px 0;
  font-size: 30px;
}

.profile-main p {
  margin: 0;
  color: var(--muted);
}

.avatar-shell {
  position: relative;
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, .46);
  border-radius: 50%;
  color: #211308;
  background: var(--gold);
  font-size: 32px;
  font-weight: 900;
}

.avatar-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-shell img:not([src]),
.avatar-shell img[src=""] {
  display: none;
}

.profile-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-inline: 0;
}

.profile-stats strong {
  font-size: 25px;
}

.version-panel {
  border-top: 1px solid var(--line-soft);
  padding: 18px 20px;
}

.version-head,
.version-row {
  display: flex;
  align-items: center;
}

.version-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.version-head h3 {
  margin: 4px 0 0;
  font-size: 21px;
}

.version-list {
  display: grid;
  gap: 8px;
}

.version-row {
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(8, 6, 7, .38);
}

.version-row.is-current {
  border-color: rgba(216, 180, 95, .48);
  background: rgba(216, 180, 95, .07);
}

.version-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 180, 95, .34);
  border-radius: 50%;
  color: var(--gold-bright);
  font-weight: 900;
}

.version-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.version-copy span {
  color: var(--dim);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .lux-mascot img,
  .lux-guide.is-reacting .lux-mascot img,
  .lux-guide.is-reacting .lux-bubble {
    animation: none;
  }
}

.manager-head {
  border-radius: var(--radius) var(--radius) 0 0;
}

.drop-zone {
  margin: 16px 20px 0;
  border: 1px dashed rgba(216, 180, 95, .38);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(216, 180, 95, .04);
  text-align: center;
}

.drop-zone strong,
.drop-zone span {
  display: block;
}

.drop-zone.is-over {
  border-color: var(--gold-bright);
  background: rgba(216, 180, 95, .1);
}

.file-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.file-card {
  min-height: 190px;
}

.auth-card {
  width: min(420px, 100%);
  margin: 0;
  display: block;
  padding: 26px;
}

.auth-stage {
  width: min(1120px, 100%);
  display: none;
  grid-template-columns: minmax(150px, 230px) minmax(320px, 420px) minmax(150px, 230px);
  grid-template-areas: "lovely card serious";
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 72px);
}

.auth-stage .auth-card {
  grid-area: card;
}

.auth-title {
  margin-bottom: 18px;
  text-align: center;
}

.auth-title h1 {
  margin-bottom: 0;
  font-size: 38px;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label,
.admin-create label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-mascot-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.login-mascot-card.is-lovely {
  grid-area: lovely;
}

.login-mascot-card.is-serious {
  grid-area: serious;
}

.login-bubble {
  position: relative;
  display: block;
  width: min(210px, 100%);
  min-height: 42px;
  border: 1px solid rgba(216, 180, 95, .68);
  border-radius: 8px;
  padding: 10px 14px;
  color: #211308;
  background: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.login-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 11px solid var(--gold-bright);
  transform: translateX(-50%);
}

.login-mascot-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.login-mascot-button img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .38));
  transform-origin: 50% 72%;
  transition: transform .22s ease, filter .22s ease;
}

.login-mascot-button:hover img,
.login-mascot-button:focus-visible img {
  transform: scale(1.045);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .48));
}

.login-mascot-card.is-reacting .login-mascot-button img {
  animation: lux-greeting .72s ease-in-out;
}

.login-mascot-card.is-reacting .login-bubble {
  animation: lux-bubble-pop .46s ease-out;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #0b0709 inset;
  transition: background-color 9999s ease-out;
}

body.is-auth-screen {
  background:
    radial-gradient(circle at 50% 24%, rgba(132, 35, 48, .22), transparent 34%),
    #080607;
}

body.is-auth-screen .site-header,
body.is-auth-screen .lux-guide,
body.is-auth-screen .showcase-content {
  display: none !important;
}

body.is-auth-screen .page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.is-auth-screen #showcaseView {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.is-auth-screen .auth-stage {
  display: grid;
}

.placeholder-view {
  width: min(720px, 100%);
  margin: 12vh auto 0;
  padding: 56px 30px;
  text-align: center;
}

.error-code {
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.placeholder-view h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 62px);
}

.placeholder-view p {
  margin-bottom: 24px;
  color: var(--muted);
}

.faq-view {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 20px;
}

.faq-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.faq-heading h1 {
  margin: 8px 0 10px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
}

.faq-heading p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.faq-group {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 11, 14, .82);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.faq-group-heading {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.faq-group-heading h2 {
  font-size: 23px;
  line-height: 1.2;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 42px 14px 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 180, 95, .34);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: #1c1008;
  background: var(--gold);
}

.faq-item p {
  max-width: 64ch;
  padding: 0 42px 18px 0;
  color: var(--muted);
  line-height: 1.58;
}

.faq-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.admin-head h1 {
  font-size: 40px;
}

.admin-create {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  padding: 20px;
}

.check-field {
  min-height: 48px;
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.check-field input {
  width: auto;
  min-height: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 20px 20px;
}

.admin-column,
.admin-log-panel,
.admin-feedback-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 6, 7, .3);
}

.admin-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-column-head h3,
.admin-column-head p {
  margin-bottom: 0;
}

.admin-column-head p {
  color: var(--dim);
  font-size: 13px;
}

.admin-users-list,
.admin-uploads-list,
.admin-feedback-list {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.admin-user-card,
.admin-upload-card,
.admin-log-card,
.admin-feedback-card,
.event-message-card {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 13px;
  color: var(--muted);
  background: rgba(23, 16, 19, .78);
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-user-main {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.admin-user-main:hover {
  color: var(--gold-bright);
  background: transparent;
}

.admin-user-main span,
.admin-upload-card span,
.admin-upload-card small,
.admin-log-card span,
.event-message-card p,
.event-message-card small {
  color: var(--muted);
}

.admin-user-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-upload-card,
.admin-log-card,
.event-message-card {
  display: grid;
  gap: 6px;
}

.admin-log-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-feedback-panel {
  margin: 0 20px 20px;
}

.admin-feedback-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-feedback-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 16px;
  border-left: 3px solid var(--gold);
}

.admin-feedback-card[data-status="in_progress"] {
  border-left-color: var(--wine-bright);
}

.admin-feedback-card[data-status="done"] {
  border-left-color: #9b864c;
}

.admin-feedback-card[data-status="rejected"] {
  border-left-color: var(--dim);
  opacity: .78;
}

.feedback-card-copy,
.feedback-card-controls {
  display: grid;
  align-content: start;
  gap: 9px;
}

.feedback-card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.feedback-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.feedback-card-copy small,
.feedback-technical {
  color: var(--dim);
}

.feedback-technical summary {
  width: max-content;
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

.feedback-technical dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 10px;
  margin: 10px 0 0;
  font-size: 12px;
}

.feedback-technical dt {
  color: var(--dim);
}

.feedback-technical dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.feedback-card-controls select,
.feedback-card-controls textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #0b0709;
}

.feedback-card-controls textarea {
  min-height: 84px;
  resize: vertical;
}

.feedback-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-type-chip,
.feedback-status-chip {
  border: 1px solid rgba(216, 180, 95, .34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold-bright);
  background: rgba(216, 180, 95, .08);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.log-action-chip {
  border: 1px solid rgba(216, 180, 95, .32);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold);
  background: rgba(216, 180, 95, .08);
  font-size: 11px;
  font-weight: 900;
}

.log-action-chip.is-conducted {
  border-color: rgba(173, 48, 67, .52);
  color: #f1a9b2;
  background: rgba(132, 35, 48, .16);
}

.role-dot.is-admin {
  border-color: rgba(173, 48, 67, .58);
  color: #f1a9b2;
  background: rgba(132, 35, 48, .18);
}

.admin-log-panel {
  margin: 0 20px 20px;
}

.feedback-launcher {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  min-height: 42px;
  border: 1px solid rgba(216, 180, 95, .52);
  border-radius: 999px;
  padding: 0 17px;
  color: #1b0e08;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feedback-launcher:hover,
.feedback-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
}

.feedback-dialog {
  width: min(620px, calc(100% - 24px));
}

.feedback-kind {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.feedback-kind legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.feedback-kind label {
  position: relative;
}

.feedback-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-kind span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--muted);
  background: #0b0709;
  font-weight: 850;
  text-align: center;
}

.feedback-kind input:checked + span {
  border-color: var(--gold);
  color: #1b0e08;
  background: var(--gold);
}

.feedback-kind input:focus-visible + span {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.feedback-privacy {
  margin: -4px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(216, 180, 95, .38);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--text);
  background: #120b0e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .44);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

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

body:not(.is-auth-screen) .toast {
  bottom: 76px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  margin: 10px 0 6px;
  font-size: 22px;
}

.empty-state p {
  max-width: 480px;
  margin: 0;
}

@media (max-width: 1380px) {
  :root {
    --lux-width: 154px;
    --right-width: 340px;
    --edge: 10px;
  }

  .event-cards,
  .file-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-inner {
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  }
}

@media (max-width: 1120px) {
  :root {
    --edge: 18px;
  }

  .lux-guide {
    display: none;
  }

  .page-shell {
    width: calc(100% - (var(--edge) * 2));
    margin-inline: var(--edge);
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .selected-panel {
    position: static;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(220px, .7fr);
  }

  .focus-media {
    min-height: 100%;
  }

  .focus-summary {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }

  .hero-stats {
    position: static;
    width: min(380px, 100%);
    margin-top: 18px;
    transform: none;
  }

  .hero-row {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    margin-left: 0;
    padding: 20px 0;
  }

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

  .tutorial-view {
    width: 100%;
  }

  .tutorial-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .tutorial-document-head {
    display: grid;
  }

  .tutorial-actions {
    justify-content: flex-start;
  }

  .auth-stage {
    width: 100%;
    grid-template-columns: minmax(120px, 180px) minmax(300px, 420px) minmax(120px, 180px);
    gap: 20px;
  }

  .login-bubble {
    width: min(180px, 100%);
    min-height: 50px;
    font-size: 12px;
  }

  .login-mascot-button img {
    width: min(180px, 100%);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 116px;
    --edge: 10px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 9px 0;
  }

  .brand-copy small,
  .quiet-button#adminNavBtn {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    order: 3;
  }

  .nav-button {
    flex: 1;
    padding-inline: 9px;
  }

  .user-chip {
    max-width: 150px;
  }

  #headerLogin {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy h1,
  .section-heading h1,
  .tutorial-heading h1 {
    font-size: 40px;
  }

  .tutorial-view {
    padding-top: 20px;
  }

  .tutorial-heading {
    display: grid;
    align-items: start;
  }

  .tutorial-heading-actions {
    justify-content: space-between;
  }

  .tutorial-layout {
    display: block;
    min-height: 0;
  }

  .tutorial-catalog {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .tutorial-list {
    max-height: 310px;
    overflow: auto;
  }

  .tutorial-empty {
    min-height: 420px;
  }

  .tutorial-document-head,
  .tutorial-meta,
  .tutorial-versions {
    padding-inline: 16px;
  }

  .tutorial-actions > button,
  .tutorial-actions > label {
    flex: 1 1 calc(50% - 8px);
  }

  .tutorial-frame {
    min-height: 68vh;
  }

  .event-cards,
  .file-list,
  .admin-grid,
  .profile-stats,
  .event-detail-grid,
  .room-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-view {
    width: calc(100% - 20px);
    padding-top: 22px;
  }

  .faq-group {
    padding: 16px;
  }

  .selected-panel {
    display: block;
  }

  .focus-media {
    min-height: 110px;
  }

  .focus-summary {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .event-page-head,
  .room-head,
  .event-messages-head,
  .manager-head,
  .admin-head {
    display: grid;
  }

  .event-page-actions,
  .room-actions,
  .manager-actions,
  .profile-actions {
    justify-content: stretch;
  }

  .event-page-actions > *,
  .room-actions > *,
  .manager-actions > *,
  .profile-actions > * {
    flex: 1 1 calc(50% - 8px);
  }

  .auth-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "card card"
      "lovely serious";
    gap: 18px 12px;
  }

  .auth-card {
    padding: 20px;
    width: min(420px, 100%);
    margin-inline: auto;
  }

  .login-mascot-card {
    align-self: start;
  }

  .login-bubble {
    width: min(164px, 100%);
    min-height: 56px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .login-mascot-button img {
    width: min(150px, 100%);
  }

  .admin-create {
    grid-template-columns: 1fr;
  }

  .admin-feedback-card {
    grid-template-columns: 1fr;
  }

  .feedback-kind {
    grid-template-columns: 1fr;
  }

  .feedback-launcher {
    right: 12px;
    bottom: 12px;
  }

  .profile-card {
    padding: 18px;
  }

  .profile-main {
    align-items: flex-start;
  }

  .frame-shell,
  .frame-shell iframe {
    min-height: 74vh;
  }
}
