:root {
    --bg: #f5f7f4;
    --surface: #ffffff;
    --surface-2: #eef4ef;
    --text: #1f2a24;
    --muted: #69756d;
    --line: #dce4dd;
    --primary: #126b4f;
    --primary-strong: #0d563f;
    --accent: #c7831f;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #137a3f;
    --success-bg: #ecfdf3;
    --warning: #9a6700;
    --warning-bg: #fff8db;
    --shadow: 0 18px 50px rgba(31, 42, 36, 0.08);
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-wrap {
    width: min(100%, 460px);
}

.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.login-panel.wide {
    width: min(92vw, 900px);
}

.login-brand,
.brand,
.account-box,
.panel-head,
.actions,
.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand {
    margin-bottom: 32px;
}

.login-brand strong,
.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.login-brand span,
.brand span,
.account-box span,
.subtext {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
}

h1,
h2 {
    margin: 0;
    line-height: 1.15;
}

h1 {
    font-size: clamp(26px, 4vw, 38px);
}

h2 {
    font-size: 19px;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 650;
}

.login-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(31, 42, 36, 0.45);
    padding: 24px;
    z-index: 999;
}

.login-modal-dialog {
    width: min(820px, 95vw);
    min-height: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 42px;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(180, 35, 24, 0.14);
    color: var(--danger);
    font-size: 44px;
    font-weight: 800;
    border: 1px solid rgba(180, 35, 24, 0.28);
}

.login-modal-dialog h2 {
    margin: 0 0 20px;
    font-size: 32px;
}

