/* Lab Home: projects on the left, the focus project on the right (docs/DESIGN_DIRECTION.md).
   Tokens are Home-level on purpose: other pages keep their surfaces until reviewed. */
body.preview-ui #lab-home,body.preview-ui #project-overview{
 --home-bg:var(--pv-bg);--home-side:var(--pv-side);--home-surface:var(--pv-surface);--home-surface-2:var(--pv-surface-2);--home-line:var(--pv-line);--home-line-2:var(--pv-line-2);
 --home-ink:var(--pv-ink);--home-ink-2:var(--pv-ink-2);--home-muted:var(--pv-muted);
 --home-gold:var(--pv-accent);--home-gold-ink:var(--pv-accent-ink);--home-gold-tint:var(--pv-accent-tint);--home-gold-line:color-mix(in srgb,var(--pv-accent) 35%,var(--home-line));
 --home-ok:var(--pv-ok);--home-ok-tint:var(--pv-ok-tint);--home-warn:var(--pv-warn);--home-warn-tint:var(--pv-warn-tint);--home-live:var(--pv-info);--home-live-tint:var(--pv-info-tint);--home-dark:var(--pv-ink);
 --home-radius:var(--t-radius-lg);--home-radius-sm:var(--ui-radius)}
body.preview-ui #lab-home{display:block;min-height:calc(100dvh - var(--ui-header-height,56px));background:var(--home-bg);color:var(--home-ink);font-family:var(--sans-app,var(--sans))}
:root[data-theme=dark] body.preview-ui #lab-home,:root[data-theme=dark] body.preview-ui #project-overview{
 --home-bg:var(--pv-bg);--home-side:var(--pv-side);--home-surface:var(--pv-surface);--home-surface-2:var(--pv-surface-2);--home-line:var(--pv-line);--home-line-2:var(--pv-line-2);
 --home-ink:var(--pv-ink);--home-ink-2:var(--pv-ink-2);--home-muted:var(--pv-muted);
 --home-gold:var(--pv-accent);--home-gold-ink:var(--pv-accent-ink);--home-gold-tint:var(--pv-accent-tint);--home-gold-line:color-mix(in srgb,var(--pv-accent) 40%,var(--home-line));
 --home-ok:var(--pv-ok);--home-ok-tint:var(--pv-ok-tint);--home-warn:var(--pv-warn);--home-warn-tint:var(--pv-warn-tint);--home-live:var(--pv-info);--home-live-tint:var(--pv-info-tint);--home-dark:var(--pv-ink)}
body.preview-ui #lab-home[hidden]{display:none!important}
body.preview-ui #lab-home :is(h1,h2,h3,p){margin:0}
body.preview-ui #lab-home :is(button,input,textarea,select,summary){font-family:inherit}
body.preview-ui #lab-home :is(button,a,summary,[contenteditable]):focus-visible{outline:2px solid var(--pv-live);outline-offset:2px}
body.preview-ui #lab-home button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.lab-shell{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:calc(100dvh - var(--ui-header-height,56px))}
.lab-muted{font-size:13px;line-height:1.6;color:var(--home-muted)}
.lab-small{font-size:12px;line-height:1.6}
.lab-quiet{padding:6px 0}
.lab-link{border:0;padding:0;background:none;color:var(--home-gold-ink);font:500 13px/1.6 inherit;font-family:inherit;text-align:left;cursor:pointer;border-radius:4px}
.lab-link:hover{text-decoration:underline}.lab-link:disabled{cursor:wait;opacity:.7}
.lab-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}
.lab-section-head h2{font-size:14px;font-weight:600}
.lab-section-head small{font-size:12px;color:var(--home-muted)}

