/* SOGpt · Reference Catalogue · project board (SG Favorites).
   Pictures and drawings on the left, each tab scrolling on its own; on the right the name, place and labels
   stay put, Design brief · Highlights · Key facts share one scrolling area, and the Links stay open at the bottom.
   The pictures stay whole: nothing is laid over a building but a credit. */
.rl-view.rb-on > .rl-page { display:none; }
.rb-page {
  --rb-frost:rgba(28,29,31,.86); --rb-deep:rgba(20,21,23,.96);
  --rb-line:rgba(255,255,255,.12); --rb-line-soft:rgba(255,255,255,.07); --rb-fill:rgba(255,255,255,.06); --rb-fill-2:rgba(255,255,255,.10);
  --rb-shadow:0 30px 70px rgba(0,0,0,.45);
  --rb-pill:#f4f5f6; --rb-pill-ink:#050506; --rb-amber:#e0b25c; --rb-teal:#a6dcd3;
  height:100%; box-sizing:border-box; color:var(--text-1); font-family:var(--font-ui); background:var(--surface-0);
}
html[data-theme="light"] .rb-page {
  --rb-frost:rgba(255,255,255,.92); --rb-deep:rgba(246,247,248,.98);
  --rb-line:rgba(0,0,0,.12); --rb-line-soft:rgba(0,0,0,.07); --rb-fill:rgba(0,0,0,.04); --rb-fill-2:rgba(0,0,0,.07);
  --rb-shadow:0 24px 60px rgba(0,0,0,.14);
  --rb-pill:#0c0d0e; --rb-pill-ink:#fff; --rb-amber:#9a6a12; --rb-teal:#1f6f63;
}
/* The board fills the view; the two sides scroll on their own */
.rb-wrap { height:100%; box-sizing:border-box; max-width:1600px; margin:0 auto; padding:14px 32px 0; display:flex; flex-direction:column; gap:12px; }
.rb-ic { flex:none; }
.rb-topbar { flex:none; display:flex; align-items:center; }