.login-modal-dialog p {
    margin: 0 0 30px;
    color: var(--text);
    line-height: 1.85;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.modal-submit-button {
    min-width: 240px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #faf9f5;
    font-weight: 600;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus {
    outline: 3px solid rgba(18, 107, 79, 0.16);
    border-color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 10px 14px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

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

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

.button.ghost {
    border-color: var(--line);
    background: #ffffff;
}

.button.danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #ffcdc8;
}

.button.small {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.alert {
    margin: 16px 0;
    border-radius: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    line-height: 1.5;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #b8eac8;
}

.alert.danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #ffcdc8;
}

.alert.warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #f2d177;
}

.validation-note {
    padding: 16px 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.validation-note strong {
    display: block;
    margin-bottom: 8px;
}

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

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    padding: 22px;
}

.brand {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.nav {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.nav a {
    padding: 11px 12px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.nav a.active,
.nav a:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.main {
    min-width: 0;
    padding: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-box {
    justify-content: flex-end;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    min-width: 280px;
}

.account-box > div {
    min-width: 0;
}

.account-box strong {
    display: block;
}

.panel,
.stat,
.role-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.panel-head {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    padding: 18px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.1;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.role-card {
    padding: 14px;
}

.role-card strong {
    display: block;
    margin-bottom: 8px;
}

.role-card span {
    color: var(--muted);
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.rule-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rule-list span,
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 750;
}

.rule-list span {
    background: var(--surface-2);
    color: var(--primary);
}

.badge.ok {
    background: var(--success-bg);
    color: var(--success);
}

.badge.off {
    background: #f2f4f7;
    color: #667085;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td strong {
    display: block;
}

.inline-form {
    align-items: stretch;
}

.inline-form input {
    min-height: 36px;
    min-width: 170px;
}

.actions {
    align-items: stretch;
}

code {
    display: inline-block;
    border-radius: 5px;
    padding: 4px 6px;
    background: #f2f4f0;
    color: #5a3b0f;
    font-size: 13px;
}

@media (max-width: 920px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .topbar,
    .panel-head {
        flex-direction: column;
    }

    .account-box {
        width: 100%;
        justify-content: space-between;
        min-width: 0;
    }

    .stats-grid,
    .grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .login-panel,
    .panel,
    .main,
    .sidebar {
        padding: 16px;
    }

    .actions,
    .inline-form {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    resize: vertical;
}

textarea:focus {
    outline: 3px solid rgba(18, 107, 79, 0.16);
    border-color: var(--primary);
}

.intro-panel .panel-head.compact,
.panel-head.compact {
    margin-bottom: 0;
}

.report-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.report-picker {
    position: sticky;
    top: 18px;
}

.report-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.report-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    background: #ffffff;
}

.report-option:hover,
.report-option.active {
    border-color: rgba(18, 107, 79, 0.55);
    background: var(--surface-2);
}

.report-option strong,
.report-option small {
    display: block;
}

.report-option small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.check-square {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid #8da096;
    border-radius: 3px;
    background: #ffffff;
}

.report-option.active .check-square {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px #ffffff;
}

.document-panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

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

.doc-list {
    display: grid;
    gap: 10px;
}

.doc-check,
.doc-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-weight: 400;
}

.doc-check input {
    width: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    accent-color: var(--primary);
}

.doc-check strong,
.doc-check small,
.doc-note strong,
.doc-note small {
    display: block;
}

.doc-check small,
.doc-note small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.doc-note {
    grid-template-columns: minmax(0, 1fr);
    background: #fbfcfb;
}

.readiness-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.button.disabled,
.button.disabled:hover {
    cursor: not-allowed;
    background: #d8ded9;
    color: #7b857e;
}

.warning-badge {
    background: var(--warning-bg);
    color: var(--warning);
}

.empty-state {
    min-height: 260px;
    display: grid;
    align-content: center;
    justify-items: start;
}

.workflow-panel {
    width: 100%;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.step-list div {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.step-list span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.step-list span {
    grid-row: 1 / span 2;
}

.step-list strong,
.step-list small {
    display: block;
    grid-column: 2;
    min-width: 0;
}

.step-list strong {
    line-height: 1.3;
}

.step-list small {
    margin-top: 0;
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-picker {
        position: static;
    }

    .readiness-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .step-list {
        grid-template-columns: 1fr;
    }

    .report-option,
    .doc-check,
    .doc-note {
        border-radius: 6px;
        padding: 11px;
    }
}

.badge-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.status-draft {
    background: #f2f4f7;
    color: #475467;
}

.status-submitted {
    background: #fff8db;
    color: #9a6700;
}

.status-verified {
    background: #e7f3ff;
    color: #145ca4;
}

.status-revision {
    background: #fff1f0;
    color: #b42318;
}

.status-completed {
    background: #ecfdf3;
    color: #137a3f;
}

.status-form {
    min-width: 260px;
}

.status-form select {
    min-width: 150px;
    min-height: 36px;
}

.compact-empty {
    min-height: 180px;
}

@media (max-width: 560px) {
    .status-form {
        min-width: 0;
    }
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}

.workspace-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
}

.workspace-card-head,
.workspace-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.workspace-card h2,
.workspace-hero h2 {
    font-size: 22px;
}

.workspace-meta {
    display: grid;
    gap: 9px;
}

.workspace-meta span,
.info-list div {
    display: grid;
    gap: 3px;
}

.workspace-meta strong,
.info-list strong {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.workspace-hero {
    align-items: center;
}

.info-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.required-note {
    border-color: rgba(18, 107, 79, 0.3);
    background: #f7fbf8;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

@media (max-width: 560px) {
    .workspace-card-head,
    .workspace-hero,
    .footer-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.workspace-type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.type-add-form {
    margin: 0;
}

.type-add-card {
    width: 100%;
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr);
    appearance: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.type-add-card:focus-visible {
    outline: 3px solid rgba(18, 107, 79, 0.16);
    border-color: var(--primary);
}

.requirements-dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(31, 42, 36, 0.2);
}

.requirements-dialog::backdrop {
    background: rgba(31, 42, 36, 0.42);
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.dialog-head .muted {
    margin-bottom: 0;
}

.dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    border-color: rgba(18, 107, 79, 0.55);
    color: var(--primary);
    outline: none;
}

.dialog-body {
    max-height: calc(100vh - 260px);
    overflow: auto;
    padding: 18px 20px;
}

.modal-doc-list {
    margin-top: 0;
}

.requirement-card small {
    color: var(--muted);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #fbfcfb;
}
.admin-note-dialog {
    width: min(900px, calc(100vw - 32px));
    max-width: 95vw;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 48px rgba(31, 42, 36, 0.25);
}
.admin-note-dialog::backdrop {
    background: rgba(31, 42, 36, 0.36);
}
.admin-note-dialog .dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}
..admin-note-dialog .dialog-body {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    padding: 20px 24px 24px;
    line-height: 1.7;
}
.admin-note-dialog .dialog-body p {
    margin: 0;
    white-space: pre-wrap;
}
.admin-note-dialog .note-content {
    flex: 1 1 auto;
    min-height: 240px;
    padding-right: 8px;
}
.admin-note-dialog .signature-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.signature-image-block {
    margin-top: 0;
    text-align: right;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}
.signature-image-block img {
    display: block;
    max-width: 340px;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.signature-block {
    margin: 0;
    padding: 0;
    text-align: right;
}
.signature-block p {
    margin: 6px 0 0;
}
.signature-name {
    margin-top: 0;
    font-weight: 700;
}
.signature-title {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--muted);
}

.review-signature-block {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: left;
}
.review-signature-block p {
    margin: 6px 0 0;
}
.review-signature-block .signature-name {
    margin-top: 16px;
    font-weight: 700;
}
.review-signature-block .signature-title {
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--muted);
}
.signature-image-block {
    margin-top: 14px;
    text-align: center;
}
.signature-image-block img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.signature-image-block .signature-caption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
}
.document-assessment,
.review-form-assessment {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: rgba(70, 110, 80, 0.05);
    margin-bottom: 18px;
}
.document-assessment strong,
.review-form-assessment strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.document-assessment p,
.review-form-assessment p {
    margin: 0;
    color: #1f3826;
    line-height: 1.6;
}
.signature-canvas-wrapper {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.signature-canvas-wrapper canvas {
    width: 100%;
    min-height: 140px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fcfcfc;
    touch-action: none;
}
.signature-canvas-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.signature-canvas-actions .button {
    min-width: 120px;
}
.admin-note-dialog .dialog-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
button:disabled,
button[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 920px) {
    .workspace-type-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dialog-head,
    .dialog-actions {
        flex-direction: column;
    }

    .dialog-actions .button {
        width: 100%;
    }
}



.wizard-panel {
    border-color: rgba(18, 107, 79, 0.2);
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.wizard-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    text-decoration: none;
}

.wizard-step span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ef;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.wizard-step strong {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-step.done {
    color: var(--primary);
}

.wizard-step.done span,
.wizard-step.active span {
    background: var(--primary);
    color: #ffffff;
}

.wizard-step.active {
    border-color: rgba(18, 107, 79, 0.55);
    background: var(--surface-2);
    color: var(--primary);
}

.wizard-step.disabled {
    cursor: default;
    opacity: 0.68;
}

.wizard-actions {
    align-items: center;
    justify-content: flex-start;
}
.item-edit-form {
    display: block;
}

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

.basic-grid {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) minmax(180px, 0.8fr);
}

.full-field,
.note-field {
    margin-top: 16px;
}

.form-section .panel-head.compact {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.item-doc-list {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -24px;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: rgba(245, 247, 244, 0.96);
    backdrop-filter: blur(8px);
}

@media (max-width: 920px) {
    .wizard-steps,
    .f201-grid,
    .basic-grid,
    .item-doc-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .sticky-actions {
        margin: 0 -16px;
        padding: 12px 16px;
    }
}
.uploaded-file {
    align-items: center;
    background: #f3f7f4;
    border: 1px solid #d9e4dc;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.uploaded-file span,
.field-note {
    color: #66736d;
    font-size: 13px;
}

.uploaded-file a {
    color: #2f7458;
    font-weight: 700;
    text-decoration: none;
}

.submitted-form-view {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
}

.submitted-form-view h3 {
    font-size: 17px;
    margin: 0 0 14px;
}

.form-value-section {
    margin-top: 16px;
}

.form-value-section h4 {
    color: #2f3a36;
    font-size: 14px;
    margin: 0 0 10px;
}

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

.form-value-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    padding: 10px 12px;
}

.form-value-item strong {
    color: #66736d;
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
}

.form-value-item span,
.form-value-item a {
    overflow-wrap: anywhere;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.review-item-card .panel-head {
    align-items: flex-start;
}

.review-block h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.review-form {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 0.55fr) minmax(260px, 1fr) minmax(200px, 0.9fr);
    margin-top: 18px;
    padding-top: 18px;
}

.review-form label {
    display: grid;
    gap: 8px;
}

.review-form input[type="text"],
.review-form select,
.review-form textarea {
    width: 100%;
    min-width: 0;
}

.review-form button {
    align-self: end;
    justify-self: stretch;
    width: 100%;
}

.compact-alert {
    margin-top: 16px;
}

@media (max-width: 920px) {
    .report-detail-grid,
    .review-form,
    .form-value-grid {
        grid-template-columns: 1fr;
    }
}