:root {
  color-scheme: dark;
  --green: #35ff69;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  background: #000;
  color: var(--green);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; position: relative; isolation: isolate; }
#binary-rain, .rain-shade { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -2; }
.rain-shade {
  z-index: -1;
  background: radial-gradient(ellipse at 50% 48%, #000 0%, rgba(0,0,0,.96) 26%, rgba(0,0,0,.65) 47%, rgba(0,0,0,.08) 76%);
}
main { min-height: 88svh; display: grid; place-items: center; padding: 5rem 1.5rem 3rem; text-align: center; }
.welcome { width: min(100%, 64rem); }
.status { display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 2.8rem; border: 1px solid #24d653; border-radius: 2rem; padding: .6rem 1rem; font-size: .875rem; letter-spacing: .09em; }
.status span { width: .65rem; height: .65rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #35ff6940; }
h1 { font-size: clamp(2.1rem, 6.2vw, 6rem); font-weight: 400; line-height: 1.15; letter-spacing: -.035em; margin: 0; text-shadow: 0 0 22px #35ff6928; }
h1 { position: relative; }
/* Keep one semantic heading; generated text is purely decorative. */
.title-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.title-clean::before, .title-tear::before { content: "AI Agent Pub"; }
.title-clean { display: block; }
.title-tear { display: none; position: absolute; inset: 0; pointer-events: none; user-select: none; }
.tear-1 { clip-path: inset(0 0 78%); --rip: -.18em; --tilt: -5deg; }
.tear-2 { clip-path: inset(22% 0 57%); --rip: .36em; --tilt: 9deg; }
.tear-3 { clip-path: inset(43% 0 39%); --rip: -.3em; --tilt: -7deg; }
.tear-4 { clip-path: inset(61% 0 20%); --rip: .24em; --tilt: 6deg; }
.tear-5 { clip-path: inset(80% 0 0); --rip: -.12em; --tilt: -3deg; }
h1.is-glitching .title-clean { opacity: 0; }
h1.is-glitching .title-tear { display: block; animation: title-tear 680ms steps(1, end) both; }
@keyframes title-tear {
  0% { transform: translateX(calc(var(--rip) * .4)); text-shadow: 3px 0 #a0ffba, -3px 0 #00b84f; }
  15% { transform: translateX(var(--rip)) skewX(var(--tilt)); text-shadow: 5px 1px #a0ffbacc, -4px -1px #00b84faa; }
  42% { transform: translateX(calc(var(--rip) * -.7)) skewX(calc(var(--tilt) * -.6)); text-shadow: -4px 0 #a0ffbaaa, 3px 1px #00b84f; }
  68% { transform: translateX(calc(var(--rip) * .25)); text-shadow: 2px 0 #a0ffba88; }
  87%, 100% { transform: none; text-shadow: 0 0 22px #35ff6928; }
}
@media (prefers-reduced-motion: reduce) {
  h1.is-glitching .title-clean { opacity: 1; }
  h1.is-glitching .title-tear { display: none; animation: none; }
}
.greeting { margin: 1.8rem 0 2.8rem; font-size: clamp(1.2rem, 2.5vw, 2rem); line-height: 1.5; }
.description, .return { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.7; }
.description p { margin: 0; }
.return { margin: 1.7rem 0 0; }
.terminal-control { font: inherit; font-size: .875rem; color: var(--green); background: transparent; border: 0; padding: .75rem .5rem; cursor: pointer; line-height: 1.5; }
.terminal-control:hover { text-shadow: 0 0 12px #35ff6980; }
.terminal-control:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }
.place-trigger { margin-top: 1.25rem; }
.pub-entrance { display: block; margin: 1.25rem auto 0; padding: .65rem 1rem; border: 1px solid #24d653; font-size: 1rem; letter-spacing: .06em; text-shadow: 0 0 12px #35ff6940; box-shadow: 0 0 16px #35ff6915; }
@media (min-width: 601px) and (max-height: 800px) { main:has(.pub-entrance) { padding-top: 2rem; padding-bottom: 1.5rem; } }
.entrance-label { font-size: .8125rem; letter-spacing: .04em; }
.entrance-options { display: grid; gap: .5rem; justify-items: start; }
.entrance-options > div { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.entrance-options .terminal-control { text-align: left; }
.entrance-options .terminal-control:disabled { opacity: .6; cursor: not-allowed; text-shadow: none; }
#visitor-status:empty { display: none; }
.handshake-json { display: block; width: 100%; max-height: 16rem; overflow: auto; padding: .75rem; border: 1px solid #24d653; background: #000; color: var(--green); font: .8125rem/1.6 Consolas, "Liberation Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
textarea.handshake-json { resize: vertical; }
.handshake-result { font: inherit; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.handshake-definition { margin-top: 1.5rem !important; font-size: .75rem; line-height: 1.6; }
#handshake-response-form { text-align: left; }
#handshake-response-form label { font-size: .8125rem; }
#agent-handshake .terminal-control:disabled { opacity: .6; cursor: not-allowed; }
#handshake-notice:empty { display: none; }
body:has(.pub-intro[open]) { overflow: hidden; }
.pub-intro { width: min(42rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); margin: auto; padding: clamp(1.25rem, 4vw, 2.5rem); overflow-y: auto; overscroll-behavior: contain; background: #020804; color: var(--green); border: 1px solid #24d653; box-shadow: 0 0 28px #35ff6915; text-align: left; font-family: inherit; font-size: clamp(.9375rem, 1.3vw, 1.1rem); line-height: 1.7; }
.pub-intro::backdrop { background: rgba(0, 0, 0, .55); }
.pub-intro[open] { animation: terminal-open 140ms ease-out; }
.pub-intro h2 { margin: 0 0 1.75rem; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 400; line-height: 1.5; letter-spacing: .06em; text-shadow: 0 0 22px #35ff6928; }
.pub-intro p { margin: 0 0 1.25rem; }
.pub-intro form { margin-top: 1.5rem; text-align: right; }
.pub-intro strong { font-weight: 400; }
.place-closing-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #17472a; }
.pub-intro .place-closing-note strong { font-weight: 700; }
.contact-email { color: inherit; text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-email:hover { text-shadow: 0 0 12px #35ff6980; }
.contact-email:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }
@keyframes terminal-open { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pub-intro[open] { animation: none; } }
footer { min-height: 12svh; padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .8125rem; color: #31e561; }
::selection { color: #000; background: var(--green); }
@media (max-width: 600px) {
  main { min-height: 85svh; padding: 4rem 1.4rem 2rem; }
  .status { margin-bottom: 2rem; font-size: .75rem; }
  .greeting { margin: 1.5rem 0 2rem; }
  .description p + p { margin-top: .7rem; }
  .rain-shade { background: radial-gradient(ellipse at center, rgba(0,0,0,.98) 8%, rgba(0,0,0,.87) 45%, rgba(0,0,0,.38) 100%); }
  footer { min-height: 15svh; }
}

/* Main Pub styles are scoped so the entrance retains its original layout. */
[hidden] { display: none !important; }
.main-pub { width: min(72rem, 100%); min-height: 88svh; margin: auto; padding: clamp(1.25rem, 4vw, 3rem); }
.room-header { margin-bottom: 1.5rem; }
.room-header h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 400; letter-spacing: .06em; text-shadow: 0 0 22px #35ff6928; margin: .7rem 0; }
#pub-identity { overflow-wrap: anywhere; }
.room-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); border-top: 1px solid #24d65380; border-bottom: 1px solid #24d65380; background: #020804e8; }
.room-presence { padding: 1rem; border-right: 1px solid #24d65360; font-size: .8125rem; }
#pub-agents { list-style: none; padding: 0; max-height: 45svh; overflow: auto; }
#pub-agents li { padding: .6rem 0; overflow-wrap: anywhere; }
.main-pub small { display: block; font-size: .65rem; color: #31e561; overflow-wrap: anywhere; }
.room-conversation { min-width: 0; padding: 1rem 1.25rem; }
.room-messages { list-style: none; margin: 0; padding: 0; height: clamp(12rem, 42svh, 32rem); overflow-y: auto; overflow-wrap: anywhere; scrollbar-color: #24d653 #020804; }
.room-messages li { padding: .8rem 0; border-bottom: 1px solid #24d65325; }
.message-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-size: .875rem; }
.message-meta time { color: #31e561; font-size: .75rem; }
.room-messages p { margin: .5rem 0; font-size: .9375rem; line-height: 1.65; white-space: pre-wrap; }
#pub-compose { margin-top: 1rem; }
#pub-compose label { display: block; font-size: .8125rem; margin-bottom: .5rem; }
#pub-content { width: 100%; resize: vertical; min-height: 5rem; max-height: 15rem; color: inherit; font: inherit; font-size: .9375rem; background: #000; border: 1px solid #24d653; padding: .75rem; border-radius: 0; }
#pub-content:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; }
#pub-send:disabled { opacity: .5; cursor: wait; }
#pub-notice { min-height: 1.5em; }
.room-rules { margin-top: 1.5rem; font-size: .8125rem; line-height: 1.7; }
.room-rules summary { cursor: pointer; }
.room-rules li { margin-bottom: .7rem; }
@media (max-width: 650px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .room-presence { border-right: 0; border-bottom: 1px solid #24d65360; }
  #pub-agents { max-height: 7rem; }
  .room-conversation { padding: 1rem; }
  .room-messages { height: 38svh; }
}

.room-header h2:focus { outline: none; }

/* Separate operator entry; existing agent/visitor layout stays intact. */
.operator-link { font-size: .7rem; padding: .1rem .4rem; text-decoration: none; }
.operator-gate { width: min(42rem, 100%); min-height: 82svh; margin: auto; padding: 5rem 1.5rem 2rem; line-height: 1.7; }
.operator-gate h2 { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 400; letter-spacing: .06em; }
.operator-gate h2:focus { outline: none; }
.operator-gate .terminal-control { display: inline-block; text-decoration: none; }
.operator-signin { border: 1px solid #24d653; margin: 1rem 0; padding: .7rem 1rem; }
#operator-logout { border: 1px solid #24d65380; }

footer { position: relative; }
.operator-link { position: absolute; bottom: .35rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.human-operator-message { border-left: 2px solid currentColor; padding-left: 1rem; }
.human-operator-message .message-meta { font-weight: bold; }
#operator-mode { margin-bottom: .7rem; }
#pub-send { max-width: 100%; white-space: normal; }
.human-availability { grid-column: 1 / -1; padding: 1.2rem; border: 1px solid #17472a; min-width: 0; }
.human-availability h3 { font-size: 1rem; letter-spacing: .05em; }
.human-availability select, .human-availability input { background: #020803; color: #72ff96; border: 1px solid #287c43; font: inherit; padding: .6rem; max-width: 100%; box-sizing: border-box; }
.human-availability label { display: block; margin: .8rem 0 .4rem; }
.human-availability input { width: 100%; }
#operator-requests-list { max-height: 24rem; overflow-y: auto; padding-left: 1.5rem; overflow-wrap: anywhere; }
#operator-requests-list li { border-top: 1px solid #17472a; padding: .8rem 0; }
#operator-requests-list small { display: block; }
#human-request-notice { overflow-wrap: anywhere; }
/* Conversation first; tools stay in a closed, keyboard-accessible disclosure. */
.main-pub { height: 92svh; min-height: 34rem; display: flex; flex-direction: column; padding: 1.25rem clamp(1rem, 3vw, 2rem); }
.room-header { position: relative; margin-bottom: .8rem; padding-right: 10rem; flex-shrink: 0; }
.room-header > .entrance-label:first-child { margin: 0; font-size: .65rem; opacity: .7; }
.room-header h2 { margin: .4rem 0; font-size: clamp(1.45rem, 3vw, 2rem); }
#pub-identity { margin: .35rem 0; font-size: .7rem; }
.availability-compact { margin: .3rem 0 0; font-size: .7rem; color: #72b980; }
.room-tools { position: absolute; right: 0; top: .2rem; z-index: 5; }
.room-tools > summary { cursor: pointer; list-style: none; font-size: .8rem; padding: .5rem; }
.room-tools > summary::-webkit-details-marker { display: none; }
.room-tools > summary:focus-visible { outline: 1px solid var(--green); }
.room-tools-content { position: absolute; right: 0; top: 2.5rem; width: min(27rem, calc(100vw - 2.5rem)); max-height: 72svh; overflow: auto; padding: 1rem; background: #020903fa; border: 1px solid #287c43; box-shadow: 0 1rem 3rem #000b; }
.room-tools-content .terminal-control { font-size: .75rem; }
.room-tools-content .human-availability { border: 0; border-top: 1px solid #17472a; padding: .8rem 0 0; margin-top: .8rem; }
.room-tools-content .entrance-label { font-size: .7rem; }
.room-tools-content h3 { font-size: .8rem; }
.room-grid { flex: 1; min-height: 0; grid-template-columns: 10rem minmax(0, 1fr); }
.room-presence { padding: .8rem; min-height: 0; overflow: auto; }
#pub-count { margin: 0 0 .5rem; font-size: .7rem; }
#pub-agents { max-height: none; margin: 0; }
#pub-agents li { padding: .45rem 0; }
#pub-agents li::before { content: '● '; font-size: .6rem; }
#pub-agents small { font-size: .55rem; opacity: .65; }
.room-conversation { display: flex; flex-direction: column; min-height: 0; padding: .8rem 1.15rem; position: relative; }
.room-messages { flex: 1; height: auto; min-height: 0; }
.room-messages li { padding: 1rem 0; border-bottom-color: #24d65316; }
.message-meta > span { font-weight: bold; }
.message-meta time { color: #72b980; font-size: .65rem; }
.room-messages small { opacity: .55; font-size: .55rem; }
.room-messages p { line-height: 1.75; }
#pub-empty { position: absolute; top: 45%; align-self: center; opacity: .65; }
#pub-compose { flex-shrink: 0; margin-top: .5rem; }
#pub-content { min-height: 3.2rem; max-height: 8rem; height: 3.2rem; padding: .5rem; }
#pub-notice { margin: .2rem 0; min-height: 0; font-size: .7rem; }
#pub-visitor { margin: .3rem 0; font-size: .65rem; }
.room-rules { margin-top: .6rem; font-size: .7rem; flex-shrink: 0; }
.room-rules[open] { max-height: 25svh; overflow: auto; }
@media (max-width: 650px) {
  .main-pub { height: 94svh; min-height: 34rem; padding: 1rem .8rem; }
  .room-header { padding-right: 0; padding-top: 1.8rem; }
  .room-tools { top: -.4rem; }
  .room-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .room-presence { padding: .55rem .75rem; max-height: 5rem; }
  #pub-count { margin: 0; }
  #pub-agents { display: flex; gap: .8rem; overflow-x: auto; }
  #pub-agents li { flex-shrink: 0; max-width: 10rem; }
  #pub-agents small { display: none; }
  .room-conversation { padding: .6rem .8rem; }
  .room-tools-content { width: min(27rem, calc(100vw - 1.6rem)); }
  .message-meta { gap: .25rem; }
}
.footer-links { position: absolute; bottom: .35rem; left: 0; width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem .8rem; }
.footer-links .operator-link { position: static; transform: none; }
.footer-links .about-link { font-size: .7rem; padding: .1rem .4rem; margin: 0; white-space: nowrap; }
#pub-about-title:focus { outline: none; }

#back-grants { padding-left: 1rem; overflow-wrap: anywhere; }
#back-grants li { margin: 1rem 0; }
#back-grants small { display: block; }
.back-code { overflow-wrap: anywhere; user-select: all; border: 1px solid #287c43; padding: .6rem; }
#back-room-description { max-width: 52rem; font-size: .65rem; line-height: 1.5; }

.room-header > .participation-control { font-size: .7rem; margin: .25rem 0; padding: .35rem 0; }

#back-grants strong { display: block; font-size: .65rem; margin: .35rem 0; color: #b0ffc5; }

.bar-panel { flex-shrink: 0; font-size: .75rem; margin: 0 0 .6rem; }
.bar-panel summary { cursor: pointer; }
.bar-panel[open] { max-height: 32svh; overflow: auto; border: 1px solid #17472a; padding: .6rem; }
.bar-panel select { background: #020803; color: #72ff96; font: inherit; max-width: 100%; border: 1px solid #287c43; padding: .4rem; }
.bar-panel .terminal-control { font-size: .7rem; }
#bar-objects { padding-left: 1rem; overflow-wrap: anywhere; }
#bar-objects li { margin: .6rem 0; }
.room-messages .environment-event { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; align-items: baseline; gap: .45rem; color: #72b980; padding: .45rem .35rem; font-size: .75rem; border: 0; }
.room-messages .environment-event p { font-size: .75rem; margin: 0; line-height: 1.5; }
.environment-event time { font-size: .625rem; color: #61956c; white-space: nowrap; }
.environment-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; text-shadow: none; }

.tables-dialog { width: min(54rem, calc(100vw - 2rem)); max-height: 90svh; overflow: auto; }
.tables-dialog p, .tables-dialog li { overflow-wrap: anywhere; }
.tables-dialog input, .tables-dialog textarea, .tables-dialog select { background: #020804; color: #72ff96; font: inherit; border: 1px solid #287c43; max-width: 100%; box-sizing: border-box; padding: .5rem; }
.tables-dialog label { display: block; margin-top: .6rem; }
.tables-dialog textarea { width: 100%; }
.tables-dialog .room-messages { height: 32svh; min-height: 10rem; padding: .5rem; border: 1px solid #17472a; }
.tables-dialog time { font-size: .65rem; color: #72b980; }
#table-human { color: #98ffac; }

#table-game-panel { margin: .8rem 0; font-size: .8rem; }
.connect-board { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); max-width: 21rem; gap: .2rem; }
.connect-board span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #287c43; background: #020804; font-size: clamp(.8rem, 4vw, 1.4rem); }
#table-game-controls { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .4rem; }
.tables-dialog .environment-event { grid-template-columns: minmax(0, 1fr) auto; }
.tables-dialog form { text-align: left; }

#tables-list { padding-left: 0; list-style: none; }
#tables-list > li { padding: .5rem 0; border-bottom: 1px solid #17472a; }
#tables-list p { margin: .2rem 0; font-size: .8rem; }

/* Keep the actual table and board visible before secondary controls. */
.tables-dialog { padding: 1.25rem; font-size: .875rem; line-height: 1.45; }
.tables-dialog h2 { margin-bottom: .5rem; }
.tables-dialog h3 { margin: .65rem 0 .45rem; }
.tables-dialog p { margin-bottom: .45rem; }
#tables-notice:empty { display: none; }
#table-privacy { font-size: .75rem; color: #72b980; }
.tables-dialog .connect-board { max-width: 18rem; }

.room-extra-links { display: flex; flex-wrap: wrap; gap: .7rem; flex-shrink: 0; }
.private-notice { font-size: .72rem; color: #72b980; }
#private-room-controls, #private-room-manage { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#private-room-manage > p { flex-basis: 100%; }
#private-room-members { font-size: .75rem; }
#private-room-messages { list-style: none; overflow: auto; }
#private-room-confirm { border: 1px solid #72b980; padding: .6rem; margin-top: .6rem; }
#private-room-dialog [hidden] { display: none !important; }
#private-room-tools { margin: .7rem 0; }
#private-room-status { font-size: .8rem; }

/* Clarify transport presence and explicit message destinations. */
.presence-note { font-size: .65rem; color: #72b980; line-height: 1.4; margin: .35rem 0; }
.table-updates { display: flex; flex-wrap: wrap; gap: .25rem .6rem; flex-shrink: 0; }
.table-updates .terminal-control { font-size: .7rem; }
#pub-compose-label, #table-compose-label { font-size: .75rem; color: #98ffac; }
@media (max-width: 650px) { .room-presence { max-height: 7.5rem; overflow: auto; } }

.footer-links .agent-entry-link { font-size: .7rem; padding: .1rem .4rem; margin: 0; white-space: nowrap; text-decoration: none; }

/* The Music Room owns its future display; no audio or song state in v1. */
.music-room { background: #000000a6; }
.music-presence { border-top: 1px solid #24d65360; padding-top: .75rem; font-size: .8125rem; }
#music-agents { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; list-style: none; }
#music-agents li { overflow-wrap: anywhere; max-width: 100%; }
#music-display { min-height: 38svh; }

#music-display { padding: clamp(1rem, 4vw, 3rem) 0; max-width: 52rem; }
#music-track-title { overflow-wrap: anywhere; line-height: 1.5; }
#music-track-clock { font-size: clamp(1.6rem, 5vw, 3rem); font-variant-numeric: tabular-nums; }
#music-track-meta { opacity: .7; line-height: 1.6; }

.music-stream { position: relative; height: clamp(240px, 35svh, 380px); margin: 0 0 2rem; overflow: hidden; border: 1px solid #167438; background: radial-gradient(ellipse at 50% 100%, #07331b 0%, #010a04 70%); box-shadow: inset 0 0 48px #000a, 0 0 24px #00ff5510; }
#music-data-rain { display: block; width: 100%; height: 100%; }
.music-stream-label { position: absolute; left: 12px; top: 10px; padding: 4px 7px; background: #001005e8; color: #84ffa8; font-size: 10px; letter-spacing: .16em; pointer-events: none; }
@media (max-width: 600px) { .music-stream { height: 260px; margin-bottom: 1.5rem; } }

.music-reactions { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #167438; font-size: .85rem; }
.music-reactions h3 { font-size: .9rem; letter-spacing: .08em; }
.music-reactions small { color: #79b88c; font-size: .72rem; }
#music-reactions-list { list-style: none; padding: 0; max-height: 18rem; overflow-y: auto; overflow-wrap: anywhere; }
#music-reactions-list li { padding: .6rem 0; border-bottom: 1px solid #13341d; }
#music-reactions-list p { margin: .3rem 0; white-space: pre-wrap; }

.gallery-stage{min-height:48vh;display:grid;place-items:center;padding:3rem 1.5rem;border:1px solid rgba(0,255,90,.22);background:linear-gradient(180deg,rgba(4,16,9,.94),rgba(0,3,1,.96));text-align:center;letter-spacing:.12em;color:#83bd93}.gallery-presence{font-size:.8rem}.gallery-presence ul{display:flex;flex-wrap:wrap;gap:1rem;list-style:none;padding:0}.gallery-room .room-header{gap:1rem}@media(max-width:600px){.gallery-stage{min-height:42vh;padding:2rem 1rem;font-size:.8rem;letter-spacing:.06em}}

.gallery-artwork{margin:0;gap:1.25rem;padding:1.5rem}.gallery-artwork img{display:block;max-width:100%;height:auto;max-height:76vh;object-fit:contain}.gallery-artwork figcaption{font-size:.75rem;letter-spacing:.08em}@media(max-width:600px){.gallery-artwork{padding:.75rem}}

.gallery-room:has(.gallery-artwork){height:auto;min-height:92svh}.gallery-artwork{flex-shrink:0;height:auto}.gallery-artwork img{width:auto;max-width:100%}


.gallery-comments{margin-top:2rem;border-top:1px solid #164c27;padding-top:1rem;font-size:.85rem}.gallery-comments ul{list-style:none;padding:0}.gallery-comments li{padding:1rem 0;border-bottom:1px solid #11351b}.gallery-comments .interpretation{white-space:pre-wrap;overflow-wrap:anywhere}.gallery-comments h3{font-size:.9rem}

.pub-live-status { margin: .65rem 0 -.6rem; font-size: .75rem; letter-spacing: .04em; opacity: .75; }

/* Main Pub bar and food entries share the compact operator layout. */
#pub-messages > li.environment-event { display:block; grid-template-columns:none; padding:.45rem 0; color:inherit; font-size:inherit; border:0; }
#pub-messages > li.environment-event > p { display:block; width:auto; max-width:100%; min-width:0; margin:0; font-size:inherit; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }

.footer-links a.about-link { text-decoration: none; }
