﻿:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --body-size: 1.0625rem;
  --small-size: 0.9375rem;
  --micro-size: 0.8125rem;
  --mono-size: 0.75rem;
  --bg: #fafafa; --bg-subtle: #f0f0f0; --text: #1a1a1a; --text-secondary: #555555; --text-tertiary: #999999;
  --line: rgba(0, 0, 0, 0.08); --line-strong: rgba(0, 0, 0, 0.12); --accent: #1a1a1a; --selection-bg: rgba(0, 0, 0, 0.08);
  --scrollbar-size: 0.625rem; --scrollbar-track: transparent; --scrollbar-thumb: rgba(26, 26, 26, 0.26);
  --scrollbar-thumb-hover: rgba(26, 26, 26, 0.42); --scrollbar-thumb-active: rgba(26, 26, 26, 0.56);
  --error: #1a1a1a; --error-bg: rgba(0, 0, 0, 0.06); --success: #1a1a1a; --success-bg: rgba(0, 0, 0, 0.06);
  --warning: #1a1a1a; --warning-bg: rgba(0, 0, 0, 0.06);
  --page-max: 1060px; --page-pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease-out-smooth: cubic-bezier(0.25, 0.1, 0.25, 1); --ease-out-gentle: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sidebar-width: 200px;
}

[data-theme="dark"] {
  --bg: #0a0a0a; --bg-subtle: #111111; --text: #ededed; --text-secondary: #999999; --text-tertiary: #666666;
  --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.12); --accent: #ededed; --selection-bg: rgba(255, 255, 255, 0.15);
  --scrollbar-thumb: rgba(237, 237, 237, 0.24); --scrollbar-thumb-hover: rgba(237, 237, 237, 0.38); --scrollbar-thumb-active: rgba(237, 237, 237, 0.5);
  --error: #ededed; --error-bg: rgba(255, 255, 255, 0.08); --success: #ededed; --success-bg: rgba(255, 255, 255, 0.08);
  --warning: #ededed; --warning-bg: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
[data-theme="dark"] { color-scheme: dark; }
* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
  background: transparent;
}
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb {
  min-width: 2.5rem;
  min-height: 2.5rem;
  background-color: var(--scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }
*::-webkit-scrollbar-thumb:active { background-color: var(--scrollbar-thumb-active); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
body { font-family: var(--font-body); font-size: var(--body-size); line-height: 1.65; color: var(--text-secondary); background: var(--bg); overflow-x: hidden; transition: background 0.3s ease, color 0.3s ease; }
html.nav-open,
body.nav-open { overflow: hidden; overscroll-behavior: none; }
::selection { background: var(--selection-bg); color: var(--text); }
select { background: var(--bg); color: var(--text); }
select option { background: var(--bg); color: var(--text); }
select option:checked { background: var(--line-strong); color: var(--text); }
a { color: inherit; text-decoration: none; }
.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); min-height: 100vh; display: flex; flex-direction: column; }

/* NAV */
.nav-inner { display: flex; align-items: center; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.375rem; font-family: "IBM Plex Sans", var(--font-body); font-size: 1.0625rem; font-weight: 600; color: var(--text); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links a { font-size: var(--small-size); color: var(--text-tertiary); transition: color 0.2s var(--ease-out-smooth), transform 0.2s var(--ease-out-smooth); }
.nav-links a,
.nav-menu-btn,
.nav-overlay-close,
.theme-toggle { touch-action: manipulation; }
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }
.site-header { display: block; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.nav-links a.active,
.nav-links .nav-active { color: var(--text); font-weight: 500; }
.nav-cta { font-size: var(--small-size) !important; color: var(--bg) !important; background: var(--text); padding: 0.4rem 1rem; border-radius: 3px; font-weight: 500; transition: opacity 0.2s var(--ease-out-smooth), transform 0.2s var(--ease-out-smooth); }
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px) !important; }
.nav-menu-btn { display: none; align-items: center; justify-content: center; background: none; border: none; border-radius: 999px; cursor: pointer; color: var(--text); padding: 0.5rem; min-width: 2.75rem; min-height: 2.75rem; transition: background 0.2s var(--ease-out-smooth), color 0.2s var(--ease-out-smooth); -webkit-tap-highlight-color: transparent; }
.nav-menu-btn:hover { background: var(--bg-subtle); }
.nav-menu-btn svg { pointer-events: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; padding: 1.5rem var(--page-pad); overflow-y: auto; -webkit-overflow-scrolling: touch; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity; transition: opacity 0.22s var(--ease-out-gentle), visibility 0s linear 0.22s; }
.nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.22s var(--ease-out-gentle); }
.nav-overlay-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); transform: translateY(8px); transition: transform 0.22s var(--ease-out-gentle); }
.nav-overlay-close { background: none; border: none; border-radius: 999px; cursor: pointer; color: var(--text); padding: 0.25rem; min-width: 2.75rem; min-height: 2.75rem; transition: background 0.2s var(--ease-out-smooth), color 0.2s var(--ease-out-smooth); -webkit-tap-highlight-color: transparent; }
.nav-overlay-close:hover { background: var(--bg-subtle); color: var(--text); }
.nav-overlay-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 2rem 0 2.5rem; transform: translateY(8px); transition: transform 0.22s var(--ease-out-gentle); }
.nav-overlay.open .nav-overlay-header,
.nav-overlay.open .nav-overlay-body { transform: translateY(0); }
.nav-overlay-group { display: flex; flex-direction: column; gap: 1rem; }
.nav-overlay-label { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.nav-overlay-group a { font-family: var(--font-display); font-size: 1.75rem; color: var(--text); line-height: 1.2; width: fit-content; padding: 0.125rem 0; transition: color 0.15s ease; }
.nav-overlay-group a:hover { color: var(--text-secondary); }
.nav-overlay-group a.nav-overlay-cta { display: inline-block; font-family: var(--font-body); font-size: var(--body-size); font-weight: 500; color: var(--bg); background: var(--text); padding: 0.6rem 1.5rem; border-radius: 3px; margin-top: 0.5rem; width: fit-content; }
.sidebar-toggle {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 0;
  margin-right: 0.75rem;
  transition: color 0.2s var(--ease-out-smooth), border-color 0.2s var(--ease-out-smooth);
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--text); border-color: var(--text-secondary); }

.theme-toggle { background: none; border: 1px solid var(--line-strong); border-radius: 50%; width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-tertiary); font-size: 0.8125rem; transition: color 0.2s var(--ease-out-smooth), border-color 0.2s var(--ease-out-smooth), opacity 0.2s var(--ease-out-smooth); padding: 0; line-height: 1; flex-shrink: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--text-secondary); }
.theme-toggle.switching { opacity: 0; }
.site-header .theme-toggle { width: 2.25rem; height: 2.25rem; font-size: 0.875rem; }

/* DASHBOARD LAYOUT */
.dash-layout {
  display: flex;
  gap: 0;
  flex: 1;
  min-height: 0;
  padding-top: 1rem;
  position: relative;
}

/* SIDEBAR */
.dash-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
  transition: width 0.25s ease, padding-right 0.25s ease, opacity 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dash-sidebar.collapsed {
  width: 0;
  padding-right: 0;
  border-right: none;
  overflow: visible;
}
.dash-sidebar.collapsed > *:not(.sidebar-toggle):not(.sidebar-return-link) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Beacons/Studio auto-collapse the sidebar to reclaim width for their wide
   frame, leaving only an unlabeled chevron as the way back. Show a labeled
   link in that state so wayfinding survives step 2 of onboarding.
   Each frame panel has its own header content starting at the same corner
   this link would occupy (e.g. Model Providers' "Studio / Connect" kicker
   is 250px wide) -- an opaque chip only wide enough for this link's own
   text still let wider panel headers show through past its edge. Reserve a
   dedicated top band on .dash-main instead, so the link sits in genuinely
   empty space above panel content rather than trying to occlude whatever
   that content happens to be. */
