* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #173b35;
  --cream: #f7f3e7;
  --mint: #cae3ac;
  --border: rgba(255, 255, 255, 0.24);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
body {
  margin: 0;
  overflow: hidden;
  background: #a7c9b9;
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #f4bf73;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#world {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 38px;
  z-index: 3;
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: #163e37;
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 750;
  text-shadow: 0 1px 12px #d2e2b777;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 45px;
  border: 1.5px solid #163e3766;
  border-radius: 13px;
}
.brand-symbol svg {
  width: 30px;
  fill: none;
  stroke: #163e37;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.brand-light {
  font-weight: 380;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 650;
  margin-top: 2px;
}
.location-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ffffff78;
  border-radius: 40px;
  background: #f9f7e3bd;
  backdrop-filter: blur(20px);
  padding: 10px 18px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  box-shadow: 0 8px 40px #2b473210;
}
.location-pill strong {
  font-size: 13px;
  display: block;
  font-weight: 650;
}
.location-pill small {
  font-size: 8px;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 4px;
  opacity: 0.6;
}
.location-orbit {
  font-size: 25px;
  color: #5e7f4b;
}
.chevron {
  margin-left: 12px;
  font-size: 18px;
  opacity: 0.5;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
}
.prototype-badge {
  border: 1px solid #23483930;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f5f4df70;
  font-size: 9px;
  letter-spacing: 0.4px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  background: #f7f3df90;
  padding: 7px 10px;
  border-radius: 20px;
}
.connection i,
.tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79954d;
  display: inline-block;
}
.connection.offline i {
  background: #c57654;
}
.people-button {
  border: 0;
  background: #f7f3dfb3;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}
.people-button svg {
  width: 17px;
}
.invite-button {
  border: 0;
  background: var(--ink);
  color: #f6f2dc;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 12px;
  box-shadow: 0 4px 12px #143b3120;
}
.invite-button span {
  margin-left: 9px;
}
.welcome {
  position: fixed;
  left: 5.5vw;
  top: 50%;
  transform: translateY(-46%);
  width: 350px;
  padding: 28px 28px 24px;
  border: 1px solid #ffffff80;
  border-radius: 24px;
  background: linear-gradient(130deg, #f6f2e8ed, #f0efdcda);
  box-shadow: 0 28px 80px #213e3220;
  backdrop-filter: blur(24px);
  z-index: 4;
}
.eyebrow {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.7px;
  display: block;
}
.eyebrow i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #69925a;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}
.welcome h1 {
  font-size: 36px;
  line-height: 1.17;
  letter-spacing: -1.7px;
  font-weight: 530;
  margin: 21px 0 14px;
}
.welcome h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #52774e;
  letter-spacing: -1px;
}
.welcome > p {
  font-size: 11px;
  line-height: 1.85;
  color: #718075;
  margin: 0 0 25px;
}
.welcome > label {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: #7a877b;
  display: block;
  margin: 0 0 7px;
}
.welcome > input {
  width: 100%;
  padding: 11px 1px;
  background: none;
  border: 0;
  border-bottom: 1px solid #294d3025;
  font-size: 14px;
  color: #23483d;
  outline-offset: 0;
}
.welcome-avatar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0 18px;
  margin: 12px 0 8px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.welcome-avatar > img {
  width: 51px;
  height: 66px;
  object-fit: contain;
  object-position: center top;
  background: #d3dbc3;
  border-radius: 10px;
}
.welcome-avatar > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.welcome-avatar small {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #809071;
}
.welcome-avatar strong {
  font-size: 11px;
  font-weight: 600;
}
.welcome-avatar span span {
  font-size: 9px;
  color: #839076;
}
.welcome-avatar b {
  font-size: 18px;
  font-weight: 400;
  color: #70895a;
}
.primary-button {
  background: var(--ink);
  border: 0;
  color: #f6f3de;
  border-radius: 11px;
  padding: 15px 19px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 550;
  box-shadow: 0 5px 14px #193a3a17;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary-button:hover {
  background: #285448;
  transform: translateY(-1px);
}
.primary-button > span {
  font-size: 19px;
  font-weight: 300;
}
.welcome-note {
  display: block;
  text-align: center;
  font-size: 8px;
  color: #8b957c;
  margin: 15px 0 0;
}
.welcome-note .tiny-dot {
  width: 4px;
  height: 4px;
  margin-right: 4px;
}
.preview-tip {
  position: fixed;
  bottom: 75px;
  right: 19%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #24443a90;
  text-shadow: 0 1px 10px #fff9;
}
.preview-tip span {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.preview-tip i {
  font-size: 23px;
  font-style: normal;
}
.world-caption {
  position: fixed;
  bottom: 25px;
  right: 36px;
  text-align: right;
  pointer-events: none;
  color: #244938a0;
}
.world-caption > span {
  font-size: 9px;
  letter-spacing: 2.3px;
  display: block;
  font-weight: 650;
}
.world-caption > small {
  font-size: 8px;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 5px;
}
.island-card {
  position: fixed;
  left: 30px;
  bottom: 87px;
  width: 174px;
  padding: 17px 16px 13px;
  background: #f8f4e4bd;
  backdrop-filter: blur(16px);
  border: 1px solid #ffffff88;
  border-radius: 17px;
  box-shadow: 0 10px 30px #17392d10;
}
.island-card .eyebrow {
  font-size: 7px;
  letter-spacing: 1.4px;
  opacity: 0.5;
}
.island-card h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 7px 0 0;
  display: flex;
  justify-content: space-between;
}
.island-card h2 > span {
  font-size: 9px;
  opacity: 0.35;
  padding-top: 4px;
}
#minimap {
  display: block;
  width: 140px;
  height: 133px;
  margin: 1px auto 0;
}
.island-card > div {
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #243b2415;
  padding-top: 10px;
}
.bottom-bar {
  position: fixed;
  bottom: 49px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.control-cluster {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  background: #f8f4e9eb;
  border: 1px solid #ffffffad;
  border-radius: 19px;
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 40px #193d2926;
}
.round-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #315344;
  transition:
    background 0.15s,
    transform 0.15s;
}
.round-control svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}
.round-control small {
  font-size: 8px;
  color: #82907e;
}
.round-control:hover {
  background: #dce6cf;
  transform: translateY(-1px);
}
.round-control.active {
  background: #d4e6c0;
  color: #245034;
}
.round-control.active small {
  color: #506d43;
}
.round-control b {
  position: absolute;
  right: 8px;
  top: 1px;
  background: #476f4b;
  color: white;
  border-radius: 9px;
  font-size: 8px;
  padding: 3px 5px;
}
.control-divider {
  height: 27px;
  width: 1px;
  background: #36532e1c;
  margin: 0 4px;
}
.movement-help {
  position: fixed;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  font-size: 8px;
  color: #315342a0;
  white-space: nowrap;
}
.movement-help > span {
  display: flex;
  gap: 3px;
  align-items: center;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 17px;
  padding: 0 4px;
  border: 1px solid #34513c33;
  border-radius: 4px;
  font-size: 8px;
  font-family: inherit;
  background: #f7f4da78;
  color: #244530;
}
.exit-button {
  position: fixed;
  left: 33px;
  bottom: 26px;
  background: none;
  border: 0;
  font-size: 10px;
  color: #315342aa;
  padding: 8px 2px;
}
.interaction-prompt {
  position: fixed;
  left: 50%;
  bottom: 144px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  background: #173f36dd;
  border: 1px solid #dfe9cc66;
  padding: 11px 18px 11px 10px;
  border-radius: 12px;
  color: #f5f2dd;
  font-size: 11px;
  backdrop-filter: blur(12px);
}
.interaction-prompt kbd {
  background: #f1f1dc;
  color: #173e35;
  border: 0;
  height: 24px;
  min-width: 26px;
  font-size: 12px;
}
.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #e5e8d8;
  color: #294e3c;
  transition: opacity 0.5s;
}
.boot h1 {
  font-family: Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.8px;
  font-weight: 400;
}
.boot p {
  font-size: 12px;
  opacity: 0.6;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #244d40;
  color: #e5e9ce;
  border-radius: 18px;
  font-weight: 600;
  font-size: 30px;
}
.loader {
  width: 26px;
  height: 26px;
  border: 1px solid #4a6e3a22;
  border-top-color: #648147;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fallback {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
  background: #ecedde;
  gap: 12px;
}
.fallback button {
  align-self: flex-start;
  padding: 14px 22px;
  background: #264c3f;
  color: white;
  border: 0;
  border-radius: 10px;
}
.panel-dialog,
.small-dialog {
  color: var(--ink);
  background: #f1f1e5f7;
  backdrop-filter: blur(28px);
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 100px #102d3655;
}
.panel-dialog::backdrop,
.small-dialog::backdrop {
  background: #153f374d;
  backdrop-filter: blur(7px);
}
.panel-dialog {
  width: min(940px, 92vw);
  max-height: 85vh;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-head h2,
.small-dialog h2 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 10px 0;
}
.dialog-head p,
.small-dialog p {
  font-size: 11px;
  color: #7b8a77;
  line-height: 1.8;
  margin: 0 0 16px;
}
.close-dialog,
.chat-panel header button,
.people-panel header button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #5f7a60;
  border: 0;
  border-radius: 50%;
  background: #d8dfce;
  font-size: 20px;
}
.small-dialog > .close-dialog {
  float: right;
  margin-top: -4px;
}
.panel-dialog > input {
  border: 1px solid #4c6a3522;
  background: #fff8;
  border-radius: 10px;
  padding: 12px 15px;
  width: 100%;
  font-size: 12px;
  margin: 2px 0 14px;
  color: #294b36;
}
#avatar-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#avatar-filters button {
  padding: 8px 13px;
  border: 1px solid #4c6a3522;
  border-radius: 25px;
  background: transparent;
  font-size: 10px;
  color: #708269;
}
#avatar-filters button.selected {
  background: #244e3d;
  color: #edf3da;
  border-color: #244e3d;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.avatar-card {
  position: relative;
  min-width: 0;
  border: 1px solid #b4c1a94d;
  border-radius: 13px;
  background: linear-gradient(150deg, #e1e4d1, #c9d2b9);
  padding: 10px 7px 12px;
  color: #34553b;
  transition:
    background 0.2s,
    transform 0.2s;
}
.avatar-card:hover {
  transform: translateY(-3px);
  background: #d7e5c8;
}
.avatar-card.selected {
  border: 2px solid #66854c;
  padding: 9px 6px 11px;
  box-shadow: inset 0 0 0 3px #ffffff88;
}
.avatar-card.selected::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 8px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font-size: 11px;
  border-radius: 50%;
  background: #5a7a45;
  color: #fff;
}
.avatar-card img {
  width: 100%;
  height: 142px;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 4px 4px #3b442320);
}
.avatar-card strong {
  font-size: 9px;
  display: block;
  line-height: 1.4;
  margin-top: 5px;
  font-weight: 550;
}
.avatar-card small {
  display: block;
  font-size: 8px;
  color: #899a78;
  margin-top: 4px;
}
.small-dialog {
  width: min(410px, 91vw);
  padding: 30px;
}
.small-dialog .eyebrow {
  padding-top: 8px;
}
.small-dialog > input {
  width: 100%;
  padding: 13px;
  border: 1px solid #5e744733;
  border-radius: 9px;
  background: #fff7;
  color: #70816e;
  font-size: 10px;
  margin: 8px 0 16px;
}
.small-dialog > label {
  display: block;
  font-size: 11px;
  margin: 22px 0;
  color: #5b7456;
}
.small-dialog select {
  display: block;
  width: 100%;
  margin-top: 9px;
  border: 1px solid #6f845a2c;
  background: #fff8;
  color: #35553d;
  padding: 11px;
  border-radius: 8px;
  font-size: 12px;
}
.small-dialog input[type='range'] {
  display: block;
  width: 100%;
  margin-top: 14px;
  accent-color: #486c47;
}
.small-dialog .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.small-dialog .checkbox-label input {
  accent-color: #476d42;
}
.settings-note {
  font-size: 9px !important;
  padding-top: 10px;
  border-top: 1px solid #41603122;
}
.text-button {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 0;
  color: #608056;
  font-size: 10px;
  padding: 7px;
}
#places-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
#places-list button {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  padding: 16px;
  border: 1px solid #58744322;
  border-radius: 12px;
  color: #33563b;
  background: #e2e7d3;
  font-size: 12px;
  text-align: left;
}
#places-list button b {
  font-size: 25px;
  font-weight: 300;
  color: #8da477;
}
#places-list button small {
  margin-left: auto;
}
.toast {
  position: fixed;
  left: 50%;
  top: 106px;
  transform: translateX(-50%);
  padding: 13px 22px;
  border: 1px solid #ffffff70;
  background: #f2f3e4ed;
  border-radius: 12px;
  color: #345b3f;
  box-shadow: 0 7px 30px #1f3a2222;
  font-size: 12px;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.chat-panel {
  position: fixed;
  right: 30px;
  bottom: 145px;
  width: 320px;
  height: 350px;
  background: #f4f1e7f5;
  border: 1px solid #ffffffaa;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  z-index: 10;
  box-shadow: 0 15px 50px #102d3626;
  display: flex;
  flex-direction: column;
}
.chat-panel > header,
.people-panel > header {
  padding: 17px 17px 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid #69845418;
}
.chat-panel header i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #769956;
  border-radius: 50%;
  margin: 0 7px 2px 0;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}
