/* Atomurus public chrome — match the /app workspace shell.
   Loaded after atomurus-lab-console.css on public (pre-login) pages.
   Tokens stay cream / dark brown / Atomurus green. Do not restyle /app. */

:root {
  --ps-radius-sm: 6px;
  --ps-radius-md: 10px;
  --ps-radius-lg: 16px;
  --ps-topbar: 64px;
  --ps-dur: 180ms;
  --ps-sidebar: 248px;
  --sidebar-w: 248px;
}

/* Beat lab-console :root (loads async after this file). */
html {
  --sidebar-w: 248px !important;
}

/* ── Hide Bloomberg / lab-console chrome ── */
.lc-tn-no,
.lc-hero-kicker .pill,
.lc-hero-kicker::before,
.lc-doc-kicker .pill,
.lc-doc-kicker::before,
.lc-br-bl,
.lc-br-br,
.nl-no,
.calc-menu-num,
.lc-mobile-menu-num,
.vz-num,
.sub-num,
.lc-btn-primary .lc-kbd,
.lc-topnav-search .lc-kbd,
.calc-btn-run .lc-kbd,
.ex-search-kbd,
.ex-kicker .pill {
  display: none !important;
}

.data-strip,
.av-substrip,
.lc-statusbar {
  display: none !important;
}

/* Status bar used to eat 22px at the bottom of tool shells */

/* ── Brand mark ── */
.lc-topnav-mark,
.logo-mark,
.lc-mobile-menu-brand .lc-topnav-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--ps-radius-sm);
  background: var(--lc-ink);
  color: var(--lc-green-soft);
}
[data-theme="dark"] .lc-topnav-mark,
[data-theme="dark"] .logo-mark,
[data-theme="dark"] .lc-mobile-menu-brand .lc-topnav-mark {
  background: var(--lc-green);
  color: var(--lc-paper);
}

.lc-topnav-name,
.logo-text,
.lc-footer-brand-name,
.lc-mobile-menu-name {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
  color: var(--lc-ink);
}

.lc-topnav-tag {
  font-family: var(--lc-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
  margin-top: 3px;
}

/* Brand tag is real DOM text (data-i18n="common.brandTag"). Do not paint it via ::after. */
.logo-tag {
  font-family: var(--lc-mono, ui-monospace, monospace);
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
  font-weight: 400;
  margin-top: 4px !important;
}
.logo-tag::before,
.logo-tag::after { content: none !important; }

/* ── Public topnav = workspace topbar ── */
.lc-topnav {
  height: var(--ps-topbar);
  padding: 0 18px;
  gap: 12px;
  background: var(--lc-paper);
  border-bottom: 1px solid var(--lc-rule);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Blur over WebGL/scroll layers freezes low-end GPUs. Solid paper is enough. */
html body .sidebar,
html body .topbar,
html body .ps-topbar,
html body .mobile-overlay,
html body .viewer-controls,
html body .viewer-zoom,
html body .viewer-mode-toggle,
html body .canvas-wrap,
html body .iso-3d-stage {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-theme="dark"] .lc-topnav { background: var(--lc-paper); }

.lc-topnav-links {
  gap: 4px;
  margin-left: 8px;
}
.lc-topnav-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--ps-radius-md);
  font-size: 14px;
  font-weight: 550;
  color: var(--lc-ink-2);
}
.lc-topnav-link:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, transparent);
  color: var(--lc-ink);
}
.lc-topnav-link.active {
  color: var(--lc-green);
  background: color-mix(in oklab, var(--lc-green) 10%, transparent);
  border-left: 0;
}

.lc-topnav-menu {
  border-radius: var(--ps-radius-md);
  padding: 8px;
  min-width: 220px;
}
.lc-topnav-menu a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--ps-radius-md);
  font-size: 14px;
  font-weight: 550;
}
.lc-topnav-menu a:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, transparent);
  color: var(--lc-ink);
}

.lc-topnav-search {
  height: 40px;
  width: min(420px, 32vw);
  border-radius: var(--ps-radius-md);
  background: var(--lc-bg);
  padding: 0 12px;
  font-family: var(--lc-sans);
  font-size: 14px;
  color: var(--lc-ink-2);
}
.lc-topnav-search .lc-tn-search-input {
  font-family: var(--lc-sans);
  font-size: 14px;
}

.lc-topnav-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--ps-radius-md);
  background: transparent;
  color: inherit;
}
.lc-topnav-btn:hover {
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule));
  background: color-mix(in oklab, var(--lc-green) 8%, transparent);
}

.lc-topnav-cta,
.lc-btn-primary {
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--ps-radius-md);
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
  font-size: 14px;
  font-weight: 600;
}
.lc-topnav-cta:hover,
.lc-btn-primary:hover {
  background: color-mix(in oklab, var(--lc-green) 88%, #0a0907) !important;
  transform: none;
}
[data-theme="dark"] .lc-topnav-cta,
[data-theme="dark"] .lc-btn-primary {
  color: #0E0D0C !important;
}

.lc-btn-ghost {
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--ps-radius-md);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
}
.lc-btn-ghost:hover {
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule));
}