/* Buttons */
.rb-btn { height:36px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:0; border-radius:999px; background:var(--rb-fill); box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-1); font:500 13px/1 var(--font-ui); text-decoration:none; white-space:nowrap; cursor:pointer; }
.rb-btn:hover { background:var(--rb-fill-2); }
.rb-btn.is-primary { background:var(--rb-pill); color:var(--rb-pill-ink); box-shadow:none; font-weight:600; }
.rb-btn.is-primary:hover { filter:brightness(.94); }
.rb-btn:disabled, .rb-btn[aria-disabled=true] { opacity:.45; cursor:default; }
.rb-icon { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:var(--rb-fill); box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-1); cursor:pointer; }
.rb-icon:hover { background:var(--rb-fill-2); }
.rb-linkbtn { padding:0; border:0; background:none; color:var(--text-2); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rb-linkbtn:hover { color:var(--text-1); }
.rb-page :is(button, a, input, textarea, summary, [tabindex]):focus-visible, .rb-viewer :is(button, a):focus-visible { outline:2px solid var(--gold-ring); outline-offset:2px; }
.rb-back { height:30px; display:inline-flex; align-items:center; gap:8px; padding:0 12px 0 10px; border:0; border-radius:999px; background:transparent; color:var(--text-2); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rb-back:hover { background:var(--rb-fill); color:var(--text-1); }

.rb-loading, .rb-empty { display:flex; align-items:center; gap:12px; padding:48px 0; color:var(--text-2); font-size:14px; }
.rb-empty { flex-direction:column; align-items:flex-start; gap:6px; }
.rb-empty strong { color:var(--text-1); font:500 18px/1.3 var(--font-ui); }
.rb-spin { width:16px; height:16px; border-radius:50%; border:2px solid var(--rb-line); border-top-color:var(--text-1); animation:rb-spin .8s linear infinite; }
@keyframes rb-spin { to { transform:rotate(360deg); } }

/* A board the SOGpt Agent is drafting (Directors): where it has got to, or why it stopped */
.rb-job { max-width:620px; margin:28px 0 0; padding:26px 28px 28px; border-radius:20px; background:var(--rb-frost); box-shadow:inset 0 0 0 1px var(--rb-line); }
.rb-job h1 { margin:0; font:600 24px/1.2 var(--font-ui); letter-spacing:-.015em; outline:none; }
.rb-page .rb-job h1:focus, .rb-page .rb-job h1:focus-visible { outline:none !important; box-shadow:none; }
.rb-job-name { margin:6px 0 0; color:var(--text-1); font:500 15px/1.35 var(--font-ui); overflow-wrap:anywhere; }
.rb-job-text { margin:14px 0 0; color:var(--text-2); font-size:14px; line-height:1.55; }
.rb-job-error { margin:16px 0 0; padding:11px 14px; border-radius:12px; background:color-mix(in srgb, var(--rb-amber) 12%, transparent); color:var(--text-1); font-size:14px; line-height:1.45; }
.rb-job-acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.rb-job-steps { list-style:none; margin:20px 0 0; padding:0; display:grid; gap:4px; }
.rb-job-steps li { display:flex; align-items:center; gap:12px; min-height:34px; color:var(--text-3); font-size:14px; }
.rb-job-steps li.is-done { color:var(--text-2); }
.rb-job-steps li.is-now { color:var(--text-1); font-weight:500; }
.rb-job-mark { flex:none; width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; box-shadow:inset 0 0 0 1px var(--rb-line); }
.rb-job-steps li.is-done .rb-job-mark { background:var(--rb-fill-2); box-shadow:none; color:var(--rb-teal); }
.rb-job-steps li.is-now .rb-job-mark { box-shadow:none; }
.rb-job-steps .rb-spin { width:14px; height:14px; }

/* Draft bar (Directors) */
.rb-draftbar { flex:none; display:flex; align-items:center; gap:14px; padding:10px 10px 10px 16px; border-radius:16px; background:var(--rb-frost); box-shadow:inset 0 0 0 1px var(--rb-line); }
.rb-draftbar .rb-btn { margin-left:auto; }
.rb-state { height:24px; display:inline-flex; align-items:center; padding:0 9px; border-radius:7px; background:color-mix(in srgb, var(--rb-amber) 18%, transparent); color:var(--rb-amber); font:600 11px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.rb-draftbar-text { color:var(--text-2); font-size:13.5px; line-height:1.4; }
.rb-draftbar-text .rb-open-facts { color:var(--text-1); font-weight:500; }
/* A temporary board (2 Oct): the project is outside the Library; the bar holds the chat's choices. */
.rb-state.is-temp { background:transparent; color:var(--text-1); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text-1) 45%, transparent); border:0; outline:1px dashed color-mix(in srgb, var(--text-1) 35%, transparent); outline-offset:-1px; }
.rb-tempbar .rb-temp-acts { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.rb-tempbar .rb-temp-acts .rb-btn { margin-left:0; }

/* Two sides */
.rb-split { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(400px, 1fr); gap:24px; }
.rb-left { position:relative; min-height:0; display:flex; flex-direction:column; }
.rb-left-bar { flex:none; display:flex; align-items:center; gap:10px; padding-bottom:12px; container-type:inline-size; }
.rb-slides { margin-left:auto; height:34px; font-size:12.5px; }
/* 21 Oct: Download pictures lights up once a picture is ticked, with how many. */
.rb-dl-n { min-width:18px; height:18px; box-sizing:border-box; padding:0 5px; border-radius:9px; background:rgba(0,0,0,.16); font:600 11px/18px var(--font-mono); text-align:center; }
.rb-tile.is-new { box-shadow:0 0 0 2px #e7c27d; }
.rb-link-new { margin-left:6px; padding:1px 6px; border-radius:999px; background:rgba(231,194,125,.16); color:#e7c27d; font:500 10px/1.5 var(--font-mono); text-transform:uppercase; letter-spacing:.06em; }
.rb-tabs { display:flex; gap:2px; padding:3px; border-radius:999px; background:var(--rb-fill); box-shadow:inset 0 0 0 1px var(--rb-line-soft); }
.rb-tabs button { height:30px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; white-space:nowrap; flex:none; border:0; border-radius:999px; background:transparent; color:var(--text-2); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rb-tabs button span { color:var(--text-3); font:500 11px/1 var(--font-mono); }
.rb-tabs button[aria-selected=true] { background:var(--rb-pill); color:var(--rb-pill-ink); }
.rb-tabs button[aria-selected=true] span { color:inherit; opacity:.6; }
.rb-tabs button.is-empty:not([aria-selected=true]) { color:var(--text-3); }
.rb-tab-empty { margin:0; padding:44px 20px; border:1px dashed var(--rb-line); border-radius:14px; color:var(--text-3); font-size:14px; line-height:1.5; text-align:center; }
.rb-pics { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 6px 28px 0; }
.rb-note-line { margin:0 0 12px; padding:10px 14px; border-radius:12px; background:color-mix(in srgb, var(--rb-amber) 9%, transparent); color:var(--text-2); font-size:13.5px; line-height:1.45; }

/* Pictures: a mosaic, one large tile to every six, the large one swapping sides; drawings in a plain grid */
.rb-pics { container-type:inline-size; }
.rb-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.rb-grid.is-mosaic { grid-auto-rows:calc((100cqw - 22px) / 3 * .62); grid-auto-flow:row dense; }
.rb-grid.is-mosaic .rb-tile-open { height:100%; aspect-ratio:auto; }
.rb-tile.is-big { grid-column:span 2; grid-row:span 2; }
.rb-tile.is-big.is-right { grid-column:2 / span 2; }
.rb-grid.is-dwgs { gap:18px 10px; }
.rb-tile { position:relative; margin:0; display:flex; flex-direction:column; gap:8px; min-width:0; }
.rb-tile-open { display:block; width:100%; aspect-ratio:1 / 1; padding:0; border:0; overflow:hidden; border-radius:0; background:#16181a; cursor:zoom-in; }
.rb-tile img { width:100%; height:100%; display:block; object-fit:cover; transition:transform var(--v2-base, 200ms) var(--v2-ease, ease); }
.rb-tile:not(.is-dwg):hover img { transform:scale(1.03); }
.rb-tile.is-dwg .rb-tile-open { background:#ffffff; }
.rb-tile.is-dwg img { box-sizing:border-box; padding:12px; object-fit:contain; }
.rb-tile.is-broken img { opacity:0; }
.rb-tile.is-broken::after { content:attr(data-gone); position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:18px; box-sizing:border-box; color:var(--text-3); font-size:13px; line-height:1.45; text-align:center; pointer-events:none; }
.rb-tile.is-hidden { opacity:.45; }
.rb-hid-tag { position:absolute; right:8px; top:8px; height:22px; display:inline-flex; align-items:center; padding:0 8px; border-radius:7px; background:rgba(10,11,12,.72); color:#fff; font:600 10.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.rb-pick { position:absolute; left:8px; top:8px; width:26px; height:26px; cursor:pointer; }
.rb-pick input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.rb-pick span { pointer-events:none; width:26px; height:26px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(10,11,12,.55); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7); color:transparent; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.rb-pick input:checked + span { background:#f4f5f6; box-shadow:none; color:#050506; }
.rb-pick input:focus-visible + span { outline:2px solid var(--gold-ring); outline-offset:2px; }
.rb-tile.is-picked .rb-tile-open { box-shadow:inset 0 0 0 3px var(--rb-pill); }
.rb-tile.is-picked img { outline:3px solid var(--rb-pill); outline-offset:-3px; }
.rb-kind { flex:none; align-self:flex-start; height:18px; display:inline-flex; align-items:center; padding:0 6px; border-radius:5px; background:var(--rb-fill-2); color:var(--text-2); font:600 9.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.rb-kind.is-design { background:color-mix(in srgb, var(--rb-amber) 16%, transparent); color:var(--rb-amber); }

/* Selecting pictures for slides: a glass bar over the pictures */

/* Right side: the name and labels stay put; the text between scrolls; the links stay open at the bottom */
.rb-right { min-height:0; display:flex; flex-direction:column; overflow:hidden; border-radius:18px 18px 0 0; background:var(--rb-frost); box-shadow:inset 0 0 0 1px var(--rb-line); }
.rb-head { flex:none; display:flex; flex-direction:column; gap:10px; padding:22px 24px 18px; }
.rb-head h1 { margin:0; font:600 28px/1.12 var(--font-ui); letter-spacing:-.02em; outline:none; overflow-wrap:anywhere; }
.rb-page .rb-head h1:focus, .rb-page .rb-head h1:focus-visible { outline:none !important; box-shadow:none; }
.rb-firm { color:var(--text-3); font-weight:500; }
.rb-loc { margin:0; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; color:var(--text-1); font-size:14px; line-height:1.35; }
.rb-loc > .rb-ic { color:var(--text-2); }
.rb-maps { height:26px; display:inline-flex; align-items:center; gap:5px; padding:0 10px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-1); font:500 12.5px/1 var(--font-ui); text-decoration:none; white-space:nowrap; }
.rb-maps:hover { background:var(--rb-fill); }
.rb-line { margin:0; color:var(--text-2); font-size:13.5px; line-height:1.5; }
.rb-line > span + span::before { content:" · "; color:var(--text-3); }
.rb-tags { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none; }
.rb-tags li { height:26px; display:inline-flex; align-items:center; padding:0 11px; border-radius:999px; background:var(--rb-fill-2); color:var(--text-1); font-size:12.5px; }
.rb-tags li.is-design { background:transparent; box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-2); }
/* 21 Oct: the labels fold to the three most relevant and "…", which opens the rest ("Less" folds them again). */
.rb-tags li.rb-tags-more { padding:0; background:none; box-shadow:none; }
.rb-tags-more button { height:26px; min-width:36px; padding:0 11px; border:0; border-radius:999px; background:var(--rb-fill-2); color:var(--text-2); font:600 13px/1 var(--font-ui); letter-spacing:.1em; cursor:pointer; }
.rb-tags-more button:hover { color:var(--text-1); }
.rb-tags-more button[aria-expanded=true] { background:transparent; box-shadow:inset 0 0 0 1px var(--rb-line); font-weight:500; font-size:12.5px; letter-spacing:0; }

.rb-ttabs { flex:none; display:flex; gap:6px; padding:12px 24px; box-shadow:inset 0 1px 0 var(--rb-line-soft), inset 0 -1px 0 var(--rb-line-soft); }
.rb-ttabs button { position:relative; flex:none; height:30px; display:inline-flex; align-items:center; gap:6px; padding:0 13px; white-space:nowrap; border:0; border-radius:999px; background:transparent; box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-2); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rb-ttabs button:hover { color:var(--text-1); background:var(--rb-fill); }
.rb-ttabs button span { color:var(--text-3); font:500 10.5px/1 var(--font-mono); }
.rb-ttabs button[aria-selected=true] { background:var(--rb-pill); color:var(--rb-pill-ink); box-shadow:none; }
.rb-ttabs button[aria-selected=true] span { color:inherit; opacity:.6; }
.rb-dot { width:7px; height:7px; border-radius:50%; background:var(--rb-amber); }
.rb-cbody { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:18px 24px 22px; }
/* 21 Oct: Links or More information (the switch above), and inside More information lighter text buttons. */
.rb-info { flex:1; min-height:0; display:flex; flex-direction:column; }
.rb-subtabs { flex:none; display:flex; gap:20px; padding:14px 24px 0; }
.rb-subtabs button { height:28px; display:inline-flex; align-items:center; gap:6px; padding:0; border:0; border-radius:0; background:none; box-shadow:inset 0 -1.5px 0 transparent; color:var(--text-3); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rb-subtabs button:hover { color:var(--text-1); }
.rb-subtabs button span { color:var(--text-3); font:500 10.5px/1 var(--font-mono); }
.rb-subtabs button[aria-selected=true] { color:var(--text-1); box-shadow:inset 0 -1.5px 0 var(--text-1); }
.rb-info .rb-cbody { padding-top:14px; }

.rb-brief { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px; font-size:14.5px; line-height:1.55; }
.rb-brief li { position:relative; padding-left:18px; }
.rb-brief li::before { content:""; position:absolute; left:0; top:.62em; width:5px; height:5px; border-radius:50%; background:var(--text-3); }
.rb-hl { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; }
.rb-hl li { display:flex; flex-direction:column; gap:7px; padding:12px 0; border-top:1px solid var(--rb-line-soft); }
.rb-hl li:first-child { padding-top:0; border-top:0; }
.rb-hl-t { align-self:flex-start; height:24px; display:inline-flex; align-items:center; padding:0 10px; border-radius:999px; background:var(--rb-fill-2); font:500 12.5px/1 var(--font-ui); }
.rb-hl p { margin:0; color:var(--text-2); font-size:14px; line-height:1.55; }

/* Key facts: label · dotted leader · value; a fact the sources disagree on opens up for a Director */
.rb-facts { margin:0; display:flex; flex-direction:column; }
.rb-fact { display:flex; align-items:baseline; gap:10px; padding:8px 0; font-size:14px; line-height:1.4; }
.rb-fact dt { flex:none; max-width:48%; color:var(--text-3); }
.rb-dots { flex:1; min-width:16px; border-bottom:1px dotted color-mix(in srgb, var(--text-3) 55%, transparent); transform:translateY(-4px); }
.rb-fact dd { margin:0; min-width:0; max-width:62%; text-align:right; }
.rb-fact-v { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.rb-fact.is-hidden { opacity:.5; }
.rb-fact.is-open { flex-wrap:wrap; margin:4px -12px; padding:10px 12px; border-radius:12px; background:color-mix(in srgb, var(--rb-amber) 8%, transparent); }
.rb-fact.is-open .rb-dots { display:none; }
.rb-fact.is-open dd { flex-basis:100%; max-width:none; text-align:left; }
.rb-fact.is-open .rb-fact-v { align-items:flex-start; }
.rb-differ-note { color:var(--rb-amber); font-size:12.5px; }
.rb-differ-note .rb-linkbtn { color:inherit; }
.rb-choose { display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.rb-choose button { height:32px; display:inline-flex; align-items:center; gap:6px; padding:0 12px; border:0; border-radius:999px; background:var(--rb-fill); box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-1); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rb-choose button:hover { background:var(--rb-fill-2); }
.rb-choose button small { color:var(--text-3); font-size:11.5px; }

/* Links: always open at the bottom of the right side, two lines each: the source, then its page title and what the board takes from it */
.rb-links { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:8px 24px 18px; }
.rb-links-head { display:flex; align-items:baseline; gap:8px; margin-bottom:6px; }
.rb-links-head h2 { margin:0; font:600 18px/1.2 var(--font-ui); letter-spacing:-.01em; }
.rb-links-head span { color:var(--text-3); font:500 11px/1 var(--font-mono); }
.rb-links-list { display:flex; flex-direction:column; }
.rb-link { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:14px; min-height:56px; padding:9px 0; box-sizing:border-box; border-top:1px solid var(--rb-line-soft); color:var(--text-1); text-decoration:none; }
.rb-link:first-child { border-top:0; }
.rb-link-main { min-width:0; display:flex; flex-direction:column; gap:4px; }
.rb-link-top { font-size:14px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rb-link-top b { font-weight:600; }
.rb-link-kind { margin-left:5px; color:var(--text-3); }
.rb-link-sub { display:flex; align-items:baseline; gap:8px; min-width:0; }
.rb-link-title { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--text-2); font-size:13px; }
.rb-link-sub small { flex:none; color:var(--text-3); font:500 11px/1 var(--font-mono); }
.rb-link-host { display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 11px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--rb-line); color:var(--text-2); font-size:12px; white-space:nowrap; }
.rb-link:hover .rb-link-host { background:var(--rb-fill); color:var(--text-1); }
.rb-link:hover b { text-decoration:underline; text-underline-offset:3px; }

.rb-toast { position:fixed; left:50%; bottom:28px; z-index:60; transform:translate(-50%, 12px); max-width:min(560px, calc(100vw - 32px)); padding:10px 16px; border-radius:999px; background:rgba(28,29,31,.9); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); box-shadow:0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); color:#f4f5f6; font-size:13.5px; opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; }
.rb-toast.is-on { opacity:1; transform:translate(-50%, 0); }
.rb-toast.is-bad { box-shadow:0 20px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(224,120,100,.55); }

/* Viewer: the picture large, its facts and actions beside it */
.rb-viewer { position:fixed; inset:0; z-index:80; display:grid; grid-template-columns:minmax(0, 1fr) 360px; background:rgba(5,5,6,.9); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#f4f5f6; font-family:var(--font-ui); }
.rb-viewer[hidden] { display:none; }
.rb-v-stage { position:relative; display:flex; align-items:center; justify-content:center; padding:32px; min-width:0; }
.rb-v-stage img { max-width:100%; max-height:calc(100vh - 64px); object-fit:contain; border-radius:10px; background:#111; }
.rb-v-stage.is-broken img { min-width:320px; min-height:220px; }
.rb-v-nav { position:absolute; top:50%; width:44px; height:44px; margin-top:-22px; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:rgba(40,41,44,.7); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); color:#f4f5f6; cursor:pointer; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.rb-v-nav:hover { background:rgba(60,61,64,.85); }
.rb-v-nav.is-prev { left:20px; } .rb-v-nav.is-next { right:20px; }
.rb-v-side { display:flex; flex-direction:column; gap:14px; padding:20px 22px; overflow:auto; background:rgba(22,23,25,.96); box-shadow:inset 1px 0 0 rgba(255,255,255,.12); }
.rb-v-top { display:flex; align-items:center; justify-content:space-between; }
.rb-v-count { color:rgba(244,245,246,.55); font:500 12px/1 var(--font-mono); }
.rb-viewer .rb-icon, .rb-viewer .rb-btn { background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); color:#f4f5f6; }
.rb-viewer .rb-btn.is-primary { background:#f4f5f6; color:#050506; box-shadow:none; }
.rb-viewer .rb-kind { height:20px; padding:0 7px; font-size:10.5px; background:rgba(255,255,255,.1); color:rgba(244,245,246,.8); }
.rb-viewer .rb-kind.is-design { background:rgba(224,178,92,.16); color:#e0b25c; }
.rb-v-side h3 { margin:0; font:500 20px/1.3 var(--font-ui); letter-spacing:-.01em; }
.rb-v-side p { margin:0; color:rgba(244,245,246,.75); font-size:14px; line-height:1.5; }
.rb-v-hint { color:rgba(244,245,246,.5); font-size:12px; line-height:1.4; margin-top:-6px; }
.rb-v-acts { display:flex; gap:8px; flex-wrap:wrap; }
.rb-v-side > .rb-btn { align-self:stretch; }
.rb-v-hide { align-self:flex-start; margin-top:auto; color:rgba(244,245,246,.6); }

/* Anything that scrolls shows a thin rail, so it is clear there is more; it brightens on hover. */
:is(.rb-scroll, .rb-links, .rb-v-side) { scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.26) transparent; }
:is(.rb-scroll, .rb-v-side):hover { scrollbar-color:rgba(255,255,255,.45) transparent; }
html[data-theme="light"] :is(.rb-scroll, .rb-v-side) { scrollbar-color:rgba(0,0,0,.26) transparent; }
html[data-theme="light"] :is(.rb-scroll, .rb-v-side):hover { scrollbar-color:rgba(0,0,0,.42) transparent; }
:is(.rb-scroll, .rb-v-side)::-webkit-scrollbar { width:6px; height:6px; }
:is(.rb-scroll, .rb-v-side)::-webkit-scrollbar-thumb { background:rgba(128,128,128,.45); border-radius:3px; }

/* 23 Oct (Jianying: "屏幕100%的时候要正常显示全部内容，多的内容都是scroll down去看的"): the board fits the window at any
   desktop size. The two sides keep their own scrolling down to a narrow board, and only a phone-width board becomes one
   long column. The steps follow the board's own width (sidebar open or closed), not the window's. */
.rb-page { container:rb / inline-size; }
.rb-tabs { min-width:0; max-width:100%; overflow-x:auto; scrollbar-width:none; }      /* the tabs never run under the right side */
.rb-tabs::-webkit-scrollbar { display:none; }
/* a short window: the right side scrolls as a whole once its parts would be squeezed */
.rb-right { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(128,128,128,.4) transparent; }
.rb-right > .rb-links { min-height:120px; }
.rb-right > .rb-info { min-height:190px; }
/* the right side is as tall as what it holds (no long empty panel on a big screen), and never taller than the board */
.rb-right { align-self:start; max-height:calc(100% - 14px); margin-bottom:14px; border-radius:18px; }
.rb-left > .rb-pics { min-height:160px; }
.rb-link-sub { overflow:hidden; }
.rb-link-sub small { flex:0 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
@container (max-width: 560px) {
  .rb-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rb-grid.is-mosaic { grid-auto-rows:calc((100cqw - 14px) / 2 * .62); }
  .rb-tile.is-big.is-right { grid-column:1 / span 2; }
}
@container rb (max-width: 1180px) {
  .rb-split { grid-template-columns:minmax(0, 1.2fr) minmax(320px, 1fr); gap:16px; }
  .rb-wrap { padding:12px 20px 0; }
}
@container rb (max-width: 860px) {
  .rb-split { grid-template-columns:minmax(0, 1fr) minmax(280px, .95fr); gap:12px; }
  .rb-wrap { padding:10px 14px 0; gap:10px; }
  .rb-draftbar { gap:10px; padding:8px 8px 8px 12px; }
  .rb-head { gap:8px; padding:16px 16px 12px; }
  .rb-head h1 { font-size:22px; }
  .rb-ttabs { padding:10px 16px; }
  .rb-subtabs { padding:12px 16px 0; }
  .rb-cbody { padding:14px 16px 18px; }
  .rb-links { padding:6px 16px 14px; }
  .rb-tabs { flex-wrap:wrap; border-radius:16px; }
  .rb-tabs button { padding:0 10px; }
  .rb-link-host { padding:0 9px; }
  .rb-tempbar, .rb-tempbar .rb-temp-acts { flex-wrap:wrap; }
}
/* Phone width: one column that scrolls as a page — name, pictures, text, links */
@container rb (max-width: 560px) {
  .rb-wrap { height:auto; padding:12px 16px 32px; }
  .rb-split { display:flex; flex-direction:column; gap:16px; }
  .rb-right { display:contents; }
  .rb-head { order:1; padding:4px 0 0; }
  .rb-left { order:2; }
  .rb-ttabs { order:3; padding:12px 0; overflow-x:auto; }
  .rb-info, .rb-links { order:4; }
  .rb-right > :is(.rb-links, .rb-info) { min-height:0; }
  .rb-subtabs { padding:6px 0 0; }
  .rb-cbody, .rb-info .rb-cbody { padding:10px 0 8px; overflow:visible; }
  .rb-links { padding:4px 0 18px; overflow:visible; }
  .rb-pics, .rb-left > .rb-pics { overflow:visible; padding:0; min-height:0; }
  .rb-head h1 { font-size:24px; }
  .rb-job { margin-top:16px; padding:20px 18px 22px; }
  .rb-job h1 { font-size:21px; }
  .rb-draftbar { flex-wrap:wrap; }
}
/* a low window: the bars above the board take less of it */
@media (max-height: 760px) {
  .rb-wrap { padding-top:8px; gap:8px; }
  .rb-back { height:26px; }
  .rb-draftbar { padding-top:6px; padding-bottom:6px; }
  .rb-head { padding-top:16px; padding-bottom:12px; gap:8px; }
  .rb-ttabs { padding-top:9px; padding-bottom:9px; }
  .rb-left-bar { padding-bottom:8px; }
}
@media (max-width: 820px) {
  .rb-viewer { grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto; }
  .rb-v-stage { padding:12px; }
  .rb-v-stage img { max-height:55vh; }
  .rb-v-side { max-height:45vh; box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: reduce) { .rb-tile img, .rb-toast { transition:none; } .rb-spin { animation:none; } }

/* Links: the firm's page and the five case sites with the most pictures; the rest are named, not linked. */
.rb-links-more { margin:0; padding:8px 2px 2px; color:var(--text-3); font-size:12px; line-height:1.45; }
/* 6 Oct: a preview board sets its row's choice; the one chosen shows pressed. */
.rb-tempbar .rb-temp-acts { flex:none; flex-wrap:nowrap; }
.rb-tempbar .rb-temp-acts .rb-btn[aria-pressed=true] { box-shadow:inset 0 0 0 1.5px currentColor; }

/* 13 Oct (Jianying): beside Photos, a project that is not finished says so ("Not built yet" / "Unbuilt"); the tab's own words
   and the note on Construction say why Photos is empty. Pictures their sites do not serve are left off; Directors see a line. */
.rb-tabs .rb-tab-tag { padding:3px 7px; border-radius:999px; background:color-mix(in srgb, var(--rb-amber) 16%, transparent); color:var(--text-2); font:500 10.5px/1 var(--font-ui); font-style:normal; letter-spacing:.01em; }
.rb-tabs button[aria-selected=true] .rb-tab-tag { background:color-mix(in srgb, currentColor 14%, transparent); color:inherit; }
.rb-tab-empty .rb-linkbtn { font-size:inherit; }
.rb-broken-note { margin:12px 2px 0; color:var(--text-3); font-size:12px; }
.rb-left-bar { flex-wrap:wrap; row-gap:8px; }     /* never runs under the text column: what does not fit goes to a second line */

/* 21 Oct: right-click on a picture (Directors): Delete from board; the toast offers Undo. */
.rb-ctx { position:fixed; z-index:90; min-width:190px; padding:5px; border-radius:12px; background:rgba(28,29,31,.96); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:0 18px 46px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.12); }
.rb-ctx button { width:100%; height:34px; display:flex; align-items:center; gap:9px; padding:0 11px; border:0; border-radius:8px; background:none; color:#f3a592; font:500 13px/1 var(--font-ui, sans-serif); text-align:left; cursor:pointer; }
.rb-ctx button:hover, .rb-ctx button:focus-visible { background:rgba(224,120,100,.16); outline:none; }
.rb-toast.has-act.is-on { pointer-events:auto; }
.rb-toast-act { margin-left:10px; padding:0; border:0; background:none; color:#fff; font:600 13.5px/1 var(--font-ui, sans-serif); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rb-gone-note .rb-linkbtn { font-size:12px; }

/* 10 Nov: pictures found again wait in a compact list for a Director. */
.rb-repairs { flex:none; max-height:min(260px, 32vh); overflow:auto; padding:8px 12px; border-radius:12px; background:var(--rb-frost); box-shadow:inset 0 0 0 1px var(--rb-line); }
.rb-repairs-head { display:flex; justify-content:flex-end; }
.rb-repair-row { display:flex; align-items:center; gap:10px; padding:6px 0; border-top:1px solid var(--rb-line-soft); }
.rb-repair-row img { width:58px; height:42px; object-fit:cover; border-radius:5px; }
.rb-repair-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; font-size:12px; }
.rb-repair-text small, .rb-repair-text a { color:var(--text-2); }
.rb-repair-row .rb-btn, .rb-repairs-head .rb-btn { height:28px; padding:0 10px; font-size:12px; }
.fc-repair-chip { display:inline-flex; padding:4px 7px; border-radius:7px; background:color-mix(in srgb, #e0b25c 18%, transparent); color:#e0b25c; font-size:11px; white-space:nowrap; }
.fc-repair-chip.is-gone { background:var(--surface-2); color:var(--text-2); }
html[data-theme="light"] .fc-repair-chip:not(.is-gone) { color:#9a6a12; }