.empty-chat {
  color: #7e9277;
  font-size: 13px;
  text-align: center;
  margin-top: 65px;
  line-height: 1.5;
}
.empty-chat small {
  display: block;
  font-size: 9px;
  margin-top: 9px;
}
.message {
  padding: 7px 0;
  font-size: 12px;
  line-height: 1.5;
}
.message strong {
  display: block;
  font-size: 9px;
  color: #7b936a;
  margin-bottom: 3px;
}
.message p {
  margin: 0;
  overflow-wrap: anywhere;
}
.notice {
  font-size: 9px;
  color: #91a184;
  padding: 5px 0;
}
.chat-panel > form {
  margin: 8px 12px 12px;
  display: flex;
  gap: 9px;
  padding: 4px;
  border-radius: 12px;
  background: #e4e8d7;
}
.chat-panel form input {
  border: 0;
  background: none;
  padding: 10px;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  outline-offset: 0;
}
.chat-panel form button {
  width: 34px;
  border: 0;
  background: #315b42;
  color: #eef1d9;
  border-radius: 9px;
  font-size: 20px;
  flex-shrink: 0;
}
.people-panel {
  position: fixed;
  right: 37px;
  top: 95px;
  width: 250px;
  z-index: 15;
  padding-bottom: 8px;
  background: #f4f1e7f2;
  border: 1px solid #fff9;
  border-radius: 17px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px #163c2922;
}
.people-panel ul {
  padding: 5px 17px;
  margin: 0;
  list-style: none;
}
.people-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 9px 0;
}
.people-panel li img {
  height: 35px;
  width: 30px;
  object-fit: cover;
  object-position: center 8%;
  background: #d7dfc9;
  border-radius: 9px;
}
.people-panel li small {
  margin-left: auto;
  font-size: 8px;
  color: #8a9d7a;
}
.photo-exit {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #f5f2decc;
  color: #355b40;
  padding: 12px 20px;
  border: 1px solid #fff8;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  font-size: 11px;
}
.take-photo {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  align-items: center;
  background: #153f35ed;
  color: #f6f0d8;
  padding: 15px 23px;
  border: 1px solid #ffffff60;
  border-radius: 30px;
  font-size: 12px;
}
.take-photo svg {
  width: 20px;
}
.photo-mode .topbar,
.photo-mode #session-hud,
.photo-mode .welcome,
.photo-mode .world-caption,
.photo-mode .preview-tip {
  visibility: hidden;
}
.photo-mode #chat-panel,
.photo-mode .touch-stick,
.photo-mode .touch-jump {
  visibility: hidden;
}
#performance {
  position: fixed;
  right: 22px;
  bottom: 110px;
  z-index: 20;
  max-width: 350px;
  background: #133d37df;
  border: 1px solid #d4e9c022;
  color: #cce9c0;
  padding: 14px 17px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  pointer-events: none;
}
#performance strong {
  font-size: 14px;
}
#gpu-name {
  font-size: 8px;
  max-width: 310px;
  overflow-wrap: anywhere;
}
.touch-stick {
  position: fixed;
  bottom: 150px;
  left: 28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e9f1d63b;
  border: 1px solid #f1f3df88;
  touch-action: none;
  z-index: 8;
}
.touch-stick div {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f4df99;
  border: 1px solid #fff;
  left: 33px;
  top: 33px;
  pointer-events: none;
}
.touch-jump {
  position: fixed;
  right: 28px;
  bottom: 165px;
  background: #f4f3dc99;
  border: 1px solid #fff9;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  z-index: 8;
  color: #365642;
  font-size: 26px;
  touch-action: none;
}
svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1100px) {
  .topbar {
    padding: 22px;
  }
  .prototype-badge,
  .connection {
    display: none;
  }
  .island-card {
    width: 145px;
    left: 20px;
    bottom: 105px;
    padding: 13px;
  }
  #minimap {
    width: 117px;
    height: 112px;
  }
  .world-caption {
    display: none;
  }
  .welcome {
    left: 4vw;
  }
  .control-cluster {
    gap: 0;
    padding: 7px;
  }
  .round-control {
    min-width: 52px;
  }
  .movement-help {
    gap: 9px;
  }
  .avatar-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 15px 17px;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand-symbol {
    width: 34px;
    height: 36px;
    border-radius: 11px;
  }
  .brand-symbol svg {
    width: 25px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .location-pill {
    left: auto;
    right: 18px;
    top: 72px;
    transform: none;
    padding: 8px 12px;
    gap: 8px;
  }
  .location-pill strong {
    font-size: 11px;
  }
  .location-pill small {
    font-size: 7px;
  }
  .location-orbit {
    font-size: 20px;
  }
  .chevron {
    margin-left: 5px;
  }
  .top-actions {
    gap: 8px;
  }
  .invite-button {
    padding: 10px 13px;
    font-size: 10px;
  }
  .people-button {
    padding: 9px 10px;
  }
  .welcome {
    width: min(320px, 90vw);
    left: 5vw;
    top: auto;
    bottom: 34px;
    transform: none;
    padding: 22px;
  }
  .welcome h1 {
    font-size: 31px;
    margin-top: 14px;
  }
  .welcome > p {
    margin-bottom: 13px;
    font-size: 10px;
  }
  .welcome-avatar {
    padding: 8px 0;
    margin: 6px 0;
  }
  .welcome-avatar img {
    height: 51px;
    width: 43px;
  }
  .welcome-note {
    margin-top: 12px;
  }
  .welcome > input {
    padding: 7px 1px;
  }
  .preview-tip {
    display: none;
  }
  .island-card {
    display: none;
  }
  .movement-help {
    display: none;
  }
  .bottom-bar {
    bottom: 24px;
    width: calc(100% - 26px);
  }
  .control-cluster {
    justify-content: space-between;
    padding: 8px 5px;
    border-radius: 17px;
  }
  .round-control {
    min-width: 36px;
    flex: 1;
    height: 46px;
    gap: 5px;
  }
  .round-control small {
    font-size: 6px;
  }
  .round-control svg {
    width: 19px;
    height: 19px;
  }
  .control-divider {
    margin: 0 1px;
    height: 21px;
  }
  .exit-button {
    bottom: 89px;
    left: 25px;
    font-size: 9px;
  }
  .interaction-prompt {
    bottom: 105px;
    font-size: 10px;
    max-width: 82vw;
    white-space: nowrap;
  }
  .chat-panel {
    right: 13px;
    bottom: 100px;
    width: min(330px, calc(100% - 26px));
    height: 330px;
  }
  .people-panel {
    right: 14px;
    top: 65px;
  }
  .avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .avatar-card img {
    height: 125px;
  }
  .panel-dialog {
    padding: 20px;
    border-radius: 20px;
    max-height: 88vh;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  .dialog-head p {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  .dialog-head .eyebrow {
    max-width: 220px;
  }
  #avatar-filters {
    gap: 4px;
  }
  #avatar-filters button {
    padding: 7px 10px;
    font-size: 9px;
  }
  .touch-stick {
    bottom: 140px;
  }
  .touch-jump {
    bottom: 152px;
  }
  #performance {
    bottom: 100px;
    right: 13px;
    font-size: 8px;
    max-width: 260px;
  }
  .boot h1 {
    font-size: 22px;
    text-align: center;
    padding: 0 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .loader {
    animation: none;
    border-top-width: 3px;
  }
}

