:root {
  --nv-green: #76b900;
  --nv-green-dim: #5c9000;
  --nv-green-glow: rgba(118, 185, 0, 0.22);
  --nv-green-soft: rgba(118, 185, 0, 0.14);
  --nv-green-border: rgba(118, 185, 0, 0.28);
  --bg-deep: #0a0e0c;
  --bg-panel: #111816;
  --bg-elevated: #161d1a;
  --border: rgba(118, 185, 0, 0.18);
  --text: #e8f0eb;
  --muted: #9aac9f;
  --system-accent: #8fd630;
  --gpu-accent: var(--nv-green);
  --radius: 12px;
  /* Use wide viewports; cap so line length stays readable on ultrawide */
  --layout-max: min(96vw, 1560px);
  --layout-gutter: clamp(1.25rem, 3.5vw, 2.25rem);
  /* Inner padding inside panels (avoid stacking with --layout-gutter) */
  --panel-pad-x: clamp(1rem, 2.5vw, 1.65rem);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo,
    monospace;
  /* Motion — smooth deceleration, no harsh “linear UI” feel */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.04, 0.55, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -120px;
  z-index: 50;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: top 0.18s var(--ease-out-expo);
}

.skip-link:focus {
  top: 0.75rem;
  outline: none;
  border-color: rgba(143, 214, 48, 0.55);
  box-shadow: 0 0 0 1px rgba(143, 214, 48, 0.25), 0 6px 24px rgba(0, 0, 0, 0.4);
}

#workspace:focus {
  outline: none;
}

#workspace:focus-visible {
  outline: 2px solid rgba(143, 214, 48, 0.45);
  outline-offset: 3px;
}

/* Backdrop: dark top for legibility, tiny green accent, bottom vignette — no milky lift. */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 28%, transparent 48%),
    linear-gradient(180deg, rgba(118, 185, 0, 0.045) 0%, rgba(118, 185, 0, 0.012) 18%, transparent 34%),
    radial-gradient(ellipse 88% 62% at 50% 115%, rgba(0, 0, 0, 0.48) 0%, transparent 55%);
  z-index: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(118, 185, 0, 0.22);
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.site-header {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  width: 100%;
  margin: 0 auto;
  padding: 2.15rem var(--layout-gutter) 1.35rem;
  text-align: center;
  border-bottom: none;
  margin-bottom: 0.35rem;
  /* Keeps title / tagline off “muddy” midtones without a heavy panel box. */
  background: radial-gradient(ellipse 95% 140% at 50% -25%, rgba(6, 9, 8, 0.78) 0%, rgba(6, 9, 8, 0.35) 42%, transparent 72%);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  margin: 1.15rem auto 0;
  max-width: min(40rem, 92%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(118, 185, 0, 0.12) 15%,
    rgba(143, 214, 48, 0.42) 50%,
    rgba(118, 185, 0, 0.12) 85%,
    transparent 100%
  );
  border-radius: 1px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(165deg, #0a0a0a 0%, #000 45%, #050805 100%);
  border-radius: 12px;
  box-shadow:
    0 0 18px rgba(118, 185, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  border: 1px solid rgba(118, 185, 0, 0.38);
  transition:
    box-shadow 0.24s var(--ease-out-expo),
    border-color 0.2s var(--ease-soft),
    transform 0.22s var(--ease-spring);
}

.logo-wrap:hover {
  border-color: rgba(143, 214, 48, 0.48);
  box-shadow:
    0 0 22px rgba(118, 185, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
}

.brand-text {
  text-align: left;
}

@media (max-width: 520px) {
  .brand-text {
    text-align: center;
    width: 100%;
  }
}

.brand-text h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  background: linear-gradient(105deg, #ffffff 0%, #eaf6e8 38%, #d2e8c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.tagline {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #b9c9be;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.tagline-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--system-accent);
  filter: drop-shadow(0 0 5px rgba(143, 214, 48, 0.22));
  /* Inline in paragraphs: default baseline sits high vs lowercase text; flex parents ignore this. */
  vertical-align: -0.14em;
}

.tagline-arrow__svg {
  width: 0.92em;
  height: 0.92em;
  display: block;
}

.privacy-badge {
  display: inline-block;
  margin: 0.55rem 0 0;
  padding: 0.32rem 0.75rem;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4edb4;
  border: 1px solid rgba(143, 214, 48, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22, 32, 24, 0.95) 0%, rgba(0, 0, 0, 0.55) 100%);
  box-shadow:
    0 0 16px rgba(118, 185, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.lede {
  margin: 0.35rem auto 0;
  color: #b3c4b8;
  max-width: min(44rem, 100%);
  line-height: 1.6;
  font-size: 0.92rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--system-accent);
  opacity: 0.95;
  text-shadow: 0 0 20px rgba(143, 214, 48, 0.2);
}

.workspace-invite {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #aac4b6;
  border-radius: 10px;
  border: 1px solid rgba(118, 185, 0, 0.14);
  background: linear-gradient(180deg, rgba(12, 18, 15, 0.65) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.45rem;
}

.workspace-invite strong {
  color: #dceee4;
  font-weight: 600;
}

/* Single-tool workspace: tab bar + one visible panel (theme unchanged). */
.workspace {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: 0.5rem var(--layout-gutter) 2.85rem;
  box-sizing: border-box;
  scroll-margin-top: 0.75rem;
}

.tool-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(18, 26, 22, 0.92) 0%, rgba(0, 0, 0, 0.52) 100%);
  box-shadow:
    0 -1px 0 rgba(118, 185, 0, 0.07) inset,
    0 4px 24px rgba(0, 0, 0, 0.25);
}

@supports (backdrop-filter: blur(6px)) {
  .tool-tabs {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(18, 26, 22, 0.78) 0%, rgba(0, 0, 0, 0.45) 100%);
  }
}

.tool-tab {
  flex: 1 1 0;
  min-width: min(168px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.58rem 0.85rem 0.68rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 11px 11px 0 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.88;
  transition:
    background 0.2s var(--ease-soft),
    border-color 0.2s var(--ease-soft),
    color 0.2s var(--ease-soft),
    opacity 0.2s var(--ease-soft),
    box-shadow 0.24s var(--ease-out-expo),
    transform 0.14s var(--ease-spring);
}

.tool-tab:active {
  transform: scale(0.988);
}

.tool-tab:hover {
  color: #d4e8d8;
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.06);
}

.tool-tab:focus-visible {
  outline: none;
  border-color: rgba(143, 214, 48, 0.55);
  box-shadow: 0 0 0 1px rgba(143, 214, 48, 0.25);
}

.tool-tab__title {
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}

.tool-tab__desc {
  width: 100%;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(160, 180, 168, 0.85);
  line-height: 1.25;
  text-align: center;
}

.tool-tab__shortcut {
  width: 100%;
  margin-top: 0.12rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(118, 142, 128, 0.48);
  line-height: 1.2;
  user-select: none;
}

/* Active tab follows URL hash (:target) — works even if app.js fails to load */
.workspace:is(:not(:has(> .tool-tab-panels > .tool-panel:target)), :has(#tool-panel-system:target)) .tool-tab--system {
  opacity: 1;
  color: #e8f6e0;
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(143, 214, 48, 0.4);
  box-shadow: 0 0 18px rgba(143, 214, 48, 0.1);
}

.workspace:is(:not(:has(> .tool-tab-panels > .tool-panel:target)), :has(#tool-panel-system:target))
  .tool-tab--system
  .tool-tab__desc {
  color: rgba(180, 220, 160, 0.9);
}

.workspace:is(:not(:has(> .tool-tab-panels > .tool-panel:target)), :has(#tool-panel-system:target))
  .tool-tab--system
  .tool-tab__shortcut {
  color: rgba(150, 185, 138, 0.52);
}

.workspace:has(#tool-panel-bsod:target) .tool-tab--bsod {
  opacity: 1;
  color: #e8f6e0;
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(143, 214, 48, 0.4);
  box-shadow: 0 0 18px rgba(143, 214, 48, 0.1);
}

.workspace:has(#tool-panel-bsod:target) .tool-tab--bsod .tool-tab__desc {
  color: rgba(180, 220, 160, 0.9);
}

.workspace:has(#tool-panel-bsod:target) .tool-tab--bsod .tool-tab__shortcut {
  color: rgba(150, 185, 138, 0.52);
}

.workspace:has(#tool-panel-gpu:target) .tool-tab--gpu {
  opacity: 1;
  color: #eef6e8;
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(118, 185, 0, 0.45);
  box-shadow: 0 0 18px rgba(118, 185, 0, 0.12);
}

.workspace:has(#tool-panel-gpu:target) .tool-tab--gpu .tool-tab__desc {
  color: rgba(190, 210, 175, 0.92);
}

.workspace:has(#tool-panel-gpu:target) .tool-tab--gpu .tool-tab__shortcut {
  color: rgba(165, 200, 150, 0.52);
}

.tool-tab-panels {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 28, 24, 0.35) 0%, var(--bg-panel) 18%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.35);
  min-height: min(52vh, 560px);
}

/* One tool visible: match URL fragment, or default to System (no JS required) */
.workspace .tool-tab-panels > .tool-panel {
  display: none !important;
  /* Avoid encouraging the browser to scroll the page when :target changes (tabs). */
  scroll-margin-top: 0;
}

.workspace .tool-tab-panels > .tool-panel:target,
.workspace .tool-tab-panels:not(:has(> .tool-panel:target)) > .tool-panel.panel--system {
  display: flex !important;
  flex-direction: column;
}

.workspace .tool-panel.panel {
  margin: 0;
  border: none;
  border-radius: 0;
  min-height: min(50vh, 520px);
  box-shadow: none;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.panel--system {
  border-color: rgba(143, 214, 48, 0.35);
  box-shadow:
    0 0 0 1px var(--nv-green-soft) inset,
    0 0 28px rgba(118, 185, 0, 0.06);
}

/* MSInfo-style layout inside system panel (dark theme tokens only) */
.system-analyzer {
  padding: 0 var(--panel-pad-x) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.system-analyzer__hero {
  margin-top: 0.65rem;
  padding: 1.25rem 1.4rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(24, 32, 22, 0.62) 55%, rgba(12, 20, 16, 0.55) 100%);
  box-shadow:
    0 0 0 1px var(--nv-green-soft) inset,
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.system-analyzer__title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--system-accent);
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-shadow: 0 0 28px rgba(143, 214, 48, 0.12);
}

.system-analyzer__subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: #a8bdb2;
  line-height: 1.5;
}

.system-analyzer__subtitle code {
  font-size: 0.9em;
}

.panel--system .dropzone--system-analyzer {
  margin: 0;
}

.system-toolbar-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.panel--system .system-toolbar {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.system-raw-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.system-raw-search-label {
  flex: 1;
  min-width: 160px;
}

.system-raw-search {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}

.system-raw-search:focus {
  outline: none;
  border-color: rgba(143, 214, 48, 0.5);
  box-shadow: 0 0 0 2px rgba(143, 214, 48, 0.15);
}

.system-search-results {
  max-height: min(32vh, 280px);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.22);
}

.system-search-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.system-search-results__title {
  color: var(--system-accent);
}

.system-search-close {
  padding: 0.15rem 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.system-search-results__body {
  overflow: auto;
  padding: 0.35rem;
  font-size: 0.8rem;
}

.system-search-hit {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: border-color 0.08s, background 0.08s;
}

.system-search-hit:hover {
  border-color: rgba(143, 214, 48, 0.35);
  background: rgba(143, 214, 48, 0.08);
}

.system-search-hit__line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--system-accent);
  margin-bottom: 0.2rem;
}

.system-search-hit__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-word;
}

.system-search-hit mark {
  background: rgba(143, 214, 48, 0.35);
  color: #fff;
  padding: 0 0.1em;
  border-radius: 2px;
}

.system-search-empty {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.panel--system .system-body {
  padding: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.system-summary-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 0.15rem;
}

.system-summary-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--system-accent);
  border-left: 3px solid var(--system-accent);
  padding-left: 0.65rem;
}

