:root {
  color-scheme: dark;
  --bg: #101a1e;
  --surface: #17242a;
  --line: #364649;
  --text: #f3f0e6;
  --mute: #b0bcb9;
  --lime: #dafa9c;
  --mono: 'SFMono-Regular', Consolas, monospace;
  font-family:
    'DM Sans',
    system-ui,
    -apple-system,
    sans-serif;
  scroll-behavior: smooth;
  scroll-padding: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 280px;
}
button,
a,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #c0eff7;
  outline-offset: 4px;
}
svg {
  width: 19px;
  height: 19px;
  flex: none;
}
header {
  border-bottom: 1px solid var(--line);
  background: #142126;
}
.top,
main,
footer {
  width: min(1536px, calc(100% - clamp(32px, 7vw, 104px)));
  margin: auto;
}
.top {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.brand em {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--mute);
  margin-left: 5px;
  font-style: normal;
}
.mark {
  display: flex;
  align-items: center;
  gap: 3px;
  transform: rotate(29deg);
  height: 34px;
  padding: 2px;
}
.mark i {
  width: 5px;
  border-radius: 2px;
  height: 24px;
  background: var(--lime);
}
.mark i:nth-child(2) {
  height: 34px;
}
.desktop-nav,
.mobile-nav {
  display: flex;
  gap: 6px;
}
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mute);
  font-size: 0.91rem;
  padding: 9px 13px;
  border-radius: 7px;
}
.desktop-nav a[aria-current],
.desktop-nav a:hover,
.mobile-nav a[aria-current] {
  color: var(--lime);
  background: #263634;
}
.desktop-nav a[data-nav='join'] {
  display: none;
}
.join-btn,
.join-actions button,
.input-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: var(--lime);
  color: #17251e;
  font-weight: 650;
  padding: 11px 16px;
  line-height: 1.35;
}
.join-btn {
  margin-left: auto;
}
.join-btn:hover,
.join-actions button:hover,
.input-row button:hover {
  background: #e9ffbb;
}
.page-title,
.page-title > div,
.panel-heading,
.panel-heading h2,
.floor-meta,
.floor-meta > span,
.text-link,
.connection h2,
.join-actions {
  display: flex;
  align-items: center;
}
.page-title {
  justify-content: space-between;
  padding: 32px 0 21px;
}
.page-title > div {
  gap: 12px;
}
.page-title h1,
.join-intro h1 {
  font-weight: 540;
  font-size: clamp(2.15rem, 3.6vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
  margin: 0;
}
.tuner {
  display: flex;
  align-items: center;
  gap: 3px;
}
.tuner i {
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: #a6bb92;
}
.tuner i:nth-child(2) {
  height: 27px;
}
.tuner i:last-child {
  height: 19px;
}
.page-title time {
  font: 12px var(--mono);
  color: var(--mute);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(265px, 1fr);
  align-items: stretch;
  gap: 16px;
}
.floor-panel,
#activity,
.updates,
.connection {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  min-width: 0;
}
.floor-panel,
#activity {
  overflow: hidden;
}
.panel-heading {
  height: 54px;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.panel-heading h2,
.floor-meta > span,
.connection h2 {
  gap: 9px;
}
.panel-heading h2 svg {
  color: #a9b7b3;
}
.count-text {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 22px;
  color: var(--lime);
  border: 1px solid #4a5944;
  background: #29352d;
  font: 12px var(--mono);
  white-space: nowrap;
}
.count-text i,
.feed-led {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 99px;
  background: #a5acaa;
}
.connected .count-text i,
.connected .feed-led {
  background: var(--lime);
}
#floor {
  position: relative;
  background-color: #172329;
  background-image:
    radial-gradient(ellipse at 50% 60%, #35444588, transparent 72%),
    radial-gradient(#46525790 0.85px, transparent 0.9px);
  background-size:
    auto,
    14px 14px;
  overflow: hidden;
  isolation: isolate;
}
.scene {
  width: 100%;
  position: relative;
  aspect-ratio: 1000/560;
  margin: auto;
}
#room,
#residents {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#room-message {
  position: absolute;
  left: 14px;
  bottom: 13px;
  font: 12px/1.5 var(--mono);
  background: #111f23e8;
  color: #d5dfd8;
  padding: 5px 8px;
  border-radius: 5px;
}
#room-message:empty {
  display: none;
}
.floor-meta {
  min-height: 53px;
  gap: 12px;
  padding: 10px 17px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.floor-meta > span {
  font-size: 0.82rem;
  color: var(--mute);
}
#roster {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.roster-chip {
  border: 1px solid #435056;
  border-radius: 22px;
  background: #243239;
  color: var(--text);
  font-size: 0.75rem;
  padding: 4px 9px;
}
.roster-chip:hover {
  border-color: var(--lime);
}
#pagination {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  font: 12px var(--mono);
}
#pagination[hidden] {
  display: none;
}
#pagination button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
  display: grid;
  place-items: center;
}
.person {
  position: absolute;
  transform: translate(-50%, -95%);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  justify-items: center;
  min-width: 32px;
  z-index: 2;
  transition:
    left 0.8s,
    top 0.8s;
}
.person-name {
  position: absolute;
  top: 100%;
  width: max-content;
  max-width: 118px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  border: 1px solid #617174;
  border-radius: 5px;
  background: #132125e8;
  font: 500 11px/1.5 var(--mono);
  padding: 0 5px;
}
.person-icon {
  width: clamp(27px, 3.5vw, 46px);
  height: clamp(34px, 4.5vw, 58px);
  overflow: visible;
  filter: drop-shadow(0 3px 2px #21172260);
}
.person:nth-child(even) .person-icon {
  transform: rotate(-4deg);
}
.person.babbling {
  z-index: 5;
}
.person.babbling .person-icon {
  animation: speak 0.48s ease-in-out infinite alternate;
}
.bubble {
  position: absolute;
  left: 50%;
  bottom: 106%;
  transform: translateX(-50%);
  width: max-content;
  max-width: clamp(90px, 14vw, 160px);
  padding: 6px 8px;
  background: #fff7de;
  color: #25272b;
  border: 1.5px solid #29292f;
  border-radius: 8px 8px 8px 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  font: 600 12px/1.35 system-ui;
  box-shadow: 0 2px 0 #141a1e50;
  pointer-events: none;
}
.bubble:empty {
  display: none;
}
@keyframes speak {
  to {
    transform: translateY(-3px) rotate(4deg);
  }
}
#activity {
  display: flex;
  flex-direction: column;
  position: relative;
}
#events {
  position: absolute;
  inset: 55px 0 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #45616b transparent;
}
.event {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #344248;
}
.event-icon {
  height: 30px;
  width: 30px;
  background: #233036;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.event-icon svg {
  height: 28px;
  width: 22px;
}
.event header {
  display: flex;
  gap: 9px;
  align-items: center;
  background: none;
  border: 0;
}
.event strong {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.event time {
  margin-left: auto;
  white-space: nowrap;
  font: 10px var(--mono);
  color: var(--mute);
}
.event p {
  margin: 5px 0 0;
  color: #d0dbd6;
  font-size: 0.91rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.empty-feed {
  margin: 0;
  padding: 25px 20px;
  color: var(--mute);
  font-size: 0.96rem;
  line-height: 1.55;
}
.updates {
  margin-top: 20px;
  padding: clamp(18px, 2.4vw, 34px);
  display: grid;
  align-items: center;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 32px;
  background: #202e2d;
}
.updates-title {
  display: flex;
  gap: 16px;
  align-items: center;
}
.stamp {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  border: 1px solid #50634d;
  color: var(--lime);
  background: #2e4036;
}
.stamp svg {
  width: 24px;
  height: 24px;
}
.updates h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.05em;
}
.updates p,
.join-intro p,
.public-note {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--mute);
  margin: 6px 0 0;
}
.updates label {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 5px;
}
.input-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.input-row input {
  min-width: 0;
  flex: 1;
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid #53635e;
  color: white;
  background: #162322;
}
.updates small {
  display: block;
  margin-top: 5px;
  font-size: 0.74rem;
  color: var(--mute);
}
#subscription-status:empty,
#copy-status:empty {
  display: none;
}
#subscription-status {
  color: var(--lime);
  font-size: 0.9rem;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #a4afac;
  font: 11px/1.4 var(--mono);
  padding: 25px 0;
}
.mobile-nav {
  display: none;
}
.join-layout {
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 7%;
  padding: clamp(40px, 7vw, 105px) 0;
  align-items: center;
}
.join-intro p {
  max-width: 460px;
  margin: 17px 0;
}
.text-link {
  gap: 6px;
  width: fit-content;
  color: var(--lime);
  font-size: 0.9rem;
}
.adapter {
  width: 70px;
  height: 46px;
  position: relative;
  margin-bottom: 22px;
  transform: rotate(-8deg);
}
.adapter span {
  position: absolute;
  inset: 4px 20px 4px 0;
  background: var(--lime);
  border: 3px solid #293734;
  border-radius: 10px;
  box-shadow: inset -5px -4px #759361;
}
.adapter i,
.adapter b {
  position: absolute;
  width: 25px;
  height: 7px;
  right: 0;
  top: 11px;
  background: #91a4a2;
  border: 2px solid #364445;
  border-radius: 4px;
}
.adapter b {
  top: 27px;
}
.connection {
  padding: clamp(20px, 3vw, 40px);
}
.connection pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 var(--mono);
  border: 1px solid #3e5051;
  border-radius: 8px;
  background: #101c20;
  padding: 16px;
  color: #d8e8ce;
  margin: 18px 0;
}
.join-actions {
  gap: 17px;
  flex-wrap: wrap;
}
.public-note {
  font-size: 0.82rem;
  margin-top: 18px;
}
.join-page .desktop-nav a[data-nav='join'] {
  display: flex;
}
.join-page .join-btn {
  display: none;
}
dialog {
  width: min(430px, 92vw);
  background: #1c292e;
  color: var(--text);
  border: 1px solid #5e7168;
  padding: 28px;
  border-radius: 15px;
}
dialog::backdrop {
  background: #061014aa;
}
dialog [data-close] {
  float: right;
  display: grid;
  place-items: center;
  padding: 6px;
  background: transparent;
  color: var(--text);
  border: 1px solid #53615c;
  border-radius: 5px;
}
#profile-body h2 {
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}
#profile-body p {
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--mute);
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: minmax(0, 1.8fr) minmax(218px, 1fr);
  }
  .top {
    gap: 18px;
  }
  .brand {
    font-size: 1.35rem;
  }
  .top,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .desktop-nav a {
    padding: 7px;
  }
  .updates {
    gap: 18px;
  }
  .updates-title {
    gap: 12px;
  }
  .scene {
    width: 106%;
    margin-left: -3%;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  .desktop-nav {
    display: none;
  }
  .top {
    min-height: 57px;
  }
  .brand {
    font-size: 1.3rem;
    gap: 9px;
  }
  .top,
  main,
  footer {
    width: calc(100% - 24px);
  }
  .brand em {
    font-size: 0.62rem;
  }
  .mark {
    transform: scale(0.8) rotate(29deg);
  }
  .join-btn {
    padding: 7px 10px;
    font-size: 0.82rem;
  }
  .join-btn svg {
    width: 15px;
  }
  .page-title {
    padding: 19px 0 13px;
  }
  .page-title h1 {
    font-size: 2.1rem;
  }
  .page-title time {
    font-size: 10px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .panel-heading {
    padding: 0 13px;
    height: 44px;
  }
  .panel-heading h2 {
    font-size: 0.94rem;
  }
  .scene {
    width: 115%;
    margin-left: -7.5%;
  }
  .floor-panel,
  #activity,
  .updates,
  .connection {
    border-radius: 10px;
  }
  .floor-meta {
    min-height: 39px;
    padding: 7px 10px;
    gap: 7px;
  }
  .floor-meta > span {
    font-size: 0.72rem;
  }
  .roster-chip {
    font-size: 0.68rem;
    padding: 3px 7px;
  }
  .person-icon {
    width: 25px;
    height: 33px;
  }
  .person-name {
    font-size: 10px;
    max-width: 90px;
    line-height: 1.2;
    padding: 2px 4px;
  }
  .bubble {
    font-size: 10px;
    padding: 3px 5px;
    max-width: 82px;
  }
  .count-text {
    font-size: 10px;
    padding: 3px 7px;
  }
  .event {
    padding: 12px;
  }
  .empty-feed {
    padding: 16px;
  }
  .updates {
    margin-top: 13px;
    display: block;
    padding: 18px 14px;
  }
  .stamp {
    width: 38px;
    height: 38px;
  }
  .updates-title {
    align-items: flex-start;
  }
  .updates p {
    font-size: 0.86rem;
  }
  .updates form {
    margin-top: 14px;
  }
  .input-row button {
    padding: 8px 13px;
  }
  #events {
    position: static;
    max-height: 275px;
  }
  .mobile-nav {
    position: fixed;
    z-index: 20;
    bottom: 0;
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 5px 4px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid #455556;
    background: #152329f9;
    backdrop-filter: blur(12px);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 46px;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.2;
    color: #d2dbd5;
  }
  .join-layout {
    display: block;
    padding: 28px 0 0;
  }
  .join-intro {
    margin-bottom: 23px;
  }
  .adapter {
    margin-bottom: 16px;
  }
  .connection {
    padding: 16px;
  }
  .join-intro p {
    font-size: 0.94rem;
  }
  .public-note {
    font-size: 0.8rem;
  }
  .join-page .join-btn {
    display: none;
  }
  #room-message {
    bottom: 4px;
    left: 5px;
    font-size: 9px;
    max-width: 80%;
  }
  footer {
    font-size: 9px;
    padding: 19px 0;
  }
  .join-actions {
    gap: 10px;
  }
  .join-actions button {
    font-size: 0.85rem;
  }
  .connection .text-link {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 700px) {
  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mobile-nav a {
    min-width: 0;
    font-size: 10px;
  }
  .mobile-nav a span {
    text-align: center;
  }
}