.brand {
  background: #f2f2dfb8;
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 8px 13px 8px 9px;
}
.brand-symbol {
  width: 34px;
  height: 36px;
  border-radius: 10px;
}
.brand {
  font-size: 24px;
}
.topbar {
  padding-top: 19px;
}
.brand small {
  font-size: 7px;
}
.photo-mode .people-panel {
  visibility: hidden;
}

.fallback {
  overflow: auto;
  display: block;
  padding: 45px 6vw;
}
.fallback p {
  font-size: 14px;
  line-height: 1.7;
}
.fallback-retry {
  width: 240px;
  text-decoration: none;
  margin: 22px 0;
}
.fallback-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 25px;
}
.fallback-catalog figure {
  margin: 0;
  background: #dce2d1;
  padding: 15px;
  border-radius: 15px;
}
.fallback-catalog img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.fallback-catalog figcaption {
  font-size: 11px;
  margin-top: 10px;
}

.account-button {
  border: 1px solid #365b3b2a;
  border-radius: 24px;
  background: #f7f3dfce;
  color: var(--ink);
  padding: 11px 15px;
  font-size: 11px;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 22px 0;
}
.stack-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
}
.stack-form input:not([type='checkbox']),
.stack-form select,
.stack-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #2e51432b;
  background: #fffdf4;
  color: var(--ink);
  border-radius: 9px;
  font: inherit;
}
.stack-form .checkbox-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.stack-form .checkbox-label input {
  margin-top: 3px;
  accent-color: #385f43;
}
.stack-form .primary-button {
  margin: 0;
}
.stack-form p {
  margin: 0;
}
.secondary-button {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  border: 1px solid #34584250;
  background: #dce6c8;
  padding: 13px 18px;
  color: var(--ink);
  font-size: 12px;
  border-radius: 12px;
}
.form-error {
  padding: 12px;
  background: #f5e3d8;
  color: #843d2c;
  border-radius: 8px;
  font-size: 12px;
}
.small-dialog {
  max-height: 88dvh;
  overflow: auto;
}
.wide-dialog {
  width: min(580px, calc(100vw - 30px));
}
.management-list {
  list-style: none;
  margin: 15px 0;
  padding: 0;
}
.management-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #34584225;
  padding: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.management-list button,
