
/* The lab panel */
.lab-pal { position: fixed; z-index: 60; left: max(14px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 4px; max-width: min(720px, calc(100vw - 28px)); padding: 8px; border-radius: 18px;
  font: 500 0.72rem/1 var(--font-mono); color: var(--mute); background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line-strong); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  view-transition-name: lab-pal; }
.lab-pal .row { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.lab-pal .lbl { min-width: 64px; padding: 0 6px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.lab-pal .sub { padding: 0 4px 0 10px; color: var(--faint); }
.lab-pal a, .lab-pal button { appearance: none; display: inline-flex; align-items: center; gap: 6px; border: 0; margin: 0; padding: 7px 10px; border-radius: 999px;
  font: inherit; color: inherit; background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.lab-pal a:hover, .lab-pal button:hover { color: var(--ink); background: var(--tint); }
.lab-pal [aria-current="true"], .lab-pal [aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.lab-pal a:focus-visible, .lab-pal button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lab-pal .sw { display: inline-flex; }
.lab-pal .sw i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.35); }
.lab-pal .sw i + i { margin-left: -3px; }
.lab-pal .min { margin-left: auto; }
.lab-pal.closed { grid-template-columns: auto; padding: 5px; border-radius: 999px; }
.lab-pal.closed .row:not(.top) { display: none; }
.lab-pal .top .now { display: none; padding: 0 8px; color: var(--ink); }
.lab-pal.closed .top .now { display: inline; }
.lab-pal.closed .top .sub { display: none; }
@media (max-width: 560px) { .lab-pal { left: 8px; right: 8px; max-width: none; } .lab-pal .lbl { min-width: 0; } .lab-pal .long { display: none; } }
@media print { .lab-pal { display: none; } }
html.lab-switching *, html.lab-switching *::before, html.lab-switching *::after { transition: none !important; }

/* ---------- palettes 3 to 6 (2, Copper & Sage, is the site's own: styles.css) ---------- */
html[data-palette="original"] { --accent-on-ink: #f97343; --proof-on-ink: #34d399; }
html[data-palette="original"] :is(.pcard .cover .badge, .cs-stage .badge, .demo-stage .badge, .contact-card) { --live: #34d399; }
html[data-palette="original"] { --accent: #c2410c; --accent-hover: #9a3412; --on-accent: #ffffff; --accent-soft: rgba(194, 65, 12, 0.09); --proof: #047857; --proof-hover: #065f46; --on-proof: #ffffff; --proof-soft: rgba(4, 120, 87, 0.09); --live: #047857; }
html[data-theme="dark"][data-palette="original"] { --accent: #f97343; --accent-hover: #fb8c62; --on-accent: #15110e; --accent-soft: rgba(249, 115, 67, 0.12); --proof: #34d399; --proof-hover: #6ee7b7; --on-proof: #06281c; --proof-soft: rgba(52, 211, 153, 0.12); --live: #34d399; }
html[data-palette="warm"] { --accent-on-ink: #e3956c; --proof-on-ink: #dcc091; }
html[data-palette="warm"] { --accent: #aa5830; --accent-hover: #924a27; --on-accent: #ffffff; --accent-soft: rgba(170, 88, 48, 0.09); --proof: #7a5c33; --proof-hover: #634a28; --on-proof: #ffffff; --proof-soft: rgba(122, 92, 51, 0.09); --live: #3d7055; }
html[data-theme="dark"][data-palette="warm"] { --accent: #e3956c; --accent-hover: #eba783; --on-accent: #15110e; --accent-soft: rgba(227, 149, 108, 0.12); --proof: #dcc091; --proof-hover: #e6d0a8; --on-proof: #15110e; --proof-soft: rgba(220, 192, 145, 0.12); --live: #93cdad; }
html[data-palette="brass"] { --accent-on-ink: #f98a58; --proof-on-ink: #eec066; }
html[data-palette="brass"] { --accent: #b94614; --accent-hover: #9f3501; --on-accent: #ffffff; --accent-soft: rgba(185, 70, 20, 0.09); --proof: #8b641a; --proof-hover: #765412; --on-proof: #ffffff; --proof-soft: rgba(139, 100, 26, 0.09); --live: #3d7055; }
html[data-theme="dark"][data-palette="brass"] { --accent: #f98a58; --accent-hover: #ff9f71; --on-accent: #15110e; --accent-soft: rgba(249, 138, 88, 0.12); --proof: #eec066; --proof-hover: #f3cf86; --on-proof: #15110e; --proof-soft: rgba(238, 192, 102, 0.12); --live: #93cdad; }
html[data-palette="teal"] { --accent-on-ink: #e4896c; --proof-on-ink: #6fcdc9; }
html[data-palette="teal"] :is(.pcard .cover .badge, .cs-stage .badge, .demo-stage .badge, .contact-card) { --live: #6fcdc9; }
html[data-palette="teal"] { --accent: #a94b32; --accent-hover: #913d26; --on-accent: #ffffff; --accent-soft: rgba(169, 75, 50, 0.09); --proof: #006f6f; --proof-hover: #005c5c; --on-proof: #ffffff; --proof-soft: rgba(0, 111, 111, 0.09); --live: #006f6f; }
html[data-theme="dark"][data-palette="teal"] { --accent: #e4896c; --accent-hover: #f09c7e; --on-accent: #15110e; --accent-soft: rgba(228, 137, 108, 0.12); --proof: #6fcdc9; --proof-hover: #8adcd8; --on-proof: #0c1716; --proof-soft: rgba(111, 205, 201, 0.12); --live: #6fcdc9; }
