/* live-room-content.css — the host's live room: files in the chats, documents, worksheets (spec B, 23 Oct 2026).
 *
 * Builds on css/space-live-room.css (its tokens, its dark room) and never restyles what that file draws; it is its own
 * file so the breakout-period work there and this can land side by side. Drawn by js/space-live-room.js (the region
 * "CONTENT IN THE HOST ROOM").
 */

/* ── Files in the chats (§4.6): the paperclip, what waits to go, and a line's picture or file card ─────────────── */
.slr-room .slr-compose { align-items: center; }
.slr-clip { flex: none; width: 44px; min-height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.slr-clip:hover, .slr-clip[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.slr-dash .slr-clip, .slr-inroom .slr-clip { width: 36px; min-height: 36px; border-color: var(--slr-line); background: transparent; color: var(--slr-ink); }
.slr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* A file waiting to go with the next message. Its own name: `.slr-chip` is the 1:1 topic button in space-live-room.css,
   and this sheet loads after that one, so sharing the name restyled the topic buttons. */
.slr-attchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 3px 3px 10px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border-soft); color: var(--text); font: 600 13px Inter, sans-serif; overflow-wrap: anywhere; }
.slr-attchip.is-up { opacity: .8; }
.slr-attchip-up { font-style: normal; font-weight: 500; color: var(--text-3); font-size: 12px; }
.slr-attchip button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.slr-attchip button:hover { background: var(--surface-3); }
.slr-dash .slr-attchip, .slr-inroom .slr-attchip { background: var(--slr-tile-2); border-color: var(--slr-line); color: var(--slr-ink); }
.slr-dash .slr-attchip-up, .slr-inroom .slr-attchip-up { color: var(--slr-dim); }
.slr-mmedia { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
.slr-file { display: flex; align-items: center; gap: 10px; max-width: min(280px, 100%); box-sizing: border-box; padding: 8px 12px 8px 8px; border-radius: 10px;
  border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--text); text-decoration: none; }