.person-actions button,
.turns-panel button:not(#close-turns) {
  border: 1px solid #34584233;
  border-radius: 8px;
  background: #e4e9d3;
  color: var(--ink);
  font-size: 10px;
  padding: 7px 9px;
}
.management-list select {
  font-size: 11px;
  max-width: 145px;
  padding: 8px;
}
.room-link {
  display: block;
  text-decoration: none;
  padding: 15px;
  border-bottom: 1px solid #34584225;
  color: var(--ink);
  font-size: 13px;
}
.people-panel {
  width: 330px;
  max-height: calc(100dvh - 180px);
  overflow: auto;
}
.people-panel ul li {
  align-items: flex-start;
  gap: 10px;
}
.person-details {
  min-width: 0;
  flex: 1;
}
.person-details strong {
  font-size: 12px;
  display: block;
}
.person-details small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
}
.person-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0;
  margin-top: 8px;
}
.person-volume input {
  width: 100%;
  accent-color: #577c4f;
  height: 13px;
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.turns-panel {
  position: fixed;
  z-index: 12;
  right: 24px;
  bottom: 118px;
  width: 310px;
  max-height: 65dvh;
  overflow: auto;
  background: #f7f3e7ed;
  border: 1px solid #fff9;
  border-radius: 18px;
  padding: 19px;
  box-shadow: 0 20px 70px #143a3126;
  backdrop-filter: blur(22px);
}
.turns-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 650;
}
.turns-panel #close-turns {
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--ink);
}
.turns-panel p {
  font-size: 11px;
  line-height: 1.6;
}
.turns-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.turns-panel li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #34584225;
  font-size: 12px;
}
.has-request {
  box-shadow: inset 0 0 0 2px #c6a15d;
}
.photo-mode .turns-panel {
  visibility: hidden;
}
.topbar .brand > span:last-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.round-control[aria-pressed='true'] {
  background: #cadfb1;
}
@media (max-width: 1100px) {
  .location-pill {
    position: static;
    transform: none;
    margin: 0 12px;
  }
  .topbar {
    gap: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  .round-control {
    min-width: 47px;
  }
  .people-panel {
    right: 16px;
  }
  .topbar .brand > span:last-child {
    max-width: 130px;
  }
}
@media (max-width: 720px) {
  .topbar {
    gap: 6px;
  }
  .location-pill {
    position: absolute;
    right: 17px;
    margin: 0;
    top: 79px;
  }
  .account-button {
    max-width: 84px;
    font-size: 10px;
    padding: 9px 11px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-symbol {
    display: none;
  }
  .topbar .brand > span:last-child {
    max-width: 110px;
  }
  .top-actions {
    gap: 5px;
  }
  .round-control {
    min-width: 30px;
  }
  .round-control small {
    font-size: 6px;
  }
  .turns-panel {
    right: 13px;
    bottom: 100px;
    width: min(310px, calc(100vw - 26px));
  }
  .people-panel {
    width: min(330px, calc(100vw - 26px));
    top: 118px;
  }
  .management-list li {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stack-form {
    gap: 13px;
  }
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.share-actions .primary-button,
.share-actions .secondary-button {
  margin: 0;
  min-height: 48px;
  font-size: 12px;
}
.share-card {
  border-radius: 14px;
  border: 1px solid #34584225;
  margin: 15px 0;
  background: #e9ead9;
  overflow: hidden;
}
.share-card video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #132a26;
}
.share-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  font-size: 12px;
}
.share-card-actions button {
  background: #fff9;
  border: 1px solid #34584230;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 11px;
}
.media-viewer {
  width: 96vw;
  height: 94dvh;
  max-width: none;
  max-height: none;
  border: 1px solid #ffffff77;
  border-radius: 20px;
  padding: 18px 22px;
  background: #f5f2e5;
  box-shadow: 0 20px 90px #122c3944;
  color: var(--ink);
}
.media-viewer::backdrop {
  background: #0c241c99;
  backdrop-filter: blur(8px);
}
.media-viewer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 45px;
}
.media-viewer h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.media-viewer header button {
  font-size: 30px;
  background: transparent;
  border: 0;
  color: var(--ink);
}
#media-view-content {
  height: calc(100% - 85px);
  display: grid;
  place-items: center;
  background: #122c26;
  border-radius: 10px;
  overflow: hidden;
}
#media-view-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-viewer p {
  font-size: 11px;
  line-height: 1.6;
  margin: 12px 0;
}
.mic-blocked {
  opacity: 0.6;
}
.stack-form fieldset {
  border: 1px solid #34584225;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack-form legend {
  font-size: 11px;
  padding: 0 7px;
}
.people-panel li {
  border-bottom: 1px solid #34584215;
}
.share-card-actions strong {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .share-actions {
    grid-template-columns: 1fr;
  }
  .control-cluster {
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 100%;
  }
  .round-control {
    flex-shrink: 0;
    min-width: 37px;
  }
  .control-divider {
    flex-shrink: 0;
  }
  .media-viewer {
    padding: 12px;
    width: 98vw;
    height: 94dvh;
  }
  .media-viewer h2 {
    font-size: 13px;
  }
}

