:root {
    color-scheme: light;
    --ink: #172126;
    --muted: #66727a;
    --line: #dbe3e7;
    --panel: #ffffff;
    --page: #f4f7f6;
    --accent: #1f7a6d;
    --accent-strong: #155b52;
    --accent-soft: #dcefeb;
    --warn: #a85512;
    --shadow: 0 18px 50px rgba(18, 38, 48, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--page);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(31, 122, 109, 0.16), transparent 34%),
        linear-gradient(135deg, #f4f7f6 0%, #e8f0ee 100%);
}

.login-shell {
    width: min(100%, 440px);
}

.login-card {
    padding: clamp(24px, 5vw, 34px);
    border: 1px solid rgba(219, 227, 231, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(18, 38, 48, 0.16);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-brand .brand-mark {
    color: #fff;
    background: #173d42;
}

.login-brand h1,
.login-copy h2 {
    margin: 0;
    letter-spacing: 0;
}

.login-brand h1 {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.1;
}

.login-copy {
    margin-bottom: 20px;
}

.login-copy h2 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.05;
}

.login-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
}

.login-form input:focus {
    border-color: var(--accent);
    outline: 3px solid var(--accent-soft);
}

.login-form .primary-button {
    min-height: 48px;
    margin-top: 4px;
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid #f0c78d;
    color: #9a3412;
    background: #fff7ed;
}

.login-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-field {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 7px 12px;
    align-items: end;
}

.captcha-field span {
    grid-column: 1 / -1;
}

.captcha-field strong {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid #b7d9d2;
    border-radius: 8px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: 18px;
}

.captcha-field input {
    text-align: center;
}

.app-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    min-height: 100vh;
}

.app-shell.records-only {
    display: block;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 246, 0.96)),
        radial-gradient(circle at 14% 0%, rgba(31, 122, 109, 0.12), transparent 28%);
}

.app-shell.records-only .sidebar,
.app-shell.records-only .topbar,
.app-shell.records-only #interviewForm {
    display: none;
}

.app-shell.records-only .workspace {
    padding: clamp(18px, 3vw, 44px);
}

.app-shell.records-only .record-manager {
    width: min(100%, 1680px);
    max-width: none;
}

.app-shell:not(.records-only) .record-manager {
    display: none;
}

.app-shell.questions-admin-mode {
    display: block;
}

.app-shell.questions-admin-mode .sidebar,
.app-shell.questions-admin-mode .record-manager,
.app-shell.questions-admin-mode #interviewForm {
    display: none;
}

.app-shell.questions-admin-mode .workspace {
    width: min(100%, 1480px);
    max-width: none;
    margin: 0 auto;
    padding: 28px clamp(12px, 1.5vw, 28px);
}

.questions-admin {
    display: none;
}

.app-shell.questions-admin-mode .questions-admin {
    display: block;
}

.app-shell.report-editor-mode {
    display: block;
}

.app-shell.report-editor-mode .sidebar,
.app-shell.report-editor-mode .topbar,
.app-shell.report-editor-mode .record-manager,
.app-shell.report-editor-mode .questions-admin,
.app-shell.report-editor-mode #interviewForm {
    display: none;
}

.app-shell.report-editor-mode .workspace {
    width: min(100%, 1280px);
    max-width: none;
    margin: 0 auto;
    padding: 28px clamp(12px, 1.8vw, 32px);
}

.report-editor-page {
    display: none;
}

.app-shell.report-editor-mode .report-editor-page {
    display: block;
}

.public-parent-mode .record-manager,
.public-parent-mode .results-panel,
.public-parent-mode #homeButton,
.public-parent-mode #questionsAdminButton,
.public-parent-mode #parentLinkButton,
.public-parent-mode .logout-button,
.public-parent-mode #clearDraft {
    display: none !important;
}

.public-parent-mode .topbar-actions {
    justify-content: flex-end;
}

.public-submit-success {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #b8dfd4;
    border-radius: 8px;
    color: #155b52;
    background: #eefaf6;
    font-weight: 800;
}

.questions-admin {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.questions-admin-head,
.questions-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.questions-admin-head {
    margin-bottom: 18px;
}

.questions-admin h2 {
    margin: 0;
    font-size: 24px;
}

.questions-admin-actions,
.questions-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.questions-admin-grid {
    display: grid;
    gap: 16px;
}

.questions-admin-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbfa;
}

