/* Shared homepage and standalone hall. Native site tokens come from styles.css. */
.co-hall {
  --rule: #293239;
  --metal: #b7c7cf;
  --mono: "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
  padding-block: clamp(28px, 3.6vw, 60px) clamp(52px, 7vw, 96px);
}
.co-hall [hidden], .co-hall .notice:empty, .co-hall .contact-body p:empty { display: none !important; }
.co-hall .eyebrow { font-size: 11px; letter-spacing: .22em; margin: 0 0 10px; }
.hall-mast, .hall-meta, .progress-head, .co-hall .bar, .sync-line, .co-hall .account,
.co-hall .profile-actions, .co-hall .controls, .co-hall .tags, .co-hall .composer-top,
.co-hall .voice-controls, .co-hall .attachment-draft { display: flex; align-items: center; gap: 12px; }
.hall-mast, .hall-meta, .progress-head { justify-content: space-between; }
#hall-title, #progress-title, .join-copy h3 { margin: 0; font-weight: 500; letter-spacing: -.05em; line-height: 1.16; }
#hall-title { font-size: clamp(38px, 4.1vw, 65px); }
.hall-funnel { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: min(43%, 470px); margin: 0; }
.hall-funnel > div { border-left: 1px solid var(--line); padding-left: clamp(12px, 1.8vw, 28px); }
.hall-funnel dt, .hall-meta, .co-hall .byline, .report-time, .co-hall .notice { font-size: 12px; line-height: 1.5; color: var(--muted); }
.hall-funnel dd { margin: 4px 0 0; font: 400 clamp(24px, 2.4vw, 36px)/1 var(--mono); color: var(--ice); }
.hall-meta { margin: 18px 0 14px; }
.sync-line { margin: 0; gap: 8px; }
.sync-line time, .report-time, #feed-count, .co-hall .byline time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sync-line time { margin-left: 4px; color: #93a3ad; }
.sync-line:has(#feed-source[data-live]) .tiny-light { animation: hall-breathe 3s ease-in-out infinite alternate; }
@keyframes hall-breathe { to { box-shadow: 0 0 7px 2px #bcd8d34a; } }
.hall-open, .co-hall summary { cursor: pointer; }
.hall-open:hover, .co-hall .contact summary:hover, .co-hall .contact a:hover { color: var(--text); text-decoration: underline; }
.hall-studio { background: rgb(14 20 25 / 90%); border: 1px solid var(--line); border-radius: 3px; }
.co-hall .bar, .co-hall #public-scroll, .co-hall .messages, .co-hall #login, .co-hall .composer { padding-inline: clamp(15px, 2.2vw, 32px); }
.co-hall .bar { flex-wrap: wrap; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.room-mode { font-size: 15px; font-weight: 600; letter-spacing: .04em; }
#feed-count, .co-hall .connection { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; }
.co-hall #public-scroll, .co-hall .conversation { height: clamp(160px, 20vh, 225px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #46565f transparent; }
.co-hall .entry { display: grid; grid-template-columns: clamp(145px,16vw,225px) minmax(0,1fr); gap: 20px; padding: 12px 0; }
.co-hall .entry + .entry { border-top: 1px solid var(--rule); }
.co-hall .byline { display: grid; align-content: start; gap: 3px; }
.co-hall .byline b { color: #cddbe1; font-size: 13px; font-weight: 550; }
.co-hall .byline time, .report-time { font-size: 11px; color: #96a6b0; }
.co-hall .entry-body { align-self: center; }
.co-hall .entry-body p, .report-copy p, .co-hall .message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.co-hall .entry-body { color: #ced9de; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.co-hall .entry-body details summary { color: var(--metal); }
.phase, .co-hall .stage-badge { display: inline-flex; align-items: center; width: fit-content; padding: 2px 9px; border: 1px solid #3b4b55; border-radius: 20px; color: #bfced5; font-size: 11px; font-weight: 500; line-height: 1.5; }
[data-stage="building"] > summary .phase, .co-hall .stage[data-stage="building"] .stage-badge { border-color: #50676d; color: #c5dadb; }
.co-hall .empty { color: var(--muted); padding-block: 14px; font-size: 14px; }
.co-hall #login, .co-hall .composer { border-top: 1px solid var(--line); padding-block: 18px; background: rgb(16 21 25 / 75%); }
.join-strip { display: grid; align-items: center; gap: 12px 24px; grid-template-columns: minmax(150px,.9fr) minmax(240px,1.3fr) auto; }
.join-copy h3 { font-size: 19px; }
.join-copy p { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.co-hall input:not([type=file]), .co-hall textarea, .co-hall select {
  min-width: 0; width: 100%; background: #0b1014; color: var(--text); font: inherit; border: 1px solid #36424b; border-radius: 3px; padding: 10px 12px;
}
.co-hall input:focus-visible, .co-hall textarea:focus-visible { outline: 2px solid #adc1ca; outline-offset: 2px; }
.co-hall .pass-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.co-hall .pass-controls input { font-size: 14px; }
.co-hall .button { justify-content: center; min-height: 40px; padding: 9px 16px; }
.co-hall .contact, .co-hall #api-settings { font-size: 12px; color: var(--muted); }
.co-hall .contact b { color: var(--text); font-weight: 500; }
.co-hall .contact[open] { grid-column: 1/-1; border-top: 1px solid var(--rule); padding-top: 12px; }
.co-hall .contact-body { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.co-hall .contact-body > div { display: grid; gap: 8px; justify-items: start; }
.co-hall .contact-body img { width: min(140px,42%); border-radius: 3px; }
.co-hall .idea-preview { border-left: 2px solid #9eafb7; padding-left: 12px; margin: 0 0 16px; font-size: 13px; }
.co-hall blockquote { margin: 4px 0 0; color: var(--metal); overflow-wrap: anywhere; }
.hall-progress { margin-top: clamp(28px, 3.2vw, 48px); }
.progress-head { align-items: flex-end; margin-bottom: 16px; }
#progress-title { font-size: clamp(25px, 2.3vw, 37px); }
.progress-head .eyebrow { font-size: 10px; margin-bottom: 6px; }
.stage-filters { display: flex; gap: 4px; }
.stage-filters button, .co-hall .tags button { background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 6px 10px; color: var(--muted); font-size: 13px; }
.stage-filters button[aria-pressed=true], .co-hall .tags button[aria-pressed=true] { border-color: #52606a; background: var(--surface); color: var(--text); }
.stage-filters button:hover { color: var(--text); }
.report-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--rule); }
.report-grid:empty { border: 0; }
.report-card { align-self: stretch; min-width: 0; background: rgb(16 21 25 / 78%); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.report-card summary { height: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: start; gap: 10px; padding: 17px clamp(15px,1.6vw,26px); list-style: none; }
.report-card[open] summary { height: auto; }
.report-card summary::-webkit-details-marker { display: none; }
.report-card summary:hover { background: #ffffff05; }
.report-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.report-metric { color: #d3e1e7; font: 400 clamp(23px,2.3vw,36px)/1.15 var(--mono); letter-spacing: -.055em; }
.report-title { color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.report-expand { color: #aebec7; font-size: 12px; margin-top: auto; padding-top: 2px; }
.report-expand::before { content: "＋"; margin-right: 6px; }
.report-card[open] .report-expand::before { content: "−"; }
.report-copy { border-top: 1px solid var(--rule); margin-inline: clamp(15px,1.6vw,26px); padding: 14px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.report-copy p + p { margin-top: 12px; }
.co-hall .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.co-hall .notice { margin: 6px 0 0; }
.co-hall .account { flex-wrap: wrap; gap: 5px; }
.co-hall .account .button, .co-hall .soft-button { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.co-hall .profile { flex-basis: 100%; display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 14px; }
.co-hall .profile input { max-width: 36em; }
.co-hall .conversation { height: clamp(190px,30vh,350px); }
.co-hall .messages { display: grid; gap: 12px; padding-block: 14px; }
.co-hall .timestamp { color: var(--muted); font: 11px var(--mono); text-align: center; }
.co-hall .message { display: flex; align-items: flex-start; gap: 10px; }
.co-hall .mine { flex-direction: row-reverse; }
.co-hall .avatar { display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; border: 1px solid var(--line); border-radius: 50%; }
.co-hall .message-body { min-width: 0; max-width: min(80%,700px); }
.co-hall .sender { margin: 0 0 4px; font-size: 11px; color: var(--muted); }
.co-hall .mine .sender { text-align: right; }
.co-hall .bubble { border: 1px solid var(--rule); background: var(--surface); border-radius: 3px; padding: 8px 12px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.co-hall .mine .bubble { background: #1b262c; }
.co-hall .stage, .co-hall .media { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-hall .stage, .co-hall .card-link { margin-top: 6px; }
.co-hall .stage-picker { width: auto; padding: 3px; font-size: 12px; }
.co-hall .card-title { font-size: 16px; }
.co-hall .patch-note, .co-hall .badge { font-size: 12px; }
.co-hall .media img, .co-hall .attachment-draft img { display: block; max-width: 100%; max-height: 140px; }
.co-hall .media, .co-hall .icon-button, .co-hall .record, .co-hall #copy-wechat, .co-hall .idea-notice {
  background: transparent; color: var(--ice); border: 1px solid #36424b; border-radius: 3px; padding: 8px 10px; font-size: 13px;
}
.co-hall .audio-message::before { content: "▷"; }.co-hall .audio-message[data-playing]::before { content: "Ⅱ"; }
.co-hall .composer-top { flex-wrap: wrap; margin-bottom: 8px; }
.co-hall .tags, .co-hall .controls, .co-hall .voice-controls { gap: 5px; }
.co-hall .controls > button, .co-hall .record { min-height: 40px; }
.co-hall .input-area { flex: 1; min-width: 0; }
.co-hall textarea { display: block; resize: vertical; max-height: 150px; }
.co-hall .attachment-draft { flex-wrap: wrap; margin-bottom: 8px; overflow-wrap: anywhere; }
.co-hall .idea-notice { margin-bottom: 10px; }.co-hall .idea-notice span { margin-left: 8px; }
.co-hall .lightbox { position: fixed; inset: 0; z-index: 30; background: #080c10f2; display: grid; place-items: center; }
.co-hall .lightbox img { max-height: 86dvh; max-width: 92vw; }
.co-hall .lightbox-close { position: absolute; top: 14px; right: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 22px; }
.co-hall :disabled { opacity: .55; }
.site-nav .nav-collab { color: var(--ice); font-weight: 600; }
@media(max-width: 930px) {
  .join-strip { grid-template-columns: minmax(120px,.8fr) minmax(190px,1.2fr); }
  .co-hall .contact { grid-column: 2; }
  .report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 620px) {
  .hall-mast { display: block; }
  .hall-funnel { width: 100%; margin-top: 16px; }
  .hall-funnel > div:first-child { border-left: none; padding-left: 0; }
  .hall-meta { margin: 14px 0 10px; font-size: 11px; }
  .sync-line { gap: 6px; }.sync-line time { font-size: 10px; margin-left: 0; }
  .co-hall .entry { display: block; padding: 10px 0; }
  .co-hall .byline { display: flex; justify-content: space-between; margin-bottom: 4px; }
  .co-hall .bar { padding-block: 10px; }.co-hall .account { margin-left: auto; }
  .join-strip { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .join-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
  .join-copy p { margin: 0; }.co-hall .contact { grid-column: 1; }
  .progress-head { flex-wrap: wrap; gap: 14px; }
  .stage-filters { gap: 0; }.stage-filters button { padding: 5px 7px; font-size: 12px; }
  .report-grid { grid-template-columns: minmax(0,1fr); }
  .report-card summary { min-height: 145px; }
  .co-hall .controls { flex-wrap: wrap; }
  .co-hall .controls .button { padding: 9px 10px; }
}

.hall-update { margin-top: clamp(24px,3vw,42px); display: grid; grid-template-columns: minmax(115px, .24fr) 1fr; gap: 12px 24px; padding: 16px clamp(15px,2.2vw,32px); border-block: 1px solid var(--line); background: rgb(16 21 25 / 85%); overflow-wrap: anywhere; }
.hall-update h2 { margin: 2px 0 0; color: var(--metal); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.hall-update h3 { margin: 0; font-size: 18px; font-weight: 550; }
.hall-update p, .hall-update ul { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.hall-update ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 26px; padding-left: 1.2em; }
.hall-update ul:empty { display: none; }
@media (max-width: 620px) { .hall-update, .hall-update ul { grid-template-columns: minmax(0,1fr); } }