.content-dialog {
  width: min(650px, calc(100vw - 28px));
  padding: 28px 32px;
}
.content-dialog h2 {
  font-size: 29px;
}
.content-dialog > p {
  font-size: 12px;
  line-height: 1.7;
}
.content-dialog details {
  border: 1px solid #34584225;
  border-radius: 13px;
  padding: 15px;
  margin: 20px 0;
}
.content-dialog summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  list-style: none;
}
.content-dialog summary span {
  font-size: 20px;
  font-weight: 400;
}
.content-dialog .stack-form small {
  font-size: 10px;
  line-height: 1.6;
  opacity: 0.75;
}
.content-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0 22px;
}
.content-list-item {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #e5e9d6;
  border: 1px solid #34584216;
  border-radius: 11px;
  padding: 13px;
}
.content-list-item > div {
  flex: 1;
  min-width: 0;
}
.content-list-item strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.content-list-item small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.7;
}
.content-list-item button,
.document-navigation button {
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #f9f6e9;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 11px;
}
.triple-input {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}
.triple-input input {
  min-width: 0;
}
.content-management {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  border-top: 1px solid #34584225;
  padding-top: 15px;
}
.world-document-controls {
  position: fixed;
  z-index: 9;
  transform: translate(-50%, 0);
  display: flex;
  gap: 7px;
  align-items: center;
  background: #f5f2e6ed;
  backdrop-filter: blur(14px);
  border: 1px solid #fff9;
  border-radius: 24px;
  padding: 6px 10px;
  box-shadow: 0 7px 28px #123c3124;
  white-space: nowrap;
}
.world-document-controls button {
  width: 30px;
  height: 29px;
  border: 0;
  background: #dce5c5;
  border-radius: 50%;
  color: var(--ink);
  font-size: 15px;
}
.world-document-controls span {
  font-size: 11px;
  padding: 0 5px;
}
.document-dialog {
  width: min(1180px, 96vw);
  height: 94dvh;
  max-height: 96dvh;
  max-width: none;
  border: 1px solid #fff9;
  border-radius: 22px;
  background: #f5f2e7;
  color: var(--ink);
  padding: 20px 24px;
  box-shadow: 0 25px 100px #0c282a44;
  overflow: hidden;
}
.document-dialog::backdrop {
  background: #142f2ab0;
  backdrop-filter: blur(7px);
}
.document-dialog header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}
.document-dialog h2 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.document-dialog header > button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 30px;
  padding: 0 4px;
}
#document-stage {
  height: calc(100% - 149px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d3dac7;
  border: 1px solid #34584216;
  border-radius: 12px;
  overflow: auto;
  padding: 12px;
}
#document-stage canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 25px #24433322;
}
#document-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.document-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 0 3px;
  min-height: 55px;
}
.document-navigation > div {
  text-align: center;
  min-width: 180px;
}
.document-navigation strong {
  font-size: 13px;
  display: block;
}
.document-navigation small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  opacity: 0.7;
}
.document-footer {
  font-size: 10px;
  margin: 9px 0 0;
  opacity: 0.65;
  text-align: center;
}
#video-navigation {
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
}
#video-navigation input {
  width: 70px;
  accent-color: #55754d;
}
.video-policy-selection {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
}
.video-policy-selection label {
  flex-direction: row;
  gap: 9px;
}
.video-policy-selection input {
  width: auto !important;
  accent-color: #55754d;
}
.photo-mode .world-document-controls {
  visibility: hidden;
}
.full-note {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 20px;
  padding: 30px;
  max-width: 70ch;
  margin: auto;
  align-self: flex-start;
}
@media (max-width: 720px) {
  .content-dialog {
    padding: 22px 18px;
  }
  .content-list-item {
    padding: 11px 9px;
    gap: 5px;
  }
  .content-list-item button {
    font-size: 9px;
    padding: 8px;
  }
  .document-dialog {
    padding: 12px;
    width: 98vw;
  }
  .document-dialog header {
    height: 61px;
  }
  .document-dialog h2 {
    font-size: 14px;
    max-width: 73vw;
  }
  .document-navigation {
    gap: 8px;
  }
  .document-navigation > div {
    min-width: 100px;
  }
  .document-navigation button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .document-navigation small {
    font-size: 8px;
  }
  #document-stage {
    padding: 5px;
  }
  .world-document-controls {
    max-width: 95vw;
  }
  .full-note {
    font-size: 16px;
    padding: 15px;
  }
  .content-management {
    gap: 7px;
  }
}

#microphone-level {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: 9px;
  accent-color: #55754d;
}
.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.avatar-import-section {
  margin-top: 35px;
  border-top: 1px solid #34584225;
  padding-top: 24px;
}
.avatar-import-section details {
  border: 1px solid #34584225;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 15px;
}
.avatar-import-section summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.avatar-import-section p {
  font-size: 12px;
  line-height: 1.7;
}
.avatar-import-section .stack-form {
  max-width: 650px;
}
.admin-avatar-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 380px;
  overflow: auto;
}
.admin-avatar-catalog fieldset {
  margin: 0;
  padding: 9px;
}
.admin-avatar-catalog label {
  display: flex !important;
  flex-direction: row !important;
  gap: 7px !important;
  align-items: center;
  font-size: 10px !important;
  padding: 5px 0;
}
.admin-avatar-catalog input {
  width: auto !important;
}
.admin-avatar-catalog img {
  width: 30px;
  height: 38px;
  object-fit: contain;
  background: #e0e7cf;
  border-radius: 6px;
}
.logo-preview {
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
}
.creator-dialog {
  width: min(1100px, 96vw);
  height: 92dvh;
  max-width: none;
  padding: 20px;
  background: #f4f0df;
  border-radius: 20px;
  border: 1px solid #fff8;
}
.creator-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.creator-dialog h2 {
  font-size: 20px;
}
.creator-dialog header button {
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--ink);
}
#avaturn-status {
  font-size: 12px;
  min-height: 25px;
}
#avaturn-container {
  height: calc(100% - 110px);
  min-height: 220px;
}
#avaturn-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
#admin-dialog form + form {
  border-top: 1px solid #34584225;
  padding-top: 22px;
  margin-top: 25px;
}
@media (max-width: 560px) {
  .admin-avatar-catalog {
    grid-template-columns: 1fr;
  }
  .avatar-import-section {
    margin-top: 25px;
  }
}