.system-summary-panel__hint {
  margin: 0 0 0.75rem;
  padding-left: calc(0.65rem + 3px);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.sys-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.sys-section__summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  color: var(--text);
  background: linear-gradient(90deg, rgba(143, 214, 48, 0.08) 0%, transparent 55%);
  border-left: 3px solid var(--system-accent);
}

.sys-section__summary::-webkit-details-marker {
  display: none;
}

.sys-section__icon {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 214, 48, 0.15);
  border: 1px solid rgba(143, 214, 48, 0.28);
}

.sys-section__icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--system-accent);
  box-shadow: 0 0 8px rgba(143, 214, 48, 0.35);
}

.sys-section__icon--raw::before {
  width: 10px;
  height: 5px;
  border-radius: 1px;
  background: var(--nv-green);
  box-shadow: none;
}

.sys-section__chevron {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--muted);
  transition: transform 0.08s ease;
}

.sys-section__chevron::before {
  content: "\25bc";
}

details.sys-section:not([open]) .sys-section__chevron {
  transform: rotate(-90deg);
}

.sys-section__content {
  padding: 0.65rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.system-summary-panel .system-summary {
  margin-bottom: 0;
}

.sys-section__content--raw {
  padding: 0;
}

.sys-section .system-raw__pre-wrap {
  max-height: min(45vh, 420px);
  border-top: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel--gpu {
  border-color: rgba(118, 185, 0, 0.4);
  box-shadow:
    0 0 0 1px var(--nv-green-soft) inset,
    0 0 32px rgba(118, 185, 0, 0.08);
}

.panel--bsod {
  border-color: rgba(143, 214, 48, 0.35);
  box-shadow:
    0 0 0 1px var(--nv-green-soft) inset,
    0 0 28px rgba(118, 185, 0, 0.06);
}

.workspace .tool-panel.panel--system,
.workspace .tool-panel.panel--bsod,
.workspace .tool-panel.panel--gpu {
  box-shadow: none;
}

.workspace .tool-panel .panel__head {
  padding: 0.9rem var(--panel-pad-x);
}

.panel__head {
  padding: 1.05rem var(--panel-pad-x) 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 32, 28, 0.98) 0%, var(--bg-panel) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.panel__head-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.panel__head-text {
  flex: 1;
  min-width: 0;
}

.panel__icon-wrap {
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border);
  color: var(--nv-green);
}

.panel--system .panel__icon-wrap {
  color: var(--system-accent);
  border-color: rgba(143, 214, 48, 0.38);
  box-shadow: 0 0 20px rgba(143, 214, 48, 0.12);
}

.panel--gpu .panel__icon-wrap {
  color: var(--gpu-accent);
  border-color: rgba(118, 185, 0, 0.42);
  box-shadow: 0 0 22px rgba(118, 185, 0, 0.14);
}

.panel--bsod .panel__icon-wrap {
  color: var(--system-accent);
  border-color: rgba(143, 214, 48, 0.38);
  box-shadow: 0 0 20px rgba(143, 214, 48, 0.12);
}

.panel-icon {
  display: block;
  width: 1.72rem;
  height: 1.72rem;
}

.panel__head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.panel--system .panel__head h2 {
  color: var(--system-accent);
}

.panel--gpu .panel__head h2 {
  color: var(--gpu-accent);
}

.panel--bsod .panel__head h2 {
  color: var(--system-accent);
}

/* Inline callout in panel hint: same green / weight / tracking as BSOD panel h2, font size from .panel__hint. */
.panel--bsod .panel__head-inline-title {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: inherit;
  color: var(--system-accent);
}

.panel__hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0.95;
}