/* ── Landing hero = workspace overview ── */
.lc-landing {
  font-size: 15px;
  padding-bottom: 0 !important;
}

.lc-hero {
  padding: 36px 28px 28px;
  max-width: 1120px;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.lc-hero-kicker,
.lc-doc-kicker,
.lc-modules-kicker,
.ph-kicker,
.lc-manifest-label {
  font-family: var(--lc-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
  font-weight: 400;
  margin-bottom: 8px;
}

.lc-hero-title,
.lc-doc-title,
.ph-title,
.lc-modules-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.lc-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 16ch;
  margin-bottom: 12px;
}
.lc-hero-title em {
  font-style: italic;
  color: var(--lc-green);
}

.lc-hero-desc,
.lc-doc-desc,
.ph-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--lc-ink-2);
  max-width: 54ch;
}

.lc-hero-actions { margin-bottom: 24px; gap: 10px; }

.lc-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 0;
  border-top: 0;
}
.lc-hero-stat {
  padding: 16px 14px 14px;
  border: 1px solid var(--lc-rule);
  border-right: 1px solid var(--lc-rule);
  border-radius: var(--ps-radius-md);
  background: var(--lc-paper);
}
.lc-hero-stat-n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}
.lc-hero-stat-l {
  font-family: var(--lc-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lc-ink-2);
}

.lc-preview {
  border-radius: var(--ps-radius-lg);
  background: var(--lc-paper);
}
.lc-preview-head,
.lc-preview-foot {
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg));
  font-size: 11px;
  letter-spacing: .08em;
}
.lc-preview-head .dots { display: none; }

/* ── Module cards = workspace lab cards ── */
.lc-modules {
  max-width: 1120px;
  padding: 8px 28px 72px;
}
.lc-modules-head {
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}
.lc-modules-title { font-size: clamp(28px, 4vw, 36px); }
.lc-modules-h-right { font-size: 13px; }

.lc-modules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.lc-mod-card,
.lc-mod-card-wide {
  grid-column: auto;
  min-height: 200px;
  padding: 18px 16px 16px;
  border: 1px solid var(--lc-rule);
  border-radius: var(--ps-radius-md);
  background: var(--lc-paper);
  gap: 8px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ps-dur) ease, background var(--ps-dur) ease;
}
.lc-mod-card:hover {
  background: var(--lc-paper);
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule));
}
.lc-mod-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
}
.lc-mod-desc {
  font-size: 14px;
  color: var(--lc-ink-2);
  flex: 1;
}
.lc-mod-no {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--lc-green);
  text-transform: uppercase;
}
.lc-mod-status {
  font-family: var(--lc-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-green);
  border: 1px solid color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule));
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in oklab, var(--lc-green) 8%, transparent);
}
.lc-mod-go {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px !important;
  margin-top: auto;
  width: fit-content;
  border-radius: var(--ps-radius-md) !important;
  background: var(--lc-green) !important;
  color: #F8F5EC !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .lc-mod-go { color: #0E0D0C !important; }
.lc-mod-meta {
  font-size: 12px;
  color: var(--lc-ink-3);
}

.lc-manifest {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 0 28px;
}
.lc-manifest-grid {
  padding: 22px 24px;
  border: 1px solid var(--lc-rule);
  border-radius: var(--ps-radius-lg);
  background: var(--lc-paper);
}
.lc-manifest-body {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px;
  line-height: 1.35;
}

.lc-footer-brand-desc { font-size: 14px; }
.lc-footer-col h4 {
  font-family: var(--lc-mono, ui-monospace, monospace);
  letter-spacing: .12em;
}
.lc-footer-col a { font-size: 14px; }

/* ── Tool sidebar = workspace nav ── */
.sidebar {
  background: color-mix(in oklab, var(--lc-paper) 88%, var(--lc-bg));
  width: var(--ps-sidebar) !important;
  padding-bottom: 12px !important;
}
.logo-wrap {
  padding: 16px 12px 14px;
  gap: 10px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: .12em;
  padding: 16px 12px 6px;
}
.ps-shell .nav-label {
  display: none !important;
}
.nav-item,
.nav-expandable .nav-row {
  min-height: 44px;
  margin: 0 8px;
  padding: 0 12px;
  border-radius: var(--ps-radius-md);
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 550;
  gap: 10px;
}
.nav-item:hover,
.nav-expandable .nav-row:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, transparent);
  color: var(--lc-ink);
}
.nav-item.active {
  color: var(--lc-green);
  background: color-mix(in oklab, var(--lc-green) 10%, transparent);
  border-left-color: var(--lc-green);
  font-weight: 650;
}
.nav-icon { width: 16px; height: 16px; }
.nav-children {
  margin: 2px 8px 4px 22px;
}
.nav-children .nav-item {
  min-height: 40px;
  font-size: 13px;
}
.sidebar-foot {
  padding: 12px 8px 16px;
}

