* { box-sizing: border-box; }
body { margin: 0; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 48px;
  background: var(--md-sys-color-surface, #f8f7fc); color: var(--md-sys-color-on-surface, #1a1a1e);
  font-family: Roboto, system-ui, sans-serif; }
.view { width: 100%; }
.view.narrow { max-width: 440px; margin-top: 6vh; }
.view.wide { max-width: 880px; }
.card-pad { display: block; padding: 24px; margin-bottom: 16px; }
.stack { display: grid; gap: 14px; margin-top: 16px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.full { width: 100%; }
.muted { color: var(--md-sys-color-on-surface-variant, #5a5a62); }
.small { font-size: 0.85rem; }
.error { color: var(--md-sys-color-error, #b3261e); }
.success { color: #1e7d32; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px;
  background: var(--md-sys-color-secondary-container, #e3defc); margin: 12px 0; }
.section-box { border: 1px solid var(--md-sys-color-outline-variant, #ccc); border-radius: 12px; padding: 16px; border-left: 8px solid var(--box-color, #4a4a9e); }
.section-box h3 { margin: 0 0 6px; }
.bar-track { height: 8px; border-radius: 4px; background: var(--md-sys-color-surface-container-high, #e5e3ee); overflow: hidden; }
.bar-fill { height: 100%; background: var(--md-sys-color-primary, #4a4a9e); transition: width .2s; }
.score-bar { height: 14px; border-radius: 7px; background: var(--md-sys-color-surface-container-high, #e5e3ee); overflow: hidden; }
.score-fill { height: 100%; }
.score-fill.good { background: #2e7d32; } .score-fill.mid { background: #ef8f00; } .score-fill.bad { background: #c62828; }
.option-btn { font: inherit; text-align: left; cursor: pointer; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline, #999); background: transparent; color: inherit; }
.option-btn.selected { border-color: var(--md-sys-color-primary, #4a4a9e); background: var(--md-sys-color-primary-container, #dbe4ff); }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 600;
  background: var(--md-sys-color-primary-container, #dbe4ff); color: var(--md-sys-color-on-primary-container, #12315e); }
.pill { display: inline-flex; align-items: center; justify-content: center; text-align: center; flex-shrink: 0; padding: 2px 10px; border-radius: 999px; font-size: .8rem; background: var(--md-sys-color-secondary-container, #e3defc); }
.pill.pass { background: #d9f2dd; color: #14532d; } .pill.fail { background: #fdecea; color: #7f1d1d; }
[hidden] { display: none !important; }

/* --- v0.2 routed shell --- */
body { background: var(--md-sys-color-surface, #f8f7fc); color: var(--md-sys-color-on-surface, #1a1a1e); font-family: Roboto, system-ui, sans-serif; }
#shell, #page { max-width: 920px; margin: 0 auto; padding: 16px 16px 0; }
#page { padding-bottom: 48px; }
.view.narrow { margin: 6vh auto 0; }
a.brand { text-decoration: none; color: inherit; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { border: 1px solid var(--md-sys-color-outline-variant, #ccc); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 600; }
.option-btn.correct { border-color: #2e7d32; background: #d9f2dd; }
.option-btn.wrong { border-color: #c62828; background: #fdecea; }
code { background: var(--md-sys-color-surface-container-high, #e5e3ee); padding: 2px 8px; border-radius: 6px; word-break: break-all; }

/* --- v0.3: logo, landing, plans, settings --- */
.brand-mark { height: 34px; width: auto; border-radius: 6px; }
.login-logo { width: 100%; max-width: 420px; display: block; margin: 4px auto 10px; }
.hero { text-align: center; padding: 28px 8px 8px; }
.hero-logo { width: 100%; max-width: 560px; }
.hero-line { font-size: 1.15rem; max-width: 620px; margin: 14px auto 18px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.plan-card { border: 1px solid var(--md-sys-color-outline-variant, #ccc); border-radius: 14px; padding: 14px 16px; }
.plan-card.current { border-color: var(--md-sys-color-primary, #4a4a9e); border-width: 2px; }
.plan-price { font-size: 1.25rem; font-weight: 600; margin: 2px 0; }
.steps li { margin: 8px 0; }

/* --- v0.4: marketing site chrome --- */
#sitefoot { max-width: 920px; margin: 0 auto; padding: 0 16px 32px; }
.site-footer { border-top: 1px solid var(--md-sys-color-outline-variant, #ccc); margin-top: 24px; padding-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 14px; }
.footer-grid a { display: block; color: inherit; text-decoration: none; padding: 3px 0; font-size: .92rem; }
.footer-grid a:hover { text-decoration: underline; }
.legal h3 { margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.55; }
.faq-item { margin: 12px 0; }
textarea.inline { width: 100%; }

/* Certificate (v0.5.0) */
.cert { background: var(--hatch-widget-surface, #fff); border: 2px solid #4a4a9e; border-radius: 12px; padding: 36px 40px; text-align: center; }
.cert-mark { width: 64px; height: 64px; object-fit: contain; }
.cert-brand { letter-spacing: 4px; font-weight: 700; color: #4a4a9e; margin: 4px 0 0; }
.cert-title { font-size: 1.7rem; font-weight: 700; margin: 10px 0 18px; }
.cert-name { font-size: 1.5rem; font-weight: 700; margin: 4px 0; }
.cert-test { font-size: 1.15rem; font-weight: 600; margin: 4px 0 18px; }
.cert-stats { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 14px 0 20px; }
.cert-stats > div { display: flex; flex-direction: column; }
.cert-num { font-size: 1.25rem; font-weight: 700; }
.cert-sections { text-align: left; margin: 0 auto 16px; max-width: 560px; }

/* --- v0.8.30: M3 data table (Gemini's pattern, adapted) ---
   A real <table> styled with M3 tokens — the app's tabular screens
   (Library, Department, Certificate) use this, with nmui-checkbox /
   nmui-button inside cells where they need one. The homepage
   department replica uses the same CSS with plain HTML (marketing
   must not use nmui). */
.nmui-table-wrapper {
  background-color: var(--md-sys-color-surface-container-low, #f7f2fa);
  border: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  overflow-x: auto;
}
.nmui-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--md-sys-color-on-surface, #1d1b20);
  font-family: var(--md-sys-typescale-body-medium-font, inherit);
  font-size: var(--md-sys-typescale-body-medium-size, 0.875rem);
  line-height: var(--md-sys-typescale-body-medium-line-height, 1.25rem);
}
/* Column headers (56dp height, title-small) */
.nmui-table th {
  height: 56px;
  padding: 0 16px;
  text-align: left;
  color: var(--md-sys-color-on-surface-variant, #49454f);
  font-family: var(--md-sys-typescale-title-small-font, inherit);
  font-size: var(--md-sys-typescale-title-small-size, 0.875rem);
  font-weight: var(--md-sys-typescale-title-small-weight, 500);
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
  white-space: nowrap;
}
/* Sortable headers (Library): click to sort, arrow shows direction. */
.nmui-table th[data-sort] { cursor: pointer; }
.nmui-table th[data-sort]:hover { color: var(--md-sys-color-on-surface, #1d1b20); }
/* Body rows & cells (52dp height, body-medium) */
.nmui-table td {
  height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
  vertical-align: middle;
}
.nmui-table tbody tr:last-child td { border-bottom: none; }
/* M3 state layer: 8% on-surface hover overlay */
.nmui-table tbody tr:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-on-surface, #1d1b20) 8%, transparent);
}
/* Selected row state */
.nmui-table tbody tr[aria-selected="true"] {
  background-color: var(--md-sys-color-secondary-container, #e8def8);
  color: var(--md-sys-color-on-secondary-container, #1d192b);
}
/* Summary row (Department average): top border, bold, no hover. */
.nmui-table tfoot td {
  height: 52px;
  padding: 8px 16px;
  border-top: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
  font-weight: 500;
  vertical-align: middle;
}
/* Numeric column alignment */
.nmui-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* M3 hyperlink styling inside cells */
.nmui-table a {
  color: var(--md-sys-color-primary, #6750a4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Matching-sections line inside a Library title cell. */
.nmui-table .lib-matches { display: block; font-size: 12px; color: var(--md-sys-color-on-surface-variant, #43536a); margin-top: 2px; }
@media print {
  .topbar, #sitehead, #sitefoot, .no-print { display: none !important; }
  .cert { border-width: 3px; }
  body { background: #fff; }
}

/* --- v0.6: Axiopol brand theme — logo navy/blue replaces the M3 purple --- */
:root, :root[theme="light"] {
  --md-sys-color-primary: #1d63ae;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d7e7f8;
  --md-sys-color-on-primary-container: #0a2f52;
  --md-sys-color-secondary: #4c6076;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #dde8f3;
  --md-sys-color-on-secondary-container: #1d2f45;
  --md-sys-color-tertiary: #3f6d96;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #d3e4f5;
  --md-sys-color-on-tertiary-container: #12314f;
  --md-sys-color-background: #fcfdfe;
  --md-sys-color-on-background: #15222e;
  --md-sys-color-surface: #fcfdfe;
  --md-sys-color-on-surface: #15222e;
  --md-sys-color-surface-variant: #e2eaf3;
  --md-sys-color-on-surface-variant: #43536a;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f3f7fb;
  --md-sys-color-surface-container: #eaf1f8;
  --md-sys-color-surface-container-high: #dfe9f3;
  --md-sys-color-surface-container-highest: #d2dfec;
  --md-sys-color-inverse-surface: #0b1f3a;
  --md-sys-color-inverse-on-surface: #e8f0f9;
  --md-sys-color-inverse-primary: #a5c8ef;
  --md-sys-color-outline: #6f7d8f;
  --md-sys-color-outline-variant: #c6d2e0;
}
:root[theme="dark"] {
  --md-sys-color-primary: #a5c8ef;
  --md-sys-color-on-primary: #0a2f52;
  --md-sys-color-primary-container: #144a7d;
  --md-sys-color-on-primary-container: #d7e7f8;
  --md-sys-color-secondary: #b3c6da;
  --md-sys-color-on-secondary: #22344c;
  --md-sys-color-secondary-container: #31435c;
  --md-sys-color-on-secondary-container: #dde8f3;
  --md-sys-color-tertiary: #9fc2e2;
  --md-sys-color-on-tertiary: #10314f;
  --md-sys-color-tertiary-container: #2c4d70;
  --md-sys-color-on-tertiary-container: #d3e4f5;
  --md-sys-color-background: #081120;
  --md-sys-color-on-background: #dbe7f5;
  --md-sys-color-surface: #0a1728;
  --md-sys-color-on-surface: #dbe7f5;
  --md-sys-color-surface-variant: #1d3049;
  --md-sys-color-on-surface-variant: #a3b7cc;
  --md-sys-color-surface-container-lowest: #060d18;
  --md-sys-color-surface-container-low: #0d1c30;
  --md-sys-color-surface-container: #122539;
  --md-sys-color-surface-container-high: #182f47;
  --md-sys-color-surface-container-highest: #1f3a56;
  --md-sys-color-inverse-surface: #dbe7f5;
  --md-sys-color-inverse-on-surface: #15222e;
  --md-sys-color-inverse-primary: #1d63ae;
  --md-sys-color-outline: #5c718c;
  --md-sys-color-outline-variant: #27394f;
}
.cert { border-color: var(--md-sys-color-primary, #1d63ae); }
.cert-brand { color: var(--md-sys-color-primary, #1d63ae); }

/* --- v0.6: app shell — Material layout: left navigation drawer + top app bar --- */
body.app-mode #shell { max-width: none; margin: 0; padding: 0; }
body.app-mode #page { max-width: none; margin: 0 0 0 360px; padding: 88px 24px 48px; }
body.app-mode #page > * { max-width: 920px; margin-inline: auto; }
/* App shell (v0.8.23): the sidebar is <nmui-navigation rail expanded>
   (360dp, the component's width) and the top bar is <nmui-app-bar>.
   The rail and the bar are fixed; the page sits to the rail's right.
   Borders keep the chrome visible against the surface page. */
nmui-navigation#app-nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 40; box-sizing: border-box;
  border-right: 1px solid var(--md-sys-color-outline-variant, #c6d2e0); }
#app-nav .brand-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
nmui-app-bar { position: fixed; top: 0; left: 360px; right: 0; z-index: 30; box-sizing: border-box;
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #c6d2e0); }
/* App bar layout (v0.8.29): the bar's flex row was stretching every
   trailing child (bell, theme, avatar) to an equal share, so each
   took ~84px on a phone and squeezed the title to "Dash...". Pin
   the icon buttons (and the badge that wraps the bell) to their
   natural size and let only the title grow. */
nmui-app-bar > * { flex: 0 0 auto; }
nmui-app-bar > headline { flex: 1 1 auto; min-width: 0; }
nmui-app-bar nmui-button[icon] { flex: 0 0 auto; }
/* The avatar is a filled circle with initials, not bare text. */
#btn-avatar > container {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--md-sys-color-primary-container, #eaddff);
  color: var(--md-sys-color-on-primary-container, #4f378b);
  font-size: 16px; font-weight: 500;
}
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; color: var(--md-sys-color-on-surface-variant, #43536a); text-decoration: none; }
.iconbtn:hover { background: var(--md-sys-color-surface-container-high, #dfe9f3); }
.scrim { display: none; }
#btn-menu { display: none; }
@media (max-width: 960px) {
  nmui-navigation#app-nav { transform: translateX(-102%); box-shadow: 0 0 40px rgba(8,24,44,.3); transition: transform .25s ease; }
  body.app-mode.nav-open nmui-navigation#app-nav { transform: translateX(0); }
  body.app-mode.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(4, 12, 24, .45); }
  nmui-app-bar { left: 0; }
  body.app-mode #page { margin-left: 0; padding-top: 84px; }
  #btn-menu { display: inline-flex; }
}
@media print {
  nmui-navigation#app-nav, nmui-app-bar, .scrim { display: none !important; }
  body.app-mode #page { margin: 0; padding: 0; }
}

/* --- v0.6.1: marketing site — full-width layout, navy header, lp design system --- */
body.site-mode #shell, body.site-mode #page, body.site-mode #sitefoot { max-width: none; margin: 0; padding: 0; }
body.site-mode #page > .view { margin-inline: auto; padding: 28px 24px 48px; }
.site-header { background: #0b1f3a; }
.site-header .in { max-width: 1140px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 30px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: .12em; }
.site-header .brand img { width: 32px; height: 32px; border-radius: 6px; }
.site-header nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.site-header nav a { color: #b9cadd; text-decoration: none; font-size: .97rem; }
.site-header nav a:hover { color: #fff; }
.site-header nav a.cta { color: #fff; background: #2f6db3; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.site-header nav a.cta:hover { background: #245a94; }
@media (max-width: 760px) { .site-header nav a:not(.cta) { display: none; } }

.lp { --navy:#0b1f3a; --navy2:#0e2a4f; --ink:#10233c; --body:#43536a; --mut:#8494a9; --line:#e3e9f1; --soft:#f4f7fb; --blue:#2f6db3; color: var(--body); }
.lp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.lp h1, .lp h2, .lp h3 { color: var(--ink); line-height: 1.1; letter-spacing: -.01em; }
.lp-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); }
.lp-eyebrow.light { color: #7fb0e0; }
.lp-btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.lp-btn-p { background: var(--blue); color: #fff; }
.lp-btn-p:hover { background: #245a94; }
.lp-btn-g { background: transparent; color: #dbe7f5; border-color: #33517a; }
.lp-hero { background: radial-gradient(1100px 520px at 75% -10%, #1b4070 0%, transparent 60%), linear-gradient(180deg, var(--navy), var(--navy2)); color: #dbe7f5; overflow: hidden; text-align: center; }
.lp-hero .lp-wrap { padding-top: 84px; }
.lp-hero h1 { color: #fff; font-size: clamp(2.9rem, 7.2vw, 5.4rem); font-weight: 800; text-transform: uppercase; }
.lp-hero h1 .dot { color: #e8a33d; }
.lp-hero .sub { max-width: 640px; margin: 26px auto 0; font-size: 1.22rem; line-height: 1.55; color: #b9cadd; }
.lp-hero .ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-hero .fine { margin-top: 16px; font-size: .9rem; color: #7e93ad; }
.lp-shot { max-width: 960px; margin: 56px auto 0; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -18px 70px rgba(0,0,0,.45); border: 1px solid #24466e; border-bottom: none; background: #fff; text-align: left; }
.lp-shot .bar { display: flex; gap: 7px; align-items: center; background: #eef2f7; padding: 10px 14px; }
.lp-shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #c8d3e0; display: block; }
.lp-shot .bar span { margin-left: 10px; font-size: .8rem; color: #8494a9; }
.lp-results { padding: 30px 34px 36px; color: var(--ink); }
.lp-pass { font-size: 1.5rem; font-weight: 700; }
.lp-passpill { background: #d9f2dd; color: #14532d; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; vertical-align: 4px; }
.lp-passnote { color: var(--body); margin: 10px 0 22px; }
.lp-srow { margin-top: 16px; }
.lp-smeta { display: flex; align-items: baseline; gap: 6px; font-size: .98rem; }
.lp-gate { margin-left: auto; background: #e5f2e8; color: #1d7a3a; font-size: .8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.lp-track { height: 12px; border-radius: 6px; background: #e8eef5; margin-top: 8px; overflow: hidden; }
.lp-track.light { height: 10px; }
.lp-fill { height: 100%; width: 100%; background: #2e7d32; border-radius: 6px; }
.lp-fill.warn { background: #ef8f00; }
.lp-sectors { padding: 44px 0 8px; text-align: center; }
.lp-sectors p { font-size: .8rem; letter-spacing: .22em; font-weight: 700; color: var(--mut); text-transform: uppercase; }
.lp-sectors .row { margin-top: 18px; display: flex; gap: 14px 40px; justify-content: center; flex-wrap: wrap; font-size: 1.12rem; font-weight: 700; color: #5a6c84; letter-spacing: .06em; }
.lp-sec { padding: 96px 0; }
.lp-soft { background: var(--soft); }
.lp-center { text-align: center; }
.lp-center .lp-lede { max-width: 620px; margin: 16px auto 0; font-size: 1.15rem; line-height: 1.6; }
.lp h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 750; margin-top: 10px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.lp-step { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.lp-step .n { font-size: .85rem; font-weight: 800; letter-spacing: .18em; color: var(--blue); }
.lp-step h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.lp-step p { line-height: 1.55; }
.lp-mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 18px; font-size: .88rem; }
.lp-minidoc .t { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.lp-minidoc .t:last-child { border-bottom: none; }
.lp-minidoc .t span { color: var(--mut); font-weight: 500; white-space: nowrap; }
.lp-miniq .q { color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.lp-miniq .opt { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin-top: 7px; }
.lp-miniq .opt.on { border-color: var(--blue); background: #eef4fb; color: var(--ink); font-weight: 600; }
.lp-minicert { text-align: center; padding: 22px 16px; }
.lp-minicert .c1 { letter-spacing: .14em; font-weight: 700; color: var(--blue); font-size: .8rem; text-transform: uppercase; }
.lp-minicert .c2 { color: var(--ink); font-weight: 700; font-size: 1.02rem; margin-top: 8px; }
.lp-minicert .c3 { color: var(--mut); margin-top: 6px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-split.flip .txt { order: 2; }
.lp-body { margin-top: 16px; font-size: 1.1rem; line-height: 1.6; }
.lp-ticks { margin-top: 22px; list-style: none; }
.lp-ticks li { padding: 7px 0 7px 32px; position: relative; font-size: 1.02rem; color: var(--ink); }
.lp-ticks li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #e5f2e8; color: #1d7a3a; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lp-frame { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px rgba(16,35,60,.12); padding: 26px 28px; }
.lp-frame-t { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lp-frame-n { margin-top: 18px; color: var(--body); line-height: 1.55; }
table.lp-dept { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.lp-dept th, table.lp-dept td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
table.lp-dept td.bad { color: #b3261e; font-weight: 700; }
table.lp-dept tr.avg td { font-weight: 700; color: var(--ink); border-bottom: none; }
.lp-band { background: linear-gradient(180deg, var(--navy), var(--navy2)); color: #dbe7f5; padding: 96px 0; }
.lp-band h2 { color: #fff; }
.lp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.lp-tile { border: 1px solid #24466e; border-radius: 18px; padding: 28px 24px; background: rgba(255,255,255,.03); }
.lp-tile .big { font-size: 1.45rem; font-weight: 750; color: #fff; line-height: 1.25; }
.lp-tile p { margin-top: 10px; color: #9db1c9; line-height: 1.55; font-size: .98rem; }
.lp-tile p.big { margin-top: 0; color: #fff; }
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.lp-plan { border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; background: #fff; }
.lp-plan.hot { border-color: var(--blue); box-shadow: 0 24px 50px rgba(47,109,179,.15); }
.lp-plan .name { font-weight: 700; letter-spacing: .14em; font-size: .85rem; text-transform: uppercase; color: var(--blue); }
.lp-plan .price { font-size: 2.5rem; font-weight: 800; color: var(--ink); margin: 14px 0 4px; }
.lp-plan .price small { font-size: 1rem; font-weight: 600; color: var(--mut); }
.lp-plan p { line-height: 1.55; margin-top: 10px; }
.lp-more { margin-top: 34px; }
.lp-final { background: var(--navy); text-align: center; padding: 100px 0; }
.lp-final h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.lp-final p { color: #9db1c9; margin: 18px auto 34px; max-width: 520px; font-size: 1.12rem; line-height: 1.6; }
@media (max-width: 900px) {
  .lp-steps, .lp-tiles, .lp-plans { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; gap: 34px; }
  .lp-split.flip .txt { order: 0; }
  .lp-sec, .lp-band { padding: 64px 0; }
}
body.site-mode .site-footer { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }

/* --- v0.6.4: science page + homepage science band --- */
.sc-head { margin-bottom: 8px; }
.sc-lede { font-size: 1.08rem; line-height: 1.6; margin-top: 10px; }
.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.sc-stat { border: 1px solid var(--line, #e3e9f1); border-radius: 16px; padding: 20px 22px; background: var(--md-sys-color-surface-container-low, #f4f7fb); }
.sc-stat .n { font-size: 1.9rem; font-weight: 800; color: #1d63ae; letter-spacing: -.01em; }
.sc-stat p { margin-top: 6px; line-height: 1.5; }
.sc-chart { margin: 18px 0 6px; display: grid; gap: 10px; }
.sc-row { display: grid; grid-template-columns: 210px 1fr 44px; gap: 12px; align-items: center; font-size: .93rem; }
.sc-bar { height: 16px; background: #e8eef5; border-radius: 8px; overflow: hidden; }
.sc-fill { height: 100%; border-radius: 8px; }
.sc-fill.good { background: #2e7d32; }
.sc-fill.flat { background: #9db1c9; }
.sc-val { font-weight: 700; }
.sc-mech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.sc-tile { border: 1px solid var(--line, #e3e9f1); border-radius: 16px; padding: 22px; }
.sc-tile .t { font-weight: 750; font-size: 1.08rem; margin-bottom: 8px; }
.sc-tile p { line-height: 1.55; }
.sc-tile .ax { margin-top: 12px; }
.sc-verdict { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.sc-vcol { border: 1px solid var(--line, #e3e9f1); border-radius: 14px; padding: 16px 18px; }
.sc-vcol .vh { font-weight: 700; margin-bottom: 8px; }
.sc-vcol p { padding: 3px 0; }
.sc-vcol.good { border-color: #2e7d32; background: #f2f9f3; }
.sc-vcol.flat { opacity: .75; }
.sc-honest { border-style: dashed; }
.sc-src { display: grid; gap: 10px; line-height: 1.55; font-size: .95rem; }
@media (max-width: 760px) { .sc-stats, .sc-mech, .sc-verdict { grid-template-columns: 1fr; } .sc-row { grid-template-columns: 1fr 44px; } .sc-row .sc-bar { grid-column: 1 / -1; order: 3; } }
.lp-science { background: #fff; }
.lp-scistats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.lp-scistat { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 24px 14px; }
.lp-scistat .n { font-size: 1.8rem; font-weight: 800; color: var(--blue); }
.lp-scistat p { margin-top: 8px; font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) { .lp-scistats { grid-template-columns: repeat(2, 1fr); } }

/* --- v0.6.5: lp page kit for content pages (features/pricing/compare/faq/etc.) --- */
.lp-wrap2 { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.lp-page { padding: 54px 24px 76px; }
.lp-phead h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: var(--ink); line-height: 1.12; }
.lp-phead .lede { margin-top: 14px; font-size: 1.13rem; line-height: 1.6; max-width: 700px; }
.lp-card2 { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-top: 22px; }
.lp-card2.soft { background: var(--soft); }
.lp-card2 h2 { font-size: 1.45rem; margin-bottom: 6px; }
.lp-card2 h3 { font-size: 1.13rem; margin: 18px 0 6px; color: var(--ink); }
.lp-card2 p { line-height: 1.62; margin-top: 8px; }
.lp-card2 ul, .lp-card2 ol { margin: 10px 0 4px 20px; line-height: 1.65; }
.lp-card2 li { margin-top: 5px; }
table.lp-table2 { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .96rem; }
table.lp-table2 th, table.lp-table2 td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
table.lp-table2 th { color: var(--ink); }
table.lp-table2 tr:last-child td { border-bottom: none; }
.lp-btn-o { background: #fff; color: var(--ink); border-color: #c6d2e0; }
.lp-btn-o:hover { border-color: var(--blue); color: var(--blue); }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
details.lp-faq { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-top: 12px; background: #fff; }
details.lp-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 1.03rem; }
details.lp-faq p { margin-top: 10px; line-height: 1.62; }
.lp-prose p { line-height: 1.7; margin-top: 10px; }
.lp-prose h3 { margin-top: 24px; font-size: 1.13rem; }
.lp-prose ul { margin: 10px 0 4px 20px; line-height: 1.65; }
.lp-step-row { display: flex; gap: 18px; }
.lp-step-n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* --- v0.6.7: app replicas (rp-) — pixel-faithful HTML/CSS copies of the
   real app screens for the homepage. Built from the app's own tokens:
   sidebar #f3f7fb, active pill #dde8f3, primary #1d63ae, card border
   #d7e0ec, PASS greens, department average-row reds. If the app shell
   changes, update these in the same push. --- */
.rp { display: grid; grid-template-columns: 148px 1fr; background: #fcfdfe; color: #15222e; font-size: 11px; line-height: 1.45; text-align: left; }
.rp-side { background: #f3f7fb; border-right: 1px solid #d7e0ec; padding: 10px 8px; }
.rp-brand { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #15222e; padding: 2px 6px 10px; }
.rp-brand img { width: 20px; height: 20px; border-radius: 4px; }
.rp-nav { display: grid; gap: 2px; }
.rp-nav span { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 999px; color: #43536a; }
.rp-nav span.on { background: #dde8f3; color: #0a2f52; font-weight: 600; }
.rp-nav icon { font-size: 15px; }
.rp-main { min-width: 0; }
.rp-bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #d7e0ec; background: #fcfdfe; }
.rp-bar .t { font-size: 12px; font-weight: 600; }
.rp-bar .sp { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #43536a; }
.rp-bar icon { font-size: 16px; }
.rp-ava { width: 20px; height: 20px; border-radius: 50%; background: #1d63ae; color: #fff; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rp-bell { position: relative; display: flex; }
.rp-bell .bdg { position: absolute; top: -4px; right: -5px; background: #b3261e; color: #fff; font-size: 7.5px; font-weight: 700; min-width: 12px; height: 12px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.rp-body { padding: 14px; display: grid; gap: 10px; }
.rp-card { background: #fff; border: 1px solid #d7e0ec; border-radius: 12px; padding: 14px 16px; }
.rp-h { font-size: 15px; font-weight: 650; color: #15222e; }
.rp-h2 { font-size: 12.5px; font-weight: 650; color: #15222e; }
.rp-mut { color: #43536a; }
.rp-passpill { background: #d9f2dd; color: #14532d; font-size: 8.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: 3px; }
.rp-srow { margin-top: 10px; }
.rp-smeta { display: flex; align-items: baseline; gap: 4px; }
.rp-gate { margin-left: auto; background: #e5f2e8; color: #1d7a3a; font-size: 8.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.rp-track { height: 8px; border-radius: 4px; background: #e8eef5; margin-top: 5px; overflow: hidden; }
.rp-fill { height: 100%; background: #2e7d32; border-radius: 4px; }
.rp-btns { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.rp-btn { padding: 6px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 600; border: 1px solid transparent; }
.rp-btn.f { background: #1d63ae; color: #fff; }
.rp-btn.t { background: #dde8f3; color: #0a2f52; }
.rp-btn.o { background: #fff; border-color: #9fb2c8; color: #1d63ae; }
.rp-sec { border: 1px solid #d7e0ec; border-left: 4px solid #1d63ae; border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.rp-sec.s2 { border-left-color: #2e7d32; }
.rp-sec .sum { font-style: italic; color: #43536a; margin-top: 5px; }
.rp-sec p { margin-top: 6px; }
.rp-sec ul { margin: 5px 0 0 14px; }
.rp-sec li { margin-top: 2px; }
/* Homepage department replica: same M3 table, average row flagged pink. */
.rp-table { margin-top: 8px; }
.rp-table tfoot tr.avg td { background: #fdecea; color: #8f1d17; }
.rp-pattern { color: #b3261e; margin-top: 10px; }
.rp-window { border: 1px solid #d7e0ec; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(16,35,60,.12); }
@media (max-width: 560px) { .rp { grid-template-columns: 40px 1fr; } .rp-nav span b, .rp-brand b { display: none; } .rp-brand { padding-bottom: 6px; } }

/* --- v0.6.10: security page visuals (sec-) --- */
.sec-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.sec-tile { background: var(--md-surface); border: 1px solid var(--md-outline-v); border-radius: 14px; padding: 16px 14px; }
.sec-tile icon { font-size: 26px; color: var(--md-primary); }
.sec-tile .b { font-weight: 700; font-size: 14.5px; margin-top: 8px; }
.sec-tile .s { color: var(--md-muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.sec-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin-top: 14px; }
.sec-step { background: var(--md-primary-c); border-radius: 12px; padding: 13px 14px; }
.sec-step .n { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--md-primary); }
.sec-step .t { font-weight: 700; font-size: 13.5px; margin-top: 3px; }
.sec-step .d { font-size: 12.5px; color: var(--md-muted); margin-top: 3px; line-height: 1.45; }
.sec-arrow { align-self: center; color: var(--md-muted); }
.sec-arrow icon { font-size: 20px; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.sec-card { background: var(--md-surface); border: 1px solid var(--md-outline-v); border-radius: 16px; padding: 20px 22px; }
.sec-card .hd { display: flex; align-items: center; gap: 10px; }
.sec-card .hd icon { font-size: 24px; color: var(--md-primary); }
.sec-card h2 { font-size: 17px; margin: 0; }
.sec-card ul { margin: 12px 0 0 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.sec-card p { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.sec-honest { margin-top: 14px; background: #fdf6ec; border: 1px solid #ecd9ae; border-radius: 16px; padding: 20px 22px; }
html[data-theme="dark"] .sec-honest { background: #2a2113; border-color: #57451d; }
.sec-honest .hd { display: flex; align-items: center; gap: 10px; }
.sec-honest .hd icon { font-size: 24px; color: #9a6b12; }
.sec-honest h2 { font-size: 17px; margin: 0; }
.sec-honest ul { margin: 12px 0 0 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.sec-chip { display: inline-block; background: #f3e2b8; color: #6d4c0d; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; vertical-align: 2px; margin-right: 6px; }
html[data-theme="dark"] .sec-chip { background: #57451d; color: #f3e2b8; }
.sec-wide { margin-top: 14px; }
@media (max-width: 860px) { .sec-tiles { grid-template-columns: 1fr 1fr; } .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sec-flow { grid-template-columns: 1fr; } .sec-arrow { transform: rotate(90deg); justify-self: center; } }


/* Library list/grid views (v0.8.9). */
/* The Library page is the list: it spans the full content width. */
.view.wide.lib-full { max-width: none; }
body.app-mode #page > .lib-full { max-width: none; }
.lib-tools { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.lib-tools nmui-text-field { flex: 1 1 240px; }
.view-toggle { display: flex; gap: 6px; margin-left: auto; padding-bottom: 2px; }
.lib-matches { font-size: .85rem; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lib-card { border: 1px solid var(--md-sys-color-outline-variant, #ccc); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--md-sys-color-surface, #fff); }
.lib-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lib-card-body h3 { margin: 0; font-size: 1.05rem; }
.lib-card-body p { margin: 0; }
/* Grid preview: the top half of the card is a document preview —
   section titles with skeleton text lines, like a page at a glance. */
.lib-preview-visual { height: 150px; padding: 14px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  background: var(--md-sys-color-surface-container-low, #eef3f8); border-bottom: 1px solid var(--md-sys-color-outline-variant, #d8e2ec); }
.pv-sec { min-width: 0; }
.pv-title { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-line { display: block; height: 6px; border-radius: 3px; background: var(--md-sys-color-outline-variant, #c9d6e2); margin-top: 5px; }
.pv-line.short { width: 68%; }
.pv-more { margin-top: auto; font-size: .8rem; color: var(--md-sys-color-on-surface-variant, #49454f); }
/* Gear panel: pick which fields show in list and grid. */
.lib-settings-wrap { position: relative; padding-bottom: 2px; }
.lib-settings { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 220px; padding: 8px 14px 12px;
  background: var(--md-sys-color-surface, #fff); border: 1px solid var(--md-sys-color-outline-variant, #d8e2ec);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(8, 24, 44, .18); }
.lib-settings-title { font-weight: 600; font-size: .9rem; margin: 6px 0 8px; }
/* Document reading page (v0.8.12): the document, nothing else. */
.doc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.doc-head headline { flex: 1; min-width: 0; }
.doc-head .doc-back { flex: none; margin-top: 2px; }
.doc-menu-wrap { position: relative; flex: none; padding-top: 2px; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 220px; padding: 6px;
  background: var(--md-sys-color-surface, #fff); border: 1px solid var(--md-sys-color-outline-variant, #d8e2ec);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(8, 24, 44, .18); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--md-sys-color-surface-container-high, #e5e3ee); }
.doc-read .doc-section { margin-top: 28px; }
.doc-read .doc-section h2 { margin: 0 0 10px; font-size: 1.25rem; }
.doc-read .doc-section p { line-height: 1.65; margin: 0 0 12px; }
.doc-read .doc-section ul { line-height: 1.6; }
.doc-summary { color: var(--md-sys-color-on-surface-variant, #49454f); }
.rp-dochead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rp-dochead .rp-h { flex: 1; }
.rp-dochead icon { flex: none; font-size: 16px; color: #43536a; }
@media print {
  nmui-navigation#app-nav, nmui-app-bar, .doc-menu-wrap { display: none !important; }
  body.app-mode #page { margin: 0; padding: 0; }
}