.service-badge {
  color: #d3efab;
  font: 500 10px/1.5 var(--mono);
}
.service-badge {
  display: inline-block;
  border-radius: 4px;
  background: #30453a;
  padding: 0 5px;
}
.roster-chip .service-badge {
  margin-left: 5px;
}
.service-floor {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 5%;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: #d4f4ac;
  background: #243c34;
  border: 1px solid #b8d79c;
  border-radius: 50%;
  font: 11px/1 var(--mono);
}
.manage-subscription {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#discovery {
  border-top: 1px solid var(--line);
}
#discovery summary {
  cursor: pointer;
  padding: 10px 17px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.89rem;
}
#discovery summary::marker {
  color: var(--lime);
}
.discovery-body {
  padding: 2px 17px 16px;
}
.discovery-body form,
.discovery-body label {
  display: grid;
  gap: 5px;
}
.discovery-body form {
  gap: 12px;
}
.discovery-body label {
  color: var(--mute);
  font-size: 0.8rem;
}
.discovery-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.discovery-body input,
.discovery-body select {
  width: 100%;
  min-width: 0;
  background: #142126;
  border: 1px solid #4b5b60;
  border-radius: 6px;
  padding: 9px;
  color: var(--text);
  font: inherit;
}
.discovery-body button {
  color: var(--text);
}
.discovery-body button[type='reset'] {
  justify-self: start;
  background: transparent;
  padding: 4px 0;
  border: 0;
  text-decoration: underline;
}
.discovery-body button:disabled {
  opacity: 0.45;
}
.discovery-body p {
  color: var(--mute);
  font: 12px var(--mono);
}
.discovery-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}
.discovery-results button {
  text-align: left;
  border: 1px solid #4b5b60;
  background: #223137;
  border-radius: 6px;
  padding: 6px 9px;
  overflow-wrap: anywhere;
}
.discovery-results small {
  display: block;
  color: var(--mute);
}
.discovery-results .service-badge {
  margin-left: 6px;
}
.profile-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
}
.profile-facts:empty {
  display: none;
}
.profile-facts dt {
  color: var(--mute);
}
.profile-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  .discovery-filters {
    grid-template-columns: 1fr;
  }
  .discovery-body input,
  .discovery-body select {
    font-size: 16px;
  }
}