#xr-dom-overlay {
  pointer-events: none;
}
body.xr-active #interface,
body.xr-active #world-document-controls,
body.xr-active #performance {
  visibility: hidden;
}
#xr-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
}
.xr-actions {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90vw;
}
.xr-actions button {
  pointer-events: auto;
  background: #f1f0df;
  color: #24493c;
  border: 0;
  border-radius: 2rem;
  padding: 1rem 1.5rem;
  font: inherit;
}
.xr-actions small {
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}

/* Private text conversations with authored AI avatars. */
.ai-selector {
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.ai-selector select {
  width: 100%;
  padding: 12px;
  border: 1px solid #bed0c4;
  border-radius: 10px;
  background: #f9f8ee;
  color: #24463b;
}
.ai-messages {
  min-height: 120px;
  max-height: 32vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}
.ai-empty {
  font-size: 13px;
  line-height: 1.7;
  color: #637467;
}
.ai-message {
  padding: 13px 16px;
  background: #e6eee0;
  border-radius: 14px;
  max-width: 92%;
  font-size: 13px;
}
.ai-message.user {
  align-self: flex-end;
  background: #245b4b;
  color: #fff;
}
.ai-message.error {
  background: #f6e7c8;
}
.ai-message strong {
  font-size: 11px;
  opacity: 0.75;
}
.ai-message p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.ai-form {
  display: grid;
  gap: 8px;
}
.ai-form label {
  font-size: 12px;
}
.ai-form textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid #bed0c4;
  border-radius: 10px;
  resize: vertical;
  background: #faf9f0;
  max-height: 25vh;
}
.ai-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ai-form .primary-button {
  width: auto;
  padding: 12px 22px;
  font-size: 13px;
}
#ai-notice {
  font-size: 11px;
  line-height: 1.6;
}
#ai-button[hidden] {
  display: none;
}

.published-waypoints {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.published-waypoint-button {
  padding: 14px 18px;
  background: #e5eadc;
  border: 1px solid #bfcdb8;
  border-radius: 12px;
  color: #284f40;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.published-waypoint-button:hover {
  background: #d7e5cd;
}

.youtube-view {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.youtube-view p {
  max-width: 760px;
  margin: 4px auto 8px;
  line-height: 1.4;
  font-size: 11px;
}
.youtube-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-view > .primary-button {
  display: block;
  margin: 8px auto;
  padding: 10px;
  max-width: 760px;
}
.youtube-view > button:not(.primary-button) {
  align-self: center;
  padding: 7px 12px;
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #f9f6e9;
  color: var(--ink);
  font-size: 11px;
}
.youtube-expanded-anchor {
  flex: 1;
  min-height: 200px;
  width: 100%;
  max-width: 960px;
  margin: 8px auto 0;
  background: #173b35;
  aspect-ratio: 16/9;
}
.youtube-surface-notice:empty {
  display: none;
}
.youtube-surfaces {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 41;
}
body.xr-active .youtube-surfaces {
  z-index: 501;
}
.youtube-dock {
  box-sizing: content-box;
  position: absolute;
  right: 16px;
  top: 86px;
  border: 1px solid #fff9;
  border-radius: 12px;
  background: #f5f2e7;
  color: var(--ink);
  box-shadow: 0 10px 35px #153f3744;
  overflow: hidden;
  pointer-events: auto;
}
.youtube-dock header,
.youtube-dock footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 42px;
}
.youtube-dock footer {
  flex-wrap: wrap;
}
.youtube-dock header strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.youtube-dock button {
  border: 1px solid #34584230;
  border-radius: 7px;
  background: #f9f6e9;
  color: var(--ink);
  font-size: 10px;
  padding: 6px 9px;
}
.youtube-dock label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.youtube-dock input {
  width: 70px;
  accent-color: #55754d;
}
.youtube-dock .youtube-stage {
  position: relative;
  background: #000;
}
.youtube-dock-world {
  overflow: visible;
}
.youtube-dock-world .youtube-stage {
  position: fixed;
  transform-origin: 0 0;
}
.youtube-dock-expanded {
  position: fixed;
  inset: 0;
  width: auto !important;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
  overflow: visible;
}
.youtube-dock-expanded .youtube-stage {
  position: fixed;
  pointer-events: auto;
}
.youtube-expanded-dialog {
  z-index: 40;
}
.youtube-expanded-dialog #document-stage {
  overflow: hidden;
}

.document-link {
  display: block;
  margin: 8px auto;
  text-align: center;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.document-link:focus-visible {
  outline: 3px solid #657d44;
  outline-offset: 3px;
}
.document-link small {
  display: block;
  font-size: 10px;
  max-height: 3em;
  overflow: auto;
  margin-top: 4px;
}

/* Reading remains usable with a small viewport; zoom never changes the room page. */
.document-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.document-dialog > header,
.document-dialog > nav,
.document-dialog > .document-link,
.document-dialog > .document-footer,
.document-dialog > .document-zoom-controls {
  flex-shrink: 0;
}
#document-dialog #document-stage {
  height: auto;
  flex: 1;
  min-height: 0;
}
#document-stage:has(canvas) {
  overscroll-behavior: contain;
}
#document-stage.document-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}
#document-stage:has(+ .document-zoom-controls:not([hidden])) canvas {
  max-width: none;
  max-height: none;
  flex-shrink: 0;
}
.document-zoom-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.document-zoom-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 12px;
  background: #e3eadb;
  color: var(--ink);
  border: 1px solid #b8c7ae;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
}
.document-zoom-controls output {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.document-zoom-controls small {
  font-size: 10px;
  opacity: 0.7;
}
@media (max-width: 720px) {
  :root {
    --touch-dock-height: 132px;
  }
  :root:has(#ai-button:not([hidden])) {
    --touch-dock-height: 187px;
  }
  .bottom-bar {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-width: 600px;
  }
  .control-cluster {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    padding: 6px;
    overflow: visible;
  }
  .control-divider {
    display: none;
  }
  .round-control {
    min-width: 0;
    width: 100%;
    height: 51px;
    gap: 5px;
    padding: 4px 2px;
  }
  .round-control small {
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow-wrap: normal;
  }
  .touch-stick {
    left: 20px;
    bottom: calc(var(--touch-dock-height) + 34px + env(safe-area-inset-bottom));
  }
  .touch-jump {
    right: 20px;
    bottom: calc(var(--touch-dock-height) + 54px + env(safe-area-inset-bottom));
  }
  .chat-panel,
  .turns-panel {
    bottom: calc(var(--touch-dock-height) + 12px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - var(--touch-dock-height) - 150px);
  }
  .exit-button {
    bottom: calc(var(--touch-dock-height) + 8px + env(safe-area-inset-bottom));
  }
  .interaction-prompt {
    bottom: calc(var(--touch-dock-height) + 16px + env(safe-area-inset-bottom));
  }
  .document-dialog header {
    height: auto;
    min-height: 42px;
  }
  .document-navigation {
    padding: 0;
    min-height: 44px;
  }
  .document-navigation button {
    min-height: 44px;
  }
  .document-footer {
    margin: 0;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .bottom-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 30px);
  }
  .control-cluster {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 5px;
    overflow-x: auto;
  }
  .control-divider {
    display: none;
  }
  .round-control {
    min-width: 46px;
    width: auto;
    flex: 1;
    height: 48px;
  }
  .round-control small {
    font-size: 9px;
  }
  .touch-stick {
    left: 20px;
    bottom: 90px;
    width: 100px;
    height: 100px;
  }
  .touch-stick div {
    left: 28px;
    top: 28px;
  }
  .touch-jump {
    right: 20px;
    bottom: 110px;
  }
  .movement-help,
  .island-card {
    display: none;
  }
  .exit-button {
    bottom: 76px;
    left: 25px;
  }
  .chat-panel,
  .turns-panel {
    bottom: 78px;
    max-height: calc(100dvh - 155px);
  }
  .interaction-prompt {
    bottom: 80px;
  }
  .document-dialog {
    padding: 10px 14px;
  }
  .document-dialog header {
    height: auto;
    min-height: 34px;
  }
  .document-dialog h2 {
    margin: 0;
    font-size: 14px;
  }
  .document-dialog .eyebrow,
  .document-footer {
    display: none;
  }
  .document-navigation {
    min-height: 44px;
    padding: 0;
  }
  .document-dialog #video-navigation {
    gap: 4px;
  }
}

