        :root {
            --ink: #121a35;
            --text: #34405d;
            --muted: #69738b;
            --line: #dfe3ec;
            --line-strong: #cbd1de;
            --surface: #ffffff;
            --canvas: #f7f8fb;
            --soft: #f5f2fb;
            --purple: #4b3296;
            --purple-dark: #382276;
            --purple-light: #eee9fa;
            --orange: #f5a400;
            --green: #078846;
            --green-soft: #eaf8ef;
            --blue: #1769aa;
            --blue-soft: #eaf4fc;
            --danger: #c73542;
            --shadow: 0 2px 8px rgba(24, 34, 58, 0.06);
            --header-height: 74px;
            --sidebar-width: 226px;
        }

        .auth-pending body {
            visibility: hidden;
        }

        .auth-failure {
            align-items: center;
            display: none;
            min-height: 100vh;
            padding: 24px;
            place-content: center;
        }

        .auth-error body > :not(.auth-failure) {
            display: none !important;
        }

        .auth-error .auth-failure {
            display: grid;
        }

        .auth-failure-panel {
            background: var(--surface);
            border: 1px solid var(--line);
            box-shadow: var(--shadow);
            max-width: 520px;
            padding: 32px;
            text-align: center;
            width: 100%;
        }

        .auth-failure-panel h1 {
            font-size: 24px;
            margin: 0 0 12px;
        }

        .auth-failure-panel p {
            color: var(--muted);
            margin: 0 0 24px;
        }

        .logout-link {
            align-items: center;
            color: var(--muted);
            display: inline-flex;
            height: 36px;
            justify-content: center;
            width: 36px;
        }

        .logout-link:hover,
        .logout-link:focus-visible {
            color: var(--purple);
        }

        .logout-link svg {
            height: 18px;
            width: 18px;
        }

        * {
            box-sizing: border-box;
        }

        html {
            min-width: 320px;
            color: var(--ink);
            background: var(--canvas);
            font-family: Inter, "Segoe UI", Arial, sans-serif;
            font-size: 14px;
            letter-spacing: 0;
        }

        body {
            min-height: 100vh;
            margin: 0;
            background: var(--canvas);
        }

        button,
        input,
        select,
        textarea {
            font: inherit;
            letter-spacing: 0;
        }

        button,
        a,
        label[for="fileInput"] {
            -webkit-tap-highlight-color: transparent;
        }

        button {
            cursor: pointer;
        }

        .app-header {
            height: var(--header-height);
            padding: 0 20px 0 16px;
            position: fixed;
            z-index: 30;
            inset: 0 0 auto 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--surface);
            border-bottom: 1px solid var(--line);
        }

        .header-left,
        .header-right,
        .brand,
        .portal-title,
        .profile,
        .help-link {
            display: flex;
            align-items: center;
        }

        .header-left {
            min-width: 0;
            gap: 22px;
        }

        .brand {
            flex: 0 0 auto;
            gap: 8px;
        }

        .brand-flower {
            width: 38px;
            height: 38px;
            position: relative;
            overflow: hidden;
            background: #111111;
            border-radius: 2px;
        }

        .brand-flower img {
            width: 54px;
            height: 54px;
            max-width: none;
            position: absolute;
            left: -8px;
            top: -3px;
            object-fit: contain;
        }

        .brand-name {
            color: var(--orange);
            font-size: 26px;
            font-weight: 500;
            white-space: nowrap;
        }

        .portal-title {
            min-width: 0;
            padding-left: 22px;
            gap: 14px;
            border-left: 1px solid var(--line);
        }

        .portal-title-copy {
            min-width: 0;
        }

        .portal-title h1 {
            margin: 0;
            overflow: hidden;
            color: var(--ink);
            font-size: 19px;
            line-height: 1.25;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .powered-by {
            margin-top: 3px;
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text);
            font-size: 12px;
        }

        .powered-by img {
            width: 56px;
            height: 17px;
            object-fit: contain;
        }

        .header-right {
            flex: 0 0 auto;
            gap: 20px;
        }

        .help-link {
            gap: 7px;
            color: var(--ink);
            font-weight: 600;
            text-decoration: none;
        }

        .profile {
            padding-left: 18px;
            gap: 12px;
            border-left: 1px solid var(--line);
        }

        .profile-copy {
            line-height: 1.3;
            text-align: right;
        }

        .profile-copy strong,
        .profile-copy small {
            display: block;
        }

        .profile-copy small {
            color: var(--muted);
            font-size: 11px;
        }

        .avatar {
            width: 36px;
            height: 36px;
            display: grid;
            flex: 0 0 36px;
            place-items: center;
            color: #ffffff;
            background: var(--ink);
            border-radius: 50%;
            font-size: 12px;
            font-weight: 700;
        }

        .sidebar {
            width: var(--sidebar-width);
            padding: 32px 16px 18px;
            position: fixed;
            z-index: 20;
            inset: var(--header-height) auto 0 0;
            display: flex;
            flex-direction: column;
            background: var(--surface);
            border-right: 1px solid var(--line);
        }

        .side-command {
            width: 100%;
            min-height: 68px;
            margin-bottom: 18px;
            padding: 12px 14px;
            display: grid;
            grid-template-columns: 24px minmax(0, 1fr);
            gap: 10px;
            color: var(--ink);
            text-align: left;
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 6px;
        }

        .side-command.primary {
            color: #ffffff;
            background: var(--purple);
            border-color: var(--purple);
        }

        .side-command svg {
            width: 20px;
            height: 20px;
            margin-top: 2px;
        }

        .side-command strong,
        .side-command small {
            display: block;
        }

        .side-command strong {
            margin-bottom: 4px;
            font-size: 13px;
        }

        .side-command small {
            font-size: 11px;
            font-weight: 500;
            opacity: 0.9;
        }

        .side-nav {
            margin: 14px -4px 0;
            display: grid;
            gap: 4px;
        }

        .nav-item {
            min-height: 46px;
            padding: 0 12px;
            position: relative;
            display: flex;
            align-items: center;
            gap: 11px;
            color: var(--ink);
            background: transparent;
            border: 0;
            border-radius: 6px;
            font-weight: 600;
            text-decoration: none;
        }

        .nav-item.active {
            color: var(--purple-dark);
            background: var(--soft);
        }

        .nav-item.active::before {
            width: 3px;
            content: "";
            position: absolute;
            inset: 7px auto 7px 0;
            background: var(--purple);
        }

        .nav-item svg {
            width: 17px;
            height: 17px;
            color: #536078;
        }

        .support-box {
            margin-top: auto;
            padding: 16px;
            background: #faf9fd;
            border: 1px solid var(--line);
            border-radius: 6px;
        }

        .support-box h3 {
            margin: 0 0 10px;
            font-size: 13px;
        }

        .support-box p {
            margin: 0 0 14px;
            color: var(--text);
            font-size: 12px;
            line-height: 1.45;
        }

        .support-box button {
            width: 100%;
        }

        .side-footer {
            margin-top: 18px;
            padding-top: 16px;
            color: var(--muted);
            border-top: 1px solid var(--line);
            font-size: 11px;
            line-height: 1.7;
        }

        .side-footer a {
            margin-right: 12px;
            color: var(--muted);
            text-decoration: none;
        }

        .workspace {
            min-height: 100vh;
            margin-left: var(--sidebar-width);
            padding: calc(var(--header-height) + 26px) 26px 26px;
        }

        .page-top {
            margin-bottom: 18px;
            display: grid;
            grid-template-columns: minmax(320px, 1fr) minmax(500px, 1fr);
            gap: 28px;
            align-items: end;
        }

        .breadcrumbs {
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--muted);
            font-size: 12px;
        }

        .breadcrumbs a {
            color: var(--ink);
            text-decoration: none;
        }

        .page-heading h2 {
            margin: 0 0 5px;
            font-size: 24px;
            line-height: 1.2;
        }

        .page-heading p {
            margin: 0;
            color: var(--muted);
        }

        .stepper {
            min-width: 0;
            display: grid;
            grid-template-columns: repeat(4, minmax(110px, 1fr));
        }

        .step {
            position: relative;
            display: grid;
            justify-items: center;
            gap: 8px;
            color: var(--muted);
            background: transparent;
            border: 0;
            font-size: 11px;
        }

        .step:focus {
            outline: 0;
        }

        .step:focus-visible .step-number {
            box-shadow: 0 0 0 3px rgba(75, 50, 150, 0.16);
        }

        .step::after {
            height: 1px;
            content: "";
            position: absolute;
            z-index: -1;
            top: 16px;
            left: calc(50% + 20px);
            right: calc(-50% + 20px);
            background: var(--line-strong);
        }

        .step:last-child::after {
            display: none;
        }

        .step-number {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 50%;
            font-size: 13px;
        }

        .step.active {
            color: var(--ink);
        }

        .step.active .step-number,
        .step.complete .step-number {
            color: #ffffff;
            background: var(--purple);
            border-color: var(--purple);
        }

        .step.complete .step-number {
            color: transparent;
            background: #17a75b;
            border-color: #17a75b;
        }

        .step.complete .step-number::before {
            content: "\2713";
            color: #ffffff;
            font-size: 16px;
            font-weight: 800;
        }

        .step.complete::after {
            background: var(--purple);
        }

        .request-form {
            display: grid;
            grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.92fr);
            gap: 14px;
            align-items: start;
        }

        .left-stack,
        .right-stack {
            display: grid;
            gap: 14px;
        }

        .request-form[data-active-step="2"] .left-stack {
            display: none;
        }

        .request-form[data-active-step="1"] #additionalSection,
        .request-form[data-active-step="1"] .right-stack {
            display: none;
        }

        .request-form[data-active-step="1"] .left-stack {
            grid-column: 1 / -1;
        }

        .request-form[data-active-step="2"] .right-stack {
            grid-column: 1 / -1;
            grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.92fr);
            align-items: stretch;
        }

        .request-form[data-active-step="2"] #verifiedPill {
            display: none !important;
        }

        .request-form[data-active-step="3"] #companySection,
        .request-form[data-active-step="3"] .right-stack,
        .request-form[data-active-step="4"] .left-stack,
        .request-form[data-active-step="4"] .right-stack {
            display: none;
        }

        .request-form[data-active-step="3"] .left-stack {
            grid-column: 1 / -1;
        }

        .review-layout {
            display: none;
            grid-column: 1 / -1;
            grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.82fr);
            gap: 14px;
            align-items: stretch;
        }

        .request-form[data-active-step="4"] .review-layout {
            display: grid;
        }

        .panel {
            min-width: 0;
            padding: 14px;
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 6px;
            box-shadow: var(--shadow);
        }

        .panel-header {
            min-height: 32px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .panel-title {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
        }

        .section-number {
            width: 24px;
            height: 24px;
            display: grid;
            flex: 0 0 24px;
            place-items: center;
            color: #ffffff;
            background: var(--purple);
            border-radius: 50%;
            font-size: 12px;
        }

        .status-pill {
            min-height: 28px;
            padding: 0 11px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--green);
            background: var(--green-soft);
            border-radius: 5px;
            font-size: 12px;
            font-weight: 700;
        }

        .info-banner,
        .success-banner {
            min-height: 42px;
            margin-bottom: 14px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            gap: 9px;
            border-radius: 4px;
            font-size: 12px;
            line-height: 1.35;
        }

        .info-banner {
            color: #18375a;
            background: var(--blue-soft);
        }

        .success-banner {
            color: #075e32;
            background: var(--green-soft);
        }

        .info-banner svg,
        .success-banner svg,
        .status-pill svg {
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
        }

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

        .field {
            min-width: 0;
        }

        .field.full {
            grid-column: 1 / -1;
        }

        .field label {
            margin-bottom: 7px;
            display: block;
            color: var(--ink);
            font-size: 12px;
            font-weight: 650;
        }

        .required {
            color: var(--danger);
        }

        input,
        select,
        textarea {
            width: 100%;
            color: var(--ink);
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 4px;
            outline: 0;
        }

        input,
        select {
            height: 40px;
            padding: 0 11px;
        }

        textarea {
            min-height: 88px;
            padding: 10px 11px;
            resize: vertical;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: var(--purple);
            box-shadow: 0 0 0 3px rgba(75, 50, 150, 0.10);
        }

        input.invalid {
            border-color: var(--danger);
        }

        .field-hint {
            min-height: 16px;
            margin-top: 5px;
            color: var(--danger);
            font-size: 11px;
        }

        .btn {
            min-height: 38px;
            padding: 0 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--ink);
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 4px;
            font-weight: 700;
        }

        .btn svg {
            width: 17px;
            height: 17px;
        }

        .btn:hover,
        .btn:focus-visible {
            border-color: var(--purple);
        }

        .btn-primary {
            color: #ffffff;
            background: var(--purple);
            border-color: var(--purple);
        }

        .btn-primary:hover,
        .btn-primary:focus-visible {
            background: var(--purple-dark);
            border-color: var(--purple-dark);
        }

        .btn-outline-purple {
            color: var(--purple-dark);
            border-color: #7d68bc;
        }

        .search-row {
            margin-top: 14px;
        }

        .company-details {
            margin: 14px 0 16px;
            display: grid;
            grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
            gap: 10px 16px;
            font-size: 12px;
        }

        .company-details dt {
            margin: 0;
            color: var(--ink);
            font-weight: 650;
        }

        .company-details dd {
            margin: 0;
            overflow-wrap: anywhere;
            color: var(--text);
            white-space: pre-line;
        }

        .company-details .active-value {
            color: var(--green);
            font-weight: 700;
        }

        .use-company {
            min-width: 210px;
        }

        .verification-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .verification-actions .btn {
            flex: 1 1 0;
            min-width: 0;
            padding-inline: 10px;
            font-size: 12px;
            white-space: nowrap;
        }

        .verification-actions .use-company {
            min-width: 0;
        }

        .upload-zone {
            min-height: 88px;
            padding: 12px;
            display: grid;
            place-items: center;
            color: var(--text);
            background: #fbfafe;
            border: 1px dashed #bcb3d2;
            border-radius: 4px;
            text-align: center;
        }

        .upload-zone.dragging {
            color: var(--purple-dark);
            background: var(--purple-light);
            border-color: var(--purple);
        }

        .upload-zone input {
            display: none;
        }

        .upload-zone label {
            margin: 0;
            display: grid;
            justify-items: center;
            gap: 5px;
            cursor: pointer;
            font-weight: 600;
        }

        .upload-zone svg {
            width: 26px;
            height: 26px;
            color: var(--purple);
        }

        .upload-zone small {
            color: var(--muted);
            font-weight: 400;
        }

        .file-list {
            width: 100%;
            margin: 8px 0 0;
            padding: 0;
            display: grid;
            gap: 5px;
            list-style: none;
            text-align: left;
        }

        .file-list li {
            padding: 6px 8px;
            overflow: hidden;
            color: var(--text);
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 4px;
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .next-panel {
            padding: 18px;
            background: #f8f6fc;
        }

        .next-panel h3 {
            margin: 0 0 18px;
            color: var(--purple-dark);
            font-size: 14px;
        }

        .next-list {
            display: grid;
            gap: 15px;
        }

        .next-item {
            position: relative;
            display: grid;
            grid-template-columns: 40px minmax(0, 1fr);
            align-items: center;
            gap: 12px;
            color: var(--text);
            font-size: 12px;
            line-height: 1.45;
        }

        .next-item:not(:last-child)::after {
            width: 1px;
            height: 18px;
            content: "";
            position: absolute;
            left: 20px;
            top: 39px;
            background: #cfc6e0;
        }

        .next-icon {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            color: var(--purple-dark);
            background: var(--purple-light);
            border-radius: 50%;
        }

        .next-icon svg {
            width: 19px;
            height: 19px;
        }

        .review-intro {
            margin: -4px 0 14px;
            color: var(--muted);
            font-size: 12px;
        }

        .review-section {
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 5px;
        }

        .review-section + .review-section {
            margin-top: 12px;
        }

        .review-section-header {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .review-section-header h4 {
            margin: 0;
            color: var(--purple-dark);
            font-size: 12px;
        }

        .edit-review {
            min-height: 28px;
            padding: 0 10px;
            color: var(--purple-dark);
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: 4px;
            font-size: 11px;
            font-weight: 700;
        }

        .edit-review svg {
            width: 13px;
            height: 13px;
        }

        .review-grid {
            display: grid;
            grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.1fr) minmax(90px, 0.65fr) minmax(0, 1fr);
            gap: 9px 14px;
            font-size: 11px;
        }

        .review-grid.two-column {
            grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
        }

        .review-label {
            color: var(--ink);
            font-weight: 700;
        }

        .review-value {
            min-width: 0;
            overflow-wrap: anywhere;
            color: var(--text);
            white-space: pre-line;
        }

        .review-value.active-value {
            color: var(--green);
            font-weight: 750;
        }

        .post-submit-panel {
            background: #f8f6fc;
        }

        .post-submit-panel h3 {
            margin: 2px 0 18px;
            color: var(--purple-dark);
            font-size: 14px;
        }

        .back-action {
            display: none;
        }

        .request-form[data-active-step="4"] .back-action {
            display: inline-flex;
        }

        .btn-success {
            color: #ffffff;
            background: #087d3f;
            border-color: #087d3f;
        }

        .btn-success:hover,
        .btn-success:focus-visible {
            background: #066b36;
            border-color: #066b36;
        }

        .form-actions {
            margin-top: 14px;
            padding-top: 16px;
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            border-top: 1px solid var(--line);
        }

        .action-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .action-right .btn {
            min-width: 172px;
        }

        .secure-note {
            margin-top: 8px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            color: var(--muted);
            font-size: 11px;
        }

        .secure-note svg {
            width: 13px;
            height: 13px;
        }

        .toast {
            min-width: 280px;
            max-width: min(420px, calc(100vw - 32px));
            padding: 12px 14px;
            position: fixed;
            z-index: 60;
            right: 22px;
            bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #ffffff;
            background: var(--ink);
            border-radius: 5px;
            box-shadow: 0 10px 28px rgba(15, 23, 48, 0.20);
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
            transition: opacity 160ms ease, transform 160ms ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        .dialog-backdrop {
            position: fixed;
            z-index: 50;
            inset: 0;
            display: none;
            place-items: center;
            padding: 20px;
            background: rgba(17, 26, 53, 0.45);
        }

        .dialog-backdrop.open {
            display: grid;
        }

        .dialog {
            width: min(520px, 100%);
            padding: 26px;
            background: var(--surface);
            border-radius: 6px;
            box-shadow: 0 24px 60px rgba(17, 26, 53, 0.28);
            text-align: center;
        }

        .dialog-icon {
            width: 52px;
            height: 52px;
            margin: 0 auto 14px;
            display: grid;
            place-items: center;
            color: var(--green);
            background: var(--green-soft);
            border-radius: 50%;
        }

        .dialog-icon svg {
            width: 28px;
            height: 28px;
        }

        .dialog h3 {
            margin: 0 0 8px;
            font-size: 20px;
        }

        .dialog p {
            margin: 0 0 8px;
            color: var(--text);
            line-height: 1.5;
        }

        .request-id {
            margin: 18px 0;
            padding: 12px;
            color: var(--purple-dark);
            background: var(--purple-light);
            border-radius: 4px;
            font-size: 17px;
            font-weight: 750;
        }

        .loading .search-label {
            opacity: 0.75;
        }

        .spinner {
            width: 16px;
            height: 16px;
            display: none;
            border: 2px solid rgba(255,255,255,0.45);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 700ms linear infinite;
        }

        .loading .spinner {
            display: block;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @media (max-width: 1180px) {
            :root {
                --sidebar-width: 205px;
            }

            .portal-title h1 {
                font-size: 17px;
            }

            .request-form {
                grid-template-columns: 1fr;
            }

            .right-stack {
                grid-template-columns: 1fr 1fr;
            }

            .request-form[data-active-step="2"] .right-stack {
                grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
            }

            .review-layout {
                grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
            }

            .page-top {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 860px) {
            :root {
                --header-height: 66px;
            }

            .app-header {
                padding: 0 14px;
            }

            .portal-title,
            .profile-copy,
            .help-link span,
            .support-box,
            .side-footer {
                display: none;
            }

            .sidebar {
                width: 100%;
                height: 58px;
                padding: 7px 12px;
                inset: var(--header-height) 0 auto 0;
                flex-direction: row;
                align-items: center;
                gap: 7px;
                overflow-x: auto;
                border-right: 0;
                border-bottom: 1px solid var(--line);
            }

            .side-command {
                width: auto;
                min-width: 44px;
                min-height: 42px;
                margin: 0;
                padding: 8px 10px;
                display: flex;
                align-items: center;
            }

            .side-command div,
            .side-command:not(.primary) {
                display: none;
            }

            .side-nav {
                margin: 0;
                display: flex;
                gap: 4px;
            }

            .nav-item {
                min-width: 44px;
                min-height: 42px;
                padding: 0 12px;
            }

            .nav-item span {
                display: none;
            }

            .workspace {
                margin-left: 0;
                padding: calc(var(--header-height) + 76px) 14px 20px;
            }

            .stepper {
                overflow-x: auto;
                grid-template-columns: repeat(4, minmax(130px, 1fr));
            }

            .right-stack {
                grid-template-columns: 1fr;
            }

            .request-form[data-active-step="2"] .right-stack {
                grid-template-columns: 1fr;
            }

            .review-layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 620px) {
            .brand-name {
                font-size: 21px;
            }

            .header-right {
                gap: 9px;
            }

            .profile {
                padding-left: 9px;
            }

            .page-heading h2 {
                font-size: 21px;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .field.full {
                grid-column: auto;
            }

            .company-details {
                grid-template-columns: 1fr;
                gap: 4px;
            }

            .company-details dd {
                margin-bottom: 9px;
            }

            .form-actions,
            .action-right {
                align-items: stretch;
                flex-direction: column;
            }

            .form-actions .btn,
            .action-right,
            .action-right .btn {
                width: 100%;
            }

            .verification-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .verification-actions .btn {
                white-space: normal;
            }

            .review-grid,
            .review-grid.two-column {
                grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
            }

            .secure-note {
                justify-content: center;
            }
        }

        /* Full-viewport responsive shell. Kept dependency-free so the POC remains one deployable file. */
        body {
            overflow-x: hidden;
        }

        .app-header {
            box-shadow: 0 1px 0 rgba(18, 26, 53, 0.02);
        }

        .workspace {
            width: calc(100% - var(--sidebar-width));
            height: 100dvh;
            min-height: 680px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            scrollbar-gutter: stable;
        }

        .page-top {
            flex: 0 0 auto;
            grid-template-columns: minmax(340px, 0.82fr) minmax(620px, 1.38fr);
            gap: clamp(28px, 4vw, 72px);
        }

        .stepper {
            width: 100%;
            max-width: 900px;
            position: relative;
            isolation: isolate;
            justify-self: center;
            margin-inline: auto;
            padding-inline: 8px;
        }

        .step {
            min-width: 0;
        }

        .step::after {
            z-index: 0;
            height: 2px;
            top: 16px;
            background: #d9deea;
        }

        .step.complete::after {
            background: #20a663;
        }

        .step.complete {
            color: #26744b;
        }

        .step.complete .step-number {
            color: transparent;
            background: #18a85b;
            border: 1px solid #18a85b;
            box-shadow: 0 3px 9px rgba(24, 168, 91, 0.18);
        }

        .step.complete .step-number::before {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            color: #ffffff;
            font-size: 16px;
            line-height: 1;
        }

        .step-number,
        .step > span:last-child {
            position: relative;
            z-index: 1;
        }

        .step > span:last-child {
            padding: 2px 8px;
            background: var(--canvas);
            line-height: 1.25;
            text-align: center;
        }

        .request-form {
            min-height: calc(100dvh - 246px);
            flex: 1 0 auto;
            grid-template-rows: minmax(0, 1fr) auto;
            align-content: stretch;
        }

        .request-form > .left-stack,
        .request-form > .right-stack,
        .request-form > .review-layout {
            grid-row: 1;
            min-height: 0;
        }

        .request-form[data-active-step="2"] .right-stack,
        .request-form[data-active-step="4"] .review-layout {
            height: 100%;
        }

        .request-form[data-active-step="3"] .left-stack,
        .request-form[data-active-step="3"] #additionalSection {
            height: 100%;
        }

        .request-form[data-active-step="3"] #additionalSection {
            display: flex;
            flex-direction: column;
        }

        .request-form[data-active-step="3"] #additionalSection .form-grid {
            min-height: 0;
            flex: 1 1 auto;
            grid-template-rows: auto minmax(230px, 1fr);
        }

        .request-form[data-active-step="3"] #additionalSection .field:nth-child(3),
        .request-form[data-active-step="3"] #additionalSection .field:nth-child(4) {
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .request-form[data-active-step="3"] #additionalSection textarea,
        .request-form[data-active-step="3"] #additionalSection .upload-zone {
            min-height: 230px;
            flex: 1 1 auto;
        }

        .request-form[data-active-step="2"] .right-stack > .panel,
        .request-form[data-active-step="4"] .review-layout > .panel {
            height: 100%;
        }

        .panel {
            padding: clamp(16px, 1.25vw, 22px);
            border-color: #e0e4ee;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(24, 34, 58, 0.055);
        }

        .next-panel,
        .post-submit-panel {
            background: linear-gradient(180deg, #faf8ff 0%, #f7f4fd 100%);
        }

        .form-actions {
            grid-row: 2;
            margin-top: 20px;
            padding: 16px 0 4px;
            background: var(--canvas);
        }

        .btn {
            min-height: 42px;
            border-radius: 6px;
            transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn:active {
            transform: translateY(0);
        }

        @media (max-width: 1320px) {
            .page-top {
                grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
                gap: 24px;
            }

            .workspace {
                padding-right: 20px;
                padding-left: 20px;
            }
        }

        @media (max-width: 1180px) {
            .workspace {
                height: auto;
                min-height: 100dvh;
                overflow: visible;
            }

            .page-top {
                grid-template-columns: 1fr;
            }

            .request-form {
                min-height: 0;
            }

            .request-form[data-active-step="2"] .right-stack,
            .review-layout {
                grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
            }
        }

        @media (max-width: 860px) {
            .workspace {
                width: 100%;
            }

            .stepper {
                width: 100%;
                max-width: none;
                overflow: visible;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                padding-inline: 0;
            }

            .step {
                gap: 7px;
                font-size: 10px;
            }

            .step::after {
                left: calc(50% + 18px);
                right: calc(-50% + 18px);
            }

            .step > span:last-child {
                padding-inline: 3px;
            }

            .request-form[data-active-step="2"] .right-stack,
            .review-layout {
                grid-template-columns: 1fr;
            }

            .request-form[data-active-step="2"] .right-stack > .panel,
            .request-form[data-active-step="4"] .review-layout > .panel {
                height: auto;
            }

            .request-form[data-active-step="3"] .left-stack,
            .request-form[data-active-step="3"] #additionalSection {
                height: auto;
            }

            .request-form[data-active-step="3"] #additionalSection .form-grid {
                grid-template-rows: auto;
            }
        }

        @media (max-width: 620px) {
            .workspace {
                padding-right: 12px;
                padding-left: 12px;
            }

            .page-top {
                gap: 18px;
            }

            .step-number {
                width: 30px;
                height: 30px;
            }

            .step::after {
                top: 14px;
                left: calc(50% + 16px);
                right: calc(-50% + 16px);
            }

            .step > span:last-child {
                max-width: 88px;
                font-size: 9px;
                overflow-wrap: anywhere;
            }

            .panel {
                padding: 14px;
            }

            .request-form[data-active-step="3"] #additionalSection textarea,
            .request-form[data-active-step="3"] #additionalSection .upload-zone {
                min-height: 180px;
            }

            .review-grid,
            .review-grid.two-column {
                grid-template-columns: 1fr;
                gap: 3px;
            }

            .review-value {
                margin-bottom: 10px;
            }
        }
