@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-Regular.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-Medium.otf") format("opentype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/Montserrat-SemiBold.otf") format("opentype"); font-style: normal; font-weight: 600 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg-page: #F4F6F8;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F7F8FA;
  --bg-surface-strong: #EDF0F4;
  --border-default: #E1E5EB;
  --border-strong: #C2C9D4;
  --text-primary: #0E1320;
  --text-secondary: #4A5364;
  --text-tertiary: #6D7789;
  --brand-ink: #2A1560;
  --brand-primary: #5326C8;
  --brand-primary-hover: #431FA5;
  --brand-primary-soft: #EEE9FC;
  --brand-secondary: #16C8B7;
  --brand-secondary-soft: #E3F7F4;
  --accent-blue: #1F6FEB;
  --accent-blue-soft: #E7EFFC;
  --status-good: #0E9C8E;
  --status-good-soft: #E3F7F4;
  --status-warning-accent: #E8A33D;
  --status-warning: #96661E;
  --status-warning-soft: #FBF2E3;
  --status-critical-accent: #E0525F;
  --status-critical: #C93B48;
  --status-critical-soft: #FBEAEC;
  --status-neutral: #6D7789;
  --status-neutral-soft: #EDF0F4;
  --shadow-sm: 0 1px 2px rgba(14, 19, 32, .04), 0 5px 16px rgba(14, 19, 32, .045);
  --shadow-md: 0 18px 42px rgba(14, 19, 32, .11);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --container: 1320px;
  --font-sans: "Montserrat", "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font: 14px/1.62 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent-blue); text-underline-offset: 3px; }
a:hover { color: var(--brand-primary); }
button, a, summary, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px rgba(83, 38, 200, .24); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }

.app-header { position: sticky; top: 0; z-index: 20; height: 68px; border-bottom: 1px solid #232B3A; background: rgba(14, 19, 32, .97); backdrop-filter: blur(14px); }
.app-header-inner { width: min(var(--container), calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-wordmark { color: #FFFFFF; font-size: 18px; font-weight: 600; letter-spacing: -.035em; }
.brand-wordmark span, footer strong span { color: var(--brand-secondary); font-weight: 400; }
.product-context { display: flex; align-items: center; gap: 10px; color: #C2C9D4; font-size: 12px; font-weight: 500; }
.version-chip, .count-chip, .step-chip, .badge, .status, .priority, .client-priority, .client-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; white-space: nowrap; border-radius: 999px; font-weight: 750; }
.version-chip { padding: 3px 8px; border: 1px solid #353F52; background: #232B3A; color: #F4F6F8; font-size: 10px; }

main { width: min(var(--container), calc(100% - 48px)); min-height: calc(100vh - 142px); margin: auto; padding: 56px 0 104px; }
footer { min-height: 74px; padding: 22px max(24px, calc((100% - var(--container)) / 2)); display: flex; justify-content: space-between; gap: var(--space-4); border-top: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-tertiary); font-size: 12px; }
footer strong { color: var(--brand-ink); letter-spacing: -.025em; }

h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; }
h1 { margin: 8px 0 16px; font-size: clamp(36px, 4vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
h2 { margin: 4px 0 10px; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.18; letter-spacing: -.03em; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; letter-spacing: -.018em; }
h4 { margin: 0; font-size: 15px; line-height: 1.4; }
p { margin: 0 0 14px; }
small, .muted { color: var(--text-secondary); }
.eyebrow, .section-kicker { margin: 0 0 var(--space-2); color: var(--brand-primary); font-family: var(--font-mono); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { margin-right: 8px; color: var(--brand-secondary); }
.section-kicker { color: var(--text-tertiary); letter-spacing: .09em; }
.intro, .section-description { max-width: 790px; color: var(--text-secondary); }

.hero { max-width: 820px; margin-bottom: var(--space-7); }
.hero > p { max-width: 700px; color: var(--text-secondary); font-size: 17px; }
.product-hero, .compact-hero, .technical-hero { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-7); }
.product-hero { position: relative; min-height: 300px; padding: 48px; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-ink); box-shadow: var(--shadow-md); }
.product-hero::before, .product-hero::after { content: ""; position: absolute; transform: rotate(45deg); pointer-events: none; }
.product-hero::before { right: 98px; top: -112px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; }
.product-hero::after { right: 75px; top: 72px; width: 74px; height: 74px; border-radius: 8px; background: var(--brand-secondary); opacity: .9; }
.product-hero > div { position: relative; z-index: 1; }
.product-hero h1 { color: #FFFFFF; }
.product-hero > div:first-child > p:last-child { color: #C2C9D4; }
.product-hero .eyebrow { color: var(--brand-secondary); }
.product-hero > div:first-child { max-width: 780px; }
.hero-aside, .account-context { min-width: 260px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.product-hero .hero-aside { border-color: rgba(255,255,255,.13); background: rgba(14,19,32,.42); box-shadow: none; }
.product-hero .hero-aside strong { color: #FFFFFF; }
.product-hero .hero-aside small { color: #A8B1C2; }
.hero-aside small, .account-context span { grid-column: 2; color: var(--text-secondary); font-size: 12px; }
.signal-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--brand-secondary); box-shadow: 0 0 0 5px rgba(22, 200, 183, .12); }
.account-context { display: flex; min-width: 250px; flex-direction: column; gap: 1px; }
.account-context small { color: var(--text-tertiary); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.account-context strong { font-size: 16px; }
.run-id { color: var(--text-secondary); }
.run-id code { font-family: var(--font-mono); font-size: 12px; }

.card { margin: 18px 0; padding: 28px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }
.count-chip { padding: 6px 10px; border: 1px solid var(--border-default); background: var(--bg-surface-subtle); color: var(--text-secondary); font-size: 11px; }
.step-chip { width: 30px; height: 30px; background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 12px; }

.button, button { min-height: 40px; padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--brand-primary); border-radius: var(--radius-sm); background: var(--brand-primary); color: #fff; text-decoration: none; font-weight: 600; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.button:hover, button:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); color: #fff; box-shadow: 0 6px 16px rgba(83, 38, 200, .18); transform: translateY(-1px); }
.button:active, button:active { transform: translateY(0); }
.button.secondary, button.secondary { border-color: var(--border-default); background: var(--bg-surface); color: var(--text-primary); }
.button.secondary:hover, button.secondary:hover { border-color: var(--border-strong); background: var(--bg-surface-subtle); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.text-link { font-weight: 700; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); }
.actions.centered { justify-content: center; }

.account-card { padding: 0; overflow: hidden; }
.account-card > .section-header { padding: 24px 26px 20px; background: var(--bg-surface-subtle); border-bottom: 1px solid var(--border-default); }
.account-card h2 { font-size: 21px; }
.account-list { padding: 0 26px; }
.account-row { min-height: 80px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); border-top: 1px solid var(--border-default); }
.account-row:first-child { border-top: 0; }
.account-row.manager { opacity: .72; }
.account-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.account-identity > div { min-width: 0; }
.account-identity strong, .account-identity small { display: block; }
.account-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 800; }
.badge { padding: 5px 10px; font-size: 11px; }
.badge.neutral { border: 1px solid var(--border-default); background: var(--status-neutral-soft); color: var(--status-neutral); }

.audit-form { max-width: 960px; }
.form-section { padding: 30px; }
.field { display: grid; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.compact-field { max-width: 300px; margin-top: var(--space-5); }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); transition: border-color .15s ease, box-shadow .15s ease; }
input:hover, select:hover, textarea:hover { border-color: #aaaec1; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(83, 38, 200, .13); }
textarea { min-height: 110px; resize: vertical; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.text-grid { margin-bottom: 0; }
.form-actions { max-width: 960px; margin-top: var(--space-5); }

.alert, .info-note { width: 100%; padding: 16px 18px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid; border-radius: var(--radius-md); }
.alert p, .info-note p { margin: 2px 0; }
.alert.error { border-color: #f1c4ca; background: var(--status-critical-soft); color: #7c1f2d; }
.alert-icon, .note-icon { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--status-critical); color: #fff; font-weight: 800; }
.info-note { margin: 22px 0; border-color: #cbd9f4; background: var(--accent-blue-soft); color: #29466f; }
.note-icon { background: var(--accent-blue); }
.empty-state { min-height: 260px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-surface); }
.empty-state p { max-width: 520px; color: var(--text-secondary); }
.empty-icon, .state-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 22px; font-weight: 800; }
.inline-empty { min-height: 230px; margin-top: var(--space-5); }

.status-card { max-width: 760px; margin: 0 auto; padding: 56px; text-align: center; }
.status-card > p { max-width: 570px; margin: 0 auto 18px; color: var(--text-secondary); }
.status { margin-bottom: 10px; padding: 5px 10px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.status.running { background: var(--brand-primary-soft); color: var(--brand-primary); }
.status.completed { background: var(--status-good-soft); color: var(--status-good); }
.status.failed { background: var(--status-critical-soft); color: var(--status-critical); }
.loading-orbit { position: relative; width: 58px; height: 58px; margin: 0 auto 22px; border: 1px solid #dcd7fb; border-radius: 50%; }
.loading-orbit::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--brand-primary-soft); }
.loading-orbit span { position: absolute; top: 4px; left: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); transform-origin: 4px 25px; animation: orbit 1.35s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.progress { max-width: 460px; height: 4px; margin: 28px auto 18px; overflow: hidden; border-radius: 999px; background: var(--bg-surface-strong); }
.progress span { display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--brand-primary); animation: progress 1.7s ease-in-out infinite; }
@keyframes progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(305%); } }
.status-meta { font-size: 12px; color: var(--text-tertiary) !important; }
.success-icon { margin-left: auto; margin-right: auto; background: var(--status-good-soft); color: var(--status-good); }
.error-icon { margin-left: auto; margin-right: auto; background: var(--status-critical-soft); color: var(--status-critical); }
.status-card .alert { margin: 22px 0; text-align: left; }
.session-email { max-width: 220px; overflow: hidden; color: var(--text-tertiary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.session-action, .inline-form { margin: 0; }
.text-button { min-height: auto; padding: 6px 9px; border: 0; background: transparent; box-shadow: none; color: var(--brand-primary); font-size: 11px; }
.text-button:hover { background: var(--brand-primary-soft); box-shadow: none; transform: none; }
.auth-card { max-width: 620px; margin: 0 auto; padding: 42px; text-align: center; }
.auth-card > p { color: var(--text-secondary); }
.auth-card > small { display: block; max-width: 470px; margin: 22px auto 0; color: var(--text-tertiary); }
.auth-mark { width: 48px; height: 48px; margin-bottom: 14px; }
.reference-id { margin-top: 10px !important; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; }

.report-hero { min-width: 0; max-width: 100%; margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; gap: 28px; }
.report-hero > *, .report-nav > *, .confidence-panel > * { min-width: 0; }
.report-identity { padding: 12px 0; }
.report-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--text-secondary); font-size: 13px; }
.report-meta span { display: grid; }
.report-meta small { color: var(--text-tertiary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.score { min-width: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; border-radius: var(--radius-lg); background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-md); }
.score-label { display: flex; align-items: center; gap: 10px; }
.score-label .signal-dot { margin: 0; background: var(--brand-secondary); box-shadow: 0 0 0 5px rgba(22, 200, 183, .12); }
.score small { color: #cbc9dc; }
.score > strong { margin: 9px 0 3px; overflow-wrap: anywhere; color: #fff; font-size: 22px; letter-spacing: -.02em; }
.score > span { color: #b9b7cc; font-size: 12px; }
.report-nav { position: sticky; top: 78px; z-index: 10; margin-bottom: 26px; padding: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(223, 226, 236, .95); border-radius: var(--radius-md); background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.report-nav > div { display: flex; flex-wrap: wrap; gap: 3px; }
.report-nav a { padding: 8px 11px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 12px; font-weight: 700; }
.report-nav a:hover { background: var(--bg-surface-subtle); color: var(--brand-primary); }
.report-nav .technical-link { background: var(--brand-primary-soft); color: var(--brand-primary); }
.confidence-panel { margin: 22px 0 58px; padding: 22px 26px; display: grid; grid-template-columns: 230px 1px 1fr; align-items: center; gap: 28px; border: 1px solid #c7e4e1; border-radius: var(--radius-md); background: var(--brand-secondary-soft); }
.confidence-panel small, .confidence-panel strong { display: block; }
.confidence-panel small { color: #527275; }
.confidence-panel strong { color: #075f65; font-size: 25px; }
.confidence-panel p { margin: 0; color: #335f62; }
.confidence-divider { width: 1px; height: 44px; background: #badbd8; }

.strategic-diagnosis { margin: 58px 0 76px; scroll-margin-top: 112px; }
.strategic-diagnosis > .section-header { align-items: flex-end; }
.strategic-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.strategic-card { position: relative; min-height: 320px; margin: 0; padding: 27px; display: flex; flex-direction: column; overflow: hidden; border-left: 3px solid var(--brand-primary); box-shadow: var(--shadow-sm); }
.strategic-card::after { content: ""; position: absolute; top: -54px; right: -54px; width: 126px; height: 126px; transform: rotate(45deg); border: 1px solid rgba(83, 38, 200, .09); border-radius: 14px; pointer-events: none; }
.strategic-card-index { position: absolute; top: 17px; right: 20px; color: #E8E4F4; font-family: var(--font-mono); font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -.06em; }
.strategic-head { min-height: 28px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.priority-label { color: var(--text-tertiary); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.strategic-card h3 { max-width: 88%; margin-bottom: 14px; font-size: 21px; }
.strategic-result { color: var(--text-secondary); font-size: 15px; }
.strategic-action { margin-top: auto; padding: 17px 0 0; border-top: 1px solid var(--border-default); }
.strategic-action strong { display: block; margin-bottom: 4px; color: var(--brand-primary); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.strategic-action p { margin: 0; font-size: 14px; }
.priority-card-medium { border-left-color: var(--brand-secondary); }

.client-priority, .client-status { padding: 4px 8px; border: 1px solid transparent; font-size: 10px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; }
.priority-high { border-color: #d6cef9; background: var(--brand-primary-soft); color: var(--brand-primary); }
.priority-medium { border-color: #bfe1de; background: var(--brand-secondary-soft); color: #087078; }
.priority-low { border-color: #cedbf4; background: var(--accent-blue-soft); color: var(--accent-blue); }
.priority-— { border-color: var(--border-default); background: var(--status-neutral-soft); color: var(--status-neutral); }
.status-good { border-color: #bfe2d5; background: var(--status-good-soft); color: var(--status-good); }
.status-critical { border-color: #f0bdc5; background: var(--status-critical-soft); color: var(--status-critical); }
.status-needs_improvement { border-color: #efcf9b; background: var(--status-warning-soft); color: var(--status-warning); }
.status-needs_review { border-color: #e5d09f; background: #fff8e9; color: #82621b; }
.status-manual_verification { border-color: #c7d8f3; background: var(--accent-blue-soft); color: #315d9f; }
.status-not_enough_data, .status-not_audited, .status-not_applicable { border-color: var(--border-default); background: var(--status-neutral-soft); color: var(--status-neutral); }

.checklist { margin-top: 70px; scroll-margin-top: 110px; }
.checklist-filters { position: sticky; top: 78px; z-index: 9; margin: 24px 0; padding: 8px; display: flex; flex-wrap: wrap; gap: 5px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.checklist-filters .filter { min-height: 34px; padding: 7px 10px; border-color: transparent; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 11px; }
.checklist-filters .filter:hover { border-color: transparent; background: var(--bg-surface-strong); color: var(--text-primary); box-shadow: none; transform: none; }
.checklist-filters .active { background: var(--brand-primary); color: #fff; }
.checklist-filters .active:hover { background: var(--brand-primary-hover); color: #fff; }
.master-section { margin: 28px 0; }
.master-section > summary { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; border: 1px solid #232B3A; border-radius: var(--radius-md); background: #0E1320; color: #fff; cursor: pointer; }
.master-section > summary::-webkit-details-marker { display: none; }
.master-section > summary .summary-title { display: flex; align-items: center; gap: 10px; }
.master-section > summary strong { color: #fff; font-size: 18px; }
.master-section > summary > span:last-child { color: #c9c7d8; font-size: 12px; }
.chevron { font-size: 25px; line-height: 1; transition: transform .16s ease; }
.master-section[open] .chevron { transform: rotate(90deg); }
.checklist-subsection { margin: 18px 0 28px; }
.checklist-subsection > h3 { position: sticky; top: 130px; z-index: 7; margin: 0; padding: 12px 16px; border: 1px solid var(--border-default); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--bg-surface-strong); color: #3d4053; font-size: 15px; }
.audit-table { overflow: clip; border: 1px solid var(--border-strong); border-radius: 0 0 var(--radius-md) var(--radius-md); background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.audit-table-head, .audit-row { display: grid; grid-template-columns: 1.05fr 1.35fr 1.35fr 2fr .55fr; }
.audit-table-head { background: var(--bg-surface-subtle); color: var(--text-tertiary); font-size: 9px; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.audit-table-head span, .audit-row > div { min-width: 0; padding: 14px; border-right: 1px solid var(--border-default); }
.audit-table-head span:last-child, .audit-row > div:last-child { border-right: 0; }
.audit-row { border-top: 1px solid var(--border-default); transition: background-color .12s ease; }
.audit-row:hover { background: #F7F8FA; }
.audit-row p { margin: 0 0 10px; }
.audit-row p:last-child { margin-bottom: 0; }
.audit-check h4 { margin-top: 10px; }
.audit-description, .audit-education, .audit-result { color: var(--text-secondary); font-size: 13px; }
.audit-result .conclusion { color: var(--text-primary); font-size: 13.5px; font-weight: 670; }
.audit-result p:last-child strong { display: block; margin: 13px 0 2px; color: var(--text-tertiary); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.audit-priority { text-align: center; }
.secondary-section { margin-top: 50px; }
.manual-list > div { padding: 18px 0; border-top: 1px solid var(--border-default); }
.manual-list > div:first-child { border-top: 0; }
.manual-list p { margin: 5px 0; color: var(--text-secondary); }
.limitation-list { margin: 18px 0 0; padding-left: 20px; color: var(--text-secondary); }
.limitation-list li { margin: 8px 0; padding-left: 4px; }

.technical-hero { align-items: center; }
.technical-hero > div { max-width: 760px; }
.technical-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card { margin: 0; padding: 22px; display: flex; flex-direction: column; }
.metric-card:first-child { border-color: var(--brand-ink); background: var(--brand-ink); }
.metric-card:first-child .metric-label, .metric-card:first-child small { color: #B6AED1; }
.metric-card:first-child strong { color: #FFFFFF; }
.metric-card strong { margin: 5px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -.04em; }
.metric-card small { margin-top: 3px; }
.metric-label { color: var(--text-tertiary); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.technical-overview { margin-top: 14px; }
.evidence { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--border-default); }
.evidence > div { padding: 11px 13px; background: var(--bg-surface-subtle); }
.evidence dt { color: var(--text-tertiary); font-size: 10px; font-weight: 750; text-transform: capitalize; }
.evidence dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--text-primary); font-size: 12px; }
.technical-stack { margin: 32px 0 60px; display: grid; gap: 10px; }
.technical-card { margin: 0; padding: 0; overflow: hidden; border-radius: var(--radius-md); }
.technical-card[open] { border-left: 3px solid var(--brand-primary); }
.technical-card > summary { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; }
.technical-card > summary::-webkit-details-marker { display: none; }
.technical-card > summary > span:first-child { display: grid; }
.technical-card > summary small { color: var(--text-tertiary); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.technical-card > summary strong { color: var(--text-primary); font-size: 15px; }
.disclosure-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-surface-strong); color: var(--brand-primary); font-size: 18px; transition: transform .16s ease; }
.technical-card[open] .disclosure-icon { transform: rotate(45deg); }
.technical-card-body { padding: 0 20px 20px; border-top: 1px solid var(--border-default); }
.technical-card-body > p { margin-top: 18px; color: var(--text-secondary); }
.technical-error { border-color: #efc5ca; }
.nested-details { margin-top: 12px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-surface-subtle); }
.nested-details > summary { padding: 11px 13px; cursor: pointer; color: var(--text-secondary); font-size: 12px; font-weight: 750; }
pre { max-height: 640px; margin: 14px 0 0; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #232B3A; border-radius: var(--radius-sm); background: #0E1320; color: #E1E5EB; font: 11px/1.65 var(--font-mono); tab-size: 2; }
.raw-findings { margin-top: 60px; }
.raw-finding { padding: 22px; }
.insight-head { display: flex; align-items: flex-start; gap: 13px; }
.priority-technical { padding: 4px 8px; background: var(--bg-surface-strong); color: var(--text-secondary); font-size: 10px; }
.raw-finding p { color: var(--text-secondary); font-size: 13px; }

@media (max-width: 1100px) {
  .report-hero { grid-template-columns: minmax(0, 1fr) 290px; }
  .audit-table-head { display: none; }
  .audit-row { grid-template-columns: 1fr; padding: 4px 16px; }
  .audit-row > div { position: relative; padding: 14px 0 14px 142px; border-right: 0; border-bottom: 1px solid var(--border-default); }
  .audit-row > div:last-child { border-bottom: 0; }
  .audit-row > div::before { content: attr(data-label); position: absolute; top: 15px; left: 0; width: 120px; color: var(--text-tertiary); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .audit-check h4 { margin-top: 8px; }
  .audit-priority { text-align: left; }
  .checklist-subsection > h3 { top: 130px; }
}

@media (max-width: 800px) {
  main { width: min(100% - 32px, var(--container)); padding-top: 44px; }
  .app-header-inner { width: calc(100% - 32px); }
  .product-hero, .compact-hero, .technical-hero { display: block; }
  .hero-aside, .account-context { width: 100%; margin-top: 24px; }
  .report-hero { grid-template-columns: 1fr; }
  .report-identity { padding-top: 0; }
  .report-nav { position: static; align-items: stretch; flex-direction: column; }
  .report-nav > div { display: grid; grid-template-columns: repeat(2, 1fr); }
  .report-nav a { text-align: center; }
  .confidence-panel { grid-template-columns: 1fr; gap: 12px; }
  .confidence-divider { width: 100%; height: 1px; }
  .strategic-grid { grid-template-columns: 1fr; }
  .strategic-card { min-height: 0; }
  .technical-summary-grid { grid-template-columns: 1fr; }
  .evidence { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .product-context > span:first-child { display: none; }
  main { width: calc(100% - 24px); padding: 34px 0 72px; }
  footer { padding: 20px; flex-direction: column; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .hero { margin-bottom: 34px; }
  .card, .form-section { padding: 20px; border-radius: var(--radius-md); }
  .account-card { padding: 0; }
  .account-card > .section-header, .account-list { padding-left: 18px; padding-right: 18px; }
  .account-row { align-items: stretch; flex-direction: column; }
  .account-row .button { width: 100%; }
  .account-identity small { white-space: normal; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button, .form-actions button { width: 100%; }
  .status-card { padding: 34px 20px; }
  .status-card .actions { align-items: stretch; flex-direction: column; }
  .report-meta { display: grid; grid-template-columns: repeat(2, 1fr); }
  .score { padding: 22px; }
  .score > strong { font-size: 19px; }
  .strategic-diagnosis { margin: 46px 0 60px; }
  .strategic-diagnosis > .section-header { align-items: flex-start; flex-direction: column; }
  .checklist-filters { position: static; overflow-x: auto; flex-wrap: nowrap; }
  .checklist-section > summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .checklist-subsection > h3 { position: static; }
  .audit-row { padding: 3px 13px; }
  .audit-row > div { padding-left: 0; padding-top: 34px; }
  .audit-row > div::before { top: 13px; width: auto; }
  .technical-card > summary { padding: 16px; }
  .technical-card-body { padding: 0 16px 16px; }
  pre { margin-left: -6px; margin-right: -6px; padding: 13px; font-size: 10px; }
  .raw-findings > .section-header { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