body:has(.dash-sidebar.collapsed.playground-forced) .dash-main { padding-top: 2.5rem; }
.sidebar-return-link {
  display: none;
  position: absolute;
  top: 0.3rem;
  left: 44px;
  z-index: 10;
  font: 600 0.74rem/1.75rem var(--font-body);
  color: var(--text-secondary);
  white-space: nowrap;
  text-decoration: none;
}
.sidebar-return-link:hover { color: var(--text); text-decoration: underline; }
.dash-sidebar.collapsed.playground-forced .sidebar-return-link { display: inline-block; }

/* Chevron toggle pinned to the sidebar edge. */
.sidebar-toggle {
  position: absolute;
  top: 0.35rem;
  right: -12px;
  transform: none;
  z-index: 10;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, right 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.sidebar-toggle:hover { color: var(--text); border-color: var(--text-secondary); }
.sidebar-toggle svg { transition: transform 0.25s ease; }
.dash-sidebar.collapsed .sidebar-toggle { right: -36px; }
.dash-sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.dash-sidebar.playground-forced .sidebar-toggle {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 4px var(--selection-bg);
}

.sidebar-scroll {
  min-height: 0;
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sidebar-link {
  display: block;
  padding: 0.3rem 0.625rem;
  font-size: var(--micro-size);
  color: var(--text-secondary);
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 500;
}

.sidebar-signout {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sidebar-signout a {
  font-size: var(--micro-size);
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.sidebar-signout a:hover { color: var(--error); }

/* MOBILE SECTION PICKER */
.mobile-picker {
  display: none;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 20;
}

.picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 2.75rem;
  touch-action: manipulation;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.picker-btn:hover,
.picker-btn.open { border-color: var(--text-secondary); }

.picker-chevron {
  transition: transform 0.2s ease;
  pointer-events: none;
}

.picker-btn.open .picker-chevron {
  transform: rotate(180deg);
}

.picker-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: min(28rem, calc(100dvh - 10rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.picker-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.picker-group-label {
  padding: 0.375rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.picker-item {
  display: block;
  padding: 0.4rem 0.875rem;
  font-size: var(--micro-size);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s ease, color 0.12s ease;
}

.picker-item:hover { background: var(--bg-subtle); }
.picker-item.active { background: var(--bg-subtle); color: var(--text); font-weight: 500; }

/* MAIN CONTENT */
.dash-main {
  flex: 1;
  min-width: 0;
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
}

.dash-panel {
  display: none;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.dash-panel.active {
  display: flex;
  flex-direction: column;
  overflow: auto;
  min-height: 0;
}

#panel-synorb-playground { padding: 0; min-height: 0; overflow: visible; }
#panel-synorb-playground .panel-title { flex-shrink: 0; margin-bottom: 1rem; }
.playground-host {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}
#synorb-playground-root {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

/* Contain wide tables/content inside panels */
.dash-panel table { width: 100%; }
.dash-panel td, .dash-panel th { vertical-align: top; }

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  outline: none;
}
.panel-title:focus { outline: none; }

.panel-title--visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Studio is a full-viewport work surface. Keep the global navigation,
   but remove dashboard dead space so the three research panels get the room.
   This applies to the canonical Studio hashes; legacy Studio Run and
   playground hashes are kept as aliases so old links redirect cleanly. */
body[data-active-panel="studio-connect"],
body[data-active-panel="explore"],
body[data-active-panel="manifest-discovery"],
body[data-active-panel="studio-run"],
body[data-active-panel="beacons"],
body[data-active-panel="beacons"],
body[data-active-panel="playground-connect"],
body[data-active-panel="playground-build"],
body:has(#panel-playground-connect.active),
body:has(#panel-playground-build.active),
body:has(#panel-beacons.active) {
  overflow: hidden;
}
body[data-active-panel="studio-connect"] .page,
body[data-active-panel="explore"] .page,
body[data-active-panel="manifest-discovery"] .page,
body[data-active-panel="studio-run"] .page,
body[data-active-panel="beacons"] .page,
body[data-active-panel="beacons"] .page,
body[data-active-panel="playground-connect"] .page,
body[data-active-panel="playground-build"] .page,
body:has(#panel-playground-connect.active) .page,
body:has(#panel-playground-build.active) .page,
body:has(#panel-beacons.active) .page {
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  padding-left: clamp(0.18rem, 0.45vw, 0.45rem);
  padding-right: clamp(0.18rem, 0.45vw, 0.45rem);
  overflow: hidden;
}
body[data-active-panel="studio-connect"] .site-header,
body[data-active-panel="explore"] .site-header,
body[data-active-panel="manifest-discovery"] .site-header,
body[data-active-panel="studio-run"] .site-header,
body[data-active-panel="beacons"] .site-header,
body[data-active-panel="beacons"] .site-header,
body[data-active-panel="playground-connect"] .site-header,
body[data-active-panel="playground-build"] .site-header,
body:has(#panel-playground-connect.active) .site-header,
body:has(#panel-playground-build.active) .site-header,
body:has(#panel-beacons.active) .site-header {
  padding: 0.36rem 0;
  flex: 0 0 auto;
}
body[data-active-panel="studio-connect"] .dash-layout,
body[data-active-panel="explore"] .dash-layout,
body[data-active-panel="manifest-discovery"] .dash-layout,
body[data-active-panel="studio-run"] .dash-layout,
body[data-active-panel="beacons"] .dash-layout,
body[data-active-panel="beacons"] .dash-layout,
body[data-active-panel="playground-connect"] .dash-layout,
body[data-active-panel="playground-build"] .dash-layout,
body:has(#panel-playground-connect.active) .dash-layout,
body:has(#panel-playground-build.active) .dash-layout,
body:has(#panel-beacons.active) .dash-layout {
  position: fixed;
  top: var(--studio-dashboard-top, 3.85rem);
  left: clamp(0.18rem, 0.45vw, 0.45rem);
  right: clamp(0.18rem, 0.45vw, 0.45rem);
  bottom: 0;
  padding-top: 0.16rem;
  padding-bottom: 0.24rem;
  flex: 1 1 0;
  height: auto;
  min-height: calc(100dvh - var(--studio-dashboard-top, 3.85rem));
  max-height: none;
  overflow: hidden;
}
body[data-active-panel="studio-connect"] .dash-sidebar,
body[data-active-panel="explore"] .dash-sidebar,
body[data-active-panel="manifest-discovery"] .dash-sidebar,
body[data-active-panel="studio-run"] .dash-sidebar,
body[data-active-panel="beacons"] .dash-sidebar,
body[data-active-panel="beacons"] .dash-sidebar,
body[data-active-panel="playground-connect"] .dash-sidebar,
body[data-active-panel="playground-build"] .dash-sidebar,
body:has(#panel-playground-connect.active) .dash-sidebar,
body:has(#panel-playground-build.active) .dash-sidebar,
body:has(#panel-beacons.active) .dash-sidebar {
  height: 100%;
  min-height: 0;
  overflow: visible;
}
body[data-active-panel="studio-connect"] .sidebar-scroll,
body[data-active-panel="explore"] .sidebar-scroll,
body[data-active-panel="manifest-discovery"] .sidebar-scroll,
body[data-active-panel="studio-run"] .sidebar-scroll,
body[data-active-panel="beacons"] .sidebar-scroll,
body[data-active-panel="beacons"] .sidebar-scroll,
body[data-active-panel="playground-connect"] .sidebar-scroll,
body[data-active-panel="playground-build"] .sidebar-scroll,
body:has(#panel-playground-connect.active) .sidebar-scroll,
body:has(#panel-playground-build.active) .sidebar-scroll,
body:has(#panel-beacons.active) .sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
body[data-active-panel="studio-connect"] .dash-main,
body[data-active-panel="explore"] .dash-main,
body[data-active-panel="manifest-discovery"] .dash-main,
body[data-active-panel="studio-run"] .dash-main,
body[data-active-panel="beacons"] .dash-main,
body[data-active-panel="beacons"] .dash-main,
body[data-active-panel="playground-connect"] .dash-main,
body[data-active-panel="playground-build"] .dash-main,
body:has(#panel-playground-connect.active) .dash-main,
body:has(#panel-playground-build.active) .dash-main,
body:has(#panel-beacons.active) .dash-main {
  padding-left: clamp(2rem, 2.4vw, 2.65rem);
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body[data-active-panel="studio-connect"] .site-footer,
body[data-active-panel="explore"] .site-footer,
body[data-active-panel="manifest-discovery"] .site-footer,
body[data-active-panel="studio-run"] .site-footer,
body[data-active-panel="beacons"] .site-footer,
body[data-active-panel="beacons"] .site-footer,
body[data-active-panel="playground-connect"] .site-footer,
body[data-active-panel="playground-build"] .site-footer,
body:has(#panel-playground-connect.active) .site-footer,
body:has(#panel-playground-build.active) .site-footer,
body:has(#panel-beacons.active) .site-footer {
  display: none !important;
}
body[data-active-panel="studio-connect"] .mobile-picker,
body[data-active-panel="explore"] .mobile-picker,
body[data-active-panel="manifest-discovery"] .mobile-picker,
body[data-active-panel="studio-run"] .mobile-picker,
body[data-active-panel="beacons"] .mobile-picker,
body[data-active-panel="beacons"] .mobile-picker,
body[data-active-panel="playground-connect"] .mobile-picker,
body[data-active-panel="playground-build"] .mobile-picker,
body:has(#panel-playground-connect.active) .mobile-picker,
body:has(#panel-playground-build.active) .mobile-picker,
body:has(#panel-beacons.active) .mobile-picker {
  display: none !important;
}
body[data-active-panel="studio-connect"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="explore"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="manifest-discovery"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="studio-run"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="beacons"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="beacons"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="playground-connect"] .dash-sidebar.collapsed .sidebar-toggle,
body[data-active-panel="playground-build"] .dash-sidebar.collapsed .sidebar-toggle,
body:has(#panel-playground-connect.active) .dash-sidebar.collapsed .sidebar-toggle,
body:has(#panel-playground-build.active) .dash-sidebar.collapsed .sidebar-toggle,
body:has(#panel-beacons.active) .dash-sidebar.collapsed .sidebar-toggle {
  position: fixed;
  top: calc(4.05rem + env(safe-area-inset-top, 0px));
  left: clamp(0.35rem, 0.8vw, 0.75rem);
  right: auto;
}
body[data-active-panel="studio-connect"] #panel-playground-connect.active,
body[data-active-panel="explore"] #panel-playground-build.active,
body[data-active-panel="manifest-discovery"] #panel-playground-build.active,
body[data-active-panel="studio-run"] #panel-playground-build.active,
body[data-active-panel="playground-connect"] #panel-playground-connect.active,
body[data-active-panel="playground-build"] #panel-playground-build.active,
body:has(#panel-playground-connect.active) #panel-playground-connect.active,
body:has(#panel-playground-build.active) #panel-playground-build.active {
  flex: 1 1 0;
  height: 100%;
  overflow: hidden;
}
body[data-active-panel="studio-connect"] #panel-playground-connect .playground-host,
body[data-active-panel="explore"] #panel-playground-build .playground-host,
body[data-active-panel="manifest-discovery"] #panel-playground-build .playground-host,
body[data-active-panel="studio-run"] #panel-playground-build .playground-host,
body[data-active-panel="playground-connect"] #panel-playground-connect .playground-host,
body[data-active-panel="playground-build"] #panel-playground-build .playground-host,
body:has(#panel-playground-connect.active) #panel-playground-connect .playground-host,
body:has(#panel-playground-build.active) #panel-playground-build .playground-host {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body[data-active-panel="studio-connect"] #synorb-playground-root,
body[data-active-panel="explore"] #synorb-playground-root,
body[data-active-panel="manifest-discovery"] #synorb-playground-root,
body[data-active-panel="studio-run"] #synorb-playground-root,
body[data-active-panel="playground-connect"] #synorb-playground-root,
body[data-active-panel="playground-build"] #synorb-playground-root,
body:has(#panel-playground-connect.active) #synorb-playground-root,
body:has(#panel-playground-build.active) #synorb-playground-root {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
body[data-active-panel="beacons"] #panel-beacons.active,
body[data-active-panel="beacons"] #panel-beacons.active,
body:has(#panel-beacons.active) #panel-beacons.active {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: clamp(0.8rem, 1.7vw, 1.2rem) clamp(0.9rem, 1.9vw, 1.45rem) max(2rem, env(safe-area-inset-bottom, 0px));
}

.panel-subtitle {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.625rem;
  margin-top: 2rem;
}

.panel-subtitle:first-child { margin-top: 0; }

/* BILLING */
.billing-section { margin-bottom: 1.5rem; }
.billing-section .panel-subtitle { margin-top: 0; }
.billing-placeholder { font-size: var(--small-size); color: var(--text-tertiary); }

.billing-plan-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
  background: var(--bg-subtle);
}
.billing-plan-name { font-family: var(--font-body); font-size: 1.125rem; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.billing-plan-price { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-secondary); }
.billing-plan-meta { font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-tertiary); margin-top: 0.5rem; line-height: 1.6; }

.billing-meter { margin-top: 0.5rem; }
.billing-meter-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 0.375rem; }
.billing-meter-fill { height: 100%; border-radius: 3px; transition: width 0.4s var(--ease-out-gentle); }
.billing-meter-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-tertiary); }

.billing-payment-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.875rem 1.25rem;
  background: var(--bg-subtle);
}
.billing-payment-icon { font-size: 1.25rem; }
.billing-payment-detail { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-secondary); }
.billing-payment-detail strong { color: var(--text); font-weight: 500; }

.billing-table { width: 100%; border-collapse: collapse; font-size: var(--mono-size); }
.billing-table th { text-align: left; font-weight: 500; color: var(--text-tertiary); padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line-strong); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; }
.billing-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); color: var(--text-secondary); vertical-align: middle; }
.billing-table tr:last-child td { border-bottom: none; }
.billing-table tr:hover td { background: var(--bg-subtle); }

.billing-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  font-weight: 500;
}
.billing-status.paid { background: var(--success-bg); color: var(--success); }
.billing-status.pending { background: var(--warning-bg); color: var(--warning); }
.billing-status.overdue { background: var(--error-bg); color: var(--error); }
.billing-status.cancelled, .billing-status.void { background: var(--bg-subtle); color: var(--text-tertiary); }
.billing-status.draft { background: var(--bg-subtle); color: var(--text-tertiary); }

.billing-event-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--line);
}
.billing-event-item:last-child { border-bottom: none; }
.billing-event-type { color: var(--text-secondary); min-width: 160px; }
.billing-event-amount { color: var(--text); font-weight: 500; min-width: 60px; text-align: right; }
.billing-event-date { margin-left: auto; }

.billing-no-data { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); padding: 1rem 0; }

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-subtle);
  padding: 1.125rem 1.25rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.2;
}

.stat-sub {
  font-size: var(--mono-size);
  color: var(--text-tertiary);
  margin-top: 0.125rem;
}

/* CUSTOMER NOTICES (short, dismissible, expiring notes under the usage meter) */
.customer-notices:empty {
  display: none;
}

.customer-notices {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.customer-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: var(--small-size);
  line-height: 1.5;
  color: var(--text-secondary);
}

.customer-notice-dismiss {
  flex: none;
  background: transparent;
  border: 0;
  padding: 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--text-tertiary);
  cursor: pointer;
}

.customer-notice-dismiss:hover,
.customer-notice-dismiss:focus-visible {
  color: var(--text);
}

/* USAGE BAR */
.usage-bar-container {
  margin-bottom: 1.5rem;
}

.usage-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.375rem;
}

.usage-bar-label {
  font-size: var(--small-size);
  color: var(--text);
}

.usage-bar-count {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text-tertiary);
}

.usage-bar {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.usage-bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-gentle);
}

.usage-bar-fill.warning { background: var(--text-secondary); }
.usage-bar-fill.critical { background: var(--error); }

/* PRODUCT BADGES */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.125rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.product-badge-name {
  font-size: var(--small-size);
  color: var(--text);
  font-weight: 500;
}

.product-badge-tier {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* PRODUCT TILES (Usage panel) */
.product-tiles { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-tile { padding: 1rem 1.25rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; }
.product-tile-inactive { border-style: dashed; }
.product-tile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.product-tile-name { font-size: var(--small-size); color: var(--text); font-weight: 500; }
.product-tile-plan { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.product-tile-details { display: flex; gap: 1.25rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); }
.product-tile-upgrade { display: inline-block; margin-top: 0.75rem; font-size: var(--micro-size); color: var(--text); border-bottom: 1px solid var(--text-tertiary); }
.product-tile-trial-note { margin-top: 0.5rem; font-size: 0.6875rem; color: var(--text-tertiary); font-style: italic; }

/* PLAN TILE (Streams Plan panel) */
.plan-tile { padding: 1.5rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; }
.plan-tile-free { border-style: dashed; }
.plan-tile-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); text-transform: capitalize; }

/* FIREHOSE */
.firehose-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.firehose-spec { padding: 1rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; }
.firehose-spec-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.25rem; }
.firehose-spec-value { font-size: var(--small-size); color: var(--text); font-weight: 500; }
.firehose-cases { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.firehose-case-name { font-size: var(--small-size); font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.firehose-case-desc { font-size: var(--small-size); color: var(--text-secondary); line-height: 1.6; }

/* CONNECTIONS */
.connections-list { display: flex; flex-direction: column; gap: 0.75rem; }
.connection-card {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.connection-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}
.connection-name { font-size: var(--small-size); color: var(--text); font-weight: 500; }
.connection-subtitle { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 0.125rem; }
.connection-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.connection-status-active { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.connection-status-needs_reauth { color: var(--text); border-color: var(--line-strong); background: var(--bg-subtle); }
.connection-status-disconnected { color: var(--error); border-color: var(--error); background: var(--error-bg); }
.connection-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.connection-detail-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.125rem; }
.connection-detail-value { font-size: var(--micro-size); color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }

/* APPLICATIONS */
.applications-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.applications-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0 0.125rem 0.65rem;
  text-transform: uppercase;
}
.applications-tab:hover { color: var(--text-secondary); }
.applications-tab.active { color: var(--text); border-bottom-color: var(--text); }
.applications-list { display: flex; flex-direction: column; gap: 0.75rem; }
.application-card {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.application-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.application-name { font-size: var(--small-size); color: var(--text); font-weight: 500; }
.application-subtitle { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 0.125rem; }
.application-description { max-width: 72ch; margin: -0.25rem 0 0.875rem; font-size: var(--small-size); line-height: 1.55; color: var(--text-secondary); }
.application-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.application-status-active { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.application-status-available { color: var(--text-secondary); border-color: var(--line-strong); background: var(--bg); }
.application-status-needs_reauth { color: var(--text); border-color: var(--line-strong); background: var(--bg-subtle); }
.application-status-disconnected { color: var(--error); border-color: var(--error); background: var(--error-bg); }
.application-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.application-detail-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.125rem; }
.application-detail-value { font-size: var(--micro-size); color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.application-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; }

/* Tier cards (mirror /pricing/streams — bordered cards + "Best for" column, no gray fill) */
.dash-promo-row { display: flex; align-items: center; justify-content: flex-end; gap: 0.625rem; margin: 0.75rem 0 1rem; }
.dash-promo-label { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); letter-spacing: 0; text-transform: uppercase; }
.dash-promo-input { width: min(17rem, 100%); box-sizing: border-box; font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.45rem 0.625rem; letter-spacing: 0; text-transform: uppercase; }
.dash-promo-input:focus { outline: none; border-color: var(--text-secondary); }
.dash-tiers { margin-top: 1.5rem; display: grid; gap: 0.875rem; }
.dash-tier { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dash-tier-current { border-color: var(--text); }
.dash-tier-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(15rem, 0.78fr); }
.dash-tier-info { min-width: 0; padding: 1.25rem; border-right: 1px solid var(--line); }
.dash-tier-context { min-width: 0; padding: 1.25rem; background: var(--bg-subtle); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.dash-tier-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.dash-tier-name { font-family: var(--font-display); font-size: 1.375rem; color: var(--text); letter-spacing: -0.01em; }
.dash-tier-price { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); letter-spacing: 0.02em; }
.dash-tier-desc { font-size: var(--small-size); line-height: 1.6; max-width: 58ch; margin-bottom: 0.75rem; }
.dash-tier-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-tier-tag { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); background: var(--bg-subtle); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 3px; letter-spacing: 0.03em; }
.dash-tier-tag-highlight { color: var(--text); border-color: var(--text-secondary); font-weight: 500; }
.dash-tier-cta { margin-top: 0.75rem; }
.dash-tier-badge { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.625rem; border: 1px solid var(--text); color: var(--text); border-radius: 3px; }
.dash-tier-options { margin-top: 0.9rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.dash-tier-option-head { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(5rem, 0.55fr) minmax(8rem, 0.65fr); gap: 0.75rem; padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-tier-option { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(5rem, 0.55fr) minmax(8rem, 0.65fr); align-items: center; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); gap: 0.75rem; }
.dash-tier-option:last-child { border-bottom: none; }
.dash-tier-option-label { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; min-width: 0; }
.dash-tier-option-price { font-family: var(--font-mono); font-size: var(--small-size); color: var(--text); letter-spacing: 0.02em; }
.dash-tier-context-label { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.dash-tier-context-title { font-size: var(--body-size); color: var(--text); line-height: 1.35; margin-bottom: 0.45rem; }
.dash-tier-context-copy { font-size: var(--small-size); color: var(--text-secondary); line-height: 1.55; }
.dash-tier-context-list { display: grid; gap: 0.35rem; margin-top: 0.75rem; padding: 0; list-style: none; }
.dash-tier-context-list li { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); letter-spacing: 0.03em; }

/* S3 info line */
.s3-info { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); margin-bottom: 1.25rem; line-height: 1.6; }
/* S3 year tiles (3 prior calendar years) */
.s3-year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.s3-tile { border: 1.5px solid var(--text); border-radius: 8px; padding: 1.25rem 1rem; text-align: center; cursor: pointer; transition: all 0.15s; }
.s3-tile:hover:not(.owned) { background: var(--bg-subtle); }
.s3-tile.selected { background: var(--text); color: var(--bg); }
.s3-tile.selected .s3-tile-price { color: var(--bg); }
.s3-tile.selected .s3-tile-stats { color: rgba(255,255,255,0.7); }
.s3-tile.owned { border-color: var(--line); opacity: 0.5; cursor: default; }
.s3-tile-year { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.25rem; }
.s3-tile-price { font-family: var(--font-mono); font-size: var(--small-size); color: var(--text-secondary); margin-bottom: 0.25rem; }
.s3-tile-stats { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); }
/* S3 month pills — single row on desktop, 4-col on mobile */
.s3-month-section { margin-bottom: 1rem; }
.s3-month-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.375rem; }
@media (max-width: 768px) { .s3-month-grid { grid-template-columns: repeat(4, 1fr); } }
.s3-pill { font-family: var(--font-mono); font-size: var(--mono-size); text-align: center; padding: 0.5rem 0; border-radius: 4px; border: 1.5px solid var(--text); cursor: pointer; transition: all 0.15s; }
.s3-pill:hover:not(.unavailable) { background: var(--bg-subtle); }
.s3-pill.selected { background: var(--text); color: var(--bg); }
.s3-pill.unavailable { border-color: var(--line); color: var(--text-tertiary); cursor: default; opacity: 0.5; }
.s3-pill.unavailable:hover { background: transparent; }
/* S3 checkout + cart */
.s3-checkout { display: none; border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.75rem; }
.s3-checkout-summary { font-family: var(--font-mono); font-size: var(--small-size); margin-bottom: 0.5rem; }
.s3-dup-warning { border: 1px solid var(--warning); background: var(--warning-bg); border-radius: 6px; padding: 1rem; margin-bottom: 0.75rem; display: none; }
/* S3 countdown badge */
.s3-countdown { font-family: var(--font-mono); font-size: var(--mono-size); font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 3px; background: var(--success-bg); color: var(--success); }
.s3-countdown-yellow { background: var(--warning-bg); color: var(--warning); }
.s3-countdown-red { background: var(--error-bg); color: var(--error); }
/* S3 order progress stages */
.s3-order-progress { display: flex; gap: 0.25rem; align-items: center; }
.s3-stage { font-family: var(--font-mono); font-size: 0.625rem; padding: 0.15rem 0.4rem; border-radius: 2px; color: var(--text-tertiary); background: var(--bg-subtle); }
.s3-stage.active { color: var(--warning); background: var(--warning-bg); font-weight: 600; }
.s3-stage.done { color: var(--success); background: var(--success-bg); }
.s3-stage + .s3-stage::before { content: '\203a'; margin-right: 0.25rem; color: var(--text-tertiary); }
/* S3 stream browser */
.s3-stream-browser { max-height: 400px; overflow-y: auto; border-top: 1px solid var(--line); }
.s3-browser-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-subtle); position: sticky; top: 0; z-index: 1; }
.s3-stream-search { font-family: var(--font-mono); font-size: var(--mono-size); padding: 0.3rem 0.5rem; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--text); width: 220px; }
.s3-stream-list { }
.s3-stream-row { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 1rem; border-bottom: 1px solid var(--line); }
.s3-stream-row:hover { background: var(--bg-subtle); }
.s3-stream-name { font-family: var(--font-mono); font-size: var(--mono-size); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s3-stream-meta { display: flex; gap: 0.75rem; margin: 0 0.75rem; flex-shrink: 0; }
.s3-stream-action { flex-shrink: 0; }
.mono-cell { font-family: var(--font-mono); font-size: var(--mono-size); }
.mono-hint { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); }
/* S3 extended history CTA */
.s3-extended { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; padding: 0.75rem 1rem; border: 1px dashed var(--line-strong); border-radius: 6px; }
.dash-tier-option-cta { flex-shrink: 0; }
.dash-tier-btn { display: inline-block; padding: 0.3rem 0.875rem; font-size: var(--mono-size); font-weight: 500; border-radius: 3px; color: var(--text-secondary); border: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; white-space: nowrap; text-decoration: none; min-width: 8rem; text-align: center; }
.dash-tier-btn:hover { color: var(--text); border-color: var(--text-secondary); }
.dash-tier-btn-solid { display: inline-block; padding: 0.3rem 0.875rem; font-size: var(--mono-size); font-weight: 500; border-radius: 3px; background: var(--text); color: var(--bg); border: 1px solid var(--text); white-space: nowrap; text-decoration: none; cursor: default; min-width: 8rem; text-align: center; }
.dash-tier-footnote { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); margin-top: 0.5rem; letter-spacing: 0.02em; }
.dash-tier-btn-disabled { display: inline-block; padding: 0.3rem 0.875rem; font-size: var(--mono-size); font-weight: 500; border-radius: 3px; color: var(--text-tertiary); border: 1px solid var(--line); white-space: nowrap; min-width: 8rem; text-align: center; }

/* Plan-preview modal — tier-selector preview/confirm flow (Elite #16) */
.plan-preview-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-preview-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--small-size); color: var(--text-secondary); }
.plan-preview-row > span:first-child { color: var(--text-tertiary); }
.plan-preview-row .mono { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); letter-spacing: 0.02em; }
.plan-preview-warnings { margin-top: 0.75rem; padding: 0.625rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-subtle); font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; }
.plan-preview-warnings > div + div { margin-top: 0.375rem; }

/* Enterprise contact form */
.enterprise-form-wrap { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease; }
.enterprise-form-wrap.open { max-height: 600px; opacity: 1; overflow: visible; }
.enterprise-form { padding: 1.5rem 0 0.5rem; display: flex; flex-direction: column; gap: 0.875rem; max-width: 480px; }
.enterprise-form input, .enterprise-form textarea, .enterprise-form select { font-family: var(--font-body); font-size: var(--small-size); padding: 0.625rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); color: var(--text); outline: none; transition: border-color 0.2s ease; width: 100%; box-sizing: border-box; }
.enterprise-form input:focus, .enterprise-form textarea:focus, .enterprise-form select:focus { border-color: var(--text-secondary); }
.enterprise-form input::placeholder, .enterprise-form textarea::placeholder { color: var(--text-tertiary); }
.enterprise-form textarea { resize: vertical; min-height: 80px; }
.enterprise-form-row { display: flex; gap: 0.75rem; }
.enterprise-form-row > * { flex: 1; }
.enterprise-form-hint { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-tertiary); letter-spacing: 0.02em; line-height: 1.5; }
.enterprise-form-submit { display: inline-block; padding: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: var(--mono-size); font-weight: 500; border-radius: 3px; background: var(--text); color: var(--bg); border: 1px solid var(--text); cursor: pointer; transition: opacity 0.2s ease; align-self: flex-start; }
.enterprise-form-submit:hover { opacity: 0.85; }
.enterprise-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.enterprise-form-flash { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); padding: 0.75rem 0; opacity: 0; transition: opacity 0.4s ease; }
.enterprise-form-flash.show { opacity: 1; }
.enterprise-hp { position: absolute; left: -9999px; }

