:root {
  /* --bg, --fg, --mut and --lime come from theme.css, shared with every page */
  --glass: color-mix(in srgb, var(--surface) 78%, transparent); --glass2: color-mix(in srgb, var(--panel) 95%, transparent); --line: color-mix(in srgb, var(--lime) 14%, transparent); --amber: var(--f-talk, #f5b14c); --bot: var(--mut);
  --top: 80px; --side: 360px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font: 14px/1.4 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; touch-action: none; }
.hud { position: fixed; z-index: 5; }
.top .kpis .kpi, .seg, .switch, .filters select, .side, .drawer, .now, .timeline, .search input, .icon, .tip { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.only-narrow, .only-sheet { display: none; }

/* header */
.top { z-index: 8; top: 0; left: 0; right: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 14px 16px; pointer-events: none; }
.top > * { pointer-events: auto; }
/* the scene fades out under the header, so nothing in it reads as sitting on the buttons */
.top::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(color-mix(in srgb, var(--bg) 92%, transparent) 55%, color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 0.3px; white-space: nowrap; }
.brand p { margin: 0; color: var(--mut); font-size: 13px; }
.live { width: 11px; height: 11px; border-radius: 50%; background: #555; flex: none; }
.live.on { background: var(--pulse, var(--lime)); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse, var(--lime)) 60%, transparent); } 70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--pulse, var(--lime)) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse, var(--lime)) 0%, transparent); } }
.kpis { display: flex; gap: 8px; justify-content: center; align-items: center; }
.kpis .kpi { display: block; margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; min-width: 92px; text-align: center; cursor: pointer; }
.kpis .kpi:hover { border-color: var(--lime); }
.kpis b { display: block; font-size: 22px; color: var(--lime); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12px; color: var(--mut); }
.kcap { margin: 0 0 0 4px; width: 100px; font-size: 12px; line-height: 1.3; color: var(--mut); }
.tools { display: flex; gap: 8px; align-items: center; }
.search { position: relative; }
.search input { width: 230px; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; outline: none; }
.search input:focus { border-color: var(--lime); }
.search ul { position: absolute; top: 42px; right: 0; width: 320px; max-height: 360px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--glass2); border: 1px solid var(--line); border-radius: 10px; }
.search .row { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 7px; background: none; text-align: left; cursor: pointer; }
.search .row:hover, .search .row:focus-visible { background: color-mix(in srgb, var(--lime) 12%, transparent); }
.search li.none { padding: 8px; color: var(--mut); }
.search li img { width: 24px; height: 24px; border-radius: 50%; }
.search li .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.search li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search li small { display: block; color: var(--mut); font-size: 11.5px; }
.search li b { color: var(--lime); margin-left: auto; font-weight: 600; }
.icon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 9px; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-decoration: none; font-size: 13px; }
.icon svg { width: 18px; height: 18px; }
.icon:hover, .icon[aria-expanded="true"] { border-color: var(--lime); }
/* the menu (menu.css) in the header: its button is one of the icons, and an open menu lifts the header above the
   panels, the bars switch and the toasts, so its dimmed layer covers them */
.menu-slot { display: inline-flex; }
.top:has(details.pmenu[open]) { z-index: 15; }
.views-slot { display: none; align-self: center; margin-left: 10px; }
/* in the panels: the next step where the person already is */
.keep-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--mut); }
.keep-row .chip { font: 600 12.5px/1 inherit; color: var(--lime); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; text-decoration: none; }
.keep-row .chip:hover { border-color: var(--lime); }
.suggest-jump { display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0 10px; padding: 9px 12px; background: none; border: 1px dashed color-mix(in srgb, var(--lime) 32%, transparent); border-radius: 10px; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.suggest-jump b { margin-left: auto; color: var(--lime); }
.suggest-jump:hover { border-color: var(--lime); }
.icon.only-narrow { display: none; }
.filt-btn b { background: var(--lime); color: var(--ink); border-radius: 999px; font-size: 11px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; }

/* filters: a bar under the header on wide screens, a panel behind the Filters button elsewhere */
.filters { top: var(--top); left: 16px; right: calc(var(--side) + 32px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.filters > * { pointer-events: auto; }
.f-row { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 6px 11px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; color: var(--fg); white-space: nowrap; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.seg button b { color: var(--lime); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 20%, transparent); color: var(--fg); }
.filters select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 30px 6px 11px; font-size: 13px; cursor: pointer; max-width: 170px; text-overflow: ellipsis; background-color: var(--glass); background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.filters select.on { border-color: var(--lime); }
.filters select option { background: var(--panel); color: var(--fg); }
.switch { display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.switch i { width: 26px; height: 15px; border-radius: 8px; background: var(--edge); position: relative; flex: none; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--mut); transition: transform 0.2s; }
.switch[aria-pressed="true"] i { background: color-mix(in srgb, var(--lime) 35%, transparent); }
.switch[aria-pressed="true"] i::after { transform: translateX(11px); background: var(--lime); }
.switch b { color: var(--mut); font-weight: 600; font-size: 12px; }
.done { background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 11px; font-weight: 800; font-size: 15px; cursor: pointer; }
/* the filters as a panel behind a button: under 1340 px, and everywhere in the trial layout (fpop, set in index.html) */
.fpop .filters { display: none; }
.fpop .filters.open { display: flex; flex-direction: column; align-items: stretch; gap: 14px; left: auto; right: 16px; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - var(--top) - 16px); overflow-y: auto; background: var(--glass2); border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); border-radius: 14px; padding: 16px; z-index: 9; pointer-events: auto; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); }
.fpop .filters.open .only-sheet { display: block; }
.fpop .filters h2 { margin: 0; font-size: 16px; }
.fpop .filters .f-row { flex-direction: column; align-items: stretch; gap: 6px; }
.fpop .f-lbl { font-size: 12.5px; color: var(--mut); }
.fpop .filters .seg { flex-wrap: wrap; gap: 6px; border: 0; background: none; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; }
.fpop .filters .seg button, .fpop .filters .seg button + button { border: 1px solid var(--line); border-radius: 999px; background: var(--glass); padding: 7px 12px; }
.fpop .filters .seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 20%, transparent); border-color: var(--lime); }
.fpop .filters select { max-width: none; width: 100%; padding-top: 9px; padding-bottom: 9px; }
.fpop .filters .switch { align-self: flex-start; padding: 8px 12px; }
html:not(.fpop) .filt-btn { display: none; }