.slr-file:hover { border-color: var(--accent); text-decoration: none; }
.slr-file-ext { flex: none; font: 700 10px/1 Inter, sans-serif; letter-spacing: .06em; padding: 6px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); }
.slr-file-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.slr-file-main b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.slr-file-main span { font-size: 12px; color: var(--text-3); }
.slr-dash .slr-file, .slr-inroom .slr-file { background: var(--slr-tile-2); border-color: var(--slr-line); color: var(--slr-ink); }
.slr-dash .slr-file-main span, .slr-inroom .slr-file-main span { color: var(--slr-dim); }
.slr-dchat .slr-msg.slr-has-del { position: relative; padding-right: 64px; }
/* A line sent as an announcement (spec A P5), tagged as the Assistant's lines are. */
.slr-ann-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; background: var(--accent-deep, #4B3FD0); color: #fff; font: 700 10.5px/1.5 Inter, sans-serif; letter-spacing: .02em; vertical-align: 1px; }
.slr-dash .slr-msg-del, .slr-inroom .slr-msg-del { color: var(--slr-dim); }

/* ── A document shown in the main room (§4.1): the page big, its controls under it, the people a strip below ──
   The page and its Back · 3 of 12 · Next are LiveDoc's own (js/live-doc.js, .lpdoc-*); this places them. */
.slr-docview { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.slr-room.slr-doc-on .slr-main > .slr-docview { flex: 1 1 auto; }
.slr-docpage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.slr-docpage > .lpdoc { flex: 1 1 auto; min-height: 0; gap: 8px; }
.slr-docpage .lpdoc-stage { flex: 1 1 auto; min-height: 0; }
.slr-docpage .lpdoc-bar { flex: none; }
.slr-docpage .slr-docchat { border-color: color-mix(in srgb, var(--accent-2, #B8B0FF) 70%, transparent); }
.slr-docprep { flex: 1 1 auto; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border-radius: 12px; background: var(--slr-tile); padding: 20px; }
.slr-docprep-t { font: 700 17px Inter, sans-serif; }
.slr-docprep-s { color: var(--slr-dim); font-size: 14px; line-height: 1.5; }
.slr-room.slr-doc-on .slr-main > .slr-stage { flex: 0 0 132px; min-height: 0; }
@media (max-width: 899px) {
  .slr-room.slr-doc-on .slr-main > .slr-docview, .slr-docpage, .slr-docpage > .lpdoc, .slr-docpage .lpdoc-stage { flex: none; }
  .slr-docpage .lpdoc-bar { gap: 8px; }
  .slr-docpage .slr-docchat { flex: 1 1 100%; }
  .slr-room.slr-doc-on .slr-main > .slr-stage { flex: 0 0 86px; min-height: 0; }
  .slr-sharebar.slr-docbar .slr-grow span { display: none; }
}

/* "Go to a page" (a CBSheet panel): every page as a picture. */
.slr-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.slr-thumb { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--border-soft, #e5e7eb); border-radius: 10px; background: var(--surface, #fff);
  cursor: pointer; font: 600 13px Inter, sans-serif; color: var(--text, #111); text-align: left; }
.slr-thumb img, .slr-thumb i { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #111; border-radius: 6px; }
.slr-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* ── Worksheets for the breakout rooms (§4.4) ────────────────────────────────────────────────────────────────── */
.slr-linkbtn { min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--accent); font: 600 13px Inter, sans-serif; cursor: pointer; }
.slr-linkbtn:disabled { opacity: .5; cursor: default; }
.slr-ws { display: flex; flex-direction: column; gap: 6px; }
.slr-ws-row { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 6px 6px 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); }
.slr-ws-name { flex: 1 1 160px; min-width: 0; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.slr-ws-choose { align-self: flex-start; }
.slr-dws { flex: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 20px; border-bottom: 1px solid var(--slr-line); font-size: 13.5px; }
.slr-dws-t { margin-right: 6px; }
.slr-dash .slr-linkbtn, .slr-inroom .slr-linkbtn { color: var(--accent-2, #B8B0FF); }
.slr-vdoc { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }   /* what is left once the room's people and chat have theirs */
.slr-vdoc-h { font-size: 14px; }
.slr-vdoc-k { font: 700 11px Inter, sans-serif; letter-spacing: .08em; color: var(--good, #7FD6A6); }
/* The room's page fills what the visit leaves it (LiveDoc's .lpdoc box, its stage shrunk to fit, the page contained). */
.slr-vdoc-page { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.slr-vdoc-page > .lpdoc { flex: 1 1 0; min-height: 0; }
.slr-vdoc-page .lpdoc-stage { flex: 1 1 0; min-height: 0; }
.slr-vdoc-page .lpdoc-bar, .slr-vdoc-page .lpdoc-said { flex: none; }
.slr-inroom.slr-has-doc .slr-inroom-tiles { flex: 0 0 104px; }
@media (min-width: 901px) { .slr-inroom.slr-has-doc .slr-visit-side { max-height: 32%; } }   /* the worksheet is the room's main thing (§4.3) */
@media (max-width: 900px) {
  .slr-dws { padding: 6px 16px; }
  .slr-vdoc, .slr-vdoc-page, .slr-vdoc-page > .lpdoc, .slr-vdoc-page .lpdoc-stage { flex: none; }
  .slr-vdoc-page { --lpdoc-max-h: 46vh; }   /* the page fits, at most 46% of the screen's height (§4.3) */
  .slr-inroom.slr-has-doc .slr-inroom-tiles { min-height: 0; height: 120px; }
}

/* ── Session options → Documents (§4.5, a CBSheet panel) ─────────────────────────────────────────────────────── */
.slr-docs { display: flex; flex-direction: column; gap: 8px; }
.slr-docs-h { font: 700 12px Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }
.slr-docs-h:first-child { margin-top: 0; }
.slr-docrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 8px 8px 12px; border: 1px solid var(--border-soft); border-radius: 10px; }
.slr-docrow b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.slr-docrow span { display: block; font-size: 12.5px; color: var(--text-3); }
.slr-docs .btn { align-self: flex-start; }