.questions-section-fields {
    display: grid;
    grid-template-columns: 70px minmax(240px, 1fr) minmax(140px, 0.35fr);
    gap: 8px;
    width: 100%;
}

.questions-admin input,
.questions-admin textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--ink);
    background: #fff;
}

.questions-edit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    background: #fff;
}

.questions-edit-table th,
.questions-edit-table td {
    padding: 8px;
    border: 1px solid var(--line);
    vertical-align: top;
}

.questions-edit-table th {
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.questions-edit-table .question-order {
    width: 48px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.app-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483647;
    max-width: min(420px, calc(100vw - 36px));
    padding: 13px 16px;
    border: 1px solid rgba(31, 122, 109, 0.28);
    border-radius: 8px;
    color: #12332f;
    background: #f0fbf8;
    box-shadow: 0 18px 50px rgba(18, 38, 48, 0.18);
    font-weight: 850;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: auto;
    padding: 28px 22px;
    color: #f7fffd;
    background: #173d42;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.brand h1,
.topbar h2 {
    margin: 0;
    letter-spacing: 0;
}

.brand h1 {
    font-size: 22px;
    line-height: 1.12;
}

.eyebrow {
    margin: 0 0 5px;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.72;
}

.progress-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-ring {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#79d5c4 var(--progress, 0deg), rgba(255, 255, 255, 0.18) 0);
}

.progress-ring span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #173d42;
    font-size: 14px;
    font-weight: 800;
}

.progress-summary strong {
    display: block;
    font-size: 22px;
}

.progress-summary span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.steps {
    display: grid;
    gap: 8px;
}

.step-button {
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.step-button strong,
.step-button span {
    display: block;
}

.step-button strong {
    color: #fff;
    font-size: 14px;
}

.step-button span {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.74;
}

.step-button.active {
    border-color: rgba(121, 213, 196, 0.72);
    background: rgba(121, 213, 196, 0.16);
}

.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.sidebar-report-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-report-actions[hidden] {
    display: none;
}

.sidebar-report-actions > span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-menu-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.report-menu-button {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f7fffd;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.report-menu-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-menu-button:hover {
    border-color: rgba(121, 213, 196, 0.42);
    background: rgba(255, 255, 255, 0.13);
}

.report-menu-button.primary {
    border-color: rgba(121, 213, 196, 0.65);
    color: #12332f;
    background: #9fe4d8;
}

.report-menu-button.primary:hover {
    background: #b5eee5;
}

.workspace {
    min-width: 0;
    padding: 34px clamp(18px, 4vw, 58px);
}

.topbar,
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar {
    margin: 0 auto 22px;
    max-width: 1040px;
}

.topbar h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
}

.topbar .eyebrow {
    color: var(--accent);
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    color: #fff;
    background: var(--accent);
}

.primary-button:hover,
.primary-button:focus {
    background: var(--accent-strong);
}

.secondary-button {
    color: var(--accent-strong);
    border-color: var(--line);
    background: #fff;
}

.ghost-button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.text-button {
    color: var(--accent-strong);
    background: transparent;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

#interviewForm,
.empty-state,
.record-manager {
    max-width: 1040px;
    margin: 0 auto;
}

.record-manager {
    margin-bottom: 22px;
    padding: clamp(18px, 2.4vw, 34px);
    border: 1px solid rgba(219, 227, 231, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 70px rgba(18, 38, 48, 0.11);
    backdrop-filter: blur(18px);
}

.record-manager-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.record-manager-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.record-manager-head {
    margin-bottom: 24px;
}

.record-manager h2 {
    margin: 0 0 6px;
    letter-spacing: 0;
}

.record-manager h2 {
    color: #101820;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.record-manager-title .eyebrow {
    margin-bottom: 8px;
    color: var(--accent-strong);
}

.record-manager-title span {
    display: block;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.record-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid rgba(219, 227, 231, 0.82);
    border-radius: 8px;
    background: rgba(248, 250, 249, 0.78);
}

.record-table {
    width: 100% !important;
    min-width: 0;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.record-table th,
.record-table td {
    vertical-align: middle;
}

.record-table tbody tr.active {
    outline: 2px solid rgba(31, 122, 109, 0.2);
    outline-offset: -2px;
}

.record-table th strong,
.record-table th span,
.record-table small {
    display: block;
}

.record-table th span,
.record-table small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.record-table th strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.2;
}

.dt-container {
    width: 100%;
    color: var(--ink);
}

.dt-container .dt-layout-row:first-child {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 0 2px;
}

.dt-container .dt-layout-row:last-child {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    min-height: 44px;
    padding: 8px 2px 0;
}

.dt-container .dt-layout-table,
.dt-container .dt-layout-full,
.dt-container table.dataTable {
    width: 100% !important;
}

.dt-container .dt-layout-row {
    width: 100% !important;
}

.dt-container .dt-layout-cell {
    width: auto !important;
}

.dt-container .dt-layout-cell.dt-layout-end {
    margin-left: auto;
}

.dt-container .dt-layout-cell.dt-layout-full {
    width: 100% !important;
}

.dt-container .dt-search,
.dt-container .dt-length,
.dt-container .dt-info {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: normal;
}

.dt-container .dt-info {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    text-wrap: balance;
}

.dt-container .dt-paging {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    min-height: 40px;
    padding: 4px;
    border: 1px solid rgba(219, 227, 231, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(18, 38, 48, 0.06);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
    min-height: 42px;
    border: 1px solid rgba(219, 227, 231, 0.94);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dt-container .dt-search input:focus,
.dt-container .dt-length select:focus {
    border-color: var(--accent);
    outline: 3px solid var(--accent-soft);
}

.dt-container table.dataTable thead th {
    padding: 8px 14px;
    border: 0;
    color: #7b8790;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dt-container table.dataTable tbody th,
.dt-container table.dataTable tbody td {
    border-top: 1px solid rgba(219, 227, 231, 0.78);
    border-bottom: 1px solid rgba(219, 227, 231, 0.78);
    padding: 14px;
    background: #fff;
}

.dt-container table.dataTable tbody tr th:first-child,
.dt-container table.dataTable tbody tr td:first-child {
    border-left: 1px solid rgba(219, 227, 231, 0.78);
    border-radius: 8px 0 0 8px;
}

.dt-container table.dataTable tbody tr td:last-child {
    border-right: 1px solid rgba(219, 227, 231, 0.78);
    border-radius: 0 8px 8px 0;
}

.dt-container table.dataTable tbody tr:hover th,
.dt-container table.dataTable tbody tr:hover td {
    background: #fbfdfc;
}

.dt-container .dt-paging .dt-paging-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 0 !important;
    border-radius: 8px;
    color: var(--muted) !important;
    background: transparent !important;
    font-weight: 800;
    line-height: 1.2;
}

.dt-container .dt-paging .dt-paging-button:hover {
    color: var(--accent-strong) !important;
    background: #edf7f4 !important;
}

.dt-container .dt-paging .dt-paging-button.current,
.dt-container .dt-paging .dt-paging-button.current:hover {
    color: #fff !important;
    background: var(--accent) !important;
}

.dt-container .dt-paging .dt-paging-button.disabled,
.dt-container .dt-paging .dt-paging-button.disabled:hover {
    color: #a7b1b7 !important;
    background: transparent !important;
    opacity: 0.55;
}

.dt-container .dt-paging .ellipsis {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    color: var(--muted);
}

.status-pill {
    display: inline-grid;
    min-height: 28px;
    place-items: center;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 900;
}

.status-pill.draft {
    color: #7a4b10;
    background: #fff4db;
}

.status-pill.submitted {
    color: #0f5132;
    background: #e9f9ef;
}

.table-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef0;
}

.table-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.progress-cell {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    min-width: 220px;
}

.progress-cell strong {
    color: var(--accent-strong);
    font-size: 14px;
    font-weight: 900;
}

.progress-cell small {
    grid-column: 1 / -1;
    margin-top: 0;
    color: var(--muted);
    font-size: 12px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.record-action {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(219, 227, 231, 0.92);
    border-radius: 8px;
    color: var(--accent-strong);
    background: #f8faf9;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.record-action:hover {
    background: #eef7f4;
}

.record-action.primary {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

.record-action.primary:hover {
    background: var(--accent-strong);
}

.record-action.danger {
    border-color: transparent;
    color: #b42318;
    background: #fff5f5;
}

.record-action.danger:hover {
    background: #ffe7e7;
}

.record-empty {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

.section-panel {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.question-title {
    color: var(--ink);
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.field input,
.field select {
    min-height: 46px;
    padding: 0 12px;
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    outline: 3px solid var(--accent-soft);
}

.field-error input,
.field-error select {
    border-color: #c2410c;
    background: #fff7ed;
}

.field-error small {
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.question-list {
    display: grid;
    gap: 14px;
}

.question-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.question-card.question-error {
    border-color: #dc2626;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.question-error-text {
    display: block;
    margin-top: 10px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
}

.question-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.question-code {
    display: inline-grid;
    min-width: 52px;
    min-height: 32px;
    place-items: center;
    border-radius: 8px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 900;
}

.answer-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.answer-option {
    position: relative;
}

.answer-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.answer-option span {
    display: grid;
    min-height: 40px;
    place-items: center;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.answer-option input:checked + span {
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.answer-option input:focus + span {
    outline: 3px solid var(--accent-soft);
}

.locked-question {
    background: #f4f7f6;
    opacity: 0.78;
}

.locked-question .question-code {
    color: var(--muted);
    background: #e8eef0;
}

.locked-question .answer-option span {
    cursor: not-allowed;
}

.stop-rule-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #b7d9d2;
    border-radius: 8px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-weight: 800;
    line-height: 1.4;
}

.section-empty {
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
}

.form-footer {
    margin-top: 16px;
    padding: 14px 0 4px;
}

.results-panel {
    margin-top: 18px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.results-header h3,
.result-block h4 {
    margin: 0;
    letter-spacing: 0;
}

.results-header h3 {
    font-size: 24px;
}

.age-badge {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-strong);
    background: var(--accent-soft);
    font-weight: 800;
}

.result-warning {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f0c78d;
    border-radius: 8px;
    color: var(--warn);
    background: #fff7ed;
    font-weight: 700;
}

.result-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.result-overview div,
.scale-result,
.difference-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.result-overview div {
    padding: 14px;
}

.result-overview span,
.scale-result span,
.scale-result small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.result-overview strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

.result-chart-block {
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-head h4 {
    margin: 0;
    font-size: 16px;
}

.chart-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.score-legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.score-legend div {
    min-height: 50px;
    padding: 8px;
    border-radius: 8px;
    color: #fff;
}

.score-legend strong,
.score-legend span {
    display: block;
}

.score-legend strong {
    font-size: 11px;
    line-height: 1.15;
}

.score-legend span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 900;
    opacity: 0.92;
}

.score-bars {
    display: grid;
    gap: 10px;
}

.score-row {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.4fr) 48px;
    gap: 10px;
    align-items: center;
}

.score-row strong {
    font-size: 13px;
}

.score-row em {
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.score-track,
.raw-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef0;
}

.score-track span,
.raw-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.score-track .strong-result,
.score-legend .strong-result,
.score-legend .high-result {
    background: #16865f;
}

.score-track .average-result,
.score-legend .average-result {
    background: var(--accent);
}

.score-track .low-result,
.score-legend .low-result {
    background: #d97706;
}

.score-track .delay-result,
.score-legend .delay-result {
    background: #dc2626;
}

.raw-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.raw-chart-grid article {
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.raw-chart-grid strong,
.raw-chart-grid em {
    display: block;
}

.raw-chart-grid strong {
    margin-bottom: 8px;
    font-size: 13px;
}

.raw-chart-grid em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.raw-track span {
    background: linear-gradient(90deg, #1f7a6d, #36b37e);
}

.chartjs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.report-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.chartjs-grid article,
.report-chart-grid article {
    min-height: 320px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.report-chart-grid article {
    min-height: 400px;
    padding: 16px;
    border-color: #d9e2e6;
}

.chartjs-grid h5,
.report-chart-grid h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.report-chart-grid h3 {
    color: #1f4f49;
    font-size: 15px;
}

.chartjs-grid canvas,
.report-chart-grid canvas {
    display: block;
    width: 100% !important;
    height: 260px !important;
}

.report-chart-grid canvas {
    height: 340px !important;
}

.scale-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.scale-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 14px;
    border-left-width: 5px;
}

.scale-result h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.scale-result > strong {
    grid-row: span 2;
    align-self: start;
    min-width: 58px;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    text-align: right;
}

.scale-result em {
    font-style: normal;
    font-weight: 900;
}

.scale-result small {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.scale-result.strong-result {
    border-left-color: #16865f;
}

.scale-result.average-result {
    border-left-color: var(--accent);
}

.scale-result.low-result {
    border-left-color: #d97706;
}

.scale-result.delay-result {
    border-left-color: #dc2626;
}

.difference-summary {
    margin-top: 16px;
    padding: 14px;
}

.difference-summary h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.difference-summary ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.difference-summary li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
}

.difference-summary li strong,
.difference-summary li span {
    display: block;
}

.difference-summary li span {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.legend {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.legend {
    margin: 10px 0 0;
}

.report-actions {
    display: none;
}

.analysis-editor-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.analysis-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.analysis-editor-head h4 {
    margin: 0;
    font-size: 18px;
}

.analysis-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.analysis-toolbar button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-strong);
    background: #f7faf9;
    font-weight: 800;
    cursor: pointer;
}

.analysis-editor {
    min-height: 220px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
    line-height: 1.55;
    outline: none;
}

.analysis-editor:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.analysis-editor-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.report-editor-page {
    min-height: calc(100vh - 56px);
}

.report-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.report-editor-head h2 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
}

.report-editor-head p:last-child {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.report-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.report-editor-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font-weight: 850;
    box-shadow: var(--shadow);
}

.report-editor-status.success {
    border-color: rgba(22, 134, 95, 0.3);
    color: #0f5132;
    background: #ecfdf3;
}

.report-editor-status.error {
    border-color: rgba(220, 38, 38, 0.28);
    color: #842029;
    background: #fff5f5;
}

.report-editor-status.info {
    border-color: rgba(31, 122, 109, 0.28);
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.report-editor-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.report-quill-toolbar {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #f7faf9;
}

.report-quill-editor {
    min-height: min(68vh, 760px);
    font-size: 16px;
}

.report-quill-editor .ql-editor {
    min-height: min(68vh, 760px);
    padding: clamp(18px, 2vw, 30px);
    line-height: 1.65;
}

.report-quill-editor .ql-editor h2,
.report-quill-editor .ql-editor h3 {
    margin: 1em 0 0.45em;
    color: var(--ink);
}

.report-editor-fallback {
    min-height: min(68vh, 760px);
    padding: clamp(18px, 2vw, 30px);
    outline: none;
    line-height: 1.65;
}

.report-editor-fallback:focus {
    box-shadow: inset 0 0 0 3px var(--accent-soft);
}

.report-root:empty {
    display: none;
}

body.shared-report-mode {
    background: #e9eef0;
}

body.shared-report-mode .app-shell {
    display: none;
}

.shared-report-toolbar {
    position: sticky;
    z-index: 5;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 28px rgba(18, 38, 48, 0.08);
}

.shared-report-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-window {
    background: #e9eef0;
}

.pdf-render-host {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2147483647;
    overflow: visible;
    width: 794px;
    max-width: none;
    background: #fff;
    pointer-events: none;
    transform: none;
}

.pdf-render-host .dp3-report {
    margin: 0;
    box-shadow: none;
}

.dp3-report {
    width: 794px;
    max-width: 100%;
    min-height: 1123px;
    margin: 24px auto;
    padding: 42px 52px;
    color: #1b252b;
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 16px 50px rgba(18, 38, 48, 0.14);
}

.dp3-report h1,
.dp3-report h2,
.dp3-report h3,
.dp3-report p {
    margin-top: 0;
}

.report-tested-by {
    margin-bottom: 18px;
    text-align: right;
    font-size: 13px;
}

.report-header-block {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #1f7a6d;
    text-align: center;
}

.report-header-block p {
    margin-bottom: 6px;
    color: #1f7a6d;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-header-block h1 {
    margin-bottom: 6px;
    font-size: 28px;
    line-height: 1.15;
}

.report-subtitle {
    color: #4d5a61;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.report-section {
    margin-top: 20px;
}

.report-section h2 {
    margin-bottom: 9px;
    padding-bottom: 5px;
    border-bottom: 1px solid #d9e2e6;
    color: #1f4f49;
    font-size: 18px;
    line-height: 1.2;
}

.passport-section {
    width: min(100%, 620px);
    margin-inline: auto;
}

.passport-section h2 {
    text-align: center;
}

.passport-section dl {
    margin: 0;
}

.passport-section dl div {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    padding: 6px 0;
    border-bottom: 1px solid #e4eaed;
}

.passport-section dt {
    color: #4d5a61;
    font-weight: 700;
    text-align: right;
}

.passport-section dd {
    margin: 0;
    font-weight: 700;
}

.clinical-summary {
    padding: 14px 16px;
    border: 1px solid #cfe0dc;
    border-left: 4px solid #1f7a6d;
    background: #f6fbf9;
}

.clinical-summary h2 {
    border-bottom: 0;
    padding-bottom: 0;
}

.clinical-summary p:last-child {
    margin-bottom: 0;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}

.report-table th,
.report-table td {
    padding: 8px 9px;
    border: 1px solid #d9e2e6;
    text-align: left;
    vertical-align: top;
}

.report-table thead th {
    color: #173f3a;
    background: #edf5f3;
}

.report-table tbody th {
    width: 42%;
}

.report-levels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #d9e2e6;
    border-radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
}

.report-levels div {
    min-height: 54px;
    padding: 7px;
    border-right: 1px solid #d9e2e6;
    color: #fff;
    background: #f7faf9;
}

.report-levels div:last-child {
    border-right: 0;
}

.report-levels strong,
.report-levels span {
    display: block;
}

.report-levels span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.9);
}

.report-levels .delay-result {
    background: #dc2626;
}

.report-levels .low-result {
    background: #d97706;
}

.report-levels .average-result {
    background: #1f7a6d;
}

.report-levels .strong-result,
.report-levels .high-result {
    background: #16865f;
}

.report-bars {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.report-bar-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.report-bar-row strong {
    font-size: 12px;
}

.report-bar-row em {
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.report-bar-track {
    height: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef0;
}

.report-bar-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
}

.report-bar-track .strong-result {
    background: #16865f;
}

.report-bar-track .average-result {
    background: var(--accent);
}

.report-bar-track .low-result {
    background: #d97706;
}

.report-bar-track .delay-result {
    background: #dc2626;
}

.raw-report-bars .raw-track span {
    background: linear-gradient(90deg, #1f7a6d, #36b37e);
}

.report-scale-text {
    margin-top: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f4;
}

.report-scale-text h3 {
    margin-bottom: 7px;
    color: #1f4f49;
    font-size: 16px;
}

.report-diff-list,
.report-recommendations {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.report-diff-list li span {
    display: block;
    color: #66727a;
    font-size: 12px;
}

.report-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid #d9e2e6;
    font-size: 13px;
}

.report-footer span:last-child {
    grid-column: 1 / -1;
    text-align: right;
}

.page-break-inside-avoid {
    break-inside: avoid;
    page-break-inside: avoid;
}

.footer-status {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.empty-state {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;
        display: block;
        height: auto;
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-manager-head,
    .result-overview,
    .score-legend,
    .chartjs-grid,
    .report-chart-grid,
    .scale-results,
    .raw-chart-grid,
    .difference-summary ul,
    .results-header {
        grid-template-columns: 1fr;
    }

    .record-manager-head,
    .report-editor-head,
    .questions-admin-head,
    .questions-section-head,
    .results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .questions-section-fields {
        grid-template-columns: 1fr;
    }

    .report-editor-actions {
        width: 100%;
        justify-content: stretch;
    }

    .report-editor-actions button {
        flex: 1 1 180px;
    }

    .difference-summary li {
        grid-template-columns: 1fr;
    }

    .difference-summary li span {
        text-align: left;
    }

    .chart-head {
        flex-direction: column;
    }

    .score-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .score-row em {
        text-align: left;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .workspace {
        padding: 18px 10px 24px;
    }

    .app-shell.records-only .workspace {
        padding: 14px 8px 22px;
    }

    .sidebar {
        padding: 14px 12px;
    }

    .brand {
        gap: 10px;
        margin-bottom: 12px;
    }

    .brand-mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .brand h1 {
        font-size: 18px;
    }

    .progress-summary {
        padding: 10px;
        margin-bottom: 12px;
    }

    .progress-ring {
        width: 52px;
        height: 52px;
    }

    .progress-ring span {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .steps {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .step-button {
        flex: 0 0 190px;
        min-height: 50px;
        scroll-snap-align: start;
    }

    .sidebar-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .sidebar-report-actions {
        margin-top: 12px;
        padding-top: 12px;
    }

    .report-menu-row {
        grid-template-columns: repeat(4, minmax(44px, 56px));
    }

    .topbar {
        gap: 12px;
        margin-bottom: 14px;
    }

    .topbar h2 {
        font-size: 28px;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .topbar-actions .primary-button {
        grid-column: 1 / -1;
    }

    .logout-button {
        min-height: 42px;
    }

    .field-grid,
    .answer-row {
        grid-template-columns: 1fr;
    }

    .section-panel,
    .results-panel,
    .record-manager {
        padding: 14px;
        border-radius: 8px;
        box-shadow: 0 10px 28px rgba(18, 38, 48, 0.08);
    }

    .question-card {
        padding: 12px;
    }

    .question-head {
        grid-template-columns: 1fr;
    }

    .question-code {
        width: fit-content;
    }

    .answer-row {
        gap: 7px;
    }

    .answer-option span {
        min-height: 44px;
    }

    .record-manager-head {
        gap: 12px;
    }

    .record-manager-head .primary-button {
        width: 100%;
    }

    .record-table-wrap {
        margin: 0 -8px;
        padding: 0 8px 8px;
    }

    .record-table {
        min-width: 760px;
    }

    .dt-container .dt-layout-row {
        display: flex !important;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .dt-container .dt-layout-cell.dt-layout-end {
        margin-left: 0;
    }

    .dt-container .dt-layout-row:last-child {
        gap: 10px;
    }

    .dt-container .dt-search,
    .dt-container .dt-length,
    .dt-container .dt-info {
        text-align: left;
    }

    .dt-container .dt-paging {
        justify-content: flex-start;
        width: fit-content;
        max-width: 100%;
    }

    .dt-container .dt-search input {
        width: 100%;
        margin-left: 0;
    }

    .result-overview strong {
        font-size: 15px;
    }

    .score-legend div {
        min-height: 42px;
    }

    .chartjs-grid article,
    .report-chart-grid article {
        min-height: 280px;
    }

    .chartjs-grid canvas,
    .report-chart-grid canvas {
        height: 230px !important;
    }

    .topbar-actions,
    .form-footer {
        width: 100%;
    }

    .form-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .footer-status {
        grid-column: 1 / -1;
        order: -1;
    }

    .shared-report-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dp3-report {
        margin: 0;
        padding: 28px 18px;
        box-shadow: none;
    }

    .passport-section dl div,
    .report-bar-row {
        grid-template-columns: 1fr;
    }

    .passport-section dt {
        text-align: left;
    }

    .report-levels {
        grid-template-columns: 1fr;
    }
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {
    html,
    body {
        width: 210mm;
        min-height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.shared-report-mode,
    body.report-window {
        background: #fff !important;
    }

    .sidebar,
    .record-manager,
    .topbar-actions,
    .form-footer,
    .shared-report-toolbar {
        display: none;
    }

    .app-shell,
    .workspace {
        display: block;
        width: 210mm;
        margin: 0;
        padding: 0;
    }

    body.shared-report-mode .app-shell {
        display: none;
    }

    body.shared-report-mode .report-root {
        display: block;
        width: 210mm;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .section-panel {
        border: 0;
        box-shadow: none;
    }

    .dp3-report {
        width: 210mm !important;
        max-width: none !important;
        min-height: 297mm;
        margin: 0 !important;
        padding: 14mm 16mm !important;
        overflow: visible !important;
        box-shadow: none !important;
        font-size: 11pt;
        line-height: 1.45;
    }

    .dp3-report h1 {
        font-size: 22pt;
        line-height: 1.15;
    }

    .dp3-report h2 {
        font-size: 15pt;
    }

    .dp3-report h1,
    .dp3-report h2,
    .dp3-report h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .report-section,
    .report-scale-text {
        break-inside: auto;
        page-break-inside: auto;
    }

    .page-break-inside-avoid,
    .report-chart-grid article {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.pdf-render-host {
    width: 794px;
    max-width: none;
}

.pdf-render-host .dp3-report {
    width: 794px;
    max-width: none;
    min-height: 1123px;
    margin: 0;
    padding: 42px 52px;
    box-shadow: none;
}

.pdf-render-host .passport-section dl div {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.pdf-render-host .passport-section dt {
    text-align: right;
}

.pdf-render-host .report-levels {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pdf-render-host .report-bar-row {
    grid-template-columns: 180px minmax(0, 1fr) 42px;
}

.pdf-render-host .report-chart-grid {
    grid-template-columns: 1fr;
}

.pdf-render-host .report-chart-grid article {
    min-height: 400px;
}

.pdf-render-host .report-chart-grid canvas {
    height: 340px !important;
}