/* ── Tool topbar = workspace topbar ── */
.topbar {
  height: var(--ps-topbar);
  padding: 0 18px;
  gap: 12px;
  background: var(--lc-paper);
  border-bottom: 1px solid var(--lc-rule);
}
.search-box {
  height: 40px;
  border-radius: var(--ps-radius-md);
  width: min(420px, 42vw);
  padding: 0 12px;
  font-family: var(--lc-sans);
  background: var(--lc-bg);
}
.search-box input {
  font-family: var(--lc-sans);
  font-size: 14px;
}
.theme-btn,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--ps-radius-md);
  background: transparent;
}
.breadcrumb {
  font-family: var(--lc-sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* Real /app-like grid. Build-time #ps-shell (inject-ui-chrome.js) or public-workspace.js hoist.
   Fallback below still pins the old aside+main tree if neither has run. */
html body.ps-body {
  display: block !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.ps-body.lc-landing,
html body.ps-body.lc-doc {
  height: auto !important;
  min-height: 100vh !important;
  overflow: auto !important;
}
.ps-shell {
  min-height: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: var(--ps-sidebar) minmax(0, 1fr);
  grid-template-rows: var(--ps-topbar) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "sidebar main";
}
html body.ps-body.lc-landing .ps-shell,
html body.ps-body.lc-doc .ps-shell {
  height: auto;
  min-height: 100vh;
}
.ps-shell > .topbar,
.ps-shell > .lc-topnav {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 40;
  width: auto !important;
  max-width: none !important;
  height: var(--ps-topbar) !important;
  margin: 0 !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  background: var(--lc-paper) !important;
  border-bottom: 1px solid var(--lc-rule) !important;
}
.ps-shell > aside.sidebar,
.ps-shell > aside.ws-sidebar,
.ps-shell > #ws-sidebar,
.ps-shell > aside[data-atomurus-sidebar] {
  grid-area: sidebar;
  height: auto !important;
  min-height: 0;
  overflow: auto;
  width: var(--ps-sidebar) !important;
  position: relative !important;
  transform: none !important;
}
.ps-shell > main.main,
.ps-shell > main.ps-main {
  grid-area: main;
  min-width: 0;
  overflow: auto;
  display: block !important;
  height: auto !important;
}
.ps-shell > .topbar .logo-wrap,
.ps-shell > .topbar .ps-brand,
.ps-shell > .lc-topnav .lc-topnav-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: relative !important;
  text-decoration: none;
  color: inherit;
}
.ps-shell > .topbar .search-box,
.ps-shell > .topbar .ps-search,
.ps-shell > .lc-topnav .lc-topnav-search,
.ps-shell > .lc-topnav .ps-search {
  flex: 1 1 auto;
  width: auto !important;
  max-width: 420px;
  margin: 0 auto !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.ps-shell .ps-search input,
.ps-shell .search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.ps-shell .ps-search button {
  border: 0;
  background: transparent;
  color: var(--lc-ink-2);
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
}
.ps-shell > .topbar .theme-btn {
  margin-left: 0 !important;
}
.ps-shell > .topbar .breadcrumb,
.ps-shell [hidden] {
  display: none !important;
}
@media (min-width: 861px) {
  .ps-shell > .topbar .mobile-menu-btn {
    display: none !important;
  }
  .lc-mobile-hamb {
    display: none !important;
  }
}
.ps-shell > .lc-topnav .lc-topnav-links {
  display: none !important;
}
.ps-shell > .lc-topnav .lc-topnav-spacer { display: none; }
.ps-shell > .lc-topnav .lc-topnav-cta.ps-userchip {
  height: 40px;
  min-height: 40px;
  min-width: 108px;
  padding: 0 12px 0 10px;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid var(--lc-rule) !important;
  color: var(--lc-ink) !important;
  font-weight: 600;
}
.ps-shell > .lc-topnav .lc-topnav-cta.ps-userchip.is-guest-cta {
  background: var(--color-brand, #1E6A50) !important;
  border-color: var(--color-brand, #1E6A50) !important;
  color: var(--color-on-brand, #F8F5EC) !important;
}
.ps-shell > .lc-topnav .lc-topnav-cta.ps-userchip.is-guest-cta:hover {
  filter: brightness(1.06);
}
.ps-shell > .lc-topnav .lc-topnav-cta.ps-userchip svg { display: block; }
.ps-shell > .topbar .ps-account {
  margin-left: 4px;
}
.ps-shell > aside.sidebar > .logo-wrap { display: none; }

.ps-pub-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 12px 18px !important;
}
.ps-pub-nav { flex: 1; min-height: 0; }

.ps-body.lc-landing .lc-hero,
.ps-body.lc-landing .lc-modules,
.ps-body.lc-landing .lc-manifest,
.ps-body.lc-doc .lc-doc-hero,
.ps-body.lc-doc .lc-doc-body {
  max-width: 1120px;
}

/* Desktop fallback if JS does not hoist. Do not use display:contents on <main>. */
@media (min-width: 761px) {
  html body:has(> aside.sidebar):has(> main.main) {
    padding-top: var(--ps-topbar) !important;
    box-sizing: border-box !important;
  }
  html body:has(> aside.sidebar):has(> main.main) > main.main > .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--ps-topbar) !important;
    z-index: 60 !important;
    margin: 0 !important;
    padding-left: calc(var(--ps-sidebar) + 8px) !important;
    box-sizing: border-box !important;
    background: var(--lc-paper) !important;
    border-bottom: 1px solid var(--lc-rule) !important;
  }
  html body:has(> aside.sidebar):has(> main.main) > aside.sidebar > .logo-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 61 !important;
    width: var(--ps-sidebar) !important;
    height: var(--ps-topbar) !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-bottom: 1px solid var(--lc-rule) !important;
    border-right: 0 !important;
    background: var(--lc-paper) !important;
    box-sizing: border-box !important;
  }
}

/* ── Page headers + calculator shell ── */
.content { padding: 24px 28px 40px; }
.ph-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.ph-desc { font-size: 16px; }

/* lab-console loads async after this file and uses body:not(.lc-landing) !important
   on tool headers. Beat it so Calculators (and other tool pages) match /app. */
html body.ps-body .ps-shell .ph-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.08 !important;
}
html body.ps-body .ps-shell .ph-kicker {
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: .16em !important;
  color: var(--lc-ink-3) !important;
}
html body.ps-body .ps-shell .ph-desc {
  font-size: 16px !important;
  line-height: 1.5 !important;
  max-width: 54ch !important;
}
html body.ps-body .ps-shell .content-inner {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
}
html body.ps-body .ps-shell .nav-item.nav-home {
  opacity: 1 !important;
  font-size: 14px !important;
  font-weight: 550 !important;
}

.calc-shell {
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr) !important;
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  margin-top: 12px;
  max-width: none;
  box-shadow: none;
}
html body.ps-body .ps-shell .calc-shell {
  box-shadow: none !important;
  border-radius: var(--ps-radius-lg) !important;
}
.calc-menu {
  background: color-mix(in oklab, var(--lc-paper) 88%, var(--lc-bg));
  padding: 12px 8px;
}
.calc-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin: 0 0 4px;
  padding: 8px 12px;
  border-radius: var(--ps-radius-md);
  border-left-width: 3px;
  font-size: 14px;
  font-weight: 550;
}
.calc-menu-item.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent);
}
.calc-menu-copy,
.calc-menu-title {
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}
.calc-panel { padding: 24px 28px; }
.calc-panel-h h2,
.calc-panel-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
}
.calc-panel-kicker {
  font-family: var(--lc-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lc-ink-3);
}
.calc-btn-run {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--ps-radius-md);
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
  font-weight: 600;
}
[data-theme="dark"] .calc-btn-run { color: #0E0D0C !important; }
.calc-btn-reset {
  height: 44px;
  min-height: 44px;
  border-radius: var(--ps-radius-md);
}
.h-no { display: none !important; }

/* ── Docs, login, pricing ── */
.lc-doc { font-size: 15px; }
.lc-doc-hero { padding: 40px 28px 20px; }
.lc-doc-title { font-size: clamp(32px, 5vw, 48px); }
.lc-doc-kicker .pill {
  border-radius: 999px;
  letter-spacing: .12em;
}

.price-card { border-radius: var(--ps-radius-md) !important; }

.auth-panel h2,
.lc-doc-prose h2 {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
}
.lc-doc-cards {
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
}
.lc-doc-card {
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
}
.lc-doc-tag {
  border-radius: 999px !important;
}
.lc-form input,
.lc-form select,
.auth-panel .lc-form input {
  height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
}
.lc-form textarea {
  border-radius: var(--ps-radius-md) !important;
}
.lc-form input:focus,
.lc-form select:focus,
.lc-form textarea:focus,
.auth-panel .lc-form input:focus {
  border-color: var(--lc-green) !important;
  box-shadow: 0 0 0 3px var(--accent-ring, rgba(30, 106, 80, .2)) !important;
}

.auth-primary-btn:not(.ui-btn-primary),
.auth-panel .lc-form button[type=submit]:not(.ui-btn-primary) {
  height: 44px;
  min-height: 44px;
  border-radius: var(--ps-radius-md);
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
  font-weight: 600;
}
[data-theme="dark"] .auth-primary-btn:not(.ui-btn-primary),
[data-theme="dark"] .auth-panel .lc-form button[type=submit]:not(.ui-btn-primary) {
  color: #0E0D0C !important;
}
.currency-toggle button,
.period-toggle button {
  border-radius: var(--ps-radius-sm);
  min-height: 36px;
}

/* ── Mobile drawer ── */
.lc-mobile-menu {
  width: min(84vw, 300px);
  border-radius: 0;
}
.lc-mobile-menu-item {
  min-height: 44px;
  margin: 0 8px;
  padding: 0 12px;
  border-radius: var(--ps-radius-md);
  border-left-width: 3px;
  font-size: 14px;
  font-weight: 550;
}
.lc-mobile-menu-item.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent);
}
.lc-mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--ps-radius-md);
}

