:root {
  --sans: 'Instrument Sans', sans-serif;
  --display: 'Instrument Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --paper: #f8f7f2;
  --white: #fffefa;
  --ink: #202720;
  --muted: #70796f;
  --line: #e1e5dc;
  --green: #7e9b83;
  --green-dark: #46644e;
  --warm: #edf1e9;
  --clay: #bd8867;
  --sage-wash: #eaf0e8;
  --sand-wash: #f2ece4;
}

html, body { overflow-x: clip; }
body { font-size: 15px; background: var(--paper); }
.site-header { border-color: #e1e5dc; }
.brand-mark i, .mini-mark i { background: #385342; }
.main-nav a { color: #5b665c; font-size: 13px; }
.main-nav a:hover, .footer-links a:hover { color: #43634b; }
.header-cta {
  border-color: #bac8b9;
  border-radius: 5px;
  background: #edf2eb;
  color: #314d39;
  font-size: 12px;
  padding: 11px 18px;
  transition: background .24s, color .24s, border-color .24s, transform .24s;
}
.header-cta:hover { background: #45634c; color: #fff; border-color: #45634c; transform: translateY(-1px); }
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 72px;
  right: -10%;
  width: min(48vw, 570px);
  height: 310px;
  background: radial-gradient(ellipse at center, #e4ecdfaa 0%, #e4ecdf00 72%);
  pointer-events: none;
}
.hero h1 span { color: #718c75; }
.hero-desc { font-size: 16px; }
.eyebrow { color: #4f6754; }
.eyebrow-dot { background: #8aab8e; box-shadow: 0 0 0 4px #e5ede2; }
.button {
  border-radius: 5px;
  font-size: 13px;
  padding: 16px 18px;
  transition: transform .24s cubic-bezier(.2,.7,.25,1), background .24s, box-shadow .24s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 16px #283b2b19; }
.button-dark { background: #294632; }
.button-dark:hover { background: #3c6045; }
.text-link { font-size: 13px; }
.dashboard-shell {
  background: #fffefa;
  border-color: #d5ded2;
  border-radius: 8px;
  box-shadow: 0 18px 52px #26392a12;
}
.dashboard-topbar { background: #fbfcf8; }
.metric, .panel { border-color: #e2e8df; border-radius: 5px; }
.health-indicator, .repo-health i { background: #719a75; }
.health-spark span { background: #b9cfba; }
.symbol-fix { background: #e9f1e8; color: #55785c; }
.workflow-visual { background: #eaf0e8; border-color: #dae4d8; border-radius: 8px; }
.workflow-window { border-radius: 5px; overflow: hidden; }
.workflow-step.active .step-dot { background: #6c9672; }
.workflow-step.active b { color: #46684d; }
.timeline-node { border-color: #b1c5b2; color: #62816a; }
.test-result { background: #edf4ec; border-color: #dae8d8; border-radius: 4px; }
.feature-section { background: #eaf0e8; border-color: #dfe7dc; }
.feature-card {
  background: #f8faf6;
  border-color: #dae3d7;
  border-radius: 8px;
  transition: transform .35s cubic-bezier(.2,.7,.25,1), box-shadow .35s, border-color .35s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #30493313; border-color: #c5d4c3; }
.feature-card h3 { font-size: 29px; }
.feature-card > p { font-size: 12px; }
.feature-heading > p { font-size: 14px; color: #69766b; }
.monitor-visual, .detection-visual, .trace-visual, .diff-visual, .verification-visual,
.dependency-visual, .github-visual, .test-visual { border-radius: 5px; overflow: hidden; }
.monitor-live, .running-state, .verify-heading span:last-child { color: #638367; }
.monitor-chart svg path:first-child { stroke: #71987a; }
.diff-add { background: #eaf2e8; color: #4f7456; }
.diff-pass { background: #edf4ec; color: #57795b; }
.pkg-update { color: #a57755; }
.flow-symbol { border-radius: 7px; background: #f4f7f1; }
.flow-track .flow-symbol { transition: transform .3s, background .3s, border-color .3s; }
.flow-step:hover .flow-symbol { transform: translateY(-3px); background: #e8f0e6; border-color: #cad9c8; }
.flow-line { background: #79977e; }
.ecosystem { background: #f1eee7; border-color: #e7e0d4; }
.ecosystem-logos, .ecosystem-item { border-color: #ded8cb; }
.ecosystem-item { transition: background .25s; }
.ecosystem-item:hover { background: #f8f5ef; }
.logo-github, .logo-vercel { color: #293a2d !important; }
.safety-icon { border-radius: 5px; background: #eaf0e8; color: #56765c; }
.safety-check { color: #608767; }
.pricing-mark { border-radius: 6px; background: #edf2e9; color: #54775b; }
.signup-card { background: #e9efe7; border-color: #dce5d9; border-radius: 8px; }
.input-row { border-radius: 4px; overflow: hidden; border-color: #aebead; }
.input-row input { font-size: 12px; }
.input-row button { background: #294632; font-size: 10px; }
.input-row button:hover { background: #3c6045; }
.form-note { font-size: 9px; }
.site-footer { background: #f2f2ed; }
.footer-links a { font-size: 10px; }
.hero-copy { animation: rise-in .72s cubic-bezier(.2,.7,.25,1) both; }
.dashboard-shell { animation: rise-in .8s .12s cubic-bezier(.2,.7,.25,1) both; }
.eyebrow-dot, .health-indicator, .monitor-live i, .sync i { animation: quiet-pulse 3.4s ease-in-out infinite; }
.monitor-chart svg path:first-child { stroke-dasharray: 860; stroke-dashoffset: 860; animation: draw-line 1.8s .6s ease-out forwards; }
.header-cta:focus-visible, .button:focus-visible, .text-link:focus-visible,
.main-nav a:focus-visible, .input-row button:focus-visible { outline: 2px solid #72977a; outline-offset: 4px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes quiet-pulse { 0%, 100% { box-shadow: 0 0 0 3px #e5ede2; opacity: 1; } 50% { box-shadow: 0 0 0 6px #e5ede280; opacity: .8; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

body.motion-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.25,1); }
body.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.feature-grid .feature-card:nth-child(2) { transition-delay: .06s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: .1s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: .14s; }

@media (max-width: 1000px) {
  .hero::before { right: -6%; width: 55vw; }
  .feature-card h3 { font-size: 27px; }
}
@media (max-width: 850px) {
  .site-header { height: 70px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 69px;
    left: -28px;
    right: -28px;
    margin: 0;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav.open { display: flex; }
  .menu-toggle {
    display: flex;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 3px;
  }
  .menu-toggle span { width: 19px; height: 1px; background: #385342; }
  .hero-bottom { display: block; margin: 24px 0 38px; }
  .hero-desc { max-width: 470px; }
  .hero-actions { margin-top: 20px; gap: 20px; }
  .dashboard-shell { overflow-x: auto; }
  .dashboard-topbar { min-width: 680px; }
  .dashboard-layout { min-width: 680px; grid-template-columns: 150px 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero::before { top: 30px; right: -25%; width: 85vw; height: 250px; }
  .hero h1 { font-size: clamp(46px, 10.5vw, 72px); }
  .hero-desc { font-size: 14px; line-height: 1.75; }
  .header-cta { font-size: 12px; padding: 10px 14px; border-radius: 5px; }
  .main-nav a { font-size: 14px; }
  .button { font-size: 12px; }
  .text-link { font-size: 12px; }
  .feature-card h3 { font-size: 25px; }
  .feature-card > p { font-size: 11px; }
  .section-title-row > p, .feature-heading > p, .ecosystem-title > p { font-size: 13px; }
  .manifesto-lower > p { font-size: 13px; }
  .flow-step h3 { font-size: 12px; }
  .flow-step p { font-size: 11px; }
  .safety-grid > div:first-child > p { font-size: 13px; }
  .safety-list h3 { font-size: 12px; }
  .safety-list p { font-size: 10px; }
  .pricing-inner > div:first-child > p:last-child { font-size: 12px; }
  .signup-card > div > p { font-size: 12px; }
  .footer-links a { font-size: 9px; }
  .dashboard-shell { border-radius: 6px; }
  .feature-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(35px, 10.5vw, 43px); letter-spacing: -.072em; }
  .hero-actions { align-items: flex-start; flex-wrap: wrap; }
  .hero-actions .button { min-width: 145px; }
  .hero-actions .text-link { padding: 14px 0; }
  .header-cta { margin-right: 12px; }
  .menu-toggle { width: 28px; }
  .feature-card h3 { font-size: 25px; }
  .signup-card { padding: 29px 19px; }
  .input-row button { padding: 0 10px; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 8px; }
}
@media (min-width: 701px) and (max-width: 850px) {
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 1.8vw, 17px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .main-nav a { font-size: 11px; white-space: nowrap; }
  .header-cta { margin: 0 0 0 12px; white-space: nowrap; }
  .menu-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.motion-ready .reveal { opacity: 1; transform: none; }
}

:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121813;
  --white: #1b241d;
  --ink: #edf2ed;
  --muted: #aab6ab;
  --line: #354339;
  --green: #91ae96;
  --green-dark: #b2cbb4;
  --warm: #202a22;
  --clay: #d3a17f;
  --sage-wash: #1b261e;
  --sand-wash: #29241f;
}
html[data-theme="dark"] body { color: var(--ink); background: var(--paper); }
html[data-theme="dark"] body * { border-color: var(--line); }
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] small,
html[data-theme="dark"] time { color: var(--muted); }

.theme-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { background: var(--warm); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid #72977a; outline-offset: 3px; }
.theme-toggle svg { display: block; width: 16px; height: 16px; }
.theme-icon-sun { display: none !important; }
html[data-theme="dark"] .theme-icon-moon { display: none !important; }
html[data-theme="dark"] .theme-icon-sun { display: block !important; }
html[data-theme="dark"] .theme-toggle { border-color: #46584a; background: #202b23; color: #e5eee5; }
html[data-theme="dark"] .theme-toggle:hover { background: #2a392d; }
.header-cta:focus-visible, .button:focus-visible, .text-link:focus-visible,
.main-nav a:focus-visible, .input-row button:focus-visible { outline: 2px solid #72977a; outline-offset: 4px; }

html[data-theme="dark"] .site-header { border-color: var(--line); background-color: var(--paper); }
html[data-theme="dark"] .brand-mark i, html[data-theme="dark"] .mini-mark i { background: #a8c3aa; }
html[data-theme="dark"] .main-nav a, html[data-theme="dark"] .footer-links a { color: #b4c0b5; }
html[data-theme="dark"] .main-nav a:hover, html[data-theme="dark"] .footer-links a:hover { color: #f1f6f1; }
html[data-theme="dark"] .header-cta { border-color: #46584a; background: #202b23; color: #e5eee5; }
html[data-theme="dark"] .header-cta:hover { border-color: #6f9674; background: #527a59; color: #fff; }
html[data-theme="dark"] .menu-toggle span { background: #d8e4d8; }
html[data-theme="dark"] .hero::before { background: radial-gradient(ellipse at center, #405a4380 0%, #405a4300 72%); }
html[data-theme="dark"] .hero h1 span,
html[data-theme="dark"] .manifesto-content h2 em,
html[data-theme="dark"] .section-title-row em,
html[data-theme="dark"] .pricing h2 em { color: #9bb99e; }
html[data-theme="dark"] .eyebrow, html[data-theme="dark"] .section-index { color: #a5b6a5; }
html[data-theme="dark"] .section-index span { color: #738574; }
html[data-theme="dark"] .eyebrow-dot { background: #91b195; box-shadow: 0 0 0 4px #26362a; }
html[data-theme="dark"] .hero-desc, html[data-theme="dark"] .manifesto-lower > p,
html[data-theme="dark"] .section-title-row > p, html[data-theme="dark"] .feature-heading > p,
html[data-theme="dark"] .ecosystem-title > p, html[data-theme="dark"] .safety-grid > div:first-child > p,
html[data-theme="dark"] .pricing-inner > div:first-child > p:last-child { color: var(--muted); }
html[data-theme="dark"] .button-dark { background: #789c7b; color: #101710; }
html[data-theme="dark"] .button-dark:hover { background: #95b698; }
html[data-theme="dark"] .text-link { color: #d4e1d4; }
html[data-theme="dark"] .text-link span { color: #aab8aa; }

html[data-theme="dark"] .dashboard-shell { border-color: var(--line); background: #18211a; box-shadow: 0 18px 52px #00000040; }
html[data-theme="dark"] .dashboard-shell * { color: #e5ede5; }
html[data-theme="dark"] .dashboard-topbar, html[data-theme="dark"] .dash-sidebar { background: #1c261e; }
html[data-theme="dark"] .dashboard-layout, html[data-theme="dark"] .dash-main { background: #18211a; }
html[data-theme="dark"] .metric, html[data-theme="dark"] .panel { background: #202a23; }
html[data-theme="dark"] .plan-card, html[data-theme="dark"] .range-button,
html[data-theme="dark"] .workspace-icon, html[data-theme="dark"] .repo-icon,
html[data-theme="dark"] .dep-icon { background: #29372c; }
html[data-theme="dark"] .avatar, html[data-theme="dark"] .side-item.selected,
html[data-theme="dark"] .symbol-fix, html[data-theme="dark"] .symbol-check,
html[data-theme="dark"] .symbol-review { background: #2b392e; }
html[data-theme="dark"] .dashboard-shell :is(.workspace-label, .sync, .side-label, .side-item,
  .side-count, .workspace-switch small, .chevron, .plan-card small, .dash-kicker, .dash-subtitle,
  .metric-label, .metric-period, .health-foot, .metric-caption, .panel-head p, .panel-link,
  .repo-name small, .repo-health, .repo-chevron, .dependency-line small, .activity-copy p,
  .activity-item time, .activity-all, .dashboard-foot, .hero-caption) { color: #aab6ab; }
html[data-theme="dark"] .health-indicator, html[data-theme="dark"] .repo-health i,
html[data-theme="dark"] .sync i { background: #91b596; }
html[data-theme="dark"] .health-spark span { background: #6c8a70; }
html[data-theme="dark"] .repo-health.attention, html[data-theme="dark"] .count-alert,
html[data-theme="dark"] .repo-health.attention i { color: #e0ad7e; }
html[data-theme="dark"] .repo-health.attention i { background: #d39a68; }
html[data-theme="dark"] .dashboard-foot span:first-child i { background: #91a591; }

html[data-theme="dark"] .manifesto, html[data-theme="dark"] .solution,
html[data-theme="dark"] .safety, html[data-theme="dark"] .pricing { border-color: var(--line); }
html[data-theme="dark"] .reality-list, html[data-theme="dark"] .reality-list div,
html[data-theme="dark"] .safety-list, html[data-theme="dark"] .safety-list article { border-color: var(--line); }
html[data-theme="dark"] .reality-list div { color: #c3cdc3; }
html[data-theme="dark"] .reality-list span, html[data-theme="dark"] .flow-number { color: #9eae9f; }
html[data-theme="dark"] .workflow-steps::before { background: #354339; }
html[data-theme="dark"] .step-dot { background: #526b56; }
html[data-theme="dark"] .workflow-step.active .step-dot { background: #91b596; }
html[data-theme="dark"] .workflow-step.active b { color: #b7d1b9; }
html[data-theme="dark"] .workflow-visual { border-color: var(--line); background: #1b261e; }
html[data-theme="dark"] .workflow-window { border-color: var(--line); background: #202a23; }
html[data-theme="dark"] .window-top { background: #263228; }
html[data-theme="dark"] .window-dots i { background: #657466; }
html[data-theme="dark"] .run-id, html[data-theme="dark"] .timeline-row > span:not(.timeline-node) { color: #c5d1c6; }
html[data-theme="dark"] .repo-icon { color: #d5e1d6; }
html[data-theme="dark"] .issue-severity, html[data-theme="dark"] .issue-label { color: #e2b18f; }
html[data-theme="dark"] .timeline-node { border-color: #92b196; color: #a8c8ab; }
html[data-theme="dark"] .pr-open { color: #a9c4ab; }
html[data-theme="dark"] .test-result, html[data-theme="dark"] .test-check { border-color: #405344; background: #25352a; }
html[data-theme="dark"] .note-line { background: #809482; }
html[data-theme="dark"] .feature-section { border-color: var(--line); background: #171f19; }
html[data-theme="dark"] .feature-card { border-color: #36453a; background: #1e2821; }
html[data-theme="dark"] .feature-card > p { color: #b2bdb3; }
html[data-theme="dark"] .feature-meta, html[data-theme="dark"] .monitor-live,
html[data-theme="dark"] .running-state, html[data-theme="dark"] .verify-heading span:last-child { color: #a7c2aa; }
html[data-theme="dark"] .monitor-visual, html[data-theme="dark"] .detection-visual,
html[data-theme="dark"] .trace-visual, html[data-theme="dark"] .diff-visual,
html[data-theme="dark"] .verification-visual, html[data-theme="dark"] .dependency-visual,
html[data-theme="dark"] .github-visual, html[data-theme="dark"] .test-visual { border-color: #354339; background: #202a23; }
html[data-theme="dark"] .trace-bad > span, html[data-theme="dark"] .diff-remove,
html[data-theme="dark"] .detect-error { background: #402b27; color: #e6b4a5; }
html[data-theme="dark"] .diff-add, html[data-theme="dark"] .diff-pass { background: #26392b; color: #b5d4b8; }
html[data-theme="dark"] .detect-warn { background: #3a3225; color: #e1c18e; }
html[data-theme="dark"] .detect-note, html[data-theme="dark"] .verify-progress { background: #263129; }
html[data-theme="dark"] .verify-progress i { background: #91b596; }
html[data-theme="dark"] .trace-insight::before { background: #6d806e; }
html[data-theme="dark"] .flow-symbol { border-color: #425145; background: #202a23; }
html[data-theme="dark"] .flow-connector { background: #435246; }
html[data-theme="dark"] .flow-connector span { background: var(--paper); color: #b2beb3; }
html[data-theme="dark"] .flow-step p, html[data-theme="dark"] .flow-footnote { color: var(--muted); }
html[data-theme="dark"] .flow-line { background: #88a38c; }
html[data-theme="dark"] .ecosystem { border-color: var(--line); background: #1a241d; }
html[data-theme="dark"] .ecosystem-logos, html[data-theme="dark"] .ecosystem-item { border-color: var(--line); }
html[data-theme="dark"] .ecosystem-item:hover { background: #243127; }
html[data-theme="dark"] .ecosystem-item > span { color: #dbe6dc; }
html[data-theme="dark"] .ecosystem-item small, html[data-theme="dark"] .ecosystem-note { color: #aab6ab; }
html[data-theme="dark"] .logo-github, html[data-theme="dark"] .logo-vercel { color: #e2ece2 !important; }
html[data-theme="dark"] .safety-icon, html[data-theme="dark"] .pricing-mark { border-color: #3b4a3e; background: #263329; color: #a8c4aa; }
html[data-theme="dark"] .safety-list p, html[data-theme="dark"] .safety-check { color: #abc3ad; }
html[data-theme="dark"] .signup-card { border-color: var(--line); background: #202b23; }
html[data-theme="dark"] .signup-overline, html[data-theme="dark"] .access-form label,
html[data-theme="dark"] .form-note, html[data-theme="dark"] .no-card { color: #adbaae; }
html[data-theme="dark"] .input-row { border-color: #526654; }
html[data-theme="dark"] .input-row input { color: var(--ink); }
html[data-theme="dark"] .input-row input::placeholder { color: #829084; }
html[data-theme="dark"] .input-row button { background: #789c7b; color: #101710; }
html[data-theme="dark"] .site-footer { border-color: var(--line); background: #171f19; }
html[data-theme="dark"] .footer-top > div:first-child > p,
html[data-theme="dark"] .footer-links > div > span, html[data-theme="dark"] .footer-links a small,
html[data-theme="dark"] .footer-bottom { color: #a4b0a5; }
html[data-theme="dark"] .footer-bottom a:hover { color: #f1f6f1; }
html[data-theme="dark"] .header-cta:focus-visible, html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] .text-link:focus-visible, html[data-theme="dark"] .main-nav a:focus-visible,
html[data-theme="dark"] .input-row button:focus-visible { outline-color: #a4c9a7; }
html[data-theme="dark"] .theme-toggle:focus-visible { outline-color: #a4c9a7; }
@keyframes quiet-pulse-dark {
  0%, 100% { box-shadow: 0 0 0 3px #26362a; opacity: 1; }
  50% { box-shadow: 0 0 0 6px #26362a80; opacity: .8; }
}
html[data-theme="dark"] .eyebrow-dot, html[data-theme="dark"] .health-indicator,
html[data-theme="dark"] .monitor-live i, html[data-theme="dark"] .sync i { animation-name: quiet-pulse-dark; }

@media (max-width: 850px) {
  .theme-toggle { width: 38px; min-height: 38px; padding: 0; }
  .theme-toggle [data-theme-label] { display: none; }
}
@media (max-width: 420px) {
  .theme-toggle { width: 34px; min-height: 36px; }
  .header-cta { padding-right: 11px; padding-left: 11px; }
}

/* Dark theme contrast for illustrative labels and status marks */
html[data-theme="dark"] .feature-section :is(span, small, b, strong, p) { color: #c4cec5; }
html[data-theme="dark"] .feature-section :is(h2, h3, h4) { color: #edf2ed; }
html[data-theme="dark"] .feature-section .pkg-update,
html[data-theme="dark"] .feature-section .trace-bad > span { color: #e3b397; }
html[data-theme="dark"] .feature-section .test-check,
html[data-theme="dark"] .feature-section .diff-add,
html[data-theme="dark"] .feature-section .diff-pass { color: #c4ddc7; }
html[data-theme="dark"] .feature-section .gh-mark,
html[data-theme="dark"] .feature-section .package-logo { color: #d9e4da; }
html[data-theme="dark"] .workflow-visual :is(span, small, b, p) { color: #c5d1c6; }
html[data-theme="dark"] .flow-symbol { color: #c5d8c7; }

/* Keep all small labels legible on the dark illustrative panels */
html[data-theme="dark"] .feature-section * { color: #c4cec5 !important; }
html[data-theme="dark"] .feature-section :is(h2, h3, h4) { color: #edf2ed !important; }
html[data-theme="dark"] .feature-section :is(.pkg-update, .trace-fail, .issue-label) { color: #e3b397 !important; }
html[data-theme="dark"] .feature-section :is(.test-check, .diff-add, .diff-pass) { color: #c4ddc7 !important; }
html[data-theme="dark"] .feature-section :is(.feature-meta, .monitor-live, .verify-heading span:last-child, .gh-mark, .package-logo) { color: #c8d9ca !important; }
html[data-theme="dark"] .workflow-visual * { color: #c5d1c6 !important; }
html[data-theme="dark"] .workflow-visual :is(.issue-severity, .issue-label) { color: #e2b18f !important; }
html[data-theme="dark"] .workflow-visual :is(.timeline-node, .pr-open, .running-state) { color: #b8d4bb !important; }

/* Lighten decorative section separators in dark mode */
html[data-theme="dark"] .section-index span { color: #a5b4a5; }

/* Skip link: visually hidden until it receives keyboard focus. */
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; margin: 0;
  padding: 10px 16px; overflow: visible; clip: auto; clip-path: none; border-radius: 8px;
  background: var(--ink); color: var(--paper); font: 600 14px var(--sans); text-decoration: none;
  outline: 2px solid var(--green); outline-offset: 2px;
}

/* Account menu */
.account-menu { position: relative; display: inline-flex; margin-left: 14px; }
.account-trigger {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; border: 1px solid #c9d6c9; background: #294632; color: #f4f8f3;
  font: 600 13px var(--sans); letter-spacing: .02em; transition: box-shadow .18s ease, transform .18s ease;
}
.account-trigger img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-trigger:hover { box-shadow: 0 0 0 3px #78937d40; }
.account-trigger:focus-visible { outline: 2px solid #72977a; outline-offset: 3px; }
.account-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 232px; padding: 6px;
  border: 1px solid #dfe5dc; border-radius: 12px; background: #fffefa; box-shadow: 0 18px 48px #1a261c2e;
  display: grid; gap: 2px;
}
.account-dropdown[hidden] { display: none; }
.account-head { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid #e7ebe4; display: grid; gap: 3px; }
.account-head b { font: 600 14px var(--sans); color: var(--ink); }
.account-head small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown a, .account-dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none;
  font: 500 14px var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
}
.account-dropdown a:hover, .account-dropdown button:hover, .account-dropdown a:focus-visible, .account-dropdown button:focus-visible { background: #eef3ec; outline: none; }
.account-dropdown .account-signout { margin-top: 4px; border-top: 1px solid #e7ebe4; border-radius: 0 0 8px 8px; color: #9a4f3d; }
html[data-theme="dark"] .account-trigger { background: #789c7b; color: #101710; border-color: #3a4c3d; }
html[data-theme="dark"] .account-dropdown { background: #1c261e; border-color: #314034; box-shadow: 0 18px 48px #00000066; }
html[data-theme="dark"] .account-head { border-color: #314034; }
html[data-theme="dark"] .account-head b, html[data-theme="dark"] .account-dropdown a, html[data-theme="dark"] .account-dropdown button { color: #e5ede5; }
html[data-theme="dark"] .account-head small { color: #aab6ab; }
html[data-theme="dark"] .account-dropdown a:hover, html[data-theme="dark"] .account-dropdown button:hover,
html[data-theme="dark"] .account-dropdown a:focus-visible, html[data-theme="dark"] .account-dropdown button:focus-visible { background: #2b392e; }
html[data-theme="dark"] .account-dropdown .account-signout { border-color: #314034; color: #e7b2a4; }
@media (max-width: 760px) { .account-menu { margin-left: auto; margin-right: 8px; } }