.dropzone {
  position: relative;
  margin: 1rem var(--panel-pad-x);
  flex-shrink: 0;
  padding: 2rem clamp(1.25rem, 3vw, 2rem);
  border: 2px dashed var(--nv-green-border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft),
    box-shadow 0.26s var(--ease-out-expo),
    transform 0.22s var(--ease-spring);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.dropzone:hover,
.dropzone:focus {
  outline: none;
  border-color: var(--nv-green);
  background: var(--nv-green-soft);
  box-shadow:
    0 0 24px rgba(118, 185, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-1px);
  animation: none;
}

.panel--system .dropzone.is-dragover {
  border-color: var(--system-accent);
  background: rgba(143, 214, 48, 0.1);
  box-shadow: 0 0 24px rgba(143, 214, 48, 0.15);
}

.panel--gpu .dropzone.is-dragover {
  border-color: var(--nv-green);
  background: rgba(118, 185, 0, 0.12);
  box-shadow: 0 0 24px rgba(118, 185, 0, 0.2);
}

.panel--bsod .dropzone.is-dragover {
  border-color: var(--system-accent);
  background: rgba(143, 214, 48, 0.1);
  box-shadow: 0 0 24px rgba(143, 214, 48, 0.15);
}

.panel--bsod .dropzone__icon {
  color: var(--system-accent);
}

.bsod-paste {
  margin: 1rem var(--panel-pad-x) 0;
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(14, 22, 18, 0.9) 0%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow:
    0 0 0 1px rgba(143, 214, 48, 0.06) inset,
    0 6px 22px rgba(0, 0, 0, 0.2);
}

.bsod-paste__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--system-accent);
}

.bsod-paste__hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.bsod-paste__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  min-height: 8rem;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #d4eadc;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.bsod-paste__textarea::placeholder {
  color: rgba(180, 200, 188, 0.45);
}

.bsod-paste__textarea:focus {
  outline: none;
  border-color: rgba(143, 214, 48, 0.55);
  box-shadow: 0 0 0 1px rgba(143, 214, 48, 0.2);
}

.bsod-paste__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.bsod-paste__kbd-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.bsod-paste__kbd-hint kbd {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #c8ddd0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.bsod-or-divider {
  margin: 0.75rem var(--panel-pad-x);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.bsod-or-divider span {
  padding: 0 0.5rem;
}

.dropzone__inner p {
  margin: 0.35rem 0;
}

.dropzone__sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.dropzone__icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--nv-green);
  opacity: 0.85;
}

.dropzone--stacked {
  margin: 0.5rem var(--panel-pad-x) 0.75rem;
  padding: 1.1rem clamp(1.15rem, 2.5vw, 1.75rem);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.15);
}

.file-meta {
  flex: 1 1 140px;
  color: var(--muted);
  word-break: break-all;
}

.toolbar__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.encoding-select {
  font: inherit;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(30, 38, 34, 0.95) 0%, var(--bg-elevated) 100%);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease;
}

.btn:hover {
  background: rgba(118, 185, 0, 0.14);
  border-color: var(--nv-green-border);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(118, 185, 0, 0.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  border-color: var(--nv-green-border);
  color: #d4edc4;
}

.btn--secondary:hover {
  border-color: var(--nv-green);
  background: rgba(118, 185, 0, 0.18);
}

.btn--ghost {
  background: transparent;
}

.view-switch {
  display: inline-flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.view-switch .view-tab {
  border-radius: 0;
  border: none;
  margin: 0;
}

.view-switch .view-tab.is-active {
  background: rgba(118, 185, 0, 0.2);
  border-color: transparent;
  color: #fff;
}

.view-switch .view-tab:not(.is-active) {
  background: transparent;
  opacity: 0.85;
}

.system-body {
  padding: 0 var(--panel-pad-x) 1.15rem;
}

.bsod-body {
  padding: 0 var(--panel-pad-x) 1.15rem;
}

.bsod-report {
  margin-bottom: 1rem;
}

.bsod-disclaimer {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.bsod-reslinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.9rem;
  padding: 0;
}

.bsod-reslinks__a {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ee571;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 229, 113, 0.35);
}

.bsod-reslinks__a:hover {
  color: #c4f49a;
  border-bottom-color: rgba(196, 244, 154, 0.55);
}

.bsod-workflow {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(143, 214, 48, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.bsod-workflow__title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bsod-workflow__ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text);
}

.bsod-workflow__ol li {
  margin: 0.25rem 0;
}

.bsod-triage {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(143, 214, 48, 0.35);
  background: linear-gradient(165deg, rgba(22, 32, 26, 0.95) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: 0 0 0 1px rgba(143, 214, 48, 0.06) inset;
}

.bsod-triage__title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dff6d4;
  letter-spacing: 0.02em;
}

.bsod-triage__lead {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #c5dcc8;
}

.bsod-triage__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.bsod-triage__item {
  margin: 0.5rem 0;
  padding-left: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d4eadc;
}

.bsod-triage__tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  vertical-align: 0.08em;
}

.bsod-triage__tag--hw {
  color: #ffb87a;
  background: rgba(255, 140, 60, 0.15);
  border: 1px solid rgba(255, 160, 90, 0.35);
}

.bsod-triage__tag--psu {
  color: #a8d8ff;
  background: rgba(80, 160, 255, 0.12);
  border: 1px solid rgba(120, 190, 255, 0.35);
}

.bsod-triage__tag--drv {
  color: #c5e6a8;
  background: rgba(118, 185, 0, 0.12);
  border: 1px solid rgba(143, 214, 48, 0.35);
}

.bsod-triage__tag--mixed {
  color: #e8d4ff;
  background: rgba(180, 140, 255, 0.12);
  border: 1px solid rgba(200, 170, 255, 0.35);
}

.bsod-triage__txt {
  vertical-align: middle;
}

.bsod-triage__foot {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.bsod-meta-line {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  word-break: break-word;
}

.bsod-structured {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.bsod-structured__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bsod-structured__dl {
  margin: 0;
  padding: 0;
}

.bsod-structured__row {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0;
  font-size: 0.82rem;
  align-items: start;
}

@media (max-width: 520px) {
  .bsod-structured__row {
    grid-template-columns: 1fr;
  }
}

.bsod-structured__dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.bsod-structured__dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c8e8d4;
  word-break: break-word;
}

.bsod-structured__hint {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.bsod-args {
  margin: 0 0 1rem;
}

.bsod-args__title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bsod-args__pre {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #c8ddd0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow: auto;
}

.bsod-args__hint {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.bsod-card__doc {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}

.bsod-card__doc a {
  color: #9ee571;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(158, 229, 113, 0.35);
}

.bsod-card__doc a:hover {
  color: #c4f49a;
}

.bsod-empty--rich {
  padding: 0.25rem 0 0.6rem;
}

.bsod-empty--rich ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.bsod-empty--rich li {
  margin: 0.25rem 0;
}

.bsod-drivers--notes {
  margin-top: 0.85rem;
}

.bsod-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bsod-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.32);
}

.bsod-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--system-accent);
}