@media (max-width: 900px) {
  .lc-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 16px 24px;
  }
  .lc-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-hero-stat {
    padding: 16px 14px 14px;
    border-bottom: 1px solid var(--lc-rule);
  }
  .lc-modules { padding: 8px 16px 56px; }
  .lc-modules-grid { grid-template-columns: 1fr; }
  .lc-manifest { padding: 0 16px; margin-bottom: 36px; }
}

@media (max-width: 860px) {
  .ps-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--ps-topbar) minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "main";
  }
  .ps-shell > aside.ps-pub-sidebar,
  .ps-shell > aside.ws-sidebar,
  .ps-shell > aside.sidebar,
  .ps-shell > #ws-sidebar,
  aside[data-atomurus-sidebar] {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 500;
    width: min(84vw, 300px) !important;
    transform: translateX(-105%) !important;
    grid-area: auto;
  }
  .ps-shell.is-nav-open > aside.ps-pub-sidebar,
  .ps-shell.is-nav-open > aside.ws-sidebar,
  .ps-shell.is-nav-open > aside.sidebar,
  .ps-shell.is-nav-open > #ws-sidebar,
  .ps-shell > aside.sidebar.mobile-open,
  .ps-shell > aside.ws-sidebar.mobile-open,
  .ps-shell > #ws-sidebar.mobile-open {
    transform: translateX(0) !important;
  }
  .ps-shell > .topbar .logo-wrap,
  .ps-shell > .topbar .ps-brand {
    display: none !important;
  }
  .ps-shell > .topbar .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .ps-shell > .topbar .search-box,
  .ps-shell > .topbar .ps-search,
  .ps-shell > .lc-topnav .lc-topnav-search {
    max-width: none;
  }
  html body:has(> aside.sidebar):has(> main.main) {
    padding-top: 0 !important;
  }
  html body:has(> aside.sidebar):has(> main.main) > main.main > .topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    height: var(--ps-topbar) !important;
    padding-left: 12px !important;
    z-index: 40 !important;
  }
  html body:has(> aside.sidebar):has(> main.main) > aside.sidebar > .logo-wrap {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 16px 12px 14px !important;
  }
  .lc-topnav { height: var(--ps-topbar); padding: 0 12px; }
  .lc-topnav-name,
  .logo-text,
  .lc-mobile-menu-name { font-size: 20px !important; }
  .lc-mobile-hamb {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--ps-radius-md) !important;
    background: transparent !important;
  }
  .lc-topnav-btn,
  .lc-topnav-cta { height: 40px; }
  .lc-hero-title { font-size: clamp(32px, 9vw, 42px) !important; }
  .sidebar { width: min(84vw, 300px) !important; }
}