/* Left column */
.lab-side{position:sticky;top:var(--ui-header-height,56px);align-self:start;max-height:calc(100dvh - var(--ui-header-height,56px));overflow-y:auto;display:flex;flex-direction:column;gap:22px;padding:24px 18px 28px;background:var(--home-side);border-right:1px solid var(--home-line)}
.lab-brand{display:flex;flex-direction:column;gap:8px;padding:0 6px}
.lab-wordmark{font-family:var(--sans-brand,var(--sans));font-size:26px;font-weight:500;letter-spacing:.02em;color:var(--home-gold);line-height:1}
.lab-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.lab-logo{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid var(--home-line);border-radius:8px;background:var(--home-surface);overflow:hidden;padding:0;cursor:pointer}
.lab-logo img{width:100%;height:100%;object-fit:contain}
button.lab-logo:hover:not(:disabled){border-color:var(--home-gold)}button.lab-logo:disabled{cursor:default}
body.preview-ui #lab-home .lab-name{font-size:13px;font-weight:600;color:var(--home-ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
body.preview-ui #lab-home .lab-tagline{width:100%;font-size:12px;color:var(--home-muted);line-height:1.5;overflow-wrap:anywhere}
body.preview-ui #lab-home [data-lab-preference][contenteditable]{outline:none;border-radius:6px;padding:2px 4px;margin-left:-4px;min-width:80px;cursor:text}
body.preview-ui #lab-home [data-lab-preference][contenteditable]:hover{background:var(--home-surface)}
body.preview-ui #lab-home [data-lab-preference][contenteditable]:focus{background:var(--home-surface);box-shadow:0 0 0 2px var(--home-gold-tint)}
body.preview-ui #lab-home [data-lab-preference][contenteditable]:empty::before{content:attr(data-placeholder);color:var(--home-muted);opacity:.8;font-weight:500}
body.preview-ui #lab-home .lab-name[contenteditable]{white-space:normal;overflow:visible;text-overflow:clip}
.lab-side-nav{display:flex;flex-direction:column;gap:2px}
.lab-side-nav button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--home-ink-2);font-size:14px;font-weight:500;text-align:left;cursor:pointer;transition:background-color .12s ease,color .12s ease}
.lab-side-nav button svg{flex:none;color:var(--home-muted)}
.lab-side-nav button:hover{background:var(--home-surface);color:var(--home-ink)}
.lab-side-nav button[aria-current]{background:var(--home-surface);color:var(--home-ink);font-weight:600;box-shadow:0 1px 2px #2a272110}
.lab-side-nav button[aria-current] svg{color:var(--home-gold)}
.lab-side-projects{display:flex;flex-direction:column;gap:6px;padding:0 4px}
.lab-side-projects h2{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--home-muted);padding:4px 8px 6px}
.lab-project-grid{display:flex;flex-direction:column;gap:2px}
.lab-project-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--home-ink-2);font-size:13px;text-align:left;cursor:pointer;transition:background-color .12s ease}
.lab-project-row svg{flex:none;color:var(--home-muted)}
.lab-project-row:hover{background:var(--home-surface)}
.lab-project-row[aria-current]{background:var(--home-surface);color:var(--home-ink);font-weight:600;box-shadow:0 1px 2px #2a272110}
.lab-project-row[aria-current] svg{color:var(--home-gold)}
.lab-project-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lab-project-flag{flex:none;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:9px;background:var(--home-gold-tint);color:var(--home-gold-ink);font-size:11px;font-weight:600}
.lab-project-error .lab-project-flag{background:var(--home-warn-tint);color:var(--home-warn)}
.lab-new-project{display:flex;align-items:center;gap:10px;margin-top:4px;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:var(--home-ink-2);font-size:13.5px;font-weight:500;text-align:left;cursor:pointer}
.lab-new-project:hover{background:var(--home-surface);color:var(--home-ink)}
.lab-resume{display:flex;flex-direction:column;gap:2px;margin-top:8px;padding:10px 12px;border:1px solid var(--home-gold-line);border-radius:10px;background:var(--home-gold-tint);color:var(--home-ink);text-align:left;cursor:pointer;min-width:0}
.lab-resume small{font-size:11px;color:var(--home-gold-ink);font-weight:600}
.lab-resume small:last-child{font-weight:500;color:var(--home-ink-2)}
.lab-resume strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lab-resume:hover{border-color:var(--home-gold)}

/* Right column */
.lab-content{min-width:0;display:flex;flex-direction:column;gap:18px;padding:22px 36px 56px;max-width:1240px}
.lab-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lab-crumbs{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--home-muted);min-width:0}
.lab-crumbs strong{font-weight:500;color:var(--home-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lab-icon-button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--home-muted);cursor:pointer}
.lab-icon-button:hover{background:var(--home-surface);color:var(--home-ink)}
.lab-project-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.lab-project-copy{min-width:0;flex:1 1 360px}
body.preview-ui #lab-home h1{font-size:30px;font-weight:600;line-height:1.2;letter-spacing:-.01em;text-wrap:balance;overflow-wrap:anywhere}
.lab-project-copy p{margin-top:8px;font-size:14px;color:var(--home-muted);line-height:1.55;max-width:70ch}
.lab-head-actions{display:flex;align-items:center;gap:10px;flex:none}
.lab-team{display:inline-flex;align-items:center;gap:6px;padding:4px 8px 4px 4px;border:0;border-radius:999px;background:transparent;cursor:pointer;color:var(--home-ink-2)}
.lab-team:hover{background:var(--home-surface)}
.lab-team-go{font-size:15px;color:var(--home-ink-2)}
.lab-avatar{width:30px;height:30px;flex:none;border:2px solid var(--home-surface);border-radius:50%;display:inline-grid;place-items:center;background:var(--home-gold-tint);color:var(--home-gold-ink);font-size:11px;line-height:1;font-weight:600}
.lab-avatar.small{width:28px;height:28px;font-size:10px}
.lab-stack{display:inline-flex;align-items:center;flex-shrink:0;padding-left:6px}
.lab-stack .lab-avatar{margin-left:-6px}
body.preview-ui #lab-home .button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid var(--home-line);border-radius:10px;background:var(--home-surface);color:var(--home-ink);font-size:14px;font-weight:500;cursor:pointer}
body.preview-ui #lab-home .button:hover{background:var(--home-surface-2)}
body.preview-ui #lab-home .button.lab-dark{background:var(--home-dark);border-color:var(--home-dark);color:#FFFDF9;font-weight:600}
:root[data-theme=dark] body.preview-ui #lab-home .button.lab-dark{color:#17161A}
body.preview-ui #lab-home .button.lab-dark:hover{filter:brightness(1.08)}
.lab-run>summary[aria-disabled=true]{opacity:.6}
.lab-tabs{display:flex;gap:4px;border-bottom:1px solid var(--home-line);overflow-x:auto;scrollbar-width:none}
.lab-tabs button{position:relative;flex:none;padding:10px 14px 12px;border:0;background:transparent;color:var(--home-muted);font-size:14px;font-weight:500;cursor:pointer;border-radius:8px 8px 0 0}
.lab-tabs button:hover{color:var(--home-ink);background:var(--home-surface)}
.lab-tabs button[aria-selected=true]{color:var(--home-gold-ink);font-weight:600}
.lab-tabs button[aria-selected=true]::after{content:'';position:absolute;left:12px;right:12px;bottom:-1px;height:2px;border-radius:2px;background:var(--home-gold)}