/* One continuous studio with room-specific architecture and live occupancy. */
.home-page {
  --room-ink: #b6c9ee;
}
.home-page[data-scene='workshop'] {
  --room-ink: #e6b28f;
}
.home-page[data-scene='garden'] {
  --room-ink: #b4d79e;
}
.home-page[data-scene='arcade'] {
  --room-ink: #e5a4cf;
}
.room-switcher {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.room-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--mute);
  font-weight: 600;
}
.room-switcher button[aria-pressed='true'] {
  color: var(--text);
  background: #29343e;
  border-color: var(--room-ink);
}
.room-switcher button small {
  font: 11px var(--mono);
  color: var(--mute);
}
.scene-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7bee3;
}
[data-scene='workshop'] > .scene-dot {
  background: #d9a983;
}
[data-scene='garden'] > .scene-dot {
  background: #9fc18c;
}
[data-scene='arcade'] > .scene-dot {
  background: #d593c2;
}
.home-page[data-scene='observatory'] #floor {
  background-color: #192230;
  background-image:
    radial-gradient(ellipse at 51% 44%, #39455f99, transparent 65%),
    radial-gradient(#70849977 0.8px, transparent 0.9px);
}
.home-page[data-scene='garden'] #floor {
  background-color: #1f3029;
  background-image:
    radial-gradient(ellipse at 50% 42%, #5d715277, transparent 68%),
    radial-gradient(#7d927d55 0.8px, transparent 0.9px);
}
.home-page[data-scene='arcade'] #floor {
  background-color: #271f30;
  background-image:
    radial-gradient(ellipse at 50% 42%, #67446188, transparent 68%),
    radial-gradient(#97769366 0.8px, transparent 0.9px);
}
.home-page .page-title {
  padding: 23px 0 15px;
}
.home-page .page-title h1 {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}
.studio-join,
.studio-roadmap {
  margin: 24px 0;
  padding: clamp(16px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.studio-join {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: center;
}
.studio-join h2,
.studio-roadmap h2 {
  margin: 0 0 7px;
  letter-spacing: -0.04em;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
}
.studio-join p {
  color: var(--mute);
  margin: 4px 0;
  line-height: 1.5;
}
.studio-join pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #152024;
  color: #d1dccd;
  font: 12px/1.55 var(--mono);
}
.studio-join .join-actions {
  flex-wrap: wrap;
  gap: 12px;
}
.studio-join .join-actions a {
  font-size: 0.85rem;
  color: var(--text);
  text-underline-offset: 3px;
}
.studio-roadmap ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.studio-roadmap li {
  padding: 11px 0 2px;
  border-top: 2px solid #819a86;
}
.studio-roadmap li:nth-child(2) {
  border-color: #a997c1;
}
.studio-roadmap li:nth-child(3) {
  border-color: #ad9578;
}
.studio-roadmap li span {
  color: var(--mute);
  font: 11px var(--mono);
}
.studio-roadmap h3 {
  font-size: 1rem;
  margin: 7px 0;
}
.updates .news-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
  color: var(--mute);
  font-size: 0.8rem;
  line-height: 1.5;
}
.news-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--lime);
  margin: 1px 0;
}
.home-page section[id],
.home-page main[id] {
  scroll-margin-top: 14px;
}
@media (max-width: 700px) {
  .room-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 9px;
  }
  .room-switcher button {
    padding: 6px 9px;
    min-height: 34px;
    font-size: 12px;
  }
  .room-switcher button small {
    margin-left: auto;
  }
  .studio-join {
    display: block;
  }
  .studio-join .join-instruction {
    margin-top: 14px;
  }
  .studio-roadmap ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .studio-roadmap li {
    padding: 7px 0 1px;
  }
}
.person > .person-icon {
  width: clamp(56px, 5.2vw, 72px);
  height: clamp(56px, 5.2vw, 72px);
}
@media (max-width: 700px) {
  .person > .person-icon {
    width: 48px;
    height: 48px;
  }
}
.event-icon > .person-icon {
  width: 28px;
  height: 28px;
}
.studio-intro {
  margin: -4px 0 12px;
  color: var(--mute);
  max-width: 76ch;
  font-size: 0.92rem;
  line-height: 1.45;
}
footer nav a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 701px) and (max-width: 1100px) {
  .top {
    gap: 12px;
  }
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav a {
    padding: 7px 6px;
  }
  .desktop-nav a svg,
  .home-page .desktop-nav [data-nav='connect'] {
    display: none;
  }
}
.studio-room-guide {
  margin: 28px 0;
  color: var(--text);
}
.studio-room-guide h2 {
  margin: 0 0 12px;
  letter-spacing: -0.035em;
  font-size: clamp(1.4rem, 2.15vw, 2rem);
}
.studio-room-guide dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.studio-room-guide dl > div {
  border-top: 2px solid #a7bee3;
  padding-top: 8px;
}
.studio-room-guide dl > div:nth-child(2) {
  border-color: #d9a983;
}
.studio-room-guide dl > div:nth-child(3) {
  border-color: #9fc18c;
}
.studio-room-guide dl > div:nth-child(4) {
  border-color: #d593c2;
}
.studio-room-guide dt {
  font-weight: 650;
}
.studio-room-guide dd,
.protocol-overview li {
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.5;
}
.studio-room-guide dd {
  margin: 4px 0 0;
}
.protocol-overview {
  max-width: 78ch;
}
.protocol-overview ol {
  padding-left: 1.5rem;
}
.protocol-overview li + li {
  margin-top: 0.5rem;
}
.protocol-overview .join-actions {
  gap: 1.15rem;
  flex-wrap: wrap;
}
.protocol-overview a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 740px) {
  .studio-room-guide dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .page-title {
    flex-wrap: wrap;
    gap: 5px;
  }
}
.studio-faq {
  margin: clamp(30px, 5vw, 65px) 0;
}
.studio-faq h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: -0.045em;
}
.studio-faq .faq-byline {
  margin: 5px 0 20px;
  color: var(--mute);
  font-size: 0.82rem;
}
.studio-faq a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}
.faq-grid section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.faq-grid h3 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.4;
}
.faq-grid p {
  margin: 5px 0 7px;
  color: var(--mute);
  max-width: 65ch;
  line-height: 1.55;
}
.faq-grid a {
  font-size: 0.85rem;
}
.home-page footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
@media (max-width: 700px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .home-page footer {
    flex-wrap: wrap;
    gap: 7px 15px;
  }
}
@media (max-width: 700px) {
  .home-page footer { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 16px; }
  .home-page footer nav { width: 100%; flex-wrap: wrap; gap: 4px 10px; }
  .home-page footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}