.bsod-card__code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  opacity: 0.95;
}

.bsod-unknown {
  font-weight: 400;
  font-size: 0.8em;
  color: var(--muted);
}

.bsod-causes-label {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bsod-causes {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.bsod-causes li {
  margin: 0.2rem 0;
}

.bsod-context {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  word-break: break-word;
}

.bsod-drivers {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.bsod-drivers h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.bsod-drivers ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: #c8ddd0;
}

.bsod-drivers li {
  margin: 0.15rem 0;
}

.bsod-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.35rem 0 0.5rem;
}

.bsod-raw {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.bsod-raw__summary {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
}

.bsod-raw__summary::-webkit-details-marker {
  display: none;
}

.bsod-raw__pre-wrap {
  max-height: min(40vh, 360px);
  overflow: auto;
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
}

.content--bsod {
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  min-height: 40px;
}

.system-summary {
  margin-bottom: 1rem;
}

.summary-recovery {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(143, 214, 48, 0.35);
  background: rgba(118, 185, 0, 0.08);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.summary-recovery__title {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--system-accent);
  margin-bottom: 0.45rem;
}

.summary-recovery__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.summary-recovery__list li {
  margin: 0.25rem 0;
}

/* System Information — all summary blocks stacked (no section dropdown) */
.system-summary-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.35rem);
  margin-top: 0.15rem;
}

.system-summary-stack > .summary-card,
.system-summary-stack > .summary-card--rec,
.system-summary-stack > .gpu-dashboard,
.system-summary-stack > .problem-devices-dashboard {
  margin: 0;
}

.system-summary-dl .system-summary-dd--wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.system-summary-dl--compact dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.system-summary-dl--compact dd {
  font-size: 0.86rem;
}

.system-ext-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.system-storage-card {
  border: 1px solid rgba(118, 185, 0, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.28);
}

.system-storage-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d4ecd0;
  letter-spacing: 0.01em;
}

.system-ext-scroll {
  max-height: min(52vh, 520px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.system-ext-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.system-ext-table th,
.system-ext-table td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(118, 185, 0, 0.12);
}

.system-ext-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(18, 26, 22, 0.96);
  color: var(--system-accent);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-ext-table tbody tr:hover {
  background: rgba(118, 185, 0, 0.06);
}

.system-ext-td-name {
  font-weight: 600;
  color: #dce8e0;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Windows Error Reporting — black + green (app system theme) */
.wer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wer-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wer-dashboard {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.wer-dashboard__title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--system-accent);
}

.wer-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.65rem;
}

.wer-stat {
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--nv-green-soft);
}

.wer-stat__n {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--system-accent);
  line-height: 1.2;
}

.wer-stat__l {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.wer-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  row-gap: 0.55rem;
  align-items: center;
}

.wer-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  user-select: none;
}

.wer-tab:hover {
  border-color: var(--nv-green-border);
  color: var(--system-accent);
}

.wer-tab--all {
  font-weight: 700;
}

.wer-tab__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wer-tab__txt {
  line-height: 1.2;
}

.wer-ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.92;
}

.wer-tab:hover .wer-ic {
  opacity: 1;
}

.wer-item__marker .wer-ic {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--system-accent);
}

.wer-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: min(56vh, 560px);
  overflow: auto;
  padding: 0.15rem 0.15rem 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.wer-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--nv-green-soft);
  background: var(--bg-deep);
  border-left: 2px solid var(--nv-green-dim);
}

/* Severity: same green family, stronger = higher emphasis (no red/yellow/blue) */
.wer-item--error {
  border-left: 4px solid var(--system-accent);
  box-shadow: inset 0 0 0 1px var(--nv-green-glow);
}

.wer-item--warning {
  border-left: 3px solid var(--nv-green);
}

.wer-item--info {
  border-left: 2px solid rgba(118, 185, 0, 0.35);
}

.wer-item__marker {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nv-green-soft);
  border: 1px solid var(--nv-green-border);
}

.wer-item__ico {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  color: var(--system-accent);
}

.wer-item__body {
  flex: 1;
  min-width: 0;
}

.wer-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.25rem;
}

.wer-item__sev {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.wer-sev-dot {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(118, 185, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.25);
}

.wer-sev-dot--error {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--system-accent);
  box-shadow: 0 0 0 2px var(--nv-green-glow), 0 0 10px rgba(143, 214, 48, 0.25);
}

.wer-sev-dot--warning {
  background: var(--nv-green);
  box-shadow: 0 0 0 1px var(--nv-green-border);
}

.wer-sev-dot--info {
  background: rgba(118, 185, 0, 0.45);
}

.wer-item__type {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  flex: 1;
  min-width: 8rem;
}