@media (max-width: 390px) {
  .lc-hero-stats { grid-template-columns: 1fr 1fr; }
  .lc-hero-title { font-size: 28px !important; }
}

/* ── Interior: undo body * { max-width: 100% } crushing grids ── */
body .calc-shell,
body .calc-shell *,
body .calc-menu-item,
body .calc-menu-copy,
body .sidebar,
body .ptable,
body .el,
body .scc-device,
body .sk,
body .sk-grid,
body .sk-row,
body .cmp-slot,
body .heatmap-legend,
body .ex-card,
body .viewer {
  max-width: none;
}
body .calc-shell,
body .sidebar,
body .viewer,
body .ptable {
  max-width: 100%;
}

/* ── Calculator interior = workspace cards ── */
.calc-tab.active {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important;
  column-gap: 20px;
}
.calc-input,
.calc-select {
  height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
}
.calc-input:focus,
.calc-select:focus {
  border-color: var(--lc-green) !important;
  box-shadow: 0 0 0 3px var(--accent-ring, rgba(30, 106, 80, .2)) !important;
}
.calc-field-l {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  color: var(--lc-ink-2) !important;
}
.calc-formula-strip {
  border-radius: var(--ps-radius-md) !important;
  background: var(--lc-paper) !important;
}
.calc-chip {
  min-height: 36px !important;
  border-radius: 999px !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 13px !important;
}
.calc-chip:hover,
.calc-btn-run:hover,
.calc-btn-reset:hover,
.calc-copy-btn:hover {
  transform: none !important;
}
.calc-result {
  border-radius: var(--ps-radius-lg) !important;
  overflow: hidden;
  background: var(--lc-paper) !important;
  border: 1px solid var(--lc-rule) !important;
}
.calc-result-head {
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg)) !important;
  color: var(--lc-ink-2) !important;
  font-size: 11px !important;
  letter-spacing: .12em;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--lc-rule);
}
html body.ps-body .ps-shell .calc-result-head {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
html body.ps-body .ps-shell .calc-result-meta,
html body.ps-body .ps-shell .calc-result-meta span {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  font-family: inherit !important;
  min-width: 0;
}
html body.ps-body .ps-shell .calc-copy-btn {
  background: transparent !important;
  color: var(--lc-ink) !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: 999px !important;
  height: 32px !important;
  padding: 0 10px !important;
}
html body.ps-body .ps-shell .calc-copy-btn:hover,
html body.ps-body .ps-shell .calc-copy-btn:focus-visible {
  background: color-mix(in oklab, var(--lc-green) 8%, transparent) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
  color: var(--lc-ink) !important;
}
html body.ps-body .ps-shell .calc-menu-label {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
}
html body.ps-body .ps-shell .calc-menu-sub {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal !important;
}
html body.ps-body .ps-shell .calc-menu-title {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
html body.ps-body .ps-shell .calc-row-2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  max-width: none !important;
}
html body.ps-body .ps-shell .calc-select {
  min-width: 0 !important;
  width: 100% !important;
}
[data-theme="dark"] .calc-result-head {
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg)) !important;
  color: var(--lc-ink-2) !important;
}
.calc-result-body { padding: 18px 18px 16px !important; }
.calc-result-row {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
}
.calc-result-v.big {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
}
.calc-result-formula {
  border-radius: var(--ps-radius-md) !important;
  border-style: solid !important;
}
.calc-result-empty {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
}
.calc-copy-btn,
.calc-btn-reset {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.calc-how {
  border-radius: var(--ps-radius-md) !important;
}

/* Scientific instrument — paper card, not a black device */
.scc-device {
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
  border-radius: var(--ps-radius-lg) !important;
  background: var(--lc-paper) !important;
  border: 1px solid var(--lc-rule) !important;
  box-shadow: none !important;
}
.scc-brand {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: var(--lc-ink) !important;
}
.scc-brand-sub,
.scc-status,
.scc-line-k,
.sk-sect-k {
  color: var(--lc-ink-3) !important;
}
.scc-screen {
  background: var(--lc-bg) !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
  box-shadow: none !important;
}
.scc-result {
  color: var(--lc-ink) !important;
  text-shadow: none !important;
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
}
.scc-hist-row {
  background: var(--lc-bg) !important;
  border-color: var(--lc-rule) !important;
  color: var(--lc-ink-2) !important;
  border-radius: var(--ps-radius-md) !important;
}
.sk,
.sk-num,
.sk-op,
.sk-fn,
.sk-const,
.sk-warn {
  min-height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  background: var(--lc-bg) !important;
  border: 1px solid var(--lc-rule) !important;
  color: var(--lc-ink) !important;
  box-shadow: none !important;
}
.sk:hover,
.sk-num:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, var(--lc-bg)) !important;
}
.sk-const { color: var(--lc-ink-2) !important; }
.sk-op,
.sk-chem {
  color: var(--lc-green) !important;
  background: color-mix(in oklab, var(--lc-green) 8%, var(--lc-bg)) !important;
}
.sk-equals {
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
  box-shadow: none !important;
}
[data-theme="dark"] .sk-equals { color: #0E0D0C !important; }
.sk-equals:hover {
  background: color-mix(in oklab, var(--lc-green) 88%, #0a0907) !important;
}
.sci-keypad-shell,
.sci-suggestions {
  border-radius: var(--ps-radius-md) !important;
  background: var(--lc-paper) !important;
}

/* ── Table toolbar, compare, heatmap, explore, viewers ── */
.dl-btn,
.dl-action,
.trend-export-btn {
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  min-height: 36px;
  font-weight: 600 !important;
}
.dl-action,
.trend-export-btn {
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
}
[data-theme="dark"] .dl-action,
[data-theme="dark"] .trend-export-btn {
  color: #0E0D0C !important;
}
.dl-btn.active {
  color: var(--lc-green) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
}
.hm-select {
  height: 40px;
  border-radius: var(--ps-radius-md);
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif);
  font-size: 14px;
}
.heatmap-legend,
.cmp-slot,
.iso-selector {
  border-radius: var(--ps-radius-lg);
}
.cmp-slot-pick,
.iso-selector-btn,
.iso-selector-link,
.iso-group-btn {
  border-radius: var(--ps-radius-md);
  min-height: 40px;
}
.ex-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}
.ex-card {
  border-radius: var(--ps-radius-md);
  background: var(--lc-paper);
}
html body .ex-card-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
}
.ex-pill {
  min-height: 36px;
  border-radius: 999px;
}
.ex-search {
  height: 44px;
  border-radius: var(--ps-radius-md);
}
html body .viewer {
  border-radius: var(--ps-radius-lg) !important;
  overflow: hidden;
}
html body .viewer .tab[data-no]::before,
html body .viewer .tab::before {
  content: none !important;
  display: none !important;
}
html body .viewer .tab {
  min-height: 44px;
  font-size: 14px !important;
  font-weight: 550 !important;
}
html body .viewer .tab.active {
  border-bottom-color: var(--lc-green) !important;
  color: var(--lc-green) !important;
}
html body .viewer .pill {
  min-height: 36px;
  border-radius: 999px !important;
  padding: 6px 12px !important;
}
html body .viewer .pill:hover {
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
  color: var(--lc-ink) !important;
}
html body .viewer .pill.active,
html body .viewer .pill.purple.active,
html body .viewer .pill.purple.active:hover {
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
}
[data-theme="dark"] html body .viewer .pill.active,
[data-theme="dark"] html body .viewer .pill.purple.active {
  color: #0E0D0C !important;
}
.vz-num {
  display: none !important;
}
.vz-tabs {
  gap: 4px;
  padding: 6px;
  border-radius: var(--ps-radius-md);
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg));
}
.vz-tab {
  min-height: 44px;
  border-radius: var(--ps-radius-md);
  font-size: 14px;
  font-weight: 550;
}
.vz-tab.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent);
}