@media (pointer: coarse) {
  .island-card,
  .movement-help {
    display: none;
  }
}

.world-object-controls {
  position: fixed;
  left: 12px;
  top: 12px;
  bottom: auto;
  transform: none;
  z-index: 9;
  width: min(342px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 10px;
  border: 1px solid #ffffffa0;
  border-radius: 16px;
  background: #f7f3e7f5;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px #173b3525;
  color: #173b35;
  pointer-events: auto;
}
.world-object-controls header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.world-object-controls strong {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.world-object-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #b9cbbd;
  border-radius: 9px;
  background: #e9efdf;
  color: #173b35;
  padding: 8px 10px;
  font-size: 12px;
  touch-action: manipulation;
}
.world-object-controls header button {
  font-size: 22px;
  padding: 4px;
}
.object-context-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.world-object-controls button[aria-pressed='true'] {
  background: #285c4e;
  color: #fff;
  border-color: #285c4e;
}
.world-object-controls[data-edge='true'] {
  border-color: #a5b9a5;
}
.world-object-controls p {
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0 5px;
}
.world-object-controls small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
}
.object-move-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.object-move-actions button {
  flex: 1;
}
.world-object-controls .object-move-confirm {
  background: #285c4e;
  color: #fff;
  border-color: #285c4e;
}
body.xr-active .world-object-controls,
body.photo-mode .world-object-controls {
  visibility: hidden;
}
@media (max-width: 720px) {
  .world-object-controls {
    width: min(310px, calc(100vw - 24px));
    padding: 8px;
  }
  .world-object-controls button {
    font-size: 12px;
    padding: 8px;
  }
  .world-object-controls p {
    font-size: 11px;
  }
}

.avatar-management {
  border-block: 1px solid #23483925;
  margin: 16px 0;
  padding: 14px 0;
}
.avatar-management summary {
  cursor: pointer;
  font-weight: 600;
}
.avatar-management p {
  font-size: 12px;
  line-height: 1.6;
}
.avatar-management h3 {
  font-size: 13px;
  margin: 18px 0 8px;
}
.avatar-management ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.avatar-management li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #23483915;
}
.avatar-management li > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.avatar-management li > button {
  flex-shrink: 0;
  width: auto;
  margin: 0;
}
.avatar-management [role='status'] {
  min-height: 1.6em;
}

/* Shared tools keep the accepted world visible and own their pointer gesture. */
.drawing-controls {
  position: fixed;
  top: 96px;
  right: 18px;
  z-index: 9;
  width: min(360px, calc(100% - 24px));
  padding: 14px 16px;
  border: 1px solid #ffffff90;
  border-radius: 18px;
  background: #f7f3e7f5;
  box-shadow: 0 8px 30px #173b3525;
  color: #173b35;
  text-align: center;
  pointer-events: auto;
}
.drawing-tools,
.drawing-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.drawing-controls button,
.drawing-controls select {
  min-height: 44px;
  border: 1px solid #b9cbbd;
  border-radius: 10px;
  background: #e9efdf;
  color: #173b35;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
}
.drawing-controls button[aria-pressed='true'] {
  background: #285c4e;
  color: #fff;
}
.drawing-options {
  margin-top: 9px;
  font-size: 12px;
}
.drawing-options label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawing-options input {
  height: 44px;
  width: 48px;
  border: 1px solid #b9cbbd;
  border-radius: 9px;
  padding: 4px;
  background: #fff;
}
.drawing-controls p {
  font-size: 12px;
  margin: 10px 0 4px;
}
.drawing-controls small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.drawing-active #world {
  cursor: crosshair;
}
.drawing-active .world-object-controls,
.drawing-active #world-document-controls {
  visibility: hidden;
}
body.xr-active .drawing-controls,
body.photo-mode .drawing-controls {
  display: none;
}
#xr-overlay dialog {
  pointer-events: auto;
  max-height: 78dvh;
}
#drawing-button > span {
  font-size: 26px;
  line-height: 24px;
}
@media (max-width: 720px) {
  .drawing-controls {
    top: 80px;
    right: 12px;
    padding: 10px;
  }
  .drawing-tools {
    gap: 5px;
  }
  .drawing-controls button {
    padding: 8px;
  }
  .drawing-active .island-card {
    visibility: hidden;
  }
}

