#social {
  position: fixed; z-index: 4; left: max(18px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(355px, calc(100vw - 30px)); color: #fcf6e5; pointer-events: none;
  font: 14px/1.4 "Gill Sans", "Gill Sans MT", var(--gill);
  --social-paper: #f8f2e4; --social-ink: #30443d;
}
body.plate #social {display:none}
#social button, #social input {font:inherit}
#social button {pointer-events:auto}
#social button:focus-visible, #social input:focus-visible {outline:2px solid #d6ad62; outline-offset:2px}
#social .social-join, .social-controls, .social-notice {
  color:var(--social-ink); background:#faf5e9f1; border:1px solid #c5b695;
  border-radius:3px; box-shadow:0 2px 13px #182a2638;
}
#social .social-join {padding:5px 10px; display:inline-flex; align-items:center; gap:6px; line-height:1.2}
.social-join span {font:20px/1 var(--book);color:#6a795f}
.social-notice {width:fit-content; margin:0 0 5px; padding:6px 9px; font-size:12px}
.social-history {
  display:flex; flex-direction:column; align-items:start; max-height:min(34dvh,460px); overflow-y:auto;
  padding:35px 0 4px; scrollbar-width:thin; overscroll-behavior:contain; pointer-events:auto;
  mask-image:linear-gradient(to bottom,transparent 0%,#000 35px,#000 100%);
}
.social-history:empty, .social-chat-quiet .social-history {display:none}
.social-message {
  background:#1e2d29d6; width:fit-content; max-width:100%; padding:3px 9px; margin:1px 0;
  color:#fff9e9; line-height:1.4; overflow-wrap:anywhere; border-radius:2px;
}
.social-message strong {font-weight:600; color:#efce91; margin-right:4px}
.social-controls {width:fit-content; max-width:100%; pointer-events:auto}
.social-tools {display:flex; flex-wrap:wrap; align-items:center; padding:1px 3px; gap:0}
.social-tools button {border:0; background:none; color:var(--social-ink); padding:5px 6px; font-size:12px!important; white-space:nowrap}
.social-tools button:hover {background:#c5bfae44}
.social-tools kbd {font:10px/1 var(--gill); opacity:.6; margin-left:2px}
.social-count {font-size:11px; color:#68756d; white-space:nowrap; padding:0 5px; border-inline:1px solid #c5bba8}
.social-speaking .social-mic {color:#26704e}
.social-compose {display:flex; align-items:center; min-width:min(302px,85vw); border-bottom:1px solid #c5bba8}
.social-compose input {min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--social-ink); padding:8px 10px}
.social-compose button {border:0; color:#305648; background:none; padding:5px 9px; font-size:12px!important}
@media(max-width:650px) {#social {left:10px;bottom:max(10px,env(safe-area-inset-bottom));width:min(320px,calc(100vw - 20px))}}
body:has(#welcome:not([hidden])) #social:not(.social-online),
body:has(#cutaway-label:not([hidden])) #social:not(.social-online) {
  left:auto; right:max(18px,env(safe-area-inset-right)); width:max-content;
}
body:has(#social .social-join:not([hidden])) #walking {bottom:55px}
body.social-connected #walking {left:auto; right:19px; bottom:16px; max-width:min(42vw,390px)}
body.social-connected #walking span {display:none}
@media(min-width:740px) {
  body.social-connected #welcome, body.social-connected #cutaway-label {left:auto;right:22px}
}
@media(max-width:739px) {
  body:has(#welcome:not([hidden])) #social:not(.social-online),
  body:has(#cutaway-label:not([hidden])) #social:not(.social-online) {top:63px;right:10px;bottom:auto}
  body.social-connected #welcome,body.social-connected #cutaway-label {bottom:90px}
  body.social-connected #walking {display:none}
}

/* The prominent microphone switch; a living ribbon while it is open. */
.social-voice {display:inline-flex; align-items:center; gap:2px; margin:3px 4px}
#social .social-tools .social-mic {
  display:inline-flex; align-items:center; gap:7px; padding:6px 14px 6px 11px; border-radius:999px;
  background:#29483f; color:#fff9e8; font:500 13px/1.2 var(--gill)!important; letter-spacing:.02em;
  box-shadow:0 1px 0 #ffffff26 inset,0 2px 8px #182a2640; transition:background .2s ease, box-shadow .2s ease;
}
#social .social-tools .social-mic:hover {background:#37594e; color:#fff}
.social-mic svg {width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round}
.social-mic .mic-slash {display:none}
.social-mic canvas {display:none; width:46px; height:18px}
#social .social-tools .social-mic.social-mic-on {background:#1f3a32; box-shadow:0 0 0 1px #8fc5a666 inset,0 0 14px #5fae8740}
.social-mic.social-mic-on svg {display:none}
.social-mic.social-mic-on canvas, .social-mic.social-mic-muted canvas {display:block}
.social-mic.social-mic-muted canvas {opacity:.35}
#social .social-tools .social-mic.social-mic-muted {background:#6f5631}
.social-mic.social-mic-muted .mic-slash {display:inline}
#social .social-tools .social-stop {width:24px; height:24px; padding:0; border-radius:50%; font-size:15px!important; line-height:1; color:#5d6a63}
#social .social-tools .social-listen {color:#7a5320; font-weight:600}

/* Everyone in the library, under its name. */
#people {
  pointer-events:auto; width:min(290px,calc(100vw - 52px)); padding:9px 6px 7px 12px;
  background:linear-gradient(#0f1a18b8,#0f1a189c); -webkit-backdrop-filter:blur(8px) saturate(1.15); backdrop-filter:blur(8px) saturate(1.15);
  border:1px solid #fffdf61c; border-radius:6px; box-shadow:0 6px 22px #0004; color:#fbf4e2;
}
.people-head {display:flex; align-items:center; justify-content:space-between; gap:8px; padding-right:4px}
.people-title {margin:0; font:400 15px/1 var(--book); font-variant:small-caps; text-transform:lowercase; letter-spacing:.08em; color:#e8d9b0}
.people-count {font:600 10px/1 var(--gill); letter-spacing:.08em; color:#bfae84; margin-left:3px; vertical-align:1px}
#people button {color:inherit; border-radius:999px}
#people button:focus-visible {outline:2px solid #d6ad62; outline-offset:1px}
#people svg {fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round}
.people-hear {display:inline-flex; align-items:center; gap:5px; padding:4px 9px 4px 7px; font:500 11px/1 var(--gill); letter-spacing:.04em; border:1px solid #fffdf62e!important; background:#ffffff0d!important}
.people-hear:hover {background:#ffffff1f!important}
.people-hear svg {width:14px; height:14px}
.people-hear .off, .people-hear[aria-pressed=false] .on {display:none}
.people-hear[aria-pressed=false] .off {display:inline}
.people-hear[aria-pressed=false] {color:#e7b27a!important; border-color:#e7b27a55!important}
.people-list {
  list-style:none; margin:7px 0 0; padding:0 4px 0 0; max-height:min(26dvh,330px); overflow-y:auto; scrollbar-width:thin;
  scrollbar-color:#fffdf633 transparent; overscroll-behavior:contain;
}
.person {display:grid; grid-template-columns:30px minmax(0,1fr) auto auto 24px; align-items:center; gap:6px; min-height:27px; padding:0 0 0 2px; border-radius:4px}
.person:hover {background:#ffffff0b}
.person-self {grid-template-columns:30px minmax(0,1fr) auto auto 0}
.person-wave {width:30px; height:16px; background:radial-gradient(circle at 50% 50%,#d9c48f 0 2px,transparent 2.6px)}
.person-speaking .person-wave {background:none}
.person-name {font:400 15px/1.2 var(--book); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.person-speaking .person-name {color:#fff}
.person-floor {font:600 9.5px/1 var(--gill); letter-spacing:.12em; text-transform:uppercase; color:#bfae84}
.person-away .person-name {color:#fbf4e2a8}
.person-away .person-wave {background:radial-gradient(circle at 50% 50%,#d9c48f66 0 2px,transparent 2.6px)}
.person-audio {display:inline-flex; gap:3px; color:#a9cdb8}
.person-audio span {display:inline-flex}
.person-audio svg {width:13px; height:13px}
.person-mute {display:grid; place-items:center; width:24px; height:24px; padding:0; opacity:.5; transition:opacity .15s}
.person-mute svg {width:14px; height:14px}
.person:hover .person-mute, .person-mute:focus-visible {opacity:1}
.person-mute .off, .person-mute[aria-pressed=true] .on {display:none}
.person-mute[aria-pressed=true] .off {display:inline}
.person-muted .person-mute {opacity:1; color:#e7b27a}
.person-muted .person-name {text-decoration:line-through; text-decoration-color:#e7b27a99; text-decoration-thickness:1px}
@media(pointer:coarse) {.person-mute {opacity:.85}}
@media(max-width:690px) {#people {width:min(260px,calc(100vw - 40px))} .people-list {max-height:26dvh}}
.people-fold {padding:2px 4px 2px 0; font:inherit; letter-spacing:inherit; font-variant:inherit; text-transform:inherit; border-radius:3px!important}
.people-fold::after {content:''; display:inline-block; width:5px; height:5px; margin:0 0 3px 7px; border:solid #bfae84; border-width:0 1.3px 1.3px 0; rotate:45deg; transition:rotate .2s}
.people-fold[aria-expanded=false]::after {rotate:-45deg; margin-bottom:1px}
.people-fold:hover {color:#fff}
.person-mute {margin-left:3px; position:relative}
.person-mute::before {content:''; position:absolute; left:-4px; top:6px; bottom:6px; border-left:1px solid #fffdf61f}
.person-mute:hover {background:#ffffff1a!important}
.person-muted .person-mute {background:#e7b27a26!important}
.person-muted .person-wave {opacity:.4}
.social-stop svg {width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round}
#social .social-tools .social-stop {display:inline-grid; place-items:center}
#social .social-tools .social-stop:hover {background:#c5bfae66}
@media(max-width:420px) {.social-count {display:none}}
@media(max-height:520px) {.people-list {max-height:22dvh} .social-history {max-height:26dvh}}
