/* Options lab bar: prototype chrome (a dark tool bar), not product UI, so the DS does not bind it. Inter Display (Rijul 2026-11-13, bar only; product screens stay Rubik), <= 500, orange focus rings. Self-contained: styles everything js/lab.js injects.
   The page offset (--lab-h) is the only thing that touches the host page. */
:root { --lab-h: 0px; --wpbar: 32px; --navh: 60px; --stk: calc(var(--lab-h) + var(--wpbar) + var(--navh) + 16px); }
@media (max-width: 782px) { :root { --wpbar: 46px; } }
body.nuf { padding-top: var(--lab-h); }
body.nuf .nuf-wp-bar { top: var(--lab-h); }
body.nuf .nuf-wp-side { top: var(--lab-h); }
body.nuf .dash-nav { top: calc(var(--lab-h) + var(--wpbar)); }

.lab, .lab__menu, .lab__tab, .lab__hint {
  --lb-bg: #111418; --lb-bg2: #1a1f27; --lb-bg3: #262d37; --lb-line: #262d37; --lb-line2: #343c48;
  --lb-t: #e8ecf2; --lb-m: #8b95a5; --lb-orange: #fa8831; --lb-hi: #fff; --lb-menu: #14181e; --lb-tip: #000; --lb-sh: rgba(0, 0, 0, .45);
  --lab-font: 'Inter', system-ui, sans-serif;
  font: 500 12px/16px var(--lab-font); font-optical-sizing: none; font-variation-settings: 'opsz' 32; letter-spacing: 0.005em; color: var(--lb-t); -webkit-font-smoothing: antialiased;
}
.lab.is-light, .lab__menu.is-light, .lab__tab.is-light, .lab__hint.is-light {
  --lb-bg: #fff; --lb-bg2: #f3f5f8; --lb-bg3: #e6eaf0; --lb-line: #e1e5ea; --lb-line2: #cfd5de;
  --lb-t: #1d2530; --lb-m: #5f6b7c; --lb-hi: #0b0f14; --lb-menu: #fff; --lb-tip: #1d2530; --lb-sh: rgba(20, 30, 50, .18);
}
.lab *, .lab__menu *, .lab__tab *, .lab__hint * { box-sizing: border-box; }
.lab { position: fixed; z-index: 4000; top: 0; left: 0; right: 0; height: 40px; background: var(--lb-bg); border-bottom: 1px solid var(--lb-line); }
.lab[hidden], .lab__tab[hidden], .lab [hidden] { display: none !important; }
.lab__in { display: flex; align-items: center; gap: 10px; height: 39px; padding: 0 12px; min-width: 0; }
.lab button, .lab__menu button, .lab__tab { font: inherit; font-variation-settings: inherit; color: inherit; cursor: pointer; }
.lab :focus-visible, .lab__menu :focus-visible, .lab__tab:focus-visible { outline: 2px solid var(--lb-orange); outline-offset: 1px; }