.release-notice {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 18px;
  margin: 0 0 16px;
  background: #20312c;
  border: 1px solid #526452;
  border-inline-start: 3px solid var(--lime);
  border-radius: 8px;
}
.release-notice h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.release-notice p { margin: 4px 0 0; color: var(--mute); line-height: 1.45; }
.release-notice .join-btn { min-height: 44px; flex: none; }
@media (max-width: 600px) {
  .release-notice { flex-direction: column; align-items: flex-start; padding: 12px 14px; }
  .release-notice p { font-size: .9rem; }
  .release-notice .join-btn { margin-left: 0; padding-inline: 18px; }
}

dialog#updates { padding: 0; width: min(30rem, calc(100vw - 28px)); max-height: 90dvh; }
dialog#updates .updates { display: block; margin: 0; border: 0; padding: 24px; }
dialog#updates .updates-title { padding-right: 32px; align-items: flex-start; }
dialog#updates h2 { margin: 0; line-height: 1.2; }
dialog#updates form { margin-top: 20px; }
.close-updates {
  position: absolute; inset: 8px 8px auto auto; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 1.6rem;
}
html:has(dialog#updates[open]) { overflow: hidden; }
@media (max-width: 480px) {
  dialog#updates .stamp { display: none; }
  dialog#updates input[type=email] { font-size: 16px; }
}
