/* SOGpt UI v2 · Reference Catalogue: one card pool, four menus and a search. Cards and menus are solid. */
:root[data-ui=v2] #view-reference-library.active { display:block; height:100%; overflow:auto; padding:0; background:var(--surface-0); }
.rl-view:not(.active) { display:none; }
.rl-page { max-width:none; margin:0; padding:32px 32px 56px; box-sizing:border-box; display:flex; flex-direction:column; gap:20px; color:var(--text-1); font-family:var(--font-ui); }
.rl-ic { flex:none; }
.rl-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.rl-head { display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.rl-head-copy { flex:1 1 420px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.rl-eyebrow { color:var(--text-3); font:500 11.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.rl-head h1 { margin:0; font:500 40px/1 var(--font-ui); letter-spacing:-.03em; }
.rl-head p { max-width:640px; margin:0; color:var(--text-2); font:400 14.5px/1.5 var(--font-ui); }
/* How it works, in three steps; step 1 opens the Catalogue Agent. */
/* "?" beside the title opens the three steps */
.ct-title-row { position:relative; display:flex; align-items:center; gap:12px; }
.ct-help-btn { flex:none; width:28px; height:28px; display:grid; place-items:center; padding:0; border:1px solid var(--v2-edge-strong); border-radius:50%; background:transparent; color:var(--text-2); font:600 14px/1 var(--font-ui); cursor:pointer; }
.ct-help-btn:hover, .ct-help-btn[aria-expanded="true"] { background:var(--v2-fill-strong); color:var(--text-1); }
.ct-help { position:absolute; left:0; top:calc(100% + 10px); z-index:40; width:min(360px, calc(100vw - 32px)); padding:14px 16px; border:1px solid var(--v2-edge-strong); border-radius:14px; background:var(--v2-panel); box-shadow:0 18px 50px rgba(0,0,0,.35); }
.ct-help .ct-help-title { max-width:none; margin:0 0 12px; color:var(--text-1); font:600 13.5px/1.3 var(--font-ui); }
.ct-help .ct-help-note { max-width:none; margin:12px 0 0; color:var(--text-3); font:400 12.5px/1.45 var(--font-ui); }
.ct-steps { display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; color:var(--text-2); font:400 14px/1.4 var(--font-ui); }
.ct-steps li { display:flex; align-items:center; gap:10px; min-width:0; }
.ct-step-n { flex:none; width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:var(--v2-fill-strong); color:var(--text-1); font:600 11.5px/1 var(--font-mono); }
.ct-step-ask { display:inline; margin-right:2px; padding:0; border:0; background:none; color:var(--v2-accent-text); font:600 14px/1.4 var(--font-ui); text-decoration:underline; text-underline-offset:3px; text-decoration-color:color-mix(in srgb, currentColor 45%, transparent); cursor:pointer; }
.ct-step-ask:hover { text-decoration-color:currentColor; }
.ct-step-ask .rl-ic { vertical-align:-2px; margin-right:5px; }
.rl-search { position:relative; display:flex; align-items:center; flex:0 1 320px; }
.rl-search > .rl-ic { position:absolute; left:12px; color:var(--text-3); pointer-events:none; }
.rl-search input { width:100%; height:38px; box-sizing:border-box; padding:0 12px 0 36px; border:1px solid var(--v2-edge-strong); border-radius:10px; background:var(--v2-panel); color:var(--text-1); font:400 13.5px/1 var(--font-ui); }
.rl-search input::placeholder { color:var(--text-3); }

/* Filter bar: Firm, Typology, Location, SG Favorites, and search on the right. Menus are solid. */
.ct-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ct-field { position:relative; }
.ct-combo input, .ct-trigger { height:38px; box-sizing:border-box; border:1px solid var(--v2-edge-strong); border-radius:10px; background:var(--v2-panel); color:var(--text-1); font:400 13.5px/1 var(--font-ui); }
.ct-combo input { width:176px; padding:0 58px 0 12px; }
.ct-combo[data-ct="place"] input { width:196px; }
.ct-combo input::placeholder { color:var(--text-2); }
.ct-combo.is-set input, .ct-menu.is-set .ct-trigger { border-color:color-mix(in srgb, var(--v2-accent-text) 55%, transparent); background:var(--v2-accent-soft); font-weight:500; }
.ct-caret, .ct-clear { position:absolute; top:5px; width:28px; height:28px; display:grid; place-items:center; padding:0; border:0; border-radius:7px; background:transparent; color:var(--text-3); cursor:pointer; }
.ct-caret { right:5px; }
.ct-clear { right:31px; }
.ct-clear[hidden] { display:none; }
.ct-caret:hover, .ct-clear:hover { background:var(--v2-fill-strong); color:var(--text-1); }
.ct-field.is-open .ct-caret .rl-ic, .ct-menu.is-open .ct-trigger .rl-ic { transform:rotate(180deg); }
.ct-caret .rl-ic, .ct-trigger .rl-ic { transition:transform var(--v2-fast, 140ms) var(--v2-ease, ease); }
.ct-trigger { display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-width:150px; padding:0 10px 0 12px; cursor:pointer; }
.ct-trigger .rl-ic { color:var(--text-3); }
.ct-trigger-label { max-width:180px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ct-fav { display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 12px; border:1px solid var(--v2-edge-strong); border-radius:10px; background:transparent; color:var(--text-1); font:500 13px/1 var(--font-ui); cursor:pointer; }
.ct-fav:hover { background:var(--v2-fill); }
.ct-fav .rl-ic { color:var(--text-3); }
.ct-fav-n { color:var(--text-3); font:500 11.5px/1 var(--font-mono); }
.ct-fav[aria-pressed=true] { border-color:var(--v2-accent-text); background:var(--v2-accent-soft); color:var(--v2-accent-text); }
.ct-fav[aria-pressed=true] .rl-ic { color:var(--v2-accent-text); fill:currentColor; }
.ct-fav[aria-pressed=true] .ct-fav-n { color:inherit; }
.ct-search { margin-left:auto; flex:0 1 340px; display:flex; align-items:center; }
.ct-search > .rl-ic { position:absolute; left:12px; color:var(--text-3); pointer-events:none; }
.ct-search input { width:100%; padding:0 12px 0 36px; }
.ct-list { position:absolute; z-index:40; top:calc(100% + 6px); left:0; min-width:max(100%, 240px); max-height:min(380px, 60vh); overflow:auto; box-sizing:border-box; padding:6px; border:1px solid var(--v2-edge-strong); border-radius:12px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow); }
:root[data-ui=v2][data-theme=light] .ct-list { background:#fff; }
.ct-search .ct-list { left:auto; right:0; min-width:max(100%, 360px); }
.ct-opt { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:12px; min-height:32px; padding:0 10px; border-radius:8px; color:var(--text-1); font:400 13px/1.3 var(--font-ui); cursor:pointer; }
.ct-list[aria-multiselectable=true] .ct-opt { grid-template-columns:16px minmax(0, 1fr) auto; gap:10px; }
.ct-opt:hover, .ct-opt.is-active { background:var(--v2-fill-strong); }
.ct-opt.is-active { box-shadow:inset 0 0 0 1px var(--v2-edge-strong); }
.ct-opt[aria-selected=true] .ct-opt-label { font-weight:600; }
.ct-opt.ct-child { padding-left:28px; color:var(--text-2); }
.ct-list[aria-multiselectable=true] .ct-opt.ct-child { padding-left:34px; }
.ct-opt.ct-zero { color:var(--text-4); }
.ct-opt-label { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ct-opt-n { color:var(--text-3); font:500 11.5px/1 var(--font-mono); white-space:nowrap; }
.ct-list[aria-label=Suggestions] .ct-opt-n { max-width:180px; overflow:hidden; text-overflow:ellipsis; font:400 12px/1.2 var(--font-ui); }
.ct-check { width:14px; height:14px; display:grid; place-items:center; border:1px solid var(--v2-edge-strong); border-radius:4px; color:var(--v2-on-action); }
.ct-opt[aria-selected=true] .ct-check { border-color:var(--v2-action); background:var(--v2-action); }
.ct-divider { height:1px; margin:6px 4px; background:var(--v2-edge-strong); }
.ct-empty { margin:0; padding:10px; color:var(--text-3); font-size:13px; }
.ct-status { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-height:28px; margin-top:-6px; }
.ct-status .rl-count { margin-right:6px; color:var(--text-3); font-size:13px; }
.rl-link { padding:0; border:0; background:none; color:var(--text-2); font:400 13px/1 var(--font-ui); text-decoration:underline; text-underline-offset:3px; text-decoration-color:color-mix(in srgb, currentColor 40%, transparent); cursor:pointer; }
.rl-link:hover { color:var(--text-1); }
.rl-chip { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 8px 0 11px; border:1px solid var(--v2-edge-strong); border-radius:14px; background:var(--v2-fill); color:var(--text-1); font:400 12.5px/1 var(--font-ui); cursor:pointer; }
.rl-chip .rl-ic { color:var(--text-3); }
.rl-chip:hover .rl-ic { color:var(--text-1); }

/* SG star: a teal badge on the picture. Directors see an outline star to add one. */
.rl-img-wrap { position:relative; }
.ct-star { position:absolute; top:0; right:0; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; color:#f4f5f6; cursor:pointer; }
/* Directors, on hover: a glass bookmark hanging from the top edge, to add the project */
button.ct-star:not(.is-on) { right:16px; width:30px; height:44px; padding-top:11px; align-items:flex-start; background:rgba(22,23,25,.55); clip-path:polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); -webkit-backdrop-filter:blur(14px) saturate(160%); backdrop-filter:blur(14px) saturate(160%); opacity:0; transition:opacity var(--v2-fast, 140ms) var(--v2-ease, ease); }
.rl-card:hover button.ct-star, .rl-card:focus-within button.ct-star, button.ct-star:focus-visible { opacity:1; }
@media (hover:none) { button.ct-star:not(.is-on) { opacity:1; } }
button.ct-star:not(.is-on):hover, button.ct-star:not(.is-on):focus-visible { background:rgba(22,23,25,.78); }
/* SG Favorite: a small round seal of clear frosted glass with a star */
.ct-star.is-on { top:10px; right:10px; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,.2); box-shadow:inset 0 0 0 1px rgba(255,255,255,.42), 0 3px 10px rgba(0,0,0,.18); -webkit-backdrop-filter:blur(16px) saturate(180%); backdrop-filter:blur(16px) saturate(180%); color:#ffffff; }
.ct-star.is-on .rl-ic { width:12px; height:12px; fill:currentColor; stroke:none; filter:drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
button.ct-star.is-on:hover { background:rgba(255,255,255,.3); }
.ct-star:focus-visible { outline:2px solid #fff; outline-offset:2px; }

/* Firm sections and cards */
.rl-firm { display:flex; flex-direction:column; gap:14px; padding-top:6px; }
.rl-firm-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.rl-firm-head h2 { margin:0; font:500 22px/1.2 var(--font-ui); letter-spacing:-.015em; }
.rl-meta { color:var(--text-3); font-size:12.5px; }
.rl-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; }
.rl-more-row { display:flex; justify-content:center; margin:22px 0 4px; }
.rl-more { display:inline-flex; align-items:center; gap:10px; height:36px; padding:0 16px; border:1px solid var(--v2-edge-strong); border-radius:10px; background:var(--v2-fill); color:var(--text-1); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rl-more span { color:var(--text-3); font-weight:400; }
.rl-more:hover { background:var(--v2-fill-strong); }
.rl-more:focus-visible { outline:2px solid var(--gold-ring); outline-offset:2px; }
.rl-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--v2-edge); border-radius:14px; background:var(--v2-card); }
.rl-card:hover { border-color:var(--v2-edge-strong); }
.rl-img { position:relative; display:block; aspect-ratio:4 / 3; overflow:hidden; background:#16181a; }
.rl-no-picture, .rl-img-off::after { position:absolute; inset:0; display:grid; place-items:center; color:var(--text-3); font:400 13px/1.4 var(--font-ui); }
.rl-img-off::after { content:"No picture"; background:#16181a; }
.rl-img img { width:100%; height:100%; display:block; object-fit:cover; transition:transform var(--v2-base, 200ms) var(--v2-ease, ease); }
.rl-card:hover .rl-img img { transform:scale(1.02); }
.rl-body { flex:1; display:flex; flex-direction:column; gap:6px; padding:14px 16px 18px; }
.rl-body h3 { margin:0; font:500 15px/1.35 var(--font-ui); }
.rl-body h3 a { color:var(--text-1); text-decoration:none; }
/* Every card keeps the same shape: the name takes at most two lines (the rest goes into "…"),
   the place and the year · type · status line take one line each. */
.rl-body h3 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.rl-body h3 { min-height:calc(2 * 1.35em); }
.rl-body h3 a:hover { text-decoration:underline; text-underline-offset:3px; text-decoration-color:color-mix(in srgb, currentColor 40%, transparent); }
/* Card text: firm + name, then place · year · type · status */
.rl-by { color:var(--text-2); }
.rl-sub { margin:0; color:var(--text-2); font-size:13px; line-height:1.45; }
.rl-sub > span { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.rl-meta > span + span::before { content:" · "; color:var(--text-3); }
/* The type's label sits on the picture; in the text line it reads like the rest */
.rl-sub .rl-ty { color:inherit; font-weight:inherit; }
.rl-ty-tag { position:absolute; left:10px; bottom:10px; max-width:calc(100% - 20px); height:22px; box-sizing:border-box; display:inline-flex; align-items:center; padding:0 8px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; border-radius:6px; background:rgba(10,11,12,.74); color:#eef1f3; font:600 10.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; pointer-events:none; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.rl-placeholder { border-style:dashed; background:transparent; }
.rl-placeholder .rl-body h3 { color:var(--text-2); font-weight:400; }
.rl-placeholder .rl-img { opacity:.8; }
.rl-none { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:28px; border:1px dashed var(--v2-edge-strong); border-radius:14px; color:var(--text-2); font-size:13.5px; }
.rl-none strong { color:var(--text-1); font:500 15px/1.3 var(--font-ui); }
.rl-none-acts { display:flex; flex-wrap:wrap; gap:16px; }
.rl-none-acts:empty { display:none; }
.rl-note { margin:8px 0 0; color:var(--text-3); font-size:12.5px; line-height:1.5; }
:is(.rl-view) :is(button, a, input):focus-visible { outline:2px solid var(--gold-ring); outline-offset:2px; }

/* Collection box: top-left of each picture. Shown on hover, and always once a collection is under way. */
.ct-pick { position:absolute; top:10px; left:10px; width:28px; height:28px; display:grid; place-items:center; box-sizing:border-box; padding:0; border:1.5px solid rgba(255,255,255,.9); border-radius:8px; background:rgba(10,11,12,.5); color:#0a0b0c; font:700 12px/1 var(--font-mono); cursor:pointer; opacity:0; transition:opacity var(--v2-fast, 140ms) var(--v2-ease, ease), background var(--v2-fast, 140ms) var(--v2-ease, ease); }
.rl-card:hover .ct-pick, .rl-card:focus-within .ct-pick, .rl-view.ct-selecting .ct-pick, .ct-pick.is-on { opacity:1; }
@media (hover:none) { .ct-pick { opacity:1; } }
.ct-pick:hover { background:rgba(10,11,12,.72); }
.ct-pick.is-on { border-color:#f2f4f5; background:#f2f4f5; }
.ct-pick:focus-visible { outline:2px solid #fff; outline-offset:2px; opacity:1; }
.rl-card.is-picked { border-color:var(--v2-action); box-shadow:0 0 0 1px var(--v2-action); }

/* Dock: fixed to the window, lined up with the grid (placed by the script). */
.rl-page { padding-bottom:104px; }
.rl-view.ct-has-tray .rl-page { padding-bottom:128px; }
.ct-dock { position:fixed; z-index:60; left:var(--ct-left, 24px); right:var(--ct-right, 24px); bottom:var(--ct-bottom, 16px); height:0; pointer-events:none; }
.ct-dock > * { pointer-events:auto; }

/* Collection tray: the ticked projects as pictures, and the button that makes the files. */
.ct-tray { position:absolute; left:0; right:200px; bottom:0; display:flex; align-items:center; gap:14px; height:72px; box-sizing:border-box; padding:0 12px 0 16px; border:1px solid var(--v2-edge-strong); border-radius:16px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow); }
:root[data-ui=v2][data-theme=light] .ct-tray { background:#fff; }
.ct-dock.agent-open .ct-tray { right:372px; }
.ct-tray[hidden] { display:none; }
.ct-tray-head { flex:none; display:flex; flex-direction:column; gap:4px; min-width:92px; }
.ct-tray-head strong { font:500 13.5px/1.1 var(--font-ui); }
.ct-tray-head span { color:var(--text-3); font:500 11.5px/1.2 var(--font-mono); }
.ct-tray-head .ct-tray-over { max-width:150px; color:var(--v2-accent-text); font:400 11.5px/1.25 var(--font-ui); }
.ct-tray-list { flex:1; min-width:0; display:flex; gap:8px; margin:0; padding:4px 2px; overflow-x:auto; overflow-y:hidden; list-style:none; }
.ct-tray-list li { position:relative; flex:none; width:64px; height:48px; overflow:hidden; border-radius:8px; background:#16181a; }
.ct-tray-list img { width:100%; height:100%; display:block; object-fit:cover; }
.ct-tray-n { position:absolute; left:4px; bottom:4px; min-width:16px; height:16px; padding:0 3px; box-sizing:border-box; border-radius:5px; background:#f2f4f5; color:#0a0b0c; font:700 10px/16px var(--font-mono); text-align:center; }
.ct-tray-list button { position:absolute; top:3px; right:3px; width:20px; height:20px; display:grid; place-items:center; padding:0; border:0; border-radius:6px; background:rgba(10,11,12,.72); color:#fff; cursor:pointer; opacity:0; }
.ct-tray-list li:hover button, .ct-tray-list button:focus-visible { opacity:1; }
@media (hover:none) { .ct-tray-list button { opacity:1; } }
.ct-tray-acts { flex:none; display:flex; align-items:center; gap:14px; }
.ct-make { height:40px; padding:0 16px; border:0; border-radius:11px; background:var(--v2-action); color:var(--v2-on-action); font:600 13px/1 var(--font-ui); white-space:nowrap; cursor:pointer; }
.ct-make:hover { filter:brightness(1.08); }

/* Catalogue Agent: a floating button, and the dialog it opens. Solid, not glass. */
.ct-launch { position:absolute; right:0; bottom:0; display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:188px; height:48px; box-sizing:border-box; padding:0 20px; border:0; border-radius:24px; background:var(--v2-action); color:var(--v2-on-action); box-shadow:var(--v2-float-shadow); font:600 14px/1 var(--font-ui); cursor:pointer; }
.ct-launch:hover { filter:brightness(1.08); }
.ct-launch[hidden] { display:none; }
/* The page's title takes it back to the start (as does Research › Reference Catalogue, or the top bar's title). */
.rl-title-home { display:inline; margin:0; padding:0; border:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; text-align:inherit; cursor:pointer; }
.rl-title-home:focus-visible { outline:2px solid var(--gold-ring); outline-offset:4px; border-radius:6px; }
#app-shell[data-active-view="reference-library"] .v2-pagebar-title { cursor:pointer; }
/* Clear, over the Agent's button: back to the page as it opens (a second click confirms). */
.ct-restart { position:absolute; right:0; bottom:60px; display:inline-flex; align-items:center; gap:7px; height:36px; box-sizing:border-box; padding:0 16px 0 13px; border:1px solid var(--v2-edge-strong); border-radius:999px; background:var(--surface-2, #16181a); color:var(--text-1); box-shadow:var(--v2-float-shadow); font:500 13px/1 var(--font-ui); white-space:nowrap; cursor:pointer; }
.ct-restart[hidden] { display:none; }
.ct-restart.is-armed { border-color:var(--v2-accent-text, #d9b26b); color:var(--v2-accent-text, #d9b26b); }
.ct-agent { position:absolute; right:0; bottom:0; width:360px; height:min(600px, calc(100vh - var(--ct-bottom, 16px) - var(--ct-top, 80px))); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--v2-edge-strong); border-radius:18px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow); color:var(--text-1); font-family:var(--font-ui); }
:root[data-ui=v2][data-theme=light] .ct-agent { background:#fff; }
.ct-agent[hidden] { display:none; }
.ct-agent-head { flex:none; display:flex; align-items:center; gap:10px; padding:12px 10px 12px 14px; border-bottom:1px solid var(--v2-edge); }
.ct-agent-head > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.ct-agent-head strong { font:500 14px/1.1 var(--font-ui); }
.ct-agent-head small { color:var(--text-3); font-size:12px; }
.ct-agent-ic { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:var(--v2-accent-soft); color:var(--v2-accent-text); }
.ct-agent-min { width:32px; height:32px; display:grid; place-items:center; padding:0; border:0; border-radius:9px; background:transparent; color:var(--text-2); cursor:pointer; }
.ct-agent-min:hover { background:var(--v2-fill-strong); color:var(--text-1); }
.ct-agent-log { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding:16px 14px; }
.ct-msg p { margin:0; font-size:13.5px; line-height:1.5; white-space:pre-line; }
.ct-agent-msg { display:flex; flex-direction:column; gap:10px; }
.ct-agent-msg.is-error p { color:#f0a39b; }
:root[data-ui=v2][data-theme=light] .ct-agent-msg.is-error p { color:#9b312c; }
.ct-user-msg { align-self:flex-end; max-width:85%; padding:8px 12px; border-radius:14px 14px 4px 14px; background:var(--v2-fill-strong); }
.ct-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ct-chip { min-height:32px; padding:6px 13px; box-sizing:border-box; border:1px solid var(--v2-edge-strong); border-radius:16px; background:transparent; color:var(--text-1); font:400 12.5px/1.2 var(--font-ui); text-align:left; cursor:pointer; }
.ct-chip:hover { background:var(--v2-fill); }
.ct-chip.is-primary { border-color:var(--v2-action); background:var(--v2-action); color:var(--v2-on-action); font-weight:600; }
.ct-chip.is-primary:hover { filter:brightness(1.08); }
.ct-files { display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; }
.ct-file { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:8px; padding:6px 6px 6px 10px; border:1px solid var(--v2-edge-strong); border-radius:12px; background:var(--v2-card); }
.ct-file-acts { display:flex; align-items:center; gap:2px; }
.ct-file-tag { padding:4px 6px; border-radius:6px; background:var(--v2-accent-soft); color:var(--v2-accent-text); font:700 10.5px/1 var(--font-mono); letter-spacing:.04em; }
.ct-file-name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 13px/1.2 var(--font-ui); }
.ct-file-act { display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 8px; border:0; border-radius:8px; background:transparent; color:var(--text-1); font:500 12.5px/1 var(--font-ui); cursor:pointer; text-decoration:none; }
.ct-file-act.is-share { background:var(--v2-fill-strong); }
.ct-file-act:hover { background:var(--v2-fill-strong); color:var(--text-1); }
/* The Agent at work (14 Oct, Jianying: say it is working, so waiting is not irritating): dots and a word in a quiet shimmer */
.ct-typing { flex-direction:row; align-items:center; gap:8px; padding:4px 0; }
.ct-typing .ct-dots { display:inline-flex; gap:4px; }
.ct-typing .ct-dots span { width:6px; height:6px; border-radius:50%; background:var(--text-3); animation:ct-dot 1s infinite ease-in-out; }
.ct-typing .ct-dots span:nth-child(2) { animation-delay:.15s; } .ct-typing .ct-dots span:nth-child(3) { animation-delay:.3s; }
.ct-typing-t, .ct-web.is-running .ct-web-doing { background:linear-gradient(90deg, var(--g-text-3, var(--text-3)) 0%, var(--text-1) 45%, var(--g-text-3, var(--text-3)) 90%);
  background-size:220% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:ct-shimmer 2s linear infinite; }
.ct-typing-t { font:500 13px/1.3 var(--font-ui); }
@keyframes ct-shimmer { from { background-position:110% 0; } to { background-position:-110% 0; } }
.ct-web-bar.is-busy i { width:30% !important; animation:ct-indet 1.4s ease-in-out infinite; }
@keyframes ct-indet { from { transform:translateX(-110%); } to { transform:translateX(340%); } }
@keyframes ct-dot { 0%, 80%, 100% { opacity:.3; transform:translateY(0); } 40% { opacity:1; transform:translateY(-3px); } }
.ct-agent-form { flex:none; display:flex; align-items:center; gap:8px; padding:10px 10px 12px 12px; border-top:1px solid var(--v2-edge); }
.ct-agent-form :is(input, textarea) { flex:1; min-width:0; height:40px; box-sizing:border-box; padding:0 12px; border:1px solid var(--v2-edge-strong); border-radius:11px; background:var(--v2-panel); color:var(--text-1); font:400 13.5px/1 var(--font-ui); }
.ct-agent-form :is(input, textarea)::placeholder { color:var(--text-3); }
/* 16 Oct: the message box wraps, so a suggestion or a long request is read whole (one line, up to five). */
.ct-agent-form textarea { height:auto; min-height:40px; max-height:120px; padding:10px 12px; resize:none; overflow-y:auto; line-height:1.45; field-sizing:content; scrollbar-width:thin; }
.ct-agent-send { flex:none; width:40px; height:40px; display:grid; place-items:center; padding:0; border:0; border-radius:11px; background:var(--v2-action); color:var(--v2-on-action); cursor:pointer; }
:is(.ct-dock) :is(button, a, input):focus-visible { outline:2px solid var(--gold-ring); outline-offset:2px; }

/* Wide screens: the page makes room for the Agent, so no card hides behind it. */
/* The Agent sits at the right edge of the page area (360 wide, 16 from the edge); the cards keep 24px clear of it. */
.rl-view.ct-agent-side .rl-page { padding-right:400px; }
.rl-view.ct-agent-side .rl-grid { grid-template-columns:repeat(auto-fill, minmax(228px, 1fr)); }
.rl-view.ct-agent-side .ct-agent { height:calc(100vh - var(--ct-bottom, 16px) - var(--ct-top, 80px)); }
/* "Tick the projects first": the boxes pulse twice. */
@keyframes ct-pulse { 0%, 100% { box-shadow:0 0 0 0 rgba(242,244,245,0); } 50% { box-shadow:0 0 0 6px rgba(242,244,245,.35); } }
/* 21 Oct: a request for the files said to the Agent points here */
.ct-tray .ct-make.is-nudge { animation:ct-pulse 1.2s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .ct-tray .ct-make.is-nudge { animation:none; outline:2px solid currentColor; outline-offset:2px; } }
.rl-view.ct-hint .ct-pick:not(.is-on) { opacity:1; animation:ct-pulse 1.2s ease-in-out 2; border-color:#fff; }

/* Phone: after cards are shown, the dialog shrinks to its last message and buttons. */
.ct-agent-grow { display:none; }
.ct-agent.is-peek { height:auto; }
.ct-agent.is-peek .ct-agent-grow { display:grid; }
.ct-agent.is-peek .ct-agent-log { flex:none; max-height:42vh; padding:12px 14px 14px; }
.ct-agent.is-peek .ct-msg { display:none; }
.ct-agent.is-peek .ct-msg:last-child { display:flex; }
.ct-agent.is-peek .ct-agent-form { display:none; }

/* History: the catalogues you made, found by what is inside them */
.ct-history { flex:1; min-height:0; display:flex; flex-direction:column; gap:10px; padding:12px 14px 14px; overflow:hidden; }
.ct-history[hidden], .ct-agent-log[hidden], .ct-agent-form[hidden] { display:none; }
.ct-history-top { display:flex; align-items:center; gap:12px; }
.ct-history-top strong { font:500 14px/1 var(--font-ui); }
#ct-history-q { height:38px; box-sizing:border-box; padding:0 12px; border:1px solid var(--v2-edge-strong); border-radius:10px; background:var(--v2-panel); color:var(--text-1); font:400 13px/1 var(--font-ui); }
#ct-history-q::placeholder { color:var(--text-3); }
.ct-history-filter { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:9px; background:var(--v2-accent-soft); color:var(--text-2); font-size:12.5px; }
.ct-history-filter[hidden] { display:none; }
.ct-history-filter strong { color:var(--text-1); font-weight:600; }
.ct-history-list { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:10px; margin:0 -4px; padding:0 4px 4px; }
.ct-h-empty { margin:12px 2px; color:var(--text-3); font-size:13px; line-height:1.5; }
.ct-h-item { display:grid; grid-template-columns:72px minmax(0, 1fr); gap:10px; align-items:start; padding:8px; border:1px solid var(--v2-edge); border-radius:12px; background:var(--v2-card); }
.ct-h-item:hover { border-color:var(--v2-edge-strong); }
.ct-h-item.is-current { border-color:var(--v2-accent-text); }
.ct-h-pics { display:grid; grid-template-columns:1fr 1fr; gap:2px; width:72px; height:72px; overflow:hidden; border-radius:8px; }
.ct-h-pics img, .ct-h-pics i { width:100%; height:100%; display:block; object-fit:cover; background:#1b1e20; }
.ct-h-main { min-width:0; display:flex; flex-direction:column; gap:2px; }
.ct-h-title { display:flex; align-items:center; gap:6px; min-width:0; }
.ct-h-title strong { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 13.5px/1.3 var(--font-ui); }
.ct-h-icon { flex:none; width:26px; height:26px; display:grid; place-items:center; padding:0; border:0; border-radius:7px; background:transparent; color:var(--text-2); cursor:pointer; }
.ct-h-icon:hover { background:var(--v2-fill-strong); color:var(--text-1); }
.ct-h-icon[data-ct-delete]:hover { background:#5a2320; color:#fff; }
.ct-h-meta { margin:0; color:var(--text-3); font-size:12px; line-height:1.4; }
.ct-h-draft { color:var(--v2-accent-text); font-weight:600; }
.ct-h-acts { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:5px; }
.ct-h-btn { display:inline-flex; align-items:center; gap:6px; height:28px; box-sizing:border-box; padding:0 9px; border:0; border-radius:8px; background:var(--v2-fill-strong); color:var(--text-1); font:500 12px/1 var(--font-ui); text-decoration:none; cursor:pointer; }
.ct-h-btn:hover { filter:brightness(1.15); }
.ct-h-btn.is-icon { width:28px; justify-content:center; padding:0; color:var(--text-2); }
.ct-h-btn .ct-file-tag { padding:2px 4px; font-size:9.5px; }
.ct-h-icon.is-armed { width:auto; padding:0 7px; background:#5a2320; color:#fff; font:600 11px/1 var(--font-ui); }
.ct-rename { flex:1; min-width:0; height:30px; box-sizing:border-box; padding:0 8px; border:1px solid var(--v2-edge-strong); border-radius:8px; background:var(--v2-panel); color:var(--text-1); font:500 13.5px/1 var(--font-ui); }
/* An SG Favorite with a project board */

/* ===== Glass skin. Pop-ups (the Agent, the "?" dialog, menus, the collection tray, notices) are one-tone
   frosted glass with no fade, like the Agent flyout; small parts are flat.
   The cards keep their layout; only the parts laid on them, the menus and the Agent change. ===== */
.rl-view {
  --g-frost:rgba(28,29,31,.86);
  --g-line:rgba(255,255,255,.12); --g-line-2:rgba(255,255,255,.18); --g-hi:inset 0 1px 0 rgba(255,255,255,.14);
  --g-fill:rgba(255,255,255,.06); --g-fill-2:rgba(255,255,255,.10); --g-fill-3:rgba(255,255,255,.14);
  --g-btn:rgba(255,255,255,.07);
  --g-row:rgba(255,255,255,.04);
  --g-shadow:0 30px 70px rgba(0,0,0,.55); --g-blur:blur(20px) saturate(150%);
  --g-pill:var(--v2-action); --g-pill-ink:var(--v2-on-action); --g-text-2:rgba(244,245,246,.72); --g-text-3:rgba(244,245,246,.5);
}
html[data-theme="light"] .rl-view {
  --g-frost:rgba(255,255,255,.92);
  --g-line:rgba(0,0,0,.10); --g-line-2:rgba(0,0,0,.16); --g-hi:inset 0 1px 0 rgba(255,255,255,.9);
  --g-fill:rgba(0,0,0,.035); --g-fill-2:rgba(0,0,0,.06); --g-fill-3:rgba(0,0,0,.09);
  --g-btn:#ffffff;
  --g-row:#ffffff;
  --g-shadow:0 24px 60px rgba(0,0,0,.14); --g-text-2:var(--text-2); --g-text-3:var(--text-3);
}
/* Filter bar */
.rl-view .ct-combo input, .rl-view .ct-trigger, .rl-view .ct-fav { border-color:var(--g-line); border-radius:12px; background:var(--g-fill); }
.rl-view .ct-combo input:hover, .rl-view .ct-trigger:hover, .rl-view .ct-fav:hover { background:var(--g-fill-2); }
.rl-view .ct-combo.is-set input, .rl-view .ct-menu.is-set .ct-trigger { border-color:var(--g-line-2); background:var(--g-fill-3); color:var(--text-1); }
.rl-view .ct-fav[aria-pressed=true] { border-color:transparent; background:var(--g-pill); color:var(--g-pill-ink); box-shadow:none; }
.rl-view .ct-fav[aria-pressed=true] .rl-ic, .rl-view .ct-fav[aria-pressed=true] .ct-fav-n { color:inherit; }
.rl-view .ct-caret, .rl-view .ct-clear { border-radius:9px; }
.rl-view .rl-chip { height:30px; padding:0 9px 0 12px; border-color:var(--g-line); border-radius:999px; background:var(--g-btn); }
.rl-view .rl-more { height:40px; padding:0 20px; border-color:var(--g-line); border-radius:999px; background:var(--g-btn); }
/* Menus and the "?" dialog: glass panels */
.rl-view .ct-list { padding:8px; border:0; border-radius:18px; background:var(--g-frost); box-shadow:var(--g-shadow), inset 0 0 0 1px var(--g-line); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
.rl-view .ct-opt { min-height:36px; border-radius:10px; font-size:13.5px; }
.rl-view .ct-opt:hover, .rl-view .ct-opt.is-active { background:var(--g-fill-2); box-shadow:none; }
.rl-view .ct-list[aria-multiselectable=true] .ct-opt[aria-selected=true] { background:var(--g-fill-2); }
.rl-view .ct-check { width:16px; height:16px; box-sizing:border-box; border:0; border-radius:5px; box-shadow:inset 0 0 0 1.5px var(--g-line-2); color:var(--g-pill-ink); }
.rl-view .ct-opt[aria-selected=true] .ct-check { background:var(--g-pill); box-shadow:none; }
.rl-view .ct-divider { background:var(--g-line); }
.rl-view .ct-help-btn { border:0; background:var(--g-fill-2); box-shadow:inset 0 0 0 1px var(--g-line-2); color:var(--text-1); }
.rl-view .ct-help { padding:18px; border:0; border-radius:20px; background:var(--g-frost); box-shadow:var(--g-shadow), inset 0 0 0 1px var(--g-line), var(--g-hi); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
.rl-view .ct-step-n { width:24px; height:24px; background:var(--g-fill-2); box-shadow:inset 0 0 0 1px var(--g-line-2); }
.rl-view .ct-steps li:first-child .ct-step-n { background:var(--g-pill); color:var(--g-pill-ink); box-shadow:none; }
/* Parts laid on a picture: dark glass, so they read on bright and dark photos alike. The type label keeps its frosted dark tag. */
.rl-view .ct-pick { width:30px; height:30px; border:1px solid rgba(255,255,255,.34); border-radius:10px; background:rgba(22,23,25,.34); box-shadow:inset 0 1px 0 rgba(255,255,255,.28); -webkit-backdrop-filter:blur(14px) saturate(160%); backdrop-filter:blur(14px) saturate(160%); color:#050506; font:600 13px/1 var(--font-mono); }
.rl-view .ct-pick:hover { background:rgba(22,23,25,.52); }
.rl-view .ct-pick.is-on { border-color:#f4f5f6; background:#f4f5f6; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.rl-view .rl-card.is-picked { border-color:var(--g-pill); box-shadow:0 0 0 1px var(--g-pill); }
/* Collection tray */
.rl-view .ct-tray { border:0; border-radius:22px; background:var(--g-frost); box-shadow:var(--g-shadow), inset 0 0 0 1px var(--g-line); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
.rl-view .ct-tray-list li { border-radius:10px; box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-tray-n { min-width:18px; height:18px; border-radius:6px; background:#f4f5f6; color:#050506; font:600 10.5px/18px var(--font-mono); }
.rl-view .ct-tray-acts .rl-link { height:40px; padding:0 16px; border-radius:999px; background:var(--g-fill); box-shadow:inset 0 0 0 1px var(--g-line-2); color:var(--text-1); font:500 13.5px/40px var(--font-ui); text-decoration:none; }
.rl-view .ct-tray-acts .rl-link:hover { background:var(--g-fill-2); }
.rl-view .ct-make, .rl-view .ct-launch { border-radius:999px; background:var(--g-pill); color:var(--g-pill-ink); }
.rl-view .ct-make { padding:0 20px; font:600 13.5px/1 var(--font-ui); }
.rl-view .ct-launch { box-shadow:0 18px 44px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.rl-view .ct-restart { border:0; background:var(--g-frost); box-shadow:var(--g-shadow), inset 0 0 0 1px var(--g-line-2); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
.rl-view .ct-restart:hover { background:var(--g-fill-2); }
.rl-view .ct-restart.is-armed { box-shadow:var(--g-shadow), inset 0 0 0 1px var(--v2-accent-text, #d9b26b); }
/* Catalogue Agent */
.rl-view .ct-agent { border:0; border-radius:24px; background:var(--g-frost); box-shadow:0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1px var(--g-line); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
html[data-theme="light"] .rl-view .ct-agent { box-shadow:0 30px 70px rgba(0,0,0,.16), inset 0 0 0 1px var(--g-line); }
/* Agent header: like the Research Agent's. One compact row with a hairline under it, plain icon buttons of one size. */
.rl-view .ct-agent-head { height:52px; box-sizing:border-box; padding:0 8px 0 16px; gap:4px; border-bottom:1px solid var(--g-line); }
.rl-view .ct-agent-head > div { gap:2px; }
.rl-view .ct-agent-head strong { font:600 16px/1.2 var(--font-ui); letter-spacing:-.01em; }
.rl-view .ct-agent-ic { display:none; }
.rl-view .ct-agent-min { width:32px; height:32px; border-radius:8px; background:transparent; color:var(--text-2); }
.rl-view .ct-agent-min:hover, .rl-view .ct-agent-min[aria-pressed=true] { background:var(--g-fill-2); color:var(--text-1); }
html body .rl-view button.ct-agent-min[data-ct-agent-close] { flex:0 0 32px !important; width:32px !important; height:32px !important; min-width:32px !important; min-height:32px !important; max-width:32px !important; border-radius:8px; }
html body .rl-view button.ct-agent-min[data-ct-agent-close]:not(:hover) { background:transparent !important; }
html body .rl-view button.ct-agent-min[data-ct-agent-close] svg { width:15px !important; height:15px !important; }
.rl-view .ct-agent-log { gap:14px; padding:14px 18px 12px; }
/* The three steps under the header: Ask · Tick · Make files, filled as the catalogue moves on. */
.ct-agent-steps { flex:none; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; margin:0; padding:14px 18px 2px; list-style:none; }
.ct-agent-steps li { display:flex; flex-direction:column; gap:7px; color:var(--g-text-3, var(--text-3)); font:500 10.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.ct-agent-steps li::before { content:""; height:3px; border-radius:2px; background:var(--g-fill-3, var(--v2-fill-strong)); transition:background var(--v2-base, 200ms) var(--v2-ease, ease); }
.ct-agent-steps li.is-done, .ct-agent-steps li[aria-current=step] { color:var(--text-1); }
.ct-agent-steps li.is-done::before { background:var(--g-pill, var(--text-1)); }
.ct-agent-steps li[aria-current=step]::before { background:linear-gradient(90deg, var(--g-pill, var(--text-1)) 0 40%, var(--g-fill-3, var(--v2-fill-strong)) 40%); }
.ct-agent.is-peek .ct-agent-steps { display:none; }
.ct-agent:has(.ct-history:not([hidden])) .ct-agent-steps { display:none; }
.rl-view .ct-msg p { font-size:14px; line-height:1.55; }
.rl-view .ct-agent-msg > p { color:var(--g-text-2); }
.rl-view .ct-welcome > p.ct-greet { margin:2px 2px 2px; color:var(--text-1); font:500 16px/1.4 var(--font-ui); letter-spacing:-.01em; text-wrap:balance; }
html[data-theme="light"] .rl-view .ct-agent-msg > p { color:var(--text-1); }
.rl-view .ct-user-msg { padding:10px 14px; border-radius:16px 16px 4px 16px; background:var(--g-fill-2); box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-chip { min-height:30px; padding:6px 12px; border:0; border-radius:999px; background:var(--g-btn); box-shadow:inset 0 0 0 1px var(--g-line-2); font:500 12.5px/1.2 var(--font-ui); }
.rl-view .ct-chip:hover { background:var(--g-fill-3); }
.rl-view .ct-chip.is-primary { background:var(--g-pill); color:var(--g-pill-ink); box-shadow:none; }
.rl-view .ct-file { min-height:48px; box-sizing:border-box; padding:6px 8px 6px 12px; border:0; border-radius:14px; background:var(--g-row); box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-file-tag { padding:4px 6px; border-radius:6px; background:var(--g-fill-3); color:var(--text-1); font:600 10px/1 var(--font-mono); }
.rl-view .ct-file-act { border-radius:999px; color:var(--g-text-2); }
.rl-view .ct-file-act:hover { background:var(--g-fill-2); color:var(--text-1); }
.rl-view .ct-file-act.is-share { padding:0 12px; background:var(--g-pill); color:var(--g-pill-ink); font-weight:600; }
.rl-view .ct-file-act.is-share:hover { background:var(--g-pill); filter:brightness(.94); }
.rl-view .ct-agent-form { margin:6px 14px 16px; padding:6px 6px 6px 16px; border:0; border-radius:999px; background:var(--g-fill); box-shadow:inset 0 0 0 1px var(--g-line), var(--g-hi); }
.rl-view .ct-agent-form :is(input, textarea) { height:38px; padding:0; border:0; background:transparent; font-size:14px; }
.rl-view .ct-agent-form textarea { height:auto; min-height:38px; padding:9px 0; }
.rl-view .ct-agent-form :is(input, textarea):focus-visible { outline:none; }
.rl-view .ct-agent-form:has(textarea) { align-items:flex-end; border-radius:20px; }
.rl-view .ct-agent-form:focus-within { box-shadow:inset 0 0 0 1px var(--g-line-2), 0 0 0 2px var(--gold-ring); }
.rl-view .ct-agent-send { width:38px; height:38px; border-radius:50%; background:var(--g-pill); color:var(--g-pill-ink); }
/* History */
.rl-view #ct-history-q { border:0; border-radius:12px; background:var(--g-fill); box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-history-filter { border-radius:12px; background:var(--g-fill-2); }
.rl-view .ct-h-item { gap:12px; padding:12px; border:0; border-radius:16px; background:var(--g-row); box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-h-item:hover { box-shadow:inset 0 0 0 1px var(--g-line-2); }
.rl-view .ct-h-item.is-current { box-shadow:inset 0 0 0 1px var(--g-pill); }
.rl-view .ct-h-pics { border-radius:10px; }
.rl-view .ct-h-meta { color:var(--g-text-3); font-size:12.5px; }
.rl-view .ct-h-btn { border-radius:999px; background:var(--g-fill-2); box-shadow:inset 0 0 0 1px var(--g-line); }
.rl-view .ct-h-btn:hover { background:var(--g-fill-3); filter:none; }
.rl-view .ct-h-btn[data-ct-continue] { padding:0 12px; background:var(--g-pill); color:var(--g-pill-ink); box-shadow:none; font-weight:600; }
.rl-view .ct-h-icon { border-radius:9px; }
.rl-view .ct-rename { border:0; border-radius:10px; background:var(--g-fill); box-shadow:inset 0 0 0 1px var(--g-line-2); }
/* The app's notice, while this page is open: a glass pill */
body:has(#view-reference-library.active) #toast { padding:10px 16px; border:0; border-radius:999px; background:rgba(28,29,31,.86); box-shadow:0 16px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.12); color:#f4f5f6; font:500 13.5px/1.2 var(--font-ui); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
body:has(#view-reference-library.active) #toast.error { box-shadow:0 20px 50px rgba(0,0,0,.5), inset 0 0 0 1px rgba(224,120,100,.6); color:#f4f5f6; }

/* Anything that scrolls inside the page shows a thin rail, so it is clear there is more; it brightens on hover. */
:is(.rl-view .ct-agent-log, .rl-view .ct-history-list, .rl-view .ct-list, .rl-view .ct-tray-list) { scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.26) rgba(255,255,255,.05); }
:is(.rl-view .ct-agent-log, .rl-view .ct-history-list, .rl-view .ct-list, .rl-view .ct-tray-list):hover { scrollbar-color:rgba(255,255,255,.45) rgba(255,255,255,.08); }
html[data-theme="light"] :is(.rl-view .ct-agent-log, .rl-view .ct-history-list, .rl-view .ct-list, .rl-view .ct-tray-list) { scrollbar-color:rgba(0,0,0,.26) rgba(0,0,0,.05); }
html[data-theme="light"] :is(.rl-view .ct-agent-log, .rl-view .ct-history-list, .rl-view .ct-list, .rl-view .ct-tray-list):hover { scrollbar-color:rgba(0,0,0,.42) rgba(0,0,0,.07); }
/* Safari reads these instead */
.rl-view .ct-agent-log::-webkit-scrollbar, .rl-view .ct-history-list::-webkit-scrollbar, .rl-view .ct-list::-webkit-scrollbar, .rl-view .ct-tray-list::-webkit-scrollbar { width:6px; height:6px; }
.rl-view .ct-agent-log::-webkit-scrollbar-track, .rl-view .ct-history-list::-webkit-scrollbar-track, .rl-view .ct-list::-webkit-scrollbar-track, .rl-view .ct-tray-list::-webkit-scrollbar-track { background:rgba(128,128,128,.08); border-radius:3px; }
.rl-view .ct-agent-log::-webkit-scrollbar-thumb, .rl-view .ct-history-list::-webkit-scrollbar-thumb, .rl-view .ct-list::-webkit-scrollbar-thumb, .rl-view .ct-tray-list::-webkit-scrollbar-thumb { background:rgba(128,128,128,.45); border-radius:3px; }

/* ===== Catalogue Agent v2: the 20 case sites, web finds, proposals ===== */
/* Sections when the web has been searched: In the Library · From the web */
.ct-sec { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 10px; margin:6px 0 12px; }
.ct-sec.is-web { margin-top:30px; }
.ct-sec-lab { color:var(--g-text-3, var(--text-3)); font:500 10.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.ct-sec-n { color:var(--text-1); font:500 11px/1 var(--font-mono); }
.ct-sec small { color:var(--g-text-3, var(--text-3)); font-size:12.5px; }
.ct-sec-none { margin:0 0 4px; color:var(--text-3); font-size:13px; }
.rl-sub .rl-src { color:var(--text-2); }
.rl-card { position:relative; }
.rl-card.is-hl { border-color:var(--g-pill, var(--text-1)); box-shadow:0 0 0 1px var(--g-pill, var(--text-1)); }
.rl-card.is-out { opacity:.42; }
.rl-card.is-out h3 a { text-decoration:line-through; text-decoration-color:color-mix(in srgb, currentColor 55%, transparent); }
.rl-card.is-new { border-color:var(--g-pill, var(--text-1)); box-shadow:0 0 0 1px var(--g-pill, var(--text-1)); }
.rl-flag { position:absolute; z-index:3; right:10px; top:52px; height:22px; display:inline-flex; align-items:center; padding:0 8px; border-radius:999px; background:rgba(10,11,12,.74); color:#f4f5f6; font:600 10px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); pointer-events:none; }
/* "Search in": above the message box */
.ct-scope-row { position:relative; flex:none; padding:0 14px; }
/* 5 Oct: a quiet line above the message box, not a floating pill; History has its own bottom, so it hides there */
.ct-agent.is-history .ct-scope-row, .ct-agent.is-peek .ct-scope-row { display:none; }
.ct-scope { display:inline-flex; align-items:center; gap:6px; height:24px; margin-left:-6px; padding:0 6px; border:0; border-radius:8px; background:transparent; color:var(--g-text-2, var(--text-2)); font:400 12px/1 var(--font-ui); cursor:pointer; }
.ct-scope:hover, .ct-scope[aria-expanded=true] { background:var(--g-fill, var(--v2-fill)); color:var(--text-1); }
.ct-scope svg:last-child { opacity:.6; }
.ct-scope-ic { display:inline-grid; }
.ct-scope-k { color:var(--g-text-3, var(--text-3)); font-weight:400; }
.ct-scope-v { font-weight:500; color:var(--text-1); }
.ct-scope-menu { position:absolute; left:14px; bottom:36px; z-index:6; width:min(330px, calc(100% - 28px)); display:flex; flex-direction:column; gap:2px; padding:6px; border-radius:16px; background:var(--g-frost, var(--surface-2)); box-shadow:var(--g-shadow, var(--v2-float-shadow)), inset 0 0 0 1px var(--g-line, var(--v2-edge)); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); }
.ct-scope-menu[hidden] { display:none; }
.ct-scope-t { margin:0; padding:8px 10px 6px; color:var(--g-text-3, var(--text-3)); font:500 10.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.ct-scope-menu [role=menuitemradio] { display:grid; grid-template-columns:18px minmax(0, 1fr); gap:10px; align-items:start; padding:10px; border:0; border-radius:11px; background:transparent; color:var(--text-1); text-align:left; cursor:pointer; }
.ct-scope-menu [role=menuitemradio]:hover, .ct-scope-menu [role=menuitemradio][aria-checked=true] { background:var(--g-fill-2, var(--v2-fill)); }
.ct-radio { width:16px; height:16px; margin-top:2px; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--g-line-2, var(--v2-edge-strong)); }
[aria-checked=true] > .ct-radio { box-shadow:inset 0 0 0 5px var(--g-pill, var(--text-1)); }
.ct-scope-o { display:flex; flex-direction:column; gap:3px; }
.ct-scope-o strong { font:500 13.5px/1.25 var(--font-ui); }
.ct-scope-o small { color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.45; }
.ct-scope-link { align-self:flex-start; margin:4px 10px 6px; padding:0; border:0; background:none; color:var(--g-text-2, var(--text-2)); font:400 12.5px/1.3 var(--font-ui); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rl-view .ct-agent-form { margin-top:8px; }
/* The web search card */
.ct-web { display:flex; flex-direction:column; gap:10px; padding:12px; border-radius:14px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-web-head { display:flex; align-items:center; gap:8px; color:var(--text-1); font:500 13px/1.3 var(--font-ui); }
.ct-web-head > span:first-of-type { flex:1; min-width:0; }
.ct-web-n { color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); }
.ct-web-toggle { width:100%; padding:0; border:0; background:none; text-align:left; cursor:pointer; }
.ct-web-toggle[aria-expanded=true] .rl-ic:last-child { transform:rotate(180deg); }
.ct-web-bar { height:3px; overflow:hidden; border-radius:2px; background:var(--g-fill-3, var(--v2-fill-strong)); }
.ct-web-bar i { display:block; height:100%; border-radius:2px; background:var(--g-pill, var(--text-1)); transition:width .4s ease; }
.ct-web-chips { display:flex; flex-wrap:wrap; gap:5px; }
.ct-sc { height:24px; display:inline-flex; align-items:center; gap:6px; padding:0 8px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--text-1); font-size:11.5px; }
.ct-sc b { font:600 10.5px/1 var(--font-mono); }
.ct-sc.is-zero { opacity:.45; }
.ct-sc.is-wait { opacity:.3; }
.ct-sc.is-now { box-shadow:inset 0 0 0 1px var(--g-pill, var(--text-1)); }
.ct-sc.is-now::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--g-pill, var(--text-1)); animation:ct-dot 1s infinite ease-in-out; }
.ct-web-foot { display:flex; align-items:center; gap:8px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.ct-web-foot > span { flex:1; }
.ct-web-note { margin:0; color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.5; }
.ct-web-note.is-bad { color:#f0a39b; }
.ct-link { padding:0; border:0; background:none; color:var(--text-1); font:500 12.5px/1.3 var(--font-ui); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rl-view .ct-agent-msg > p.ct-note { color:var(--g-text-3, var(--text-3)); font-size:12.5px; }
/* Earlier catalogues the Agent found */
.ct-cats { display:flex; flex-direction:column; gap:6px; }
.ct-cat { display:grid; grid-template-columns:44px minmax(0, 1fr) auto; align-items:center; gap:10px; padding:8px; border-radius:12px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-cat-pics { display:grid; grid-template-columns:1fr 1fr; gap:2px; width:44px; height:44px; overflow:hidden; border-radius:8px; }
.ct-cat-pics img, .ct-cat-pics i { width:100%; height:100%; display:block; object-fit:cover; background:#1b1e20; }
.ct-cat-main { min-width:0; display:flex; flex-direction:column; gap:2px; }
.ct-cat-main strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 13px/1.3 var(--font-ui); }
.ct-cat-main small { color:var(--g-text-3, var(--text-3)); font-size:12px; }
/* A change waiting for a button */
.ct-change { display:flex; flex-direction:column; gap:8px; padding:12px; border-radius:14px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-change-head { display:flex; align-items:center; gap:8px; font:500 13px/1.3 var(--font-ui); }
.ct-change-head span:first-child { flex:1; }
.ct-change-n { color:var(--g-text-3, var(--text-3)); font:500 10.5px/1 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.ct-change ul { display:flex; flex-direction:column; margin:0; padding:0; list-style:none; }
.ct-change li { display:flex; align-items:center; gap:8px; padding:6px 0; border-top:1px solid var(--g-line, var(--v2-edge)); font-size:12.5px; line-height:1.35; }
.ct-change li:first-child { border-top:0; }
.ct-sign { flex:none; width:20px; height:20px; display:grid; place-items:center; border-radius:6px; background:var(--g-fill-2, var(--v2-fill)); }
.ct-sign.is-add { background:var(--g-pill, var(--text-1)); color:var(--g-pill-ink, var(--surface-1)); }
.ct-change-t { flex:1; min-width:0; }
.ct-change-t small { color:var(--g-text-2, var(--text-2)); font-size:12px; }
.ct-change-t.is-out { color:var(--g-text-3, var(--text-3)); text-decoration:line-through; }
.ct-change-note { margin:0; color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.45; }
.ct-srcchip { flex:none; display:inline-flex; align-items:center; height:18px; padding:0 6px; border-radius:5px; background:var(--g-fill-2, var(--v2-fill)); color:var(--g-text-2, var(--text-2)); font:500 10.5px/1 var(--font-ui); white-space:nowrap; }
.ct-srcs { display:flex; flex-wrap:wrap; align-items:center; gap:3px; margin-top:4px; }
/* An answer as a small table, each row with its sources */
.ct-table-wrap { overflow-x:auto; }
.ct-table-t { margin:0 0 6px; font:500 13px/1.3 var(--font-ui); }
.ct-table { width:100%; border-collapse:collapse; font-size:12.5px; line-height:1.35; }
.ct-table th { padding:0 8px 6px 0; color:var(--g-text-3, var(--text-3)); font:500 10px/1 var(--font-mono); letter-spacing:.06em; text-align:left; text-transform:uppercase; }
.ct-table td { padding:7px 8px 7px 0; border-top:1px solid var(--g-line, var(--v2-edge)); vertical-align:top; }
.ct-table tr[data-ct-row] { cursor:pointer; }
.ct-table tr[data-ct-row]:hover td, .ct-table tr[data-ct-row]:focus-visible td { background:var(--g-fill, var(--v2-fill)); }
.ct-ns { color:var(--g-text-3, var(--text-3)); font-style:italic; }
/* The Add dialog (Directors) and the Case sources panel: glass over the page */
.ct-addweb, .ct-sources { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:24px; background:rgba(5,5,6,.55); }
.ct-aw-panel, .ct-src-panel { width:min(880px, 100%); max-height:calc(100vh - 48px); display:flex; flex-direction:column; overflow:hidden; border-radius:22px; background:var(--g-frost, var(--surface-2)); box-shadow:0 50px 120px rgba(0,0,0,.6), inset 0 0 0 1px var(--g-line, var(--v2-edge)); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); color:var(--text-1); }
.ct-aw-panel header, .ct-src-panel header { display:flex; align-items:flex-start; gap:12px; padding:22px 22px 0; }
.ct-aw-panel h2, .ct-src-panel h2 { flex:1; margin:0; font:600 20px/1.25 var(--font-ui); letter-spacing:-.01em; }
.ct-src-panel header > div { flex:1; }
.ct-src-panel header p { margin:6px 0 0; color:var(--g-text-2, var(--text-2)); font-size:13px; line-height:1.5; }
.ct-aw-sub { margin:8px 22px 0; color:var(--g-text-2, var(--text-2)); font-size:13.5px; line-height:1.5; }
.ct-aw-rows { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:2px; margin:14px 0 0; padding:0 12px; list-style:none; }
.ct-aw-row { display:grid; grid-template-columns:24px 96px minmax(0, 1fr) 160px; align-items:center; gap:14px; padding:10px 12px; border-radius:14px; }
.ct-aw-row:hover { background:var(--g-fill, var(--v2-fill)); }
.ct-aw-row img { width:96px; height:64px; display:block; object-fit:cover; border-radius:10px; background:#16181a; }
.ct-aw-check { position:relative; width:20px; height:20px; }
.ct-aw-check input { position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.ct-aw-check span { width:20px; height:20px; display:grid; place-items:center; border-radius:6px; box-shadow:inset 0 0 0 1.5px var(--g-line-2, var(--v2-edge-strong)); color:transparent; pointer-events:none; }
.ct-aw-check input:checked + span { background:var(--g-pill, var(--text-1)); box-shadow:none; color:var(--g-pill-ink, var(--surface-1)); }
.ct-aw-check input:focus-visible + span { outline:2px solid var(--gold-ring); outline-offset:2px; }
.ct-aw-t { min-width:0; display:flex; flex-direction:column; gap:3px; }
.ct-aw-t strong { font:500 14.5px/1.3 var(--font-ui); }
.ct-aw-t > span { color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.ct-aw-t .ct-srcs > span:first-child { color:var(--g-text-3, var(--text-3)); font-size:12px; margin-right:2px; }
.ct-aw-like { color:#e7c27d !important; line-height:1.5; }
.ct-aw-like label { margin-right:8px; white-space:nowrap; }
.ct-aw-type select { width:100%; height:32px; padding:0 8px; border:0; border-radius:9px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); color:var(--text-1); font:400 12.5px/1 var(--font-ui); }
.ct-aw-steps { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin:12px 22px 0; padding:14px 16px; border-radius:14px; box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-aw-steps div { display:flex; flex-direction:column; gap:6px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.45; }
.ct-aw-steps b { color:var(--g-text-3, var(--text-3)); font:600 10.5px/1 var(--font-mono); letter-spacing:.06em; }
.ct-aw-panel footer { display:flex; align-items:center; gap:8px; padding:16px 22px 20px; }
.ct-aw-foot { flex:1; color:var(--g-text-3, var(--text-3)); font-size:12.5px; }
.ct-aw-panel footer .ct-chip { min-height:40px; padding:0 16px; font-size:13.5px; }
.ct-aw-panel footer .ct-chip:disabled { opacity:.45; cursor:default; }
.ct-src-body { flex:1; min-height:0; display:flex; flex-direction:column; }
.ct-src-scroll { flex:1; min-height:0; overflow-y:auto; padding:12px 12px 0; }
.ct-src-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.ct-src-table th { position:sticky; top:0; padding:8px 10px 7px; background:var(--surface-2, #16181a); color:var(--g-text-3, var(--text-3)); font:500 10px/1 var(--font-mono); letter-spacing:.06em; text-align:left; text-transform:uppercase; }
.ct-src-table td { height:32px; padding:0 10px; border-top:1px solid var(--g-line, var(--v2-edge)); color:var(--g-text-2, var(--text-2)); }
.ct-src-table td.n { color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); }
.ct-src-table td.nm { color:var(--text-1); font-weight:500; }
.ct-src-table td.nm span { margin-left:6px; color:var(--g-text-3, var(--text-3)); font-weight:400; font-size:12px; }
.ct-src-table tr.is-off td { opacity:.5; }
.ct-dot { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.ct-dot::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--text-1); }
.ct-dot.is-part { color:#e7c27d; }
.ct-dot.is-part::before { background:transparent; box-shadow:inset 0 0 0 1.5px #e7c27d; }
.ct-switch { position:relative; width:32px; height:18px; padding:0; border:0; border-radius:999px; background:var(--g-fill-3, var(--v2-fill-strong)); cursor:pointer; }
.ct-switch::after { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:var(--text-1); transition:transform .15s ease; }
.ct-switch[aria-checked=true] { background:var(--g-pill, var(--text-1)); }
.ct-switch[aria-checked=true]::after { transform:translateX(14px); background:var(--g-pill-ink, var(--surface-1)); }
.ct-src-foot { display:flex; align-items:center; gap:10px; margin-top:auto; padding:12px 22px 16px; border-top:1px solid var(--g-line, var(--v2-edge)); color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.ct-src-foot > span { flex:1; }
html[data-theme="light"] .ct-addweb, html[data-theme="light"] .ct-sources { background:rgba(240,241,242,.6); }

/* ===== The catalogue's files: one Download in the Agent and History, then the Download card ===== */
.ct-dl { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:8px 8px 8px 8px; border-radius:16px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-dl-pics { display:grid; grid-template-columns:1fr 1fr; gap:2px; width:48px; height:48px; overflow:hidden; border-radius:10px; }
.ct-dl-pics img, .ct-dl-pics i { width:100%; height:100%; display:block; object-fit:cover; background:#1b1e20; }
.ct-dl-t { min-width:0; display:flex; flex-direction:column; gap:3px; }
.ct-dl-t strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 13.5px/1.25 var(--font-ui); }
.ct-dl-t small { color:var(--g-text-3, var(--text-3)); font-size:12px; }
.rl-view .ct-dl-btn { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; }
.rl-view .ct-h-btn.is-dl { padding:0 12px; background:var(--g-pill); color:var(--g-pill-ink); box-shadow:none; font-weight:600; }
.ct-dlcard { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:24px; background:rgba(5,5,6,.6); }
html[data-theme="light"] .ct-dlcard { background:rgba(240,241,242,.6); }
.dc-panel { width:min(1080px, 100%); max-height:calc(100vh - 48px); overflow-y:auto; display:flex; flex-direction:column; border-radius:24px; background:var(--g-frost, var(--surface-2)); box-shadow:0 50px 120px rgba(0,0,0,.6), inset 0 0 0 1px var(--g-line, var(--v2-edge)); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); color:var(--text-1); }
.dc-panel header { display:flex; align-items:flex-start; gap:14px; padding:24px 24px 0; }
.dc-mosaic { flex:none; display:grid; grid-template-columns:1fr 1fr; gap:2px; width:56px; height:56px; overflow:hidden; border-radius:12px; }
.dc-mosaic img { width:100%; height:100%; display:block; object-fit:cover; }
.dc-ttl { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.dc-ttl h2 { margin:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:600 21px/1.2 var(--font-ui); letter-spacing:-.01em; }
.dc-ttl small { color:var(--g-text-2, var(--text-2)); font-size:13px; }
/* 21 Oct: the catalogue's name is the title on its files; a hint over it says it can be changed, a click edits it. */
.dc-hint { display:inline-flex; align-items:center; gap:5px; color:var(--g-text-3, var(--text-3)); font:500 11.5px/1 var(--font-ui); }
.dc-name { max-width:100%; display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; cursor:text; text-align:left; }
.dc-name > :not(svg) { overflow:hidden; text-overflow:ellipsis; }
.dc-name .rl-ic { flex:none; opacity:.45; }
.dc-name:hover .rl-ic, .dc-name:focus-visible .rl-ic { opacity:1; }
.dc-name:hover { text-decoration:underline dotted; text-decoration-thickness:1px; text-underline-offset:5px; }
.dc-name-in { width:100%; height:34px; box-sizing:border-box; margin:-3px 0 -3px -9px; padding:0 9px; border:0; border-radius:9px; background:var(--g-fill, var(--surface-3, rgba(255,255,255,.06))); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge)); color:var(--text-1); font:600 19px/1 var(--font-ui); letter-spacing:-.01em; }
.dc-name-in:focus { outline:none; box-shadow:inset 0 0 0 1.5px var(--text-1); }
.dc-fmts { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; padding:18px 24px 0; }
/* 21 Oct: under the title, Case study (InDesign) and Share (PDF, web page); each file shows only the buttons it can use. */
.ct-dlcard [hidden] { display:none !important; }
.dc-tabs { display:flex; gap:6px; padding:18px 24px 0; }
.dc-tabs button { height:34px; display:inline-flex; align-items:center; padding:0 16px; border:0; border-radius:999px; background:transparent; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--g-text-2, var(--text-2)); font:500 13.5px/1 var(--font-ui); cursor:pointer; }
.dc-tabs button:hover { color:var(--text-1); background:var(--g-fill, var(--v2-fill)); }
.dc-tabs button[aria-selected=true] { background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); box-shadow:none; font-weight:600; }
.dc-fmts.is-one { grid-template-columns:minmax(0, 1fr); }
.dc-fmts.is-one .dc-fmt { max-width:520px; }
.dc-fmt { position:relative; display:flex; flex-direction:column; gap:10px; padding:12px 12px 16px; border:0; border-radius:18px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--text-1); text-align:left; cursor:pointer; }
.dc-fmt:hover { background:var(--g-fill-2, var(--v2-fill-strong)); }
.dc-fmt[aria-checked=true] { background:var(--g-fill-2, var(--v2-fill-strong)); box-shadow:inset 0 0 0 1.5px var(--g-pill, var(--text-1)); }
.dc-mark { position:absolute; z-index:2; right:14px; top:14px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:rgba(10,10,11,.55); box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.4); color:transparent; }
.dc-fmt[aria-checked=true] .dc-mark { background:var(--g-pill, var(--text-1)); box-shadow:none; color:var(--g-pill-ink, var(--surface-1)); }
.dc-pv { position:relative; display:block; height:180px; overflow:hidden; border-radius:12px; background:#232427; }
.dc-nm { display:flex; align-items:baseline; gap:8px; padding:0 4px; }
.dc-nm strong { font:600 16px/1.2 var(--font-ui); }
.dc-nm span { color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); }
.dc-ab { padding:0 4px; color:var(--g-text-2, var(--text-2)); font-size:13px; line-height:1.5; }
.dc-meta { padding:0 4px; color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); letter-spacing:.02em; text-transform:uppercase; }
/* the three small previews, drawn from the catalogue's own pictures */
.dc-a4 { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:14px; }
.dc-page { box-sizing:border-box; width:96px; height:136px; display:grid; grid-template-rows:auto minmax(0, 1fr) minmax(0, 1fr); gap:5px; padding:8px; overflow:hidden; border-radius:3px; background:#f7f7f5; box-shadow:0 10px 24px rgba(0,0,0,.45); }
.dc-page img { width:100%; height:100%; min-height:0; display:block; object-fit:cover; border-radius:2px; }
.dc-hd { display:block; height:5px; width:60%; border-radius:1px; background:#1b1e20; }
.dc-br { position:absolute; inset:14px 16px 0; overflow:hidden; border-radius:10px 10px 0 0; background:#0e0f10; box-shadow:0 12px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }
.dc-bar { display:flex; align-items:center; gap:4px; height:18px; padding:0 8px; background:#1c1d20; }
.dc-bar i { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.25); }
.dc-bar b { flex:1; height:8px; margin-left:8px; border-radius:4px; background:rgba(255,255,255,.08); }
.dc-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; padding:9px; }
.dc-grid img { width:100%; height:52px; display:block; object-fit:cover; border-radius:4px; }
/* InDesign: SOG's presentation page, 528 × 297 mm (5 Oct): columns over a dark blue panel, or a mosaic */
.dc-deck { position:absolute; left:50%; top:50%; box-sizing:border-box; height:min(145px, calc(100% - 24px)); max-width:calc(100% - 24px); aspect-ratio:528 / 297; transform:translate(-50%, -50%);
  display:grid; grid-template-rows:minmax(0, 1fr) 8px; gap:3px; padding:6px 6px 3px; overflow:hidden; background:#fbfbfa; box-shadow:0 12px 30px rgba(0,0,0,.45); }
.dc-deck.is-mosaic { grid-template-rows:9px minmax(0, 1fr) 8px; padding:5px 0 3px; }
.dc-cols { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 1fr); gap:3px; min-height:0; }
.dc-col { position:relative; display:grid; grid-template-rows:minmax(0, 1fr) 18%; min-height:0; overflow:hidden; }
.dc-col img { width:100%; height:100%; min-height:0; display:block; object-fit:cover; }
.dc-col i { display:block; background:#174050; }
.dc-col b { position:absolute; left:0; right:0; bottom:22%; color:#fff; font:700 13px/1 var(--font-ui); text-align:center; text-shadow:0 1px 4px rgba(0,0,0,.5); }
.dc-dh { display:flex; flex-direction:column; justify-content:center; gap:2px; padding:0 6px; }
.dc-dh i { display:block; width:34%; height:3px; border-radius:1px; background:#244b59; }
.dc-dh i + i { width:20%; height:2px; opacity:.7; }
.dc-mo { display:grid; grid-template-columns:24% 1fr 1fr 24%; grid-template-rows:1fr 1fr; gap:2px; min-height:0; }
.dc-mt { position:relative; min-height:0; overflow:hidden; }
.dc-mt img { width:100%; height:100%; display:block; object-fit:cover; }
.dc-mt i { position:absolute; left:0; right:0; bottom:0; height:14%; background:rgba(255,255,255,.75); }
.dc-mo .dc-mt:first-child, .dc-mo .dc-mt:last-child { grid-row:1 / 3; }
.dc-mo .dc-mt:last-child { grid-column:4; }
.dc-mo .dc-mt:nth-child(2) { grid-column:2 / 4; }
.dc-mo:has(.dc-mt:nth-child(6)) .dc-mt:nth-child(2) { grid-column:2; }
.dc-df { display:flex; align-items:center; justify-content:space-between; padding:0 2px; }
.dc-deck.is-mosaic .dc-df { padding:0 8px; }
.dc-df i { display:block; width:22%; height:2px; border-radius:1px; background:#244b59; opacity:.6; }
.dc-df b { color:#244b59; font:700 5px/1 var(--font-ui); letter-spacing:.04em; }
.dc-layout { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; padding:16px 24px 0; color:var(--g-text-2, var(--text-2)); font-size:13px; }
.dc-layout small { color:var(--g-text-3, var(--text-3)); font-size:12px; }
/* Case pages: Regular · Free (14 Oct, Jianying: "这里的点击选择反馈不明显"): one track, the chosen half filled like the
   primary button and ticked, the other quiet; hover shows it can be chosen */
.rl-view .dc-layout .ct-seg, .dc-layout .ct-seg { display:inline-flex; gap:2px; padding:2px; border-radius:10px; background:transparent; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
.rl-view .dc-layout .ct-seg-b, .dc-layout .ct-seg-b { display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:0 12px; border:0; border-radius:8px;
  background:transparent; box-shadow:none; color:var(--g-text-2, var(--text-2)); font:500 13px/1 var(--font-ui); cursor:pointer; transition:background .12s, color .12s; }
.rl-view .dc-layout .ct-seg-b:not([aria-checked="true"]):not(:disabled):hover, .dc-layout .ct-seg-b:not([aria-checked="true"]):not(:disabled):hover { background:var(--g-fill-2, var(--v2-fill)); color:var(--text-1); }
.rl-view .dc-layout .ct-seg-b[aria-checked="true"], .dc-layout .ct-seg-b[aria-checked="true"] { background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); font-weight:600; }
.dc-layout .ct-seg-b[aria-checked="true"]::before { content:""; width:9px; height:5px; margin-top:-3px; border:solid currentColor; border-width:0 0 2px 2px; transform:rotate(-45deg); }
.dc-layout.is-off .ct-seg { opacity:.45; }
.dc-layout .ct-seg-b:disabled { cursor:default; }
.dc-acts { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:22px 24px 0; }
.rl-view .dc-big { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 16px; font-size:13.5px; }
.rl-view .dc-big:disabled { opacity:.45; cursor:default; }
.dc-sep { width:1px; height:28px; margin:0 6px; background:var(--g-line, var(--v2-edge)); }
.dc-gap { flex:1; }
.dc-state { margin:12px 24px 0; color:var(--g-text-2, var(--text-2)); font-size:13px; }
.dc-state:empty { display:none; }
.ct-dlcard .dc-panel { padding-bottom:22px; }
.dc-state.is-bad { color:#f0a39b; }
.dc-fine { margin:14px 24px 22px; padding:12px 14px; border-radius:12px; box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.55; }

@media (max-width: 760px) {
  .rl-page { padding:20px 16px 76px; gap:16px; }
  .rl-head h1 { font-size:30px; }
  .ct-steps { font-size:13.5px; }
  .ct-steps li { align-items:flex-start; }
  .ct-bar { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .ct-combo input, .ct-combo[data-ct="place"] input, .ct-trigger { width:100%; height:40px; }
  .ct-caret, .ct-clear { top:6px; }
  .ct-fav { height:40px; justify-content:center; }
  .ct-search { grid-column:1 / -1; margin-left:0; }
  .ct-search input { height:40px; }
  .ct-list, .ct-search .ct-list { left:0; right:auto; min-width:100%; max-width:calc(100vw - 32px); }
  .ct-menu .ct-list { min-width:min(280px, calc(100vw - 32px)); }
  .rl-grid { grid-template-columns:minmax(0, 1fr); }
  .ct-dock { left:12px; right:12px; bottom:12px; }
  .ct-tray, .ct-dock.agent-open .ct-tray { right:0; bottom:60px; height:64px; gap:10px; padding:0 8px 0 12px; }
  .ct-tray-head { min-width:0; }
  .ct-tray-head strong { display:none; }
  .ct-tray-acts .rl-link { display:none; }
  .ct-tray-list li { width:52px; height:40px; }
  .ct-launch { min-width:0; height:46px; }
  .ct-restart { bottom:58px; }
  .ct-dock.has-tray .ct-restart { bottom:132px; }
  .ct-agent { left:0; width:auto; height:min(560px, calc(100vh - 100px)); }
  .ct-dock.agent-open .ct-tray { display:none; }
  .rl-view.ct-has-tray .rl-page { padding-bottom:150px; }
  .dc-fmts { grid-template-columns:minmax(0, 1fr); }
  .dc-pv { height:120px; }
  .dc-sep, .dc-gap { display:none; }
  .ct-aw-row { grid-template-columns:24px 72px minmax(0, 1fr); }
  .ct-aw-row img { width:72px; height:54px; }
  .ct-aw-type { grid-column:3; }
  .ct-aw-steps { grid-template-columns:1fr 1fr; }
  .ct-aw-panel footer { flex-wrap:wrap; }
  .ct-src-table th:nth-child(3), .ct-src-table td:nth-child(3), .ct-src-table th:nth-child(4), .ct-src-table td:nth-child(4) { display:none; }
}
@media (prefers-reduced-motion: reduce) { .rl-img img, .ct-caret .rl-ic, .ct-trigger .rl-ic, .ct-star, .ct-pick { transition:none; } .ct-typing .ct-dots span { animation:none; opacity:.6; } .ct-typing-t, .ct-web.is-running .ct-web-doing { animation:none; background:none; color:var(--text-1); } .ct-web-bar.is-busy i { animation:none; } .rl-view.ct-hint .ct-pick { animation:none; } .rl-card:hover .rl-img img { transform:none; } }

/* Projects outside the Library (2 Oct): each with its firm's page; temporary boards and the three choices. */
.ct-out { padding:6px; border-radius:14px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-out-rows { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; }
.ct-out-row { display:grid; grid-template-columns:auto 40px minmax(0, 1fr) auto auto; align-items:center; gap:9px; padding:7px 6px; border-radius:10px; }
.ct-out-row + .ct-out-row { box-shadow:inset 0 1px 0 var(--g-line, var(--v2-edge)); }
.ct-out-row > img { grid-column:2; width:40px; height:40px; border-radius:7px; object-fit:cover; background:#1b1e20; }
.ct-out-row:not(:has(.ct-out-chk, .ct-out-n)) > img { grid-column:1 / 3; justify-self:start; }
/* 5 Oct: numbered rows (the chat answer names them), a line about each project, the firm's page and the case site */
.ct-out-row { align-items:start; }
.ct-out-row > img, .ct-out-chip, .ct-out-more { margin-top:2px; }
.ct-out-n { grid-column:1; min-width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; margin-top:2px; padding:0 4px; box-sizing:border-box;
  border-radius:999px; background:var(--v2-fill); color:var(--text-1); font:600 11px/1 var(--font-mono, ui-monospace, monospace); }
.rl-view .ct-msg .ct-out-about, .ct-msg .ct-out-about { margin:2px 0 1px; color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.45; white-space:normal;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.ct-out-links { display:flex; flex-wrap:wrap; align-items:center; gap:2px 10px; min-width:0; }
.ct-out-t > .ct-out-links, .ct-out-t > .ct-out-nolink { overflow:visible; white-space:normal; text-overflow:clip; }
.ct-out-row.is-done { opacity:.6; }
.ct-out-t { grid-column:3; min-width:0; display:flex; flex-direction:column; gap:1px; }
.ct-out-t strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 13px/1.3 var(--font-ui); }
.ct-out-t > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--g-text-2, var(--text-2)); font-size:11.5px; line-height:1.35; }
.ct-out-link, .ct-out-nolink a { display:inline-flex; align-items:center; gap:3px; max-width:100%; color:var(--text-1); font-size:11.5px; line-height:1.4; text-decoration:underline; text-underline-offset:2px; }
.ct-out-link span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ct-out-nolink { color:var(--g-text-2, var(--text-2)); font-size:11.5px; line-height:1.4; }
.ct-out-chk { grid-column:1; width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:1.4px solid var(--v2-edge-strong); border-radius:5px; background:transparent; color:var(--v2-on-action); cursor:pointer; }
.ct-out-chk[aria-checked=true] { border-color:var(--v2-action); background:var(--v2-action); }
.ct-out-chip { grid-column:4; height:22px; display:inline-flex; align-items:center; padding:0 8px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--text-1); font-size:11px; white-space:nowrap; }
.ct-out-chip.is-done { color:var(--g-text-2, var(--text-2)); }
.ct-out-more { grid-column:5; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:transparent; color:var(--text-2); cursor:pointer; }
.ct-out-more:hover, .ct-out-more[aria-expanded=true] { background:var(--v2-fill); color:var(--text-1); }
.ct-out-acts { grid-column:1 / -1; padding:2px 0 2px 0; }
.ct-out-q { margin:0; }
.ct-out-note { margin:0; color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.5; }
.ct-temp { display:flex; flex-direction:column; gap:10px; }
.ct-temp p { margin:0; font-size:13.5px; line-height:1.5; }
.ct-temp .ct-out-note { font-size:12px; }
.ct-temp-card { display:flex; flex-direction:column; gap:8px; padding:12px; border-radius:14px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-temp-card.is-done { opacity:.7; }
.ct-temp-head strong, .ct-temp-t strong { font:600 13.5px/1.3 var(--font-ui); }
.ct-temp-mosaic { display:grid; grid-template-columns:2fr 1fr; grid-template-rows:64px 64px; gap:4px; overflow:hidden; border-radius:10px; }
.ct-temp-mosaic > :first-child { grid-row:span 2; }
.ct-temp-mosaic img, .ct-temp-mosaic i { width:100%; height:100%; display:block; object-fit:cover; background:#1b1e20; }
.ct-temp-t { display:flex; align-items:center; gap:8px; min-width:0; }
.ct-temp-t strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ct-temp-tag { flex:none; padding:1px 6px; border:1px dashed color-mix(in srgb, var(--text-1) 45%, transparent); border-radius:4px; font:600 9.5px/1.4 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
.ct-temp-card p.ct-temp-meta { color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.45; }
.ct-temp-steps { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.ct-temp-steps li { position:relative; padding-left:22px; color:var(--g-text-3, var(--text-3)); font-size:12.5px; line-height:1.4; }
.ct-temp-steps li::before { content:""; position:absolute; left:0; top:2px; width:14px; height:14px; box-sizing:border-box; border-radius:50%; border:1.4px solid var(--v2-edge-strong); }
.ct-temp-steps li.is-done, .ct-temp-steps li.is-now { color:var(--text-1); }
.ct-temp-steps li.is-done::before { border-color:var(--text-1); background:var(--text-1); box-shadow:inset 0 0 0 3px var(--surface-2, #16181a); }
.ct-temp-steps li.is-now::before { border-color:var(--text-1); border-right-color:transparent; animation:ct-spin 0.9s linear infinite; }
@keyframes ct-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ct-temp-steps li.is-now::before { animation:none; } }
.ct-temp-done { font-weight:500; }
.ct-keep { display:flex; flex-direction:column; gap:7px; }
.ct-keep-opt { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:9px 12px; border:1px solid var(--v2-edge-strong); border-radius:12px; background:transparent; color:var(--text-1); text-align:left; cursor:pointer; font-family:var(--font-ui); }
.ct-keep-opt:hover { background:var(--v2-fill); }
.ct-keep-opt b { display:inline-flex; align-items:center; gap:5px; font:500 13px/1.3 var(--font-ui); }
.ct-keep-opt span { color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.35; }
.ct-keep-opt.is-fav { border-color:color-mix(in srgb, var(--text-1) 60%, transparent); }

/* ---------- 5 Oct: Built / Unbuilt, locked stars, the Favorites console, the board-making window ---------- */
.ct-built .ct-trigger { min-width:148px; }
.ct-favcon { display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 11px; border:1px solid var(--v2-edge-strong); border-radius:10px; background:transparent; color:var(--text-2); font:500 12.5px/1 var(--font-ui); cursor:pointer; }
.ct-favcon:hover { background:var(--v2-fill); color:var(--text-1); }
.ct-favcon[hidden] { display:none !important; }
.rl-view .ct-favcon { border-color:var(--g-line); border-radius:12px; background:var(--g-fill); }
.rl-view .ct-favcon:hover { background:var(--g-fill-2); }
button.ct-star.is-locked { cursor:default; }
button.ct-star.is-locked:hover { background:rgba(255,255,255,.2); }

.ct-favmk { position:fixed; inset:0; z-index:62; display:grid; place-items:center; padding:24px; background:rgba(5,5,6,.62); }
html[data-theme="light"] .ct-favmk { background:rgba(240,241,242,.62); }
.fm-panel { width:min(1180px, 100%); height:min(760px, calc(100vh - 48px)); display:flex; flex-direction:column; overflow:hidden; border-radius:24px; background:var(--g-frost, var(--surface-2)); box-shadow:0 50px 120px rgba(0,0,0,.6), inset 0 0 0 1px var(--g-line, var(--v2-edge)); -webkit-backdrop-filter:var(--g-blur); backdrop-filter:var(--g-blur); color:var(--text-1); }
.fm-head { display:flex; align-items:flex-start; gap:14px; padding:22px 24px 16px; border-bottom:1px solid var(--g-line, var(--v2-edge)); }
.fm-seal { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--g-fill-2, var(--v2-fill)); color:var(--text-1); }
.fm-seal .rl-ic { fill:currentColor; stroke:none; }
.fm-ttl { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.fm-ttl h2 { margin:0; font:600 20px/1.25 var(--font-ui); letter-spacing:-.01em; }
.fm-ttl h2 span { color:var(--g-text-2, var(--text-2)); font-weight:500; }
.fm-sub { margin:0; max-width:820px; color:var(--g-text-2, var(--text-2)); font-size:13.5px; line-height:1.5; }
.fm-body { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1.55fr) minmax(300px, 1fr); }
.fm-pics, .fm-read { min-height:0; display:flex; flex-direction:column; padding:16px 20px; }
.fm-read { border-left:1px solid var(--g-line, var(--v2-edge)); }
.fm-sec { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 0 10px; font-size:13px; }
.fm-sec2 { margin-top:16px; }
.fm-n { color:var(--g-text-2, var(--text-2)); font:500 11.5px/1 var(--font-mono); }
.fm-grid { flex:1; min-height:0; overflow-y:auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows:100px; gap:6px; align-content:start; }
.fm-pic { position:relative; margin:0; overflow:hidden; border-radius:8px; background:var(--g-fill, var(--v2-fill)); opacity:0; transform:scale(.97); transition:opacity .45s ease, transform .45s ease; }
.fm-pic.is-in { opacity:.38; transform:none; }
.fm-pic.is-in.is-ok { opacity:1; }
.fm-pic img { width:100%; height:100%; display:block; object-fit:cover; }
.fm-pic span { position:absolute; left:6px; bottom:6px; padding:2px 6px; border-radius:6px; background:rgba(10,11,12,.7); color:#fff; font:600 9.5px/1.3 var(--font-mono); letter-spacing:.04em; text-transform:uppercase; }
.fm-empty { grid-column:1 / -1; margin:0; padding:40px 0; color:var(--g-text-2, var(--text-2)); font-size:13px; text-align:center; }
.fm-steps, .fm-log { margin:0; padding:0; list-style:none; }
.fm-steps li, .fm-log li { display:flex; align-items:flex-start; gap:10px; padding:5px 0; color:var(--g-text-2, var(--text-2)); font-size:13px; line-height:1.35; }
.fm-steps li.is-done { color:var(--text-1); }
.fm-steps li.is-now { color:var(--text-1); font-weight:600; }
.fm-log { flex:1; min-height:0; overflow-y:auto; }
.fm-log li > span:last-child { min-width:0; display:flex; flex-direction:column; gap:1px; }
.fm-log li b { color:var(--text-1); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fm-log li small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; }
.fm-log li.is-search { font-size:12.5px; }
.fm-mark { flex:none; display:grid; place-items:center; width:18px; height:18px; margin-top:1px; border-radius:50%; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
li.is-done .fm-mark { background:var(--g-fill-2, var(--v2-fill)); box-shadow:none; color:var(--text-1); }
.fm-spin { width:10px; height:10px; border-radius:50%; border:1.6px solid currentColor; border-right-color:transparent; animation:fm-spin .8s linear infinite; }
@keyframes fm-spin { to { transform:rotate(360deg); } }
.fm-foot { display:flex; align-items:center; gap:8px; padding:14px 20px; border-top:1px solid var(--g-line, var(--v2-edge)); }
.fm-note { flex:1; margin:0; color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.ct-favmk .dc-big { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 16px; font-size:13.5px; }
.ct-favmk .dc-big:disabled { opacity:.45; cursor:not-allowed; }
.ct-favmk .ct-chip.is-primary .rl-ic { fill:currentColor; stroke:none; }

.fc-panel { width:min(900px, 100%); }
.fc-tools { display:flex; align-items:center; gap:12px; padding:18px 24px 6px; }
.fc-tools input { flex:1; height:36px; box-sizing:border-box; padding:0 12px; border:0; border-radius:10px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); color:var(--text-1); font:400 13.5px/1 var(--font-ui); }
.fc-n { color:var(--g-text-2, var(--text-2)); font:500 11.5px/1 var(--font-mono); }
.fc-list { margin:6px 0 0; padding:0 24px; list-style:none; }
.fc-row { display:grid; grid-template-columns:64px minmax(0, 1fr) auto; grid-template-areas:"img main state" "img acts acts"; gap:6px 14px; align-items:center; padding:12px 0; border-top:1px solid var(--g-line, var(--v2-edge)); }
.fc-row img { grid-area:img; width:64px; height:64px; border-radius:10px; object-fit:cover; background:var(--g-fill, var(--v2-fill)); }
.fc-main { grid-area:main; min-width:0; display:flex; flex-direction:column; gap:3px; }
.fc-main b { font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fc-main b span { color:var(--g-text-2, var(--text-2)); font-weight:500; }
.fc-main small { color:var(--g-text-2, var(--text-2)); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fc-state { grid-area:state; padding:4px 9px; border-radius:999px; font:600 10.5px/1 var(--font-mono); letter-spacing:.04em; text-transform:uppercase; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--g-text-2, var(--text-2)); }
.fc-state.is-pub { color:#8fd3a6; } .fc-state.is-draft { color:#e8c27a; } .fc-state.is-build { color:#8cc4d4; } .fc-state.is-fail { color:#f0a39b; }
.fc-acts { grid-area:acts; display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.fc-ask { color:var(--text-1); font-size:12.5px; margin-right:4px; }
.ct-chip.is-danger { background:#8e2f27; color:#fff; box-shadow:none; }
.fc-empty { padding:24px 0; color:var(--g-text-2, var(--text-2)); }
@media (max-width: 760px) {
  .fm-panel { height:calc(100vh - 24px); border-radius:18px; }
  .ct-favmk { padding:12px; }
  .fm-body { grid-template-columns:1fr; grid-template-rows:minmax(0, 1.2fr) minmax(0, 1fr); }
  .fm-read { border-left:0; border-top:1px solid var(--g-line, var(--v2-edge)); }
  .fm-foot { flex-wrap:wrap; } .fm-note { flex-basis:100%; }
  .fc-row { grid-template-columns:48px minmax(0, 1fr); grid-template-areas:"img main" "state state" "acts acts"; } .fc-row img { width:48px; height:48px; } .fc-state { justify-self:start; }
}
@media (prefers-reduced-motion: reduce) { .fm-pic { transition:none; } .fm-spin { animation:none; } }

/* 6 Oct: one way to add projects found outside the Library (senior architect review). Each numbered row: how it fits what was
   asked, its links and Preview board, and one choice (Skip · Library · ★ Favorite); one Apply under the list. */
.ct-agent.is-outside .ct-agent-steps { display:none; }
.ct-out-row > .ct-out-chip { grid-column:4; }
.ct-web-n:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; }
.ct-out-row.is-off > img, .ct-out-row.is-off .ct-out-t > strong { opacity:.55; }
.ct-out-row.is-flash { animation:ct-flash 1.6s var(--v2-ease, ease); }
@keyframes ct-flash { 0%, 40% { background:var(--g-fill-3, var(--v2-fill-strong)); } 100% { background:transparent; } }
/* The page follows the conversation: web cards carry their number in the list; an empty Library section is one line. */
/* 13 Oct: only the number on a web card's picture; the same class is the search's "16 / 16" count in the Agent, which floated over the Agent's title. */
.rl-card .ct-web-n { position:absolute; top:10px; left:10px; min-width:28px; height:28px; display:grid; place-items:center; box-sizing:border-box; padding:0 6px; border:0; border-radius:10px; background:rgba(10,11,12,.62); box-shadow:inset 0 0 0 1px rgba(255,255,255,.4); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); color:#fff; font:600 13px/1 var(--font-mono); cursor:pointer; }
.ct-web-pick { position:absolute; top:12px; left:46px; height:24px; display:inline-flex; align-items:center; gap:4px; padding:0 9px; border-radius:999px; background:rgba(10,11,12,.62); color:#fff; font:500 11.5px/1 var(--font-ui); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); }
.ct-sec.is-fold { padding:10px 14px; border-radius:12px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-sec.is-fold .ct-link { font-size:12.5px; }
.ct-sec.is-added .ct-sec-lab { color:var(--text-1); }
.ct-sec.is-added + .rl-grid .rl-card { border-color:var(--g-line-2, var(--v2-edge-strong)); }
/* The board window with several projects: a tab for each, with how far its board has got. */
.fm-tabs { display:flex; gap:6px; overflow-x:auto; padding:10px 24px; border-bottom:1px solid var(--g-line, var(--v2-edge)); scrollbar-width:thin; }
.fm-tab { flex:none; display:inline-flex; align-items:center; border-radius:12px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.fm-tab.is-on { background:var(--g-btn, var(--surface-2)); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
.fm-tab.is-out { opacity:.5; }
.fm-tab > button[role=tab] { display:inline-flex; align-items:center; gap:7px; max-width:280px; padding:7px 4px 7px 12px; border:0; background:none; color:var(--text-1); font:500 12.5px/1.2 var(--font-ui); text-align:left; cursor:pointer; }
.fm-tab > button[role=tab] b { min-width:18px; height:18px; display:inline-grid; place-items:center; border-radius:6px; background:var(--g-fill-3, var(--v2-fill-strong)); font:600 11px/1 var(--font-mono); }
.fm-tab > button[role=tab] span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.fm-tab > button[role=tab] small { display:inline-flex; align-items:center; gap:3px; color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); white-space:nowrap; }
.fm-tab-x { width:26px; height:26px; display:grid; place-items:center; margin-right:4px; padding:0; border:0; border-radius:8px; background:none; color:var(--g-text-2, var(--text-2)); cursor:pointer; }
.fm-tab-x:hover { background:var(--g-fill-3, var(--v2-fill-strong)); color:var(--text-1); }
/* The Favorites console: what colleagues suggested, first. */
.fc-sug { padding:4px 0 6px; border-bottom:1px solid var(--g-line, var(--v2-edge)); }
.fc-sec { display:flex; align-items:baseline; gap:8px; padding:12px 24px 0; }
.fc-sec b { font:600 13px/1.2 var(--font-ui); } .fc-sec span { color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); }
.fc-list.is-sug .fc-row { grid-template-areas:"img main main" "img acts acts"; }
.fc-badge { min-width:16px; height:16px; display:inline-grid; place-items:center; margin-left:5px; padding:0 4px; box-sizing:border-box; border-radius:999px; background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); font:600 10px/1 var(--font-mono); }
@media (prefers-reduced-motion: reduce) { .ct-out-row.is-flash { animation:none; } }

/* 12 Oct: projects from the case sites tick into the catalogue like any card. On a web card its number in the Agent's
   list moves to the picture's top right corner (web cards have no star); in the Agent each row has the same tick, and "Keep for SOG" under it. */
.rl-card.is-web .ct-web-n { left:auto; right:10px; }
.rl-card.is-web .ct-web-pick { left:auto; right:46px; }
.ct-tray-head .ct-tray-web { color:#8cc4d4; }
.ct-tray-list li.is-web::after { content:""; position:absolute; right:4px; bottom:4px; width:10px; height:10px; border-radius:50%; background:#8cc4d4; box-shadow:0 0 0 2px rgba(10,11,12,.75); pointer-events:none; }

/* 12 Oct: the board-making window minimizes to a chip beside the Agent's button; stars given meanwhile join the batch.
   Three boards are made at once (rings: turning = being made, dashed = waiting for a turn, filled = ready). */
.ct-favmk[hidden] { display:none; }
.fm-tabs[hidden] { display:none; }
.fm-min { flex:none; display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 14px; border-radius:999px; font-size:13px; font-weight:600; box-shadow:inset 0 0 0 1.5px #8cc4d4; }
.fm-min-bar { display:inline-block; width:12px; height:2px; border-radius:1px; background:currentColor; }
.fm-ask, .fm-acts { display:inline-flex; align-items:center; gap:8px; }
.fm-ask[hidden], .fm-acts[hidden] { display:none; }
.ct-favmk .fm-discard { color:#f6b3a6; box-shadow:inset 0 0 0 1px rgba(242,140,121,.6); }
.fm-ring { flex:none; display:inline-block; width:12px; height:12px; box-sizing:border-box; border-radius:50%; border:2px solid rgba(140,196,212,.28); }
.fm-ring.is-run { border-top-color:#8cc4d4; border-right-color:#8cc4d4; animation:fm-turn 1.1s linear infinite; }
.fm-ring.is-wait { border:2px dashed rgba(255,255,255,.35); }
.fm-ring.is-done { border:0; background:#9fd9b0; }
.fm-ring.is-stop { border:0; background:#f2c879; }
@keyframes fm-turn { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fm-ring.is-run { animation:none; border-color:#8cc4d4; } }
.fm-tab .fm-ring { margin-right:2px; }
.ct-fmchip { position:absolute; right:0; bottom:60px; display:inline-flex; align-items:center; gap:10px; min-width:236px; max-width:320px; height:60px; box-sizing:border-box; padding:0 14px 0 12px; border:1.5px solid #8cc4d4; border-radius:16px; background:var(--surface-2, #16181a); color:var(--text-1); box-shadow:var(--v2-float-shadow); text-align:left; cursor:pointer; font-family:var(--font-ui); }
.ct-fmchip[hidden] { display:none; }
.ct-fmchip:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; }
.ct-fmchip .rl-ic { flex:none; color:var(--g-text-3, var(--text-3)); }
.fm-chip-seal { flex:none; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#8cc4d4; color:#0b2a33; }
.fm-chip-seal .rl-ic { fill:currentColor; stroke:none; color:#0b2a33; }
.fm-chip-t { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.fm-chip-t b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:600 13px/1.1 var(--font-ui); }
.fm-chip-rings { display:flex; align-items:center; gap:5px; }
.fm-chip-rings small { color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-mono); }
.ct-fmchip.is-ready { border-color:#8cc4d4; background:#8cc4d4; color:#0b2a33; }
.ct-fmchip.is-ready .fm-chip-seal { background:#0b2a33; }
.ct-fmchip.is-ready .fm-chip-seal .rl-ic { color:#8cc4d4; }
.ct-fmchip.is-ready .rl-ic, .ct-fmchip.is-ready .fm-chip-rings small { color:#0b2a33; }
.ct-fmchip.is-ready .fm-ring.is-done { background:#0b2a33; }
.ct-dock.agent-open .ct-fmchip { right:372px; bottom:0; }   /* 13 Oct: down to the Agent's lower edge, off the cards */
.ct-dock.agent-open.has-tray .ct-fmchip { bottom:84px; }   /* above the collection tray, which has the lower edge then */
.ct-dock.has-fmchip .ct-restart { bottom:132px; }
@media (max-width:760px) { .ct-fmchip, .ct-dock.agent-open .ct-fmchip { right:0; bottom:136px; } }
button.ct-star.is-pending:not(.is-on) { top:10px; right:10px; width:28px; height:28px; padding:0; align-items:center; clip-path:none; border-radius:50%; background:rgba(10,11,12,.55); box-shadow:none; color:#8cc4d4; opacity:1; }
.ct-star.is-pending::after { content:""; position:absolute; inset:0; border-radius:50%; border:2.5px solid rgba(140,196,212,.25); border-top-color:#8cc4d4; border-right-color:#8cc4d4; animation:fm-turn 1.1s linear infinite; }
.ct-star.is-pending .rl-ic { width:12px; height:12px; fill:currentColor; stroke:none; }
@media (prefers-reduced-motion: reduce) { .ct-star.is-pending::after { animation:none; } }

/* 12 Oct: requests for Favorites. A colleague's star on a Library card submits it; one already asked for stays shown. */
button.ct-star.is-asked:not(.is-on) { opacity:1; color:#8cc4d4; }
button.ct-star.is-asked:not(.is-on) .rl-ic { fill:currentColor; stroke:none; }
.ct-reqbtn .rl-ic { flex:none; }
.rl-view.rq-on > .rl-page, .rl-view.rb-on > .rq-page { display:none; }
.ct-reqsub .rs-panel { width:min(620px, 100%); padding-bottom:20px; }
.rs-items { margin:16px 24px 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; max-height:220px; overflow-y:auto; }
.rs-items li { display:flex; align-items:center; gap:12px; padding:8px; border-radius:12px; background:var(--g-fill, var(--v2-fill)); }
.rs-items img { width:56px; height:42px; border-radius:7px; object-fit:cover; background:#16181a; }
.rs-items span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.rs-items b { font:500 13.5px/1.25 var(--font-ui); } .rs-items small { color:var(--g-text-2, var(--text-2)); font-size:12px; }
.rs-lab { display:block; margin:16px 24px 0; font:600 13px/1.3 var(--font-ui); } .rs-lab small { color:var(--g-text-3, var(--text-3)); font-weight:400; }
.ct-reqsub textarea { display:block; width:calc(100% - 48px); box-sizing:border-box; margin:8px 24px 0; padding:10px 12px; border:1px solid var(--g-line-2, var(--v2-edge-strong)); border-radius:12px; background:var(--g-fill, var(--v2-fill)); color:var(--text-1); font:400 13.5px/1.45 var(--font-ui); resize:vertical; }
.ct-reqsub .sog-voice-wrap { margin:8px 24px 0; } .ct-reqsub .sog-voice-wrap > textarea { margin:0; }
.rs-tags { display:flex; flex-wrap:wrap; gap:6px; margin:10px 24px 0; }
.rs-tags .ct-chip[aria-pressed=true] { background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); }
.rs-attach { display:flex; gap:10px; align-items:flex-start; margin:14px 24px 0; padding:12px; border-radius:12px; box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); cursor:pointer; }
.rs-attach input { margin:3px 0 0; accent-color:#8cc4d4; }
.rs-attach span { display:flex; flex-direction:column; gap:3px; } .rs-attach b { font:500 13.5px/1.3 var(--font-ui); } .rs-attach small { color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.4; }
.rs-acts { display:flex; justify-content:flex-end; gap:8px; margin:18px 24px 0; }
.ct-reqsub .dc-big { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 16px; font-size:13.5px; }
.fc-req { align-items:center; } .fc-req .ct-chip { margin-left:auto; }
.rq-page { min-height:100%; box-sizing:border-box; color:var(--text-1); font-family:var(--font-ui); }
.rq-wrap { max-width:1240px; margin:0 auto; padding:14px 32px 120px; }
.rq-back { display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px 0 8px; border:0; border-radius:10px; background:transparent; color:var(--text-2); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rq-back:hover { color:var(--text-1); background:var(--g-fill, var(--v2-fill)); }
.rq-head { margin:10px 0 18px; } .rq-head h1 { margin:0; font:600 30px/1.15 var(--font-ui); letter-spacing:-.02em; outline:none; } .rq-head p { margin:6px 0 0; color:var(--text-2); font-size:14px; }
.rq-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 14px; }
.rq-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.rq-tabs button { height:34px; padding:0 14px; border:0; border-radius:999px; background:transparent; color:var(--text-1); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); font:500 13px/1 var(--font-ui); cursor:pointer; }
.rq-tabs button span { margin-left:4px; color:var(--g-text-3, var(--text-3)); font:500 11.5px/1 var(--font-mono); }
.rq-tabs button[aria-selected=true] { background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); box-shadow:none; }
.rq-tabs button[aria-selected=true] span { color:inherit; opacity:.75; }
.rq-sort { display:inline-flex; align-items:center; gap:8px; color:var(--text-2); font-size:13px; }
.rq-sort select { height:34px; padding:0 10px; border:1px solid var(--g-line-2, var(--v2-edge-strong)); border-radius:10px; background:var(--surface-2, #16181a); color:var(--text-1); font:500 13px var(--font-ui); }
.rq-list { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; }
.rq-row { display:grid; grid-template-columns:22px 132px minmax(0, 1fr) auto; gap:16px; align-items:start; padding:16px; border-radius:16px; background:var(--surface-2, #16181a); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.rq-row.is-mine { grid-template-columns:132px minmax(0, 1fr) auto; }
.rq-row.is-picked { box-shadow:inset 0 0 0 1.5px var(--g-pill, var(--v2-action)); }
.rq-row.is-new { box-shadow:inset 0 0 0 1.5px #8cc4d4; }
.rq-pick { width:18px; height:18px; margin:4px 0 0; accent-color:var(--g-pill, var(--v2-action)); }
.rq-row > img { width:132px; height:92px; border-radius:10px; object-fit:cover; background:#1b1e20; }
.rq-main { min-width:0; display:flex; flex-direction:column; gap:6px; }
.rq-t { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; } .rq-t b { font:600 16px/1.25 var(--font-ui); } .rq-t span { color:var(--text-2); font-size:13px; }
.rq-who { margin:0; color:var(--text-2); font-size:12.5px; }
.rq-note { margin:0; color:var(--text-1); font-size:13px; line-height:1.45; } .rq-note small { color:var(--text-3); }
.rq-reason { margin:0; color:var(--text-2); font-size:13px; } .rq-reason b { color:var(--text-1); font-weight:500; }
.rq-chips { display:flex; flex-wrap:wrap; gap:6px; }
.rq-chip { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); color:var(--text-2); font-size:12px; text-decoration:none; }
.rq-chip.is-web { box-shadow:inset 0 0 0 1px #8cc4d4; }
.rq-chip.is-board { background:rgba(159,217,176,.12); box-shadow:none; color:#9fd9b0; }
html[data-theme="light"] .rq-chip.is-board { color:#256b3c; background:rgba(37,107,60,.1); }
.rq-chip.is-dash { box-shadow:none; border:1px dashed var(--g-line-2, var(--v2-edge-strong)); }
.rq-chip.is-link:hover { color:var(--text-1); }
.rq-acts { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:200px; }
.rq-acts .ct-chip { justify-content:center; gap:6px; white-space:nowrap; }
.rq-acts-2 { display:flex; gap:6px; } .rq-acts-2 .ct-chip { flex:1; }
.rq-approve { background:#8cc4d4 !important; color:#0b2a33 !important; font-weight:600; }
.rq-approve .rl-ic, .rq-batch .is-primary .rl-ic { fill:currentColor; stroke:none; }
.rq-state { align-self:flex-end; display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 11px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); font-size:12.5px; }
.rq-state.is-ok { background:#8cc4d4; color:#0b2a33; box-shadow:none; font-weight:600; } .rq-state.is-ok .rl-ic { fill:currentColor; stroke:none; }
.rq-state.is-no { box-shadow:inset 0 0 0 1px rgba(242,200,121,.55); color:#f2c879; }
html[data-theme="light"] .rq-state.is-no { color:#8a5a00; }
.rq-empty { margin:30px 0; color:var(--text-2); font-size:14px; }
.rq-batch { position:fixed; z-index:61; left:50%; bottom:20px; transform:translateX(-50%); width:min(1180px, calc(100% - 48px)); box-sizing:border-box; display:flex; align-items:center; gap:12px; padding:12px 14px 12px 20px; border-radius:16px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow), inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
.rq-batch > span { flex:1; min-width:0; color:var(--text-2); font-size:12.5px; }
.rq-batch .dc-big { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0 16px; font-size:13.5px; }
.rq-batch .is-primary { background:#8cc4d4; color:#0b2a33; }
.rq-decline { position:fixed; z-index:62; right:max(24px, calc(50% - 600px)); bottom:96px; width:340px; box-sizing:border-box; display:flex; flex-direction:column; gap:8px; padding:16px; border-radius:16px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow), inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); font-size:13px; }
.rq-decline > small { color:var(--text-2); } .rq-decline label { display:flex; align-items:center; gap:8px; } .rq-decline input[type=text] { flex:1; min-width:0; height:30px; padding:0 8px; border:1px solid var(--g-line-2, var(--v2-edge-strong)); border-radius:8px; background:transparent; color:var(--text-1); font:400 13px var(--font-ui); }
.rq-dacts { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
@media (max-width:760px) {
  .rq-wrap { padding:10px 14px 140px; }
  .rq-row { grid-template-columns:22px 72px minmax(0, 1fr); } .rq-row.is-mine { grid-template-columns:72px minmax(0, 1fr); } .rq-row > img { width:72px; height:54px; }
  .rq-acts { grid-column:2 / -1; min-width:0; }
  .rq-batch { flex-wrap:wrap; } .rq-batch > span { flex-basis:100%; order:-1; }
  .rq-decline { left:14px; right:14px; width:auto; }
}

/* 13 Oct: Library first, then the web. Every choice about a project found outside is made on its card; the Agent only talks. */
.rl-card.is-web .ct-web-pick { top:auto; left:auto; right:10px; bottom:10px; }
.rl-acts { position:relative; display:flex; align-items:center; gap:10px; margin-top:6px; padding-top:9px; border-top:1px solid var(--g-line, var(--v2-edge)); min-height:20px; }
.rl-acts-gap { flex:1; }
.rl-keep { position:relative; display:inline-flex; }
.rl-act { display:inline-flex; align-items:center; gap:5px; padding:0; border:0; background:none; color:var(--text-1); font:500 12.5px/1.4 var(--font-ui); text-decoration:underline; text-underline-offset:3px; text-decoration-color:color-mix(in srgb, currentColor 45%, transparent); cursor:pointer; white-space:nowrap; }
.rl-act:hover { text-decoration-color:currentColor; }
.rl-act.is-busy { color:var(--g-text-2, var(--text-2)); text-decoration:none; cursor:default; }
.rl-act.is-set { font-weight:600; }
.rl-act .rl-ic { fill:currentColor; stroke:none; }
.rl-act:focus-visible, .rl-link:focus-visible, .ct-num:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; border-radius:4px; }
.rl-act-state { color:var(--g-text-2, var(--text-2)); font-size:12.5px; white-space:nowrap; }
.rl-act-state.is-done { color:var(--text-1); }
.rl-act-state .rl-ic { fill:currentColor; stroke:none; }
/* 13 Oct (Jianying, 16:49): Keep for SOG chooses in a small window of its own beside the card (placed by script), never
   inside the card. Two choices as rows with a dot; Not for SOG quiet at the foot. */
.rl-keep-pop { position:fixed; z-index:60; left:0; top:0; width:296px; max-height:calc(100vh - 16px); overflow:auto; overscroll-behavior:contain; box-sizing:border-box; padding:12px; border-radius:14px; background:var(--surface-2, #16181a); color:var(--text-1); font-family:var(--font-ui);
  box-shadow:var(--v2-float-shadow, 0 16px 36px rgba(0,0,0,.5)), inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
.rl-keep-pop[hidden] { display:none; }
html[data-theme="light"] .rl-keep-pop { background:#fff; }
.rl-kp-head { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:4px 8px; margin:0 0 10px; }
.rl-kp-eyebrow { color:var(--g-text-3, var(--text-3)); font:500 10.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
/* The close button keeps the portal's 44 px close target (close-actions.css), tucked into the corner so the head stays compact. */
.rl-keep-pop .rl-kp-head .rl-kp-x { margin:-14px -14px -12px 0; color:var(--g-text-3, var(--text-3)); }
.rl-keep-pop .rl-kp-head .rl-kp-x:hover { color:var(--text-1); }
.rl-kp-name { grid-column:1 / -1; font:600 14px/1.3 var(--font-ui); overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rl-kp-opts { display:flex; flex-direction:column; gap:6px; }
.rl-kp-opt { display:grid; grid-template-columns:14px minmax(0, 1fr); align-items:start; gap:10px; width:100%; box-sizing:border-box; padding:10px 12px; border:0; border-radius:10px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); color:var(--text-1); font:500 13px/1.3 var(--font-ui); text-align:left; cursor:pointer; }
.rl-kp-opt:hover { background:var(--g-fill-2, var(--v2-fill-strong)); }
.rl-kp-opt[aria-checked=true] { box-shadow:inset 0 0 0 1.5px color-mix(in srgb, var(--text-1) 60%, transparent); }
.rl-kp-mark { width:14px; height:14px; margin-top:1px; box-sizing:border-box; border-radius:50%; box-shadow:inset 0 0 0 1.5px var(--g-text-3, var(--text-3)); }
.rl-kp-opt[aria-checked=true] .rl-kp-mark { box-shadow:inset 0 0 0 4px var(--text-1); }
.rl-kp-t small { display:block; margin-top:3px; color:var(--g-text-3, var(--text-3)); font:400 11.5px/1.35 var(--font-ui); }
.rl-kp-t .rl-ic { fill:currentColor; stroke:none; vertical-align:-1px; margin-right:5px; color:var(--v2-accent-text, #d8b25a); }
.rl-kp-foot { display:flex; align-items:baseline; gap:10px; margin-top:10px; padding-top:9px; border-top:1px solid var(--g-line, var(--v2-edge)); }
.rl-kp-foot .rl-link { color:var(--g-text-2, var(--text-2)); font-size:12.5px; white-space:nowrap; }
/* 18 Oct (Jianying): the window is More information: what the Agent read about the project and where, then Keep for SOG. */
.rl-kp-info { display:flex; flex-direction:column; gap:8px; margin:-2px 0 12px; }
.rl-kp-facts { display:flex; flex-wrap:wrap; margin:0; color:var(--g-text-2, var(--text-2)); font:400 12px/1.45 var(--font-ui); }
.rl-kp-facts span + span::before { content:"·"; margin:0 6px; color:var(--g-text-3, var(--text-3)); }
.rl-kp-about { margin:0; color:var(--text-1); font:400 12.5px/1.5 var(--font-ui); }
.rl-keep-pop a:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; }
.rl-kp-sec { display:block; margin:0 0 8px; padding-top:11px; border-top:1px solid var(--g-line, var(--v2-edge)); }
.rl-kp-state { margin:0; color:var(--text-1); font:500 12.5px/1.4 var(--font-ui); }
.rl-kp-state .rl-ic { fill:currentColor; stroke:none; vertical-align:-1px; margin-right:4px; color:var(--v2-accent-text, #d8b25a); }
.rl-kp-opt.is-one { grid-template-columns:minmax(0, 1fr); }
/* More links (18 Oct, Jianying): the five most relevant pages instead of a board, under the window's foot. */
.rl-kp-links { margin-top:8px; }
.rl-kp-links ul { display:flex; flex-direction:column; gap:2px; margin:0; padding:0; list-style:none; }
.rl-kp-li { display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-rows:auto auto; column-gap:8px; padding:7px 8px; margin:0 -8px; border-radius:8px; color:var(--text-1); text-decoration:none; }
.rl-kp-li:hover { background:var(--g-fill, var(--v2-fill)); }
.rl-kp-li-site { grid-column:1; font:600 12px/1.35 var(--font-ui); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-kp-li-site small { color:var(--g-text-3, var(--text-3)); font-weight:400; font-size:11.5px; }
.rl-kp-li-t { grid-column:1; color:var(--g-text-2, var(--text-2)); font:400 11.5px/1.4 var(--font-ui); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-kp-li .rl-ic { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--g-text-3, var(--text-3)); }
.rl-kp-more-t { display:flex; align-items:center; gap:6px; margin:6px 0 0; color:var(--g-text-3, var(--text-3)); font:400 11.5px/1.4 var(--font-ui); }
.rl-kp-foot .rl-link[aria-expanded="true"] { color:var(--text-1); }
.rl-kp-foot .rl-link.is-busy { display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
.rl-keep-pop button:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; }
.rl-act.is-open { text-decoration-color:currentColor; }
@media (prefers-reduced-motion: no-preference) { .rl-keep-pop:not([hidden]) { animation:rl-kp-in 120ms var(--v2-ease, ease-out); } }
@keyframes rl-kp-in { from { opacity:0; transform:translateY(4px); } }
.rl-same { margin:6px 0 0; color:#f2c879; font-size:12px; line-height:1.45; }
html[data-theme="light"] .rl-same { color:#8a5a00; }
.rl-link { padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.rl-link[aria-pressed=true] { font-weight:600; text-decoration:none; }
.rl-link[aria-pressed=true]::before { content:"✓ "; }
.rl-type { display:flex; align-items:center; gap:8px; margin-top:6px; color:var(--g-text-2, var(--text-2)); font-size:12px; }
.rl-type select { flex:1; min-width:0; height:28px; border:1px solid var(--g-line-2, var(--v2-edge-strong)); border-radius:8px; background:var(--surface-2, #16181a); color:var(--text-1); font:400 12.5px var(--font-ui); }
.rl-card.is-flash { animation:ct-flash 1.6s var(--v2-ease, ease); }
.rl-card.is-skel { pointer-events:none; }
.rl-card.is-skel .rl-img-wrap { aspect-ratio:4 / 3; background:var(--g-fill, rgba(255,255,255,.05)); }
.rl-card.is-skel .rl-body i { display:block; height:11px; width:70%; border-radius:4px; background:var(--g-fill, rgba(255,255,255,.07)); }
.rl-card.is-skel .rl-body i + i { width:45%; height:9px; }
.rl-grid.is-near .rl-card { opacity:.55; }
.rl-grid.is-near .rl-card:hover, .rl-grid.is-near .rl-card:focus-within { opacity:1; }
.ct-web-wait { margin:0 0 6px; padding:14px 16px; border-radius:12px; border:1px dashed color-mix(in srgb, #8cc4d4 50%, transparent); color:var(--g-text-2, var(--text-2)); font-size:13px; line-height:1.5; }
.ct-webbar-wrap { position:sticky; top:8px; z-index:20; margin:30px 0 12px; }
.ct-webbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:8px 8px 8px 16px; border-radius:14px; background:var(--surface-2, #16181a); box-shadow:var(--v2-float-shadow, 0 10px 24px rgba(0,0,0,.35)), inset 0 0 0 1px color-mix(in srgb, #8cc4d4 55%, transparent); }
.ct-webbar-t { flex:1; min-width:0; font-size:13px; }
.ct-webbar-t b { font-weight:600; }
.ct-webbar-t small { color:var(--g-text-3, var(--text-3)); font-size:12px; }
.ct-webbar .ct-link { font-size:13px; }
.ct-ask { display:flex; flex-direction:column; gap:10px; margin-top:4px; }
/* the offer to search the case sites (18 Oct): one row to press, its icon, what and how long, an arrow */
.ct-ask-go { display:grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items:center; gap:12px; width:100%; padding:11px 12px; box-sizing:border-box; border:0; border-radius:14px; background:var(--g-row, var(--v2-card)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); color:var(--text-1); font:inherit; text-align:left; cursor:pointer; transition:background-color .15s ease, box-shadow .15s ease; }
.ct-ask-go:hover { background:var(--g-fill-2, var(--v2-fill-strong)); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
.ct-ask-go:focus-visible { outline:none; box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)), 0 0 0 2px var(--gold-ring); }
.ct-ask-ic { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--v2-accent-soft, rgba(79,157,179,.14)); color:var(--v2-accent-text, #8cc4d4); }
.ct-ask-txt { display:flex; flex-direction:column; gap:3px; min-width:0; }
.ct-ask-txt strong { color:var(--text-1); font:600 13.5px/1.3 var(--font-ui); }
.ct-ask-txt small { color:var(--g-text-2, var(--text-2)); font:400 12px/1.35 var(--font-ui); }
.ct-ask-go-arrow { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); transition:transform .15s ease; }
.ct-ask-go:hover .ct-ask-go-arrow { transform:translateX(2px); }
@media (prefers-reduced-motion: reduce) { .ct-ask-go, .ct-ask-go-arrow { transition:none; } }
.ct-ask-t { display:flex; gap:8px; align-items:flex-start; margin:0; color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.45; }
.ct-ask-t .rl-ic { flex:none; margin-top:2px; color:#8cc4d4; }
.ct-nums { align-items:center; }
.ct-num { min-width:22px; height:22px; padding:0 6px; box-sizing:border-box; border-radius:11px; border:1px solid #8cc4d4; background:none; color:var(--text-1); font:600 11px/20px var(--font-mono); cursor:pointer; }
.ct-nums-t { color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.45; }
@media (prefers-reduced-motion: reduce) { .rl-card.is-flash { animation:none; } }

/* 13 Oct: pages about the request that SOGpt may not read, listed under the web cards for the person to open. */
.ct-unread { margin:14px 0 4px; padding:12px 16px; border-radius:12px; box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-unread-t { margin:0 0 6px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.ct-unread ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.ct-unread li { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; min-width:0; }
.ct-unread a { min-width:0; color:var(--text-1); font-size:13px; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.ct-unread a span { margin-left:8px; color:var(--g-text-3, var(--text-3)); font-size:12px; text-decoration:none; display:inline-block; }
.ct-unread small { color:var(--g-text-3, var(--text-3)); font-size:11.5px; }
.ct-unread a:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; border-radius:4px; }

.ct-web-hidden { margin:0 0 10px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; }

/* 13 Oct (Jianying): the board-making chip as a liquid-glass card: the page shows through, blurred and a little brighter,
   with a light edge on top and a soft accent ring; ready, it turns into tinted glass. Solid where transparency is reduced. */
.ct-fmchip { overflow:hidden; border:0; background:linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 55%, rgba(140,196,212,.10)), rgba(20,22,24,.52);
  -webkit-backdrop-filter:blur(28px) saturate(170%); backdrop-filter:blur(28px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30), inset 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1.5px rgba(140,196,212,.38), inset 0 -10px 24px rgba(140,196,212,.06), 0 18px 44px rgba(0,0,0,.38); }
.ct-fmchip::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(120% 70% at 18% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.ct-fmchip > * { position:relative; }
.ct-fmchip:hover { background:linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.06) 55%, rgba(140,196,212,.14)), rgba(20,22,24,.56); }
.ct-fmchip.is-ready { color:#0b2a33; background:linear-gradient(135deg, rgba(255,255,255,.34), rgba(140,196,212,.62) 60%), rgba(140,196,212,.55);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.30), 0 18px 44px rgba(0,0,0,.34); }
html[data-theme="light"] .ct-fmchip { color:#14181b; background:linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.52) 60%, rgba(140,196,212,.18)), rgba(255,255,255,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(20,24,27,.08), inset 0 0 0 1.5px rgba(70,140,160,.30), 0 16px 38px rgba(20,24,27,.16); }
html[data-theme="light"] .ct-fmchip .fm-chip-rings small { color:#4a5358; }
@media (prefers-reduced-transparency: reduce) {
  .ct-fmchip { -webkit-backdrop-filter:none; backdrop-filter:none; background:var(--surface-2, #16181a); }
  .ct-fmchip::before { display:none; }
  .ct-fmchip.is-ready { background:#8cc4d4; }
}

/* 13 Oct: a web card's action line fits a narrow card: short labels below 300 px (container query), and it wraps rather than
   running off the card where container queries are missing. */
.rl-card.is-web { container-type:inline-size; container-name:webcard; }
.rl-acts { flex-wrap:wrap; row-gap:6px; }
.rl-keep { margin-left:auto; }
.rl-acts .rl-s { display:none; }
@container webcard (max-width: 300px) {
  .rl-acts .rl-l { display:none; }
  .rl-acts .rl-s { display:inline; }
}

/* 13 Oct: the preview-board window's chip, above the Favorites one when both are minimized. */
.ct-dock.has-fmchip .ct-fmchip.is-preview { transform:translateY(-70px); }
.fm-chip-seal .rl-ic, .fm-seal .rl-ic { fill:currentColor; stroke:none; }
.rl-act.is-busy { cursor:pointer; }

/* 13 Oct (Jianying, 16:50): × at the right of From the web clears this search from the page. */
.ct-web-x { flex:none; align-self:center; margin-left:auto; width:28px; height:28px; display:grid; place-items:center; padding:0; border:0; border-radius:8px; background:none; color:var(--g-text-2, var(--text-2)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); cursor:pointer; }
.ct-web-x:hover { background:var(--g-fill, var(--v2-fill)); color:var(--text-1); }
.ct-web-x:focus-visible { outline:2px solid var(--v2-focus, #7ab7ff); outline-offset:2px; }
.ct-webbar .ct-web-x { margin-left:0; }

/* 13 Oct (Jianying, 16:51): the search stays on the filter row and narrows with the page (the Agent panel takes room); Firm
   and Location narrow with it, down to what their words need. The bar still wraps, but only when even those narrowest
   widths do not fit: each field starts at its narrowest and grows to its usual width. Narrower still (≤ 1110 px, container query),
   Console and Requests show only their icons and the menus their words; then the search takes a row of its own. */
.ct-bar { container:ctbar / inline-size; }
.ct-bar > .ct-combo { flex:1 1 120px; max-width:176px; }
.ct-bar > .ct-combo[data-ct="place"] { flex-basis:130px; max-width:196px; }
.ct-bar > .ct-combo input, .ct-bar > .ct-combo[data-ct="place"] input { width:100%; }
.ct-bar > .ct-search { flex:3 1 160px; max-width:340px; }     /* it widens first, so its words show */
@container ctbar (max-width: 1110px) {
  .ct-bar > .ct-favcon { gap:0; padding:0 11px; }
  .ct-bar > .ct-favcon > span:not(.fc-badge) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
  .ct-bar > .ct-menu .ct-trigger { min-width:0; }
  .ct-bar .ct-trigger-label { max-width:130px; }
}
@container ctbar (max-width: 990px) {
  .ct-bar > .ct-search { flex:1 1 220px; max-width:none; margin-left:0; }     /* fills the rest of the row it lands on */
}
@media (max-width: 760px) {     /* the phone layout's two-column grid: fields fill their cells, Console and Requests keep their words */
  .ct-bar > .ct-combo, .ct-bar > .ct-combo[data-ct="place"], .ct-bar > .ct-search { max-width:none; }
  .ct-bar > .ct-favcon { gap:7px; justify-content:center; }
  .ct-bar > .ct-favcon > span:not(.fc-badge) { position:static; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; }
}

/* 13 Oct: a click on a Favorite's star opens the Favorites console at its row. */
.fc-row.is-at { margin:0 -10px; padding-left:10px; padding-right:10px; border-radius:12px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }

/* 13 Oct (Jianying): a follow-up in the Agent filters the projects on the page. The filter is a label in the status line; the
   cards it leaves out fold into one line per section (shown dimmed on request); a card that fits says why in one line. Web
   finds SOGpt read as not quite what was asked are kept, last, with a quiet line. */
/* 13 Oct (round 2): under a closest card, what it lacks of the request. */
.rl-missing { margin:4px 0 0; color:var(--g-text-3, var(--text-3)); font-size:12px; line-height:1.4; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.rl-fitwhy { margin:4px 0 0; color:var(--g-text-2, var(--text-2)); font-size:12px; line-height:1.4; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.rl-unsure { margin:4px 0 0; color:var(--g-text-3, var(--text-3)); font-size:12px; font-style:italic; }
.ct-filtered { margin:10px 0 4px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; }
.rl-grid.is-filtered { margin-top:8px; }
.rl-grid.is-filtered .rl-card { opacity:.5; }
.rl-grid.is-filtered .rl-card:hover, .rl-grid.is-filtered .rl-card:focus-within { opacity:1; }
.rl-chip[data-ct-unset="filter"] { border-color:color-mix(in srgb, #8cc4d4 55%, transparent); }
.ct-chip[data-ct-outside] .rl-ic { margin-right:6px; vertical-align:-2px; }

/* ---------- 16 Oct (Jianying): fewer things on the page ----------
   The Library and From the web are two sides of one switch; the Directors' tools sit under "⋯"; with the Agent open its
   box is the one place to type and the four menus fold under Filters; one Agent button (the top bar's). */
.ct-launch { display:none!important; }
.rl-view .rl-eyebrow { display:none; }
.rl-view .rl-head h1 { font-size:28px; letter-spacing:-.02em; }
.rl-view .rl-head-copy { gap:6px; }

.ct-tabs { display:inline-flex; gap:2px; margin:4px 0 14px; padding:3px; border-radius:12px; background:var(--g-fill, var(--v2-fill)); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge)); }
.ct-tab { display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 14px; border:0; border-radius:9px; background:transparent; color:var(--g-text-2, var(--text-2)); font:500 13px/1 var(--font-ui); cursor:pointer; white-space:nowrap; }
.ct-tab:hover { color:var(--text-1); }
.ct-tab[aria-selected="true"] { background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); }
.ct-tab:focus-visible { outline:2px solid var(--gold-ring); outline-offset:1px; }
.ct-tab-n { display:inline-grid; place-items:center; min-width:20px; height:20px; box-sizing:border-box; padding:0 6px; border-radius:999px; background:var(--g-fill-2, var(--v2-fill-strong)); color:inherit; font:600 11px/1 var(--font-ui); font-variant-numeric:tabular-nums; }
.ct-tab[aria-selected="true"] .ct-tab-n { background:color-mix(in srgb, currentColor 12%, transparent); }
/* searching (18 Oct): three dots, not a 0 and a spinner */
.ct-tab-dots { display:inline-flex; align-items:center; gap:3px; height:20px; }
.ct-tab-dots i { width:4px; height:4px; border-radius:50%; background:currentColor; animation:ct-dot 1s infinite ease-in-out; }
.ct-tab-dots i:nth-child(2) { animation-delay:.15s; } .ct-tab-dots i:nth-child(3) { animation-delay:.3s; }
.ct-tab-run { width:8px; height:8px; border:1.5px solid currentColor; border-top-color:transparent; border-radius:50%; animation:ct-tab-spin .9s linear infinite; }
@keyframes ct-tab-spin { to { transform:rotate(360deg); } }
.ct-pane[hidden] { display:none; }
.ct-web-top { display:flex; align-items:center; justify-content:flex-end; gap:10px; min-height:30px; margin:-6px 0 8px; }
.ct-web-run { margin-right:auto; color:var(--g-text-3, var(--text-3)); font:400 12.5px/1.4 var(--font-ui); }
.ct-web-empty { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.ct-web-empty .ct-web-wait { margin:0; }
.ct-sec.is-fold small { color:var(--g-text-2, var(--text-2)); font-size:13px; }

/* ⋯: Favorites console and Requests */
.ct-more { position:relative; }
.ct-more[hidden] { display:none; }
.ct-more-btn { position:relative; padding:0 10px; }
.ct-more-dot { position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:var(--gold, #d4a24a); }
.ct-more-dot[hidden] { display:none; }
.ct-more-pop { position:absolute; z-index:30; top:calc(100% + 6px); left:0; display:flex; flex-direction:column; gap:2px; min-width:200px; padding:6px; border-radius:12px;
  background:var(--surface-2, #16181a); box-shadow:inset 0 0 0 1px var(--g-line, var(--v2-edge-strong)), 0 16px 36px rgba(0,0,0,.35); }
.ct-more-pop[hidden] { display:none; }
.ct-more-pop .ct-favcon { justify-content:flex-start; width:100%; height:34px; border:0; border-radius:8px; background:transparent; box-shadow:none; }
.ct-more-pop .ct-favcon:hover { background:var(--g-fill-2, var(--v2-fill-strong)); }
.ct-more-pop .ct-favcon[hidden] { display:none; }

/* With the Agent open: no second place to type, and the four menus fold under Filters. */
.ct-filters-btn { display:none; }
.rl-view.ct-agent-on .ct-filters-btn { display:inline-flex; }
.rl-view.ct-agent-on .ct-bar > .ct-filters-btn > span { position:static; width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; }
.ct-filters-n:empty { display:none; }
.ct-filters-n { min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); font:600 10.5px/16px var(--font-ui); text-align:center; }
.rl-view.ct-agent-on .ct-bar > .ct-search { display:none; }
.rl-view.ct-agent-on:not(.ct-filters-open) .ct-bar > :is(.ct-combo, .ct-menu) { display:none; }
.rl-view.ct-agent-on .ct-filters-btn[aria-expanded="true"] { background:var(--g-fill-2, var(--v2-fill-strong)); color:var(--text-1); }

/* Web cards: More information is always there (18 Oct, Jianying); the number in the Agent's list appears on hover or keyboard
   focus (always on touch). */
@media (hover:hover) {
  .rl-card.is-web .ct-web-n { opacity:0; transition:opacity .14s ease; }
  .rl-card.is-web:is(:hover, :focus-within) .ct-web-n,
  .rl-card.is-web:has(.rl-act-state, [aria-expanded="true"], .ct-web-pick) .ct-web-n { opacity:1; }
}

/* The Agent: Case sources is an icon in its header; the case-sites question is one button. */
.ct-agent-head [data-ct-sources] .ct-scope-ic { display:inline-flex; }
.ct-ask .ct-chip svg { margin-right:6px; vertical-align:-2px; }
.ct-agent-msg:not(:has(> :not(.ct-av))) { display:none; }
@media (prefers-reduced-motion: reduce) { .ct-tab-run { animation:none; } }
.ct-ask-min { white-space:nowrap; opacity:.8; }

/* the web search while it runs (18 Oct): what is being done now, the three steps ticked as they end, the sites */
.ct-web.is-running { gap:12px; }
.rl-view .ct-web .ct-web-now, .ct-web .ct-web-now { margin:-6px 0 0 22px; color:var(--g-text-2, var(--text-2)); font-size:12.5px; line-height:1.45; }
.ct-web-now.is-new { animation:ct-web-now .35s ease-out both; }
@keyframes ct-web-now { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:none; } }
.ct-web-segs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; }
.ct-web-seg { position:relative; height:4px; overflow:hidden; border-radius:2px; background:var(--g-fill-3, var(--v2-fill-strong)); }
.ct-web-seg i { display:block; height:100%; border-radius:2px; background:var(--g-pill, var(--text-1)); transition:width .4s ease; }
.ct-web-seg.is-busy i { width:40%; animation:ct-indet 1.4s ease-in-out infinite; }
.ct-web-steps { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.ct-web-steps li { position:relative; display:flex; align-items:baseline; gap:8px; padding-left:22px; color:var(--g-text-3, var(--text-3)); font-size:12.5px; line-height:1.4; }
.ct-web-steps li > span { flex:1; min-width:0; }
.ct-web-steps li small { flex:none; color:var(--g-text-2, var(--text-2)); font:500 11.5px/1.4 var(--font-ui); font-variant-numeric:tabular-nums; }
.ct-web-steps li::before { content:""; position:absolute; left:0; top:2px; width:14px; height:14px; box-sizing:border-box; border-radius:50%; border:1.4px solid var(--g-line-2, var(--v2-edge-strong)); }
.ct-web-steps li.is-done, .ct-web-steps li.is-now { color:var(--text-1); }
.ct-web-steps li.is-done::before { border-color:var(--text-1); background:var(--text-1); box-shadow:inset 0 0 0 3px var(--surface-2, #16181a); }
.ct-web-steps li.is-now::before { border-color:var(--text-1); border-right-color:transparent; animation:ct-spin .9s linear infinite; animation-delay:var(--lag, 0s); }
.ct-count { display:inline-block; min-width:1ch; font-variant-numeric:tabular-nums; }
.ct-count.is-up { animation:ct-count-up .22s ease-out; }
@keyframes ct-count-up { 0% { transform:translateY(3px); opacity:.4; } 100% { transform:none; opacity:1; } }
.ct-web.is-running .ct-web-foot { justify-content:flex-end; }
@media (prefers-reduced-motion: reduce) { .ct-web-now.is-new, .ct-web-seg.is-busy i, .ct-web-steps li.is-now::before, .ct-tab-dots i, .ct-count.is-up { animation:none; } }

/* The Agent's input as in Claude (18 Oct): the text on top, + and the microphone on the left, the model and send on the right */
.rl-view .ct-agent-form.ct-composer, .ct-agent-form.ct-composer { position:relative; flex-direction:column; align-items:stretch; gap:2px; padding:10px 8px 8px 14px; border-radius:20px; }
.ct-agent-form.ct-composer textarea, .rl-view .ct-agent-form.ct-composer textarea { flex:none; width:100%; min-height:44px; max-height:140px; padding:2px 6px 0 2px; border:0; background:transparent; font-size:14px; line-height:1.5; }
.ct-composer-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:34px; }
.ct-composer-left, .ct-composer-right { display:flex; align-items:center; gap:2px; }
.ct-mic-slot { display:none; }
.ct-tool, .ct-composer-left .sog-voice-mic { flex:none; width:32px; height:32px; display:grid; place-items:center; padding:0; border:0; border-radius:10px; background:transparent; color:var(--g-text-2, var(--text-2)); cursor:pointer; }
.ct-tool:hover, .ct-tool[aria-expanded=true], .ct-composer-left .sog-voice-mic:hover:not(:disabled) { background:var(--g-fill-2, var(--v2-fill-strong)); color:var(--text-1); }
.ct-composer-left .sog-voice-mic { position:static; margin:0; box-shadow:none; }
.ct-composer-left .sog-voice-mic svg { width:16px; height:16px; }
.ct-tool:focus-visible, .ct-model-btn:focus-visible, .ct-composer .ct-agent-send:focus-visible { outline:2px solid var(--gold-ring); outline-offset:1px; }
.ct-model-btn { height:32px; display:inline-flex; align-items:center; gap:5px; padding:0 8px 0 10px; border:0; border-radius:10px; background:transparent; color:var(--g-text-2, var(--text-2)); font:500 12.5px/1 var(--font-ui); cursor:pointer; white-space:nowrap; }
.ct-model-btn:hover, .ct-model-btn[aria-expanded=true] { background:var(--g-fill-2, var(--v2-fill-strong)); color:var(--text-1); }
.ct-model-btn .rl-ic { opacity:.7; }
.ct-model-btn[aria-expanded=true] .rl-ic { transform:rotate(180deg); }
.rl-view .ct-composer .ct-agent-send, .ct-composer .ct-agent-send { width:32px; height:32px; margin-left:4px; border-radius:10px; background:var(--g-pill, var(--v2-action)); color:var(--g-pill-ink, var(--v2-on-action)); transition:opacity .15s ease, background-color .15s ease; }
.ct-composer.is-empty .ct-agent-send { background:var(--g-fill-3, var(--v2-fill-strong)); color:var(--g-text-3, var(--text-3)); }
/* its menus: solid (text behind a see-through menu reads through it), above the input */
.ct-pop { position:absolute; bottom:calc(100% + 6px); z-index:8; width:min(300px, calc(100% - 8px)); display:flex; flex-direction:column; gap:2px; padding:6px; border-radius:16px; background:var(--surface-2, #16181a); box-shadow:0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px var(--g-line-2, var(--v2-edge-strong)); }
:root[data-ui=v2][data-theme=light] .ct-pop { background:#fff; box-shadow:0 18px 50px rgba(23,64,78,.18), inset 0 0 0 1px rgba(0,0,0,.08); }
.ct-pop[hidden] { display:none; }
.ct-plus-menu { left:4px; }
.ct-model-menu { right:4px; }
.ct-pop-h { margin:0; padding:8px 10px 4px; color:var(--g-text-3, var(--text-3)); font:500 11px/1 var(--font-ui); }
.ct-pop-item { display:grid; grid-template-columns:20px minmax(0, 1fr); gap:10px; align-items:start; width:100%; padding:9px 10px; border:0; border-radius:11px; background:transparent; color:var(--text-1); font:inherit; text-align:left; cursor:pointer; }
.ct-pop-item:hover:not([aria-disabled=true]), .ct-pop-item:focus-visible { background:var(--g-fill-2, var(--v2-fill-strong)); outline:none; }
.ct-pop-item:focus-visible { box-shadow:inset 0 0 0 2px var(--gold-ring); }
.ct-pop-item[aria-disabled=true] { cursor:not-allowed; }
.ct-pop-item[aria-disabled=true] strong { color:var(--g-text-3, var(--text-3)); }
.ct-pop-ic, .ct-pop-tick { display:grid; place-items:center; height:20px; color:var(--g-text-2, var(--text-2)); }
.ct-pop-tick { visibility:hidden; color:var(--text-1); }
.ct-pop-item[aria-checked=true] .ct-pop-tick { visibility:visible; }
.ct-pop-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ct-pop-t strong { font:500 13.5px/1.3 var(--font-ui); }
.ct-pop-t small { color:var(--g-text-3, var(--text-3)); font:400 12px/1.35 var(--font-ui); }
@media (prefers-reduced-motion: reduce) { .ct-composer .ct-agent-send, .ct-model-btn .rl-ic { transition:none; } }

/* 22 Oct (Jianying): the Catalogue Agent has a face. Its messages carry it, so what it says about its own work (what it
   left out because it did not fit) reads as the Agent speaking, in the main text colour — not as a grey hint. */
.ct-agent-msg { position:relative; padding-left:36px; }
.ct-agent-msg > .ct-av { position:absolute; left:0; top:-2px; width:26px; height:26px; box-sizing:border-box; border-radius:50%; display:grid; place-items:center;
  background:#14181a; box-shadow:inset 0 0 0 1px #8cc4d4; color:#8cc4d4; }          /* 22 Oct: B · Ring, the Research Agent's face */
.ct-agent-msg > .ct-av .rl-ic { stroke-width:2; }
html[data-theme="light"] .ct-agent-msg > .ct-av { background:#f3f5f4; box-shadow:inset 0 0 0 1px #2b6b7c; color:#2b6b7c; }
.ct-agent-msg + .ct-agent-msg > .ct-av { visibility:hidden; }            /* one face for a run of messages */
.ct-agent-msg.ct-typing { padding:4px 0 4px 36px; }
.ct-agent-msg.ct-typing > .ct-av { top:1px; }
.rl-view .ct-agent-msg > p, html[data-theme="light"] .rl-view .ct-agent-msg > p { color:var(--text-1); }
.rl-view .ct-agent-msg > p.ct-note { color:var(--g-text-3, var(--text-3)); }
.rl-view .ct-welcome > p.ct-greet { margin-top:0; }
/* the same face in the panel's header */
.rl-view .ct-agent-head .ct-agent-ic { display:grid; width:28px; height:28px; box-sizing:border-box; margin-right:6px; border-radius:50%;
  background:#14181a; box-shadow:inset 0 0 0 1px #8cc4d4; color:#8cc4d4; }
.rl-view .ct-agent-head .ct-agent-ic .rl-ic { stroke-width:2; }
html[data-theme="light"] .rl-view .ct-agent-head .ct-agent-ic { background:#f3f5f4; box-shadow:inset 0 0 0 1px #2b6b7c; color:#2b6b7c; }
.ct-src-table td.pic img { display:block; width:56px; height:36px; object-fit:cover; border-radius:5px; background:var(--g-fill-2, rgba(255,255,255,.06)); }
.ct-src-table .ct-dot.is-bad { color:#f0a39b; }
.ct-src-table .ct-dot.is-bad::before { background:#f0a39b; box-shadow:none; }
/* 22 Oct: the InDesign preview is a case page in the chosen layout (Regular · Free); it fades in when the layout changes */
.dc-deck.is-case { display:block; padding:0; animation:dc-case-in .2s ease-out; }
@keyframes dc-case-in { from { opacity:.35; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .dc-deck.is-case { animation:none; } }
.dc-ch { position:absolute; left:1.9%; top:4.2%; width:40%; display:flex; flex-direction:column; gap:2px; }
.dc-ch i { display:block; width:55%; height:4px; border-radius:1px; background:#244b59; }
.dc-ch i + i { width:34%; height:2px; opacity:.7; }
.dc-ctext { position:absolute; left:1.9%; top:14.6%; width:26%; display:flex; flex-direction:column; gap:3px; }
.dc-ctext i { display:block; height:2px; border-radius:1px; background:#1b1e20; opacity:.5; }
.dc-ctext i.is-short { width:60%; }
.dc-ctext b { display:block; width:72%; height:2px; margin-top:2px; border-radius:1px; background:#244b59; opacity:.55; }
.dc-cf { position:absolute; overflow:hidden; background:#c0c0c0; }
.dc-cf img { width:100%; height:100%; display:block; object-fit:cover; }
.dc-cfoot { position:absolute; left:1.9%; right:1.9%; bottom:1.6%; display:flex; align-items:center; justify-content:space-between; }
.dc-cfoot i { display:block; width:22%; height:2px; border-radius:1px; background:#244b59; opacity:.6; }
.dc-cfoot b { color:#244b59; font:700 5px/1 var(--font-ui); letter-spacing:.04em; }
/* 23 Oct: Publish all drafts, beside the Favorites count */
.fc-tools .fc-pub { flex:none; }
.fc-tools .fc-pub[hidden] { display:none; }
.ct-favcon-dlg .dc-state .ct-link { margin-left:6px; }
.fc-tools .fc-pubdone { flex:none; color:var(--g-text-2, var(--text-2)); font-size:13px; white-space:nowrap; }
.fc-tools .fc-pubdone[hidden] { display:none; }
.fc-tools .fc-pubdone .ct-link { margin-left:6px; }