/* left: lab icon, "Options", then the breadcrumb chain Screen > Component > Option */
.lab__brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }
.lab__brand .fa { color: var(--lb-orange); font-size: 13px; }
.lab__bt { color: var(--lb-m); }
.lab__bt::after { content: '/'; margin-left: 8px; color: var(--lb-line2); }
.lab__chain { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; }
.lab__sep { flex: 0 0 auto; color: var(--lb-m); font-size: 14px; line-height: 1; }
.lab__none { color: var(--lb-m); white-space: nowrap; }
.lab__right { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

/* pills */
.lab__p { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 280px; padding: 0 8px 0 10px; border: 1px solid var(--lb-line2); border-radius: 6px; background: var(--lb-bg2); white-space: nowrap; transition: background 150ms ease, border-color 150ms ease; }
.lab__p:hover, .lab__p[aria-expanded="true"] { background: var(--lb-bg3); }
.lab__p .fa { flex: 0 0 auto; font-size: 10px; color: var(--lb-m); }
.lab__p .fa-lock { font-size: 11px; }
.lab__pl { flex: 0 0 auto; color: var(--lb-m); }
.lab__pv { flex: 0 1 auto; min-width: 0; color: var(--lb-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab__lk { flex: 0 0 auto; }
.lab__all { display: none; }

/* theme: a small segmented icon pair */
.lab__th { flex: 0 0 auto; display: inline-flex; padding: 1px; border: 1px solid var(--lb-line2); border-radius: 6px; background: var(--lb-bg2); }
.lab__t { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--lb-m); transition: background 150ms ease, color 150ms ease; }
.lab__t .fa { font-size: 12px; }
.lab__t:hover { color: var(--lb-hi); }
.lab__t.is-on { background: var(--lb-bg3); color: var(--lb-hi); }

/* icon cluster in one grouped container */
.lab__cl { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 1px; border: 1px solid var(--lb-line2); border-radius: 6px; background: var(--lb-bg2); }
.lab__ib { position: relative; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: var(--lb-m); transition: background 150ms ease, color 150ms ease; }
.lab__ib + .lab__ib { margin-left: 1px; }
.lab__ib .fa { font-size: 12px; }
.lab__ib:hover { background: var(--lb-bg3); color: var(--lb-hi); }
.lab__ib.is-ok { color: #22a55a; }
.lab [data-tip], .lab__menu [data-tip] { position: relative; }
.lab [data-tip]::after, .lab__menu [data-tip]::after { content: attr(data-tip); position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: max-content; max-width: 220px; padding: 5px 8px; border-radius: 4px; background: var(--lb-tip); border: 1px solid var(--lb-line2); color: #fff; font: 500 11px/14px var(--lab-font, 'Inter', sans-serif); font-variation-settings: 'opsz' 32; text-align: left; opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
.lab [data-tip]:hover::after, .lab [data-tip]:focus-visible::after, .lab__menu [data-tip]:hover::after { opacity: 1; transition-delay: 250ms; }

/* menus */
.lab__menu { position: fixed; z-index: 4100; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--lb-line2); border-radius: 8px; background: var(--lb-menu); box-shadow: 0 12px 32px var(--lb-sh); opacity: 0; transform: translateY(-4px); transition: opacity 150ms ease, transform 150ms ease; }
.lab__menu.is-in { opacity: 1; transform: none; }
.lab__mg { display: flex; justify-content: space-between; gap: 8px; padding: 8px 8px 2px; color: var(--lb-m); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.lab__mg i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.lab__mh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 8px 4px; color: var(--lb-t); }
.lab__mh i { font-style: normal; color: var(--lb-m); font-weight: 400; }
.lab__mi { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; color: var(--lb-t); }
.lab__mi:hover, .lab__mi:focus-visible { background: var(--lb-bg3); }
.lab__mi--info { cursor: default; }
.lab__mi--info > .fa { width: 14px; margin-top: 2px; font-size: 11px; color: var(--lb-m); }
.lab__mi--c { align-items: center; }
.lab__ck { flex: 0 0 14px; width: 14px; margin-top: 1px; color: var(--lb-hi); font-size: 11px; }
.lab__mi--c .lab__ck { margin-top: 0; }
.lab__mi[aria-checked="false"] .lab__ck { visibility: hidden; }
.lab__mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.lab__mn { color: var(--lb-t); }
.lab__mv { margin-left: auto; padding-left: 12px; color: var(--lb-m); font-weight: 400; white-space: nowrap; }
.lab__ms { color: var(--lb-m); font-weight: 400; font-size: 11px; line-height: 15px; white-space: normal; }
.lab__ext { margin-left: auto; color: var(--lb-m); font-size: 10px; }
.lab__hint { position: fixed; z-index: 4100; padding: 4px 8px; border-radius: 4px; background: var(--lb-tip); border: 1px solid var(--lb-line2); color: #fff; pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity 150ms ease, transform 150ms ease; }
.lab__hint.is-in { opacity: 1; transform: none; }
/* the small-screen sheet: the same three selects, the theme and the locked list */
.lab__f { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; }
.lab__f > span { color: var(--lb-m); font-size: 11px; }
.lab__f select { width: 100%; height: 32px; padding: 0 8px; border: 1px solid var(--lb-line2); border-radius: 6px; background: var(--lb-bg2); color: var(--lb-hi); font: inherit; font-variation-settings: inherit; }
.lab__f .lab__th { align-self: flex-start; }
.lab__fd { margin: 0; padding: 0 8px 6px; color: var(--lb-m); font-size: 11px; line-height: 15px; font-weight: 400; }

/* collapsed: a small floating chip, bottom left (above the page's Flow pill) */
.lab__tab { position: fixed; z-index: 4000; left: 12px; bottom: 60px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--lb-line2); border-radius: 8px; background: var(--lb-bg); box-shadow: 0 6px 16px var(--lb-sh); }
.lab__tab .fa { color: var(--lb-orange); font-size: 12px; }
.lab__tab:hover { background: var(--lb-bg3); }

/* the region an option just changed */
.lab-pulse { outline: 2px solid #fa8831; outline-offset: 3px; animation: lab-pulse 600ms ease-out; }
@keyframes lab-pulse { from { outline-color: #fa8831; } to { outline-color: rgba(250, 136, 49, 0); } }

/* responsive: the chain shrinks (values truncate); under 560px it is one "Options" sheet. Nothing wraps, overlaps or scrolls. */
.lab.is-narrow .lab__bt { display: none; }
.lab.is-narrow .lab__lk .lab__pl { display: none; }
.lab.is-narrow .lab__p { padding: 0 6px 0 8px; }
.lab.is-tiny .lab__chain, .lab.is-tiny .lab__th, .lab.is-tiny .lab__lk { display: none; }
.lab.is-tiny .lab__all { display: inline-flex; }
.lab.is-tiny .lab__right { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .lab__menu, .lab__hint, .lab__p, .lab__t, .lab__ib, .lab [data-tip]::after { transition: none; }
  .lab__menu, .lab__hint { transform: none; }
  .lab-pulse { animation: none; }
}
