:root {
  color-scheme: light;
  --brand-navy: #083044;
  --brand-gold: #d2b574;
  --brand-gold-soft: #f6f2e9;
  --brand-wash: #f6f2e9;
  --sand: #f6f2e9;
  --ink: #19313b;
  --muted: #5c6b70;
  --line: #d5dddf;
  --danger: #a12626;
  --shadow: 0 14px 40px rgb(8 48 68 / 9%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--sand); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
#start-button:disabled { opacity: 1; border-color: var(--brand-gold); background: var(--brand-gold-soft); color: var(--brand-navy); }
a { color: var(--brand-navy); }
:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 3px; }

.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; width: auto; height: auto; padding: .7rem 1rem; background: white; }
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "brand logo side"; align-items: center; gap: 1rem; padding: 1.25rem max(1.25rem, calc((100vw - 980px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand-copy { grid-area: brand; min-width: 0; text-align: left; }
.brand-logo { grid-area: logo; display: block; justify-self: center; width: 160px; height: auto; }
.brand-title { margin: 0; color: var(--brand-navy); font-size: 1.12rem; font-weight: 760; letter-spacing: .01em; }
.brand-by { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.test-badge { grid-area: side; justify-self: end; padding: .42rem .7rem; border: 1px solid var(--brand-gold); border-radius: 999px; background: var(--brand-gold-soft); color: var(--brand-navy); font-size: .78rem; font-weight: 650; white-space: nowrap; }
.admin-header .text-button { grid-area: side; justify-self: end; }
.shell { width: min(100% - 2rem, 760px); min-height: calc(100vh - 138px); margin: 2.2rem auto; }
.panel { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.welcome-panel { position: relative; overflow: hidden; }
.welcome-mark { position: relative; display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1rem; border: 1px solid var(--brand-gold); border-radius: 16px; background: var(--brand-navy); color: var(--brand-gold); font-size: 1.5rem; }
h1, h2, h3 { line-height: 1.22; }
h1 { max-width: 620px; margin: 0; color: var(--brand-navy); font-size: clamp(1.7rem, 4.5vw, 2.35rem); }
.lead { max-width: 620px; margin: 1rem 0 .65rem; font-size: 1.12rem; line-height: 1.6; }
.intro-note { color: var(--muted); line-height: 1.55; }
.privacy-gate { position: relative; margin-top: 1.6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--brand-wash); }
.privacy-gate p { margin: 0 0 .5rem; line-height: 1.55; }
.privacy-details { max-height: 45vh; overflow: auto; margin: .75rem 0; padding: .8rem; border-radius: 10px; background: white; line-height: 1.55; white-space: pre-line; }
.text-button { padding: .4rem 0; border: 0; background: none; color: var(--brand-navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.1rem; border-radius: 12px; font-weight: 700; }
.primary-button { border: 1px solid var(--brand-navy); background: var(--brand-navy); color: white; }
.primary-button:hover:not(:disabled) { border-color: #041f2d; background: #041f2d; }
.secondary-button { border: 1px solid #87969b; background: white; color: var(--brand-navy); }
.secondary-button:hover:not(:disabled) { border-color: var(--brand-gold); background: var(--brand-gold-soft); }
.privacy-gate .primary-button { width: 100%; margin-top: 1rem; }
.access-form { display: grid; gap: .65rem; margin-top: 1.3rem; }
.access-form label, .field-label { font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid #9ba9ad; border-radius: 10px; background: white; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.flow-panel { min-height: 390px; }
.progress-row { margin-bottom: 1.7rem; }
.progress-label { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
progress { display: block; width: 100%; height: .55rem; overflow: hidden; border: 0; border-radius: 999px; background: #e7e9e8; }
progress::-webkit-progress-bar { border-radius: 999px; background: #e7e9e8; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--brand-navy); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--brand-navy); }
.step-title { margin: 0 0 .6rem; color: var(--brand-navy); font-size: clamp(1.35rem, 4vw, 1.8rem); }
.step-example { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.55; }
.field-help { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.choice-list { display: grid; gap: .7rem; margin: 1rem 0; }
.choice-card { position: relative; display: flex; align-items: flex-start; gap: .8rem; width: 100%; padding: .9rem 1rem; border: 1px solid #aab5b8; border-radius: 12px; background: white; color: var(--ink); text-align: left; line-height: 1.45; }
.choice-card:hover { border-color: var(--brand-navy); background: #fbfaf7; }
.choice-card[aria-pressed="true"], .choice-card.selected { border: 2px solid var(--brand-navy); background: var(--brand-wash); }
.choice-card input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: .1rem .1rem 0 0; accent-color: var(--brand-navy); }
.choice-copy { display: block; }
.choice-examples { display: block; margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.sub-question { margin: 1.4rem 0 .6rem; font-size: 1.12rem; }
.neutral-note { margin: .8rem 0; padding: .75rem; border-left: 4px solid var(--brand-gold); border-radius: 5px; background: var(--brand-gold-soft); color: var(--ink); line-height: 1.5; }
.error-message { margin: 1rem 0 0; color: var(--danger); font-weight: 650; line-height: 1.45; }
.flow-actions { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #e3ece9; }
.flow-actions .primary-button { min-width: 145px; margin-left: auto; }
.report-content { overflow-wrap: break-word; word-break: normal; hyphens: none; line-height: 1.55; }
.report-heading { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.report-logo { display: none; flex: 0 0 150px; width: 150px; height: auto; }
.report-heading-copy { min-width: 0; }
.report-content h1 { margin: 0 0 .4rem; font-size: clamp(1.45rem, 3.5vw, 1.85rem); }
.report-subtitle { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.report-content h2 { margin: 1.5rem 0 .65rem; color: var(--brand-navy); font-size: 1.2rem; }
.report-content h3 { margin: 1rem 0 .5rem; color: var(--brand-navy); font-size: 1.05rem; }
.report-warning { margin: .8rem 0 1.1rem; padding: .8rem 1rem; border-left: 4px solid var(--brand-gold); border-radius: 8px; background: var(--brand-wash); }
.report-warning p { margin: 0; }
.report-warning p + p { margin-top: .25rem; }
.report-warning-title { color: var(--brand-navy); font-weight: 750; }
.report-content .report-list { margin: .45rem 0 .9rem; padding-left: 1.4rem; }
.report-content .report-list li { margin: .25rem 0; }
.report-content .report-why { margin: .25rem 0 .8rem; }
.report-content .report-why strong { display: block; color: var(--brand-navy); font-size: .8rem; letter-spacing: .035em; text-transform: uppercase; }
.report-content .report-why span { display: block; }
.report-strengths-label { margin: .75rem 0 .3rem; color: var(--brand-navy); font-size: .8rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.report-page-break { margin: 1.8rem 0 .5rem; border: 0; border-top: 2px dashed var(--line); }
.report-theme-block { margin: .85rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; break-inside: avoid; page-break-inside: avoid; }
.report-theme-block h3 { margin: 0 0 .55rem; }
.report-theme-block .report-strengths-list { margin-top: .35rem; }
.report-cta { margin: 1.25rem 0 0; padding: 1.35rem 1.25rem; border-radius: 16px; background: var(--brand-navy); color: white; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report-cta .report-cta-title { margin: 0 0 .4rem; color: white; font-size: 1.45rem; }
.report-cta-copy { margin: .45rem 0; line-height: 1.5; }
.report-cta-action { margin: .85rem 0 .5rem; }
.report-cta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.5rem; border: 0; border-radius: 999px; background: var(--brand-gold); color: var(--brand-navy); font-weight: 750; text-decoration: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report-cta-button:hover { background: #dfc98f; }
.report-cta .report-cta-copy:last-of-type { margin-top: .35rem; font-size: .85rem; opacity: .9; }
.report-footer-rule { margin: 1rem 0 .5rem; border: 0; border-top: 1px solid var(--brand-gold); }
.report-footer-copy { margin: .25rem 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.report-content hr:not(.report-page-break):not(.report-footer-rule) { border: 0; border-top: 1px solid var(--line); }
.report-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.report-email-note { margin: .65rem 0 1rem; color: var(--brand-navy); font-size: .92rem; }
.report-cta-button:disabled { cursor: wait; opacity: .72; }
.admin-panel { width: min(100%, 1020px); }
.admin-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.admin-tools { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 1.5rem; }
.records-list { display: grid; gap: .8rem; }
.record-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.record-card h2 { margin: 0 0 .4rem; color: var(--brand-navy); font-size: 1.1rem; }
.record-card p { overflow-wrap: anywhere; }
.record-card .secondary-button { margin-top: .4rem; }
.alert-badge { color: #7b3e00; font-weight: 700; }
.admin-report { margin-top: 2rem; border-top: 2px solid var(--line); padding-top: 1rem; }
.admin-report h2 { margin: 0; color: var(--brand-navy); }
.admin-dashboard { margin-top: 1.2rem; }
.admin-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-dashboard-heading h2 { margin: 0; color: var(--brand-navy); font-size: 1.4rem; }
.period-filter { display: flex; gap: .4rem; flex-wrap: wrap; }
.period-filter button { min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: .85rem; }
.period-filter button[aria-pressed="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: white; }
.dashboard-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.dashboard-tile, .dashboard-card { border: 1px solid var(--line); border-radius: 14px; background: white; }
.dashboard-tile { padding: 1rem; }
.dashboard-tile.key { border-top: 4px solid var(--brand-gold); }
.dashboard-label { margin: 0; color: var(--muted); font-size: .85rem; }
.dashboard-value { margin: .35rem 0 .2rem; color: var(--brand-navy); font-size: 2.25rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dashboard-sub { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.dashboard-card { margin-top: 1rem; padding: 1.1rem; }
.dashboard-card h3, .dashboard-card h2 { margin: 0 0 .25rem; color: var(--brand-navy); font-size: 1.1rem; }
.dashboard-hint { margin: 0 0 .85rem; color: var(--muted); font-size: .85rem; }
.dashboard-funnel { display: grid; gap: .65rem; }
.dashboard-funnel-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 86px; align-items: center; gap: .7rem; padding: .25rem 0; }
.dashboard-funnel-row:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 3px; }
.dashboard-funnel-name { font-size: .9rem; }
.dashboard-funnel-track { position: relative; min-width: 0; }
.dashboard-funnel-track progress { display: block; width: 100%; height: 1.5rem; border-radius: 0 5px 5px 0; }
.dashboard-funnel-track progress::-webkit-progress-bar { border-radius: 0 5px 5px 0; background: var(--brand-wash); }
.dashboard-funnel-track progress::-webkit-progress-value { border-radius: 0 5px 5px 0; background: var(--brand-navy); }
.dashboard-funnel-track progress::-moz-progress-bar { border-radius: 0 5px 5px 0; background: var(--brand-navy); }
.dashboard-funnel-tip { position: absolute; z-index: 1; top: -2rem; left: .5rem; padding: .25rem .5rem; border-radius: 6px; background: var(--ink); color: white; font-size: .76rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.dashboard-funnel-row:hover .dashboard-funnel-tip, .dashboard-funnel-row:focus .dashboard-funnel-tip { opacity: 1; }
.dashboard-funnel-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-funnel-value small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
.table-scroll { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dashboard-table th, .dashboard-table td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.dashboard-table th { color: var(--muted); font-weight: 650; }
.log-fingerprint { max-width: 180px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.dashboard-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.admin-downloads { margin-top: 1rem; }
.admin-downloads .admin-tools { margin-bottom: 0; }
.complete-panel { min-width: 0; text-align: center; }
.complete-panel h1 { margin-inline: auto; }
.recontact-finish-message { color: var(--brand-navy); font-weight: 650; line-height: 1.5; }
.feedback-box { width: 100%; min-width: 0; max-width: 100%; margin-top: 1.8rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 16px; background: var(--brand-wash); text-align: left; }
.feedback-box h2 { margin: 0 0 .45rem; color: var(--brand-navy); font-size: clamp(1.25rem, 3vw, 1.6rem); }
.feedback-box > p { line-height: 1.5; }
.feedback-status { padding: .7rem .85rem; border-left: 4px solid var(--brand-gold); border-radius: 6px; background: white; line-height: 1.5; }
.feedback-form-container { width: 100%; min-width: 0; max-width: 100%; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.feedback-intro { line-height: 1.6; }
.feedback-form { display: grid; width: 100%; min-width: 0; max-width: 100%; gap: .85rem; }
.feedback-question { width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feedback-question-title { margin: 0 0 .6rem; padding: 0; color: var(--brand-navy); font-weight: 720; line-height: 1.45; overflow-wrap: anywhere; }
.feedback-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin-top: .55rem; }
.feedback-choice { display: inline-flex; align-items: flex-start; min-width: 0; min-height: 40px; gap: .5rem; line-height: 1.4; }
.feedback-choice span { min-width: 0; overflow-wrap: anywhere; }
.feedback-choice input, .feedback-rating-choice input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--brand-navy); }
.feedback-conditional { margin-top: .8rem; padding: .8rem; border-radius: 10px; background: var(--brand-gold-soft); }
.feedback-conditional > p { margin: 0 0 .6rem; font-weight: 650; }
.feedback-diagnostic-questions { display: grid; gap: .4rem; max-height: 360px; overflow: auto; margin: .6rem 0 .85rem; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; background: white; }
.feedback-question-choice span { overflow-wrap: anywhere; }
.feedback-text-field { display: grid; gap: .45rem; margin-top: .7rem; font-weight: 650; line-height: 1.4; }
.feedback-text-field textarea { min-height: 86px; font-weight: 400; }
.feedback-rating-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin-top: .7rem; }
.feedback-rating-choice { display: grid; justify-items: center; align-items: center; gap: .2rem; min-height: 48px; padding: .35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--brand-wash); color: var(--brand-navy); font-weight: 700; }
.feedback-rating-choice input { order: 1; margin: 0; }
.feedback-privacy-note { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.feedback-form-status { margin: .35rem 0 0; padding: .7rem .85rem; border-left: 4px solid var(--brand-gold); border-radius: 6px; background: white; line-height: 1.5; }
.feedback-form-status.is-error { border-left-color: var(--danger); }
.feedback-form > .primary-button { justify-self: start; }
.feedback-choice-summary { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.feedback-choice-summary h4, .feedback-ratings-summary h4 { margin: .25rem 0 .4rem; color: var(--brand-navy); line-height: 1.4; }
.feedback-choice-summary ul, .feedback-ratings-summary ul { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: .3rem 0; padding-left: 1.2rem; }
.feedback-ratings-summary { margin-top: 1rem; }
.feedback-admin-records { margin-top: 1.5rem; }
.feedback-admin-card { margin: .8rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feedback-admin-card h4 { margin: 0; color: var(--brand-navy); font-size: 1.1rem; }
.feedback-answer-list { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.5fr); gap: .45rem 1rem; margin: .75rem 0 0; }
.feedback-answer-list dt { font-weight: 700; line-height: 1.4; }
.feedback-answer-list dd { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.complete-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1rem; border: 1px solid var(--brand-gold); border-radius: 50%; background: var(--brand-navy); color: var(--brand-gold); font-size: 1.6rem; font-weight: 800; }
.site-footer { display: flex; justify-content: center; gap: .55rem; padding: 1rem; color: var(--muted); font-size: .78rem; }
.site-footer span + span::before { padding-right: .55rem; content: "·"; }
.shell.admin-shell { width: min(100% - 2rem, 1100px); }
.admin-view-tabs { display: flex; gap: .5rem; overflow-x: auto; margin: 1.2rem 0 .8rem; padding: .25rem 0 .5rem; border-bottom: 1px solid var(--line); }
.admin-view-tabs button { flex: 0 0 auto; min-height: 42px; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--brand-navy); font-weight: 650; }
.admin-view-tabs button[aria-selected="true"] { border-color: var(--brand-navy); background: var(--brand-navy); color: white; }
.admin-view { min-width: 0; }
.sector-page-title { margin: .4rem 0 1rem; color: var(--brand-navy); font-size: 1.5rem; }
.sector-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.sector-filters label { display: flex; flex-direction: column; gap: .25rem; min-width: 150px; color: var(--muted); font-size: .85rem; }
.sector-filters select { min-height: 42px; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.sector-count { margin: 0 0 .15rem auto; font-size: .95rem; }
.sector-count strong { color: var(--brand-navy); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.sector-masked { margin: 1rem 0 0; padding: 1rem; border: 1px dashed var(--brand-gold); border-radius: 10px; background: var(--brand-gold-soft); line-height: 1.55; }
.sector-card { margin-top: 1rem; }
.sector-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin: .75rem 0; font-size: .85rem; }
.sector-legend span { display: inline-flex; align-items: center; }
.sector-legend i { width: 12px; height: 12px; margin-right: .4rem; border-radius: 3px; }
.sector-red { background: #c0392b; }
.sector-orange { background: #d9822b; }
.sector-green { background: #3f8f4f; }
.sector-themes { display: grid; gap: .8rem; }
.sector-theme-row { display: grid; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); align-items: center; gap: .8rem; }
.sector-theme-name { font-size: .9rem; }
.sector-stack { display: flex; width: 100%; height: 28px; gap: 2px; overflow: visible; }
.sector-segment { display: flex; align-items: center; justify-content: center; min-width: 0; color: white; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sector-segment:first-child { border-radius: 4px 0 0 4px; }
.sector-segment:last-child { border-radius: 0 4px 4px 0; }
.sector-segment:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 2px; z-index: 1; }
.sector-level-percentages { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-top: .3rem; font-size: .76rem; }
.sector-level-key { color: var(--muted); }
.sector-theme-masked { color: var(--muted); font-size: .85rem; }
.sector-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sector-ranked-list { margin: .5rem 0 0; padding-left: 1.35rem; }
.sector-ranked-list li { margin: .45rem 0; padding-left: .1rem; }
.sector-ranked-list span { display: block; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
#sector-practice-details details { padding: .65rem 0; border-top: 1px solid var(--line); }
#sector-practice-details summary { color: var(--brand-navy); font-weight: 700; }
.sector-practice-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 160px) 48px; align-items: center; gap: .65rem; margin: .55rem 0; font-size: .85rem; }
.sector-practice-track { height: 12px; overflow: hidden; border-radius: 4px; background: #eef1f2; }
.sector-practice-bar { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--brand-navy); }
.sector-practice-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.sector-csv { margin-top: 1rem; }

/* Landing page validated for the local tester demonstration. */
#landing-page { font-size: 17px; line-height: 1.55; }
.landing-header { background: #fff; border-bottom: 1px solid var(--line); }
.landing-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2rem, 1000px); margin: 0 auto; padding: .75rem 0; }
.landing-brand { display: flex; align-items: center; gap: .75rem; color: var(--brand-navy); text-decoration: none; }
.landing-brand img { display: block; width: 120px; height: auto; }
.landing-brand strong { display: block; color: var(--brand-navy); font-size: 1.25rem; }
.landing-brand small { display: block; color: var(--muted); font-size: .8125rem; }
.landing-badge { padding: .25rem .75rem; border: 1px solid var(--brand-gold); border-radius: 999px; background: var(--sand); color: var(--brand-navy); font-size: .8125rem; white-space: nowrap; }
.logout-button { flex: 0 0 auto; margin: 0; font-size: .82rem; }
.landing-hero { background: var(--brand-navy); color: #fff; }
.landing-hero-inner { width: min(100%, 1000px); margin: 0 auto; padding: 4rem 1rem 4.5rem; text-align: center; }
.landing-hero h1 { max-width: none; margin: 0 0 .875rem; color: #fff; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.01em; line-height: 1.1; }
.landing-hero h1 em { color: var(--brand-gold); font-style: normal; }
.landing-hero p { max-width: 640px; margin: 0 auto 1.75rem; color: #fff; font-size: 1.1875rem; line-height: 1.55; opacity: .92; }
.landing-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .85rem 2rem; border-radius: 999px; background: var(--brand-gold); color: var(--brand-navy); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.landing-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.landing-hero small { display: block; margin-top: .875rem; color: #fff; font-size: .875rem; opacity: .75; }
.landing-block { width: min(100%, 1000px); margin: 0 auto; padding: 3rem 1rem .5rem; }
.landing-block > h2 { margin: 0 0 1.5rem; color: var(--brand-navy); font-size: 1.625rem; text-align: center; }
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.landing-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.landing-icon { font-size: 1.75rem; line-height: 1; }
.landing-card h3 { margin: .5rem 0 .375rem; color: var(--brand-navy); font-size: 1.125rem; }
.landing-card p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.landing-step { display: flex; align-items: flex-start; gap: .75rem; }
.landing-number { display: flex; flex: 0 0 36px; align-items: center; justify-content: center; height: 36px; border-radius: 50%; background: var(--brand-gold); color: var(--brand-navy); font-weight: 700; }
.landing-step h3 { margin-top: 0; }
.landing-warning { max-width: 760px; margin: 2.5rem auto 0; padding: .875rem 1rem; border-left: 4px solid var(--brand-gold); border-radius: 10px; background: #fff; font-size: .9375rem; line-height: 1.55; }
.landing-again { padding: 2.5rem 1rem 3.5rem; text-align: center; }
.landing-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .875rem; }
.landing-footer-inner { display: flex; justify-content: center; width: min(100%, 1000px); margin: 0 auto; padding: 1rem; text-align: center; }
.screen-panel { width: min(calc(100% - 2rem), 760px); margin: 2rem auto; }
.login-panel h1, .welcome-panel h1 { margin-bottom: .8rem; }
.login-back { margin-top: 1rem; }
.privacy-gate { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1rem; }
.privacy-gate p { grid-column: 1 / -1; }
.privacy-gate .primary-button { grid-column: 1 / -1; }
.privacy-dialog { width: min(760px, calc(100% - 2rem)); max-height: min(85vh, 800px); padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.privacy-dialog::backdrop { background: rgb(8 48 68 / 58%); }
.privacy-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.privacy-dialog-heading h2 { margin: .2rem 0 .8rem; color: var(--brand-navy); font-size: 1.35rem; text-align: left; }
.privacy-dialog .privacy-details { max-height: calc(85vh - 110px); margin: .5rem 0 0; padding: .8rem; border-radius: 10px; background: var(--sand); line-height: 1.55; white-space: pre-line; overflow: auto; }
[hidden] { display: none !important; }

@media (max-width: 1024px) {
  /* Garder les légendes multilignes dans le cadre, hors de sa bordure. */
  .feedback-question legend { float: left; width: 100%; padding: 0; }
  .feedback-question legend + * { clear: both; }
}

@media (max-width: 760px) {
  .landing-grid { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 2rem; }
  .landing-brand img { width: 90px; }
}

@media (max-width: 540px) {
  .site-header { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "logo logo" "brand side"; gap: .5rem; padding: 1rem 1.25rem; }
  .brand-logo { width: 120px; }
  .test-badge, .admin-header .text-button { margin: .25rem 0 0; }
  .shell { width: min(100% - 1rem, 760px); margin: .8rem auto; }
  .panel { padding: 1.1rem; border-radius: 16px; }
  .brand-title { font-size: 1rem; }
  .brand-by { font-size: .75rem; }
  .test-badge { padding: .36rem .54rem; font-size: .7rem; }
  .flow-actions { position: sticky; bottom: 0; margin-inline: -1.1rem; padding: .8rem 1.1rem max(.8rem, env(safe-area-inset-bottom)); background: rgb(255 255 255 / 96%); }
  .flow-actions .primary-button { min-width: 130px; }
  .report-heading { align-items: flex-start; gap: .75rem; }
  .report-logo { flex-basis: 112px; width: 112px; }
  .report-content h1 { font-size: 1.45rem; }
  .report-cta { padding: 1.15rem .9rem; }
  .report-cta-button { width: 100%; }
  .dashboard-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tile { padding: .8rem; }
  .dashboard-value { font-size: 1.8rem; }
  .dashboard-funnel-row { grid-template-columns: minmax(100px, 1fr) minmax(75px, 1.1fr) 58px; gap: .45rem; }
  .dashboard-funnel-name { font-size: .8rem; }
  .dashboard-funnel-value { font-size: .82rem; }
  .period-filter button { padding-inline: .6rem; font-size: .75rem; }
  .shell.admin-shell { width: min(100% - 1rem, 1100px); }
  .feedback-answer-list { grid-template-columns: 1fr; gap: .18rem; }
  .feedback-answer-list dd { margin-bottom: .6rem; }
  .feedback-options { grid-template-columns: 1fr; }
  .admin-view-tabs { gap: .35rem; }
  .admin-view-tabs button { padding-inline: .65rem; font-size: .82rem; }
  .sector-filters { align-items: stretch; }
  .sector-filters label { flex: 1 1 100%; min-width: 0; }
  .sector-count { margin: .25rem 0 0; }
  .sector-two-columns { grid-template-columns: 1fr; gap: 0; }
  .sector-theme-row { grid-template-columns: 1fr; gap: .25rem; }
  .sector-practice-row { grid-template-columns: minmax(0, 1fr) 72px 42px; gap: .4rem; }
  .landing-bar { width: calc(100% - 2rem); align-items: flex-start; flex-wrap: wrap; padding: .75rem 0; }
  .landing-brand { gap: .5rem; }
  .landing-brand img { width: 90px; }
  .landing-brand strong { font-size: 1.05rem; }
  .landing-brand small { font-size: .75rem; }
  .landing-badge { margin-left: auto; padding: .25rem .55rem; font-size: .7rem; }
  .logout-button { width: 100%; text-align: right; }
  .landing-hero-inner { padding: 3.5rem 1rem 3.75rem; }
  .landing-hero h1 { font-size: 2rem; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-block { padding-top: 2.5rem; }
  .landing-again { padding: 2rem 1rem 2.75rem; }
  .landing-footer-inner { flex-direction: column; }
  .screen-panel { width: calc(100% - 1rem); margin: .8rem auto; }
  .privacy-gate { grid-template-columns: 1fr; }
  .privacy-dialog { padding: 1rem; }
  .privacy-dialog-heading { flex-direction: column-reverse; }
}

@media print {
  body { background: white; }
  .site-header, .site-footer, .progress-row, .flow-actions, .report-actions, .report-cta-action .report-cta-button, .admin-login, .admin-title-row, .admin-tools, #admin-status, .records-list { display: none !important; }
  .admin-report[hidden] { display: none !important; }
  .shell { width: 100%; min-height: auto; margin: 0; }
  .panel { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .report-content { overflow: visible; font-size: 10pt; }
  .report-heading { gap: 12pt; margin-bottom: 10pt; }
  .report-logo { display: block; flex-basis: 150px; width: 150px; }
  .report-content h1 { font-size: 19pt; }
  .report-warning { border-left-color: var(--brand-gold); background: var(--brand-wash); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-cta { background: var(--brand-navy); color: white; }
  .report-theme-block { break-inside: avoid; page-break-inside: avoid; }
  .report-page-break { break-after: page; page-break-after: always; margin: 0; border: 0; }
  .report-footer-copy { font-size: 8pt; }
}