.wer-item__when {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.wer-item__meta {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.wer-item__preview {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wer-details {
  margin: 0;
}

.wer-details__sum {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--system-accent);
  list-style: none;
}

.wer-details__sum::-webkit-details-marker {
  display: none;
}

.wer-details__pre {
  margin: 0.45rem 0 0;
  padding: 0.5rem 0.65rem;
  max-height: min(32vh, 280px);
  overflow: auto;
  font-size: 0.76rem;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.wer-footnote {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.05rem 1.15rem;
}

.summary-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.summary-card--wide {
  grid-column: 1 / -1;
}

/* GPU section — card layout similar to MSInfo analyzer reference (dark theme) */
.gpu-dashboard.summary-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(143, 214, 48, 0.38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.gpu-dashboard__details {
  margin: 0;
}

.gpu-dashboard__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(90deg, #2a4a1f 0%, #3a6b2c 42%, #347028 100%);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(143, 214, 48, 0.28);
}

.gpu-dashboard__summary::-webkit-details-marker {
  display: none;
}

.gpu-dashboard__summary-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4f0b0;
  filter: drop-shadow(0 0 10px rgba(118, 185, 0, 0.35));
}

.gpu-dashboard__summary-svg {
  display: block;
}

.gpu-dashboard__summary-text {
  flex: 1;
  min-width: 0;
}

.gpu-dashboard__summary-chevron {
  flex-shrink: 0;
  font-size: 0.55rem;
  opacity: 0.9;
  transition: transform 0.08s ease;
}

.gpu-dashboard__summary-chevron::before {
  content: "\25bc";
}

details.gpu-dashboard__details:not([open]) .gpu-dashboard__summary-chevron {
  transform: rotate(-90deg);
}

.gpu-dashboard__body-inner {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.gpu-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.15rem 1.25rem;
}

.gpu-subcard {
  border: 2px solid rgba(118, 185, 0, 0.55);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.38);
}

.gpu-subcard--placeholder {
  border-style: dashed;
  border-color: rgba(118, 185, 0, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.gpu-subcard__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.gpu-subcard__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.gpu-subcard__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.gpu-pci-lookup {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.12);
  border: 1px solid rgba(143, 214, 48, 0.42);
  box-shadow: 0 0 18px rgba(118, 185, 0, 0.15);
  color: var(--nv-green);
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.08s ease, background 0.08s ease;
}

.gpu-pci-lookup:hover {
  background: rgba(118, 185, 0, 0.22);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gpu-pci-lookup__icon {
  display: block;
}

.gpu-subcard__facts {
  margin: 0;
  display: grid;
  gap: 0.15rem 0;
  font-size: 0.82rem;
}

.gpu-subcard__facts dt {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.gpu-subcard__facts dt:first-child {
  margin-top: 0;
}

.gpu-subcard__facts dd {
  margin: 0 0 0.15rem;
  color: var(--text);
  line-height: 1.45;
}

.gpu-subcard__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .gpu-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

/* Problem devices — collapsible panel, black + green (matches app theme) */
.problem-devices-dashboard.summary-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(143, 214, 48, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.32);
}

.problem-devices__details {
  margin: 0;
}

.problem-devices__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(90deg, #1a2e14 0%, #2a4a1f 45%, #243d1c 100%);
  color: #e8f5dc;
  font-weight: 700;
  font-size: 0.95rem;
  border-left: 4px solid var(--nv-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(143, 214, 48, 0.22);
}

.problem-devices__summary::-webkit-details-marker {
  display: none;
}

.problem-devices__summary:focus-visible {
  outline: 2px solid var(--system-accent);
  outline-offset: 2px;
}

.problem-devices__summary-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(143, 214, 48, 0.38);
  box-shadow: 0 0 12px rgba(118, 185, 0, 0.12);
}

.problem-devices__warn-svg {
  display: block;
  color: var(--system-accent);
}

.problem-devices__summary-text {
  flex: 1;
  min-width: 0;
}

.problem-devices__count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.problem-devices__summary-chevron {
  flex-shrink: 0;
  font-size: 0.55rem;
  opacity: 0.92;
  transition: transform 0.08s ease;
}

.problem-devices__summary-chevron::before {
  content: "\25bc";
}

details.problem-devices__details:not([open]) .problem-devices__summary-chevron {
  transform: rotate(-90deg);
}

/* Report categories — same collapsible chrome as Problem Devices (shared accordion) */
.report-category.summary-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(143, 214, 48, 0.32);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.32);
}

.report-category--alert.summary-card {
  border-color: rgba(143, 214, 48, 0.35);
}

.report-category__details {
  margin: 0;
}

.report-category__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(90deg, #1a2e14 0%, #2a4a1f 45%, #243d1c 100%);
  color: #e8f5dc;
  font-weight: 700;
  font-size: 0.95rem;
  border-left: 4px solid var(--nv-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(143, 214, 48, 0.22);
}

.report-category__summary::-webkit-details-marker {
  display: none;
}

.report-category__summary:focus-visible {
  outline: 2px solid var(--system-accent);
  outline-offset: 2px;
}

.report-category__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(143, 214, 48, 0.38);
  box-shadow: 0 0 12px rgba(118, 185, 0, 0.12);
}

.report-category__svg {
  display: block;
  color: var(--system-accent);
}

.report-category__summary-text {
  flex: 1;
  min-width: 0;
}

.report-category__count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-category__translate {
  flex-shrink: 0;
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  color: #e8f5dc;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(143, 214, 48, 0.45);
}

.report-category__translate:hover {
  background: rgba(118, 185, 0, 0.22);
}

.report-category__translate:focus-visible {
  outline: 2px solid var(--system-accent);
  outline-offset: 2px;
}

.report-category__chevron {
  flex-shrink: 0;
  font-size: 0.55rem;
  opacity: 0.92;
  transition: transform 0.08s ease;
}

.report-category__chevron::before {
  content: "\25bc";
}

details.report-category__details:not([open]) .report-category__chevron {
  transform: rotate(-90deg);
}

.report-category__body-inner {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.gpu-dashboard__body-inner--embed {
  padding: 0.35rem 0.25rem 0.5rem;
}

.summary-card--rec--embed {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.problem-devices__body-inner {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.problem-devices__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(143, 214, 48, 0.28);
  background: rgba(118, 185, 0, 0.06);
}

.problem-devices__alert-icon {
  flex-shrink: 0;
  line-height: 0;
}

.problem-devices__alert-icon .problem-devices__warn-svg {
  color: var(--system-accent);
}

.problem-devices__alert-title {
  display: block;
  font-size: 0.88rem;
  color: var(--system-accent);
  margin-bottom: 0.25rem;
}

.problem-devices__alert-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.problem-devices__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.problem-devices__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.problem-device-card {
  border: 1px solid rgba(143, 214, 48, 0.22);
  border-radius: 10px;
  border-left: 4px solid var(--nv-green-dim);
  background: rgba(0, 0, 0, 0.38);
}

.problem-device-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
}

.problem-device-card__text {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.problem-device-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.problem-device-card__head .problem-device-card__title {
  margin: 0;
  flex: 1;
  min-width: 10rem;
}

.problem-device-card__i18n-en {
  flex-shrink: 0;
  max-width: 100%;
}

.problem-device-card__i18n-en[open] {
  flex-basis: 100%;
  width: 100%;
}

.problem-device-card__i18n-sum {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.12);
  border: 1px solid rgba(143, 214, 48, 0.38);
  color: #e8f5dc;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  user-select: none;
}

.problem-device-card__i18n-sum::-webkit-details-marker {
  display: none;
}

.problem-device-card__i18n-sum::after {
  content: "";
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.15em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  translate: 0 -0.08em;
  opacity: 0.85;
}

.problem-device-card__i18n-en[open] .problem-device-card__i18n-sum::after {
  transform: rotate(225deg);
  translate: 0 0.1em;
}

.problem-device-card__i18n-en--empty .problem-device-card__i18n-sum {
  opacity: 0.72;
  border-style: dashed;
}

.problem-device-card__i18n-body {
  margin-top: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(143, 214, 48, 0.2);
  max-width: min(36rem, 100%);
}

.problem-device-card__i18n-note {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.problem-device-card__i18n-line {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #d8f0c8;
  line-height: 1.45;
}

.problem-device-card__i18n-line:last-child {
  margin-bottom: 0;
}

/* Flatten details so the summary sits in row 1 and the body spans full width in row 2 */
.problem-device-card__details {
  display: contents;
}

.problem-device-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.problem-device-card__mark {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.35rem;
  color: var(--system-accent);
}

.problem-device-card__error {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #c8e6a8;
  line-height: 1.45;
}

.problem-device-card__muted {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.problem-device-card__vendor {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.problem-device-card__orig {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  opacity: 0.92;
}

.problem-device-card__details-btn {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.14);
  border: 1px solid rgba(143, 214, 48, 0.42);
  color: #e8f5dc;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(118, 185, 0, 0.12);
}

.problem-device-card__details-btn::-webkit-details-marker {
  display: none;
}

.problem-device-card__details-btn:focus-visible {
  outline: 2px solid var(--system-accent);
  outline-offset: 2px;
}

.problem-device-card__play::before {
  content: "\25b6";
  font-size: 0.65rem;
  opacity: 0.95;
}

.problem-device-card__details-body {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.problem-device-card__dl {
  margin: 0;
  display: grid;
  gap: 0.2rem 0.75rem;
  grid-template-columns: auto 1fr;
  font-size: 0.78rem;
}

.problem-device-card__dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.problem-device-card__dl dd {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .problem-device-card__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .problem-device-card__text {
    grid-column: 1;
    grid-row: 1;
  }

  .problem-device-card__details-btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .problem-device-card__details-body {
    grid-column: 1;
    grid-row: 3;
  }
}

.summary-card--rec {
  border-color: rgba(143, 214, 48, 0.32);
  box-shadow: 0 0 0 1px var(--nv-green-soft) inset, 0 0 22px rgba(118, 185, 0, 0.06);
  background: rgba(0, 0, 0, 0.35);
}

.summary-card--rec .rec-head__title {
  color: var(--system-accent);
}

.summary-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--system-accent);
}

.panel--gpu .summary-card h3 {
  color: var(--gpu-accent);
}

.rec-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.rec-head__bulb {
  display: flex;
  color: var(--system-accent);
  filter: drop-shadow(0 0 12px rgba(143, 214, 48, 0.25));
}

.rec-head__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem 1.2rem;
  align-items: start;
}

.rec-windows-only-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Motherboard & BIOS — black + NV green only (matches system / Problem Devices) */
.mbbios {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mbbios-info {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--nv-green-border);
  border-left: 4px solid var(--nv-green);
  background: linear-gradient(180deg, rgba(26, 46, 20, 0.55) 0%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.mbbios-info__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mbbios-info__glyph {
  font-size: 1.1rem;
  line-height: 1;
}

.mbbios-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  margin: 0;
  font-size: 0.88rem;
}

.mbbios-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.mbbios-dl dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}

.mbbios-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .mbbios-cards {
    grid-template-columns: 1fr;
  }
}

.mbbios-card {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.mbbios-card--current {
  border-left: 4px solid rgba(118, 185, 0, 0.45);
}

.mbbios-card--check {
  border-left: 4px solid var(--nv-green);
}

.mbbios-card__kicker {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.mbbios-card__value {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.mbbios-card__detail {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.mbbios-card__foot {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.mbbios-card__foot--link {
  margin-top: 0.15rem;
  color: var(--system-accent);
  text-decoration: none;
  font-weight: 600;
}

.mbbios-card__foot--link:hover {
  text-decoration: underline;
}

.mbbios-update {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--nv-green-border);
  border-left: 4px solid var(--nv-green);
  background: linear-gradient(180deg, rgba(26, 46, 20, 0.5) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.mbbios-update__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mbbios-update__glyph {
  font-weight: 800;
  color: var(--system-accent);
  font-size: 1rem;
}

.mbbios-update__copy {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.mbbios-last {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.mbbios-last__sub {
  color: var(--muted);
}

.mbbios-last--muted {
  color: var(--muted);
}

/* Primary actions use global green .rec-btn--primary — no blue override */

/* Windows Updates (under OS information) — black + green only */
.os-winup {
  margin-top: 1.15rem;
  padding: 1rem 0.9rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--nv-green-border);
  background: linear-gradient(165deg, rgba(26, 46, 20, 0.45) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.os-winup__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--nv-green-border);
  border-left: 4px solid var(--nv-green);
  background: linear-gradient(90deg, rgba(26, 46, 20, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.os-winup__sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--system-accent);
  border: 1px solid var(--nv-green-border);
  box-shadow: 0 0 12px var(--nv-green-glow);
}

.os-winup__sync-svg {
  display: block;
}

.os-winup__header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.os-winup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
  .os-winup__row {
    grid-template-columns: 1fr;
  }
}

.os-winup__card {
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.os-winup__card--build {
  border-left: 4px solid rgba(118, 185, 0, 0.4);
}

.os-winup__card--status {
  border-left: 4px solid var(--nv-green);
}

.os-winup__kicker {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.os-winup__hero {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.os-winup__sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.os-winup__status {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--system-accent);
}

.os-winup__status-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.os-winup__banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(143, 214, 48, 0.35);
  border-left: 4px solid var(--nv-green);
  background: linear-gradient(90deg, rgba(118, 185, 0, 0.18) 0%, rgba(0, 0, 0, 0.35) 100%);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.os-winup__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background: rgba(118, 185, 0, 0.35);
  border: 1px solid rgba(143, 214, 48, 0.55);
  color: #ecfccb;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.os-winup__banner-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.os-winup__banner-text {
  margin: 0 0 0.35rem;
  opacity: 0.95;
}

.os-winup__banner-muted {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.os-winup__cta {
  margin-top: 0.15rem;
}

.rec-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  background: rgba(0, 0, 0, 0.28);
}

.rec-panel--win {
  border-color: var(--border);
}

.rec-panel--bios {
  border-color: var(--border);
}

.rec-panel__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rec-panel--win .rec-panel__title {
  color: var(--system-accent);
}

.rec-panel--bios .rec-panel__title {
  color: var(--system-accent);
}

.rec-panel__glyph {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  position: relative;
}

.rec-panel__glyph--sync::before,
.rec-panel__glyph--sync::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.rec-panel__glyph--sync {
  color: var(--nv-green);
}

.rec-panel__glyph--sync::before {
  inset: 3px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

.rec-panel__glyph--sync::after {
  inset: 7px;
  border-left-color: transparent;
  border-top-color: transparent;
  transform: rotate(-45deg);
}

.rec-panel__glyph--flash {
  color: var(--system-accent);
}

.rec-panel__glyph--flash::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid currentColor;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4));
}

.rec-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 520px) {
  .rec-stats-row {
    grid-template-columns: 1fr;
  }
}

.rec-stats-row--bios .rec-stat__value--sm {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  word-break: break-word;
}

.rec-stat__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.rec-stat__value {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.rec-stat__value--lg {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.rec-stat__value--ok {
  color: var(--system-accent);
}

.rec-stat__detail {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.rec-banner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.rec-banner--ok {
  background: var(--nv-green-soft);
  border: 1px solid var(--nv-green-border);
  color: var(--text);
}

.rec-banner__icon {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--system-accent);
  line-height: 1.2;
}

.rec-banner__sub {
  margin: 0.25rem 0 0;
  opacity: 0.92;
  font-size: 0.8rem;
  color: var(--muted);
}

.rec-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
}

.rec-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.rec-dl dd {
  margin: 0;
  word-break: break-word;
}

.rec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.rec-btn--primary {
  border-color: var(--nv-green-border);
  color: #d4edc4;
  background: rgba(118, 185, 0, 0.14);
}

.rec-btn--primary:hover {
  border-color: var(--nv-green);
  background: rgba(118, 185, 0, 0.22);
  color: #fff;
}

.rec-btn--ghost {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.rec-btn--ghost:hover {
  border-color: var(--nv-green-border);
  background: rgba(118, 185, 0, 0.1);
}

.rec-btn--block {
  width: 100%;
  box-sizing: border-box;
}

.rec-alert {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(143, 214, 48, 0.35);
  font-size: 0.84rem;
  line-height: 1.45;
}

.rec-alert__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--system-accent);
}

.rec-alert strong {
  color: var(--system-accent);
}

.rec-alert p {
  margin: 0.35rem 0 0.55rem;
  color: var(--muted);
}

.rec-footnote {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.summary-card dl {
  margin: 0;
  font-size: 0.88rem;
}

.summary-card dt {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.45rem;
}

.summary-card dt:first-child {
  margin-top: 0;
}

.summary-card dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  line-height: 1.35;
}

.summary-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.summary-card li {
  margin: 0.25rem 0;
}

.network-adapters {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.network-adapter {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  max-width: 100%;
}

.network-adapter:last-child {
  margin-bottom: 0;
}

.network-adapter--primary {
  border-color: rgba(118, 185, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.12) inset;
}

.network-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a0e0c;
  background: var(--nv-green);
  border-radius: 4px;
  vertical-align: middle;
}

.network-adapter__name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  word-break: break-word;
  line-height: 1.35;
}

.network-adapter__meta {
  font-size: 0.82rem;
  margin: 0.2rem 0;
  line-height: 1.4;
}

.muted-label {
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.35rem;
}

.network-wrap {
  word-break: break-all;
  overflow-wrap: anywhere;
}

.network-ipv6-list {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.network-adapter__details {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(118, 185, 0, 0.12);
}

.network-detail {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.25rem 0.5rem;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  align-items: start;
  max-width: 100%;
}

.network-detail__k {
  color: var(--muted);
}

.network-detail__v {
  font-family: var(--font-mono);
  min-width: 0;
}

.summary-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.5rem 0;
}

.summary-lede {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.system-raw {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.system-raw__summary {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
}

.system-raw__summary::-webkit-details-marker {
  display: none;
}

.system-raw__pre-wrap {
  max-height: min(45vh, 400px);
  overflow: auto;
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
}

.analyzer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem var(--panel-pad-x);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.15);
}

.analyzer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem var(--panel-pad-x) 0;
}

.log-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid var(--nv-green-border);
  background: rgba(118, 185, 0, 0.1);
  color: #d4edc4;
}

.log-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.log-chip__remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.log-chip__remove:hover {
  color: #fff;
}

.analyzer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem var(--panel-pad-x);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.metric-fieldset {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  min-width: min(100%, 480px);
  flex: 1 1 300px;
}

.metric-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gpu-accent);
}

.metric-fieldset__hint {
  font-weight: 400;
  color: var(--muted);
}

.metric-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin-top: 0.45rem;
}

.metric-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #b8c9bf;
  max-width: 100%;
}

