:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #1b1d20;
  --raised: #232529;
  --line: #383a3e;
  --text: #f5f1eb;
  --muted: #b3b1b0;
  --accent: #ff976b;
  --deep: #291810;
  --max: 1232px;
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #fab599;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.047em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.5rem);
  line-height: 1.025;
}
h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.28rem;
  line-height: 1.26;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.55;
  color: var(--muted);
}
button,
.nav-studio,
.toolbar a,
.actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.64rem 0.94rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
button:hover:not(:disabled),
.nav-studio:hover,
.actions > a:hover {
  border-color: #85807b;
  background: #2d2e30;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.84rem 1.28rem;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--deep);
}
.primary:hover:not(:disabled),
a.primary:hover {
  background: #ffac87;
  border-color: #ffac87;
}
.compact {
  font-size: 0.9rem;
  padding: 0.66rem 1rem;
}
.plain {
  background: transparent;
  border-color: transparent;
  color: #ded4ca;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger {
  color: #ffb4a9;
}
.wrap,
.nav,
footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4.5vw, 4rem);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}
.nav::after {
  content: '';
  border-bottom: 1px solid var(--line);
  position: absolute;
  top: 81px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.67rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
  color: #d7d2cc;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--accent);
}
.mark i {
  display: block;
  background: currentColor;
  border-radius: 3px;
  width: 4px;
  height: 14px;
}
.mark i:nth-child(2) {
  height: 27px;
}
.mark i:nth-child(3) {
  height: 20px;
  transform: translateY(4px);
}
.mark i:nth-child(4) {
  height: 11px;
  transform: translateY(-4px);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
.nav-link {
  color: #ddd5cf;
  font-size: 0.94rem;
}
.nav-studio {
  background: transparent;
  border-color: #595b5d;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  min-height: 405px;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-copy > p,
.login-copy > p {
  font-size: 1.075rem;
  max-width: 41ch;
  margin: 1.15rem 0 1.65rem;
}
.hero h1 {
  font-size: clamp(3rem, 5.45vw, 5.1rem);
}
.hero h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #f5c1a7;
  letter-spacing: -0.06em;
}
.accent-line {
  display: block;
  background: var(--accent);
  width: 42px;
  height: 4px;
  margin-bottom: 1.55rem;
}
.signal-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.62;
  border: 1px solid #514345;
  border-radius: 12px;
  background: #211d26;
}
.signal-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: #ae9183;
  border-style: solid;
}
.c1 {
  top: 20px;
  left: 20px;
  border-width: 1px 0 0 1px;
}
.c2 {
  bottom: 20px;
  right: 20px;
  border-width: 0 1px 1px 0;
}
.library {
  padding: 2.15rem 0 4.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 9px;
  background: #1c1d20;
  border: 1px solid var(--line);
  gap: 2px;
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0.44rem 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.tabs button[aria-pressed='true'] {
  background: #363536;
  border-color: #4a4644;
  color: var(--text);
}
.empty,
.event-card,
.manage-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 1.4rem;
  gap: 1.4rem;
}
.empty {
  border-style: dashed;
  padding: 2rem;
}
.empty > .mark {
  width: 50px;
  height: 50px;
  background: #302825;
  border-radius: 10px;
  flex-shrink: 0;
}
.empty h3 {
  font-size: 1.1rem;
}
.empty p,
.event-card p,
.manage-card p {
  font-size: 0.94rem;
  margin: 0.3rem 0 0;
}
.event-card + .event-card,
.manage-card + .manage-card {
  margin-top: 0.7rem;
}
.event-card:hover {
  border-color: #7f655a;
}
.event-date {
  min-width: 62px;
  border-right: 1px solid var(--line);
  display: grid;
  justify-items: start;
}
.event-date b {
  font-size: 1.8rem;
}
.event-date span {
  color: var(--accent);
}
.small,
.hint,
.breadcrumb,
.byline,
.session-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}
.card-link {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}
.event-card h3 {
  margin: 0.2rem 0;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  color: #a59f9a;
  font-size: 0.875rem;
}
footer .brand {
  font-size: 1.03rem;
  display: inline;
  letter-spacing: -0.04em;
}
main {
  min-height: calc(100svh - 155px);
}
[hidden] {
  display: none !important;
}
.panel,
.metrics > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 1.4rem;
}
.panel h2,
dialog h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.auth-grid,
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(1.5rem, 7vw, 6rem);
  align-items: start;
}
.auth-grid {
  padding-block: 4.5rem;
}
.small-art {
  max-width: 450px;
  aspect-ratio: 2.5;
}
.login,
.register {
  padding: clamp(1.4rem, 3vw, 2.35rem);
}
.login h2,
.register h2,
form > label,
.field-row,
.check {
  margin-bottom: 1.15rem;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 575;
  font-size: 0.94rem;
}
input,
textarea,
select {
  background: #131416;
  color: var(--text);
  border: 1px solid #53555a;
  border-radius: 6px;
  padding: 0.7rem;
  width: 100%;
  min-width: 0;
  line-height: 1.35;
}
input::placeholder,
textarea::placeholder {
  color: #9c9995;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #ccc 50%),
    linear-gradient(135deg, #ccc 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  width: auto;
}
.field-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
}
.login .primary,
.register .primary {
  width: 100%;
}
.register .plain {
  margin-top: 1rem;
}
.error {
  color: #ffb7a8;
  margin: 0.65rem 0;
}
.error:empty {
  display: none;
}
.hint {
  margin: 0.7rem 0;
}
.breadcrumb {
  display: flex;
  gap: 0.65rem;
  margin: 2rem 0;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dash,
.event-page,
.studio-room {
  padding-bottom: 4rem;
}
.dash h1,
.event-page h1,
.studio-room h1 {
  font-size: clamp(2.5rem, 4vw, 3.85rem);
}
.metrics {
  margin: 2rem 0 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.metrics > div {
  display: grid;
  gap: 0.75rem;
}
.metrics span {
  font-size: 0.9rem;
  color: var(--muted);
}
.metrics b {
  font-size: 2.2rem;
  letter-spacing: -0.055em;
}
.manage-card {
  justify-content: space-between;
  flex-wrap: wrap;
}
.manage-card h3 {
  margin: 0.5rem 0;
}
.actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.actions a.primary {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
}
.actions a.primary:hover {
  background: #ffac87;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #555252;
  border-radius: 20px;
  color: #ddd3cc;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.28rem 0.65rem;
}
.badge.live {
  background: #47251e;
  color: #ffc5ac;
  border-color: #8f5140;
}
.badge.scheduled {
  color: #e0c9f3;
  background: #2e2636;
  border-color: #554460;
}
.event-art {
  aspect-ratio: 2.6;
  margin-bottom: 1.3rem;
}
.event-page h1 {
  margin: 1rem 0;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 1rem;
}
.session-meta {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 0 1.35rem;
  margin-bottom: 1.25rem;
  border-block: 1px solid var(--line);
}
.register > .small {
  margin-bottom: 0.5rem;
}
.room-title {
  align-items: flex-end;
}
.room-title h1 {
  font-size: clamp(2.2rem, 3.7vw, 3.25rem);
  margin: 0.6rem 0;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  align-items: start;
  gap: 1.2rem;
}
.stage {
  position: relative;
  aspect-ratio: 16/9;
  background: #090a0b;
  border: 1px solid #49434a;
  border-radius: 12px;
  overflow: hidden;
}
.stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.stage-placeholder {
  position: absolute;
  inset: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background:
    radial-gradient(ellipse at 36% 12%, #33262c, transparent 72%), #17171c;
  padding: 1.2rem;
}
.stage-placeholder h2 {
  font-size: 1.55rem;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 45px;
  font-size: 0.875rem;
  color: var(--muted);
}
.toolbar {
  margin-bottom: 1rem;
}
.tools h2,
.clip strong {
  margin-bottom: 0.9rem;
}
.clip,
.offer {
  margin: 1rem 0;
}
.offer {
  border-left: 3px solid var(--accent);
  padding: 1rem;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.discussion {
  padding: 0;
  overflow: hidden;
}
.discussion-head {
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.discussion-head h2 {
  margin-bottom: 0.9rem;
}
.discussion-head .tabs {
  display: flex;
}
.discussion-head .tabs button {
  flex: 1;
}
#feed {
  height: 295px;
  overflow-y: auto;
  padding: 1rem;
  overflow-wrap: anywhere;
}
.message {
  padding: 0.6rem 0;
  border-bottom: 1px solid #353537;
}
.message p {
  color: var(--text);
  white-space: pre-wrap;
}
.message strong,
.message small {
  font-size: 0.86rem;
  color: #edb99d;
}
.message .plain {
  padding: 0;
}
#composer {
  padding: 1rem;
  border-top: 1px solid var(--line);
}
#composer button {
  margin-top: 0.5rem;
}
.poll-choices {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}
.poll-choices > div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--raised);
}
.poll-choices button {
  justify-content: flex-start;
}
dialog {
  width: min(500px, calc(100% - 2rem));
  max-height: 88vh;
  background: #202124;
  border: 1px solid #585759;
  border-radius: 12px;
  color: var(--text);
  padding: 1.5rem;
}
dialog::backdrop {
  background: #09090bbb;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.icon-btn {
  font-size: 1.25rem;
  border: 0;
  padding: 0.2rem 0.6rem;
}
.error-page {
  padding-block: 5rem;
}
.error-page p {
  margin: 1rem 0;
}
.error-page h1 {
  font-size: 3rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4rem 0;
}
#notice {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: min(90%, 600px);
  border: 1px solid #78665c;
  background: #322923;
  color: #fff0e5;
  padding: 0.85rem 1.25rem;
  border-radius: 9px;
  box-shadow: 0 6px 40px #0006;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 8;
  background: var(--accent);
  color: var(--deep);
  padding: 0.8rem;
}
@media (max-width: 780px) {
  .hero,
  .auth-grid,
  .event-layout,
  .room-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 1.75rem;
    padding-block: 2.7rem;
  }
  .signal-art {
    max-width: 100%;
    aspect-ratio: 2.15;
  }
  .hero h1 {
    font-size: clamp(3rem, 9vw, 4.3rem);
  }
  .auth-grid {
    padding-block: 2.4rem;
  }
  .small-art {
    display: none;
  }
  .event-layout,
  .room-grid {
    gap: 1.4rem;
  }
  .section-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav {
    min-height: 68px;
  }
  .nav::after {
    top: 67px;
  }
  .nav nav {
    gap: 1rem;
  }
  .room-title > button {
    align-self: center;
  }
}
@media (max-width: 470px) {
  .nav-link {
    display: none;
  }
  .brand {
    font-size: 1.2rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .card-link {
    display: none;
  }
  .empty,
  .event-card,
  .panel {
    padding: 1rem;
  }
  .discussion {
    padding: 0;
  }
  .stage-placeholder {
    gap: 0.4rem;
  }
  .stage-placeholder h2 {
    font-size: 1.15rem;
  }
  .stage-placeholder p {
    font-size: 0.9rem;
  }
  .room-title {
    display: block;
  }
  .room-title > button {
    margin-top: 0.8rem;
  }
  .hero {
    padding-block: 2.3rem;
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .library {
    padding-bottom: 2.6rem;
  }
  .section-top {
    gap: 0.8rem;
  }
  .metrics > div {
    padding: 1rem;
  }
  .tabs button {
    padding: 0.45rem 0.6rem;
  }
}
