/* AudiWeb 3.0: restrained identity, no sidebars, fluid responsive grids. */
:root {
  color-scheme: light;
  --paper:#f7f8f6;--surface:#fff;--nav:#fff;--ink:#172d29;--ink2:#334c46;
  --muted:#687973;--quiet:#87958f;--line:#e0e7e3;--line2:#edf1ee;
  --accent:#087d66;--accent-dark:#075f50;--dark:#133b34;--green:#1d836d;
  --orange:#b07d32;--red:#c65048;--soft-green:#e8f5ef;--soft-orange:#fff5e5;
  --shadow:0 12px 34px rgba(10,43,34,.055);
  --hero-end:#f4f9f5;--card-tint:#f5f8f6;--control-bg:#fff;--muted-bg:#f2f5f3;
}
html[data-theme="dark"] {
  color-scheme:dark;
  --paper:#101917;--surface:#192520;--nav:#15201c;--ink:#e9f4ef;--ink2:#cfdfd7;
  --muted:#b1c0b8;--quiet:#91a69b;--line:#304139;--line2:#2a3931;
  --accent:#63d8b1;--accent-dark:#7de6c3;--dark:#101c17;--green:#6ad7b6;
  --orange:#e1b672;--red:#e99d92;--soft-green:#1c3c31;--soft-orange:#372d21;
  --shadow:0 13px 38px rgba(0,0,0,.13);
  --hero-end:#1f3029;--card-tint:#20332a;--control-bg:#14231e;--muted-bg:#24352d;
}
html {scroll-padding-top:148px}
body {background:var(--paper);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:14px}
* {min-width:0}
button,a {touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
.app-shell {display:block;min-height:100dvh}
.main-area {display:block;width:100%;min-width:0}
.site-frame {position:sticky;top:0;z-index:35;background:var(--surface);border-bottom:1px solid var(--line)}
.site-header {background:var(--surface)}
.site-header-inner {max-width:1340px;margin:auto;padding:14px clamp(18px,3.2vw,40px);min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.new-brand {display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;text-decoration:none}
.brand-mark {width:47px;height:47px;flex:none;display:block;border-radius:13px}
.brand-identity {display:flex;flex-direction:column;line-height:1.13}
.brand-identity strong {font-family:ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;font-size:25px;letter-spacing:-1.25px;font-weight:760;color:var(--ink)}
.brand-identity small {font-size:10px;color:var(--muted);font-weight:500;margin-top:5px;letter-spacing:.06px}
.header-controls {display:flex;align-items:center;gap:12px}
.header-caption {letter-spacing:1.35px;color:var(--quiet);font-size:10px;font-weight:750;margin-right:16px;white-space:nowrap}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);height:42px;padding:0 12px;border-radius:10px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:650}
.theme-toggle:hover {border-color:var(--accent)}
.theme-toggle svg {width:17px;height:17px}
.theme-toggle .theme-sun {display:none}
.theme-toggle .theme-moon {display:block}
html[data-theme="dark"] .theme-toggle .theme-sun {display:block}
html[data-theme="dark"] .theme-toggle .theme-moon {display:none}
.top-new {border:0;background:#153e36;color:#fff;padding:0 18px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:12px;font-weight:720;border-radius:10px;height:42px;white-space:nowrap}
.top-new:hover {background:#205747;color:#fff}
.top-new svg {width:17px;height:17px}
.top-new span {display:inline}
.top-navigation {border-top:1px solid var(--line2);background:var(--surface);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.nav-inner {max-width:1340px;padding:6px clamp(18px,3.2vw,40px);margin:0 auto;display:flex;align-items:center;gap:4px;min-width:max-content}
.top-navigation .nav-link {background:transparent;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;color:var(--muted);font-size:12px;font-weight:625;padding:9px 13px;min-height:39px;line-height:1.3;width:auto}
.top-navigation .nav-link .icon {width:17px;height:17px}
.top-navigation .nav-link:hover {background:var(--muted-bg);color:var(--ink)}
.top-navigation .nav-link.active {background:var(--soft-green);color:var(--accent-dark)}
html[data-theme="dark"] .top-navigation .nav-link.active {color:var(--accent)}
.nav-count {background:var(--accent);color:#fff;border-radius:20px;padding:1px 7px;font-size:10px;line-height:17px}
main#mainContent {max-width:1340px;width:100%;margin:auto;padding:30px clamp(18px,3.2vw,40px) 74px}
.view-context {display:none;justify-content:space-between;color:var(--muted);font-size:12px;gap:12px;margin-bottom:13px}
.view-context #crumb {color:var(--accent);font-size:10px;font-weight:800;letter-spacing:1.15px}
.hero {display:block;min-height:0;border-radius:18px;overflow:visible;background:linear-gradient(120deg,var(--surface) 0%,var(--hero-end) 100%);border:1px solid var(--line);box-shadow:var(--shadow)}
.hero-content {padding:clamp(30px,4.6vw,68px);display:block}
.hero-eyebrow,.eyebrow {font-size:10px;letter-spacing:1.4px;font-weight:800;color:var(--accent)}
.hero h1 {font:650 clamp(35px,4.5vw,56px)/1.11 ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;letter-spacing:-2.2px;margin:19px 0 17px;color:var(--ink);max-width:900px}
.hero h1 em {font-family:Georgia,serif;font-weight:normal;letter-spacing:-1.2px;font-style:italic;color:var(--accent-dark)}
.hero-content>p {font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 30px;max-width:660px}
.audit-form {max-width:860px}
.audit-form>label {color:var(--ink);font-size:10px;margin-bottom:11px}
.audit-input-row {display:flex;flex-direction:row;align-items:stretch;gap:6px;background:var(--control-bg);padding:6px;border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 18px rgba(9,53,38,.035)}
.audit-input-row:focus-within {border-color:var(--accent);box-shadow:0 0 0 3px rgba(15,146,110,.11)}
.url-input-wrap {min-width:0;flex:1;display:flex;align-items:center;gap:9px;padding:0 11px}
.url-input-wrap .icon {color:var(--muted)}
.url-input-wrap input {background:transparent;color:var(--ink);font-size:14px;min-height:47px;height:47px;min-width:0}
.url-input-wrap input::placeholder {color:var(--quiet)}
.analyze-btn {background:#153e36;color:#fff;border:0;border-radius:8px;min-height:47px;padding:0 20px;font-size:12px;font-weight:750;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:10px}
.analyze-btn:hover {background:#1c5948}
.hero-hint {font-size:11px;color:var(--muted);margin-top:12px;display:block}
.hero-compact {background:var(--surface);box-shadow:none}
.hero.hero-compact {display:block;min-height:0}
.hero-compact .hero-content {display:block;padding:19px clamp(18px,2.9vw,30px)}
.hero-compact .hero-eyebrow,.hero-compact h1,.hero-compact .hero-content>p,.hero-compact .hero-hint,.hero-compact .audit-form>label {display:none}
.hero-compact .audit-form {max-width:none}
.hero-compact .audit-input-row {flex-direction:row}
.hero-compact .url-input-wrap input {height:43px;min-height:43px}
.hero-compact .analyze-btn {min-height:43px}
.welcome-minimal {display:flex;align-items:center;justify-content:space-between;gap:34px;padding:28px 3px 14px}
.welcome-minimal h2 {margin:8px 0 8px;font-size:25px;letter-spacing:-.65px;font-weight:650}
.welcome-minimal p {max-width:690px;font-size:13px;color:var(--muted);line-height:1.7;margin:0}
.welcome-method {text-decoration:none;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:var(--accent-dark);font-size:12px;font-weight:750}
.welcome-method .icon {width:16px;height:16px}
.loading-panel {border-radius:12px;box-shadow:var(--shadow)}
.progress-track {background:var(--muted-bg);height:5px;border-radius:10px;overflow:hidden}
.progress-bar {background:var(--accent);border-radius:10px}
.spinner {border-color:var(--line);border-top-color:var(--accent)}
.alert {background:var(--soft-orange);color:var(--ink2);border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:10px;font-size:12px}
.results-heading {margin:34px 0 19px;align-items:center}
.results-heading h2,.section-header h2 {font-family:ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;font-weight:680;letter-spacing:-1.25px;color:var(--ink)}
.results-heading h2 {font-size:clamp(26px,3.1vw,38px)}
.section-header h2 {font-size:clamp(24px,2.8vw,32px)}
.section-header p {color:var(--muted)}
.report-actions {gap:7px}
.download-primary {background:#153e36;color:#fff;border:0;border-radius:9px;padding:12px 16px;min-height:44px;white-space:nowrap}
.download-primary:hover {background:#205747}
.secondary-btn,.button-quiet {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;min-height:40px}
.secondary-btn:hover,.button-quiet:hover {background:var(--muted-bg)}
.report-summary {grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr);gap:14px}
.overall-card,.findings-card,.category-card,.issue-row,.stat-card,.detail-section,.recommendation-card,.history-row,.empty-panel,.about-card {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:none}
.overall-card,.findings-card {padding:23px}
.mini-tag {border-radius:7px;color:var(--muted)}
.card-top-caption,.category-meta,.issue-category {color:var(--muted)}
.score-ring {width:134px;height:134px}
.ring-inner {width:111px;height:111px;background:var(--surface)}
.score-summary strong {font:650 clamp(22px,2.4vw,29px)/1.2 ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;letter-spacing:-.75px}
.score-summary p,.finding-line span,.domain-line {color:var(--muted)}
.overall-chips span {color:var(--muted);border-color:var(--line);background:var(--card-tint)}
.finding-line {border-color:var(--line2)}
.score-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.category-card {padding:21px}
.category-score {font-family:ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;font-weight:720;letter-spacing:-1.5px}
.category-bar {background:var(--line2);border-radius:4px}
.category-bar>div {border-radius:4px}
.issue-row {padding:17px 19px}
.issue-row p,.audit-item p,.recommendation-card p {color:var(--muted)}
.technical-grid {background:var(--line);border-color:var(--line)}
.technical-item {background:var(--surface)}
.audit-item,.howto {background:var(--card-tint);border-color:var(--line2);color:var(--ink2);border-radius:8px}
.stat-card strong,.detail-section h3 {font-family:ui-sans-serif,system-ui,'Segoe UI',Arial,sans-serif;font-weight:650}
.stat-sub {color:var(--muted)}
.report-warnings {background:var(--soft-orange);color:var(--ink2);border-color:var(--orange);border-radius:7px}
.severity-pill.high {background:rgba(199,65,52,.13);color:var(--red)}
.severity-pill.medium {background:rgba(180,127,46,.15);color:var(--orange)}
.severity-pill.low,.severity-pill.pass {background:var(--soft-green);color:var(--accent-dark)}
html[data-theme="dark"] .severity-pill.low,html[data-theme="dark"] .severity-pill.pass {color:var(--accent)}
.footer {padding:24px clamp(18px,3.2vw,40px);max-width:1340px;margin:auto;color:var(--muted)}
.footer-brand {color:var(--ink)}
.footer-links a,.footer-links button {color:var(--muted)}
.cookie-banner {background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);color:var(--ink);max-height:calc(100dvh - 40px);overflow-y:auto}
.cookie-option {background:var(--surface);border-color:var(--line2)}
.cookie-option>span {color:var(--muted)}
.cookie-outline,.cookie-text {color:var(--ink);border-color:var(--line);background:var(--surface)}
.cookie-solid {background:#153e36;color:#fff}
.cookie-banner>p,.cookie-option small,.cookie-more {color:var(--muted)}
/* Consistent legal pages */
.legal-topbar {background:var(--surface);border-color:var(--line);min-height:88px;height:auto;gap:18px;padding:17px clamp(18px,4vw,62px)}
.legal-topbar .brand {gap:10px}
.legal-topbar .brand-mark {width:39px;height:39px}
.legal-topbar .brand-identity strong {font-size:20px}
.legal-topbar .brand-identity small {font-size:9px}
.legal-controls {display:flex;align-items:center;gap:15px}
.legal-back {color:var(--ink);font-size:12px}
.legal-main {gap:clamp(28px,5vw,90px);grid-template-columns:minmax(0,1fr) 215px}
.legal-intro h1,.legal-article section h2 {color:var(--ink)}
.legal-intro p,.legal-article section p,.legal-article section li,.legal-nav a,.legal-nav button {color:var(--muted)}
.legal-important {background:var(--soft-orange);color:var(--ink2);border-color:var(--line)}
.legal-footer {color:var(--muted)}
/* The old CSS has a few hard-coded light surfaces: map them in dark mode. */
html[data-theme="dark"] .scope-bottom,
html[data-theme="dark"] .finding-footer,
html[data-theme="dark"] .category-meta {color:var(--muted)}
html[data-theme="dark"] .finding-icon.danger {background:#432b27;color:#f4a199}
html[data-theme="dark"] .finding-icon.warn {background:#3a3121;color:#e3ba75}
html[data-theme="dark"] .finding-icon.success {background:#254236;color:#88d8b5}
html[data-theme="dark"] .issue-category,
html[data-theme="dark"] .card-top-caption {color:var(--muted)}
html[data-theme="dark"] .history-row:hover,html[data-theme="dark"] .nav-link:hover {background:var(--muted-bg)}
html[data-theme="dark"] .history-score,
html[data-theme="dark"] .history-row,
html[data-theme="dark"] .about-card {background:var(--surface)}
html[data-theme="dark"] .empty-icon {background:var(--muted-bg);color:var(--accent)}
html[data-theme="dark"] .score-summary p,
html[data-theme="dark"] .about-card p,
html[data-theme="dark"] .detail-section p,
html[data-theme="dark"] .recommendation-head,
html[data-theme="dark"] .audit-evidence {color:var(--muted)}
html[data-theme="dark"] .filters select {background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .score-ring {filter:brightness(.9)}
/* breakpoints */
@media (max-width: 1060px) {
 .header-caption {display:none}
 .hero {min-height:0;display:block}
 .hero-content {padding:clamp(28px,4vw,44px)}
 .report-summary {grid-template-columns:minmax(0,1.4fr) minmax(238px,.8fr)}
 .score-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
 .top-navigation .nav-link {padding:9px 12px}
}
@media (max-width: 760px) {
 .site-header-inner {min-height:76px;padding:12px 18px;gap:10px}
 .brand-mark {width:40px;height:40px}
 .brand-identity strong {font-size:22px}
 .brand-identity small {font-size:9px}
 .header-controls {gap:8px}
 .theme-toggle {width:40px;height:40px;padding:0}
 .theme-label {display:none}
 .top-new {height:40px;padding:0 13px}
 .top-new span {display:inline}
 .nav-inner {padding:6px 15px}
 .top-navigation .nav-link {padding:9px 11px;font-size:11px}
 .top-navigation .nav-link .icon {width:16px;height:16px}
 main#mainContent {padding:19px 18px 55px}
 .hero-content {padding:34px 27px}
 .hero h1 {font-size:clamp(35px,6.6vw,50px)}
 .welcome-minimal {padding:22px 3px 5px;align-items:flex-start;gap:15px}
 .report-summary {grid-template-columns:1fr}
 .score-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .results-heading {align-items:flex-start;gap:15px}
 .report-actions {width:100%}
 .detail-stat-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .legal-main {grid-template-columns:1fr;gap:30px;padding:40px 20px 80px}
 .legal-nav {display:none}
}
@media(max-width: 520px) {
 html {scroll-padding-top:140px}
 .site-header-inner {padding:11px 15px;min-height:68px}
 .brand-mark {width:37px;height:37px}
 .brand-identity strong {font-size:20px}
 .brand-identity small {font-size:8px}
 .new-brand {gap:8px}
 .header-controls {gap:7px}
 .top-new {width:39px;padding:0;justify-content:center}
 .top-new span {display:none}
 .top-new .icon {width:19px;height:19px}
 .theme-toggle {height:39px;width:39px}
 .nav-inner {padding:5px 12px}
 .top-navigation .nav-link {padding:9px 10px}
 main#mainContent {padding:15px 14px 44px}
 .hero {border-radius:14px}
 .hero-content {padding:26px 20px 25px}
 .hero h1 {font-size:clamp(31px,8.5vw,40px);letter-spacing:-1.35px}
 .hero h1 em {letter-spacing:-.7px}
 .hero-content>p {font-size:12px;line-height:1.7;margin-bottom:22px}
 .audit-input-row,.hero-compact .audit-input-row {flex-direction:column;padding:5px;gap:5px}
 .url-input-wrap {padding:0 9px}
 .url-input-wrap input,.hero-compact .url-input-wrap input {height:43px;min-height:43px;font-size:13px}
 .analyze-btn,.hero-compact .analyze-btn {min-height:45px;justify-content:center;width:100%}
 .hero-hint {font-size:10px;line-height:1.5}
 .hero-compact .hero-content {padding:12px}
 .welcome-minimal {display:block}
 .welcome-minimal h2 {font-size:22px}
 .welcome-minimal p {font-size:12px}
 .welcome-method {margin-top:15px}
 .report-actions {display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}
 .report-actions .download-primary {grid-column:1/-1;justify-content:center;display:flex}
 .report-actions .print-only-button {display:none}
 .report-actions .secondary-btn {width:100%;min-width:0}
 .report-summary {gap:11px}
 .overall-card,.findings-card {padding:18px}
 .overall-score-wrap {align-items:center;gap:14px;margin:20px 0}
 .score-ring {width:105px;height:105px}
 .ring-inner {width:85px;height:85px}
 .ring-inner strong {font-size:34px}
 .score-summary strong {font-size:20px}
 .score-summary p {font-size:10px}
 .score-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .category-card {padding:14px}
 .category-score {font-size:28px}
 .category-title {font-size:10px}
 .section-header.smaller {margin-top:29px}
 .section-header h2,.results-heading h2 {font-size:26px}
 .detail-stat-grid {grid-template-columns:1fr}
 .technical-grid {grid-template-columns:1fr}
 .filters {width:100%;display:flex;flex-wrap:wrap}
 .filters select {flex:1 1 140px;max-width:100%}
 .cookie-banner {bottom:8px;right:8px;width:calc(100vw - 16px);padding:17px;max-height:calc(100dvh - 16px)}
 .cookie-actions {gap:8px}
 .legal-topbar {padding:12px 15px}
 .legal-topbar .brand-identity small {display:none}
 .legal-topbar .brand-identity strong {font-size:19px}
 .legal-topbar .brand-mark {height:34px;width:34px}
 .legal-controls {gap:8px}
 .legal-back {font-size:10px}
 .legal-back .icon {display:none}
 .legal-intro h1 {font-size:clamp(36px,9vw,47px)}
}
@media(max-width: 360px){
 .brand-identity small {display:none}
 .top-navigation .nav-link {font-size:11px}
 .overall-score-wrap {flex-direction:column;align-items:flex-start}
 .score-grid {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{
 .site-frame,.theme-toggle,.top-navigation,.welcome-minimal {display:none!important}
 .hero {display:none!important}
 body {background:white!important;color:#19221e!important}
}