.metric-check-label input {
  accent-color: var(--nv-green);
  flex-shrink: 0;
}

.metric-check-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 380px);
}

/* One chart per row — full panel width so lines and labels are not squeezed. */
.analyzer-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: stretch;
}

.analyzer-chart-block {
  border: 1px solid rgba(118, 185, 0, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.25);
}

.analyzer-chart-block__title {
  margin: 0;
  padding: 0.65rem 1.05rem;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #d4ecd0;
  border-bottom: 1px solid rgba(118, 185, 0, 0.18);
  background: linear-gradient(180deg, rgba(22, 32, 26, 0.9) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.chart-canvas-wrap--metric {
  width: 100%;
  min-height: clamp(480px, 52vh, 720px);
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.5);
}

.analyzer-metric-canvas {
  display: block;
  width: 100%;
  min-height: clamp(480px, 52vh, 720px);
  height: clamp(480px, 62vh, 780px);
}

.analyzer-alerts {
  margin: 0 var(--panel-pad-x) 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 186, 90, 0.35);
  border-radius: 8px;
  background: rgba(255, 160, 60, 0.06);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #f0e6d8;
}

.analyzer-alerts__title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffc266;
}

.analyzer-alerts__list {
  margin: 0;
  padding-left: 1.1rem;
}