@media (max-width: 1180px) {
  .calc-tab.active {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  .calc-shell {
    grid-template-columns: 1fr !important;
  }
  .calc-menu-item {
    grid-template-columns: minmax(0, 1fr) auto !important;
    white-space: nowrap;
  }
  .calc-menu-title {
    white-space: nowrap;
  }
}

/* ── Sitewide workspace pattern: chips, table family, elements, viewers ── */

html body .pt-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 14px 0 16px !important;
  padding: 4px !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg)) !important;
  box-shadow: none !important;
}
html body .pt-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: var(--ps-radius-md) !important;
  background: transparent !important;
  color: var(--lc-ink-2) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
html body .pt-tab:hover {
  color: var(--lc-ink) !important;
  background: color-mix(in oklab, var(--lc-green) 8%, transparent) !important;
}
html body .pt-tab.active,
html body .pt-tab.active:visited {
  color: var(--lc-green) !important;
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  border-bottom-color: transparent !important;
}

html body .legend {
  border-radius: 0 !important;
  gap: 6px !important;
}
html body .legend-item,
html body .legend-clear {
  min-height: 32px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
}
html body .legend-dot {
  border-radius: 999px !important;
}
html body .legend-item.active-filter {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
}
[data-theme="dark"] html body .legend-item.active-filter {
  color: var(--lc-green) !important;
}

