:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --panel: #ffffff;
  --ink: #22273a;
  --muted: #6c7286;
  --line: #e9eaf2;
  --soft: #f3f2fa;
  --red: #6251c8;
  --brand: #6251c8;
  --tint: #eeebfb;
  --green: #21856d;
  --radius: 14px;
  --sidebar: 232px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: -.035em; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button, summary, select { cursor: pointer; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
/* Step titles receive programmatic focus for navigation, without a control outline. */
.section-head h2[tabindex="-1"]:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #aaa0ee; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px #6251c816; }
[hidden] { display: none !important; }
.access-screen { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(ellipse at 15% 10%,#ede9ff,transparent 60%),var(--paper); }
.access-wait { text-align: center; color: var(--muted); font-size: 13px; }
.access-wait img { width: 145px; height: auto; margin-bottom: 20px; }
.access-card { width: 100%; max-width: 440px; padding: 36px; border: 1px solid #e4e0f1; border-radius: 24px; background: #fff; box-shadow: 0 18px 60px #42377c0b; }
.access-brand img { width: 145px; height: auto; }
.access-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 34px 0 20px; border-radius: 14px; color: var(--brand); background: var(--tint); }
.access-icon svg { width: 26px; height: 26px; }
.access-eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .08em; color: var(--brand); margin-bottom: 10px; }
.access-card h1 { font-size: 28px; }
.access-description { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.access-form { display: grid; gap: 18px; margin-top: 28px; }
.access-form label { display: grid; gap: 7px; font-size: 12px; color: #52586c; font-weight: 600; }
.access-form input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #e1e3ed; border-radius: 9px; font-size: 16px; color: var(--ink); background: #fff; }
.access-form .button { font-size: 14px; min-height: 48px; }
.access-error { color: #b52d39; font-size: 12px; }
.access-home { display: inline-block; margin-top: 24px; font-size: 12px; color: var(--muted); text-decoration: none; }
@media(max-width:480px) { .access-card { padding: 28px 24px; } .access-card h1 { font-size: 25px; } }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 18px; border-radius: 8px; background: var(--brand); color: #fff; }
.skip-link:focus { top: 12px; }
.ax-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 30px 18px 20px; background: #fff; border-right: 1px solid var(--line); z-index: 5; overflow-y: auto; }
.brand { display: flex; align-items: center; width: fit-content; padding: 0 12px; }
.brand img { display: block; width: 150px; height: auto; }
.workspace-label { margin: 10px 12px 38px; color: #77718e; font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.nav-label { padding: 0 12px; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.step-nav { display: grid; gap: 8px; }
.step-nav a { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px; color: #646a7d; border: 1px solid transparent; border-radius: 10px; text-decoration: none; }
.step-nav a:hover { background: #f8f7fd; color: var(--brand); }
.step-nav a[aria-current=step] { background: var(--tint); color: #5141b0; border-color: #e5dffb; }
.step-nav b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f0f1f7; color: #777d91; font-size: 12px; flex: none; }
.step-nav a[aria-current=step] b { background: var(--brand); color: #fff; box-shadow: 0 3px 8px #6251c825; }
.step-nav a>span { font-weight: 650; font-size: 13px; }
.step-nav small { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; color: #777c90; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: #42a28b; }
.mast { margin-left: var(--sidebar); background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { width: 100%; min-height: 94px; padding: 14px 36px; display: flex; align-items: center; gap: 20px; }
.workspace-context { flex: 1; min-width: 0; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 12px; color: #878ba0; font-size: 12px; }
.workspace-breadcrumb strong { color: #4a5065; font-weight: 550; }
.selected-company { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 9px; }
.selected-company-label { color: #776c9b; font-size: 10px; white-space: nowrap; }
#selected-company-name { max-width: min(420px,35vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #34304b; font-size: 15px; font-weight: 700; }
#selected-company-meta { color: #74788d; font-size: 11px; }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mast-actions .button { padding: 9px 12px; font-size: 12px; min-height: 38px; }
.shell { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); padding: 30px 36px 0; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.page-eyebrow { margin-bottom: 7px; font-size: 9px; font-weight: 650; letter-spacing: .12em; color: #827a9c; }
.hero h1 { font-size: 27px; font-weight: 750; margin-bottom: 6px; }
.session-context { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.hero-actions, .inline-actions, .report-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body[data-view=report] .hero { display: none; }
body[data-view=report] #cloud-status { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 11px; }
.button.ghost { background: #fff; border-color: #e0e2ec; color: #535a70; }
.button.ghost:hover { background: #f5f3fd; border-color: #cdc5ed; color: var(--brand); }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 3px 8px #6251c818; }
.button.primary:hover { background: #5141b2; box-shadow: 0 4px 10px #6251c82a; }
.button.sample-action { background: #eae5fb; border-color: #d8cff3; color: #48358d; }
.button.sample-action:hover { background: #dfd6f8; border-color: #cbbdeb; }
.button:disabled { opacity: .55; cursor: wait; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--tint); color: #5848ba; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pill.neutral { background: #f0f2f7; color: #626a80; }
.pill.green { background: #e8f5ef; color: #23775f; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-step { display: inline-block; margin-bottom: 7px; color: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.section-head h2 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.section-head p, .panel-heading p, .muted, .help { color: var(--muted); }
.section-head p { font-size: 12px; line-height: 1.8; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: 0 2px 6px #26324b03; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #f0f0f6; }
.panel-heading h3, .panel h3 { font-size: 15px; font-weight: 650; }
.panel-heading p { font-size: 11px; margin-top: 7px; line-height: 1.8; }
.panel-number { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 7px; border: 1px solid #e6e0fa; border-radius: 7px; background: #f4f1fd; color: var(--brand); font-size: 10px; vertical-align: middle; }
.optional-label { font-size: 10px; font-weight: 500; line-height: 1.7; color: #73798e; white-space: nowrap; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 24px; }
.fields label { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: #52586c; font-size: 12px; font-weight: 600; }
.fields label.wide, .guided-field.wide { grid-column: span 2; }
.fields label.full { grid-column: 1/-1; }
.fields input, .fields select, .fields textarea, .guided-field>select { width: 100%; min-height: 47px; padding: 11px 13px; color: #2e3449; background: #fff; border: 1px solid #e1e3ed; border-radius: 8px; font-size: 13px; font-weight: 400; line-height: 1.6; }
.fields input::placeholder, .fields textarea::placeholder { color: #969aac; }
.fields input[type=number] { text-align: right; font-variant-numeric: tabular-nums; }
.fields textarea { resize: vertical; min-height: 86px; }
.fields small, .guided-field>small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.7; }
.fields select, .guided-field>select { padding-right: 32px; }
.fields select:hover, .fields input:hover, .fields textarea:hover { border-color: #c7c3dc; }
.inline-disclosure { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.inline-disclosure summary, .panel-disclosure>summary, .case-disclosure summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 28px; padding-right: 24px; color: #52586d; font-weight: 600; font-size: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
.inline-disclosure summary::after, .panel-disclosure>summary::after, .case-disclosure summary::after { content: ''; position: absolute; right: 3px; top: 8px; width: 7px; height: 7px; border: solid #8c88a5; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open]>summary::after { transform: translateY(4px) rotate(225deg); }
.inline-disclosure[open]>summary, .panel-disclosure[open]>summary { margin-bottom: 20px; }
.inline-disclosure .fields, .panel-disclosure .fields { margin-top: 16px; }
.inline-disclosure .inline-actions, .panel-disclosure .inline-actions { margin-top: 16px; }
.guided-field { display: grid; align-content: start; gap: 9px; min-width: 0; }
#work-fields { display: grid; gap: 18px; max-width: 980px; margin-top: 20px; }
.work-group { min-width: 0; margin: 0; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f9f9fc; }
.work-group legend { padding-inline: 6px; color: var(--ink); font-size: 14px; font-weight: 700; }
.inline-disclosure .work-group .fields { margin: 0; gap: 14px 18px; }
.work-group .fields label, .work-group .fields :is(input,select,textarea) { font-size: 14px; }
.guided-back { display: block; margin-top: 8px; padding: 4px 0; border: 0; background: transparent; color: #5142a8; font: inherit; text-decoration: underline; cursor: pointer; }
#readiness-fields { grid-template-columns: 1fr 1fr; }
#readiness-hint { font-variant-numeric: tabular-nums; }
.assessment-completion { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.assessment-completion progress { flex: 1; max-width: 220px; min-width: 90px; }
.assessment-panel { padding: 28px; }
.assessment-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.assessment-head h3 { font-size: 18px; }
.assessment-head p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.assessment-total { display: grid; justify-items: end; flex: none; }
.assessment-total strong { color: var(--brand); font-size: 35px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.assessment-total>span { font-size: 10px; color: var(--muted); }
.assessment-domains { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.assessment-domain { min-width: 0; padding: 18px; border: 1px solid #e9e5f5; border-radius: 12px; background: #fcfbff; }
.assessment-domain-title { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.assessment-domain-title>span { font-size: 17px; }
.assessment-domain-title b { margin-left: auto; color: var(--brand); font-size: 12px; white-space: nowrap; }
.assessment-domain progress { display: block; width: 100%; margin: 16px 0 8px; }
.assessment-domain small { color: var(--muted); font-size: 10px; }
.assessment-panel progress,.assessment-completion progress { height: 6px; border: none; border-radius: 10px; overflow: hidden; background: #eceaf4; accent-color: var(--brand); }
.assessment-panel progress::-webkit-progress-bar,.assessment-completion progress::-webkit-progress-bar { background: #eceaf4; border-radius: 10px; }
.assessment-panel progress::-webkit-progress-value,.assessment-completion progress::-webkit-progress-value { background: var(--brand); border-radius: 10px; }
.assessment-panel progress::-moz-progress-bar,.assessment-completion progress::-moz-progress-bar { background: var(--brand); border-radius: 10px; }
.assessment-next { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.assessment-next h4 { margin: 0 0 16px; font-size: 18px; }
.assessment-next ol { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.assessment-next li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 14px; padding: 16px; border: 1px solid #e3dcf4; border-radius: 10px; background: #f8f6fd; }
.assessment-rank { padding: 5px 9px; border-radius: 6px; background: #5a48b6; color: #fff; font-size: 14px; font-weight: 700; }
.assessment-task>strong { display: inline-block; margin-right: 8px; font-size: 15px; }
.assessment-next p { margin: 6px 0 0; color: #555c72; font-size: 13px; line-height: 1.7; }
.assessment-task dl { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 8px 0 0; font-size: 12px; color: #555c72; }
.assessment-task dl>div { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.assessment-task dt { font-weight: 700; }
.assessment-task dd { margin: 0; }
.assessment-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.assessment-method { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.assessment-method summary { color: var(--muted); font-size: 11px; }
.assessment-method p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
#peer-count { margin-left: 6px; font-size: 11px; }
.benchmark-advice { margin-bottom: 20px; padding: 16px 20px; border-inline-start: 4px solid var(--brand); font-size: 14px; }
.benchmark-advice strong { color: var(--ink); font-size: 16px; }
.case-disclosure { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.case-disclosure[open] summary { margin-bottom: 12px; }
.result-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.result-summary>div { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow-wrap: anywhere; }
.result-summary>div:nth-child(2) { background: #f6f3ff; border-color: #e8e1fc; }
.result-summary>div:nth-child(3) { background: #f0f9f6; border-color: #dceee6; }
.metric-label, .metric-foot { display: block; color: var(--muted); font-size: 11px; }
.metric-value { display: block; margin: 10px 0 8px; color: #3b355a; font-size: clamp(20px,2.5vw,28px); font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.result-heading { margin: 26px 0 12px; }
#finance-view>.panel { background: transparent; padding: 0; border: 0; box-shadow: none; }
#finance-view>.panel>.panel-heading { display: none; }
#finance-results .chart-grid { margin-block: 22px; }
#status { margin: 0 0 20px; }
.dart-fields { align-items: end; }
.dart-fields .button { justify-self: start; }
.status, .notice { margin-top: 16px; padding: 12px 16px; border: 1px solid #e4dff5; border-radius: 9px; background: #f1eefb; color: #605781; font-size: 12px; overflow-wrap: anywhere; }
.notice strong { display: block; margin-bottom: 4px; }
.notice.good { background: #eef8f3; border-color: #d9ede3; color: #386e5b; }
#cloud-status { margin: -10px 0 22px; padding: 0; border: 0; background: transparent; color: #657288; font-size: 11px; }
.step-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 12px; }
.step-footer .primary { margin-left: auto; }
.card-grid, .chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.case { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 20px; }
.case h4 { margin: 12px 0 7px; font-size: 15px; }
.case p { margin-bottom: 10px; font-size: 12px; line-height: 1.85; }
.case a { font-size: 11px; }
.case .case-result { font-weight: 600; }
.case .case-strength { color: var(--ink); font-size: 15px; font-weight: 700; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.case-metrics>div { flex: 1 1 145px; padding: 12px; border-radius: 8px; background: var(--soft); }
.case-metrics dt { color: var(--muted); font-size: 12px; }
.case-metrics dd { margin: 2px 0 0; color: #5142a8; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.case-takeaway strong { display: block; color: var(--ink); }
.benchmark-charts { align-items: start; }
.benchmark-charts.benchmark-charts-single { grid-template-columns: 1fr; }
.benchmark-charts h3 { font-size: 15px; }
.trial-checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 10px; padding: 0; margin: 14px 0; }
.trial-checklist li { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9f8fc; overflow-wrap: anywhere; }
.trial-checklist li>strong { font-size: 14px; }
.trial-checklist p { margin: 5px 0; font-size: 13px; color: #555c72; }
.metric-chart-block { margin-top: 20px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
caption { text-align: left; font-weight: 650; padding: 12px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
th { background: #f6f6fb; color: #686d82; font-size: 11px; font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfaff; }
.chart { height: 240px; position: relative; margin-top: 20px; }
.chart-grid>div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chart-grid h3 { font-size: 12px; }
.peer-box { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fcfbff; }
.peer-box .panel-heading { margin-bottom: 18px; }
.help { margin-top: 12px; font-size: 11px; line-height: 1.8; }
.report-tools { padding: 16px 20px; }
.report-toolbar-label { display: grid; gap: 3px; margin-right: auto; }
.report-toolbar-label strong { color: #51496c; font-size: 13px; }
.report-toolbar-label span { color: var(--muted); font-size: 11px; }
.report-edit-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.report-edit-heading h3 { font-size: 14px; }
.report-edit-heading>span { color: var(--muted); font-size: 11px; }
.report-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.report-edit-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; align-items: start; padding: 24px; border: 1px solid #e4dff5; border-radius: var(--radius); background: linear-gradient(120deg,#fff 45%,#f6f3ff); }
.report-edit-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eee9fc; color: #6651ce; }
.report-edit-icon svg { width: 23px; height: 23px; }
.report-edit-copy h3 { font-size: 15px; margin-bottom: 5px; }
.report-edit-copy p { color: #62677d; font-size: 12px; }
.report-edit-copy>span { display: block; margin-top: 9px; color: #7b8094; font-size: 11px; }
.report-edit-trigger { grid-column: 2; justify-self: start; margin-top: 4px; }
.report-edit-trigger svg { width: 15px; height: 15px; }
.report-edit-trigger[aria-expanded=true] { background: var(--tint); border-color: #ccc1f4; color: var(--brand); }
.report-edit-card-cost { border-color: #dcece7; background: linear-gradient(120deg,#fff 45%,#f0f9f6); }
.report-edit-card-cost .report-edit-icon { color: #28856d; background: #e4f3ed; }
.report-editor { border-color: #ded6f5; scroll-margin-top: 24px; }
.report-editor h3:focus { outline: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--line); color: #7e8497; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#print-area { display: none; }

/* The on-screen report uses dashboard cards. The exported document keeps its print layout. */
@media screen {
  #report-preview .ax-report { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; font: inherit; color: var(--ink); }
  #report-preview .ax-report>header { margin-bottom: 18px; padding: 0 2px; border: 0; background: transparent; }
  #report-preview .ax-report>header :is(img,h1,.report-kicker) { display: none; }
  #report-preview .ax-report>header p { font-size: 12px; color: #6d7086; }
  #report-preview .ax-report .report-kicker { color: var(--brand); }
  #report-preview .ax-report>section { margin-block: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  #report-preview .ax-report h2 { padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid #eeedf5; font-size: 16px; color: #3a3653; }
  #report-preview .ax-report h3 { color: #625b79; margin-bottom: 12px; font-size: 12px; }
  #report-preview .ax-report .report-metrics { gap: 16px; }
  #report-preview .ax-report .report-metrics>div { padding: 22px; border: 1px solid #e5dff7; border-radius: 12px; background: #f1edfb; }
  #report-preview .ax-report .report-metrics>div:first-child { background: #fff; border-color: var(--line); }
  #report-preview .ax-report .report-metrics>div:last-child { background: #eef8f5; border-color: #dbede5; }
  #report-preview .ax-report .report-metrics strong { margin-top: 9px; color: #4e4381; font-size: clamp(20px,2.5vw,29px); font-variant-numeric: tabular-nums; }
  #report-preview .ax-report .report-metrics small { color: #6d7087; font-size: 11px; }
  #report-preview .ax-report dt, #report-preview .ax-report dd { padding: 13px 10px; font-size: 12px; line-height: 1.85; border-color: #eeedf5; }
  #report-preview .ax-report dt { color: #73768b; font-weight: 500; }
  #report-preview .ax-report dd { color: #353a50; }
  #report-preview .ax-report table { font-size: 11px; }
  #report-preview .ax-report :is(th,td) { padding: 13px 10px; border-color: var(--line); }
  #report-preview .ax-report th { background: #f7f6fc; color: #6e6a81; white-space: normal; }
  #report-preview .ax-report .marker { display: inline-block; padding: 6px 10px; margin-top: 8px; border-radius: 6px; color: #8b641e; background: #fff7e6; font-size: 11px; font-weight: 500; }
  #report-preview .ax-report .report-additional { padding: 26px; border: 1px solid #e4dcf7; border-radius: 14px; background: #f4f0fd; }
  #report-preview .ax-report .report-additional section { margin: 0; }
  #report-preview .ax-report a { color: var(--brand); }
  #report-preview .ax-report .report-note { font-size: 11px; line-height: 1.9; }
  #report-preview .report-overview { font-size: 14px; }
  #report-preview .report-overview h3 { font-size: 16px; color: var(--ink); }
  #report-preview .report-overview :is(dt,dd) { padding: 8px 6px; font-size: 13px; overflow-wrap: anywhere; }
  #report-preview .report-overview .report-workload-metrics :is(dt,dd) { padding: 2px 0; }
  #report-preview .report-overview .report-workload-metrics dd { font-size: 18px; font-weight: 700; color: #4e4381; }
  #report-preview .report-overview .report-note { font-size: 13px; }
}
@media (min-width:1600px) {
  .shell, .mast-inner { padding-inline: 48px; }
}
@media (max-width:1120px) {
  :root { --sidebar: 210px; }
  .ax-sidebar { padding-inline: 14px; }
  .shell, .mast-inner { padding-inline: 24px; }
  .workspace-breadcrumb>span:first-child { display: none; }
  .workspace-breadcrumb>span[aria-hidden] { display: none; }
  .mast-inner { gap: 8px; }
  .mast-actions { gap: 5px; }
  .mast-actions .button { padding-inline: 9px; font-size: 11px; }
  .result-summary { gap: 12px; }
  .result-summary>div { padding: 18px; }
}
@media (max-width:900px) {
  .ax-sidebar { position: sticky; top: 0; width: 100%; padding: 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0; margin-bottom: 12px; }
  .brand img { width: 120px; }
  .workspace-label, .nav-label, .sidebar-foot { display: none; }
  .step-nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; padding-bottom: 10px; }
  .step-nav a { min-height: 46px; padding: 8px; gap: 8px; }
  .step-nav a>span { font-size: 12px; }
  .step-nav small { display: none; }
  .step-nav b { width: 25px; height: 25px; font-size: 11px; }
  .mast { margin-left: 0; }
  .mast-inner { min-height: 62px; padding-block: 10px; }
  .shell { width: 100%; margin-left: 0; padding-top: 24px; }
  .hero { margin-bottom: 24px; }
  .step :is(a,button,input,select,summary,textarea) { scroll-margin-top: 130px; }
}
@media (max-width:620px) {
  .ax-sidebar { padding: 12px 14px 0; }
  .step-nav { gap: 4px; }
  .step-nav a { flex-direction: column; gap: 4px; min-height: 60px; padding: 6px 2px; }
  .step-nav a>span { font-size: 10px; }
  .step-nav b { width: 23px; height: 23px; border-radius: 7px; }
  .mast-inner { padding: 10px 16px; flex-wrap: wrap; }
  .workspace-context { flex-basis: 100%; }
  .selected-company { margin-top: 0; gap: 6px 9px; }
  #selected-company-name { max-width: 100%; font-size: 14px; }
  #selected-company-meta { flex-basis: 100%; }
  .workspace-breadcrumb { display: none; }
  .mast-actions { margin-left: 0; gap: 7px; flex-wrap: wrap; }
  .mast-actions .button { min-height: 36px; padding: 8px 10px; }
  .shell { padding: 22px 16px 0; }
  .hero { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .hero h1 { font-size: 25px; }
  .hero-actions { gap: 8px; }
  .section-head { gap: 12px; margin-bottom: 18px; }
  .section-head h2 { font-size: 19px; }
  .section-head p { font-size: 11px; }
  .panel { padding: 20px 18px; margin-bottom: 16px; }
  .panel-heading { gap: 10px; margin-bottom: 20px; padding-bottom: 16px; }
  .panel-heading h3, .panel h3 { font-size: 14px; }
  .fields, #readiness-fields { grid-template-columns: 1fr; gap: 20px; }
  .fields label.wide, .guided-field.wide { grid-column: 1/-1; }
  .fields input, .fields select, .fields textarea, .guided-field>select { font-size: 16px; }
  .card-grid, .chart-grid { grid-template-columns: 1fr; gap: 16px; }
  .chart { height: 205px; }
  .chart-grid>div { padding: 16px; }
  .result-summary { grid-template-columns: 1fr; gap: 12px; }
  .result-summary>div { position: relative; padding: 18px 20px; }
  .metric-value { font-size: 26px; margin-block: 6px; }
  .report-actions>.button { flex: 1; }
  .report-toolbar-label { flex-basis: 100%; margin-bottom: 6px; }
  .report-tools { padding: 16px; }
  .assessment-panel { padding: 20px 18px; }
  .assessment-head { align-items: flex-start; gap: 12px; }
  .assessment-head h3 { font-size: 16px; }
  .assessment-total strong { font-size: 29px; }
  .assessment-domains { grid-template-columns: 1fr; gap: 10px; }
  .assessment-completion { gap: 12px; }
  .assessment-next li { gap: 9px; padding: 12px; }
  .report-edit-heading { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 22px; }
  .report-edit-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
  .report-edit-card { padding: 20px 18px; }
  .report-editor .panel-heading { flex-wrap: wrap; }
  .footer { flex-direction: column; gap: 8px; padding-block: 20px; }
  #report-preview .ax-report>section, #report-preview .ax-report .report-additional { padding: 20px 16px; }
  #report-preview .ax-report .report-metrics { grid-template-columns: 1fr; gap: 12px; }
  #report-preview .ax-report dl { grid-template-columns: 1fr; }
  #report-preview .ax-report dt { padding: 14px 4px 2px; border-bottom: 0; font-size: 11px; }
  #report-preview .ax-report dd { padding: 0 4px 14px; }
  #report-preview .ax-report .report-peer-table table { min-width: 630px; }
  #report-preview .ax-report>header h1 { font-size: 22px; }
}
@media (prefers-reduced-motion:reduce) {
  .button { transition: none; }
}
@media print {
  .no-print { display: none !important; }
  #print-area { display: block !important; }
  body { background: #fff; }
}