.analyzer-alerts__item {
  margin: 0.35rem 0;
}

.analyzer-alerts__item--warn {
  color: #ffd4a8;
}

.analyzer-alerts__item--info {
  color: #c5d4c9;
}

.analyzer-alerts__log {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9ecf7a;
}

.analyzer-insights {
  margin: 0 var(--panel-pad-x) 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(118, 185, 0, 0.28);
  border-radius: 8px;
  background: rgba(118, 185, 0, 0.06);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d4edc4;
}

.analyzer-insights h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nv-green);
}

.analyzer-insights .insights-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #c8e2bc;
}

.analyzer-insights .insight-hints {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #b8d0ae;
  font-size: 0.76rem;
}

.analyzer-insights .insight-hints li {
  margin: 0.28rem 0;
}

.analyzer-insights ul {
  margin: 0;
  padding-left: 1.1rem;
}

.analyzer-insights li {
  margin: 0.35rem 0;
}

.analyzer-insights .insight-metrics {
  color: #9ecf7a;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.analyzer-insights .insight-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.analyzer-insights--dashboard {
  margin: 0 0 0.65rem;
}

.analyzer-insights .insights-lead.subtle {
  opacity: 0.85;
  font-size: 0.74rem;
}

.insights-matrix-bundle {
  margin: 0.35rem 0 0.5rem;
}

.corr-log-block {
  margin: 0 0 0.75rem;
}

.corr-log-block:last-child {
  margin-bottom: 0;
}

.corr-log-block__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ecf7a;
  font-family: var(--font-mono);
}

.corr-matrix-scroll {
  overflow: auto;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(118, 185, 0, 0.22);
  background: rgba(0, 0, 0, 0.35);
}

.corr-matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.corr-matrix__corner {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 2rem;
  background: rgba(10, 14, 12, 0.98);
  border-bottom: 1px solid rgba(118, 185, 0, 0.15);
}

