:root {
  color-scheme: dark;
  --bg: #101316;
  --panel: #181d22;
  --deep: #13181c;
  --raised: #222a30;
  --line: #323b42;
  --text: #eef3f5;
  --muted: #a5b2ba;
  --accent: #91f6cf;
  --accent-ink: #102b23;
  --danger: #ffaca5;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 100%/1.55 var(--sans);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 300px; margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
body:has(.landing:not([hidden])) {
  background-image: radial-gradient(ellipse at 29% 42%, #172b2b 0%, transparent 50%),
    linear-gradient(#9eaeb908 1px, transparent 1px), linear-gradient(90deg, #9eaeb908 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}
a { color: var(--accent); text-underline-offset: .22em; }
h1, h2, p { margin-top: 0; }
h1 { line-height: 1.07; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
label { color: var(--text); font-size: .875rem; font-weight: 650; }
button, input, textarea, select { font: inherit; }
button, .button {
  min-height: 2.5rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .45rem .75rem;
  color: var(--text);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: .35rem;
}
button:hover, .button:hover { background: #303940; }
button:disabled { cursor: wait; opacity: .55; }
.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.primary:hover { color: var(--accent-ink); background: #bdffe7; border-color: #bdffe7; }
.danger { color: var(--danger); border-color: #9b5954; }
.danger:hover { background: #462c2d; }
input, textarea, select {
  width: 100%;
  color: var(--text);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .65rem .78rem;
}
textarea { resize: vertical; min-height: 4.2rem; max-height: 45vh; }
input::placeholder, textarea::placeholder { color: #86949e; }
select { width: auto; max-width: 50%; padding: .35rem 1.8rem .35rem .65rem; font-size: .875rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 14px) center, calc(100% - 9px) center; background-repeat: no-repeat; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono, pre, .eyebrow, .entry-code { font-family: var(--mono); }
.muted, .empty { color: var(--muted); font-size: .875rem; }
.error { color: var(--danger); margin: 0; font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.top { height: 4.35rem; border-bottom: 1px solid var(--line); background: #111619; }
.top-inner { height: 100%; max-width: 86rem; margin: auto; padding: 0 clamp(1rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; letter-spacing: -.04em; font-size: 1.23rem; font-weight: 780; }
.brand > span:last-child { color: var(--accent); }
.brand-mark, .panel-icon { display: grid; place-items: center; border: 1px solid #43635b; color: var(--accent); background: #1c322d; border-radius: .58rem; font: 700 1.2rem var(--mono); }
.brand-mark { width: 2rem; height: 2rem; margin-right: .6rem; }
.top nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.top nav a:hover { color: var(--text); text-decoration: underline; }
.landing { width: min(68rem, 100%); min-height: calc(100vh - 4.35rem); margin: 0 auto; padding: 3.5rem clamp(1rem, 4vw, 3rem); display: grid; align-content: center; align-items: center; grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6.5rem); }
.landing.single { display: flex; align-items: center; justify-content: center; }
.landing.single .join-card { width: min(100%, 27rem); }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: .8rem; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.status-dot { display: inline-block; width: .48rem; height: .48rem; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow .status-dot { margin-right: .35rem; }
.intro h1 { margin-bottom: 1.1rem; font-size: clamp(2.5rem, 5.8vw, 4.35rem); }
.intro em { font-style: normal; color: var(--accent); }
.intro > p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.55rem; max-width: 28rem; }
.features { display: flex; flex-wrap: wrap; padding: 0; gap: .6rem; list-style: none; margin: 0; }
.features li { display: flex; align-items: center; gap: .4rem; color: #c7d5d9; background: #172125; border: 1px solid #35464c; border-radius: .5rem; padding: .35rem .55rem; font-size: .8rem; }
.features span { color: var(--accent); font-family: var(--mono); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; min-width: 0; }
.join-card { padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: 0 22px 60px #0005; }
.panel-icon { width: 2.7rem; height: 2.7rem; margin-bottom: 1.15rem; }
.join-card h1, .join-card h2 { font-size: 1.55rem; margin: 0 0 1.45rem; letter-spacing: -.025em; }
.join-card form, .create-panel form, .dialog-form { display: grid; gap: .55rem; }
.join-card input, .create-panel input, .dialog-form input { margin-bottom: .35rem; }
.join-card .primary, .create-panel .primary { margin-top: .5rem; min-height: 2.85rem; }
.entry-code { font-size: 1.25rem; letter-spacing: .26em; }
.card-foot { color: var(--muted); font-size: .83rem; margin: 1.15rem 0 0; }
.workspace { width: min(100%, 86rem); padding: 2rem clamp(1rem, 4vw, 3rem) 2.5rem; margin: auto; }
.workspace-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.35rem; }
.workspace-title { min-width: 0; }
.workspace-title h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); overflow-wrap: anywhere; margin-bottom: 0; }
.workspace-title .eyebrow { margin-bottom: .4rem; }
.workspace-actions, .small-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.connection { color: var(--muted); font-size: .82rem; display: inline-flex; align-items: center; gap: .35rem; margin-right: .2rem; }
.connection.offline .status-dot { background: #ffd18b; }
body:has(#room-view:not([hidden])) .top { display: none; }
.room-workspace {
  --room-width: 78rem;
  --chat-width: 63rem;
  --room-gutter: clamp(.75rem, 3vw, 1.75rem);
  height: 100dvh;
  min-height: 19rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.room-head {
  display: grid;
  grid-template-areas: "identity nav actions";
  grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  column-gap: .75rem;
  padding: .375rem max(var(--room-gutter), calc((100% - var(--room-width)) / 2 + var(--room-gutter)));
  background: #14191d;
  border-bottom: 1px solid var(--line);
}
.room-identity { grid-area: identity; display: flex; align-items: center; gap: .55rem; min-width: 0; }
.room-home { flex: none; width: 1.9rem; height: 1.9rem; margin: 0; text-decoration: none; }
.room-home:hover { background: #29443b; }
.room-heading { min-width: 0; }
.room-head h1 { font-size: 1rem; line-height: 1.25; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.room-idline { display: flex; align-items: center; gap: .28rem; color: var(--muted); font-size: .75rem; }
.room-idline .mono { color: #c9d9df; white-space: nowrap; }
.room-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: .15rem; }
.room-actions button { min-height: 2.5rem; padding-block: .25rem; }
.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.quiet:hover { color: var(--text); }
#show-people { color: var(--text); }
.people-icon { position: relative; display: inline-block; width: .96rem; height: .96rem; flex: none; }
.people-icon::before, .people-icon::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.4px solid currentColor; }
.people-icon::before { top: 0; width: .29rem; height: .29rem; border-radius: 50%; }
.people-icon::after { bottom: 0; width: .72rem; height: .34rem; border-radius: .6rem .6rem .14rem .14rem; }
.room-nav { grid-area: nav; display: flex; gap: .2rem; }
.room-nav a { display: inline-flex; gap: .35rem; align-items: center; min-height: 2.5rem; padding: .25rem .62rem; color: var(--muted); font-weight: 660; font-size: .875rem; text-decoration: none; border: 1px solid transparent; border-radius: .5rem; }
.room-nav a:hover { color: var(--text); background: var(--raised); }
.room-nav a[aria-current] { color: var(--accent); background: #21362f; border-color: #39574d; }
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.messages-scroll { overflow: auto; overscroll-behavior: contain; scrollbar-color: #4d5d65 #192026; }
.chat-column, .compose-column { width: min(100%, var(--chat-width)); margin: 0 auto; }
.chat-column { padding: .8rem var(--room-gutter); min-height: 100%; display: flex; flex-direction: column; }
#load-older { align-self: center; margin-bottom: .65rem; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 2rem 1rem; }
.chat-empty h2 { color: var(--text); font-size: 1.18rem; }
.chat-empty p { margin: .4rem 0 0; font-size: .9rem; }
#messages { margin: auto 0 0; padding: 0; display: grid; gap: .9rem; list-style: none; }
.date-divider { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .75rem; text-transform: capitalize; justify-content: center; padding: .2rem 0; }
.date-divider::before, .date-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.message { min-width: 0; display: flex; gap: .5rem; align-items: flex-start; }
.message.is-mine { justify-content: flex-end; }
.avatar { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: none; margin-top: 1.2rem; color: #d0dbe0; background: #263139; border-radius: .54rem; font-size: .78rem; font-weight: 700; }
.message-content { min-width: 0; max-width: 83%; }
.message.is-mine .message-content { display: flex; flex-direction: column; align-items: flex-end; }
.message-content.has-code { width: min(83%, 50rem); }
.message-content.has-code .bubble { width: 100%; }
.msg-meta { display: flex; align-items: baseline; gap: .45rem; margin: 0 .15rem .22rem; min-width: 0; overflow-wrap: anywhere; }
.msg-meta strong { color: #cfdce3; font-size: .81rem; }
.is-mine .msg-meta strong { color: var(--accent); }
.msg-meta time { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.bubble { min-width: 0; width: fit-content; max-width: 100%; color: var(--text); padding: .57rem .8rem; background: #20282e; border: 1px solid #354147; border-radius: .2rem .83rem .83rem .83rem; }
.is-mine .bubble { background: #20372f; border-color: #3a594f; border-radius: .83rem .2rem .83rem .83rem; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; line-height: 1.63; max-width: 66ch; }
.markdown-message { white-space: normal; }
.markdown-message :is(p, ul, ol, blockquote, pre, .markdown-table) { margin: .35rem 0; }
.markdown-message > :first-child { margin-top: 0; }
.markdown-message > :last-child { margin-bottom: 0; }
.markdown-message :is(h1, h2, h3, h4, h5, h6) { margin: .6rem 0 .25rem; line-height: 1.25; letter-spacing: normal; }
.markdown-message h1 { font-size: 1.28rem; }
.markdown-message h2 { font-size: 1.14rem; }
.markdown-message :is(h3, h4, h5, h6) { font-size: 1rem; }
.markdown-message :is(ul, ol) { padding-inline-start: 1.35rem; }
.markdown-message li > :is(ul, ol) { margin-block: 0; }
.markdown-message blockquote { border-inline-start: 2px solid var(--line); padding-inline-start: .65rem; color: var(--muted); }
.markdown-message :not(pre) > code { font-family: var(--mono); font-size: .9em; background: #101619; border-radius: .22rem; padding: .05em .25em; }
.markdown-message hr { border: 0; border-top: 1px solid var(--line); margin: .55rem 0; }
.markdown-table { overflow-x: auto; }
.markdown-table table { border-collapse: collapse; font-size: .9rem; }
.markdown-table :is(th, td) { padding: .25rem .45rem; border: 1px solid var(--line); }
.markdown-table .align-left { text-align: left; }
.markdown-table .align-center { text-align: center; }
.markdown-table .align-right { text-align: right; }
.message-summary { display: block; margin-top: .3rem; min-height: 1.8rem; padding: .12rem 0; border: 0; color: var(--accent); background: transparent; }
.message-summary:hover { color: #bdffe7; background: transparent; text-decoration: underline; }
pre { background: #101619; border: 1px solid var(--line); color: #dae8ef; border-radius: .55rem; padding: .7rem; overflow: auto; max-height: 50vh; font-size: .875rem; tab-size: 4; margin: 0; }
.has-code pre { max-height: 16rem; }
.code-tools { display: flex; gap: .4rem; align-items: center; justify-content: space-between; padding-bottom: .28rem; font-size: .8rem; color: var(--muted); }
.code-labels { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; }
.code-tools button { min-height: 1.85rem; padding-block: .15rem; }
.snippet-heading { text-align: left; min-width: 0; max-width: 100%; overflow-wrap: anywhere; min-height: 1.85rem; padding: .08rem 0; border: 0; color: var(--accent); background: transparent; }
.snippet-heading:hover { text-decoration: underline; background: transparent; }
.syntax-string { color: #abe4ad; }
.syntax-comment { color: #9ab1b9; }
.syntax-keyword { color: #cbb5ff; }
.syntax-number { color: #ffd495; }
.diff-added { color: #9ae7a8; }
.diff-removed { color: #ffaaa2; }
.msg-asset { display: flex; justify-content: flex-start; background: transparent; border-color: transparent; padding: 0; min-height: 1.7rem; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.msg-asset:hover { background: transparent; color: var(--accent); }
.attachment-note { margin-top: .25rem; }
.compose-area { background: var(--bg); border-top: 1px solid #273139; }
.compose-column { position: relative; padding: .5rem var(--room-gutter) max(.55rem, env(safe-area-inset-bottom)); }
#jump-latest { position: absolute; right: var(--room-gutter); bottom: calc(100% + .55rem); background: #22352f; color: var(--accent); border-color: #446d60; box-shadow: 0 4px 15px #0007; }
.composer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: .35rem; padding: .3rem; border: 1px solid #47555e; border-radius: .75rem; background: #191f24; }
.composer:focus-within { border-color: #5f9784; }
.composer textarea { min-width: 0; min-height: 2.5rem; max-height: min(30dvh, 13rem); padding: .5rem .25rem; border: 0; border-radius: .35rem; background: transparent; line-height: 1.45; resize: none; field-sizing: content; }
.composer textarea:focus-visible { outline: none; }
.composer textarea.code-mode { font-family: var(--mono); }
.code-fields { grid-column: 1 / -1; display: flex; gap: .4rem; }
.snippet-picker { position: relative; flex: 1; min-width: 0; }
.snippet-picker input { font-size: .9rem; padding-block: .45rem; }
.snippet-suggestions { position: absolute; z-index: 2; inset: auto 0 calc(100% + .35rem); max-height: min(13rem, 34dvh); overflow: auto; margin: 0; padding: .25rem; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; box-shadow: 0 .35rem 1.5rem #0007; }
.snippet-option { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .5rem; min-height: 2.3rem; padding: .4rem .55rem; border-radius: .35rem; font-size: .875rem; overflow-wrap: anywhere; cursor: pointer; }
.snippet-option:is(:hover, [aria-selected="true"]) { background: #2a4038; color: var(--accent); }
.snippet-option .muted { font-size: .78rem; }
.composer > .primary { min-width: 4rem; }
.compose-mode { padding-inline: .55rem; background: transparent; border-color: transparent; color: var(--muted); }
.compose-mode[aria-pressed="true"] { color: var(--accent); background: #233c33; border-color: #3e6558; }
.compose-mode span { font: .86rem var(--mono); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: .2rem; }
.segmented button { color: var(--muted); background: transparent; border-color: transparent; min-height: 2rem; }
.segmented button[aria-pressed="true"] { background: #22352f; border-color: #416459; color: var(--accent); }
.segmented button:hover { color: var(--text); background: var(--raised); }
.pill { border-radius: 1rem; padding: .1rem .5rem; background: #262f34; color: var(--muted); font: .76rem var(--mono); }
.gallery, .room-management { width: min(100%, var(--room-width)); margin: 0 auto; overflow: auto; padding: .85rem var(--room-gutter) 1.25rem; scrollbar-color: #4d5d65 #192026; }
.room-management { max-width: 62rem; }
.management-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(13rem, 2fr); gap: .75rem; align-items: start; }
.management-panel { padding: 1rem; }
.management-panel h2 { margin-bottom: .7rem; }
#room-settings-form { display: grid; gap: .45rem; }
#room-settings-form input + label { margin-top: .25rem; }
#room-settings-form .primary { justify-self: start; margin-top: .25rem; }
#manage-hours { max-width: 8rem; }
#manage-hours-hint { margin: 0; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem .75rem; margin-bottom: .7rem; }
.gallery-toolbar button { min-height: 2.5rem; padding: .3rem .65rem; }
.gallery-drop { display: none; }
.gallery.dragging { box-shadow: inset 0 0 0 2px var(--accent); }
.gallery.dragging .gallery-drop { display: block; position: fixed; z-index: 1; inset: auto var(--room-gutter) 1rem; width: max-content; max-width: calc(100% - var(--room-gutter) * 2); margin: auto; padding: .5rem .8rem; pointer-events: none; background: #223b33; color: var(--accent); border: 1px dashed var(--accent); border-radius: .55rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .55rem; }
.gallery-grid, .people-list, .entries { list-style: none; padding: 0; margin: 0; }
.gallery-grid > li { min-width: 0; }
.gallery-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55rem; width: 100%; height: 100%; text-align: left; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; padding: .65rem; }
.gallery-card:hover { border-color: #729085; background: #202a2f; }
.gallery-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .45rem; color: var(--accent); background: #21362f; font: .92rem var(--mono); }
.gallery-card-body { min-width: 0; display: grid; gap: .2rem; }
.gallery-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .35rem; }
.gallery-card-top .pill { flex: none; }
.gallery-card-title { min-width: 0; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.gallery-card-meta { color: var(--muted); font-size: .76rem; font-weight: 400; overflow-wrap: anywhere; }
.gallery-empty { margin: .85rem 0 0; }
.entries li + li { border-top: 1px solid var(--line); }
.list-button { justify-content: flex-start; width: 100%; padding: .55rem .35rem; border-color: transparent; background: transparent; text-align: left; overflow-wrap: anywhere; min-width: 0; }
.list-button > span { min-width: 0; }
.item-subtitle { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.item-icon { align-self: flex-start; color: var(--accent); font-family: var(--mono); padding-right: .25rem; flex: none; }
.people-list { display: grid; gap: .45rem; max-height: 19rem; overflow: auto; }
.people-list li { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: .45rem; background: var(--deep); max-width: 100%; overflow-wrap: anywhere; }
.section-head { min-height: 3.5rem; padding: .65rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--line); }
.section-head h2 { overflow-wrap: anywhere; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); align-items: start; gap: 1rem; }
.create-panel { padding: 1rem; }
.create-panel h2 { margin-bottom: .85rem; }
.create-panel .muted { margin-bottom: 0; }
.unit-input { display: flex; align-items: center; gap: .55rem; }
.unit-input span { color: var(--muted); font-size: .875rem; }
.admin-rooms .empty { margin: 1rem; }
.admin-room { padding: .9rem 1rem; }
.admin-room + .admin-room { border-top: 1px solid var(--line); }
.admin-room h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.admin-room p { margin: .3rem 0 .65rem; }
.room-id { color: var(--accent); }
dialog { width: min(45rem, calc(100% - 2rem)); max-height: min(90dvh, 52rem); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 20px 100px #000a; }
dialog::backdrop { background: #0b1015bf; }
dialog .section-head { position: sticky; top: 0; background: var(--panel); }
#close-dialog { width: 2.1rem; min-height: 2.1rem; font-size: 1.1rem; padding: 0; }
#dialog-body { padding: 1rem; overflow-wrap: anywhere; }
#dialog-body > :last-child { margin-bottom: 0; }
.dialog-form .small-actions { margin-top: .5rem; }
.version-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: .55rem; flex-wrap: wrap; margin-bottom: 1rem; }
.version-toolbar select { max-width: 100%; }
.version-meta { margin-bottom: .65rem; }
.entries { max-height: 16rem; overflow: auto; margin-bottom: .65rem; }
.entry-directory { padding: .5rem .35rem; font: .85rem var(--mono); color: var(--muted); }
.entry-path { font-family: var(--mono); }
.entry-file.changed .item-icon { color: #ffd795; }
.entry-file.removed .item-icon { color: var(--danger); }
.entry-detail { margin: .6rem 0; }
#notice { position: fixed; z-index: 2; bottom: 1rem; right: 1rem; max-width: min(30rem, calc(100% - 2rem)); color: var(--text); background: #263832; border: 1px solid #577a6c; border-radius: .65rem; box-shadow: 0 12px 38px #0007; padding: .75rem 1rem; overflow-wrap: anywhere; }
#notice.is-error { background: #422a2e; border-color: #a46060; }
@media (max-width: 760px) {
  .landing { grid-template-columns: 1fr; max-width: 34rem; padding-block: 2.5rem; }
  .intro h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
  .admin-grid { grid-template-columns: 1fr; }
  .message-content { max-width: 88%; }
  .message-content.has-code { width: 88%; }
  .workspace { padding-top: 1.3rem; }
}
@media (max-width: 610px) {
  .room-head {
    grid-template-areas: "identity identity" "nav actions";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem .35rem;
  }
  .room-actions button, .room-nav a { padding-inline: .4rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
  .management-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .room-head:has(#manage-link:not([hidden])) { grid-template-areas: "identity actions" "nav nav"; }
  .gallery-toolbar button { padding-inline: .55rem; }
  .gallery-card { grid-template-columns: 1fr; gap: .3rem; }
  .gallery-icon { width: 1.65rem; height: 1.65rem; }
}
@media (max-width: 350px) {
  .top-inner { padding-inline: .75rem; }
  .top nav a { font-size: .78rem; }
}
.dialog-feedback { margin-bottom: .65rem; }
@supports not (field-sizing: content) {
  .composer textarea { resize: vertical; }
}