/* Compact content library; precise and specialized settings stay in disclosures. */
.content-dialog summary {
  min-height: 44px;
  align-items: center;
}
.content-dialog details .stack-form {
  margin-top: 12px;
}
.content-dialog details details {
  margin: 4px 0;
  padding: 8px 12px;
  background: #ffffff35;
}
.content-dialog #object-advanced {
  margin: 4px 0;
  padding: 8px 12px;
}
.content-dialog #object-inspector h3 {
  margin: 18px 0 14px;
}
.content-dialog button,
.content-dialog input:not([type='checkbox']):not([type='color']),
.content-dialog select,
.content-dialog summary {
  min-height: 44px;
}
.content-dialog input[type='file'] {
  padding: 8px;
  font-size: 12px;
  max-width: 100%;
}
.content-dialog input[type='file']::file-selector-button {
  min-height: 44px;
  margin-right: 10px;
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #f9f6e9;
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
}
.content-dialog .content-list-item {
  padding: 9px 11px;
}
.content-dialog .content-list-item button {
  min-width: 44px;
  padding: 8px 10px;
}
.content-dialog .content-management {
  margin-top: 14px;
}
.content-dialog #content-room-options {
  margin: 12px 0;
}
.content-dialog #object-advanced > .stack-form {
  gap: 14px;
}
.world-document-controls button {
  min-width: 44px;
  min-height: 44px;
}
.world-document-controls {
  max-width: calc(100vw - 24px);
}
@media (max-width: 420px) {
  .content-dialog {
    padding: 22px 14px;
  }
  .content-list-item {
    flex-wrap: wrap;
  }
  .content-list-item > div {
    flex-basis: 100%;
  }
  .content-list-item button {
    flex: 1;
  }
  .world-document-controls {
    gap: 2px;
    padding: 4px;
  }
  .world-document-controls span {
    padding: 0 2px;
  }
}

/* People keep stable controls; advanced room and invitation settings are explicit. */
.people-panel .person-row {
  display: block;
  padding: 8px 0;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.people-panel .person-head > img {
  width: 34px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex: none;
}
.person-toggle {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}
.people-panel .person-toggle:disabled {
  opacity: 1;
  cursor: default;
}
.person-toggle strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.people-panel .person-toggle small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 3px;
  color: #647c68;
}
.person-toggle[aria-expanded='true'] strong::after {
  content: ' −';
  color: #6d8669;
}
.person-toggle:not(:disabled)[aria-expanded='false'] strong::after {
  content: ' ＋';
  color: #6d8669;
}
.people-panel .person-quick {
  min-height: 44px;
  flex: none;
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #d8e6c8;
  color: var(--ink);
  padding: 8px;
  font-size: 11px;
}
.person-controls {
  padding: 8px 2px 4px 42px;
}
.people-panel .person-volume {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  margin: 0;
}
.person-volume input[type='range'] {
  min-height: 44px;
  width: 100%;
  margin: 0;
  accent-color: #55754d;
}
.people-panel .person-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}
.people-panel .person-actions button {
  min-height: 44px;
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #f9f6e9;
  color: var(--ink);
  padding: 7px;
  font-size: 10px;
}
.people-panel #close-people {
  width: 44px;
  height: 44px;
}
.session-disclosure {
  border: 1px solid #34584225;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 12px 0;
}
.session-disclosure > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  gap: 8px;
}
.session-disclosure > summary::after {
  content: '＋';
  margin-left: auto;
  font-weight: 400;
  font-size: 18px;
}
.session-disclosure[open] > summary::after {
  content: '−';
}
.session-disclosure > .stack-form {
  margin-top: 10px;
}
.management-dialog .stack-form > .session-disclosure {
  margin: 0;
}
.management-dialog button,
.management-dialog summary,
.management-dialog select,
.management-dialog input:not([type='checkbox']),
.invitation-dialog button,
.invitation-dialog summary,
.invitation-dialog select,
.invitation-dialog input {
  min-height: 44px;
}
.management-dialog textarea {
  resize: vertical;
  max-width: 100%;
}
.invitation-link-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin: 20px 0 8px;
}
.invitation-link-label input {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 11px;
  border: 1px solid #34584230;
  border-radius: 9px;
  background: #fff9;
  color: var(--ink);
}
.invitation-result {
  border-top: 1px solid #34584225;
  margin-top: 16px;
  padding-top: 2px;
}
.invitation-result > .secondary-button {
  width: 100%;
}
.invitation-result .text-button {
  width: 100%;
  text-align: center;
}
.invitation-dialog #copy-link {
  justify-content: center;
}
.invitation-dialog .session-disclosure p {
  font-size: 11px;
  margin-top: 8px;
}
.management-dialog #room-save {
  justify-content: center;
}
.management-dialog .session-disclosure .settings-note {
  margin: 0;
}
.management-dialog .session-disclosure fieldset {
  margin: 0;
}
.management-dialog .close-dialog,
.invitation-dialog .close-dialog {
  width: 44px;
  height: 44px;
}
@media (max-width: 420px) {
  .person-controls {
    padding-left: 2px;
  }
  .people-panel .person-quick {
    font-size: 10px;
    padding: 6px;
  }
  .management-dialog,
  .invitation-dialog {
    padding: 24px 16px;
  }
  .session-disclosure {
    padding: 6px 10px;
  }
  .person-toggle strong {
    font-size: 11px;
  }
}

/* Room panels temporarily take precedence; closing them restores the same world tool and draft. */
:is(.chat-panel, .people-panel, .turns-panel):not([hidden])
  ~ :is(.world-object-controls, .world-document-controls, .drawing-controls, .share-room-controls) {
  visibility: hidden;
}

/* Own captures stay reachable from the world without opening the share dialog. */
.share-room-controls {
  position: fixed;
  z-index: 9;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 230px);
  overflow: auto;
  padding: 6px 10px;
  border: 1px solid #ffffffa0;
  border-radius: 14px;
  background: #f7f3e7f5;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px #173b3525;
  color: var(--ink);
  pointer-events: auto;
}
.share-room-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.share-room-channel:not([hidden]) + .share-room-channel:not([hidden]) {
  border-top: 1px solid #34584225;
}
.share-room-channel > span {
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.share-room-channel > button {
  min-width: 44px;
  min-height: 44px;
  flex: none;
  margin: 3px 0;
  padding: 8px 10px;
  border: 1px solid #b9cbbd;
  border-radius: 9px;
  background: #e9efdf;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  touch-action: manipulation;
}
body.photo-mode .share-room-controls,
body.xr-active .share-room-controls {
  visibility: hidden;
}
@media (max-width: 720px) {
  .share-room-controls {
    top: 130px;
    max-height: calc(100dvh - var(--touch-dock-height) - 170px - env(safe-area-inset-bottom));
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .share-room-controls {
    top: 78px;
    left: 12px;
    transform: none;
    max-height: calc(100dvh - 164px);
  }
}
:root .resume-audio-button {
  position: fixed;
  top: 80px;
  right: 18px;
  z-index: 25;
  max-width: calc(100vw - 36px);
  padding: 12px 18px;
  border-radius: 18px;
  background: #173d37;
  color: #fff;
  box-shadow: 0 5px 20px #173d3730;
}
.person-removal {
  flex-basis: 100%;
  padding: 10px;
  border: 1px solid #c8b5a0;
  border-radius: 10px;
}
.person-removal p {
  margin: 0 0 8px;
}
.graphics-status {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: #142a39;
  color: white;
  box-shadow: 0 4px 20px #0005;
}
.room-members label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.room-members input {
  width: auto;
}