html body .ex-pill {
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: transparent !important;
  color: var(--lc-ink-2) !important;
}
html body .ex-pill:hover {
  color: var(--lc-ink) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
  background: color-mix(in oklab, var(--lc-green) 8%, transparent) !important;
}
html body .ex-pill.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
}
[data-theme="dark"] html body .ex-pill.active {
  color: var(--lc-green) !important;
}

html body .lc-el-name {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
html body .lc-el-card {
  border-radius: var(--ps-radius-lg) !important;
}
html body .lc-el-card-sym {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
}
html body .lc-el-props,
html body .lc-el-nav {
  border-radius: var(--ps-radius-lg) !important;
  overflow: hidden;
}
html body .lc-el-nav a:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, var(--lc-paper)) !important;
}

html body .hm-select,
html body .cmp-slot-pick,
html body .iso-selector-btn,
html body .iso-selector-link,
html body .iso-group-btn {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
}
html body .heatmap-legend,
html body .cmp-slot,
html body .iso-selector {
  border-radius: var(--ps-radius-lg) !important;
  background: var(--lc-paper) !important;
  border-color: var(--lc-rule) !important;
}

html body .viewer-controls,
html body .viewer-zoom {
  background: var(--lc-paper) !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
  box-shadow: none !important;
}
html body .viewer-controls .vc-btn,
html body .viewer-zoom .vc-btn {
  color: var(--lc-ink-2) !important;
  background: transparent !important;
  border-radius: var(--ps-radius-sm) !important;
}
html body .viewer-controls .vc-btn:hover,
html body .viewer-zoom .vc-btn:hover {
  background: color-mix(in oklab, var(--lc-green) 8%, transparent) !important;
  color: var(--lc-ink) !important;
}
html body .viewer-controls .vc-btn.active {
  background: var(--lc-green) !important;
  color: #F8F5EC !important;
}
[data-theme="dark"] html body .viewer-controls .vc-btn.active {
  color: #0E0D0C !important;
}

html body .art-kicker .art-cat {
  min-height: 28px;
  border-radius: 999px !important;
}
html body .scc-keypad-tabs {
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg)) !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
}
html body .scc-keypad-tab {
  min-height: 36px !important;
  border-radius: var(--ps-radius-md) !important;
  font-weight: 550 !important;
}
html body .scc-keypad-tab.is-on {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  box-shadow: none !important;
}
html body .sci-mode-btn.is-on {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  box-shadow: none !important;
}
html body .ion-btn {
  min-height: 36px !important;
  border-radius: 999px !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .ion-btn.active {
  background: var(--lc-green) !important;
  color: #F8F5EC !important;
  border-color: var(--lc-green) !important;
}
[data-theme="dark"] html body .ion-btn.active {
  color: #0E0D0C !important;
}
html body .toast {
  background: var(--lc-paper) !important;
  color: var(--lc-ink) !important;
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
}

body .lc-el-card,
body .lc-el-props,
body .lc-el-nav,
body .pt-tabs,
body .legend,
body .art-wrap,
body .cmp-slot,
body .settings-section {
  max-width: none;
}

/* ── Next pass: settings, docs, compare, footer, leftover black fills ── */

html body .settings-section {
  border: 1px solid var(--lc-rule) !important;
  border-radius: var(--ps-radius-lg) !important;
  background: var(--lc-paper) !important;
}
html body .settings-segmented {
  gap: 4px !important;
  padding: 4px !important;
  border-radius: var(--ps-radius-md) !important;
  overflow: visible !important;
  background: color-mix(in oklab, var(--lc-paper) 70%, var(--lc-bg)) !important;
}
html body .seg-btn {
  min-height: 36px !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-right: 0 !important;
  border-radius: var(--ps-radius-md) !important;
  font-size: 13px !important;
  font-weight: 550 !important;
}
html body .seg-btn.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
}
html body .seg-btn:focus {
  background: transparent !important;
  color: var(--lc-ink-2) !important;
}
html body .seg-btn.active:focus,
html body .seg-btn.active:focus-visible {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
}
html body .seg-btn:focus-visible {
  outline: 2px solid var(--lc-green) !important;
  outline-offset: 2px !important;
}
html body .settings-toggle.active {
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
}
html body .settings-toggle.active .toggle-knob {
  background: #F8F5EC !important;
}

