/* Marigold source palette mappings; Nexus fonts and product identities stay intact. */
html[data-palette]{--c-brand:var(--c-ember);--sd-field:rgb(var(--c-sand-100));--sd-raised:rgb(var(--c-sand-100));--sd-selected:rgb(var(--c-ember)/.1)}
html[data-palette=clementine]{--c-canvas:251 245 236;--c-surface:255 255 255;--c-ink:42 32 27;--c-muted:116 98 84;--c-line:236 225 211;--c-ember:174 62 44;--c-sand-100:245 237 224;--c-shade:42 32 27}
html[data-stercus-theme=dark][data-palette=clementine]{--c-canvas:24 18 14;--c-surface:35 27 21;--c-ink:243 234 224;--c-muted:169 153 139;--c-line:60 48 39;--c-ember:220 102 76;--c-sand-100:49 38 29;--c-shade:0 0 0}
body .nexus-brand strong{color:rgb(var(--c-brand))}
.lab-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lab-palette-option{min-width:0;display:flex;align-items:center;gap:12px;padding:16px;background:var(--sd-surface);color:var(--sd-text);border:1px solid transparent;border-radius:20px;text-align:left;box-shadow:var(--card-shadow);font:inherit;transition:transform .15s ease-out,border-color .2s ease-out}.lab-palette-option[aria-pressed=true]{border-color:var(--sd-action)}.lab-palette-option strong{display:block;font-size:14px}.lab-palette-option small{display:block;font-size:12px;color:var(--sd-muted);margin-top:4px}.lab-palette-check{margin-left:auto;color:var(--sd-action);opacity:0}.lab-palette-option[aria-pressed=true] .lab-palette-check{opacity:1}.lab-palette-swatch{height:44px;width:44px;flex:0 0 44px;border-radius:14px;background:var(--swatch-canvas);position:relative;border:1px solid rgb(0 0 0/.04)}.lab-palette-swatch i{position:absolute;width:18px;height:18px;border-radius:50%;background:var(--swatch-brand);left:7px;top:7px}.lab-palette-swatch i+i{background:var(--swatch-accent);left:20px;top:20px;width:13px;height:13px}
/* Translate on the outer lens; squash on the inner lens, never one transform competing. */
body .dock .lab-lens{background:transparent!important;box-shadow:none!important;transition:transform .36s var(--ease-spring),width .36s var(--ease-spring)}
.lab-lens-drop{display:block;width:100%;height:100%;border-radius:inherit;background:rgb(255 255 255/.62);box-shadow:inset 0 1px 0 rgb(255 255 255/.95),inset 0 -1px 2px rgb(var(--c-shade)/.06),0 2px 8px rgb(var(--c-shade)/.1)}
[data-stercus-theme=dark] .lab-lens-drop{background:rgb(255 255 255/.13);box-shadow:inset 0 1px 0 rgb(255 255 255/.2),0 2px 8px rgb(0 0 0/.3)}
@media(min-width:900px){.lab-lens-drop{background:var(--sd-surface);box-shadow:var(--card-shadow)}}
body .button:active:not(:disabled),body .lab-palette-option:active{transform:scale(.97)}body .lab-add:active{transform:scale(.94)}
.lab-add-menu:not([hidden]){animation:lab-pop-in .24s cubic-bezier(.22,1,.36,1) both;transform-origin:bottom right}
@keyframes lab-pop-in{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.setup-tabs a,.lab-theme-options button{transition:background .2s ease-out,color .2s ease-out,box-shadow .2s ease-out,transform .15s ease-out}
/* Only the plot clips: tooltip siblings remain outside the clip. Identical G2 radii. */
.lab-plot-clip{border-radius:0 0 24px 24px;corner-shape:superellipse(2);overflow:hidden;isolation:isolate}
.lab-plot-clip .traffic-line-svg{border-radius:0!important;corner-shape:round;overflow:hidden}
.workspace-traffic-chart{border-radius:24px!important;corner-shape:superellipse(2);background:var(--sd-surface)}
@media(max-width:760px){:root{--lab-nav-bottom:calc(max(12px,calc(env(safe-area-inset-bottom) - 10px)) + 8px)}body .dock,body .lab-add{bottom:var(--lab-nav-bottom)!important}body #workspace{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}body .shell-header:has(.nexus-search){padding-top:calc(8px + env(safe-area-inset-top))!important}.lab-palette-grid{gap:8px}.lab-palette-option{padding:12px 12px;gap:8px}.lab-palette-swatch{width:36px;height:40px;flex-basis:36px}.lab-palette-option small{font-size:12px}.lab-palette-check{font-size:12px}.lab-add-menu{bottom:calc(var(--lab-nav-bottom) + 76px)}}
@media(prefers-reduced-transparency:reduce){.lab-lens-drop{background:var(--sd-surface)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
html[data-stercus-theme][data-palette]{--c-brand:var(--c-ember);--sd-field:rgb(var(--c-sand-100));--sd-raised:rgb(var(--c-sand-100));--sd-selected:rgb(var(--c-ember)/.1)}
.overview-periods,.lab-theme-options{position:relative;isolation:isolate}.lab-segment-lens{position:absolute;left:0;top:3px;bottom:3px;pointer-events:none;border-radius:999px;background:var(--sd-surface);box-shadow:inset 0 1px 0 rgb(255 255 255/.5),0 2px 8px rgb(var(--c-shade)/.09);transition:transform .36s var(--ease-spring),width .36s var(--ease-spring)}.overview-periods>.button,.lab-theme-options>.button{position:relative;z-index:1}.workspace-traffic .overview-periods [aria-pressed=true],.lab-theme-options button[aria-pressed=true]{background:transparent;box-shadow:none}
.lab-line-intro{stroke-dasharray:1;animation:lab-line-draw .65s cubic-bezier(.22,1,.36,1) both}@keyframes lab-line-draw{from{stroke-dashoffset:1;opacity:.35}to{stroke-dashoffset:0;opacity:1}}@media(prefers-reduced-motion:reduce){.lab-line-intro{animation:none;stroke-dashoffset:0}}