/* Library */
.library-sort-btn { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--text-tertiary); cursor: pointer; transition: all 0.2s; }
.library-sort-btn:hover { color: var(--text-secondary); border-color: var(--text-secondary); }
.library-sort-active { color: var(--text); border-color: var(--text); background: var(--text); color: var(--bg); }
.library-type { font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.library-domain { white-space: nowrap; }
.library-cross { color: var(--text-tertiary); }

/* Catalog surface tiles: one tile per surface with streams, grouped by axis. */
.surface-tiles { display: flex; flex-direction: column; gap: 0.65rem; }
.surface-tile-group-label { margin-bottom: 0.3rem; }
.surface-tile-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.surface-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all 0.2s;
}
.surface-tile:hover { color: var(--text); border-color: var(--text-secondary); }
.surface-tile-count { color: var(--text-tertiary); font-size: 0.625rem; }
.surface-tile-active,
.surface-tile-active:hover {
  border-color: color-mix(in srgb, var(--syn-lime, #c9ff63) 62%, black);
  background: color-mix(in srgb, var(--syn-lime, #c9ff63) 62%, black);
  color: color-mix(in srgb, var(--syn-lime-ink, #15210a) 78%, transparent);
}
.surface-tile-active .surface-tile-count { color: var(--syn-lime-ink, #15210a); }
:root[data-theme="dark"] .surface-tile-active,
:root[data-theme="dark"] .surface-tile-active:hover {
  border-color: var(--syn-lime, #c9ff63);
  background: var(--syn-lime, #c9ff63);
  color: var(--syn-lime-ink, #15210a);
}

/* Catalog rows: compact stream cards replacing the old ID/Name/Type/Domain table. */
.library-row { padding: 0.6rem 0.1rem; border-bottom: 1px solid var(--line); }
.library-row:last-child { border-bottom: none; }
.library-row-name {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0.2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--mono-size);
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.library-row-desc {
  font-size: var(--small-size);
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-row-meta { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.library-row-detail { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-family: var(--font-body); font-size: var(--small-size); color: var(--text-secondary); line-height: 1.5; }
.library-row-detail p { margin: 0 0 0.5rem; }

@media (max-width: 640px) {
  .library-col-cross { display: none; }
  .connection-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .application-card-top { flex-direction: column; }
  .application-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Stack tier card columns: info on top, "Best for" below. */
  .dash-promo-row { align-items: stretch; flex-direction: column; }
  .dash-promo-input { width: 100%; }
  .dash-tier-grid { grid-template-columns: 1fr; }
  .dash-tier-info { border-right: none; border-bottom: 1px solid var(--line); }
  .dash-tier-option-head { display: none; }
  .dash-tier-option { grid-template-columns: 1fr auto; gap: 0.4rem 0.75rem; }
  .dash-tier-option-cta { grid-column: 1 / -1; justify-self: stretch; }
  .dash-tier-option-cta .dash-tier-btn, .dash-tier-option-cta .dash-tier-btn-solid { width: 100%; }
}

@media (max-width: 480px) {
  .product-tile-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .product-tile-details { flex-direction: column; gap: 0.375rem; }
  .connection-card-top { flex-direction: column; gap: 0.5rem; }
  .connection-details { grid-template-columns: 1fr; }
  .dash-tier-cta { margin-top: 0.5rem; }
  .dash-tier-header { flex-direction: column; gap: 0.25rem; }
}

/* KEY TABLE */
.key-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.key-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 400;
}

.key-table td {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.key-table .key-id {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text);
}

.key-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.375rem;
}

.key-status.active { background: var(--success); }
.key-status.inactive { background: var(--error); }

.btn-small {
  padding: 0.3rem 0.75rem;
  font-size: var(--mono-size);
  font-family: var(--font-body);
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-small:hover { background: var(--bg-subtle); color: var(--text); }

.btn-small.danger { color: var(--error); border-color: var(--error); }
.btn-small.danger:hover { background: var(--error-bg); }

.btn-create {
  padding: 0.5rem 1.125rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: var(--micro-size);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-create:hover { opacity: 0.85; }
.btn-create:disabled { opacity: 0.5; cursor: not-allowed; }

/* USER DIGEST CARDS */
.uc-card {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.uc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}
.uc-card-name {
  font-size: var(--small-size);
  color: var(--text);
  font-weight: 500;
}
.uc-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--line);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}
.uc-card-desc {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.uc-card-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.uc-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.uc-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.uc-btn:hover { color: var(--text); border-color: var(--text-tertiary); }
.uc-btn-danger:hover { color: var(--error); border-color: var(--error); }

/* DIGEST BUILDER */
.builder-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.375rem;
}
.builder-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--micro-size);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
}
.builder-input:focus { outline: none; border-color: var(--text-tertiary); }
.builder-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--micro-size);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  resize: vertical;
}
.builder-textarea:focus { outline: none; border-color: var(--text-tertiary); }
.builder-select {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.375rem 0.5rem;
  border-radius: 3px;
}
.builder-rule {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.625rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.cf-chip {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem; border-radius: 3px;
  background: var(--bg-subtle); border: 1px solid var(--line);
  font-size: 0.6875rem; cursor: pointer; user-select: none;
}
.cf-chip:has(input:checked) { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.cf-chip input { display: none; }
.cf-tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.375rem; border-radius: 2px;
  background: var(--accent-bg); color: var(--accent); font-size: 0.625rem;
}
.cf-tag button { background: none; border: none; cursor: pointer; color: inherit; font-size: 0.75rem; padding: 0; }
.rule-values {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.rule-chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rule-chip.selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.rule-typeahead {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  padding: 0.375rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 3px;
}
.rule-typeahead:focus { outline: none; border-color: var(--text-tertiary); }
.rule-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.rule-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.rule-tag-remove {
  cursor: pointer;
  opacity: 0.7;
}
.rule-tag-remove:hover { opacity: 1; }
.rule-logic-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0.125rem 0 0.125rem 0;
}
.rule-logic-btn {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rule-logic-btn:first-child { border-radius: 2px 0 0 2px; border-right: none; }
.rule-logic-btn:last-child { border-radius: 0 2px 2px 0; }
.rule-logic-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.builder-preview-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text-secondary);
}

/* VOLUME PREVIEW CARD */
.volume-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.volume-card-header {
  font-size: var(--small-size);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.volume-spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid var(--text-tertiary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: vol-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}
@keyframes vol-spin { to { transform: rotate(360deg); } }
.volume-card.loading .volume-cell-value {
  opacity: 0.35;
}
.volume-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}
.volume-cell-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}
.volume-cell-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

/* MANIFESTS PREVIEW PANEL */
.manifests-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 1.5rem;
  overflow: hidden;
}
.manifests-panel-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.manifests-panel-title {
  font-size: var(--small-size);
  font-weight: 500;
  color: var(--text);
}
.manifests-panel-desc {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}
.manifests-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
}
.manifests-col {
  padding: 0;
  overflow-y: auto;
  max-height: 600px;
}
.manifests-col:first-child {
  border-right: 1px solid var(--line);
}
.manifests-col-header {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.manifest-row {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.manifest-row:hover {
  background: var(--bg);
}
.manifest-row-headline {
  font-size: var(--micro-size);
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.manifest-row-meta {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}
.manifest-row-meta .stream-badge {
  background: var(--line);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.35rem;
}

/* EXPANDED STORY VIEW */
.manifest-expanded {
  padding: 0.75rem 1rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: none;
}
.manifest-expanded.open { display: block; }
.manifest-exp-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.manifest-exp-tab {
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.manifest-exp-tab:hover { color: var(--text-secondary); }
.manifest-exp-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.manifest-exp-pretty {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  line-height: 1.5;
}
.manifest-exp-pretty h4 {
  font-size: var(--small-size);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.manifest-exp-pretty .summary-text {
  margin-bottom: 0.75rem;
}
.manifest-exp-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.manifest-exp-stat {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-tertiary);
}
.manifest-exp-stat span {
  color: var(--text);
  font-weight: 500;
}
.manifest-exp-json {
  display: none;
}
.manifest-exp-json pre {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.manifest-load-more {
  padding: 0.5rem 1rem;
  text-align: center;
}
.manifest-load-more button {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.manifest-load-more button:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}
.manifests-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: var(--micro-size);
  color: var(--text-tertiary);
}

/* BLUR OVERLAY FOR UPGRADE GATING */
.manifests-blur-wrap {
  position: relative;
}
.manifests-blur-wrap.gated .manifests-blur-zone {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.manifests-upgrade-overlay {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb, 17,17,17), 0.2) 0%, rgba(var(--bg-rgb, 17,17,17), 0.92) 40%);
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.manifests-blur-wrap.gated .manifests-upgrade-overlay {
  display: flex;
}
.upgrade-inline-card {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 380px;
}
.upgrade-inline-card h3 {
  font-size: var(--small-size);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.upgrade-inline-card p {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.upgrade-inline-card .value-line {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}
/* TRIAL BANNER */
.trial-banner {
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: var(--micro-size);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upgrade-subtle-banner {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--micro-size);
  color: var(--text-secondary);
  display: none;
}
.upgrade-subtle-banner a {
  color: var(--text);
  text-decoration: underline;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* NUDGE TOAST */
.nudge-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  max-width: 320px;
  font-size: var(--micro-size);
  color: var(--text-secondary);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
  display: none;
}
.nudge-toast.visible { display: block; }
.nudge-toast strong { color: var(--text); }
.nudge-toast a { color: var(--text); text-decoration: underline; margin-left: 0.25rem; }
.toast-success { border-color: var(--success); color: var(--success); }
.toast-error { border-color: var(--error); color: var(--error); }
.toast-info { border-color: var(--line-strong); color: var(--text-secondary); }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* SKELETON LOADING */
.skeleton {
  background: var(--bg-subtle);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--line) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-line { height: 0.875rem; margin-bottom: 0.5rem; }
.skeleton-line:last-child { width: 60%; }
.skeleton-block { height: 4rem; margin-bottom: 0.75rem; }

/* EMPTY STATES */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-tertiary);
}
.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.empty-state-title {
  font-size: var(--small-size);
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.empty-state-msg {
  font-size: var(--micro-size);
  max-width: 32ch;
  margin: 0 auto 1rem;
}
.empty-state-action {
  font-size: var(--micro-size);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

/* QUALITY COMPARISON STRIP */
.quality-comparison {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: none;
}
.quality-comparison-title {
  padding: 0.5rem 1rem;
  font-size: var(--micro-size);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.quality-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quality-comparison-col {
  padding: 0.75rem 1rem;
}
.quality-comparison-col:first-child {
  border-right: 1px solid var(--line);
  background: var(--bg-subtle);
}
.quality-comparison-col h5 {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}
.quality-comparison-col li {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  line-height: 1.6;
  list-style: none;
  padding-left: 0;
}
.quality-comparison-col li::before {
  content: "\2713 ";
  color: var(--success);
  margin-right: 0.25rem;
}
.quality-comparison-col:first-child li::before {
  content: "\2717 ";
  color: var(--text-tertiary);
}

/* CREDENTIAL REVEAL */
.credential-reveal {
  display: none;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--success);
  border-radius: 4px;
}

.credential-reveal.visible { display: block; }

.credential-reveal p {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.credential-reveal strong {
  color: var(--text);
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.credential-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  width: 80px;
  flex-shrink: 0;
}

.credential-value {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text);
  background: var(--bg);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy {
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy:hover { color: var(--text); }

/* ENDPOINT CHECKS */
.endpoint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.endpoint-tag {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.endpoint-tag.enabled {
  color: var(--success);
  border-color: var(--success);
  background: var(--success-bg);
}

.endpoint-tag.disabled {
  color: var(--text-tertiary);
}

/* DIGEST CARDS */
.digest-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.digest-card {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.digest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.digest-name {
  font-size: var(--small-size);
  color: var(--text);
  font-weight: 500;
}

.digest-streams {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text-tertiary);
}

.digest-token {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* LIBRARY DIGEST BUTTONS */
.lib-digest-btn {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  background: none;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  cursor: pointer;
}
.lib-digest-btn-edit {
  color: var(--accent);
  border: 1px solid var(--accent);
}
.lib-digest-btn-danger {
  color: var(--text-tertiary);
  border: 1px solid var(--line);
}
.lib-digest-btn-danger:hover {
  color: var(--text);
  border-color: var(--text);
}

/* MARKETPLACE GRID */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.marketplace-card {
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.marketplace-card:hover {
  border-color: var(--line-strong);
}

.marketplace-card.subscribed {
  border-color: var(--success);
}

.marketplace-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.marketplace-card-name {
  font-size: var(--small-size);
  color: var(--text);
  font-weight: 500;
}

.marketplace-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.marketplace-card-desc {
  font-size: var(--micro-size);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex: 1;
}

.marketplace-card-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.marketplace-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.marketplace-price {
  font-family: var(--font-mono);
  font-size: var(--micro-size);
  color: var(--text-secondary);
}

.btn-subscribe {
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-subscribe:hover {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

/* MESSAGES */
.dash-message {
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-size: var(--small-size);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: none;
}

.dash-message.error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); display: block; }
.dash-message.success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); display: block; }

/* LOADING */
.loading-state {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--small-size);
}

/* FOOTER */
.site-footer { padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-copy { font-size: var(--mono-size); color: var(--text-tertiary); font-family: var(--font-mono); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: var(--mono-size); color: var(--text-tertiary); transition: color 0.2s var(--ease-out-smooth); }
.footer-links a:hover { color: var(--text); }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (min-width: 1200px) { :root { --page-max: 1120px; } }

@media (max-width: 720px) {
  .nav-links > a { display: none; }
  .nav-links { gap: 0.75rem; }
  .nav-menu-btn { display: flex; }
  .dash-sidebar { display: none; }
  .mobile-picker { display: block; }
  .dash-main { padding-left: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .key-table,
  .billing-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .credential-row { flex-direction: column; align-items: stretch; }
  .credential-label { width: auto; }
  /* .flex-between has no wrap; a short label plus a long sentence run
     together into unreadable interleaved text at narrow widths (Beacons'
     "Saved Beacons" heading). Stack this one instead of touching the
     shared utility class, which other rows still rely on staying inline. */
  .beacons-saved-section { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.75rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .product-badge { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .footer-links { gap: 1rem; }
}

/* UPGRADE MODAL */
.upgrade-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: none; align-items: center; justify-content: center; }
.upgrade-overlay.open { display: flex; }
.upgrade-modal { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; max-width: 420px; width: 90%; padding: 2rem; position: relative; }
.upgrade-modal-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: 0.25rem; }
.upgrade-modal-close:hover { color: var(--text); }
.upgrade-modal-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.upgrade-modal-title { font-size: var(--small-size); font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.upgrade-modal-msg { font-size: var(--micro-size); color: var(--text-secondary); line-height: 1.5; margin-bottom: 1.25rem; }
.upgrade-modal-plan { padding: 1rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 1.25rem; }
.upgrade-modal-plan-name { font-family: var(--font-mono); font-size: var(--small-size); font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.upgrade-modal-plan-price { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-secondary); margin-bottom: 0.5rem; }
.upgrade-modal-plan-features { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.upgrade-modal-plan-tag { font-family: var(--font-mono); font-size: 0.625rem; padding: 0.15rem 0.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; color: var(--text-tertiary); }
.upgrade-modal-actions { display: flex; gap: 0.75rem; align-items: center; }
.upgrade-modal-btn { display: inline-block; padding: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: var(--mono-size); font-weight: 500; border-radius: 3px; background: var(--text); color: var(--bg); border: 1px solid var(--text); cursor: pointer; transition: opacity 0.2s ease; text-decoration: none; }
.upgrade-modal-btn:hover { opacity: 0.85; }
.upgrade-modal-link { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); cursor: pointer; background: none; border: none; text-decoration: underline; }
.upgrade-modal-link:hover { color: var(--text-secondary); }
.upgrade-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Type-to-confirm phrase, reused by any destructive-action modal (e.g. key rotation). */
.confirm-phrase-box { padding: 0.75rem 1rem; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 0.75rem; }
.confirm-phrase-label { font-size: var(--micro-size); color: var(--text-tertiary); margin-bottom: 0.35rem; }
.confirm-phrase-text { display: block; font-family: var(--font-mono); font-size: var(--small-size); font-weight: 600; color: var(--text); user-select: all; word-break: break-word; }
.confirm-phrase-input { width: 100%; box-sizing: border-box; margin-bottom: 1.25rem; }

/* PLAN SIMULATOR (enterprise/internal only) */
.plan-sim { padding: 0.625rem 1rem; border-top: 1px solid var(--line); margin-top: auto; position: relative; }
.plan-sim-trigger { font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.04em; color: var(--text-tertiary); cursor: pointer; user-select: none; }
.plan-sim-trigger:hover { color: var(--text-secondary); }
.plan-sim-dropdown { position: absolute; bottom: 100%; left: 0; right: 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; display: none; z-index: 100; }
.plan-sim-dropdown.open { display: block; }
.plan-sim-option { padding: 0.4rem 1rem; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; color: var(--text-tertiary); cursor: pointer; transition: background 0.1s, color 0.1s; }
.plan-sim-option:hover { background: var(--bg-subtle); color: var(--text-secondary); }
.plan-sim-option.active { color: var(--text); font-weight: 500; }
.plan-sim-reset { border-top: 1px solid var(--line); margin-top: 0.25rem; padding-top: 0.375rem; color: var(--text-tertiary); }

/* QUOTA PROGRESS BAR */
.quota-bar-wrap { margin-bottom: 1rem; }
.quota-bar-label { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-secondary); margin-bottom: 0.35rem; display: flex; justify-content: space-between; }
.quota-bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.quota-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.quota-bar-fill.green { background: var(--text); }
.quota-bar-fill.yellow { background: var(--text-secondary); }
.quota-bar-fill.red { background: var(--text-tertiary); }
.quota-overage { font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-tertiary); margin-top: 0.35rem; }

/* ── UTILITY CLASSES (Phase 1b — replace inline styles) ── */

/* Active nav link */
.nav-links .nav-active { color: var(--text); font-weight: 500; }

/* Mono uppercase label (section headers inside cards) */
.mono-label { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.5rem; }

/* Block-level mono label (form field labels) */
.mono-label-block { display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.25rem; }

/* Subtle bordered card */
.card-subtle { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; padding: 0.875rem 1rem; margin-bottom: 1rem; }
.card-subtle:last-child { margin-bottom: 0; }

/* Pre-formatted code block (inside cards) */
.code-block { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.625rem 0.875rem; font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); overflow-x: auto; white-space: pre-wrap; margin-bottom: 0; }

/* Standalone code pre (curl examples) */
.code-pre { background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 4px; padding: 0.875rem 1rem; font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); overflow-x: auto; white-space: pre-wrap; margin-bottom: 0.75rem; }

/* Tool listing row */
.tool-row { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.375rem 0.625rem; }

/* Monospace value text */
.mono-value { color: var(--text); font-size: var(--mono-size); }

/* Tool/feature description */
.tool-desc { font-size: var(--micro-size); color: var(--text-tertiary); margin-left: 0.5rem; }

/* Hint text (micro tertiary) */
.hint { font-size: var(--micro-size); color: var(--text-tertiary); }

/* Hint secondary */
.hint-secondary { font-size: var(--micro-size); color: var(--text-secondary); }

/* Info text (small secondary) */
.info-text { font-size: var(--small-size); color: var(--text-secondary); }

/* Info text (small tertiary) */
.info-text-tertiary { font-size: var(--small-size); color: var(--text-tertiary); }

/* Mono-styled input */
.input-mono { padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: var(--mono-size); border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); color: var(--text); }
.input-mono:focus { border-color: var(--text-secondary); outline: none; }

/* Body-styled input (password fields) */
.input-body { padding: 0.5rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--small-size); }

/* Small select (provider pickers) */
.select-mono { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.375rem 0.5rem; font-size: var(--small-size); color: var(--text); font-family: var(--font-mono); }

/* Scrollable bordered container */
.scroll-box { max-height: 400px; overflow: auto; border: 1px solid var(--line); border-radius: 3px; }

/* Inline link (text color + subtle underline) */
.inline-link { color: var(--text); border-bottom: 1px solid var(--text-tertiary); }

/* Mono table header cell */
.th-mono { text-align: left; padding: 0.5rem 0.75rem; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 500; }

/* Sticky table header row */
.tr-sticky { border-bottom: 1px solid var(--line-strong); position: sticky; top: 0; background: var(--bg); z-index: 1; }

/* Full-width mono table */
.table-mono { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--mono-size); }

/* Mono count display */
.mono-count { font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text-tertiary); }

/* Copy button */
.copy-btn { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.375rem 0.5rem; cursor: pointer; font-size: var(--micro-size); color: var(--text-secondary); white-space: nowrap; }

/* Pill box (token/code display) */
.pill-box { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0.375rem 0.625rem; font-family: var(--font-mono); font-size: var(--mono-size); color: var(--text); }

/* Inline code badge */
.code-badge { background: var(--bg-subtle); padding: 0.1rem 0.3rem; border-radius: 2px; }

/* Profile field value */
.profile-value { color: var(--text); font-size: var(--small-size); }
.profile-value-secondary { color: var(--text-secondary); font-size: var(--small-size); }

/* Column form layout */
.form-col { display: flex; flex-direction: column; gap: 0.75rem; max-width: 300px; }

/* Flex row with gap */
.flex-row { display: flex; gap: 0.5rem; }
.flex-row-md { display: flex; gap: 0.75rem; }

/* Flex column with gap */
.flex-col { display: flex; flex-direction: column; gap: 0.375rem; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 0.25rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 0.75rem; }
.mb-lg { margin-bottom: 1rem; }
.mb-xl { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: 0.25rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 0.75rem; }
.mt-xl { margin-top: 2rem; }
.mt-lg { margin-top: 1rem; }
.w-full { width: 100%; }

/* Display utilities */
.hidden { display: none; }

/* Text size utilities */
.text-sm { font-size: var(--small-size); }
.text-xs { font-size: 0.6875rem; }
.text-xxs { font-size: 0.625rem; }

/* Flex utilities */
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: 0.375rem; }
.gap-md { gap: 0.5rem; }
.gap-lg { gap: 0.75rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Chip/tag wrap: flex wrap with small gap */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.375rem; }

/* Truncate: single-line text overflow */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* No-wrap */
.nowrap { white-space: nowrap; }

/* Content filter label */
.filter-label { font-size: 0.6875rem; color: var(--text-secondary); margin-bottom: 0.25rem; display: block; }

/* Section spacing (1.25rem margin-bottom) */
.mb-section { margin-bottom: 1.25rem; }

/* Inline hint: lighter weight inside headings */
.hint-inline { font-weight: 400; color: var(--text-tertiary); }
.hint-inline-sm { font-weight: 400; font-size: 0.5625rem; text-transform: none; letter-spacing: 0; }

/* Dialog overlay */
.dialog-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; justify-content: center; align-items: center; }
.dialog-box { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1.5rem; width: 420px; max-width: 90vw; }
.dialog-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }

/* Mono heading (small-size, weight 500) */
.mono-heading { font-family: var(--font-mono); font-size: var(--small-size); font-weight: 500; }

/* Chat/playground scroll area */
.chat-scroll { padding: 0.75rem; max-height: 420px; overflow-y: auto; min-height: 200px; }

/* Explainer card */
.explainer-card { padding: 0.75rem 1rem; font-size: var(--micro-size); color: var(--text-secondary); line-height: 1.6; }
.explainer-card strong { color: var(--text); }

/* ── DOCS EMBED (Session 2) ── */
.docs-embed { max-width: 100%; }
.docs-embed .doc {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out-gentle), transform 0.4s var(--ease-out-gentle);
}
.docs-embed .doc.visible {
  opacity: 1;
  transform: none;
}