/* Needs attention: compact, once. */
.lab-attention{display:flex;flex-direction:column;gap:6px;padding:14px 18px;border:1px solid var(--home-gold-line);border-radius:var(--home-radius);background:var(--home-gold-tint)}
.lab-attention .lab-section-head{margin-bottom:4px}
.lab-live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;margin-bottom:6px}
.lab-live-card{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:12px 16px 16px;border:1px solid var(--home-line);border-radius:10px;background:var(--home-surface);text-align:left;color:var(--home-ink);overflow:hidden;cursor:pointer}
.lab-live-card:hover{border-color:var(--home-live)}
.lab-live-card.ready{border-color:var(--home-ok);background:var(--home-ok-tint)}
.lab-live-card>span:first-child{min-width:0}
.lab-live-card strong{display:block;font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.lab-live-card small{display:block;font-size:12px;color:var(--home-muted);line-height:1.55;overflow-wrap:anywhere}
.lab-timer{font:600 21px/1.3 var(--mono);font-variant-numeric:tabular-nums;color:var(--home-live);flex:none}
.lab-live-card.ready .lab-timer{color:var(--home-ok);font-size:17px}
.lab-timer-progress{height:3px;position:absolute;bottom:0;left:0;background:var(--home-live);transition:width 1s linear}
.lab-live-card.ready .lab-timer-progress{background:var(--home-ok)}
.lab-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:4px 16px}
.lab-queue-item{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:7px 6px;text-align:left;color:var(--home-ink);min-width:0;cursor:pointer;border-radius:8px}
.lab-queue-item:hover{background:var(--home-surface)}
.lab-queue-item>span:nth-child(2){flex:1;min-width:0}
.lab-queue-item strong{font-size:13px;font-weight:500;line-height:1.4;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lab-queue-item small{font-size:11.5px;line-height:1.5;color:var(--home-muted);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lab-arrow{color:var(--home-muted);flex:none;font-size:13px}
.lab-glyph{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:7px;background:var(--home-surface);color:var(--home-muted)}
.lab-glyph svg{width:15px;height:15px}
.lab-glyph:is(.timer,.run){color:var(--home-live)}
.lab-glyph.decision{color:var(--home-gold-ink)}
.lab-glyph:is(.deadline,.attention,.stock){color:var(--home-warn)}
.lab-more-queue>summary{color:var(--home-gold-ink);font-size:12px;cursor:pointer;padding:6px}
.lab-notice{border:1px solid var(--home-warn-tint);border-radius:var(--home-radius-sm);padding:12px 14px;background:var(--home-warn-tint);color:var(--home-warn);font-size:13px;line-height:1.6}
.lab-empty{padding:40px 22px;text-align:center;border:1px dashed var(--home-line);border-radius:var(--home-radius);background:var(--home-surface)}
.lab-empty strong{display:block;font-weight:600;margin-bottom:6px}

/* Cards */
.lab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.pc-card{display:flex;flex-direction:column;min-width:0;padding:20px 22px;border:1px solid var(--home-line);border-radius:var(--home-radius);background:var(--home-surface);box-shadow:0 1px 2px #2a27210a}
.pc-skeleton{min-height:260px;background:linear-gradient(90deg,var(--home-surface),var(--home-surface-2),var(--home-surface));background-size:200% 100%}
.pc-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.pc-head h2{font-size:17px;font-weight:600}
.pc-head small{font-size:12px;color:var(--home-muted)}
.pc-link{border:0;padding:0;background:none;color:var(--home-gold-ink);font:500 12.5px/1.5 inherit;font-family:inherit;cursor:pointer}
.pc-link:hover{text-decoration:underline}
.pc-muted{font-size:13px;color:var(--home-muted);line-height:1.55;margin:0}
.pc-footnote{margin:12px 0 0;font-size:11.5px;color:var(--home-muted);line-height:1.5}
.pc-empty{display:grid;gap:6px;justify-items:start;padding:6px 0}
.pc-empty p{margin:0;font-size:13.5px}
.pc-empty .button{margin-top:6px}
.pc-progress-body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center}
.pc-ring{position:relative;margin:0;width:150px;height:150px}
.pc-ring svg{width:100%;height:100%}
.pc-ring-track{fill:none;stroke:var(--home-line-2);stroke-width:9}
.pc-ring-value{fill:none;stroke:var(--home-gold);stroke-width:9;stroke-linecap:round}
.pc-ring figcaption{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.pc-ring figcaption strong{font-size:28px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.pc-ring figcaption small{color:var(--home-muted);font-size:11px;max-width:90px;line-height:1.3}
.pc-rows{display:grid;gap:2px}
.pc-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 8px;border:0;border-radius:8px;background:transparent;color:var(--home-ink);text-align:left;cursor:pointer}
.pc-row:hover{background:var(--home-surface-2)}
.pc-row-copy{flex:1;min-width:0}
.pc-row strong{display:block;font-size:13.5px;font-weight:500}
.pc-row small{display:block;color:var(--home-muted);font-size:11.5px;margin-top:2px}
.pc-row b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.pc-activity-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pc-activity-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--home-line-2);min-width:0}
.pc-activity-list li:last-child{border-bottom:0}
.pc-avatar{width:30px;height:30px;flex:none;border-radius:50%;display:inline-grid;place-items:center;background:var(--home-gold-tint);color:var(--home-gold-ink);font-size:10px;font-weight:600}
.pc-activity-link,.pc-activity-text{flex:1;min-width:0;border:0;padding:0;background:none;color:var(--home-ink);font:500 13.5px/1.45 inherit;font-family:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.pc-activity-text{cursor:default}
.pc-activity-link:hover{color:var(--home-gold-ink)}
.pc-activity-list time{flex:none;font-size:12px;color:var(--home-muted)}
.pc-analogy-list{display:flex;flex-direction:column;gap:4px}
.pc-analogy{display:flex;align-items:center;gap:14px;width:100%;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--home-ink);text-align:left;cursor:pointer}
.pc-analogy:hover{background:var(--home-surface-2)}
.pc-thumb{flex:none;width:96px;height:66px;border-radius:9px;background:var(--home-surface-2);overflow:hidden;display:grid;place-items:center;color:var(--home-gold)}
.pc-thumb svg{width:100%;height:100%}
.pc-thumb-icon svg{width:24px;height:24px}
.pc-analogy-copy{flex:1;min-width:0}
.pc-analogy strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.pc-analogy small{display:block;color:var(--home-muted);font-size:12px;margin-top:2px}
.pc-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.pc-tags em{font-style:normal;font-size:11px;padding:3px 9px;border-radius:999px;background:var(--home-surface-2);color:var(--home-ink-2)}
.pc-stage-wrap{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;flex:1}
.pc-stage{position:relative;min-height:250px;border-radius:10px;overflow:hidden;background:var(--home-surface-2)}
.pc-stage>svg{display:block;width:100%;height:auto;max-height:280px}
.pc-3d{position:absolute;inset:0}
.pc-3d canvas{border-radius:10px}
.pc-3d .j-molecular-label{display:none}
.pc-stage-placeholder{display:grid;place-items:center;min-height:250px;color:var(--home-muted);font-size:12px;text-align:center;padding:12px}
.pc-tools{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.pc-tool{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--home-line);border-radius:10px;background:var(--home-surface);color:var(--home-ink-2);cursor:pointer;transition:background-color .12s ease,border-color .12s ease}
.pc-tool:hover{border-color:var(--home-gold);color:var(--home-ink)}
.pc-tool[aria-pressed=true]{background:var(--home-gold-tint);border-color:var(--home-gold-line);color:var(--home-gold-ink)}
.pc-tool:last-child{margin-top:auto;background:var(--home-dark);border-color:var(--home-dark);color:#FFFDF9}
:root[data-theme=dark] .pc-tool:last-child{color:#17161A}

/* Reading */
.lab-reading-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.lab-reading-list a{display:block;padding:10px 12px;border:1px solid var(--home-line-2);border-radius:9px;color:var(--home-ink);text-decoration:none;background:var(--home-surface)}
.lab-reading-list a:hover{border-color:var(--home-gold)}
.lab-reading-list strong{display:block;font-size:13.5px;font-weight:500;overflow-wrap:anywhere}
.lab-reading-list small{display:block;margin-top:3px;color:var(--home-muted);font-size:11.5px;overflow-wrap:anywhere}

@media(max-width:1100px){.lab-content{padding:20px 24px 48px}.lab-grid{grid-template-columns:1fr}}
@media(max-width:800px){.lab-shell{grid-template-columns:1fr}.lab-side{position:static;max-height:none;border-right:0;border-bottom:1px solid var(--home-line);padding:16px 16px 14px;gap:14px}.lab-side-nav{flex-direction:row;overflow-x:auto;scrollbar-width:none;gap:4px}.lab-side-nav button{width:auto;flex:none;padding:8px 12px;font-size:13px}.lab-project-grid{flex-direction:row;overflow-x:auto;scrollbar-width:none;gap:6px}.lab-project-row{flex:none;max-width:220px;border:1px solid var(--home-line)}.lab-resume{display:none}.lab-content{padding:18px 16px 40px;gap:14px}body.preview-ui #lab-home h1{font-size:24px}.lab-head-actions{flex-wrap:wrap}.pc-stage-wrap{grid-template-columns:1fr}.pc-tools{flex-direction:row}.pc-tool:last-child{margin-top:0;margin-left:auto}.pc-progress-body{grid-template-columns:1fr;justify-items:center}.pc-rows{width:100%}}
@media(max-width:480px){.lab-content{padding:16px 14px 36px}.pc-card{padding:16px}.lab-attention{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){.lab-timer-progress,.lab-side-nav button,.lab-project-row,.pc-tool{transition:none}}
.lab-project-row--failed .lab-project-flag{background:var(--home-warn-tint);color:var(--home-warn)}
.lab-project-error{display:flex;flex-direction:column;gap:4px;margin:6px 4px 0;padding:8px 10px;border-radius:8px;background:var(--home-warn-tint);color:var(--home-warn);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
/* Home beside the global navigation: single column, compact identity line on top. */
.lab-shell{display:block}
.lab-content{max-width:1180px;margin:0 auto;padding:18px 36px 56px}
.lab-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-bottom:12px;border-bottom:1px solid var(--home-line-2)}
.lab-heading .lab-resume{margin:0 0 0 auto;flex-direction:row;align-items:baseline;gap:8px;padding:6px 12px}
.lab-heading .lab-resume strong{font-size:12.5px}
body.preview-ui #lab-home .lab-name{font-size:14px}
/* No lab name yet: an honest fallback and one quiet action, instead of an empty editable field. */
.lab-name-fallback{font-size:14px;font-weight:600;color:var(--home-ink-2)}
body.preview-ui #lab-home .lab-name[hidden]{display:none}
@media(max-width:800px){.lab-content{padding:16px 16px 40px}.lab-heading .lab-resume{display:flex;margin-left:0;width:100%}}

/* Projects as one row of chips under the identity line (the navigation no longer lists them). */
.lab-projects{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 0 4px}
.lab-project-chip{display:inline-flex;align-items:center;gap:8px;max-width:260px;padding:7px 12px;border:1px solid var(--home-line);border-radius:9px;background:var(--home-surface);color:var(--home-ink-2);font:500 13px/1.2 inherit;font-family:inherit;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:background-color .12s ease,border-color .12s ease}
.lab-project-chip:hover{border-color:var(--home-gold-line);color:var(--home-ink)}
.lab-project-chip[aria-current]{border-color:var(--home-gold-line);background:var(--home-gold-tint);color:var(--home-gold-ink);font-weight:600}
.lab-project-chip.lab-project-new{border-style:dashed;color:var(--home-muted)}
@media(max-width:400px){body.preview-ui #lab-home .lab-project-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}body.preview-ui #lab-home .lab-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;width:100%;min-width:0}body.preview-ui #lab-home .lab-run .t-menu-list{right:auto;left:0;max-width:calc(100vw - 32px)}}
/* Online now: avatars with a live dot, a count, and one line saying who is where (and whether they are on this page with you). */
.lab-avatar{position:relative}
.lab-avatar[data-online=true]::after{content:"";position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:var(--home-ok);border:2px solid var(--home-surface)}
.lab-online-count{display:inline-flex;align-items:center;gap:6px;margin-left:6px;font-size:13px;color:var(--home-muted)}
.lab-online-count i{width:8px;height:8px;border-radius:50%;background:var(--home-line)}
.lab-online-count.is-live{color:var(--home-ink-2)}.lab-online-count.is-live i{background:var(--home-ok)}
.lab-online-list{display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0 0;font-size:13px;color:var(--home-ink-2)}
.lab-online-item{display:inline-flex;align-items:center;gap:7px}.lab-online-item i{width:8px;height:8px;border-radius:50%;background:var(--home-ok)}
.lab-online-item.with-you{color:var(--home-gold-ink);font-weight:600}