/* side panel */
.side { top: var(--top); right: 16px; width: var(--side); bottom: 134px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.35s ease; }
.side.closed { transform: translateX(calc(100% - 44px)); }
body.drawer-open .side { visibility: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 7px 11px; border-radius: 8px; cursor: pointer; color: var(--mut); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--fg); background: color-mix(in srgb, var(--lime) 12%, transparent); }
.tabs .collapse { margin-left: auto; color: var(--mut); font-size: 18px; line-height: 1; }
.side.closed .collapse { transform: rotate(180deg); }
.feed { list-style: none; margin: 0; padding: 4px 10px 10px; overflow-y: auto; flex: 1; }
.feed li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed li.new { animation: slide 0.7s ease-out; }
@keyframes slide { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.feed img { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
.feed .what { font-size: 14px; color: var(--fg); }
.feed .what b { color: var(--fg); }
.feed .repo { background: none; border: 0; padding: 0; text-align: inherit; cursor: pointer; color: var(--lime); text-decoration: underline dotted color-mix(in srgb, var(--lime) 50%, transparent); text-underline-offset: 3px; }
.feed .title { font-size: 12.5px; color: var(--mut); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.feed .title a { text-decoration: none; }
.feed .title a:hover { text-decoration: underline; color: var(--fg); }
.feed .meta { font-size: 12px; color: var(--mut); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.feed .meta .k { width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* highlights */
.top-pane { padding: 8px 12px 14px; overflow-y: auto; flex: 1; }
.seg.small { display: flex; margin-bottom: 4px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.seg.small button { flex: 1; justify-content: center; padding: 5px 8px; font-size: 12.5px; }
#hl h3 { font-size: 13px; color: var(--mut); font-weight: 600; margin: 14px 0 4px; }
.hl { list-style: none; margin: 0; padding: 0; }
.hl .row { display: grid; grid-template-columns: 22px 24px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 5px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.hl .row:hover span { color: var(--lime); }
.hl .rk { font-size: 12px; color: var(--mut); text-align: center; font-variant-numeric: tabular-nums; }
.hl .rk svg { width: 20px; height: 20px; display: block; }
.hl img, .hl .sw { width: 24px; height: 24px; border-radius: 50%; }
.hl .sw { border-radius: 6px; background: var(--surface); }
.hl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hl small { color: var(--mut); font-size: 11.5px; margin-left: 6px; }
.hl b { color: var(--lime); font-variant-numeric: tabular-nums; }
.hl .none { display: block; color: var(--mut); cursor: default; }
.trend { margin: 2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.trend h3 { font-size: 13px; color: var(--mut); font-weight: 600; margin: 4px 0 8px; }
.trend svg { width: 100%; height: 70px; display: block; }
.t-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-top: 3px; }
.t-line { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; }
.trend .hint { margin-top: 6px; }
.tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal, #ff6b8b); margin-left: 5px; vertical-align: 2px; }
.add-pane .lead { margin: -2px 0 8px; }
.news { list-style: none; margin: 0 0 12px; padding: 0; }
.news li { padding: 10px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news .n-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.news .n-head b { font-size: 14.5px; }
.news .n-head small { color: var(--mut); font-size: 12px; }
.news p { margin: 3px 0 7px; color: var(--fg); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news .none { color: var(--mut); }
.n-act { display: flex; gap: 8px; }
.n-act button, .follow { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 9px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.follow.on { border-color: var(--lime); color: var(--lime); }
.notify { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 4px; }
.notify .hint { margin: 8px 0 0; }
.add-pane h3.suggest { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.chain3d { display: block; width: 9px; height: 9px; overflow: hidden; font-size: 0; background: var(--fg); border-radius: 999px; box-shadow: 0 0 8px color-mix(in srgb, var(--fg) 60%, transparent); transition: opacity 0.25s; pointer-events: none; }
.zoomed .chain3d { width: auto; height: auto; font-size: 10.5px; font-weight: 800; color: var(--ink); padding: 0 6px; box-shadow: none; }
.drawer .oc li { display: block; }
.drawer .oc li a { text-decoration: none; }
.drawer .oc li a:hover b { text-decoration: underline; }
.star3d { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 0 6px; transition: opacity 0.25s; pointer-events: none; }
.hint { color: var(--mut); font-size: 12px; margin: 14px 0 0; }
.add-pane { padding: 10px 14px 14px; overflow-y: auto; flex: 1; }
.add-pane h3 { font-size: 15px; margin: 4px 0 6px; }
.add-pane p { margin: 0 0 12px; color: var(--fg); line-height: 1.5; }
#add-form { display: flex; gap: 8px; }
#add-form input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; font-size: 16px; }
#add-form input:focus { border-color: var(--lime); }
#add-form button { background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 0 16px; font-weight: 800; cursor: pointer; }
#add-form button:disabled { opacity: 0.5; cursor: progress; }
#add-result { margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
#add-result.checking { color: var(--mut); }
#add-result.ok { color: var(--lime); }
#add-result.no { color: #f5c2a0; }
#add-result ul { margin: 6px 0 0; padding-left: 18px; color: var(--fg); }

/* drawer: one project or one person */
.drawer { top: var(--top); right: 16px; width: var(--side); bottom: 134px; background: var(--glass2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-y: auto; z-index: 7; animation: in 0.3s ease-out; }
@keyframes in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--mut); }
.drawer h2 { margin: 0 34px 2px 0; font-size: 19px; overflow-wrap: anywhere; }
.drawer .owner { margin: 0 0 6px; color: var(--mut); font-size: 12px; overflow-wrap: anywhere; }
.drawer .sub { color: var(--mut); font-size: 13px; margin: 0 0 10px; }
.drawer .desc { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.drawer .gh { display: inline-block; background: color-mix(in srgb, var(--lime) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 35%, transparent); border-radius: 10px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.drawer .gh:hover { background: color-mix(in srgb, var(--lime) 24%, transparent); }
.drawer .pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.drawer .pills span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--mut); }
.drawer h3 { font-size: 13px; color: var(--mut); margin: 18px 0 6px; font-weight: 600; }
.drawer svg.bars { width: 100%; height: 64px; display: block; }
.drawer .key { margin: 4px 0 0; font-size: 12px; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.drawer .key i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.drawer .key i.h { background: var(--lime); } .drawer .key i.b { background: var(--bot); margin-left: 8px; }
.drawer .people:not(.list) { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer .people a, .drawer .people button { color: inherit; font: inherit; border: 0; cursor: pointer; }
.drawer .people a, .drawer .people button { display: flex; align-items: center; gap: 6px; text-decoration: none; background: rgba(255, 255, 255, 0.05); border-radius: 999px; padding: 2px 10px 2px 2px; font-size: 13px; }
.drawer .people img { width: 26px; height: 26px; border-radius: 50%; }
.drawer .people b { color: var(--lime); font-weight: 600; }
.drawer ol { list-style: none; margin: 0; padding: 0; }
.drawer ol li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.drawer ol li .k { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.drawer ol li .t { display: block; color: var(--mut); font-size: 12.5px; text-decoration: none; overflow-wrap: anywhere; }
.drawer ol li .t:hover { color: var(--fg); text-decoration: underline; }
.drawer ol li small { display: block; color: var(--mut); font-size: 12px; }
.drawer .person { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.drawer .person img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.drawer .where .row { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.drawer .where small { display: inline; margin-left: 6px; }
.drawer .where b { color: var(--lime); }
/* every project or person on screen, as rows */
.drawer .list li { padding: 0; }
.drawer .list .row { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 9px 2px; border: 0; background: none; text-align: left; cursor: pointer; }
.drawer .list.people .row { grid-template-columns: 24px 1fr auto; }
.drawer .list .row:hover span { color: var(--lime); }
.drawer .list .sw { width: 12px; height: 12px; border-radius: 3px; }
.drawer .list img { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); }
.drawer .list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .list small { display: inline; margin-left: 6px; color: var(--mut); font-size: 12px; }
.drawer .list b { color: var(--lime); font-variant-numeric: tabular-nums; }
.drawer .list b i { font-style: normal; font-weight: 600; color: var(--bot); margin-left: 8px; }
.drawer .more { margin: 12px 0 4px; }
.drawer .more::before { content: "\25B8"; color: var(--mut); }
.drawer .more[aria-expanded="true"]::before { content: "\25BE"; }
.drawer .back { display: block; background: none; border: 0; padding: 0 0 8px; color: var(--mut); font-size: 13px; cursor: pointer; }
.drawer .back:hover { color: var(--fg); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.drawer .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row { margin: 8px 0 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.share-btn:hover { border-color: var(--lime); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.small { padding: 4px 10px; font-size: 12px; } .share-btn.on { border-color: var(--lime); color: var(--lime); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; } .share-row a.share-btn { text-decoration: none; }
.drawer .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; } .drawer .badge-row img { height: auto; max-width: 100%; display: block; }
.share-menu { display: flex; flex-direction: column; margin-top: 8px; width: 100%; max-width: 280px; background: var(--glass2); border: 1px solid color-mix(in srgb, var(--lime) 30%, transparent); border-radius: 12px; padding: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.share-menu a, .share-menu button { display: block; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0; color: var(--fg); text-decoration: none; font-size: 14px; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: color-mix(in srgb, var(--lime) 12%, transparent); }
.badge, .badge3d { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #241a00; background: linear-gradient(#ffe7a0, #f3b733); border-radius: 999px; padding: 3px 9px 3px 5px; white-space: nowrap; }
.badge svg, .badge3d svg { width: 15px; height: 15px; flex: none; }
.badge.new { background: var(--signal, #ff6b8b); color: #fff; padding-left: 9px; }

/* now: live, a period, paused */
.now { left: 16px; bottom: 134px; max-width: min(760px, calc(100vw - var(--side) - 64px)); display: flex; gap: 10px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.now .mode { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); background: var(--lime); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.now.replay .mode { background: var(--amber); }
.now.paused .mode { background: var(--mut); }
.now .clock { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.now .ticker { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* timeline */
.timeline { left: 16px; right: 16px; bottom: 14px; height: 110px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 6px; }
.tl-controls { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
#btn-play { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 8px; min-width: 40px; min-height: 32px; cursor: pointer; }
.periods { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, 0.04); flex: none; }
.periods button { border: 0; background: none; padding: 5px 12px; min-height: 32px; font-weight: 700; font-size: 13px; color: var(--mut); white-space: nowrap; cursor: pointer; }
.periods button + button { border-left: 1px solid var(--line); }
.periods button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.p-live { display: inline-flex; align-items: center; gap: 6px; }
.p-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal, #ff5d5d); }
.p-live.ping::before { animation: ping 1.1s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.8); } 100% { box-shadow: 0 0 0 9px rgba(255, 93, 93, 0); } }
.tl-hint { color: var(--mut); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-legend { margin-left: auto; color: var(--mut); font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.tl-legend i.h { background: var(--lime); } .tl-legend i.b { background: var(--bot); margin-left: 6px; }
.track { position: relative; height: 54px; cursor: ew-resize; touch-action: none; user-select: none; }
.track canvas { width: 100%; height: 40px; display: block; }
.track .window { position: absolute; top: 0; height: 40px; background: color-mix(in srgb, var(--lime) 8%, transparent); border-left: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); pointer-events: none; }
.track .head { position: absolute; top: -2px; height: 44px; width: 2px; background: var(--fg); box-shadow: 0 0 10px var(--fg); pointer-events: none; }
.track .head span { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--fg); color: var(--ink); border-radius: 4px; padding: 0 5px; white-space: nowrap; font-weight: 700; }
.track .days { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: flex; font-size: 11px; color: var(--mut); }
.track .days span { flex: 1; border-left: 1px solid var(--line); padding-left: 4px; overflow: hidden; white-space: nowrap; }

/* in the scene: group names, medals, new projects; hidden while they would cover each other or the panels */
.lbl, .badge3d, .new3d { transition: opacity 0.25s; pointer-events: none; }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--bg) 66%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; letter-spacing: 0.2px; }
.lbl em { font-style: normal; color: var(--signal-text, #ff8fa6); margin-left: 4px; }
.lbl .c { display: none; }
.zoomed .lbl .c { display: inline; }
.lbl.sub { font-size: 11px; font-weight: 500; color: var(--mut); background: color-mix(in srgb, var(--bg) 50%, transparent); padding: 1px 7px; }
.badge3d { font-size: 11.5px; box-shadow: 0 0 14px rgba(255, 205, 80, 0.45); }
.new3d { font-size: 11px; font-weight: 800; color: #fff; background: var(--signal, #ff6b8b); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.culled { opacity: 0 !important; transition: none !important; } /* hide at once, fade in only */

/* notices (a new version, a new project): under the filter bar on wide screens, under the header elsewhere */
.toasts { top: var(--below, calc(var(--top) + 46px)); left: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; z-index: 9; max-width: calc(100vw - 32px); pointer-events: none; }
.toasts:not(:has(.toast:not([hidden]))) { display: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--glass2); border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); border-radius: 12px; padding: 7px 6px 7px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); max-width: 100%; font-size: 13.5px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.updot { width: 8px; height: 8px; flex: none; background: var(--lime); border-radius: 2px; animation: upblink 1.6s steps(2) infinite; }
@keyframes upblink { 50% { opacity: 0; } }
.toast .go { background: var(--lime); color: var(--ink); border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.toast .x { background: none; border: 0; color: var(--mut); font-size: 20px; line-height: 1; width: 32px; height: 32px; cursor: pointer; flex: none; }
.news-toast { border-color: rgba(255, 107, 139, 0.6); }
.news-toast .tag { background: var(--signal, #ff6b8b); color: #fff; border-radius: 6px; padding: 2px 7px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.news-toast .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) { body.drawer-open .toasts, .side:not(.closed) ~ .toasts { visibility: hidden; } .toasts { left: 12px; right: 12px; max-width: none; align-items: stretch; } .toast > span:nth-child(2), .news-toast .what { flex: 1; } }
/* a phone has no room for the project's name and three buttons on one line (at 390 px it showed 111 px of 257): the
   name keeps the line and the buttons move under it, to the right */
@media (max-width: 600px) { .news-toast { flex-wrap: wrap; row-gap: 6px; } .toast.news-toast .what { flex: 1 1 calc(100% - 64px); white-space: normal; overflow-wrap: anywhere; } .news-toast .go { margin-left: auto; } }

/* tooltip */
.tip { position: fixed; z-index: 9; max-width: 300px; background: var(--glass2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; pointer-events: none; }
.tip b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tip span { display: block; color: var(--mut); }
.tip span.g { color: var(--fg); font-size: 12px; margin-bottom: 3px; }
.tip em { display: block; font-style: normal; color: var(--lime); font-size: 12px; margin-top: 4px; }
/* keyboard and screen readers: a link to the list comes first, and whatever has the focus wears a ring */
.skip { position: fixed; top: 8px; left: 8px; z-index: 30; background: var(--lime); color: var(--ink); font-weight: 800; padding: 10px 14px; border-radius: 10px; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.drawer h2:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the welcome card */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 3, 0.55); animation: fade 0.3s ease-out; }
@keyframes fade { from { opacity: 0; } }
.intro .card { position: relative; width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--glass2); border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); border-radius: 18px; padding: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.intro h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; }
.intro .lead { margin: 0 0 16px; color: var(--fg); font-size: 15px; line-height: 1.55; }
.intro .how { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.intro .how li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.45; }
.intro .how svg { width: 34px; height: 34px; }
.intro h3 { margin: 0 0 8px; font-size: 13px; color: var(--mut); font-weight: 600; }
.intro .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin-bottom: 20px; }
.intro .legend span { display: inline-flex; gap: 7px; align-items: center; }
.intro .legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.intro .primary { display: block; width: 100%; background: var(--lime); color: var(--ink); border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 800; font-size: 16px; cursor: pointer; }
.intro .primary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.intro .fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--mut); }
.intro .fine.by { margin-top: 6px; }
/* floated, so the title wraps around it on a phone instead of running under it */
.intro .langs { float: right; margin: -6px -6px 10px 14px; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.intro .langs button { background: none; border: 0; padding: 6px 10px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--mut); }
.intro .langs button[aria-pressed="true"] { background: color-mix(in srgb, var(--lime) 18%, transparent); color: var(--fg); }

/* phones: the projects as bars (2026-10-26), with a switch to the scene above them */
@property --w { syntax: "<number>"; inherits: true; initial-value: 0; }
.viewbar { top: var(--top); left: 12px; right: 12px; z-index: 9; display: flex; align-items: center; gap: 10px; height: 34px; }
.vb-cap { margin: 0; flex: 1; min-width: 0; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:not(.bars) .vb-cap { visibility: hidden; }
.vb-seg button { padding: 6px 12px; font-weight: 700; min-height: 32px; }
body.drawer-open .viewbar { visibility: hidden; }
body.bars #stage { display: none; }
body.bars .top::before { bottom: 0; }
.barsview { position: fixed; z-index: 4; left: 0; right: 0; top: var(--bv-top, calc(var(--top) + 40px)); bottom: var(--bv-bottom, 300px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 8px; }
.bv { list-style: none; margin: 0; padding: 0; }
.bvr { --fw: 72px; position: relative; border-radius: 12px; transition: --w 0.6s ease; }
.bvr.hit { animation: bvhit 1.4s ease-out; }
@keyframes bvhit { from { background: color-mix(in srgb, var(--hit) 26%, transparent); } }
.bvr.hit .bvr-n { animation: bvn 0.6s ease-out; }
@keyframes bvn { 30% { transform: scale(1.25); } }
.bvr-main { display: block; width: 100%; padding: 7px 10px 6px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.bvr-main:active { background: color-mix(in srgb, var(--lime) 7%, transparent); }
.bvr-head { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.bvr-name { font-weight: 700; font-size: 15px; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvr-head small { color: var(--mut); font-size: 12px; min-width: 0; flex: 0 100 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvr-tags { display: inline-flex; gap: 4px; align-self: center; flex: none; }
.bvr-tags:empty { display: none; }
.bvr-tags .t-medal svg { width: 17px; height: 17px; display: block; }
.bvr-tags .t-new, .bvr-tags .t-chain, .bvr-tags .t-star { font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.bvr-tags .t-new { color: #fff; background: var(--signal, #ff6b8b); }
.bvr-tags .t-chain { color: var(--ink); background: var(--fg); }
.bvr-tags .t-star { color: var(--ink); background: var(--lime); }
.bvr-n { margin-left: auto; flex: none; font-size: 15px; color: var(--lime); font-variant-numeric: tabular-nums; }
.bvr-line { display: block; position: relative; height: 26px; margin-top: 1px; }
.bvr-bar { position: absolute; left: 0; top: 8px; height: 10px; width: calc((100% - var(--fw)) * var(--w)); display: flex; gap: 2px; border-radius: 5px; overflow: hidden; }
.bvr-bar i { display: block; height: 100%; min-width: 3px; }
.bvr-faces { position: absolute; left: calc(16px + (100% - 20px - var(--fw)) * var(--w)); bottom: 6px; display: flex; }
/* the ticker keeps to one line over the bars: the list needs the height more than the sentence does */
body.bars .now { display: flex; padding: 7px 10px; border-bottom: 1px solid var(--line); }
body.bars .now .ticker { white-space: nowrap; }
.bvr-faces button { width: 26px; height: 26px; padding: 0; border: 2px solid var(--bg); border-radius: 50%; background: var(--surface); overflow: hidden; cursor: pointer; }
.bvr-faces button + button { margin-left: -6px; }
.bvr-faces img { width: 100%; height: 100%; display: block; }
.bv-none { color: var(--mut); padding: 16px 10px; margin: 0; }
.bv-more { margin: 10px 10px 4px; }
.bv-more::before { content: "\25B8"; color: var(--mut); }
.bv-more[aria-expanded="true"]::before { content: "\25BE"; }
.bv-rest { list-style: none; margin: 4px 0 0; padding: 0; }
.bv-rest button { display: flex; align-items: baseline; gap: 7px; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.bv-rest small { color: var(--mut); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .bvr { transition: none; } .bvr.hit, .bvr.hit .bvr-n { animation: none; } }

/* outlines while the first state is on its way (index.html): the real markup with its words hidden, and no number that
   could read as an answer. .wait comes off once the state is drawn; the outlined rows are replaced by the real ones */
.sk-t { color: transparent !important; font-style: normal; background: color-mix(in srgb, var(--lime) 8%, transparent); border-radius: 6px; }
.feed .sk .sk-t { width: fit-content; }
.sk .sk-av { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
.sk .sk-bar { flex: 1; background: color-mix(in srgb, var(--lime) 10%, transparent); }
.sk, .kpis .sk-t, .vb-seg [aria-busy="true"] { animation: skpulse 1.6s ease-in-out infinite; }
@keyframes skpulse { 50% { opacity: 0.55; } }
.wait #fams b, .wait #bots-n, .wait #k-cap { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .sk, .kpis .sk-t, .vb-seg [aria-busy="true"] { animation: none; } }

/* the trial layout (?ui=next, 2026-10-29): bars on wide screens too, in a centred column left of the panel; while live
   the panel already shows the latest, so the strip above the timeline only speaks for a period or a pause */
@media (min-width: 861px) {
  .next .viewbar { left: var(--bv-l, 16px); right: var(--bv-r, 16px); }
  .next .barsview { left: var(--bv-l, 16px); right: var(--bv-r, 16px); padding: 0 0 8px; }
  .next .now:not(.replay):not(.paused) { visibility: hidden; }
  .next body.drawer-open .viewbar { visibility: visible; } /* a card here takes the panel's place, not the list's */
  .next body.bars .now { left: var(--bv-l, 16px); border-bottom: 1px solid var(--line); }
}
.drawer details.dev { margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.drawer details.dev summary { cursor: pointer; color: var(--mut); font-size: 13px; }
.drawer details.dev[open] summary { margin-bottom: 8px; }

/* no WebGL 2: the bars only (index.html picks them), with no way to the scene */
.nogl #stage, .nogl .vb-seg { display: none; }

/* the three views next to the name where the header has room for them (measured at 1280 and wider) */
@media (min-width: 1280px) { .views-slot { display: inline-flex; } }

/* medium screens */
@media (max-width: 1599px) { :root { --side: 340px; } }
@media (min-width: 861px) and (max-width: 1199px) {
  .brand p { display: none; }
  .kpis { flex-wrap: wrap; }
  .kcap { flex-basis: 100%; width: auto; margin: 0; text-align: center; }
  .search input { width: 170px; }
  .filt-btn .lbl-txt { display: none; }
}

/* phones */
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; padding: 10px 12px; gap: 8px; }
  .brand h1 { font-size: 18px; } .brand p { display: none; }
  .kpis { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 6px; }
  .kpis .kpi { min-width: 0; flex: 1; padding: 4px 6px; } .kpis b { font-size: 18px; } .kpis span { font-size: 11.5px; }
  .kcap { flex-basis: 100%; width: auto; margin: -2px 0 0; text-align: center; font-size: 11.5px; }
  .tools { grid-column: 2; grid-row: 1; gap: 6px; }
  .only-narrow, .icon.only-narrow { display: inline-flex; }
  .icon.full, .filt-btn .lbl-txt { display: none; }
  .icon { min-width: 36px; height: 36px; padding: 0 8px; }
  .top .pm-btn { width: 36px; height: 36px; }
  .search { display: none; }
  .search.open { display: block; position: fixed; top: 54px; left: 12px; right: 12px; z-index: 12; }
  /* the header is its own layer: while the search is open it goes above the bars switch, or the switch takes the taps
     meant for the first results (2026-11-01, a tap on fiber-lsp-sdk turned the page to 3D) */
  .top:has(.search.open) { z-index: 10; }
  .search.open input { width: 100%; padding: 10px 12px; font-size: 16px; background: var(--glass2); }
  .search.open ul { top: 48px; left: 0; right: 0; width: auto; }
  .fpop .filters.open { left: 12px; right: 12px; width: auto; }
  :root { --sab: env(safe-area-inset-bottom, 0px); --sheet: 36vh; }
  .side { top: auto; left: 12px; right: 12px; width: auto; bottom: calc(128px + var(--sab)); height: var(--sheet); transition: height 0.3s ease; }
  .side.closed { transform: none; height: 46px; }
  .side.dragging { transition: none; }
  .side .tabs { touch-action: none; padding-top: 12px; position: relative; cursor: grab; }
  .side .tabs::before { content: ""; position: absolute; top: 4px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }
  .side.closed [data-pane] { visibility: hidden; }
  .side.closed .collapse { transform: rotate(90deg); } .collapse { transform: rotate(-90deg); }
  .drawer { left: 12px; right: 12px; width: auto; bottom: calc(128px + var(--sab)); }
  .now { left: 12px; right: 12px; max-width: none; bottom: calc(136px + var(--sab) + var(--sheet)); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 22px; padding: 7px 10px 0; border-bottom: 7px solid transparent; background-clip: border-box; }
  .now .mode, .now .clock { margin-right: 6px; }
  .now .ticker { white-space: normal; overflow-wrap: anywhere; }
  .side.closed ~ .now { bottom: calc(182px + var(--sab)); }
  body.drawer-open .now, body.sheet-tall .side:not(.closed) ~ .now { visibility: hidden; }
  .timeline { left: 8px; right: 8px; bottom: calc(8px + var(--sab)); height: 112px; padding: 6px 8px; }
  .tl-legend { display: none; }
  .periods button { padding: 5px 10px; }
  .lbl { font-size: 11px; padding: 1px 7px; }
}
@media (max-width: 520px) { .tl-hint { display: none; } }
@media (max-width: 360px) {
  .icon { min-width: 33px; height: 33px; padding: 0 6px; }
  .top .pm-btn { width: 33px; height: 33px; }
  .kpis { gap: 4px; } .kpis .kpi { padding: 4px 3px; } .kpis b { font-size: 16px; } .kpis span { font-size: 10.5px; }
  .brand h1 { font-size: 16px; }
  .periods button { padding: 5px 8px; font-size: 12.5px; }
  .intro .card { padding: 18px; } .intro h2 { font-size: 20px; } .intro .lead, .intro .how li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .live.on, .feed li.new, .drawer, .intro, .p-live.ping::before, .updot { animation: none; } }

/* Cellula's look (2026-11-02): numbers and small labels in mono, switches as pills; sizes stay where they were */
.kpis b, .now .clock, .hl b, .hl .rk, .bvr-n, .seg button b, .drawer .list b, .kcap, .lbl, .tl-hint, .t-axis { font-family: var(--font-num); }
.kpis b { letter-spacing: -0.02em; font-weight: 600; }
.brand h1 { letter-spacing: -0.01em; }
.seg, .periods { border-radius: 999px; }
.tabs button { border-radius: 999px; }
.kpis .kpi { border-radius: 14px; }

/* the one line a first visit through a shared link gets instead of the welcome card (panel and project card) */
.newhere { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 8px 4px 14px; font-size: 12.5px; color: var(--mut); border-bottom: 1px solid var(--line); }
.newhere[hidden] { display: none; }
.newhere .link { background: none; border: 0; padding: 6px 2px; color: var(--lime); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.newhere .x { margin-left: auto; background: none; border: 0; color: var(--mut); font-size: 20px; line-height: 1; width: 32px; height: 32px; cursor: pointer; }
.drawer .newhere { margin: -16px 36px 12px -16px; padding-left: 16px; border-bottom: 0; }
.drawer .newhere .x { display: none; }

/* a phone held sideways: 360 to 430 px of height. The numbers move up beside the name, the ticker goes, and what is
   left is for the list of projects (it measured 8 px tall, and showed nothing, with no hint why: 2026-11-18) */
@media (max-width: 960px) and (max-height: 460px) {
  .top { grid-template-columns: auto 1fr auto; padding: 6px 12px; }
  .kpis { grid-column: 2; grid-row: 1; flex-wrap: nowrap; justify-content: center; }
  .kpis .kpi { flex: 0 1 110px; padding: 2px 6px; } .kpis b { font-size: 16px; } .kpis span { font-size: 11px; }
  .kcap { display: none; }
  .tools { grid-column: 3; }
  #now { display: none; }
}

/* where a project stands, in one pill at the top of its card */
.drawer .stat { display: inline-block; margin: 2px 0 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--mut); }
.drawer .st-active { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.drawer .st-quiet { color: #ffc58a; border-color: #7a4a1f; }

/* the marks an account carries: IA for an AI account, Operator for the people behind Pulse */
.tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px; font: 700 11px var(--num, monospace); font-style: normal; letter-spacing: 0.04em; vertical-align: middle; }
.tag-ai { background: var(--surface); color: var(--signal-text); border: 1px solid var(--signal-text); }
.tag-op { background: var(--surface); color: var(--fg); border: 1px solid var(--edge); }

/* dated facts on a person's card */
.drawer .marks span { border-color: color-mix(in srgb, var(--lime) 35%, transparent); color: var(--fg, #f0ece2); }

/* The screen for calls (?screen=1): the scene, the name, the three numbers and the latest update, large enough for a
   projector. No panels, no welcome card, no timeline; the pointer hides after three seconds and so does the small bar
   that offers full screen and the way out. */
.screen .filters, .screen .side, .screen .drawer, .screen .timeline, .screen .tools, .screen .views-slot, .screen .brand p, .screen .kcap, .screen .viewbar, .screen .toasts, .screen .intro, .screen .tip { display: none !important; }
.screen .top { padding: 22px 28px; }
.screen .brand h1 { font-size: 34px; }
.screen .live { width: 14px; height: 14px; }
.screen .kpis { pointer-events: none; gap: 14px; }
.screen .top .kpis .kpi { min-width: 132px; padding: 10px 20px; border-radius: 16px; }
.screen .kpis b { font-size: 40px; }
.screen .kpis span { font-size: 16px; }
.screen .now { left: 28px; right: 28px; bottom: 26px; max-width: none; font-size: 22px; padding: 14px 22px; border-radius: 16px; }
.screen .now .mode { font-size: 15px; padding: 4px 10px; }
.screen .lbl { font-size: 19px; padding: 4px 14px; }
.screen .lbl.sub { font-size: 15px; }
.screen .badge3d { font-size: 17px; }
.screen .new3d, .screen .star3d { font-size: 15px; }
.screen-bar { display: none; }
.screen .screen-bar { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 9; right: 28px; top: 24px; transition: opacity 0.3s; }
.screen-bar button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--fg); cursor: pointer; }
.screen-bar button svg { width: 18px; height: 18px; }
.screen-bar a { color: var(--mut); font-size: 14px; text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); }
.screen-bar button:hover, .screen-bar a:hover { border-color: var(--lime); color: var(--lime); }
.screen.still, .screen.still * { cursor: none !important; }
.screen.still .screen-bar { opacity: 0; pointer-events: none; }

/* The LusoCryptoLabs look on the live page (2026-11-18): Ink, Archivo and Space Mono, straight corners, the red as the
   signal. The scene is always the dark stage, so this page is dark whatever look the plain pages are in. The data keeps
   its own colours: the five families of work, the chain mark and the medals. Only the dots and the faces are round. */
html[lang] { --pulse: var(--signal); --line: var(--edge); }
html[lang] .brand h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
html[lang] .brand p { display: none; }
html[lang] .brand > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
html[lang] .live, html[lang] .tabs .dot, html[lang] .p-live::before, html[lang] .switch i::after,
html[lang] .search li img, html[lang] .feed img, html[lang] .hl img, html[lang] .hl .sw,
html[lang] .drawer .people img, html[lang] .drawer .person img, html[lang] .drawer .list img,
html[lang] .bvr-faces button, html[lang] .sk .sk-av { border-radius: 50% !important; }
html[lang] .kpis b, html[lang] .done, html[lang] .intro .primary { font-family: var(--font-num); }
/* for a projector the name and the studio under it are larger (the look's own rules are more specific, hence the html prefix) */
html[lang].screen .brand h1 { font-size: 42px; }
html[lang].screen .pm-by-lcl { font-size: 12px; gap: 9px; }
html[lang].screen .pm-by-lcl img { width: 160px; }