html body .nav-badge {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  border-radius: 999px !important;
  letter-spacing: .08em;
}
html body .share-toast {
  background: var(--lc-paper) !important;
  color: var(--lc-ink) !important;
  border: 1px solid var(--lc-rule);
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body .lc-form button[type=submit]:not(.ui-btn-primary) {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  background: var(--lc-green) !important;
  border-color: var(--lc-green) !important;
  color: #F8F5EC !important;
  font-weight: 600 !important;
  transform: none !important;
}
[data-theme="dark"] html body .lc-form button[type=submit]:not(.ui-btn-primary) {
  color: #0E0D0C !important;
}

html body .currency-toggle button,
html body .period-toggle button {
  min-height: 36px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .currency-toggle button.active,
html body .period-toggle button.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
}

html body .el {
  border-radius: 6px;
}
html body .viewer .canvas-wrap {
  border-radius: var(--ps-radius-md) !important;
}
html body .cmp-slot-card {
  border-radius: var(--ps-radius-md) !important;
}
html body .lc-preview-cell.highlight {
  background: var(--lc-green) !important;
  color: #F8F5EC !important;
}
[data-theme="dark"] html body .lc-preview-cell.highlight {
  color: #0E0D0C !important;
}

html body .lc-doc-aside {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .lc-doc-aside a {
  min-height: 36px;
  border-radius: var(--ps-radius-md) !important;
}
html body .lc-doc-tag {
  border-radius: 999px !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .art-toc {
  border-radius: var(--ps-radius-md);
}

.lc-footer-bottom > span:has(.lc-st-dot) {
  display: none !important;
}

html body .price-card h3 {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
}
html body .share-trigger {
  min-height: 40px;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body .share-host-compact .share-trigger,
html body .topbar .share-host-compact .share-trigger,
html body .lc-topnav .share-host-compact .share-trigger {
  width: 40px !important;
  height: 40px !important;
}
html body .cmp-picker-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
}
html body .art-toc .toc-label {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: .12em !important;
}
html body .sub-tab {
  min-height: 36px;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
}
html body .sub-tab.active {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
}
html body .settings-about .logo-mark {
  border-radius: var(--ps-radius-sm) !important;
}
html body .about-logo > div > div:first-child {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#aco-cookie-banner {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
}
#aco-cookie-banner .aco-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
}
#aco-cookie-banner button {
  min-height: 40px;
  border-radius: var(--ps-radius-md) !important;
}

/* ── Leftover instrument chrome: elements, trends, molecules, allotropes ── */

html body .lc-el-kicker,
html body .lc-el-prop .k,
html body .lc-el-desc-lbl,
html body .lc-el-card-cat,
html body .lc-el-card-mass,
html body .lc-el-nav .dir {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: .08em !important;
}
html body .lc-el-lat {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  font-style: italic;
}

html body .mol-search,
html body .allo-search {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  font-size: 14px !important;
}
html body .mol-search-none,
html body .allo-search-none,
html body .info-hint,
html body .info-stats {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
}
html body .info-name {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-weight: 400 !important;
}
html body .viewer-controls .vc-btn::after,
html body .viewer-zoom .vc-btn::after {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  border-radius: var(--ps-radius-sm) !important;
}

html body .trend-tool {
  min-height: 36px !important;
  height: 36px !important;
  border-radius: var(--ps-radius-md) !important;
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
}
html body .trend-auto.is-on {
  background: color-mix(in oklab, var(--lc-green) 10%, transparent) !important;
  color: var(--lc-green) !important;
  border-color: color-mix(in oklab, var(--lc-green) 40%, var(--lc-rule)) !important;
}
html body .trend-select-head {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: .12em !important;
}

html body .lc-doc-card .lbl,
html body .lc-form label {
  font-family: var(--lc-sans, 'Inter Tight', system-ui, sans-serif) !important;
  letter-spacing: .08em !important;
}

.solver-discover {
  margin: 12px 0 20px;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklab, var(--lc-green, #1E6A50) 35%, var(--lc-rule, #D8D2BF));
  border-radius: 10px;
  background: color-mix(in oklab, var(--lc-paper, #F8F5EC) 88%, transparent);
  max-width: 42rem;
}
.solver-discover-badge {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lc-green, #1E6A50);
}
.solver-discover p { margin: 6px 0 10px; color: var(--lc-ink-2, #58544A); font-size: 14px; }
.solver-discover-cta {
  font: inherit;
  text-decoration: none;
  display: inline-block;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--lc-green, #1E6A50);
  color: #fff;
}
.pt-solver-cta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--lc-ink-3, #6b675c);
}
.pt-solver-cta a { color: var(--lc-green, #1E6A50); text-decoration: none; }