.corr-matrix__colhead,
.corr-matrix__rowhead {
  padding: 0.28rem 0.35rem;
  font-weight: 600;
  color: #a8c4b0;
  background: rgba(10, 14, 12, 0.96);
  border-bottom: 1px solid rgba(118, 185, 0, 0.12);
  white-space: nowrap;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.corr-matrix__rowhead {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  border-right: 1px solid rgba(118, 185, 0, 0.15);
}

.corr-matrix__colhead {
  position: sticky;
  top: 0;
  z-index: 1;
  vertical-align: bottom;
}

.corr-matrix__cell {
  padding: 0.26rem 0.32rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(0, 0, 0, 0.22);
  color: #e8f0eb;
}

.corr-matrix__cell--diag {
  color: rgba(140, 160, 150, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.corr-matrix__cell--na {
  color: rgba(130, 150, 140, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

.corr-matrix__cell--dim {
  background: rgba(40, 55, 48, 0.55);
  color: #b0c8b8;
}

.corr-matrix__cell--mild {
  background: rgba(60, 95, 55, 0.45);
}

.corr-matrix__cell--solid {
  background: rgba(80, 130, 55, 0.55);
}

.corr-matrix__cell--hot {
  background: rgba(100, 165, 45, 0.65);
  color: #0a0e0c;
  font-weight: 600;
}

.corr-matrix__cell--neg.corr-matrix__cell--dim,
.corr-matrix__cell--neg.corr-matrix__cell--mild,
.corr-matrix__cell--neg.corr-matrix__cell--solid,
.corr-matrix__cell--neg.corr-matrix__cell--hot {
  box-shadow: inset 0 0 0 1px rgba(255, 140, 100, 0.35);
}

.corr-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.45rem 0 0;
  font-size: 0.62rem;
  color: var(--muted);
}

.corr-matrix-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.corr-matrix-legend__sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.corr-matrix-legend__sw--dim {
  background: rgba(40, 55, 48, 0.75);
}

.corr-matrix-legend__sw--mild {
  background: rgba(60, 95, 55, 0.75);
}

.corr-matrix-legend__sw--solid {
  background: rgba(80, 130, 55, 0.8);
}

.corr-matrix-legend__sw--hot {
  background: rgba(100, 165, 45, 0.95);
}

.corr-matrix-legend__sw--neg {
  background: rgba(80, 130, 55, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 100, 0.55);
}

.corr-matrix-fallback {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: #c5dcc8;
}

.insight-narrative {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(118, 185, 0, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.insight-narrative summary {
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  color: #b8e0a8;
  list-style-position: outside;
}

.insight-narrative__ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.chart-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.chart-toggle-label input {
  accent-color: var(--nv-green);
}

.analyzer-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem var(--panel-pad-x) 1.25rem;
}

.chart-canvas-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
}

.chart-canvas-wrap--tall .analyzer-canvas {
  min-height: 320px;
}

.analyzer-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.chart-axis-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #9cb4aa;
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 72ch;
}

.analyzer-stats {
  padding: 0.75rem var(--panel-pad-x) 1rem;
  font-size: 0.82rem;
}

.stats-metric-title {
  margin: 1rem 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gpu-accent);
}

.stats-metric-title:first-child {
  margin-top: 0;
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.stats-table th,
.stats-table td {
  padding: 0.4rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stats-table th {
  color: var(--muted);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.35);
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-delta-up {
  color: #8fd630;
}

.stats-delta-down {
  color: #7aab3a;
}

.content {
  margin: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 80px;
}

.content--system {
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  min-height: 60px;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1rem;
}

.site-footer__version {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 210, 185, 0.85);
  font-family: var(--font-mono);
}

.site-footer__about {
  margin: 0;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d0e8d4;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(118, 185, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.site-footer__about:hover {
  color: #eef6ea;
  border-color: rgba(143, 214, 48, 0.5);
  background: rgba(118, 185, 0, 0.1);
}

.site-footer__about:focus-visible {
  outline: none;
  border-color: rgba(143, 214, 48, 0.65);
  box-shadow: 0 0 0 2px rgba(143, 214, 48, 0.2);
}

.about-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(85vh, 38rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(165deg, #121a16 0%, #0a0e0c 55%, #080c0a 100%);
  box-shadow:
    0 0 0 1px rgba(143, 214, 48, 0.08) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.about-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.about-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.about-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(118, 185, 0, 0.15);
}

.about-dialog__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #eef6ea;
  letter-spacing: -0.02em;
}

.about-dialog__version-line {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.about-dialog__version {
  font-family: var(--font-mono);
  color: var(--system-accent);
  font-weight: 600;
}

.about-dialog__close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: transparent;
  transition: color 0.1s ease, background 0.1s ease;
}

.about-dialog__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.about-dialog__close:focus-visible {
  outline: none;
  color: var(--text);
  box-shadow: 0 0 0 2px rgba(143, 214, 48, 0.35);
}

.about-dialog__body {
  padding: 0.85rem 1.15rem 1rem;
  overflow-y: auto;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #c8d8ce;
}

.about-dialog__section {
  margin: 0 0 1rem;
}

.about-dialog__section:last-child {
  margin-bottom: 0;
}

.about-dialog__section h3 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--system-accent);
}

.about-dialog__section p {
  margin: 0;
}

.about-dialog__section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.about-dialog__section li {
  margin: 0.35rem 0;
}

.about-dialog__section li strong {
  color: #dfece4;
  font-weight: 600;
}

.about-dialog__body kbd {
  display: inline-block;
  padding: 0.08rem 0.32rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #d4eadc;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(118, 185, 0, 0.25);
  border-radius: 4px;
}

.about-dialog__foot {
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid rgba(118, 185, 0, 0.12);
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem var(--layout-gutter) 2.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(118, 185, 0, 0.12);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto 1.15rem;
  max-width: min(36rem, 88%);
  background: linear-gradient(90deg, transparent, rgba(143, 214, 48, 0.22), transparent);
}

.site-footer p {
  margin: 0 auto;
  max-width: min(52rem, 100%);
  line-height: 1.55;
  opacity: 0.92;
}

/* Fixed “back to top” — matches deep panel + NVIDIA green accent */
.scroll-to-top {
  position: fixed;
  z-index: 45;
  right: clamp(0.85rem, 3vw, 1.35rem);
  bottom: clamp(0.85rem, 3vw, 1.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--nv-green-border);
  background: linear-gradient(165deg, rgba(22, 29, 26, 0.96) 0%, rgba(10, 14, 12, 0.98) 100%);
  color: var(--nv-green);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(118, 185, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem) scale(0.96);
  transition:
    opacity 0.22s var(--ease-out-expo),
    visibility 0.22s,
    transform 0.22s var(--ease-out-expo),
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.22s ease;
}

.scroll-to-top.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  color: var(--system-accent);
  border-color: rgba(143, 214, 48, 0.45);
  box-shadow:
    0 0 0 1px rgba(143, 214, 48, 0.12) inset,
    0 6px 22px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(118, 185, 0, 0.18);
}

.scroll-to-top:focus-visible {
  outline: none;
  color: var(--system-accent);
  border-color: rgba(143, 214, 48, 0.55);
  box-shadow:
    0 0 0 2px rgba(143, 214, 48, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 6px 22px rgba(0, 0, 0, 0.5);
}

.scroll-to-top__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: none;
  }
}

/* Inline “Local-first → analysis …” so the arrow sits in the sentence flow. */
.footer-local-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  vertical-align: middle;
  margin-inline-end: 0.08rem;
}

@media (prefers-reduced-motion: no-preference) {
  /* Page load: depth + soft scale, GPU-friendly translate3d */
  @keyframes shell-reveal {
    from {
      opacity: 0;
      transform: translate3d(0, 16px, 0) scale(0.988);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes header-rule-draw {
    from {
      opacity: 0;
      transform: scaleX(0.35);
    }
    to {
      opacity: 1;
      transform: scaleX(1);
    }
  }

  @keyframes ambient-breathe {
    from {
      opacity: 1;
    }
    to {
      opacity: 0.965;
    }
  }

  @keyframes dz-soft-glow {
    0%,
    100% {
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.035) inset,
        0 0 0 rgba(118, 185, 0, 0),
        0 0 0 rgba(143, 214, 48, 0);
    }
    50% {
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 0 28px rgba(118, 185, 0, 0.07),
        0 0 48px rgba(143, 214, 48, 0.04);
    }
  }

  @keyframes dialog-shell-in {
    from {
      opacity: 0;
      transform: translate3d(0, 12px, 0) scale(0.975);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  .ambient {
    animation: ambient-breathe 26s ease-in-out infinite alternate;
  }

  .site-header {
    animation: shell-reveal 0.52s var(--ease-out-expo) both;
  }

  .site-header::after {
    transform-origin: 50% 50%;
    animation: header-rule-draw 0.62s var(--ease-out-expo) 0.12s both;
  }

  .workspace > .tool-tabs {
    opacity: 0;
    animation: shell-reveal 0.48s var(--ease-out-expo) 0.08s both;
  }

  .workspace > .tool-tab-panels {
    opacity: 0;
    animation: shell-reveal 0.5s var(--ease-out-expo) 0.14s both;
  }

  .workspace-invite {
    opacity: 0;
    animation: shell-reveal 0.46s var(--ease-out-expo) 0.03s forwards;
  }

  .site-footer {
    opacity: 0;
    animation: shell-reveal 0.44s var(--ease-out-expo) 0.22s both;
  }

  .about-dialog[open] {
    animation: dialog-shell-in 0.3s var(--ease-out-expo) both;
  }

  .dropzone:not(:hover):not(:focus):not(.is-dragover) {
    animation: dz-soft-glow 5.2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  }
}
