/* =========================================================
   STUDIO TORRI APPLICATION FORMS
   COMMON STYLESHEET — FIVE-MODULE DEVELOPMENT SHELL
   Source: September 2026 revised application structure + Art Director Brief

   IMPORTANT:
   - This stylesheet provides the reusable visual system for TAB 01–10.
   - Shared component colors follow the exported AF Concept Round 01 reference.
========================================================= */


/* =========================================================
   01 — DESIGN TOKENS
   AF Concept Round 01 palette; OTP has its own exported border token.
========================================================= */

/* ST-AF-FIGMA-FONTS-02 — Original Figma font files, stored locally. */
@font-face { font-family: "EB Garamond"; src: url("../assets/fonts/eb-garamond-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Domine"; src: url("../assets/fonts/domine-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
    --color-bg: #f8f6f2;
    --color-surface: #ffffff;
    --color-surface-soft: #f8f6f2;
    --color-border: #d9d5ce;
    --color-border-strong: #b9b4aa;

    --color-text: #26354a;
    --color-text-soft: #687384;
    --color-text-muted: #9a9fa8;

    --color-accent: #9b7843;
    --color-accent-hover: #806238;
    --color-accent-soft: #f0e5d1;

    --color-success: #2f6b46;
    --color-success-soft: #edf6f0;

    --color-warning: #9b7843;
    --color-warning-soft: #f0e5d1;

    --color-error: #b44b4b;
    --color-error-soft: #faeeee;

    --color-info: #36566f;
    --color-info-soft: #e6e6e6;

    --shadow-soft: 0 8px 28px rgba(22, 27, 23, 0.06);
    --shadow-focus: 0 0 0 3px rgba(155, 120, 67, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;

    --sidebar-width: 290px;
    --content-max: 1180px;
}


/* =========================================================
   02 — GLOBAL RESET & BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.hidden {
    display: none !important;
}


/* =========================================================
   03 — ACCESSIBILITY UTILITIES
========================================================= */

.sr-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


/* =========================================================
   04 — COMMON BUTTON SYSTEM
   Shared across all TABs and access states.
========================================================= */

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

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

.primary-button:hover:not(:disabled) {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.secondary-button {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

.secondary-button:hover:not(:disabled) {
    background: var(--color-surface-soft);
    border-color: var(--color-border-strong);
}

.ghost-button {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.ghost-button:hover:not(:disabled) {
    background: var(--color-surface-soft);
}

.danger-button {
    background: var(--color-surface);
    color: var(--color-error);
    border-color: #e3bcbc;
}

.danger-button:hover:not(:disabled) {
    background: var(--color-error-soft);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled),
.danger-button:active:not(:disabled) {
    transform: translateY(1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.danger-button:focus-visible {
    box-shadow: var(--shadow-focus);
}

button:disabled {
    opacity: 0.5;
}


/* =========================================================
   05 — APPLICATION SHELL
========================================================= */

.app-shell {
    width: min(100%, 1600px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--color-bg);
}


/* =========================================================
   06 — APPLICATION HEADER
   Client-facing identity, Application ID and status only.
========================================================= */

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: 22px 32px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.brand-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.brand-subtitle {
    color: var(--color-text-soft);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: var(--space-7);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-value {
    font-size: 14px;
    font-weight: 650;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 750;
}


/* =========================================================
   07 — TAB NAVIGATION
   Current development shell exposes five client-facing modules.
========================================================= */

.tab-navigation {
    display: flex;
    gap: 0;
    padding: 0 32px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.tab-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 250px;
    padding: 18px 20px 16px;
    background: transparent;
    color: var(--color-text-soft);
    border: 0;
    border-bottom: 3px solid transparent;
    text-align: left;
}

.tab-button:hover {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.tab-button.active {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
}

.tab-button-number {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.tab-button-title {
    font-size: 14px;
    font-weight: 650;
}


/* =========================================================
   08 — PROGRESS AREA
========================================================= */

.progress-area {
    padding: 18px 32px 20px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.progress-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: 10px;
    color: var(--color-text-soft);
    font-size: 13px;
}

.progress-tab-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.progress-tab-info strong {
    color: var(--color-text);
}

.progress-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e9e4;
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--color-accent);
    transition: width 220ms ease;
}


/* =========================================================
   09 — APPLICATION WORKSPACE
========================================================= */

.application-workspace {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px;
    gap: 28px;
}


/* =========================================================
   10 — SECTION SIDEBAR
========================================================= */

.section-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.sidebar-heading {
    margin-bottom: 14px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-navigation-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-navigation-button {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    color: var(--color-text-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-align: left;
}

.section-navigation-button:hover {
    background: var(--color-surface-soft);
    color: var(--color-text);
}

.section-navigation-button.active {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-color: #d6ddd8;
    font-weight: 700;
}

.section-navigation-button.completed {
    color: var(--color-success);
}

.section-navigation-button.attention {
    color: var(--color-warning);
    background: var(--color-warning-soft);
}

.section-navigation-number {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.section-navigation-title {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}

.sidebar-actions {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.sidebar-actions .secondary-button {
    width: 100%;
}


/* =========================================================
   11 — MAIN FORM CONTENT
========================================================= */

.form-content {
    min-width: 0;
}

.form-heading {
    margin-bottom: 20px;
}

.tab-label {
    margin: 0 0 4px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-heading h1 {
    margin: 0;
    color: var(--color-text);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 42px;
    letter-spacing: 0;
}

.tab-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-text-soft);
}


/* =========================================================
   12 — ACCESS VIEWS & SECTION CARD
========================================================= */

.access-view {
    width: 100%;
}

.section-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.section-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    padding: 26px 28px;
    border-bottom: 1px solid var(--color-border);
}

.section-card-header h2,
.otp-card h2 {
    margin: 2px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
}

.section-number {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    font-size: 12px;
    font-weight: 700;
}

.section-state.unlocked {
    background: var(--color-success-soft);
    color: var(--color-success);
    border-color: #cee0d3;
}


/* =========================================================
   13 — ANONYMOUS PREVIEW / LOCKED STATE
========================================================= */

.locked-form-area {
    position: relative;
    min-height: 430px;
    padding: 28px;
    overflow: hidden;
}

.preview-fields {
    display: grid;
    gap: 18px;
    filter: blur(3px);
    opacity: 0.42;
    user-select: none;
    pointer-events: none;
}

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

.preview-field label {
    color: var(--color-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.preview-field input,
.preview-field select,
.preview-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.preview-field textarea {
    min-height: 120px;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(245, 245, 242, 0.82);
    text-align: center;
    backdrop-filter: blur(1px);
}

.lock-overlay h3 {
    margin: 12px 0 6px;
    font-size: 22px;
}

.lock-overlay p {
    max-width: 460px;
    margin: 0 0 20px;
    color: var(--color-text-soft);
}

.lock-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 22px;
}


/* =========================================================
   14 — ACTIVATION GATE & NOTICES
========================================================= */

#activationGate .section-card,
#otpVerification .section-card {
    padding-bottom: 28px;
}

.notice-box {
    margin: 22px 28px 0;
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-info);
    border-radius: var(--radius-md);
    background: var(--color-info-soft);
}

.notice-box h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.notice-box p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 14px;
}

#activationForm {
    padding: 24px 28px 0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--color-text);
    cursor: pointer;
}

.checkbox-row input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-accent);
}


/* =========================================================
   15 — OTP VERIFICATION
========================================================= */

.otp-card {
    max-width: 660px;
    margin: 0 auto;
    padding: 30px;
}

.otp-card > p:not(.section-number):not(.development-note):not(.form-message) {
    color: var(--color-text-soft);
}

#otpInput {
    max-width: 260px;
    letter-spacing: 0.22em;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.development-note {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
}


/* =========================================================
   16 — COMMON FORM FIELD SYSTEM
   Shared by all current module renderers.
========================================================= */

.section-content {
    padding: 28px;
}

.form-section {
    display: grid;
    gap: 24px;
}

.form-section-intro {
    margin: 0;
    color: var(--color-text-soft);
}

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

.form-grid.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.form-group {
    display: grid;
    gap: 7px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group > label,
.field-label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.required-marker {
    margin-left: 2px;
    color: var(--color-error);
}

.field-help {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
    border-color: var(--color-accent);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-focus);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
}


/* =========================================================
   17 — FIELD VALIDATION STATES
========================================================= */

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--color-error);
    background: #fffafa;
}

.field-error {
    margin: 0;
    color: var(--color-error);
    font-size: 12px;
    font-weight: 600;
}

.form-message {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--color-error);
    font-size: 13px;
}

.form-message.success {
    color: var(--color-success);
}


/* =========================================================
   18 — RADIO & CHECKBOX GROUPS
========================================================= */

.option-group {
    display: grid;
    gap: 9px;
}

.option-group.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.option-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
}

/* ST-AF-RADIO-01 — compact single-choice row in the Figma component export. */
.option-row:has(input[type="radio"]) {
    align-items: flex-start;
    gap: 12px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
}
.option-row input[type="radio"],
.option-card input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--color-accent);
}
.option-row:has(input[type="radio"]:checked) {
    color: var(--color-text);
}
.option-row .option-helper,
.option-card .option-helper {
    display: block;
    margin-top: 2px;
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.option-row span {
    color: var(--color-text);
    font-size: 14px;
}

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

.option-card {
    display: flex;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-surface);
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface-soft);
}

.option-card input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--color-accent);
}

/* ST-AF-CONCEPT-01 — selected, invalid and disabled states in exported controls. */
.option-card:has(input:checked) {
    border-color: var(--color-accent);
    background: var(--color-surface);
}
.option-card:has(input:focus-visible),
.option-row:has(input:focus-visible) {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.option-card:has(input:disabled),
.option-row:has(input:disabled) {
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
    cursor: not-allowed;
}
.option-card:has(input:disabled) span,
.option-row:has(input:disabled) span {
    color: var(--color-text-muted);
}
.option-card:has(input[aria-invalid="true"]),
.option-row:has(input[aria-invalid="true"]) {
    border-color: var(--color-error);
}


/* =========================================================
   19 — SECTION SUBHEADINGS & CONTENT DIVIDERS
========================================================= */

.subsection {
    display: grid;
    gap: 16px;
    padding-top: 6px;
}

.subsection + .subsection {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.subsection-heading {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.subsection-description {
    margin: -8px 0 0;
    color: var(--color-text-soft);
    font-size: 13px;
}


/* =========================================================
   20 — REPEATABLE PERSON / ENTITY COMPONENT
   Used by TAB 01 Sections 2–3 and TAB 02 KYC profiles.
========================================================= */

.repeatable-list {
    display: grid;
    gap: 16px;
}

.repeatable-card,
.profile-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
    overflow: hidden;
}

.repeatable-card-header,
.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.repeatable-card-header h3,
.profile-card-header h3 {
    margin: 0;
    font-size: 15px;
}

.repeatable-card-body,
.profile-card-body {
    padding: 16px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.empty-state {
    padding: 22px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text-soft);
    background: var(--color-surface-soft);
    text-align: center;
}


/* =========================================================
   21 — SECURE UPLOAD COMPONENT
   Visual layer only; backend/storage integration comes later.
========================================================= */

.upload-field {
    display: grid;
    gap: 8px;
}

.upload-dropzone {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 20px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
    text-align: center;
}

.upload-dropzone:hover {
    border-color: var(--color-accent);
}

.upload-status {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.upload-status.uploaded,
.upload-status.accepted {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.upload-status.rejected {
    background: var(--color-error-soft);
    color: var(--color-error);
}

.upload-status.review {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}


/* =========================================================
   22 — DATA TABLES / OWNERSHIP & DOCUMENT MATRICES
========================================================= */

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: var(--color-surface);
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
}

.data-table th {
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.data-table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   23 — INFORMATION / WARNING / COMPLIANCE CALLOUTS
========================================================= */

.info-box,
.warning-box,
.success-box,
.error-box,
.regulatory-note {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid;
}

.info-box,
.regulatory-note {
    background: var(--color-info-soft);
    border-color: #e6e6e6;
}

.warning-box {
    background: var(--color-warning-soft);
    border-color: #e3d29e;
}

.success-box {
    background: var(--color-success-soft);
    border-color: #c9dfd0;
}

.error-box {
    background: var(--color-error-soft);
    border-color: #e3bcbc;
}

.info-box p,
.warning-box p,
.success-box p,
.error-box p,
.regulatory-note p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 13px;
}


/* =========================================================
   24 — REVIEW / SUMMARY COMPONENTS
========================================================= */

.review-block,
.summary-card {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
}

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

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

.summary-item {
    display: grid;
    gap: 3px;
}

.summary-label {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* =========================================================
   25 — FINAL DECLARATION / SUBMISSION AREA
========================================================= */

.submission-area {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-soft);
}

.submission-area h3 {
    margin: 0;
}

.submission-area .primary-button {
    width: fit-content;
    min-width: 180px;
}


/* =========================================================
   26 — FORM ACTIONS
========================================================= */

.form-actions,
.navigation-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.form-actions {
    margin-top: 22px;
}

.navigation-actions {
    padding: 20px 28px 26px;
    border-top: 1px solid var(--color-border);
}

.navigation-actions #previousSectionButton {
    margin-right: auto;
}


/* =========================================================
   27 — CONDITIONAL CONTENT
   JavaScript may toggle these classes based on routing rules.
========================================================= */

.conditional-block {
    margin-top: 12px;
    padding: 16px;
    border-left: 3px solid var(--color-border-strong);
    background: var(--color-surface-soft);
}

.conditional-block.is-active {
    border-left-color: var(--color-accent);
}

.conditional-block.is-hidden {
    display: none !important;
}


/* =========================================================
   28 — CLIENT-VISIBLE STATUS CHIPS
   Do not expose internal risk scores or routing triggers.
========================================================= */

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    font-size: 11px;
    font-weight: 700;
}

.status-chip.completed {
    background: var(--color-success-soft);
    color: var(--color-success);
    border-color: #c9dfd0;
}

.status-chip.attention {
    background: var(--color-warning-soft);
    color: var(--color-warning);
    border-color: #e3d29e;
}


/* =========================================================
   29 — DESKTOP LARGE-SCREEN REFINEMENT
========================================================= */

@media (min-width: 1280px) {
    .application-workspace {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .section-card-header {
        padding: 30px 32px;
    }

    .section-content {
        padding: 32px;
    }

    .navigation-actions {
        padding-left: 32px;
        padding-right: 32px;
    }
}


/* =========================================================
   30 — TABLET RESPONSIVE LAYOUT
========================================================= */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .app-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .tab-navigation,
    .progress-area {
        padding-left: 24px;
        padding-right: 24px;
    }

    .application-workspace {
        padding: 24px;
        gap: 20px;
    }

    .header-meta {
        gap: 20px;
    }

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


/* =========================================================
   31 — MOBILE / SMALL TABLET LAYOUT
   Art Director brief requires stacked / simplified mobile UI.
========================================================= */

@media (max-width: 820px) {
    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-meta {
        width: 100%;
        justify-content: space-between;
    }

    .tab-navigation {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tab-button {
        min-width: 220px;
    }

    .progress-area {
        padding-left: 16px;
        padding-right: 16px;
    }

    .progress-text {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .progress-tab-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .application-workspace {
        grid-template-columns: 1fr;
        padding: 18px 16px 28px;
    }

    .section-sidebar {
        position: static;
        max-height: none;
    }

    .section-navigation-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .form-grid,
    .form-grid.three-columns,
    .summary-grid,
    .option-card-grid {
        grid-template-columns: 1fr;
    }

    .section-card-header {
        padding: 22px 20px;
    }

    .section-content {
        padding: 20px;
    }

    .navigation-actions {
        padding: 18px 20px 22px;
    }

    .notice-box {
        margin-left: 20px;
        margin-right: 20px;
    }

    #activationForm {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* =========================================================
   32 — PHONE LAYOUT
========================================================= */

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .app-header {
        padding: 18px 16px;
    }

    .header-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .tab-navigation {
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .tab-button {
        min-width: 190px;
        padding: 14px 12px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
    }

    .tab-button.active {
        border-color: var(--color-accent);
        background: var(--color-accent-soft);
    }

    .section-navigation-list {
        grid-template-columns: 1fr;
    }

    .sidebar-actions {
        grid-template-columns: 1fr;
    }

    .form-heading h1 {
        font-size: 28px;
    }

    .section-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .locked-form-area {
        min-height: 390px;
        padding: 20px;
    }

    .lock-overlay {
        padding: 22px;
    }

    .otp-card {
        padding: 22px 20px;
    }

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

    .form-actions button,
    .navigation-actions button {
        width: 100%;
    }

    .navigation-actions #previousSectionButton {
        margin-right: 0;
    }

    .submission-area .primary-button {
        width: 100%;
    }
}

/* =========================================================
   33 — CONTEXTUAL HELP PANEL
   Reusable help panel for all TABs and sections.
========================================================= */

.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    justify-content: flex-end;

    background: rgba(32, 34, 31, 0.38);
}

.help-overlay[hidden] {
    display: none !important;
}

.help-panel {
    width: min(440px, 100%);
    height: 100vh;
    overflow-y: auto;

    padding: 32px;

    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    box-shadow: -12px 0 32px rgba(22, 27, 23, 0.12);
}

.help-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
    padding-bottom: 20px;

    border-bottom: 1px solid var(--color-border);
}

.help-eyebrow {
    margin: 0 0 5px;

    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-panel-header h2 {
    margin: 0;

    color: var(--color-text);
    font-size: 24px;
    line-height: 1.25;
}

.help-close-button {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    padding: 0;

    background: transparent;
    color: var(--color-text);

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.help-close-button:hover {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

.help-panel-content {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.65;
}

.help-panel-content p {
    margin: 0 0 18px;
}

.help-panel-content strong {
    display: block;
    margin-bottom: 4px;
}

body.help-open {
    overflow: hidden;
}


@media (max-width: 560px) {

    .help-panel {
        width: 100%;
        padding: 24px 20px;
    }
}

/* =========================================================
   34 — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   END OF STUDIO TORRI COMMON STYLESHEET
========================================================= */

/* =========================================================
   35 — REVISED INDEX.HTML COMPATIBILITY LAYER
   Current development modules: 01, 02, 03, 04 and 10.
   These aliases align the common stylesheet with the revised
   shared HTML shell while preserving the existing JS classes.
========================================================= */

.app-main {
    width: 100%;
}

.access-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px;
}

.access-card {
    padding: 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.access-card h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-eyebrow,
.sidebar-eyebrow {
    margin: 0 0 5px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.access-card .section-description {
    margin: 0 0 24px;
    color: var(--color-text-soft);
}

#emailStep,
#otpStep {
    display: grid;
    gap: 16px;
}

.text-button {
    width: fit-content;
    padding: 7px 0;
    background: transparent;
    color: var(--color-accent);
    border: 0;
    font-weight: 700;
}

.text-button:hover {
    text-decoration: underline;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(42px, 54px));
    gap: 10px;
}

.otp-input {
    width: 100%;
    min-height: 54px;
    padding: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 750;
}

.application-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.sidebar-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.section-navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.application-content {
    min-width: 0;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    padding: 26px 28px;
    border-bottom: 1px solid var(--color-border);
}

.section-header h1 {
    margin: 2px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
}

.section-description {
    color: var(--color-text-soft);
}

.application-content > .section-description {
    margin: 0;
    padding: 18px 28px 0;
}

.save-state {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
}

#applicationIdContainer[hidden],
#applicationStatus[hidden] {
    display: none !important;
}

/* Internal TAB numbers are not client-facing. */
.tab-button-number:empty {
    display: none;
}

@media (max-width: 820px) {
    .access-section {
        padding: 28px 16px;
    }

    .application-sidebar {
        position: static;
        max-height: none;
    }

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

    .section-header {
        padding: 22px 20px;
    }

    .application-content > .section-description {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .access-card {
        padding: 22px 20px;
    }

    .otp-inputs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
    }

    .otp-input {
        min-height: 48px;
        font-size: 18px;
    }

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

    .section-header {
        flex-direction: column;
    }
}


/* =========================================================
   END — REVISED FIVE-MODULE COMMON STYLESHEET
========================================================= */
/* ST-OTP-FIGMA-14 — six-box OTP states, exported component reference. */
.otp-resend-countdown { min-height: 18px; margin: 8px 0 0; color: #687384; font-size: 12px; line-height: 18px; }
#resendOtpButton:disabled { opacity: .55; cursor: not-allowed; }
#otpVerification .otp-card {
    width: min(100%, 640px);
    max-width: 640px;
    padding: 32px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(41, 52, 68, .08);
}
#otpVerification .otp-card h2 { font-size: 20px; color: #293444; }
#otpVerification .otp-card > p:not(.section-number) { color: #687384; }
#otpVerification .otp-card .form-group label { display: block; margin-bottom: 8px; color: #293444; font-size: 14px; font-weight: 600; }
#stOtpBoxes { display: flex; gap: 8px; flex-wrap: nowrap; max-width: 352px; }
#stOtpBoxes input {
    width: 52px; height: 56px; min-width: 0; padding: 0;
    border: 1px solid #C2CBD8; border-radius: 8px;
    background: #fff; color: #293444;
    text-align: center; font-size: 20px; font-weight: 600;
    letter-spacing: normal; outline: none;
}
#stOtpBoxes input:focus-visible { border: 2px solid #9b7843; box-shadow: none; }
#otpVerification[data-otp-state="success"] #stOtpBoxes input { border: 2px solid #9b7843; }
#otpVerification[data-otp-state="error"] #stOtpBoxes input { border: 2px solid #b44b4b; }
#otpVerification[data-otp-state="error"] #otpMessage { color: #B44B4B; }
#stOtpBoxes input:disabled { background: #f8f6f2; border-color: #d9d5ce; color: #9a9fa8; }

/* ST-AF-SEARCH-SELECT — country and telephone-prefix search. */
.st-search-original { display: none !important; }
.st-search-select { position: relative; width: 100%; }
.st-search-input, .st-country-filter { width: 100%; min-height: 52px; padding: 8px 12px; border: 1px solid #b9b4aa; border-radius: 8px; background: #fff; color: #26354a; font: 400 16px/24px Inter, Arial, sans-serif; }
.st-search-input:focus, .st-country-filter:focus { outline: none; border: 2px solid #9b7843; padding: 7px 11px; }
.st-search-input::placeholder, .st-country-filter::placeholder { color: #9a9fa8; }
.st-search-options { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); max-height: 230px; overflow-y: auto; border: 1px solid #b9b4aa; border-radius: 8px; background: #fff; box-shadow: 0 12px 24px rgba(41, 52, 68, .14); }
.st-search-options[hidden] { display: none; }
.st-search-option { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #ececec; border-radius: 0; background: #fff; color: #26354a; text-align: left; font: 400 14px/20px Inter, Arial, sans-serif; cursor: pointer; }
.st-search-option:hover, .st-search-option:focus { background: #f8f6f2; }
.st-search-options p { padding: 10px 12px; margin: 0; color: #687384; }
.st-country-filter { margin: 8px 0; }
.st-selected-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.st-selected-chip { border: 1px solid #9b7843; border-radius: 16px; background: #f8f6f2; color: #293444; padding: 5px 10px; font: inherit; cursor: pointer; }
.st-selected-chip:focus-visible { outline: 2px solid #9b7843; outline-offset: 2px; }
.st-upload-counter { margin: 8px 0 0; color: #687384; font-size: 12px; line-height: 18px; }

/* ST-REV2-GATE-READABILITY — the light-blue panels are explanatory copy. */
#stGateComplianceRev2,
.form-content .info-box {
    background: #e6e6e6;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    color: #293444;
}
#stGateComplianceRev2 { padding: 20px; }
#stGateComplianceRev2 > strong { display: block; margin-bottom: 10px; font-size: 16px; line-height: 24px; }
#stGateComplianceRev2 p,
#stGateComplianceRev2 details p {
    margin: 0 0 10px;
    color: #53657a;
    font-size: 14px;
    line-height: 1.6;
}
#stGateComplianceRev2 details { margin-top: 12px; }
#stGateComplianceRev2 summary { cursor: pointer; color: #293444; font-weight: 600; }
#stGateComplianceRev2 details .field-help { padding-top: 14px; }
.form-content .info-box > strong { color: #293444; font-size: 14px; line-height: 20px; }
.form-content .info-box p { line-height: 1.5; }

/* ST-REV2-GATE-CONSENTS — optional and required choices remain independent. */
#activationForm .checkbox-row,
#activationForm #stRecontactConsent { font-size: 14px; line-height: 21px; }
#activationForm .checkbox-row input { width: 20px; height: 20px; accent-color: #9b7843; }
#activationForm .checkbox-row:focus-within,
#activationForm .option-row:focus-within { outline: 2px solid #9b7843; outline-offset: 2px; }
#activationForm .checkbox-row[aria-invalid="true"] { color: #b44b4b; }
#activationEmail { background: #fff; border-color: #b9b4aa; }
#activationEmail:focus-visible { outline: 2px solid #9b7843; outline-offset: 1px; }
#activationEmail:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; -webkit-text-fill-color: #293444; }

/* ST-REV2-RESEND-BUTTON — a visible action boundary even when disabled. */
#otpVerification #resendOtpButton {
    border: 1px solid #d9d5ce;
    border-radius: 6px;
    background: #fff;
    color: #293444;
    min-height: 44px;
}
#otpVerification #resendOtpButton:hover:not(:disabled) { border-color: #9b7843; background: #f8f6f2; }
#otpVerification #resendOtpButton:focus-visible { outline: 2px solid #9b7843; outline-offset: 2px; }
#otpVerification #resendOtpButton:disabled { opacity: 1; color: #9a9fa8; background: #f8f6f2; border-color: #d9d5ce; }
label.option-row[hidden], label.checkbox-row[hidden] { display: none !important; }
#otpVerification .otp-card .form-message { min-height: 20px; margin-top: 8px; font-size: 12px; }
@media (max-width: 480px) {
    #otpVerification .otp-card { padding: 24px 16px; }
    #stOtpBoxes { gap: 6px; max-width: 100%; }
    #stOtpBoxes input { width: min(52px, calc((100vw - 80px) / 6)); height: 52px; }
}

/* ST-AF-FIGMA-SHELL-01 — Corporate Desk form layout, Figma 442:7486.
   The Figma frame is an older content draft. These rules change presentation
   only; section names, field wording and form state remain JS-owned. */
body,
.app-shell {
    background: #293444;
}

.app-shell {
    width: 100%;
    max-width: none;
}

.app-header {
    max-width: 1440px;
    min-height: 132px;
    margin: auto;
    padding: 32px 58px;
    background: transparent;
    color: #d9d9d9;
    border-bottom: 1px solid rgba(143, 119, 83, .6);
}

.brand-name {
    color: #c0a373;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .02em;
}
.brand-mark {
    display: block;
    width: min(328px, 100%);
    height: auto;
    max-width: none;
}

/* ST-AF-GATEWAY-REV2 — Corporate Desk entry composition, Figma 421:4239. */
.app-shell.gateway-active > .tab-navigation,
.app-shell.gateway-active > .progress-area,
.app-shell.gateway-active > .application-workspace { display: none; }
.application-gateway {
    display: grid;
    grid-template-columns: minmax(0, 287px) minmax(0, 739px);
    justify-content: center;
    align-items: start;
    gap: 54px;
    max-width: 1440px;
    min-height: 690px;
    margin: 0 auto;
    padding: 100px clamp(24px, calc((100vw - 1080px) / 2), 180px);
    color: #d9d9d9;
}
.gateway-intro { padding-top: 0; }
.gateway-eyebrow {
    margin: 0 0 20px;
    color: #b8a17c;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
/* Gateway introduction: values from Corporate Desk 1, Frame 2. */
.gateway-intro h1 {
    max-width: 287px;
    margin: 0;
    color: #8F7753;
    font-family: "Domine", Georgia, serif;
    font-size: 39px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
}
.gateway-intro h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 20px 0;
    background: #8F7753;
}
.gateway-intro > p:not(.gateway-eyebrow) {
    max-width: 287px;
    margin: 0;
    color: #D9D9D9;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
}
.gateway-contact-note {
    max-width: 290px;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid #8f7753;
    border-radius: 8px;
    color: #d9d9d9;
    font-size: 12px;
}
.gateway-panel {
    width: min(100%, 739px);
    padding: 51px 75px;
    border: 1px solid #8F7753;
    border-radius: 10px;
    background: #d9d9d9;
    box-shadow: 0 24px 30px rgba(0,0,0,.15);
    color: #293444;
}
.gateway-step {
    margin: 0 0 18px;
    width: 100%;
    min-height: 35px;
    text-align: center;
    color: #293444;
    font-family: "Domine", Georgia, serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.gateway-step-track { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 0 0 18px; height: 1px; background: #ECECEC; }
.gateway-step-track span.complete { background: #a88752; }
.gateway-panel h2[data-eyebrow]::before { content: attr(data-eyebrow); display: block; margin: 0 0 14px; color: #a88752; font: 600 11px/1.25 Inter, Arial, sans-serif; text-align: left; text-transform: uppercase; }
.gateway-panel h2[data-eyebrow] { text-align: left; }
.gateway-panel h2:empty { display: none; }
.gateway-panel h2:empty::before { display: block; }
.gateway-panel h2 {
    width: 100%;
    min-height: 35px;
    margin: 0;
    text-align: center;
    color: #293444;
    font-family: "Domine", Georgia, serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.gateway-panel > p:not(.gateway-step):not(.gateway-note) {
    max-width: none;
    width: 100%;
    margin: 18px 0;
    text-align: left;
    color: #50555C;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}
.gateway-macro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gateway-macro-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 259px;
    padding: 22px 15px 18px;
    border: 1px solid #b9b4aa;
    border-radius: 8px;
    background: transparent;
    color: #293444;
    text-align: left;
}
/* Keyboard navigation stays visible without changing the card colours. */
.gateway-macro-card:focus-visible {
    outline: 2px solid #8F7753;
    outline-offset: 3px;
}
.gateway-macro-card span { font-size: 18px; }
.gateway-macro-card img { align-self: center; width: 58px; height: 58px; max-width: none; margin: 12px 0 16px; }
.gateway-macro-card strong { margin-top: auto; font-family: "EB Garamond", Georgia, serif; font-size: 16px; font-weight: 400; line-height: 1.3; }
.gateway-macro-card small { display: block; min-height: 63px; margin-top: 8px; font-size: 14px; line-height: 21px; }
.gateway-services > div { display: grid; gap: 10px; }
.gateway-service-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 112px;
    padding: 20px 22px 20px 98px;
    border: 1px solid #a88752;
    border-radius: 8px;
    background: transparent;
    color: #293444;
    text-align: left;
    font-family: Inter, Arial, sans-serif;
}
.gateway-service-card img { position: absolute; left: 20px; top: 20px; width: 58px; height: 58px; padding: 10px; border-radius: 50%; background: #e0e0e0; }
.gateway-service-card span { color: #a88752; font-size: 12px; font-weight: 600; }
.gateway-service-card strong { font: 400 18px/1.25 "EB Garamond", Georgia, serif; }
.gateway-service-card small { color: #545961; font-size: 13px; line-height: 1.5; }
.gateway-service-card:disabled { opacity: .58; cursor: not-allowed; }
.gateway-service-card:hover,
.gateway-service-card:focus-visible { border-color: #8f7753; background: #f0e5d1; }
.gateway-service-card:disabled:hover { background: transparent; }
.gateway-preview-heading { display: flex; align-items: center; gap: 18px; }
.gateway-preview::before { content: attr(data-label); display: block; margin: 0 0 18px; color: #a88752; font: 600 11px/1.25 Inter, Arial, sans-serif; text-transform: uppercase; }
.gateway-panel:has(.gateway-preview:not([hidden])) > h2 { display: none; }
.gateway-preview-heading img { flex: 0 0 58px; }
.gateway-preview-heading h3 { margin: 0; font: 400 27px/1.15 "EB Garamond", Georgia, serif; }
.gateway-preview > p { margin: 18px 0; color: #545961; font-size: 15px; line-height: 1.5; }
.gateway-preview-purpose { padding: 18px 20px; border-radius: 8px; background: #e6e6e6; }
.gateway-preview-purpose h4 { margin: 0 0 8px; font: 400 18px/1.2 "EB Garamond", Georgia, serif; }
.gateway-preview-purpose p { margin: 0; color: #545961; font-size: 14px; line-height: 1.5; }
.gateway-preview-actions { display: flex; justify-content: space-between; align-items: center; }
.gateway-preview-actions .gateway-back { margin: 0; }
.gateway-preview-continue { padding: 11px 20px; border: 0; border-radius: 22px; background: #293446; color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.gateway-back {
    margin-top: 20px;
    padding: 8px 12px;
    border: 1px solid #8f7753;
    border-radius: 40px;
    background: transparent;
    color: #8f7753;
    font-size: 12px;
}
.gateway-unavailable { padding: 20px; border: 1px solid #b9b4aa; border-radius: 7px; }
.gateway-note { margin: 22px 0 0; text-align: center; color: #687384; font-size: 12px; }
@media (max-width: 1150px) and (min-width: 801px) {
    .application-gateway { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding-inline: 24px; }
    .gateway-panel { padding: 38px 45px; }
}
@media (max-width: 800px) {
    .application-gateway { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 28px; }
    .gateway-intro h1,
    .gateway-intro > p:not(.gateway-eyebrow) { max-width: none; }
    .gateway-contact-note { display: none; }
}
@media (max-width: 520px) {
    .application-gateway { padding: 28px 16px 48px; }
    .gateway-panel { padding: 28px 20px; }
    .gateway-macro-grid { grid-template-columns: 1fr 1fr; }
    .gateway-macro-card { min-height: 164px; padding: 12px; }
    .gateway-macro-card strong { font-size: 14px; }
    .gateway-macro-card small { font-size: 12px; line-height: 1.4; }
    .gateway-service-card { padding-left: 70px; }
    .gateway-service-card img { left: 12px; width: 46px; height: 46px; }
}

.brand-subtitle {
    color: #8f7753;
    font-size: 10px;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.tab-navigation {
    width: min(100% - 40px, 1286px);
    margin: 18px auto 0;
    padding: 0;
    gap: 6px;
    background: transparent;
    border: 0;
}

.tab-button {
    min-width: 180px;
    padding: 10px 14px;
    color: #c2cbd8;
    border: 1px solid rgba(143, 119, 83, .45);
    border-radius: 5px;
}

.tab-button:hover,
.tab-button.active {
    background: #2e3d51;
    color: #fff;
    border-color: #8f7753;
}

.progress-area {
    width: min(100% - 40px, 1286px);
    margin: 0 auto;
    padding: 18px 0;
    background: transparent;
    color: #d9d9d9;
    border: 0;
}

.form-heading h1 { color: #d9d9d9; }
.tab-description,
.progress-text { color: #c2cbd8; }
.progress-track { background: #2e3d51; }

.application-workspace {
    width: min(100% - 40px, 1286px);
    max-width: 1286px;
    min-height: 720px;
    margin: 24px auto 80px;
    padding: 0;
    gap: 0;
    grid-template-columns: minmax(280px, 46.5%) minmax(0, 53.5%);
    align-items: stretch;
    filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .17));
}

.section-sidebar {
    position: static;
    align-self: stretch;
    max-height: none;
    overflow: visible;
    /* Desktop sidebar spacing and surface from Figma Frame 9565. */
    padding: 122px 49px;
    background: #2E3D51;
    border: 1px solid #8F7753;
    border-radius: 8px;
    box-shadow: 0 100px 80px 0 rgba(0, 0, 0, 0.15),
        0 41.778px 33.422px 0 rgba(0, 0, 0, 0.11),
        0 22.336px 17.869px 0 rgba(0, 0, 0, 0.09),
        0 12.522px 10.017px 0 rgba(0, 0, 0, 0.08),
        0 6.65px 5.32px 0 rgba(0, 0, 0, 0.06),
        0 2.767px 2.214px 0 rgba(0, 0, 0, 0.04);
}

.sidebar-heading {
    color: #c2cbd8;
    font-size: 11px;
    letter-spacing: .1em;
}

.section-navigation-list { gap: 12px; }
.section-navigation-button {
    position: relative;
    min-height: 58px;
    padding: 8px 48px 8px 0;
    color: #c2cbd8;
    border: 0;
    border-radius: 0;
}
.section-navigation-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border: 1px solid #8f7753;
    border-radius: 50%;
}
.section-navigation-button.active::after,
.section-navigation-button.completed::after {
    background: #8f7753;
    box-shadow: inset 0 0 0 5px #2e3d51;
}
.section-navigation-button:hover,
.section-navigation-button.active,
.section-navigation-button.completed,
.section-navigation-button.attention {
    background: transparent;
    color: #fff;
    border-color: transparent;
}
.section-navigation-number {
    color: #8f7753;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.section-navigation-title {
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(20px, 1.95vw, 28px);
    font-weight: 400;
    line-height: 1.3;
}
.sidebar-actions { border-color: rgba(143, 119, 83, .5); }
.sidebar-actions .secondary-button,
.sidebar-actions .ghost-button {
    background: transparent;
    color: #d9d9d9;
    border-color: #8f7753;
}

.form-content { display: flex; flex-direction: column; }
.form-content > .access-view:not(.hidden) { flex: 1; }
.form-content .section-card {
    min-height: 100%;
    background: #d9d9d9;
    border: 1px solid #8f7753;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
}
/* ST-AF-FIGMA-ENTRY-05 — The three entry panels share the 739px Figma card. */
.app-shell.entry-access:not(.gateway-active) > .tab-navigation,
.app-shell.entry-access:not(.gateway-active) > .progress-area { display: none; }
.app-shell.entry-access:not(.gateway-active) .application-workspace {
    display: block;
    width: min(100% - 40px, 739px);
    min-height: 0;
    margin: 72px auto 90px;
    filter: none;
}
.app-shell.entry-access .section-sidebar { display: none; }
.app-shell.entry-access .form-content .section-card,
.app-shell.entry-access #otpVerification .otp-card {
    width: 100%; max-width: none; min-height: 0;
    padding: 48px 74px;
    border: 1px solid #a88752;
    border-radius: 10px;
    background: #d9d9d9;
    box-shadow: 0 24px 30px rgba(0,0,0,.15);
}
.app-shell.entry-access .form-content .section-card::before {
    content: attr(data-entry-progress);
    display: block;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
    color: #293446;
    text-align: center;
    font: 400 27px/1.2 "EB Garamond", Georgia, serif;
}
.app-shell.entry-access #anonymousPreview .section-card { --entry-label: "3/5"; }
.app-shell.entry-access #activationGate .section-card { --entry-label: "4/5"; }
.app-shell.entry-access #otpVerification .section-card { --entry-label: "5/5"; }
.app-shell.entry-access .form-content .section-card::before { content: var(--entry-label); }
.app-shell.entry-access .form-content .section-card-header { margin: 0; padding: 0 0 18px; }
.app-shell.entry-access #activationForm { padding: 0; }
.app-shell.entry-access #stGateComplianceRev2 { background: #e6e6e6; border-color: #e6e6e6; }
.app-shell.entry-access #otpVerification .otp-card h2 { font: 400 30px/1.2 "EB Garamond", Georgia, serif; }
.app-shell.entry-access #otpVerification .otp-card > p:not(.section-number) { color: #545961; }
.app-shell.entry-access .otp-resend-countdown { margin-top: 12px; }
@media (max-width: 700px) {
    .app-shell.entry-access:not(.gateway-active) .application-workspace { width: min(100% - 32px, 739px); margin: 28px auto 48px; padding: 0; }
    .app-shell.entry-access .form-content .section-card,
    .app-shell.entry-access #otpVerification .otp-card { padding: 28px 20px; }
}
.form-content .section-card-header {
    margin: 0 74px;
    padding: 48px 0 18px;
    border-bottom: 0;
}
.form-content .section-card-header h2,
.form-content .otp-card h2 {
    color: #293444;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(28px, 2.5vw, 36px);
    font-weight: 400;
    line-height: 1.25;
}
.form-content .section-number {
    color: #8f7753;
    font-size: 11px;
    font-weight: 500;
}
.form-content .section-content { padding: 12px 74px 56px; }
.form-content .navigation-actions {
    margin: 0 74px;
    padding: 18px 0 48px;
    border-color: #b9b4aa;
}
.form-content .navigation-actions .primary-button {
    min-width: 180px;
    min-height: 34px;
    background: #293444;
    border-color: #293444;
    border-radius: 40px;
    font-size: 12px;
}
.form-content .navigation-actions .secondary-button {
    min-height: 34px;
    color: #8f7753;
    background: transparent;
    border-color: #8f7753;
    border-radius: 40px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .application-workspace {
        grid-template-columns: minmax(220px, 36%) minmax(0, 64%);
    }
    .section-sidebar { padding: 36px 24px; }
    .form-content .section-card-header { margin: 0 32px; }
    .form-content .section-content { padding: 12px 32px 40px; }
    .form-content .navigation-actions { margin: 0 32px; padding-bottom: 32px; }
}

@media (max-width: 700px) {
    .app-header { min-height: 94px; padding: 20px; }
    .application-workspace {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 600px);
        margin-top: 12px;
        filter: none;
    }
    .section-sidebar {
        padding: 20px;
        border-radius: 8px 8px 0 0;
    }
    .section-navigation-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 6px;
    }
    .section-navigation-button {
        flex: 0 0 165px;
        min-height: 58px;
        padding-right: 30px;
    }
    .section-navigation-button::after { width: 18px; height: 18px; }
    .section-navigation-title { font-size: 15px; }
    .sidebar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-content .section-card {
        border: 1px solid #8f7753;
        border-top: 0;
        border-radius: 0 0 8px 8px;
    }
    .form-content .section-card-header { margin: 0 20px; padding-top: 28px; }
    .form-content .section-content { padding: 12px 20px 28px; }
    .form-content .navigation-actions { margin: 0 20px; padding-bottom: 24px; }
    .tab-navigation,
    .progress-area { width: min(100% - 24px, 600px); }
}

/* ST-AF-FIGMA-CONTROLS-01 — AF Concept Round 01 states inside the form panel. */
.form-content .form-section { gap: 24px; }
.form-content .subsection-heading {
    color: #26354a;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}
.form-content .form-group > label,
.form-content .field-label {
    color: #26354a;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}
.form-content .field-help,
.form-content .option-helper {
    color: #687384;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="url"],
.form-content input[type="tel"],
.form-content input[type="date"],
.form-content input[type="number"],
.form-content input[type="search"],
.form-content select,
.form-content textarea {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #b9b4aa;
    border-radius: 8px;
    background: #fff;
    color: #26354a;
    font-size: 16px;
    line-height: 24px;
}
.form-content textarea { min-height: 120px; }
.form-content :is(input,select,textarea):focus-visible {
    border: 2px solid #9b7843;
    padding: 11px 15px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: none;
}
.form-content :is(input,select,textarea)[aria-invalid="true"] {
    border: 2px solid #b44b4b;
    padding: 11px 15px;
    background: #fff;
}
.form-content :is(input,select,textarea):disabled {
    color: #9a9fa8;
    border-color: #d9d5ce;
    background: #f8f6f2;
}
.form-content :is(input,textarea)::placeholder { color: #9a9fa8; }
.form-content .option-row:has(input[type="radio"]),
.form-content .option-row:has(input[type="checkbox"]),
.form-content .option-card {
    min-height: 56px;
    padding: 12px;
    gap: 12px;
    border: 1px solid #b9b4aa;
    border-radius: 8px;
    background: #fff;
    color: #26354a;
}
.form-content .option-row:has(input:checked),
.form-content .option-card:has(input:checked) {
    border-color: #9b7843;
    background: #fff;
}
.form-content .option-row:has(input:focus-visible),
.form-content .option-card:has(input:focus-visible) {
    outline: 2px solid #9b7843;
    outline-offset: 2px;
}
.form-content .option-row:has(input:disabled),
.form-content .option-card:has(input:disabled) {
    border-color: #d9d5ce;
    background: #f8f6f2;
}
.form-content .option-row span,
.form-content .option-card span { font-size: 14px; line-height: 20px; }
.form-content .option-row input[type="checkbox"],
.form-content .option-row input[type="radio"],
.form-content .option-card input[type="checkbox"],
.form-content .option-card input[type="radio"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #9b7843;
}
.form-content .option-row input[type="checkbox"],
.form-content .option-card input[type="checkbox"] { border-radius: 4px; }
.form-content .upload-dropzone {
    border-color: #d9d5ce;
    border-radius: 8px;
    background: #fff;
}
.form-content .upload-status.uploaded,
.form-content .upload-status.accepted {
    background: #f0e5d1;
    color: #9b7843;
}
.form-content .review-block,
.form-content .summary-card,
.form-content .repeatable-card,
.form-content .profile-card {
    border-color: #d9d5ce;
    border-radius: 8px;
    background: #fff;
}
.form-content .field-error,
.form-content .form-message:not(.success) { color: #b44b4b; }

@media (max-width: 700px) {
    .form-content .option-card-grid,
    .form-content .form-grid,
    .form-content .form-grid.three-columns { grid-template-columns: 1fr; }
}

/* ST-AF-FIGMA-TRUST-01 — Shared feature strip and partner marks. */
.torri-feature-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 274px;
    align-items: center;
    padding: 64px max(32px, calc((100vw - 1282px) / 2));
    background: #2e3d51;
    color: #fff;
}
.torri-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    min-height: 146px;
    align-items: center;
    padding: 0 26px;
    border-right: 2px solid #d9d9d9;
}
.torri-feature:first-child { padding-left: 0; }
.torri-feature:last-child { border-right: 0; padding-right: 0; }
.torri-feature img { flex: 0 0 63px; width: 63px; height: 63px; max-width: none; }
.torri-feature strong { display: block; font-size: 14px; line-height: 1.25; }
.torri-feature p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.torri-footer {
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    align-items: flex-end;
    padding: 100px 78px;
    background: #293444 url("../assets/footer-texture.png") center / cover no-repeat;
    background-blend-mode: multiply;
    color: #d9d9d9;
}
.torri-footer-brands {
    width: 100%;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 96px;
    align-items: end;
    min-height: 169px;
}
.torri-footer-brands > div { min-width: 0; }
.torri-footer-brands span { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 600; }
.torri-footer-brands img { display: block; max-width: 100%; height: auto; }
.torri-footer-lower { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 300px 94px; gap: 70px; border-top: 2px solid #8f7753; padding-top: 32px; }
.torri-footer-company { display: flex; flex-direction: column; gap: 16px; }
.torri-footer-compliance { display: flex; gap: 8px; align-items: flex-start; }
.torri-footer-compliance img { width: 37px; height: 47px; object-fit: contain; }
.torri-footer-compliance strong { display: block; color: #8f7753; font-size: 12px; line-height: 1.25; }
.torri-footer-compliance p { margin: 4px 0 0; color: #fff; font-size: 9px; line-height: 1.5; }
.torri-footer-company > p, .torri-footer-legal { margin: 0; color: #ececec; font-size: 11px; line-height: 1.5; }
.torri-footer-company > p { padding-top: 16px; border-top: 2px solid #8f7753; }
.torri-footer-nav, .torri-footer-social { display: flex; flex-direction: column; gap: 8px; }
.torri-footer-nav h2, .torri-footer-social h2 { margin: 0 0 4px; color: #8f7753; font: 400 16px/1.25 Inter, Arial, sans-serif; }
.torri-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.torri-footer-links > div { display: flex; flex-direction: column; gap: 10px; }
.torri-footer-nav a, .torri-footer-nav span { color: #fff; text-decoration: none; font-size: 14px; line-height: 1.5; }
.torri-footer-nav a:hover, .torri-footer-nav a:focus-visible { text-decoration: underline; }
.torri-footer-linkedin { display: block; width: 28px; height: 28px; background: #d9d9d9; mask: url("../assets/footer-linkedin-mask.png") center / contain no-repeat; }
@media (max-width: 900px) {
    .torri-feature-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
    .torri-feature:nth-child(2) { border-right: 0; }
    .torri-footer-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .torri-footer-lower { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
    .torri-footer-social { grid-column: 2; }
}
@media (max-width: 560px) {
    .torri-feature-band { grid-template-columns: 1fr; padding: 36px 20px; gap: 24px; }
    .torri-feature { padding: 0; border: 0; }
    .torri-footer { min-height: 0; padding: 48px 20px; }
    .torri-footer-brands { grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
    .torri-footer-lower { grid-template-columns: 1fr; gap: 28px; }
    .torri-footer-social { grid-column: auto; }
}

/* Public-site header composition from the Figma reference, in English for Rev2. */
.app-header {
    /* Figma BLUE header: 1440px frame with 33px / 58px padding. */
    width: 100%;
    max-width: 1440px;
    min-height: 148.4px;
    padding: 33px 58px;
    align-items: flex-end;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    /* Keep navigation readable when the sticky header passes over form panels. */
    background: #293444;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid #8f7753;
}
.brand-area { flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: clamp(225px, 24vw, 328px); }
.site-navigation { display: flex; align-items: center; gap: clamp(15px, 2.5vw, 43px); margin-left: auto; }
.site-nav-link, .site-language {
    position: relative; color: #d9d9d9; font: 600 11px/1.4 Inter, Arial, sans-serif;
    text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.site-nav-link { padding: 15px 0; }
.site-nav-link:hover, .site-nav-link:focus-visible { color: #b8a17c; }
.site-nav-link.current::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: #8f7753; }
.site-header-actions { display: inline-flex; align-items: center; gap: 21px; flex: 0 0 auto; }
.site-language { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 28px; height: 46.5px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; cursor: pointer; appearance: none; }
.site-language:focus { outline: none; }
.site-language:focus-visible { outline: 2px solid #d9d9d9; outline-offset: 4px; }
.site-language-control { position: relative; display: inline-flex; align-items: center; gap: 16px; }
.site-language-divider { display: block; width: 1px; height: 46.5px; background: #d9d9d9; flex: 0 0 1px; }
.site-language-menu { position: absolute; z-index: 100; left: 0; top: calc(100% + 4px); min-width: 145px; padding: 5px; border: 1px solid #8f7753; border-radius: 8px; background: #293444; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.site-language-menu[hidden] { display: none; }
.site-language-menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 9px 10px; border: 0; border-radius: 4px; background: transparent; color: #d9d9d9; font: 600 11px/1.4 Inter, Arial, sans-serif; cursor: pointer; text-align: left; }
.site-language-menu button span { font-weight: 400; }
.site-language-menu button:hover, .site-language-menu button:focus-visible { background: #2e3d51; outline: 1px solid #a88752; }
.site-language-menu button[aria-current="true"] { color: #e1cba4; }
.site-language-chevron { display: block; width: 15.8955px; height: 15.8955px; }
.site-contact-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 36.5px; flex: 0 0 auto;
    padding: 12px 24px; border: 0; border-radius: 40px; color: #293444;
    /* Preserve the angle and stop positions from the Figma button fill. */
    background: linear-gradient(97deg, #8F7753 -13.84%, #E1CBA4 20.55%, #B8A17C 51%, #735B39 88.78%);
    font: 600 10px/1.25 Inter, Arial, sans-serif; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.site-contact-button:focus-visible { outline: 2px solid #d9d9d9; outline-offset: 4px; }
.site-navigation a:focus-visible, .brand-area:focus-visible, .site-breadcrumb a:focus-visible { outline: 2px solid #b8a17c; outline-offset: 4px; }
.site-breadcrumb { max-width: 1440px; min-height: 38px; margin: 0 auto; padding: 0 clamp(24px, 3.2vw, 58px); display: flex; align-items: center; gap: 12px; color: #d9d9d9; font: 600 11px Inter, Arial, sans-serif; }
.site-breadcrumb a { color: #d9d9d9; text-decoration: none; font-weight: 400; }
.site-breadcrumb a:hover { color: #b8a17c; }
@media (max-width: 1120px) {
    .app-header { min-height: 112px; }
    .site-navigation { gap: 14px; }
    .site-nav-link, .site-language, .site-contact-button { font-size: 10px; }
    .site-contact-button { padding: 12px 24px; }
}
@media (max-width: 850px) {
    .app-header { flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
    .site-navigation { width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
    .site-nav-link { padding: 8px 0; }
    .site-breadcrumb { padding: 24px 20px 12px; }
}
/* AF Concept 06: searchable multi-select with chips inside the field. */
.st-multi-control { position: relative; width: 100%; }
.st-multi-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border: 1px solid #b9b4aa; border-radius: 8px; background: #fff; cursor: text; }
.st-multi-field:focus-within,
.st-multi-control:has(.st-multi-panel:not([hidden])) .st-multi-field { border: 2px solid #9b7843; padding: 7px 11px; }
.st-multi-field .st-selected-chips { display: contents; }
.st-multi-field .st-selected-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; padding: 6px 8px 6px 10px; border: 0; border-radius: 999px; background: #f0e5d1; color: #26354a; font: 400 12px/18px Inter, Arial, sans-serif; }
.st-multi-field .st-selected-chip .st-chip-remove { color: #9b7843; font: 500 14px/18px Inter, Arial, sans-serif; }
.form-content .st-multi-field input.st-country-filter { flex: 1 1 140px; width: auto; min-width: 90px; min-height: 28px; padding: 0; border: 0; outline: none; background: transparent; color: #26354a; font: 16px/24px Inter, Arial, sans-serif; }
.form-content .st-multi-control:not(:has(.st-multi-panel:not([hidden]))) .st-multi-field:has(.st-selected-chip) input.st-country-filter:not(:focus) { flex: 0 1 0; width: 0; min-width: 0; }
.form-content .st-multi-field input.st-country-filter:focus { outline: none; }
.form-content .st-multi-field input.st-country-filter::placeholder { color: #9a9fa8; }
.st-multi-arrow { margin-left: auto; color: #687384; font: 400 16px/24px Inter, Arial, sans-serif; }
.st-multi-panel { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; max-height: 230px; overflow-y: auto; padding: 8px; border: 1px solid #b9b4aa; border-radius: 8px; background: #fff; box-shadow: 0 12px 24px rgba(41,52,68,.13); }
.st-multi-panel[hidden], .st-multi-panel label[hidden] { display: none !important; }
.form-content .st-multi-panel label.option-row,
.form-content .st-multi-panel label.checkbox-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 28px; margin: 0; padding: 0 8px; border: 0; border-radius: 0; background: #fff; color: #26354a; font: 400 12px/18px Inter, Arial, sans-serif; cursor: pointer; }
.form-content .st-multi-panel label.option-row span,
.form-content .st-multi-panel label.checkbox-row span { font: 400 12px/18px Inter, Arial, sans-serif; }
.form-content .st-multi-panel label.option-row:has(input:checked),
.form-content .st-multi-panel label.checkbox-row:has(input:checked) { border: 0; background: #fff; }
.st-multi-panel label:hover, .st-multi-panel label:focus-within { background: #f8f6f2; }
.form-content .st-multi-panel input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; border: 1px solid #b9b4aa; border-radius: 3px; appearance: none; background: #fff; cursor: pointer; }
.form-content .st-multi-panel input[type="checkbox"]:checked { border-color: #9b7843; background: #9b7843; }
.form-content .st-multi-panel input[type="checkbox"]:checked::after { content: ""; display: block; width: 8px; height: 5px; margin: 3px 0 0 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.form-content .st-multi-panel input[type="checkbox"]:focus-visible { outline: 2px solid #9b7843; outline-offset: 2px; }
.st-multi-helper { margin-top: 6px; color: #687384; font-size: 12px; line-height: 18px; }

/* Search belongs inside the chip field; it must not inherit a second input border. */
.form-content .st-multi-field input.st-country-filter:focus-visible {
    border: 0; padding: 0; outline: none; box-shadow: none;
}
.st-multi-arrow {
    width: 16px; height: 16px; flex: 0 0 16px;
    background: #687384;
    mask: url("../assets/language-chevron.svg") center / 16px 16px no-repeat;
}
.st-multi-field:has(input:disabled) { background: #f8f6f2; color: #9a9fa8; cursor: default; }

/* Figma footer: the main mark is separate from the three partner marks. */
.torri-footer-partners {
    display: grid; grid-template-columns: 315.835px 281px minmax(0, 1fr);
    align-items: end; gap: 20.129px; min-width: 0;
}
.torri-footer-partners > div { min-width: 0; min-height: 124.441px; }
.torri-footer-partners > div + div { border-left: 2px solid #8f7753; padding-left: 20.129px; }
@media (max-width: 1320px) {
    .torri-footer-brands { gap: 40px; }
    .torri-footer-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .torri-footer-brands { grid-template-columns: 1fr; }
    .torri-footer-brands > img { width: 290px; max-width: 100%; }
}
@media (max-width: 650px) {
    .torri-footer-partners { grid-template-columns: 1fr; gap: 24px; }
    .torri-footer-partners > div { min-height: 0; }
    .torri-footer-partners > div + div { border: 0; padding-left: 0; }
    .torri-feature { min-height: 0; }
}

/* Allow the mobile grid to shrink around the scrollable section navigation. */
.section-sidebar, .form-content { min-width: 0; }
@media (max-width: 700px) {
    .application-workspace { grid-template-columns: minmax(0, 1fr); }
    .section-sidebar nav { min-width: 0; }
    .section-navigation-list { max-width: 100%; }
    .tab-button { min-width: 0; }
    .site-navigation { min-width: 0; max-width: 100%; }
}

.st-multi-panel > .option-group, .st-multi-panel > .checkbox-grid {
    display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0;
    border: 0; background: transparent;
}

/* Selection has two numbered screens. Gate and verification are separate
   actions, so they do not inherit a made-up five-step counter. */

.app-shell.entry-access .form-content .section-card::before { content: none; display: none; }

/* Figma section markers. Keep the SVG geometry and gradient coordinates together. */
:root {
    --section-icon-empty: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2235%22%20height%3D%2235%22%20viewBox%3D%220%200%2035%2035%22%20fill%3D%22none%22%3E%3Cg%20clip-path%3D%22url%28%23clip%29%22%3E%3Ccircle%20cx%3D%2217.2915%22%20cy%3D%2217.2915%22%20r%3D%2216.5%22%20stroke%3D%22url%28%23gold%29%22%20stroke-width%3D%222%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%2217.2915%22%20y1%3D%22-0.208496%22%20x2%3D%2217.2915%22%20y2%3D%2234.7915%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip%22%3E%3Crect%20width%3D%2235%22%20height%3D%2235%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    --section-icon-current: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2235%22%20height%3D%2235%22%20viewBox%3D%220%200%2035%2035%22%20fill%3D%22none%22%3E%3Cg%20clip-path%3D%22url%28%23clip%29%22%3E%3Ccircle%20cx%3D%2217.2915%22%20cy%3D%2217.2915%22%20r%3D%2216.5%22%20stroke%3D%22url%28%23gold%29%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2217.292%22%20cy%3D%2217.292%22%20r%3D%225.5%22%20fill%3D%22url%28%23dot%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%2217.2915%22%20y1%3D%22-0.208496%22%20x2%3D%2217.2915%22%20y2%3D%2234.7915%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22dot%22%20x1%3D%2217.292%22%20y1%3D%2211.792%22%20x2%3D%2217.292%22%20y2%3D%2222.792%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip%22%3E%3Crect%20width%3D%2235%22%20height%3D%2235%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    --section-icon-complete: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2235%22%20height%3D%2235%22%20viewBox%3D%220%200%2035%2035%22%20fill%3D%22none%22%3E%3Cg%20clip-path%3D%22url%28%23clip%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M17.2917%200C7.74195%200%200%207.74195%200%2017.2917C0%2026.8414%207.74195%2034.5833%2017.2917%2034.5833C26.8414%2034.5833%2034.5833%2026.8414%2034.5833%2017.2917C34.5833%207.74195%2026.8414%200%2017.2917%200ZM24.7868%2014.3678C24.9248%2014.21%2025.0299%2014.0263%2025.0958%2013.8273C25.1618%2013.6283%2025.1873%2013.4182%2025.1708%2013.2092C25.1543%2013.0003%2025.0962%2012.7967%2024.9999%2012.6105C24.9036%2012.4244%2024.7711%2012.2593%2024.61%2012.1251C24.449%2011.991%2024.2628%2011.8903%2024.0623%2011.8292C23.8618%2011.768%2023.6511%2011.7476%2023.4426%2011.7691C23.2341%2011.7905%2023.032%2011.8535%2022.8482%2011.9543C22.6644%2012.055%2022.5026%2012.1915%2022.3723%2012.3557L15.6128%2020.4655L12.1152%2016.9663C11.8187%2016.6799%2011.4216%2016.5215%2011.0094%2016.5251C10.5973%2016.5286%2010.203%2016.694%209.91155%2016.9854C9.6201%2017.2769%209.45477%2017.6711%209.45119%2018.0833C9.44761%2018.4955%209.60606%2018.8926%209.89241%2019.189L14.6083%2023.9049C14.7628%2024.0593%2014.9477%2024.1798%2015.1513%2024.2587C15.3549%2024.3377%2015.5727%2024.3733%2015.7909%2024.3634C16.009%2024.3535%2016.2227%2024.2982%2016.4183%2024.2012C16.6139%2024.1041%2016.7871%2023.9674%2016.927%2023.7996L24.7868%2014.3678Z%22%20fill%3D%22url%28%23gold%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%22-18.9845%22%20y1%3D%22-12.8901%22%20x2%3D%2239.3477%22%20y2%3D%2244.2812%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip%22%3E%3Crect%20width%3D%2235%22%20height%3D%2235%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    --section-icon-minus: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2235%22%20height%3D%2235%22%20viewBox%3D%220%200%2035%2035%22%20fill%3D%22none%22%3E%3Cg%20clip-path%3D%22url%28%23clip%29%22%3E%3Cpath%20d%3D%22M17.5%200C27.165%200%2035%207.83502%2035%2017.5C35%2027.165%2027.165%2035%2017.5%2035C7.83502%2035%200%2027.165%200%2017.5C0%207.83502%207.83502%200%2017.5%200ZM10%2016C8.89543%2016%208%2016.8954%208%2018C8%2019.1046%208.89543%2020%2010%2020H24C25.1046%2020%2026%2019.1046%2026%2018C26%2016.8954%2025.1046%2016%2024%2016H10Z%22%20fill%3D%22url%28%23gold%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%22-5%22%20y1%3D%22-8.5%22%20x2%3D%2231%22%20y2%3D%2232.5%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip%22%3E%3Crect%20width%3D%2235%22%20height%3D%2235%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
    --section-icon-plus: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2235%22%20height%3D%2235%22%20viewBox%3D%220%200%2035%2035%22%20fill%3D%22none%22%3E%3Cg%20clip-path%3D%22url%28%23clip%29%22%3E%3Cpath%20d%3D%22M17.5%200C27.165%200%2035%207.83502%2035%2017.5C35%2027.165%2027.165%2035%2017.5%2035C7.83502%2035%200%2027.165%200%2017.5C0%207.83502%207.83502%200%2017.5%200ZM17%209C15.8954%209%2015%209.89543%2015%2011V16H10C8.89543%2016%208%2016.8954%208%2018C8%2019.1046%208.89543%2020%2010%2020H15V25C15%2026.1046%2015.8954%2027%2017%2027C18.1046%2027%2019%2026.1046%2019%2025V20H24C25.1046%2020%2026%2019.1046%2026%2018C26%2016.8954%2025.1046%2016%2024%2016H19V11C19%209.89543%2018.1046%209%2017%209Z%22%20fill%3D%22url%28%23gold%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%22-5%22%20y1%3D%22-8.5%22%20x2%3D%2231%22%20y2%3D%2232.5%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%238F7753%22%2F%3E%3Cstop%20offset%3D%220.293269%22%20stop-color%3D%22%23E1CBA4%22%2F%3E%3Cstop%20offset%3D%220.552885%22%20stop-color%3D%22%23B8A17C%22%2F%3E%3Cstop%20offset%3D%220.875%22%20stop-color%3D%22%23735B39%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip%22%3E%3Crect%20width%3D%2235%22%20height%3D%2235%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
}
.section-navigation-button::after {
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 0;
    background: var(--section-icon-empty) center / 35px 35px no-repeat;
    box-shadow: none;
}
.section-navigation-button.active::after {
    background: var(--section-icon-current) center / 35px 35px no-repeat;
    box-shadow: none;
}
.section-navigation-button.completed::after {
    background: var(--section-icon-complete) center / 35px 35px no-repeat;
    box-shadow: none;
}

/* Keep the exported breadcrumb chevron at its Figma size. */
.breadcrumb-chevron { display: block; width: 16px; height: 16px; flex: 0 0 16px; }

/* Gateway contact list: Corporate Desk 1, Frame 3. */
.gateway-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 46px; margin-top: 20px; }
.gateway-contact-row { display: flex; align-items: center; gap: 20px; width: 100%; }
.gateway-contact-icon { display: block; width: 50px; height: 50px; flex: 0 0 50px; }
.gateway-contact-copy { min-width: 0; flex: 1; color: #D9D9D9; }
.gateway-contact-copy h2 {
    margin: 0;
    color: #D9D9D9;
    font: normal 700 16px/125% "Inter", Arial, sans-serif;
}
.gateway-contact-copy p, .gateway-contact-copy a {
    margin: 0;
    color: #D9D9D9;
    font: normal 400 12px/125% "Inter", Arial, sans-serif;
}
.gateway-contact-copy a { overflow-wrap: anywhere; text-decoration: underline; }
.gateway-contact-copy a:focus-visible { outline: 2px solid #B8A17C; outline-offset: 4px; }

.gateway-contact-copy a {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.gateway-contact-copy .gateway-phone-link { text-decoration: none; }
/* Secure-session card: exported padding and icon spacing; border awaits its style export. */
.gateway-secure-sessions {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 15px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background: transparent;
}
.gateway-lock-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; }

/* Keep the reception address clickable without an underline. */
.gateway-contact-copy a[href^="mailto:"] { text-decoration: none; }

/* Corporate macro card: exported Figma layout and text styles. */
.gateway-macro-card .gateway-macro-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 72px;
    flex: 0 0 72px;
}
.gateway-macro-icon svg { display: block; width: 58px; height: 58px; flex-shrink: 0; }
/* Legal macro card uses the exported spacing and typography. */
/* Protection card spacing and number style from the Figma export. */

/* Shared area cards. Keep text and icons in the markup, styling here. */
.gateway-macro-card {
    box-sizing: border-box;
    gap: 12px;
    min-height: 259px;
    padding: 22px 15px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(#D9D9D9, #D9D9D9) padding-box,
        var(--area-card-border-gradient) border-box;
    box-shadow: none;
}
/* Figma colours confirmed; direction and stop positions await its stroke export. */
:root {
    --area-card-border-gradient: linear-gradient(to bottom,
        #8F7753 0%, #E1CBA4 29.3269%, #B8A17C 55.2885%, #735B39 87.5%);
}
.gateway-macro-card > span:first-child {
    color: #293444;
    font: normal 400 18px/normal "Domine", Georgia, serif;
}
.gateway-macro-card strong {
    width: 100%;
    min-height: 22px;
    margin: 0;
    color: #293444;
    font: normal 400 16px/normal "Domine", Georgia, serif;
}
.gateway-macro-card small {
    width: 100%;
    min-height: 0;
    margin: 0;
    color: #293444;
    font: normal 400 14px/21px "Inter", Arial, sans-serif;
}
.gateway-macro-icon img {
    width: 58px;
    height: 58px;
    margin: 0;
    flex-shrink: 0;
}
.gateway-step-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    height: 1px;
    background: transparent;
}
.gateway-step-track span { display: block; height: 1px; background: #ECECEC; }

/* The four Figma rectangles meet edge to edge across the 589px content area. */
.gateway-step-track { gap: 0; }
.gateway-note {
    width: 100%;
    min-height: 20px;
    margin: 18px 0 0;
    text-align: center;
    color: #293444;
    font: normal 400 12px/normal "Inter", Arial, sans-serif;
}
.gateway-note a { color: inherit; text-decoration: none; }
.gateway-note a:focus-visible { outline: 2px solid #8F7753; outline-offset: 3px; }
.gateway-compliance-notice {
    grid-column: 2;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-top: -14px;
    color: #D9D9D9;
}
.gateway-compliance-notice > svg { display: block; width: 42px; height: 42px; flex: 0 0 42px; }
.gateway-compliance-notice > div { flex: 1; min-width: 0; }
.gateway-compliance-notice h2 {
    margin: 0 0 8px;
    color: #D9D9D9;
    font: normal 700 16px/20px "Inter", Arial, sans-serif;
}
.gateway-compliance-notice p {
    margin: 0;
    color: #D9D9D9;
    font: normal 400 12px/18px "Inter", Arial, sans-serif;
}
@media (max-width: 850px) {
    .gateway-compliance-notice { grid-column: 1; margin-top: 0; }
}

/* Four feature columns share the Figma typography and separator geometry. */
.torri-feature-band {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px;
    min-height: 274px;
    padding: 64px 79px;
    background: #2E3D51;
}
.torri-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 146px;
    padding: 0;
    border: 0;
}
.torri-feature:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -27px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 146px;
    background: #D9D9D9;
}
.torri-feature > svg { display: block; width: 63px; height: 63px; flex: 0 0 63px; }
.torri-feature > div { flex: 1; min-width: 0; }
.torri-feature strong { color: #FFFFFF; font: normal 700 14px/17.5px "Inter", Arial, sans-serif; }
.torri-feature p { margin: 8px 0 0; color: #FFFFFF; font: normal 400 12px/18px "Inter", Arial, sans-serif; }
@media (max-width: 1120px) {
    .torri-feature-band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 52px; padding: 48px 32px; }
    .torri-feature:nth-child(2)::after { display: none; }
}
@media (max-width: 700px) {
    .torri-feature-band { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 20px; }
    .torri-feature { min-height: 0; }
    .torri-feature::after { display: none; }
}

/* Service selection has its own spacing; area selection remains unchanged. */
.gateway-panel[data-step="2"] {
    padding: 48px 75px;
    border: 1px solid #A88752;
    box-shadow: none;
}
.gateway-panel[data-step="2"] .gateway-step {
    min-height: 34px; margin: 0 0 22px;
    color: #293446; font: normal 400 27px/normal "Domine", Georgia, serif;
}
.gateway-panel[data-step="2"] .gateway-step-track {
    margin: 0 0 22px; background: #F5F5F5;
}
.gateway-panel[data-step="2"] .gateway-step-track span { background: #F5F5F5; }
.gateway-panel[data-step="2"] #gatewayPanelTitle {
    min-height: 38px; margin: 0; text-align: left; color: #293446;
    font: normal 400 28px/normal "Domine", Georgia, serif;
}
.gateway-panel[data-step="2"] #gatewayPanelTitle::before {
    min-height: 16px; margin: 0 0 22px; color: #A88752;
    font: normal 600 11px/normal "Inter", Arial, sans-serif;
    letter-spacing: .55px;
}
.gateway-panel[data-step="2"] #gatewayPanelDescription {
    min-height: 44px; margin: 22px 0; color: #545961;
    font: normal 400 15px/normal "Inter", Arial, sans-serif;
}
.gateway-services > div { gap: 22px; }
.gateway-service-card {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 20px 22px 20px 20px; min-height: 0;
    border: 1px solid #A88752; border-radius: 8px;
    background: transparent; color: #293446;
}
.gateway-service-icon {
    display: flex; justify-content: center; align-items: center;
    width: 58px; height: 58px; flex: 0 0 58px;
    border-radius: 29px; background: #E0E0E0;
}
.gateway-service-icon svg { display: block; width: 42px; height: 42px; flex-shrink: 0; }
.gateway-service-card .gateway-service-icon img {
    position: static; width: 42px; height: 42px; padding: 0; background: transparent;
}
.gateway-service-copy { display: block; flex: 1; min-width: 0; }
.gateway-service-card strong { display: block; color: #293446; font: normal 400 18px/normal "Domine", Georgia, serif; }
.gateway-service-card small { display: block; margin-top: 6px; color: #545961; font: normal 400 13px/normal "Inter", Arial, sans-serif; }
.gateway-service-card:hover, .gateway-service-card:focus-visible {
    border-color: #A88752; background: transparent;
}
.gateway-service-card:focus-visible { outline: 2px solid #8F7753; outline-offset: 3px; }
.gateway-services::after { content: none; }
#gatewayBackButton {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    width: fit-content; padding: 6px 12px; border: 1px solid #8F7753;
    border-radius: 40px; background: transparent; color: #8F7753;
    font: normal 600 10px/12.5px "Inter", Arial, sans-serif;
    margin: 18px 0 0;
}
#gatewayBackButton svg { display: block; width: 16px; height: 16px; }
.gateway-services > div::after {
    content: ""; display: block; height: 1px; margin-top: 65px;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
@media (max-width: 700px) {
    .gateway-panel[data-step="2"] { padding: 30px 20px; }
}

/* Service previews share the same layout and use the selected service icon. */
.gateway-panel[data-step="3"] { padding: 48px 75px; border: 1px solid #A88752; box-shadow: none; }
.gateway-panel[data-step="3"] .gateway-step { min-height: 34px; margin: 0 0 22px; color: #293446; font: normal 400 27px/normal "Domine", Georgia, serif; }
.gateway-panel[data-step="3"] .gateway-step-track { margin: 0 0 22px; background: #F5F5F5; }
.gateway-panel[data-step="3"] .gateway-step-track span { background: #F5F5F5; }
.gateway-preview::before { content: none; }
.gateway-preview-heading { display: flex; align-items: center; gap: 18px; }
#gatewayPreviewIcon { display: flex; width: 64px; height: 64px; flex: 0 0 64px; align-items: center; justify-content: center; border-radius: 29px; background: #E0E0E0; }
#gatewayPreviewIcon svg, #gatewayPreviewIcon img { display: block; width: 42px; height: 42px; }
.gateway-preview-heading h3 { display: flex; width: 507px; min-width: 0; height: 72px; flex: 1; flex-direction: column; justify-content: center; margin: 0; color: #293446; font: normal 400 27px/normal "Domine", Georgia, serif; }
.gateway-preview > p { margin: 22px 0; color: #545961; font: normal 400 15px/normal "Inter", Arial, sans-serif; }
.gateway-preview-purpose { display: flex; padding: 18px 20px; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 8px; background: #E6E6E6; }
.gateway-preview-purpose h4 { align-self: stretch; min-height: 26px; margin: 0; color: #293446; font: normal 400 18px/normal "Domine", Georgia, serif; }
.gateway-preview-purpose p { align-self: stretch; min-height: 68px; margin: 0; color: #545961; font: normal 400 14px/normal "Inter", Arial, sans-serif; }
.gateway-preview > p:last-of-type { min-height: 32px; font-size: 13px; }
.gateway-preview-actions { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 120px; padding-top: 18px; }
.gateway-preview-actions::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%); }
#gatewayPreviewBack { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0; padding: 6px 12px; border: 1px solid #8F7753; border-radius: 40px; background: transparent; color: #8F7753; font: normal 600 10px/12.5px "Inter", Arial, sans-serif; }
#gatewayPreviewBack svg { display: block; width: 16px; height: 16px; }
.gateway-preview-continue { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 6px 60px; border: 0; border-radius: 40px; background: #293444; color: #D9D9D9; font: normal 600 10px/12.5px "Inter", Arial, sans-serif; }
@media (max-width: 700px) {
 .gateway-panel[data-step="3"] { padding: 30px 20px; }
 .gateway-preview-heading h3 { height: auto; min-height: 72px; }
 .gateway-preview-actions { margin-top: 60px; }
 .gateway-preview-continue { padding-inline: 24px; }
}

/* The preliminary notice sits before email verification in the entry flow. */
.gateway-panel[data-step="4"] { padding: 48px 75px; border: 1px solid #A88752; box-shadow: none; }
.gateway-panel[data-step="4"] .gateway-step { margin: 0 0 18px; color: #293446; font: 400 27px/normal "Domine", Georgia, serif; }
.gateway-panel[data-step="4"] .gateway-step-track { margin: 0 0 18px; background: #F5F5F5; }
.gateway-panel[data-step="4"] .gateway-step-track span { background: #F5F5F5; }
.gateway-panel[data-step="4"] #gatewayPanelTitle { margin: 0 0 18px; text-align: left; color: #293446; font: 400 30px/normal "Domine", Georgia, serif; }
.gateway-panel[data-step="4"] #gatewayPanelTitle::before { margin: 0 0 18px; color: #A88752; font: 600 11px/normal "Inter", Arial, sans-serif; letter-spacing: .55px; }
#gatewayNotice { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
#gatewayNotice[hidden] { display: none; }
#gatewayNotice #stGateComplianceRev2 { display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 0; border: 0; background: transparent; }
#gatewayNotice #stGateComplianceRev2 > p { margin: 0; color: #545961; font: 400 13px/normal "Inter", Arial, sans-serif; }
#gatewayNotice .notice-card { display: flex; flex-direction: column; gap: 7px; padding: 15px 18px; border-radius: 7px; background: #E6E6E6; }
#gatewayNotice .notice-card h4 { margin: 0; color: #293446; font: 600 13px/normal "Inter", Arial, sans-serif; }
#gatewayNotice .notice-card p { margin: 0; color: #545961; font: 400 12px/normal "Inter", Arial, sans-serif; }
#gatewayNotice > h3 { margin: 0; color: #293446; font: 400 20px/normal "Domine", Georgia, serif; }
#gatewayNotice > label { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; margin: 0; border: 1px solid #A88752; border-radius: 7px; background: transparent; color: #293446; font: 600 13px/normal "Inter", Arial, sans-serif; }
#gatewayNotice > label:has(#stRecontactConsent) { font-weight: 400; }
#gatewayNotice input[type="checkbox"] { appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; border: 1.5px solid #293446; border-radius: 3px; background: transparent; }
#gatewayNotice input[type="checkbox"]:checked { background: #293446; }
#gatewayNotice input[type="checkbox"]:checked::after { content: ""; display: block; width: 5px; height: 10px; margin: 1px 0 0 6px; border: solid #D9D9D9; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#gatewayNotice input:focus-visible { outline: 2px solid #8F7753; outline-offset: 3px; }
#gatewayNotice .notice-message { margin: 0; color: #B42318; font: 400 13px/normal "Inter", Arial, sans-serif; }
#gatewayNotice .notice-message:empty { display: none; }
#gatewayNotice .gateway-preview-actions { margin-top: 18px; }
.notice-back { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid #8F7753; border-radius: 40px; background: transparent; color: #8F7753; font: 600 10px/12.5px "Inter", Arial, sans-serif; }
#activationGate.notice-confirmed #stGateComplianceRev2,
#activationGate.notice-confirmed #activationGateSummary,
#activationGate.notice-confirmed label:has(#warningAcceptance),
#activationGate.notice-confirmed label:has(#amlAcceptance),
#activationGate.notice-confirmed label:has(#stRecontactConsent) { display: none; }
@media (max-width: 700px) { .gateway-panel[data-step="4"] { padding: 30px 20px; } }

/* Email entry uses the same live activation form and OTP request handler. */
.gateway-panel[data-step="5"] { width: 688px; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.gateway-panel[data-step="5"] > .gateway-step[hidden],
.gateway-panel[data-step="5"] > .gateway-step-track[hidden],
.gateway-panel[data-step="5"] > h2[hidden] { display: none; }
#applicationGateway #activationGate { width: 100%; margin: 0; padding: 0; }
#applicationGateway #activationGate .section-card {
 width: 100%; max-width: none; min-height: 744px; padding: 50px 74px; border-radius: 8px;
 border: 1px solid #8F7753; background: #D9D9D9;
 box-shadow: 0 100px 80px 0 rgba(0,0,0,.15), 0 41.778px 33.422px 0 rgba(0,0,0,.11), 0 22.336px 17.869px 0 rgba(0,0,0,.09), 0 12.522px 10.017px 0 rgba(0,0,0,.08), 0 6.65px 5.32px 0 rgba(0,0,0,.06), 0 2.767px 2.214px 0 rgba(0,0,0,.04);
}
#applicationGateway #activationGate .section-card::before { content: "5/5"; display: block; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid #F5F5F5; text-align: center; color: #293446; font: 400 27px/normal "Domine", Georgia, serif; }
#activationGate .section-card-header { display: block; margin: 0; padding: 0; border: 0; }
#activationGate .section-number { margin: 0 0 18px; color: #A88752; font: 600 11px/normal "Inter", Arial, sans-serif; letter-spacing: .55px; text-transform: uppercase; }
#activationGate .section-card-header h2 { margin: 0 0 18px; color: #293444; font: 400 28px/35px "Domine", Georgia, serif; }
#activationGate .activation-introduction { margin: 0; color: #50555C; font: 400 16px/20px "Inter", Arial, sans-serif; }
#activationForm { display: flex; flex-direction: column; gap: 18px; padding: 0; }
#activationForm .form-group { display: flex; flex-direction: column; gap: 9px; margin: 0; width: 100%; }
#activationForm .form-group label { margin: 0; color: #273445; font: 400 14px/normal "Inter", Arial, sans-serif; }
#activationForm .form-group input { box-sizing: border-box; width: 100%; height: 49px; padding: 0 20px; border: 1px solid #7C8590; border-radius: 7.20536px / 6px; background: #FFFFFF; color: #293446; font: 400 16px/20px "Inter", Arial, sans-serif; }
#activationForm .form-group input::placeholder { color: #ABABAB; opacity: 1; }
#activationForm .form-group input[aria-invalid="true"] { border-color: #B42318; }
#activationForm .form-message:empty { display: none; }
#activationForm .form-actions { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 70px 0 0; padding-top: 18px; border: 0; }
#activationForm .form-actions::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%); }
#cancelActivationButton { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid #8F7753; border-radius: 40px; background: transparent; color: #8F7753; font: 600 10px/12.5px "Inter", Arial, sans-serif; }
#activationForm .form-actions > button[type="submit"] { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 60px; border: 0; border-radius: 40px; background: #293444; color: #D9D9D9; font: 600 10px/12.5px "Inter", Arial, sans-serif; }
@media (max-width: 700px) {
 #applicationGateway #activationGate .section-card { padding: 30px 20px; }
 #activationForm .form-actions > button[type="submit"] { padding-inline: 20px; }
}

/* OTP entry page — exported Figma geometry. Keep these rules after older OTP styles. */
#applicationGateway.showing-otp .gateway-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
#applicationGateway #otpVerification { width: 100%; }
#otpVerification .otp-card,
.app-shell.entry-access #otpVerification .otp-card {
    box-sizing: border-box; width: 100%; max-width: 688px; min-height: 0;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    margin: 0; padding: 50px 74px; border-radius: 8px;
    border: 1px solid #8F7753; background: #D9D9D9;
    box-shadow: 0 100px 80px 0 rgba(0,0,0,.15), 0 41.778px 33.422px 0 rgba(0,0,0,.11), 0 22.336px 17.869px 0 rgba(0,0,0,.09), 0 12.522px 10.017px 0 rgba(0,0,0,.08), 0 6.65px 5.32px 0 rgba(0,0,0,.06), 0 2.767px 2.214px 0 rgba(0,0,0,.04);
}
.app-shell.entry-access .form-content #otpVerification .otp-card::before { content: none; }
#otpVerification .otp-card .section-number {
    align-self: stretch; margin: 0; min-height: 16px;
    color: #A88752; font: 600 11px/normal Inter, Arial, sans-serif; letter-spacing: .55px; text-transform: uppercase;
}
#otpVerification .otp-card h2,
.app-shell.entry-access #otpVerification .otp-card h2 {
    align-self: stretch; margin: 0; color: #293444; font: 400 28px/35px Domine, Georgia, serif;
}
#otpVerification .otp-card > p.otp-introduction,
.app-shell.entry-access #otpVerification .otp-card > p.otp-introduction {
    align-self: stretch; margin: 0; color: #50555C; font: 400 16px/20px Inter, Arial, sans-serif;
}
.otp-introduction em { font-style: italic; }
.otp-introduction strong { font-weight: 700; }
#otpForm { width: 100%; margin: 0; padding: 0; }
#otpForm .form-group { margin: 0; }
#otpVerification #stOtpBoxes { display: flex; width: 100%; max-width: none; gap: 12px; flex-wrap: nowrap; }
#otpVerification #stOtpBoxes input {
    box-sizing: border-box; flex: 1 1 80px; width: 80px; height: 80px; min-width: 0;
    padding: 0 14px; border: 1px solid #293444; border-radius: 8px;
    background: rgba(255,255,255,.41); color: #293444; font-family: Inter, Arial, sans-serif;
    text-align: center; box-shadow: none;
}
#otpVerification #stOtpBoxes input:focus-visible { outline: 2px solid #8F7753; outline-offset: 2px; }
#otpVerification[data-otp-state="error"] #stOtpBoxes input { border: 2px solid #B44B4B; }
#otpVerification[data-otp-state="success"] #stOtpBoxes input { border: 2px solid #8F7753; }
#otpVerification #stOtpBoxes input:disabled { background: rgba(255,255,255,.41); }
#otpVerification .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding: 0; border: 0; flex-wrap: wrap; }
#otpVerification #otpBackButton {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 6px 12px; min-height: 0; border: 1px solid #8F7753; border-radius: 40px;
    background: transparent; color: #8F7753; font: 600 10px/12.5px Inter, Arial, sans-serif;
}
#otpVerification #otpBackButton svg { flex: 0 0 16px; }
#otpVerification #otpForm .primary-button {
    padding: 6px 60px; min-height: 0; border: 0; border-radius: 40px;
    background: #293444; color: #D9D9D9; font: 600 10px/12.5px Inter, Arial, sans-serif;
}
#otpVerification #resendOtpButton { order: 3; flex-basis: 100%; width: auto; padding: 0; min-height: 0; border: 0; background: transparent; color: #8F7753; font: 400 12px/18px Inter, Arial, sans-serif; }
#otpVerification #resendOtpButton:disabled { color: #687384; background: transparent; border: 0; }
#otpVerification #otpMessage:empty { display: none; }
#otpVerification .otp-card .form-message { margin: 8px 0 0; }
#activationMessage[data-tone="status"], #otpVerification #otpMessage[data-tone="status"] { color: #50555C; }
#activationMessage[data-tone="error"] { color: #B44B4B; }
@media (max-width: 700px) {
    #otpVerification .otp-card, .app-shell.entry-access #otpVerification .otp-card { padding: 30px 20px; }
    #otpVerification #stOtpBoxes { gap: 6px; }
    #otpVerification #stOtpBoxes input { height: 64px; padding: 0; }
    #otpVerification #otpForm .primary-button { padding: 6px 20px; }
}
#otpVerification label.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#otpVerification #otpMessage[data-tone="error"] { color: #B44B4B; }

/* OTP heading — service name and divider from the selected Figma frame. */
#otpVerification .otp-card .section-number {
    border-top: 1px solid #F5F5F5; padding-top: 18px; text-align: left;
}
#otpVerification .otp-card h2,
.app-shell.entry-access #otpVerification .otp-card h2 { text-align: left; }
/* Keep the OTP notice below its card, independent of the contact column height. */
@media (min-width: 851px) {
    #applicationGateway.showing-otp {
        grid-template-rows: auto 1fr;
        column-gap: 54px;
        row-gap: 18px;
    }
    #applicationGateway.showing-otp > .gateway-intro { grid-column: 1; grid-row: 1 / span 2; }
    #applicationGateway.showing-otp > .gateway-panel { grid-column: 2; grid-row: 1; }
    #applicationGateway.showing-otp > .gateway-compliance-notice { grid-column: 2; grid-row: 2; margin-top: 0; align-self: start; }
}

/* Shared application panels: Figma exports.
   Gateway, header and footer rules stay separate from these form rules. */
:root { --application-panel-shadow: 0 100px 80px rgba(0,0,0,.15), 0 41.778px 33.422px rgba(0,0,0,.11), 0 22.336px 17.869px rgba(0,0,0,.09), 0 12.522px 10.017px rgba(0,0,0,.08), 0 6.65px 5.32px rgba(0,0,0,.06), 0 2.767px 2.214px rgba(0,0,0,.04); }
.app-shell:not(.entry-access):not(.gateway-active) > .tab-navigation { display: none; }
.app-shell:not(.entry-access):not(.gateway-active) .application-workspace { filter: none; }
.app-shell:not(.entry-access):not(.gateway-active) .section-sidebar,
.app-shell:not(.entry-access):not(.gateway-active) .form-content .section-card {
    border: 1px solid #8F7753; border-radius: 8px; box-shadow: var(--application-panel-shadow);
}
.app-shell:not(.entry-access) .section-sidebar { background: #2E3D51; }
.app-shell:not(.entry-access) .sidebar-heading { display: none; }
.app-shell:not(.entry-access) .section-navigation-list { gap: 50px; }
.app-shell:not(.entry-access) .section-navigation-button {
    display: flex; align-items: flex-start; gap: 8px; min-height: 35px; padding: 0 53px 0 0;
    color: #50555C; font: 400 28px/35px "Domine", Georgia, serif;
}
.app-shell:not(.entry-access) .section-navigation-number,
.app-shell:not(.entry-access) .section-navigation-title {
    display: inline; margin: 0; color: inherit; font: inherit; letter-spacing: 0; text-transform: none;
}
.app-shell:not(.entry-access) .section-navigation-number { flex: 0 0 auto; }
.app-shell:not(.entry-access) .section-navigation-button.active,
.app-shell:not(.entry-access) .section-navigation-button.completed { color: #D9D9D9; }
.app-shell:not(.entry-access) .section-navigation-button::after {
    width: 35px; height: 35px; border: 0; border-radius: 0; box-shadow: none;
    background: url("../assets/section-empty.svg") center / contain no-repeat;
}
.app-shell:not(.entry-access) .section-navigation-button.active::after {
    background-image: url("../assets/section-current.svg");
}
.app-shell:not(.entry-access) .form-content .section-card { background: #D9D9D9; }
.app-shell:not(.entry-access) .form-content .section-card-header { margin: 0 74px; padding-top: 50px; }
.app-shell:not(.entry-access) .form-content .section-card-header h2,
.app-shell:not(.entry-access) .form-content .subsection-heading {
    color: #293444; font: 400 36px/normal "EB Garamond", Georgia, serif;
}
.app-shell:not(.entry-access) .form-content .form-section { gap: 18px; }
.app-shell:not(.entry-access) .form-content .form-group > label,
.app-shell:not(.entry-access) .form-content .field-label { color: #293444; font: 400 14px/normal "Inter", Arial, sans-serif; }
.app-shell:not(.entry-access) .form-content input:is([type="text"],[type="email"],[type="url"],[type="tel"],[type="date"],[type="number"],[type="search"]),
.app-shell:not(.entry-access) .form-content select,
.app-shell:not(.entry-access) .form-content textarea {
    min-height: 49px; padding: 13px 19px; border: 1px solid #7C8590; border-radius: 7.205px / 6px;
    background: #FFFFFF; color: #293444; font: 400 16px/20px "Inter", Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content textarea { min-height: 120px; }
.app-shell:not(.entry-access) .form-content input::placeholder,
.app-shell:not(.entry-access) .form-content textarea::placeholder { color: #57616D; opacity: 1; }
.app-shell:not(.entry-access) .form-content select {
    appearance: none; padding-right: 48px; background: #ECECEC url("../assets/form-chevron.svg") right 20px center / 24px 24px no-repeat;
    border-color: transparent;
}
.app-shell:not(.entry-access) .form-content :is(input,select,textarea):focus-visible {
    border: 2px solid #9B7843; padding: 12px 18px; outline: 2px solid transparent; box-shadow: none;
}
.app-shell:not(.entry-access) .form-content select:focus-visible { padding-right: 47px; }
.app-shell:not(.entry-access) .form-content :is(input,select,textarea)[aria-invalid="true"] { border: 2px solid #B44B4B; padding: 12px 18px; }
.app-shell:not(.entry-access) .form-content :is(input,select,textarea):disabled { background-color: #F8F6F2; color: #9A9FA8; border-color: #D9D5CE; }
.app-shell:not(.entry-access) .form-content .option-card:has(input[type="radio"]),
.app-shell:not(.entry-access) .form-content .option-row:has(input[type="radio"]) {
    gap: 10px; min-height: 49px; padding: 16px 21px; border: 0; border-radius: 7px; background: #ECECEC; color: #57616D;
}
.app-shell:not(.entry-access) .form-content .option-card:has(input[type="radio"]:checked),
.app-shell:not(.entry-access) .form-content .option-row:has(input[type="radio"]:checked) { background: #293444; color: #D9D9D9; }
.app-shell:not(.entry-access) .form-content .option-card span,
.app-shell:not(.entry-access) .form-content .option-row:has(input[type="radio"]) span { color: inherit; font: 400 16px/20px "Inter", Arial, sans-serif; }
.app-shell:not(.entry-access) .form-content .option-card input[type="radio"],
.app-shell:not(.entry-access) .form-content .option-row input[type="radio"] {
    appearance: none; flex: 0 0 14px; width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0;
    border: 1px solid #273445; border-radius: 50%; background: transparent;
}
.app-shell:not(.entry-access) .form-content .option-card input[type="radio"]:checked,
.app-shell:not(.entry-access) .form-content .option-row input[type="radio"]:checked {
    flex-basis: 13px; width: 13px; height: 13px; border: 0; background: #2E3D51;
}
.app-shell:not(.entry-access) .form-content .option-card input[type="radio"]:focus-visible,
.app-shell:not(.entry-access) .form-content .option-row input[type="radio"]:focus-visible { outline: 2px solid #9B7843; outline-offset: 3px; padding: 0; }
.app-shell:not(.entry-access) .form-content .option-card:has(input:disabled),
.app-shell:not(.entry-access) .form-content .option-row:has(input[type="radio"]:disabled) { color: #9A9FA8; background: #F8F6F2; }
/* The search field inside a chip control must not receive a second border. */
.app-shell:not(.entry-access) .form-content .st-multi-field input.st-country-filter {
    min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none;
}
.app-shell:not(.entry-access) .st-multi-arrow { width: 24px; height: 24px; flex: 0 0 24px; mask: none; background: url("../assets/form-chevron.svg") center / contain no-repeat; }
.app-shell:not(.entry-access) .form-content .navigation-actions { position: relative; border: 0; padding-top: 24px; }
.app-shell:not(.entry-access) .form-content .navigation-actions::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(180deg,#8F7753 0%,#E1CBA4 29.33%,#B8A17C 55.29%,#735B39 87.5%); }
.app-shell:not(.entry-access) .form-content .navigation-actions .primary-button,
.app-shell:not(.entry-access) .form-content .navigation-actions .secondary-button { min-height: 30px; padding: 6px 18px; border-radius: 40px; font: 600 10px/12.5px "Inter", Arial, sans-serif; }
.app-shell:not(.entry-access) .form-content .navigation-actions .primary-button { min-width: 218px; color: #D9D9D9; background: #293444; border: 1px solid #293444; }
.app-shell:not(.entry-access) .form-content .navigation-actions .secondary-button { color: #8F7753; background: transparent; border: 1px solid #8F7753; }
#gatewayNotice .notice-card p { font-size: 13px; }
#gatewayNotice .notice-card { align-items: stretch; text-align: left; }
@media (max-width: 900px) {
    .app-shell:not(.entry-access) .form-content .section-card-header { margin: 0 32px; }
    .app-shell:not(.entry-access) .section-navigation-button { font-size: 22px; line-height: 29px; }
    .app-shell:not(.entry-access) .section-navigation-list { gap: 28px; }
}
@media (max-width: 700px) {
    .app-shell:not(.entry-access) .form-content .section-card-header { margin: 0 20px; }
    .app-shell:not(.entry-access) .section-navigation-list { gap: 12px; }
    .app-shell:not(.entry-access) .section-navigation-button { flex-basis: 220px; font-size: 18px; line-height: 24px; }
    .app-shell:not(.entry-access) .form-content .section-card-header h2,
    .app-shell:not(.entry-access) .form-content .subsection-heading { font-size: 30px; line-height: 39px; }
    .app-shell:not(.entry-access) .form-content .navigation-actions .primary-button { min-width: 0; }
}

.app-shell:not(.entry-access) .form-content .st-declarant-cards .option-card { min-height: 70px; }
#gatewayNotice > .form-group { width: 100%; }
#gatewayNotice #activationMessage[data-tone="status"] { color: #50555C; }

.app-shell:not(.entry-access) .section-navigation-button.completed:not(.active)::after { background-image: url("../assets/section-complete.svg"); }
.app-shell:not(.entry-access) .form-content .navigation-actions .secondary-button::before { content: ""; display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin-right: 8px; background: url("../assets/form-back.svg") center / contain no-repeat; }

.app-shell:not(.entry-access) .form-content select { height: 48px; min-height: 48px; border-radius: 7px; }
.app-shell:not(.entry-access) .st-single-control .st-multi-field { min-height: 48px; border-radius: 7px; background: #ECECEC; }
.app-shell:not(.entry-access) .form-content .navigation-actions { padding-bottom: 50px; }

.app-shell:not(.entry-access) .application-position { margin: 0 0 18px; color: #293444; font: 400 28px/35px "EB Garamond", Georgia, serif; }

/* The email field moves with the unified gate, so its style must not depend on
   activationForm being its parent. */
#gatewayNotice .form-group > label { color: #293446; font: 400 14px/normal "Inter", Arial, sans-serif; }
#gatewayNotice #activationEmail { box-sizing: border-box; width: 100%; height: 49px; padding: 0 20px; border: 1px solid #7C8590; border-radius: 7.20536px / 6px; background: #FFFFFF; color: #293446; font: 400 16px/20px "Inter", Arial, sans-serif; }
#gatewayNotice #activationEmail::placeholder { color: #ABABAB; opacity: 1; }
#gatewayNotice #activationEmail[aria-invalid="true"] { border: 2px solid #B44B4B; }
#gatewayNotice #activationEmail:focus-visible { border: 2px solid #9B7843; outline: 2px solid transparent; box-shadow: none; }

/* Shared module breadcrumb, as shown above the form heading in Figma. */
.app-shell:not(.entry-access) #unlockedApplication .section-number { margin: 0 0 18px; color: #8F7753; font: 400 12px/normal "Inter", Arial, sans-serif; letter-spacing: 0; text-transform: uppercase; }

/* The dropdown chevron is an operable button, with the same exported artwork. */
button.st-multi-arrow { appearance: none; display: inline-block; padding: 0; border: 0; border-radius: 0; cursor: pointer; }
button.st-multi-arrow:focus-visible { outline: 2px solid #9B7843; outline-offset: 3px; }
button.st-multi-arrow:disabled { cursor: default; opacity: .5; }

/* The sidebar uses a gradient stroke; the form card keeps its solid gold border. */
.app-shell:not(.entry-access):not(.gateway-active) .section-sidebar {
    border: 1px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(#2E3D51, #2E3D51), linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
.app-shell:not(.entry-access):not(.gateway-active) .form-content .section-card {
    border: 1px solid #8F7753;
    background: #D9D9D9;
}

/* Shared repeatable-record action, from the ownership/control frame. */
.app-shell:not(.entry-access) #sectionContent button.st-add-record {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 18px;
    border: 0; border-radius: 6px; background: #ECECEC; box-shadow: none;
    color: #293445; font: 400 15px/normal Inter, Arial, sans-serif;
    text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.app-shell:not(.entry-access) #sectionContent button.st-add-record::after {
    content: "+"; flex: 0 0 16px; color: #8F7D5D;
    font: 400 24px/normal Inter, Arial, sans-serif; text-align: center;
    pointer-events: none;
}
.app-shell:not(.entry-access) #sectionContent button.st-add-record:focus-visible {
    outline: 2px solid #8F7753; outline-offset: 3px;
}
.app-shell:not(.entry-access) #sectionContent button.st-add-record:disabled {
    cursor: default; opacity: .5;
}

/* Use one border-box height for single-line controls, including untyped inputs.
   Search text lives inside its outer control and must not add vertical margins. */
.app-shell:not(.entry-access) .form-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.st-country-filter),
.app-shell:not(.entry-access) .form-content select:not(.st-search-original) {
    box-sizing: border-box; width: 100%; height: 49px; min-height: 49px;
    margin: 0; border-radius: 7.205px / 6px; font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.st-country-filter) {
    background: #FFFFFF; color: #293444;
}
.app-shell:not(.entry-access) .form-content select:not(.st-search-original) {
    border-radius: 7px; background-color: #ECECEC;
}
.app-shell:not(.entry-access) .form-content .form-grid {
    align-items: end;
}
.app-shell:not(.entry-access) .form-content .st-single-control .st-multi-field {
    box-sizing: border-box; height: 49px; min-height: 49px; flex-wrap: nowrap;
    padding: 8px 19px; border: 1px solid transparent; background-color: #ECECEC;
}
.app-shell:not(.entry-access) .form-content .st-single-control .st-multi-field:focus-within,
.app-shell:not(.entry-access) .form-content .st-single-control:has(.st-multi-panel:not([hidden])) .st-multi-field {
    border: 2px solid #9B7843; padding: 7px 18px;
}
.app-shell:not(.entry-access) .form-content .st-multi-field input.st-country-filter {
    box-sizing: border-box; height: 28px; min-height: 28px; margin: 0; padding: 0;
    border: 0; background: transparent; font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content .st-multi-field input.st-country-filter::placeholder {
    color: #57616D; opacity: 1;
}
.app-shell:not(.entry-access) .form-content .st-single-control .st-selected-chip {
    flex-shrink: 1; min-width: 0; max-width: calc(100% - 32px);
}
.app-shell:not(.entry-access) .form-content .st-single-control .st-selected-chip > span:first-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-shell:not(.entry-access) .form-content .st-percentage-pair {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end;
}
.app-shell:not(.entry-access) .form-content .st-percentage-field > label {
    color: #50555C; font: 400 14px/normal Inter, Arial, sans-serif;
}




.app-shell:not(.entry-access) .form-content .field-help,
.app-shell:not(.entry-access) .form-content .field-hint { color: #50555C; font: 400 14px/normal Inter, Arial, sans-serif; }
.app-shell:not(.entry-access) .form-content .form-section-intro { color: #50555C; font: 400 16px/20px Inter, Arial, sans-serif; }
@media (max-width: 600px) {
    .app-shell:not(.entry-access) .form-content .st-percentage-pair { grid-template-columns: 1fr; }
}





.app-shell:not(.entry-access) .form-content .form-grid > .st-percentage-pair { grid-column: 1 / -1; }


/* Connected subjects: summary and editor share the module's original fields. */
#sectionContent .st-connected-subject, #sectionContent .st-tab02-subject:has(.st-subject-summary) { padding:0; border:0; background:transparent; margin:18px 0; }
#sectionContent .st-subject-summary { display:flex; align-items:center; gap:16px; padding:16px; border-radius:7px; background:#2E3D51; color:#D9D9D9; font:400 16px/20px Inter,sans-serif; }
.st-subject-initials { flex:0 0 90px; height:84px; display:flex; align-items:center; justify-content:center; border-radius:82px; background:linear-gradient(144deg,#8F7753 -1.13%,#E1CBA4 31.89%,#B8A17C 61.12%,#735B39 97.39%); color:#ECECEC; font-weight:700; }
.st-subject-identity, .st-subject-details { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; overflow-wrap:anywhere; }
.st-subject-actions { display:flex; flex-direction:column; gap:13px; flex:0 0 40px; }
#sectionContent .st-subject-actions button { display:flex; justify-content:center; align-items:center; width:40px; height:40px; padding:0; border-radius:10px; cursor:pointer; }
#sectionContent .st-subject-delete { background:transparent; border:1px solid #8F7753; }
#sectionContent .st-subject-edit { border:0; background:linear-gradient(131deg,#8F7753 -49.52%,#E1CBA4 -13.57%,#B8A17C 18.26%,#735B39 57.75%); }
.st-subject-delete img { width:20px; height:23px; } .st-subject-edit img { width:24px; height:24px; }
#sectionContent .st-subject-editor { display:flex; flex-direction:column; align-items:stretch; gap:9px; padding:30px; border-radius:7px; background:#F6F6F6; box-shadow:0 100px 80px rgba(0,0,0,.07),0 41.778px 33.422px rgba(0,0,0,.05),0 22.336px 17.869px rgba(0,0,0,.04),0 12.522px 10.017px rgba(0,0,0,.04),0 6.65px 5.32px rgba(0,0,0,.03),0 2.767px 2.214px rgba(0,0,0,.02); }
#sectionContent .st-subject-editor[hidden], #sectionContent .st-subject-save[hidden] { display:none; }
#sectionContent button.st-subject-add, #sectionContent button.st-subject-save { display:flex; align-items:center; gap:10px; width:100%; height:70px; padding:16px 21px; border:0; border-radius:7px; color:#D9D9D9; font:400 16px/20px Inter,sans-serif; cursor:pointer; }
#sectionContent button.st-subject-add { justify-content:flex-start; background:#2E3D51; }
#sectionContent button.st-subject-add::after { content:none; } .st-subject-add img { width:35px; height:35px; flex-shrink:0; }
#sectionContent button.st-subject-save { justify-content:center; background:#293444; }
#sectionContent .st-subject-editor input[type="checkbox"] { appearance:none; width:18px; height:18px; min-width:18px; margin:0; border:1px solid #293444; border-radius:5px; background:#ECECEC; vertical-align:middle; }
#sectionContent .st-subject-editor input[type="checkbox"]:checked { background:#293444; box-shadow:inset 0 0 0 3px #ECECEC; }
#sectionContent .st-subject-editor .option-row { gap:10px; color:#293444; font:400 16px/20px Inter,sans-serif; }
#sectionContent .st-subject-editor .upload-dropzone { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; padding:36px; border:0; border-radius:7px; background:#ECECEC; }
.st-upload-prompt { display:flex; flex-direction:column; align-items:center; gap:5px; text-align:center; color:#293444; cursor:pointer; font:400 13px/16.25px Inter,sans-serif; }
.st-upload-prompt strong { font:700 16px/20px Inter,sans-serif; } .st-upload-prompt img { width:24px; height:24px; }
#sectionContent .st-subject-editor .upload-dropzone input[type="file"] { max-width:100%; }
@media(max-width:600px) { #sectionContent .st-subject-summary { flex-wrap:wrap; } .st-subject-details { flex-basis:50%; } #sectionContent .st-subject-editor { padding:20px; } }
#sectionContent .st-subject-editor .upload-dropzone input[type="file"] { position:absolute; width:1px; height:1px; opacity:0; padding:0; }
#sectionContent .st-subject-editor .upload-dropzone:focus-within { outline:2px solid #9B7843; outline-offset:2px; }
#sectionContent .option-row input[type="checkbox"] { appearance:none; width:18px; height:18px; min-width:18px; margin:0; border:1px solid #293444; border-radius:5px; background:#ECECEC; }
#sectionContent .option-row input[type="checkbox"]:checked { background:#293444; box-shadow:inset 0 0 0 3px #ECECEC; }

/* Consent controls can move between the gateway and activation form. */
#warningAcceptance, #amlAcceptance, #stRecontactConsent,
#gatewayNotice #warningAcceptance, #gatewayNotice #amlAcceptance, #gatewayNotice #stRecontactConsent {
 appearance:none; width:18px; height:18px; min-width:18px; flex:0 0 18px;
 margin:0; padding:0; border:1px solid #293444; border-radius:5px;
 background:#ECECEC; box-shadow:none; cursor:pointer;
}
#warningAcceptance:checked, #amlAcceptance:checked, #stRecontactConsent:checked,
#gatewayNotice #warningAcceptance:checked, #gatewayNotice #amlAcceptance:checked, #gatewayNotice #stRecontactConsent:checked { background:#293444; border-color:#293444; }
#warningAcceptance:checked::after, #amlAcceptance:checked::after, #stRecontactConsent:checked::after,
#gatewayNotice #warningAcceptance:checked::after, #gatewayNotice #amlAcceptance:checked::after, #gatewayNotice #stRecontactConsent:checked::after {
 content:""; display:block; width:5px; height:9px; margin:1px 0 0 5px;
 border:solid #D9D9D9; border-width:0 2px 2px 0; transform:rotate(45deg);
}
#warningAcceptance:focus-visible, #amlAcceptance:focus-visible, #stRecontactConsent:focus-visible { outline:2px solid #9B7843; outline-offset:2px; }

/* Subject actions take precedence over the generic grey add-row component. */
.app-shell:not(.entry-access) #sectionContent button.st-subject-add {
 display:flex; justify-content:flex-start; align-items:center; gap:10px;
 width:100%; height:70px; min-height:70px; padding:16px 21px;
 border:0; border-radius:7px; background:#2E3D51; color:#D9D9D9;
 font:400 16px/20px Inter,sans-serif; letter-spacing:normal; text-align:left;
}
.app-shell:not(.entry-access) #sectionContent button.st-subject-add::after { content:none; display:none; }

/* Search controls must shrink inside paired fields without covering their neighbours. */
.app-shell:not(.entry-access) .form-content .form-grid > .form-group,
.app-shell:not(.entry-access) .form-content .st-multi-control { min-width:0; max-width:100%; }
.app-shell:not(.entry-access) .form-content .st-single-control .st-multi-field { width:100%; min-width:0; max-width:100%; }
.app-shell:not(.entry-access) .form-content .st-single-control .st-multi-field input.st-country-filter { flex:1 1 0; width:0; min-width:0; max-width:100%; text-overflow:ellipsis; }
.app-shell:not(.entry-access) .form-content .st-single-control .st-multi-field > button { flex-shrink:0; }

/* Shared selection and document controls across all application modules. */
.app-shell input[type="checkbox"],
#gatewayNotice input[type="checkbox"],
#sectionContent#sectionContent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  display: inline-block; position: relative; flex: 0 0 18px;
  width: 18px; height: 18px; min-height: 18px; padding: 0;
  border: 1px solid #293444; border-radius: 5px;
  background: #ECECEC; box-shadow: none; cursor: pointer;
}
.app-shell input[type="checkbox"]:checked,
#gatewayNotice input[type="checkbox"]:checked,
#sectionContent#sectionContent input[type="checkbox"]:checked {
  background: #293444; border-color: #293444; box-shadow: none;
}
.app-shell input[type="checkbox"]:checked::after,
#gatewayNotice input[type="checkbox"]:checked::after,
#sectionContent#sectionContent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; display: block;
  left: 5px; top: 2px; width: 5px; height: 9px; margin: 0;
  border: solid #D9D9D9; border-width: 0 2px 2px 0;
  background: transparent; transform: rotate(45deg);
}
#sectionContent .st-selected-chip,
#sectionContent .st-multi-field .st-selected-chip {
  background: #293444; color: #D9D9D9; border-color: #293444;
}
#sectionContent .st-selected-chip .st-chip-remove,
#sectionContent .st-multi-field .st-selected-chip .st-chip-remove {
  color: #D9D9D9;
}
#sectionContent .upload-dropzone {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 36px;
  border: 0; border-radius: 7px; background: #ECECEC;
}
#sectionContent .upload-dropzone:hover { background: #ECECEC; border: 0; }
#sectionContent .upload-dropzone input[type="file"] {
  position: absolute; width: 1px; height: 1px; min-height: 0;
  opacity: 0; padding: 0;
}
#sectionContent .upload-dropzone .st-upload-prompt {
  display: flex; flex-direction: column; align-items: center;
  gap: 9px; margin: 0; color: #293444; cursor: pointer;
  text-align: center;
}
#sectionContent .upload-dropzone .st-upload-prompt img { width: 24px; height: 24px; }
#sectionContent .upload-dropzone .st-upload-prompt strong { font: 700 16px/20px Inter, Arial, sans-serif; }
#sectionContent .upload-dropzone .st-upload-prompt span,
#sectionContent .upload-dropzone > .field-help { font: 400 13px/16.25px Inter, Arial, sans-serif; color: #293444; text-align: center; }
#sectionContent .upload-dropzone:focus-within { outline: 2px solid #8F7753; outline-offset: 2px; }

/* Related Areas of Interest: common Figma card geometry. */
#sectionContent .st-related-section { gap: 25px; }
#sectionContent .st-related-group { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
#sectionContent .st-related-row {
  display: grid; grid-template-columns: repeat(var(--related-columns, 2), minmax(0, 1fr));
  gap: 5px; width: 100%;
}
#sectionContent .st-related-row > label {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px; height: 70px; min-height: 70px; box-sizing: border-box;
  margin: 0; padding: 16px 21px; border: 0; border-radius: 7px;
  background: #ECECEC; color: #293444; cursor: pointer;
  font: 400 16px/20px Inter, Arial, sans-serif;
}
#sectionContent .st-related-row > label > span { flex: 1; min-width: 0; font: inherit; color: inherit; }
#sectionContent .st-related-row > label:hover,
#sectionContent .st-related-row > label:has(input:checked) { background: #ECECEC; color: #293444; border: 0; }
#sectionContent .st-related-group > .field-label,
#sectionContent .st-related-group > label,
#sectionContent .st-related-group > .subsection-heading { font: 400 16px/20px Inter, Arial, sans-serif; color: #293444; margin: 0; }
.app-shell:not(.entry-access) #sectionContent .st-related-section input[type="text"][name="relatedOther"],
.app-shell:not(.entry-access) #sectionContent .st-related-section input[type="text"][data-field="relatedOther"] {
  height: 48px; min-height: 48px; padding: 0 21px;
  border: 1px solid #50555C; border-radius: 7px; background: #FFFFFF;
  font: 400 16px/20px Inter, Arial, sans-serif;
}
#sectionContent .st-related-section input::placeholder { color: #D9D9D9; opacity: 1; }
/* The whole dropdown trigger, including its chevron, signals that it opens. */
.app-shell select:not(:disabled), .app-shell summary,
.app-shell .st-multi-control button:not(:disabled),
.app-shell .st-single-control button:not(:disabled) { cursor: pointer; }
.app-shell .st-multi-control button svg, .app-shell .st-single-control button svg { cursor: inherit; }
@media (max-width: 600px) {
  #sectionContent .st-related-row { grid-template-columns: 1fr; }
}


#sectionContent .st-related-section textarea::placeholder { color: #D9D9D9; opacity: 1; }

/* One centred tick asset avoids conflicting pseudo-element offsets in the gates. */
.app-shell input[type="checkbox"], #activationGate input[type="checkbox"],
#gatewayNotice input[type="checkbox"], #sectionContent input[type="checkbox"] {
  appearance: none !important; -webkit-appearance: none !important;
  box-sizing: border-box !important; flex: 0 0 18px !important;
  width: 18px !important; height: 18px !important; min-width: 18px !important;
  min-height: 18px !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid #293444 !important; border-radius: 5px !important;
  background: #ECECEC !important; box-shadow: none !important;
}
.app-shell input[type="checkbox"]:checked, #activationGate input[type="checkbox"]:checked,
#gatewayNotice input[type="checkbox"]:checked, #sectionContent input[type="checkbox"]:checked {
  background-color: #293444 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9L7 12L13 6' fill='none' stroke='%23D9D9D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: center !important; background-repeat: no-repeat !important;
  background-size: 16px 16px !important;
}
.app-shell input[type="checkbox"]::after, #activationGate input[type="checkbox"]::after,
#gatewayNotice input[type="checkbox"]::after, #sectionContent input[type="checkbox"]::after {
  content: none !important; display: none !important;
}

/* Final Declaration: shared Figma geometry, with module consent logic retained. */
.app-shell .form-content .section-card.st-final-card {
    padding: 50px 74px;
    border: 1px solid #8F7753;
    border-radius: 8px;
    background: #D9D9D9;
    box-shadow: 0 100px 80px rgba(0,0,0,.15), 0 41.778px 33.422px rgba(0,0,0,.11), 0 22.336px 17.869px rgba(0,0,0,.09), 0 12.522px 10.017px rgba(0,0,0,.08), 0 6.65px 5.32px rgba(0,0,0,.06), 0 2.767px 2.214px rgba(0,0,0,.04);
}
.app-shell .form-content .st-final-card .section-card-header { margin: 0 0 18px; padding: 0; }
.app-shell .form-content .st-final-card #unlockedSectionTitle { color: #293444; font: 400 36px/normal "EB Garamond", Georgia, serif; }
.app-shell .form-content .st-final-card .section-content { margin: 0; padding: 0; }
.app-shell .form-content .st-final-section { display: flex; flex-direction: column; gap: 18px; }
.app-shell .form-content .st-final-section > .info-box { display: none; }
.app-shell .form-content .st-declaration-group { margin: 0; padding: 0; }
.app-shell .form-content label.st-declaration-row {
    display: flex; align-items: flex-start; align-self: stretch; gap: 10px;
    margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 0;
    background: transparent; color: #293444; font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell .form-content .st-declaration-row > span { flex: 1 0 0; color: inherit; font: inherit; }
.app-shell .form-content .st-declaration-row input[type="checkbox"] { margin: 0; }
.app-shell .form-content .st-final-section .form-actions { width: 100%; margin-top: 18px; }
@media (max-width: 700px) {
    .app-shell .form-content .section-card.st-final-card { padding: 28px 20px; }
}

/* Review and final consent actions use the established blue button style. */
.app-shell .form-content :where(.st-final-section .form-actions button, #stReviewContinue, #stTab02ReviewContinue, #tab03ContinueToFinal, #tab04-to-final, #tab10-final) {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    width: auto; min-height: 30px; padding: 6px 18px;
    border: 1px solid #293444; border-radius: 40px;
    background: #293444; color: #D9D9D9;
    font: 600 10px/12.5px Inter, Arial, sans-serif;
    text-decoration: none; box-shadow: none; cursor: pointer;
}
.app-shell .form-content :where(.st-final-section .form-actions button, #stReviewContinue, #stTab02ReviewContinue, #tab03ContinueToFinal, #tab04-to-final, #tab10-final):hover:not(:disabled) {
    background: #293444; color: #D9D9D9; border-color: #293444;
}
.app-shell .form-content :where(.st-final-section .form-actions button, #stReviewContinue, #stTab02ReviewContinue, #tab03ContinueToFinal, #tab04-to-final, #tab10-final):disabled { cursor: not-allowed; opacity: .55; }

/* Final Declaration actions: outlined back button and blue submission button. */
.app-shell .form-content .st-final-section .form-actions {
    position: relative; display: flex; justify-content: space-between;
    align-items: center; gap: 18px; margin-top: 65px; padding-top: 19px;
    border: 0;
}
.app-shell .form-content .st-final-section .form-actions::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
.app-shell .form-content .st-final-section .form-actions button {
    box-sizing: border-box; height: 30px; min-height: 30px;
    font: 600 10px/12.5px Inter, Arial, sans-serif;
    text-transform: uppercase; border-radius: 40px;
}
.app-shell .form-content .st-final-section .form-actions button:first-child,
.app-shell .form-content .st-final-section .form-actions button:first-child:hover:not(:disabled) {
    padding: 6px 12px; gap: 10px; border: 1px solid #8F7753;
    background: transparent; color: #8F7753;
}
.app-shell .form-content .st-final-section .form-actions button:first-child::before {
    content: ""; display: block; width: 16px; height: 16px; flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 7.99984L12.6667 7.99984M6.66667 10.6665L4 7.99984L6.66667 5.33317' stroke='%238F7753' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.app-shell .form-content .st-final-section .form-actions button:last-child,
.app-shell .form-content .st-final-section .form-actions button:last-child:hover:not(:disabled) {
    min-width: 218px; padding: 6px 60px; border: 0;
    background: #293444; color: #D9D9D9;
}
@media (max-width: 600px) {
    .app-shell .form-content .st-final-section .form-actions { flex-wrap: wrap; }
    .app-shell .form-content .st-final-section .form-actions button:last-child { min-width: 0; padding-inline: 24px; }
}

/* Final actions already provide the divider and navigation for this screen. */
.app-shell .form-content .st-final-card > .navigation-actions { display: none; }


/* Review cards use the Figma states; the existing module review data stays intact. */
.app-shell .form-content .st-review-card { padding:50px 74px; border:1px solid #8F7753; border-radius:8px; background:#D9D9D9; box-shadow:0 100px 80px rgba(0,0,0,.15),0 41.778px 33.422px rgba(0,0,0,.11),0 22.336px 17.869px rgba(0,0,0,.09),0 12.522px 10.017px rgba(0,0,0,.08),0 6.65px 5.32px rgba(0,0,0,.06),0 2.767px 2.214px rgba(0,0,0,.04); }
.st-review-card .section-card-header { margin:0 0 18px; padding:0; border:0; }
.st-review-card #unlockedSectionNumber {color:#A58B5B;font:400 12px/normal Inter,sans-serif;}
.st-review-card #unlockedSectionTitle {color:#293444;font:400 36px/normal 'EB Garamond',serif;}
.st-review-card .section-content {margin:0;padding:0;}
.app-shell .st-review-section {display:flex;flex-direction:column;align-items:stretch;gap:18px;}
.st-review-section .st-review-intro,.st-review-overview p {margin:0;color:#50555C;font:400 16px/20px Inter,sans-serif;}
.st-review-overview {display:flex;flex-direction:column;gap:18px;}
.st-review-overview h3 {margin:0;color:#293444;font:400 36px/normal 'EB Garamond',serif;}
.st-review-overview strong {font-weight:700;}
.st-review-identity {display:flex;flex-direction:column;gap:18px;}
.st-review-identity-group {display:flex;flex-direction:column;gap:9px;}
.st-review-identity-label {color:#293444;font:400 16px/20px Inter,sans-serif;}
.st-review-identity-value {display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 21px;border-radius:7px;background:rgba(236,236,236,.5);color:#50555C;font:400 16px/20px Inter,sans-serif;box-sizing:border-box;}
.st-review-identity-value>span {flex:1;min-width:0;overflow-wrap:anywhere;}
.app-shell .st-review-edit {display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer;}
.st-review-edit svg {width:24px;height:24px;}
.app-shell .st-review-summary {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px;border:1px solid #293444;border-radius:7px;background:transparent;color:#293444;}
.app-shell .st-review-summary.is-incomplete {border:0;background:#2E3D51;color:#ECECEC;}
.st-review-row-main {display:flex;align-items:center;gap:16px;flex:1;min-width:0;}
.st-review-status-icon {width:35px;height:35px;flex:0 0 35px;}
.st-review-section-title {font:400 16px/20px Domine,serif;overflow-wrap:anywhere;}
.st-review-section-status {font:400 10px/12.5px Domine,serif;}
.st-review-missing {width:100%;font:400 13px/18px Inter,sans-serif;}
.st-review-missing summary {cursor:pointer;}
.st-review-summary.is-incomplete .field-help {color:#ECECEC;}
.st-review-card>.navigation-actions {display:none;}
.app-shell .st-review-actions {display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:65px;padding-top:19px;border-top:1px solid #8F7753;}
.app-shell .st-review-actions>button {height:auto;min-height:30px;padding:6px 18px;border-radius:40px;font:600 10px/12.5px Inter,sans-serif;text-transform:uppercase;cursor:pointer;}
.app-shell .st-review-actions>button:first-child {display:flex;align-items:center;gap:10px;background:transparent;border:1px solid #8F7753;color:#8F7753;}
.st-review-actions>button:first-child::before {content:'';width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 7.99984L12.6667 7.99984M6.66667 10.6665L4 7.99984L6.66667 5.33317' stroke='%238F7753' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;}
.app-shell .st-review-actions>button:last-child {background:#293444;border:0;color:#D9D9D9;}
@media(max-width:700px){.app-shell .form-content .st-review-card {padding:28px 20px;}.app-shell .st-review-actions {flex-wrap:wrap;margin-top:36px;}}

.app-shell:not(.entry-access) .section-navigation-button.st-review-sidebar-complete::after {background-image:url('../assets/section-complete.svg');}
.app-shell:not(.entry-access) .section-navigation-button.st-review-sidebar-incomplete::after {background-image:url('../assets/section-partial.svg');}

/* Compact review layout: details stay accessible without duplicate summaries. */
.app-shell .st-review-card .application-position { display: none; }
.app-shell .st-review-section-list { display: flex; flex-direction: column; gap: 18px; }
.app-shell .st-review-overview .st-review-completeness { margin: 0; color: #50555C; font: 400 13px/18px Inter, sans-serif; }
.app-shell .st-review-supplementary { display: flex; flex-direction: column; gap: 12px; }
.app-shell .st-review-extra { margin: 0; padding: 0; border: 0; background: transparent; color: #50555C; font: 400 13px/18px Inter, sans-serif; }
.app-shell .st-review-extra > summary { cursor: pointer; font-weight: 600; }
.app-shell .st-review-extra-body { padding-top: 12px; overflow-x: auto; }
.app-shell .st-review-extra-body p { margin: 0 0 9px; color: inherit; font: inherit; }
.app-shell .st-review-extra-body table { width: 100%; font: inherit; }
.app-shell .st-review-summary .st-review-missing { margin: 0; padding: 0; }
.app-shell .st-review-summary .st-review-missing p { margin: 9px 0 0; font: 400 13px/18px Inter, sans-serif; color: inherit; }
.app-shell .st-review-card .st-review-actions > button:last-child { min-width: 218px; }
@media (max-width: 600px) {
  .app-shell .st-review-card .st-review-actions > button:last-child { min-width: 0; }
}

/* Locked access shares the verification screen's card and controls. */
.app-shell.entry-access .form-content #anonymousPreview .section-card {
  padding:48px 75px; border:1px solid #8F7753; border-radius:8px; background:#D9D9D9;
  box-shadow:0 100px 80px rgba(0,0,0,.15),0 41.778px 33.422px rgba(0,0,0,.11),0 22.336px 17.869px rgba(0,0,0,.09),0 12.522px 10.017px rgba(0,0,0,.08),0 6.65px 5.32px rgba(0,0,0,.06),0 2.767px 2.214px rgba(0,0,0,.04);
}
.app-shell #anonymousPreview .section-card-header {margin:0 0 18px;padding:0;border:0;}
.app-shell #anonymousPreview .section-number {color:#A58B5B;font:400 12px/normal Inter,sans-serif;}
.app-shell #anonymousPreview h2 {margin:0;color:#293444;font:400 36px/normal 'EB Garamond',Georgia,serif;}
.app-shell #anonymousPreview .locked-form-area {min-height:0;padding:0;overflow:visible;}
.app-shell #anonymousPreview .preview-fields {display:none;}
.app-shell #anonymousPreview .lock-overlay {
  position:static;display:flex;flex-direction:column;align-items:flex-start;gap:18px;
  padding:24px 21px;border-radius:7px;background:#ECECEC;text-align:left;backdrop-filter:none;
}
.app-shell #anonymousPreview .lock-icon {width:32px;height:32px;border:0;border-radius:0;font-size:0;background:url('../assets/protected-data.svg') center/contain no-repeat;box-shadow:none;}
.app-shell #anonymousPreview .lock-overlay h3 {margin:0;color:#293444;font:400 27px/normal Domine,Georgia,serif;}
.app-shell #anonymousPreview .lock-overlay p {max-width:none;margin:0;color:#50555C;font:400 16px/20px Inter,sans-serif;}
.app-shell #anonymousPreview #unlockApplicationButton,
.app-shell #anonymousPreview #unlockApplicationButton:hover {
  display:inline-flex;align-items:center;justify-content:center;min-height:30px;margin:0;
  padding:6px 24px;border:0;border-radius:40px;background:#293444;color:#D9D9D9;
  font:600 10px/12.5px Inter,sans-serif;text-transform:uppercase;box-shadow:none;cursor:pointer;
}
/* Save, notice, and confirmation dialogs use the common palette. */
body .st-shared-dialog {box-sizing:border-box;width:min(600px,100%);padding:32px;border:1px solid #8F7753;border-radius:8px;background:#D9D9D9;color:#293444;}
body .st-shared-dialog h2 {margin:0 0 18px;color:#293444;font:400 36px/normal 'EB Garamond',Georgia,serif;}
body .st-shared-dialog p {margin:0;color:#50555C;font:400 16px/20px Inter,sans-serif;}
body .st-shared-dialog-actions {display:flex;flex-wrap:wrap;gap:18px;margin-top:32px;padding-top:19px;border-top:1px solid #8F7753;}
body .st-shared-dialog-actions button {min-height:30px;padding:6px 24px;border:1px solid #8F7753;border-radius:40px;background:transparent;color:#8F7753;font:600 10px/12.5px Inter,sans-serif;text-transform:uppercase;cursor:pointer;}
body .st-shared-dialog-actions [data-st-dialog-confirm],body .st-shared-dialog-actions [data-st-dialog-confirm]:hover {border-color:#293444;background:#293444;color:#D9D9D9;}
body .help-panel {border:1px solid #8F7753;border-radius:8px;background:#D9D9D9;color:#293444;}
body .help-panel-header h2 {color:#293444;font:400 36px/normal 'EB Garamond',Georgia,serif;}
body .help-panel-content {color:#50555C;font:400 16px/20px Inter,sans-serif;}
body .help-panel-content p {color:inherit;font:inherit;}
@media(max-width:700px){
 .app-shell.entry-access .form-content #anonymousPreview .section-card {padding:28px 20px;}
 .app-shell #anonymousPreview .lock-overlay {padding:21px;}
 body .st-shared-dialog {padding:24px 20px;}
}

/* Keep one inset around the review; nested headers must not repeat it. */
.app-shell:not(.entry-access) .form-content .section-card.st-review-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 50px 74px; box-sizing: border-box;
  border-radius: 8px; border: 1px solid #8F7753; background: #D9D9D9;
  box-shadow: 0 100px 80px 0 rgba(0,0,0,.15),
    0 41.778px 33.422px 0 rgba(0,0,0,.11),
    0 22.336px 17.869px 0 rgba(0,0,0,.09),
    0 12.522px 10.017px 0 rgba(0,0,0,.08),
    0 6.65px 5.32px 0 rgba(0,0,0,.06),
    0 2.767px 2.214px 0 rgba(0,0,0,.04);
}
@media (max-width: 700px) {
  .app-shell:not(.entry-access) .form-content .section-card.st-review-card {padding: 28px 20px;}
}
.app-shell:not(.entry-access) .form-content .section-card.st-review-card .section-card-header {
  display: block; margin: 0; padding: 0; border: 0;
  width: 100%; box-sizing: border-box; text-align: left;
}
.app-shell:not(.entry-access) .form-content .section-card.st-review-card .section-card-header > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  width: 100%; min-width: 0;
}
.app-shell:not(.entry-access) .form-content .section-card.st-review-card #unlockedSectionNumber {
  width: 100%; margin: 0; padding: 0; letter-spacing: 0;
  color: #A58B5B; font: 400 12px/normal Inter, sans-serif;
}
.app-shell:not(.entry-access) .form-content .section-card.st-review-card #unlockedSectionTitle {
  width: 100%; margin: 0; padding: 0; color: #293444;
  font: 400 36px/normal 'EB Garamond', Georgia, serif;
}
.app-shell:not(.entry-access) .form-content .section-card.st-review-card .section-content {
  margin: 0; padding: 0; width: 100%; box-sizing: border-box;
}

/* Focused identity edits share the dialog styling and keep the review in place. */
body .st-identity-editor .st-shared-dialog {max-height:calc(100dvh - 48px);overflow-y:auto;}
body .st-identity-editor .st-identity-label {display:block;margin:18px 0 9px;color:#293444;font:400 16px/20px Inter,sans-serif;}
body .st-identity-editor .st-identity-input {box-sizing:border-box;width:100%;height:49px;padding:13px 19px;border:1px solid #7C8590;border-radius:7px;background:#FFFFFF;color:#293444;font:400 16px/20px Inter,sans-serif;}
body .st-identity-editor .st-identity-code {margin-top:18px;}
body .st-identity-editor .st-identity-code[hidden] {display:none;}
body .st-identity-otp-cells {display:flex;gap:9px;margin:12px 0;}
body .st-identity-otp-cells input {box-sizing:border-box;min-width:0;width:42px;height:49px;border:1px solid #7C8590;border-radius:7px;background:#FFFFFF;color:#293444;text-align:center;font:400 20px/25px Inter,sans-serif;}
body .st-identity-editor .st-identity-resend {padding:0;border:0;background:transparent;color:#293444;font:400 13px/18px Inter,sans-serif;cursor:pointer;}
body .st-identity-editor .st-identity-message {margin-top:18px;}
body .st-identity-editor .st-identity-message[data-tone='error'] {color:#B44B4B;}
body .st-identity-editor button:disabled {opacity:.55;cursor:not-allowed;}
body .st-identity-otp-cells {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));max-width:297px;}
body .st-identity-otp-cells input {width:100%;}

/* Identity dialogs must stay over the page, even before another dialog opens. */
body .st-shared-dialog-overlay.st-identity-editor {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  overflow-y: auto;
}
body .st-shared-dialog-overlay.st-identity-editor > .st-shared-dialog {
  width: min(600px, 100%); margin: auto; box-sizing: border-box;
}
@media (max-width: 700px) {
  body .st-shared-dialog-overlay.st-identity-editor { padding: 16px; }
}

/* Use the shared chevron for expandable review details instead of browser markers. */
.app-shell .st-review-missing > summary,
.app-shell .st-review-extra > summary {
  display: flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer;
}
.app-shell .st-review-missing > summary::-webkit-details-marker,
.app-shell .st-review-extra > summary::-webkit-details-marker { display: none; }
.app-shell .st-review-missing > summary::marker,
.app-shell .st-review-extra > summary::marker { content: ''; }
.app-shell .st-review-missing > summary::before,
.app-shell .st-review-extra > summary::before {
  content: ''; display: block; width: 16px; height: 16px; flex: 0 0 16px;
  background: #D0D5DD;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 12L10 8L6 4' fill='none' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 12L10 8L6 4' fill='none' stroke='black' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.app-shell .st-review-missing[open] > summary::before,
.app-shell .st-review-extra[open] > summary::before { transform: rotate(90deg); }
.app-shell .st-review-missing > summary:focus-visible,
.app-shell .st-review-extra > summary:focus-visible { outline: 2px solid #E1CBA4; outline-offset: 3px; border-radius: 3px; }
.app-shell .st-review-extra {
  padding: 16px 21px; border-radius: 6px; background: #2E3D51; color: #D9D9D9;
}
.app-shell .st-review-extra > summary { font: 400 16px/20px Domine, serif; }

/* Receipt layout follows the full-width success frame, without the editing sidebar. */
.app-shell.st-submission-success > .tab-navigation,
.app-shell.st-submission-success > .progress-area,
.app-shell.st-submission-success .section-sidebar,
.app-shell.st-submission-success .application-position,
.app-shell.st-submission-success .section-state,
.app-shell.st-submission-success .navigation-actions {display:none;}
.app-shell.st-submission-success .application-workspace {
  display:flex; width:100%; max-width:1440px; min-height:0; margin:0 auto;
  padding:100px 77px; box-sizing:border-box; gap:54px; filter:none;
}
.app-shell.st-submission-success .form-content {width:100%;min-width:0;}
.app-shell:not(.entry-access) .form-content .section-card.st-success-card {
  display:flex; flex-direction:column; align-items:flex-start; gap:18px;
  padding:50px 74px; min-height:473px; box-sizing:border-box;
  border-radius:8px; border:1px solid #8F7753; background:#D9D9D9;
  box-shadow:0 100px 80px 0 rgba(0,0,0,.15),0 41.778px 33.422px 0 rgba(0,0,0,.11),0 22.336px 17.869px 0 rgba(0,0,0,.09),0 12.522px 10.017px 0 rgba(0,0,0,.08),0 6.65px 5.32px 0 rgba(0,0,0,.06),0 2.767px 2.214px 0 rgba(0,0,0,.04);
}
.app-shell:not(.entry-access) .form-content .st-success-card .section-card-header {
  margin:0;padding:0;border:0;width:100%;display:block;
}
.app-shell .st-success-card .section-card-header > div {display:flex;flex-direction:column;gap:18px;align-items:flex-start;}
.app-shell .st-success-card #unlockedSectionNumber {margin:0;color:#A58B5B;font:400 12px/normal Inter,sans-serif;letter-spacing:0;}
.app-shell .st-success-card #unlockedSectionTitle {margin:0;color:#293444;font:400 39px/48.75px Domine,serif;}
.app-shell:not(.entry-access) .form-content .st-success-card .section-content {margin:0;padding:0;width:100%;}
.st-success-copy,.st-success-reference {margin:0;color:#50555C;font:400 16px/20px Inter,sans-serif;}
.st-success-reference {margin-top:18px;}
.st-success-actions {display:flex;flex-direction:column;gap:18px;padding-top:65px;}
.st-success-actions::before {content:'';width:100%;height:1px;background:linear-gradient(180deg,#8F7753 0%,#E1CBA4 29.33%,#B8A17C 55.29%,#735B39 87.5%);}
.st-success-close,.app-shell #saveResumeButton,.app-shell #helpButton {
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:6px 24px;border:0;border-radius:40px;background:#293444;color:#D9D9D9;
  font:600 10px/12.5px Inter,sans-serif;text-transform:uppercase;cursor:pointer;box-shadow:none;
}
.st-success-close {align-self:flex-start;padding:6px 60px;}
.app-shell #saveResumeButton:hover,.app-shell #helpButton:hover,.st-success-close:hover {background:#293444;color:#D9D9D9;}
.st-success-close:disabled {opacity:.55;cursor:wait;}
@media(max-width:700px) {
 .app-shell.st-submission-success .application-workspace {padding:48px 20px;}
 .app-shell:not(.entry-access) .form-content .section-card.st-success-card {padding:28px 20px;min-height:0;}
 .app-shell .st-success-card #unlockedSectionTitle {font-size:30px;line-height:1.25;}
 .st-success-close {max-width:100%;padding:6px 24px;}
}


/* Closing steps use the same shell in every module. */
.app-shell:not(.entry-access) .section-sidebar .st-final-navigation .section-navigation-number { display: none; }
.app-shell:not(.entry-access) .section-sidebar .section-navigation-button:disabled {
  color: #D9D9D9; opacity: .65;
}
.app-shell:not(.entry-access) .section-sidebar .sidebar-actions > button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: auto; min-height: 25px; padding: 6px 24px;
  border: 0; border-radius: 40px; background: #293444; color: #D9D9D9;
  font: 600 10px/12.5px Inter, sans-serif; text-transform: uppercase;
  cursor: pointer; box-shadow: none;
}
.app-shell:not(.entry-access) .section-sidebar .sidebar-actions > button:hover:not(:disabled) {
  background: #293444; color: #D9D9D9;
}
.app-shell:not(.entry-access) .form-content .section-card.st-final-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 18px;
  padding: 50px 74px; box-sizing: border-box;
}
.app-shell:not(.entry-access) .form-content .section-card.st-final-card .section-card-header {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; text-align: left;
}
.app-shell:not(.entry-access) .form-content .section-card.st-final-card .section-card-header > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.app-shell:not(.entry-access) .form-content .section-card.st-final-card #unlockedSectionNumber {
  margin: 0; padding: 0; letter-spacing: 0; color: #A58B5B;
  font: 400 12px/normal Inter, sans-serif;
}
.app-shell:not(.entry-access) .form-content .section-card.st-final-card #unlockedSectionTitle {
  margin: 0; padding: 0; color: #293444;
  font: 400 36px/normal 'EB Garamond', Georgia, serif;
}
@media (max-width: 700px) {
  .app-shell:not(.entry-access) .form-content .section-card.st-final-card { padding: 28px 20px; }
}

/* Gateway screens share one top offset, including direct application links. */
.application-gateway { padding-top: 32px; }
.site-breadcrumb { flex-wrap: wrap; padding-block: 12px; line-height: 1.5; }
.site-breadcrumb [aria-current="page"] { overflow-wrap: anywhere; }
#gatewayMacroGrid[hidden], #gatewayServices[hidden], #gatewayPreview[hidden], #gatewayNotice[hidden] { display: none !important; }
@media (max-width: 700px) { .application-gateway { padding-top: 20px; } }

/* Fieldset semantics group answers without adding a browser-default box. */
#sectionContent fieldset.form-group { border: 0; padding: 0; margin: 0; min-width: 0; }
#sectionContent fieldset.form-group > legend { padding: 0; margin-bottom: 8px; }
.app-shell:not(.entry-access) .form-content .form-grid.st-telephone-pair {
    grid-template-columns: minmax(150px, .6fr) minmax(0, 1fr);
}
@media (max-width: 600px) {
    .app-shell:not(.entry-access) .form-content .form-grid.st-telephone-pair { grid-template-columns: minmax(0, 1fr); }
}
#stPrivacyNotice > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
#stPrivacyNotice > summary::-webkit-details-marker { display: none; }
#stPrivacyNotice > summary::marker { content: ''; }
#stPrivacyNotice > summary::before {
    content: ''; display: block; width: 24px; height: 24px; flex: 0 0 24px;
    background: url("../assets/form-chevron.svg") center / 24px 24px no-repeat;
    transform: rotate(-90deg); pointer-events: none;
}
#stPrivacyNotice[open] > summary::before { transform: rotate(0); }
.app-shell:not(.entry-access) #sectionContent button.st-add-record:not(.st-subject-add):not(.st-subject-save) {
    justify-content: flex-start; gap: 10px; min-height: 70px; padding: 16px 21px;
    border-radius: 7px; background: #2E3D51; color: #D9D9D9;
    font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) #sectionContent button.st-add-record:not(.st-subject-add):not(.st-subject-save)::before {
    content: ''; width: 35px; height: 35px; flex: 0 0 35px;
    background: url("../assets/subject-plus.svg") center / contain no-repeat; pointer-events: none;
}
.app-shell:not(.entry-access) #sectionContent button.st-add-record::after { content: none; display: none; }
#sectionContent .st-readiness-question { margin: 0 0 12px; color: #293444; font: 400 14px/20px Inter, Arial, sans-serif; }

/* The current section keeps its location marker; other sections show review status. */
.app-shell:not(.entry-access) .section-navigation-button.active::after {
    background-image: url('../assets/section-current.svg');
}

/* Shared field typography across modules; section and review titles keep their own styles. */
.app-shell:not(.entry-access) .form-content .form-group > label:not(.option-row):not(.checkbox-row):not(.st-declaration-row),
.app-shell:not(.entry-access) .form-content .field-label {
    font-family: Inter, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px;
}
.app-shell:not(.entry-access) .form-content #sectionContent .st-question-heading {
    font: 400 14px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content #sectionContent :is(.option-row, .checkbox-row),
.app-shell:not(.entry-access) .form-content #sectionContent :is(.option-row, .checkbox-row) > span:not(.required-marker),
.app-shell:not(.entry-access) .form-content #sectionContent label.st-declaration-row {
    font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content #sectionContent .field-hint {
    font: 400 14px/20px Inter, Arial, sans-serif;
}

/* Art intake uses the shared form typography and upload presentation. */
#sectionContent .st-art-section .art-identity-group {border:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:18px;}
#sectionContent .st-art-section .art-identity-group > legend {padding:0;margin-bottom:18px;}
#sectionContent .st-art-section .field-label,
#sectionContent .st-art-section .art-identity-group > legend {color:#293444;font:400 14px/20px Inter,Arial,sans-serif;}
#sectionContent .st-art-section .field-help {color:#50555C;font:400 13px/18px Inter,Arial,sans-serif;}
#sectionContent .upload-status:empty {display:none;}
#sectionContent .st-art-section .art-date-control {position:relative;}
#sectionContent .st-art-section .art-date-control > input[data-art-field] {width:100%;padding-right:54px;}
#sectionContent .st-art-section .art-calendar-button {position:absolute;right:12px;top:8px;width:34px;height:34px;padding:5px;border:0;border-radius:6px;background:transparent;color:#293444;cursor:pointer;}
#sectionContent .st-art-section .art-calendar-button:focus-visible {outline:2px solid #8F7753;outline-offset:2px;}
#sectionContent .st-art-section input.art-date-picker {position:absolute;right:12px;top:8px;width:34px;min-height:34px;height:34px;padding:0;opacity:0;pointer-events:none;}

/* ST-AF-DESIGN-SYSTEM — shared final component presentation.
   Studio Torri + Design System are authoritative; Draft is excluded.
   Module data, validation, routing and optional-upload rules remain module-owned. */
:root {
  --af-color-text: #293444;
  --af-color-secondary: #687384;
  --af-color-border: #C2CBD8;
  --af-color-error: #B44B4B;
  --af-gold-border: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
/* The contact button keeps its existing 97-degree fill. The form card keeps
   its solid gold border. Only borders requiring a gradient use this token. */
.app-shell:not(.entry-access) .section-sidebar {
  border: 1px solid transparent; border-radius: 8px;
  background: linear-gradient(#2E3D51, #2E3D51) padding-box, var(--af-gold-border) border-box;
}
.app-shell:not(.entry-access) .form-content input:is([type="text"],[type="email"],[type="url"],[type="tel"],[type="date"],[type="number"],[type="search"],:not([type])),
.app-shell:not(.entry-access) .form-content select,
.app-shell:not(.entry-access) .form-content textarea {
  box-sizing: border-box; width: 100%; min-width: 0; height: 52px; min-height: 52px;
  padding: 13px 16px; border: 1px solid var(--af-color-border); border-radius: 8px;
  background-color: #FFFFFF; color: var(--af-color-text); font: 400 16px/24px Inter, Arial, sans-serif;
  box-shadow: none;
}
.app-shell:not(.entry-access) .form-content select {
  padding-right: 50px; background: #FFFFFF url('../assets/ds-chevron.svg') right 16px center / 20px 12px no-repeat;
  cursor: pointer;
}
.app-shell:not(.entry-access) .form-content textarea {
  height: 112px; min-height: 112px; padding: 14px 16px; resize: vertical;
}
.app-shell:not(.entry-access) .form-content :is(input,textarea)::placeholder { color: #9A9FA8; opacity: 1; }
.app-shell:not(.entry-access) .form-content input:is([type="text"],[type="email"],[type="url"],[type="tel"],[type="date"],[type="number"],[type="search"],:not([type])):focus-visible,
.app-shell:not(.entry-access) .form-content textarea:focus-visible {
  border: 2px solid transparent; padding: 12px 15px; outline: none;
  background: linear-gradient(#FFFFFF,#FFFFFF) padding-box, var(--af-gold-border) border-box;
}
.app-shell:not(.entry-access) .form-content textarea:focus-visible { padding: 13px 15px; }
.app-shell:not(.entry-access) .form-content select:focus-visible {
  border: 2px solid transparent; padding: 12px 49px 12px 15px; outline: none;
  background: url('../assets/ds-chevron.svg') right 15px center / 20px 12px no-repeat,
    linear-gradient(#FFFFFF,#FFFFFF) padding-box, var(--af-gold-border) border-box;
}
.app-shell:not(.entry-access) .form-content :is(input,select,textarea)[aria-invalid="true"] {
  border: 2px solid var(--af-color-error); padding: 12px 15px; background-color: #FFFFFF; background-image: none;
}
.app-shell:not(.entry-access) .form-content textarea[aria-invalid="true"] { padding: 13px 15px; }
.app-shell:not(.entry-access) .form-content select[aria-invalid="true"] {
  padding-right: 49px; background-image: url('../assets/ds-chevron.svg');
}
.app-shell:not(.entry-access) .form-content :is(input,select,textarea):disabled {
  background-color: #ECECEC; color: #9A9FA8; border: 1px solid #ECECEC; cursor: not-allowed;
}
.app-shell:not(.entry-access) .form-content .form-group > label:not(.option-row):not(.checkbox-row):not(.st-declaration-row),
.app-shell:not(.entry-access) .form-content .field-label,
.app-shell:not(.entry-access) #sectionContent .st-question-heading {
  color: #293444; font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content :is(.field-help,.field-hint,.option-helper,.st-text-counter) {
  color: #687384; font: 400 12px/18px Inter, Arial, sans-serif;
}
.st-text-counter { display: block; text-align: right; margin-top: 8px; }
/* Search inputs inside a composite field never acquire a second border. */
.app-shell:not(.entry-access) .form-content .st-multi-field {
  min-height: 52px; padding: 8px 12px; gap: 8px; border: 1px solid #C2CBD8; border-radius: 8px; background: #FFFFFF;
}
.app-shell:not(.entry-access) .form-content .st-multi-field:focus-within,
.app-shell:not(.entry-access) .form-content .st-multi-control:has(.st-multi-panel:not([hidden])) .st-multi-field {
  border: 2px solid transparent; padding: 7px 11px; outline: none;
  background: linear-gradient(#FFFFFF,#FFFFFF) padding-box, var(--af-gold-border) border-box;
}
.app-shell:not(.entry-access) .form-content .st-multi-field input.st-country-filter,
.app-shell:not(.entry-access) .form-content .st-multi-field input.st-country-filter:focus-visible {
  height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 0;
  background: transparent; outline: none; box-shadow: none;
}
.app-shell:not(.entry-access) #sectionContent .st-selected-chip,
.app-shell:not(.entry-access) #sectionContent .st-multi-field .st-selected-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px;
  padding: 6px 8px 6px 10px; border: 0; border-radius: 999px;
  background: #293444; color: #ECECEC; font: 400 12px/18px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) #sectionContent .st-selected-chip .st-chip-remove {
  color: #ECECEC; font: 500 14px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) .form-content .st-multi-panel {
  padding: 8px; gap: 4px; border: 1px solid #C2CBD8; border-radius: 8px; background: #FFFFFF;
}
.app-shell:not(.entry-access) .form-content .st-multi-arrow {
  cursor: pointer; background-image: url('../assets/ds-chevron.svg'); background-size: 20px 12px;
}
/* Native checked controls have one consistent tick, including dialogs and gate. */
.app-shell input[type="checkbox"], #gatewayNotice input[type="checkbox"],
#sectionContent#sectionContent input[type="checkbox"] {
  appearance: none; width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px;
  padding: 0; border: 1px solid #293444; border-radius: 5px; background: #ECECEC; box-shadow: none;
}
.app-shell input[type="checkbox"]:checked, #gatewayNotice input[type="checkbox"]:checked,
#sectionContent#sectionContent input[type="checkbox"]:checked { background: #293444; border-color: #293444; box-shadow: none; }
.app-shell input[type="checkbox"]:checked::after, #gatewayNotice input[type="checkbox"]:checked::after,
#sectionContent#sectionContent input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; margin: 0;
  border: solid #ECECEC; border-width: 0 2px 2px 0; transform: rotate(45deg); background: transparent;
}
.app-shell input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }
.app-shell:not(.entry-access) .form-content :is(.option-row,.option-card):has(input[type="radio"]:checked) {
  background: #293444; color: #ECECEC;
}
.app-shell:not(.entry-access) .form-content :is(.option-row,.option-card):has(input[type="radio"]:checked) input[type="radio"] {
  width: 14px; height: 14px; flex-basis: 14px; border: 1px solid #ECECEC;
  background: radial-gradient(circle,#ECECEC 0 4px,transparent 4.5px);
}
.app-shell:not(.entry-access) .form-content :is(.option-row,.option-card):has(input:focus-visible) {
  outline: 2px solid #8F7753; outline-offset: 2px;
}
.app-shell:not(.entry-access) .form-content .st-multi-panel :is(.option-row,.checkbox-row) {
  min-height: 30px; padding: 4px 8px; border: 0; background: #FFFFFF; color: #293444;
}
.app-shell:not(.entry-access) .form-content .st-multi-panel :is(.option-row,.checkbox-row) > span {
  font: 400 12px/18px Inter, Arial, sans-serif;
}
/* Primary actions share the Design System pill; section Previous/Next use their approved compact pair. */
.app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) > .primary-button,
.app-shell:not(.entry-access) .form-content .st-review-actions > button:last-child,
.app-shell:not(.entry-access) .form-content .st-final-section .form-actions > button:last-child {
  min-height: 48px; height: auto; min-width: 180px; max-width: 100%; padding: 12px 24px;
  border: 0; border-radius: 24px; background: #273445; color: #FFFEFB;
  font: 400 14px/24px Inter, Arial, sans-serif; text-transform: none; cursor: pointer;
}
.app-shell:not(.entry-access) .form-content .primary-button:disabled { opacity: .55; cursor: not-allowed; }
.app-shell:not(.entry-access) .form-content .conditional-block {
  padding: 12px 16px; border: 1px solid transparent; border-radius: 8px;
  background: linear-gradient(#ECECEC,#ECECEC) padding-box, var(--af-gold-border) border-box;
}
/* Retain upload handlers and genuine stored-file states in every module. */
#sectionContent .upload-file-list { display: flex; flex-direction: column; gap: 10px; }
#sectionContent .upload-file-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 58px; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; background: #ECECEC;
  color: #293444; font: 500 14px/20px Inter, Arial, sans-serif;
}
#sectionContent .upload-file-item > span { min-width: 0; overflow-wrap: anywhere; }
#sectionContent .upload-file-item button {
  flex: 0 0 auto; padding: 4px; border: 0; background: transparent; color: #687384;
  font: 500 14px/20px Inter, Arial, sans-serif; cursor: pointer;
}
#sectionContent .upload-status {
  padding: 6px 10px; border-radius: 14px; background: #ECECEC; color: #687384;
  font: 400 12px/18px Inter, Arial, sans-serif;
}
#sectionContent .upload-status:is(.uploaded,.accepted) { background: #ECECEC; color: #293444; }
#sectionContent .upload-status.rejected { background: #FFFFFF; color: #B44B4B; border: 1px solid #B44B4B; }
#sectionContent .upload-dropzone:focus-within {
  outline: none; border: 2px solid transparent; padding: 34px;
  background: linear-gradient(#ECECEC,#ECECEC) padding-box, var(--af-gold-border) border-box;
}
/* Date icon opens the original native field: collectors keep their ISO value. */
.st-ds-date-wrap { position: relative; width: 100%; }
.app-shell:not(.entry-access) .form-content .st-ds-date-wrap > input[type="date"] { padding-right: 52px; }
.st-ds-date-wrap input::-webkit-calendar-picker-indicator { opacity: 0; }
.app-shell .st-ds-calendar {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; min-height: 0;
  padding: 6px; border: 0; border-radius: 4px; background: transparent; cursor: pointer;
}
.st-ds-calendar img { display: block; width: 20px; height: 20px; pointer-events: none; }
.st-ds-number-wrap { position: relative; width: 100%; }
.app-shell:not(.entry-access) .form-content .st-ds-number-wrap > input[type="number"] { padding-right: 100px; appearance: textfield; }
.app-shell:not(.entry-access) .form-content .st-ds-number-wrap:has(.st-ds-number-tools > span) > input[type="number"] { padding-right: 142px; }
.st-ds-number-wrap input::-webkit-inner-spin-button, .st-ds-number-wrap input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.st-ds-number-tools { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 4px; }
.app-shell .st-ds-number-tools > button, .st-ds-number-tools > span {
  display: flex; justify-content: center; align-items: center; width: 32px; height: 32px; min-height: 0;
  padding: 0; border: 0; border-radius: 6px; background: #ECECEC; color: #293444; font: 500 14px/20px Inter, Arial, sans-serif;
}
.app-shell .st-ds-number-tools > button { cursor: pointer; }
.st-ds-number-tools > span { width: 40px; }
.app-shell .st-ds-number-tools > button:disabled { opacity: .55; cursor: not-allowed; }
.st-ds-number-tools > button:focus-visible { outline: 2px solid #8F7753; outline-offset: 1px; }
.st-ds-calendar:focus-visible { outline: 2px solid #8F7753; outline-offset: 1px; }
.app-shell .st-ds-calendar:disabled { opacity: .55; cursor: not-allowed; }
/* Informational documentation tables. No mandatory-document logic is added. */
.st-doc-notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 8px; background: #D9D9D9; }
.st-doc-notice p { margin: 0; min-width: 0; color: #293444; font: 400 12px/18px Inter, Arial, sans-serif; }
.st-doc-info { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 14px; background: #293444; color: #ECECEC; font: 500 14px/20px Inter, Arial, sans-serif; }
.st-doc-table-scroll { width: 100%; overflow-x: auto; border-radius: 8px 8px 0 0; }
.st-doc-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; color: #293444; font: 500 14px/20px Inter, Arial, sans-serif; }
.st-doc-table th { padding: 14px 12px; background: #293444; color: #ECECEC; text-align: left; font: 400 14px/20px Inter, Arial, sans-serif; }
.st-doc-table th:first-child { border-radius: 8px 0 0 8px; }
.st-doc-table th:last-child { border-radius: 0 8px 8px 0; }
.st-doc-table td { padding: 14px 12px; border-top: 1px solid #C2CBD8; border-bottom: 1px solid #C2CBD8; background: #FFFFFF; vertical-align: middle; }
.st-doc-table td:first-child { border-left: 1px solid #C2CBD8; }
.st-doc-table td:last-child { border-right: 1px solid #C2CBD8; min-width: 180px; font: 400 12px/18px Inter, Arial, sans-serif; }
.st-doc-table .st-doc-applicability { text-align: center; color: #8F7753; min-width: 70px; }
.st-doc-table .st-doc-not-applicable { color: #C2CBD8; }
.st-doc-table .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.st-doc-intake { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-doc-optional { display: inline-flex; padding: 6px 10px; border-radius: 14px; background: #D9D9D9; color: #293444; font: 400 12px/18px Inter, Arial, sans-serif; }
.st-doc-upload { display: inline-block; }
.st-doc-upload > summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #8F7753; border-radius: 16px; color: #8F7753; cursor: pointer; list-style: none; font: 400 12px/18px Inter, Arial, sans-serif; }
.st-doc-upload > summary::-webkit-details-marker { display: none; }
.st-doc-upload > summary::before { content: '↑'; }
.st-doc-upload[open] { width: 100%; }
.st-doc-upload .upload-field { margin-top: 12px; }
.st-doc-upload .upload-dropzone { padding: 16px !important; }
.st-doc-upload .st-upload-prompt strong { font-size: 14px !important; }
.st-doc-bottom-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 8px; background: #D9D9D9; color: #293444; }
.st-doc-bottom-note strong { font: 500 14px/20px Inter, Arial, sans-serif; }
.st-doc-bottom-note span { font: 400 12px/18px Inter, Arial, sans-serif; }
/* Module-specific legacy rules must not shrink these shared labels again. */
.app-shell:not(.entry-access) #sectionContent :is(.field-label, .art-identity-group > legend),
.app-shell:not(.entry-access) #sectionContent .form-group > label:not(.option-row):not(.checkbox-row):not(.st-declaration-row),
.app-shell:not(.entry-access) #sectionContent .form-group > legend {
  color: #293444; font: 400 16px/20px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) #sectionContent :is(.field-help,.field-hint) { font: 400 12px/18px Inter, Arial, sans-serif; }
.app-shell:not(.entry-access) #sectionContent .st-related-section textarea {
  min-height: 112px; height: 112px; padding: 14px 16px; border: 1px solid #C2CBD8;
  border-radius: 8px; background: #FFFFFF; font: 400 16px/24px Inter, Arial, sans-serif;
}
.app-shell:not(.entry-access) #sectionContent .st-related-section textarea:focus-visible {
  padding: 13px 15px; border: 2px solid transparent; outline: none;
  background: linear-gradient(#FFFFFF,#FFFFFF) padding-box, var(--af-gold-border) border-box;
}
@media (max-width: 600px) {
  .app-shell:not(.entry-access) .form-content .form-grid.st-telephone-pair { grid-template-columns: minmax(100px,.45fr) minmax(0,1fr); gap: 10px; }
  .app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) > .primary-button,
  .app-shell:not(.entry-access) .form-content .st-review-actions > button:last-child,
  .app-shell:not(.entry-access) .form-content .st-final-section .form-actions > button:last-child { min-width: 0; }
}


/* ST-AF-FINAL-COMPONENT-REFINEMENT
   Text fields, checkboxes, radio cards, chips and assessments are distinct components. */
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) input:is([type="text"],[type="email"],[type="url"],[type="tel"],[type="date"],[type="number"],[type="search"],:not([type])):not(.st-country-filter):not(.art-date-picker),
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) select:not(.st-search-original) {
 box-sizing:border-box;min-width:0;width:100%;height:52px;min-height:52px;border:1px solid #C2CBD8;border-radius:8px;background-color:#FFFFFF;color:#293444;font:400 16px/24px Inter,Arial,sans-serif;box-shadow:none;
}
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) textarea {
 box-sizing:border-box;width:100%;min-width:0;height:112px;min-height:112px;padding:14px 16px;border:1px solid #C2CBD8;border-radius:8px;background:#FFFFFF;color:#293444;font:400 16px/24px Inter,Arial,sans-serif;resize:vertical;
}
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) input:is([type="text"],[type="email"],[type="url"],[type="tel"],[type="date"],[type="number"],[type="search"],:not([type])):not(.st-country-filter):not(.art-date-picker):not(:disabled):focus,
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) textarea:not(:disabled):focus {
 border:2px solid transparent;outline:none;box-shadow:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) select:not(.st-search-original):not(:disabled):focus {
 border:2px solid transparent;outline:none;box-shadow:none;background:url('../assets/ds-chevron.svg') right 15px center / 20px 12px no-repeat,linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#sectionContent#sectionContent .st-multi-control .st-multi-field {
 box-sizing:border-box;min-height:52px;height:auto;padding:8px 12px;border:1px solid #C2CBD8;border-radius:8px;background:#FFFFFF;
}
#sectionContent#sectionContent .st-single-control .st-multi-field {height:52px;flex-wrap:nowrap;}
#sectionContent#sectionContent .st-multi-control:focus-within .st-multi-field,
#sectionContent#sectionContent .st-multi-control:has(.st-multi-panel:not([hidden])) .st-multi-field {
 border:2px solid transparent;padding:7px 11px;outline:none;box-shadow:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#sectionContent#sectionContent .st-multi-field input.st-country-filter,
#sectionContent#sectionContent .st-multi-field input.st-country-filter:focus {
 height:28px;min-height:28px;border:0;background:transparent;outline:none;box-shadow:none;padding:0;
}
#sectionContent#sectionContent .st-ds-date-wrap > input[type="date"],
#sectionContent#sectionContent .art-date-control > input:not(.art-date-picker) {padding-right:52px;}
#sectionContent#sectionContent .st-ds-date-wrap:focus-within > input[type="date"],
#sectionContent#sectionContent .art-date-control:focus-within > input:not(.art-date-picker) {
 border:2px solid transparent;outline:none;box-shadow:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#sectionContent#sectionContent .st-ds-number-wrap > input[type="number"] {padding-right:100px;}
#sectionContent#sectionContent .st-ds-number-wrap:has(.st-ds-number-tools > span) > input[type="number"] {padding-right:142px;}
#sectionContent#sectionContent .st-ds-number-tools {max-width:calc(100% - 24px);}
/* Invalid always overrides focus; disabled always overrides editing affordances. */
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) :is(input,select,textarea)[aria-invalid="true"],
#sectionContent#sectionContent .st-multi-field.st-validation-error {border:2px solid #B44B4B;background-image:none;}
#sectionContent#sectionContent .st-declarant-cards.st-validation-error {border:2px solid #B44B4B;border-radius:8px;padding:6px;}
:is(#sectionContent#sectionContent,#activationForm,.st-identity-editor) :is(input,select,textarea):disabled:not([type="checkbox"]):not([type="radio"]) {border:1px solid #ECECEC;background:#ECECEC;color:#9A9FA8;cursor:not-allowed;}
#sectionContent#sectionContent .form-group > label:not(.option-row):not(.checkbox-row):not(.st-declaration-row),
#sectionContent#sectionContent :is(.field-label,.st-question-heading,.st-percentage-field > label) {color:#293444;font:400 16px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent :is(.field-help,.field-hint,.option-helper,.st-text-counter) {color:#687384;font:400 12px/18px Inter,Arial,sans-serif;}
#sectionContent#sectionContent :is(input,textarea)::placeholder {color:#9A9FA8;opacity:1;}
#sectionContent#sectionContent .st-related-section textarea::placeholder {color:#9A9FA8;}
/* Ordinary multiple-choice checkboxes: only the square becomes dark blue. */
#sectionContent#sectionContent label.option-row:has(input[type="checkbox"]):not(.st-related-section label) {background:#FFFFFF;color:#293444;border:1px solid #C2CBD8;font:400 16px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent label.checkbox-row:has(input[type="checkbox"]):not(.st-related-section label) {background:transparent;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):has(input[type="checkbox"]) > span:not(.required-marker):not(.st-related-section span) {color:#293444;font-weight:400;}
#sectionContent#sectionContent .st-multi-panel label:has(input[type="checkbox"]) {background:#FFFFFF;color:#293444;}
#sectionContent#sectionContent .st-final-section label:has(input[type="checkbox"]),
#sectionContent#sectionContent label.st-declaration-row {background:transparent;border:0;}
/* Related-area selection tiles and chips keep their approved blue selection. */
#sectionContent#sectionContent .st-related-row > label:has(input:checked) {background:#293444;color:#ECECEC;border:0;}
#sectionContent#sectionContent .st-related-row > label:has(input:checked) > span {color:#ECECEC;}
/* A-E ratings are single-choice assessment cards, not checkbox rows. */
#sectionContent#sectionContent label.st-ae-choice {display:flex;align-items:center;gap:10px;min-height:58px;padding:14px 10px;border:1px solid #C2CBD8;border-radius:8px;background:#FFFFFF;color:#293444;cursor:pointer;}
#sectionContent#sectionContent .st-ae-choice > input[type="radio"] {position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
#sectionContent#sectionContent .st-ae-choice > .st-ae-letter {display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#ECECEC;color:#293444;font:400 14px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-ae-choice > span:not(.st-ae-letter) {font:400 12px/18px Inter,Arial,sans-serif;color:inherit;}
#sectionContent#sectionContent .st-ae-choice:has(input:checked) {background:#293444;color:#ECECEC;border-color:#293444;}
#sectionContent#sectionContent .st-ae-choice:has(input:focus-visible) {border:2px solid transparent;outline:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-ae-choice:has(input:checked):has(input:focus-visible) {background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;}
/* Preserve the approved compact Previous / Next pair. */
.app-shell:not(.entry-access) .form-content :is(#nextSectionButton,#previousSectionButton) {box-sizing:border-box;min-width:108px;width:108px;height:32px;min-height:32px;padding:6px 12px;border-radius:40px;font:600 10px/12.5px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-documentation-overview {width:100%;min-width:0;}
#sectionContent#sectionContent .st-doc-table-scroll {width:100%;max-width:100%;overflow-x:auto;}
#sectionContent#sectionContent .st-doc-table {min-width:880px;table-layout:auto;}
#sectionContent#sectionContent .st-doc-table th:first-child {min-width:210px;}
#sectionContent#sectionContent .st-doc-table th:last-child {min-width:220px;}
#sectionContent#sectionContent .upload-file-item {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:10px 12px;border-radius:8px;background:#ECECEC;}
#sectionContent#sectionContent .upload-file-item > span {font:500 14px/20px Inter,Arial,sans-serif;color:#293444;overflow-wrap:anywhere;min-width:0;}
#sectionContent#sectionContent .upload-file-item button {color:#687384;font:500 14px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .upload-dropzone:focus-within {outline:none;border:2px solid transparent;padding:34px;background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-subject-delete {border:1px solid transparent;background:linear-gradient(#2E3D51,#2E3D51) padding-box,var(--af-gold-border) border-box;}
#otpVerification:not([data-otp-state="error"]) #stOtpBoxes input:focus,
.st-identity-otp-cells input:not([aria-invalid="true"]):focus {border:2px solid transparent;outline:none;box-shadow:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
@media(max-width:600px){
 #sectionContent#sectionContent .st-percentage-pair {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 #sectionContent#sectionContent .st-ds-number-wrap:has(.st-ds-number-tools > span) > input[type="number"] {padding-right:100px;}
 #sectionContent#sectionContent .st-ds-number-tools > span {width:24px;}
 #sectionContent#sectionContent .st-ds-number-tools {right:6px;gap:2px;}
 #sectionContent#sectionContent .st-ds-number-tools > button {width:26px;}
}

/* Radio answer cards: light-blue default border and gradient keyboard focus. */
#sectionContent#sectionContent label.option-row:has(input[type="radio"]):not(.st-ae-choice) {border-color:#C2CBD8;}
#sectionContent#sectionContent .st-declarant-cards label.option-card:not(:has(input:checked)) {background:#ECECEC;border-color:transparent;color:#293444;}
#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:checked):not(.st-ae-choice) {background:#293444;border-color:#293444;color:#ECECEC;}
#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:focus-visible):not(.st-ae-choice) {outline:none;border:2px solid transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-declarant-cards label.option-card:has(input:focus-visible):not(:has(input:checked)) {background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:checked):has(input:focus-visible):not(.st-ae-choice) {background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;}

/* ST-AF-UPLOAD-CARDS — Design System upload states */
#sectionContent#sectionContent .st-upload-card {display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #C2CBD8;border-radius:8px;padding:16px 18px;margin-block:12px;color:#293444;min-width:0;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="empty"] {border-style:dashed;}
#sectionContent#sectionContent .st-upload-card > label {font:400 14px/20px Inter,Arial,sans-serif;margin:0;}
#sectionContent#sectionContent .st-upload-card .upload-dropzone {display:flex;justify-content:center;align-items:center;min-height:62px;padding:12px;border:1px solid transparent;border-radius:8px;background:#ECECEC;cursor:pointer;}
#sectionContent#sectionContent .st-upload-card .st-upload-prompt {flex-direction:row;gap:10px;font:400 16px/20px Inter,Arial,sans-serif;margin:0;width:100%;justify-content:center;}
#sectionContent#sectionContent .st-upload-card .st-upload-prompt span {font:inherit;color:inherit;}
#sectionContent#sectionContent .st-upload-card .upload-dropzone:focus-within,
#sectionContent#sectionContent .st-upload-card .upload-dropzone.st-upload-drag {border:2px solid transparent;padding:11px;background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;outline:none;}
#sectionContent#sectionContent .st-upload-card .field-help {text-align:left;font:400 12px/18px Inter,Arial,sans-serif;color:#687384;margin:0;}
#sectionContent#sectionContent .st-upload-card .upload-status {background:none;border:0;padding:0;border-radius:0;font:400 12px/18px Inter,Arial,sans-serif;color:#687384;}
#sectionContent#sectionContent .st-upload-card .st-upload-progress {display:none;width:100%;height:6px;accent-color:#293444;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploading"] .st-upload-progress {display:block;}
#sectionContent#sectionContent .st-upload-card .st-upload-add {display:none;align-self:flex-start;background:none;border:0;padding:0;color:#293444;font:400 12px/18px Inter,Arial,sans-serif;min-height:24px;cursor:pointer;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploaded"] .st-upload-add,
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] .st-upload-add {display:block;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] {border:1px solid #B44B4B;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] .upload-status {color:#B44B4B;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] {background:#ECECEC;color:#9A9FA8;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] .upload-dropzone {cursor:not-allowed;color:#9A9FA8;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploading"] .upload-dropzone {pointer-events:none;opacity:.65;}

/* Upload guidance and telephone labels */
#sectionContent#sectionContent .st-upload-guidance {font:400 12px/18px Inter,Arial,sans-serif;color:#687384;}
#sectionContent#sectionContent .st-upload-guidance summary {cursor:pointer;color:#293444;}
#sectionContent#sectionContent .st-upload-guidance[open] .field-help {margin-top:6px;}
#sectionContent#sectionContent .st-upload-thumbnail {width:80px;height:80px;border-radius:8px;object-fit:cover;flex:0 0 80px;background:#C2CBD8;}
#sectionContent#sectionContent .upload-file-item > span {flex:1;}
#sectionContent#sectionContent .st-telephone-heading {grid-column:1/-1;font:400 16px/20px Inter,Arial,sans-serif;color:#293444;}
#sectionContent#sectionContent .st-telephone-pair {grid-template-columns:minmax(120px,.6fr) minmax(0,1fr);gap:8px 16px;align-items:end;}
#sectionContent#sectionContent .st-telephone-pair .form-group > label {font:400 14px/20px Inter,Arial,sans-serif;}
@media(max-width:600px){#sectionContent#sectionContent .st-telephone-pair {grid-template-columns:minmax(100px,.45fr) minmax(0,1fr);gap:8px 10px;}}

/* ST-AF-HOVER-PLACEHOLDERS */
#sectionContent#sectionContent select.st-empty-select {color:#9A9FA8;}
#sectionContent#sectionContent select option {color:#293444;background:#FFFFFF;}
#sectionContent#sectionContent select option[value=""] {color:#9A9FA8;}
#sectionContent#sectionContent .st-text-counter {display:block;text-align:right;margin-top:4px;}
@media(hover:hover){
#sectionContent#sectionContent select:hover:not(:disabled):not([aria-invalid="true"]):not(.st-search-original) {border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent :is(.st-declarant-cards label,.option-row:has(input[type="radio"]),.st-ae-choice):hover:has(input:not(:disabled)):not(:has(input:checked)) {border-color:transparent;background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-ae-choice:hover:has(input:not(:disabled)):not(:has(input:checked)) {background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent :is(.st-declarant-cards label,.option-row:has(input[type="radio"]),.st-ae-choice):hover:has(input:checked:not(:disabled)) {border-color:transparent;background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent :is(input[type="checkbox"],input[type="radio"]):hover:not(:disabled):not(:checked) {border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent input[type="checkbox"]:checked:hover:not(:disabled) {border-color:transparent;background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;box-shadow:none;}
#sectionContent#sectionContent .st-selected-chip:hover {border:1px solid transparent;background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-related-row > label:hover:has(input:not(:disabled)) {border:1px solid transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent .st-related-row > label:hover:has(input:checked:not(:disabled)) {background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;}
}

/* ST-AF-DECLARATION-ROWS — exclude ordinary option-card styling. */
#sectionContent#sectionContent#sectionContent label.st-declaration-row,
#sectionContent#sectionContent#sectionContent .st-final-section label.option-row:has(input[type="checkbox"]) {
 display:flex;align-items:flex-start;gap:12px;width:100%;height:auto;min-height:0;padding:0;margin:0 0 18px;border:0;background:transparent;box-shadow:none;border-radius:0;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent label.st-declaration-row > span,
#sectionContent#sectionContent#sectionContent .st-final-section label.option-row > span {
 display:block;flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;background:transparent;border:0;padding:0;margin:0;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent label.st-declaration-row input[type="checkbox"] {flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:1px 0 0;}

/* ST-AF-FULL-SELECTION-HOVER */
@media(hover:hover){
#sectionContent#sectionContent#sectionContent label.option-row:not(.st-declaration-row):hover:has(input[type="checkbox"]:not(:disabled)) {
 border:1px solid transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;color:#293444;cursor:pointer;
}
#sectionContent#sectionContent#sectionContent .st-declarant-cards label.option-card:hover:has(input:not(:disabled)):not(:has(input:checked)) {
 border:1px solid transparent;background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;cursor:pointer;
}
#sectionContent#sectionContent#sectionContent .st-declarant-cards label.option-card:hover:has(input:checked:not(:disabled)) {
 border:1px solid transparent;background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;color:#ECECEC;cursor:pointer;
}
#sectionContent#sectionContent#sectionContent .st-related-row label:hover:has(input:checked:not(:disabled)) {
 border:1px solid transparent;background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;color:#ECECEC;
}
}

/* Person editor telephone pair: same shared layout as identification. */
#sectionContent#sectionContent#sectionContent .st-telephone-pair {display:grid;grid-template-columns:minmax(120px,.6fr) minmax(0,1fr);gap:8px 16px;align-items:end;}
#sectionContent#sectionContent#sectionContent .st-telephone-pair > .form-group {min-width:0;margin:0;}
#sectionContent#sectionContent#sectionContent .st-telephone-pair .st-multi-control {width:100%;min-width:0;}
@media(max-width:600px){#sectionContent#sectionContent#sectionContent .st-telephone-pair {grid-template-columns:minmax(100px,.45fr) minmax(0,1fr);gap:8px 10px;}}

/* ST-AF-MULTISELECT-MENU — plain options within one menu. */
#sectionContent#sectionContent#sectionContent .st-multi-panel :is(label.option-row,label.checkbox-row) {
  display:flex; align-items:center; gap:10px; min-height:32px; height:auto;
  padding:6px 8px; margin:0; border:1px solid transparent; border-radius:4px;
  background:#FFFFFF; color:#293444; box-shadow:none; cursor:pointer;
}
#sectionContent#sectionContent#sectionContent .st-multi-panel :is(label.option-row,label.checkbox-row)[hidden] {display:none;}
#sectionContent#sectionContent#sectionContent .st-multi-panel label > span {font:400 12px/18px Inter,Arial,sans-serif;}
#sectionContent#sectionContent#sectionContent .st-multi-panel input[type="checkbox"] {width:16px;height:16px;min-height:16px;flex-basis:16px;border-radius:3px;background:#FFFFFF;border-color:#C2CBD8;}
#sectionContent#sectionContent#sectionContent .st-multi-panel input[type="checkbox"]:checked {background:#293444;border-color:#293444;}
#sectionContent#sectionContent#sectionContent .st-multi-panel input[type="checkbox"]:checked::after {left:4px;top:1px;}
#sectionContent#sectionContent#sectionContent .st-multi-panel label:has(input:focus-visible) {outline:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;}
#sectionContent#sectionContent#sectionContent .st-multi-arrow {background-size:12px 8px;}

/* ST-AF-CHECKBOX-ROW-PARITY — TAB10 and shared checkbox-row markup. */
#sectionContent#sectionContent#sectionContent label.checkbox-row:not(.st-declaration-row):not(.st-multi-panel label):not(.st-final-section label):not(.st-related-section label) {
 display:flex;align-items:center;gap:10px;min-height:40px;height:auto;padding:8px 12px;
 margin:0 0 8px;border:1px solid #C2CBD8;border-radius:8px;background:#FFFFFF;
 color:#293444;box-shadow:none;cursor:pointer;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent label.checkbox-row > span {font:400 16px/20px Inter,Arial,sans-serif;color:#293444;}
#sectionContent#sectionContent#sectionContent .st-multi-panel label.checkbox-row > span {font:400 12px/18px Inter,Arial,sans-serif;}
#sectionContent#sectionContent#sectionContent label.checkbox-row:has(input:focus-visible):not(.st-declaration-row):not(.st-final-section label):not(.st-related-section label) {
 outline:none;border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
@media (hover:hover) {
 #sectionContent#sectionContent#sectionContent label.checkbox-row:hover:has(input:not(:disabled)):not(.st-declaration-row):not(.st-final-section label):not(.st-related-section label) {
 border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
 }
}

/* ST-AF-AUDIT-CONSISTENCY — shared dimensions and state priority. */
#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):has(input[type="checkbox"]):not(.st-declaration-row):not(.st-multi-panel label):not(.st-final-section label):not(.st-related-section label) {
 box-sizing:border-box;min-height:52px;height:auto;align-items:center;
}
#sectionContent#sectionContent#sectionContent .st-multi-panel {
 box-sizing:border-box;border:1px solid #C2CBD8;border-radius:8px;background:#FFFFFF;
 box-shadow:0 4px 12px rgba(41,52,68,.08);padding:8px;max-height:230px;overflow:auto;
}
#sectionContent#sectionContent#sectionContent .st-search-option {
 min-height:32px;height:auto;padding:6px 8px;margin:0;border:1px solid transparent;
 border-radius:4px;background:#FFFFFF;color:#293444;font:400 12px/18px Inter,Arial,sans-serif;
 text-align:left;box-shadow:none;white-space:normal;overflow-wrap:anywhere;
}
#sectionContent#sectionContent#sectionContent .st-search-option:focus-visible {
 outline:none;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
@media(hover:hover) {
 #sectionContent#sectionContent#sectionContent .st-search-option:hover {
  background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
 }
}
/* Error and disabled borders retain precedence over hover/focus. */
#sectionContent#sectionContent#sectionContent .st-multi-field.st-validation-error {
 border:2px solid #B44B4B;background:#FFFFFF;box-shadow:none;
}
#sectionContent#sectionContent#sectionContent .st-multi-field.st-control-disabled {
 border:1px solid #ECECEC;background:#ECECEC;color:#9A9FA8;cursor:not-allowed;box-shadow:none;
}
#sectionContent#sectionContent#sectionContent .st-control-disabled button {cursor:not-allowed;}
#sectionContent#sectionContent#sectionContent .st-single-control .st-selected-chip {max-width:100%;}
#sectionContent#sectionContent#sectionContent :is(.upload-file-item,.st-subject-identity,.st-review-identity-value) {min-width:0;}
#sectionContent#sectionContent#sectionContent :is(.upload-file-item span,.st-subject-identity strong,.st-review-identity-value > span) {overflow-wrap:anywhere;}

/* Validation state wins over editing highlights in every native field. */
#sectionContent#sectionContent#sectionContent :is(input,select,textarea)[aria-invalid="true"] {
 border:2px solid #B44B4B;outline:none;box-shadow:none;background-image:none;
}
#sectionContent#sectionContent#sectionContent select[aria-invalid="true"]:not(.st-search-original) {
 background-image:url('../assets/ds-chevron.svg');background-repeat:no-repeat;background-position:right 15px center;background-size:20px 12px;
}
#sectionContent#sectionContent#sectionContent :is(input,select,textarea):disabled:not([type="checkbox"]):not([type="radio"]) {
 border:1px solid #ECECEC;background:#ECECEC;color:#9A9FA8;cursor:not-allowed;box-shadow:none;
}

/* Invalid fields keep their white surface when focus removes the gold layers.
   Checkbox/radio selection indicators retain their own state styling. */
:is(#sectionContent#sectionContent#sectionContent, #activationForm#activationForm, .st-identity-editor.st-identity-editor)
:is(input:not([type="checkbox"]):not([type="radio"]), select, textarea)[aria-invalid="true"]:not(:disabled) {
    background-color: #FFFFFF;
}

/* Telephone pairs occupy the full parent row, including legacy nested grids. */
#sectionContent#sectionContent#sectionContent .st-telephone-pair {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* ST-AF-SHARED-REFINEMENT
   Inactive sections remain available; muted text must still be readable. */
.app-shell:not(.entry-access) .section-sidebar .section-navigation-button:not(.active):not(.completed):not(:disabled) {
    color: #50555C;
}
.app-shell:not(.entry-access) .section-sidebar .section-navigation-button:is(.active,.completed) {
    color: #D9D9D9;
}

/* Keep browser-autofilled fields on the same white surface as typed fields.
   Inset fill does not replace the existing gold focus or red error border. */
:is(.app-shell, .st-identity-editor)
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(:disabled):is(:autofill, :-webkit-autofill) {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #293444;
    color: #293444;
    caret-color: #293444;
}

/* Six equal cells shrink with their container rather than overflowing it. */
#otpVerification#otpVerification #stOtpBoxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: clamp(4px, 1vw, 12px);
}
#otpVerification#otpVerification #stOtpBoxes input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    font-size: clamp(18px, 2.5vw, 28px);
}
#applicationGateway .gateway-panel,
#otpVerification, #otpForm, #otpVerification .otp-card { min-width: 0; }

/* At intermediate widths, give navigation its own row before it collides
   with the logo. Desktop contact-button styling stays unchanged. */
@media (max-width: 1120px) {
    .app-header { flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; }
    .app-header .brand-area { min-width: 0; }
    .app-header .brand-mark { max-width: 100%; }
    .app-header .site-navigation {
        width: 100%; min-width: 0; margin-left: 0;
        flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px;
        overflow: visible;
    }
    .app-header .site-header-actions { flex-wrap: wrap; gap: 12px; }
    .app-header .site-nav-link { padding: 8px 0; }
    .app-header .header-meta { max-width: 100%; }
}
@media (max-width: 600px) {
    #otpVerification .form-actions { align-items: stretch; }
    #otpVerification #otpForm .primary-button { max-width: 100%; white-space: normal; }
    #otpVerification #otpBackButton { max-width: 100%; }
}


/* Figma upload track: 6px, 3px corners, #ECECEC track / #293444 fill.
   Transfer progress is measured by the shared upload transport. */
#sectionContent#sectionContent .st-upload-card .st-upload-progress {
    appearance: none; -webkit-appearance: none;
    height: 6px; min-height: 6px; border: 0; border-radius: 3px;
    padding: 0; background: #ECECEC; overflow: hidden;
}
#sectionContent#sectionContent .st-upload-progress::-webkit-progress-bar { background: #ECECEC; border-radius: 3px; }
#sectionContent#sectionContent .st-upload-progress::-webkit-progress-value { background: #293444; border-radius: 3px; }
#sectionContent#sectionContent .st-upload-progress::-moz-progress-bar { background: #293444; border-radius: 3px; }
#sectionContent#sectionContent .st-upload-progress:indeterminate::-webkit-progress-bar { background: transparent; }
@keyframes stUploadActivity { from { background-position: left center; } to { background-position: right center; } }
/* Searchable and native dropdowns use the same Design System artwork. */
#sectionContent#sectionContent .st-multi-arrow {
    width: 24px; height: 24px; min-height: 24px; flex: 0 0 24px;
    padding: 0; border: 0; border-radius: 0; mask: none; -webkit-mask: none;
    background: transparent url('../assets/ds-chevron.svg') center / 20px 12px no-repeat;
}

/* Figma header divider: 1px gold gradient, inset by the header's 58px padding. */
.app-header { border-bottom: 0; }
.app-header::after {
    content: ""; position: absolute; left: 58px; right: 58px; bottom: 0;
    height: 1px; pointer-events: none;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
.site-nav-link.current::after {
    content: ""; position: absolute; bottom: -4px; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}
@media(max-width:1120px) { .app-header::after { left: 20px; right: 20px; } }

/* The two horizontal footer dividers share the supplied 1px gold gradient. */
.torri-footer-lower,
.torri-footer-company > p { position: relative; border-top: 0; }
.torri-footer-lower::before,
.torri-footer-company > p::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; pointer-events: none;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}

/* Figma breadcrumb inset and separation below the header divider. */
.site-breadcrumb { padding: 33px 80px 0; min-height: 0; }
@media(max-width:850px) { .site-breadcrumb { padding: 24px 20px 0; } }

/* Shared Figma spacing: breadcrumb-to-content and content-to-footer.
   Keep the completeness source accessible; its visible summary is in review. */
.app-shell > .progress-area {
    position: absolute; width: 1px; height: 1px; min-height: 0;
    padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
.app-shell > .application-gateway { padding-top: 100px; padding-bottom: 100px; }
.app-shell > .application-workspace,
.app-shell.entry-access:not(.gateway-active) > .application-workspace {
    margin-top: 100px; margin-bottom: 100px; padding-top: 0; padding-bottom: 0;
}
.app-shell.st-submission-success > .application-workspace {
    margin-top: 100px; margin-bottom: 100px; padding-top: 0; padding-bottom: 0;
}

/* One chevron size for native and searchable controls, in every state. */
#sectionContent#sectionContent#sectionContent .st-multi-arrow {
 background:transparent url('../assets/ds-chevron.svg') center / 20px 12px no-repeat;
 background-size:20px 12px; cursor:pointer;
}
#sectionContent#sectionContent .st-upload-progress {animation:none;}
#sectionContent#sectionContent .st-upload-pending {display:flex;align-items:center;gap:12px;background:#ECECEC;border-radius:8px;padding:10px 12px;min-width:0;}
#sectionContent#sectionContent .st-upload-pending > span {flex:1;min-width:0;overflow-wrap:anywhere;font:400 14px/20px Inter,Arial,sans-serif;color:#293444;}
#sectionContent#sectionContent .st-upload-pending small {display:block;font:400 12px/18px Inter,Arial,sans-serif;color:#687384;}
#sectionContent#sectionContent .st-upload-pending button {background:none;border:0;padding:4px;color:#687384;cursor:pointer;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploading"] .upload-dropzone,
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploaded"] .upload-dropzone {display:none;}
#sectionContent#sectionContent .st-upload-card .upload-file-item {background:#ECECEC;border:0;border-radius:8px;padding:10px 12px;color:#293444;}
#sectionContent#sectionContent .st-upload-meta {display:block;font:400 12px/18px Inter,Arial,sans-serif;color:#687384;}
#sectionContent#sectionContent .st-upload-actions {display:flex;gap:10px;align-items:center;}
#sectionContent#sectionContent .st-upload-actions button {background:none;border:0;padding:0;font:400 12px/18px Inter,Arial,sans-serif;color:#293444;cursor:pointer;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] .st-upload-pending small {color:#B44B4B;}

#sectionContent#sectionContent .upload-file-item:has(.st-upload-thumbnail) {background:#FFFFFF;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] .upload-dropzone {display:none;}
#sectionContent#sectionContent .st-upload-pending ~ .st-upload-progress {animation:none;}
#sectionContent#sectionContent .st-upload-actions button {font:400 12px/18px Inter,Arial,sans-serif;color:#293444;}

/* Retry is owned by the failed file row, never duplicated below the card. */
#sectionContent#sectionContent .st-upload-card .st-upload-add[hidden] {display:none !important;}
#sectionContent#sectionContent .st-upload-card:has(.st-upload-pending) > .upload-status {display:none;}
#sectionContent#sectionContent .st-upload-pending button {appearance:none;background:transparent;border:0;padding:0;font:400 14px/20px Inter,Arial,sans-serif;color:#B44B4B;cursor:pointer;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="error"] .st-upload-pending {background:#ECECEC;}

/* Complete Design System upload states: 600px reference scales to its form column. */
#sectionContent#sectionContent .st-upload-card .upload-file-item {font:400 14px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-upload-card .upload-file-item > span {font:400 14px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-upload-card .upload-file-item > button {font:400 14px/20px Inter,Arial,sans-serif;border:0;background:none;padding:0;color:#687384;min-width:20px;}
#sectionContent#sectionContent .st-upload-actions {flex-wrap:wrap;gap:10px;min-height:18px;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] {border-color:#ECECEC;background:#ECECEC;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] > label {color:#9A9FA8;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] :is(.upload-dropzone,.st-upload-prompt,.st-upload-actions button) {color:#9A9FA8;cursor:not-allowed;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="disabled"] .st-upload-prompt svg {opacity:.45;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="empty"] .upload-status,
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploaded"] > .upload-status {display:none;}
#sectionContent#sectionContent .st-upload-prompt:focus-visible {outline:2px solid #8F7753;outline-offset:3px;}
#sectionContent#sectionContent .st-upload-actions button:disabled {color:#9A9FA8;cursor:not-allowed;}

/* Documentation overview: white component panel and original readable table sizes. */
#sectionContent#sectionContent .st-doc-panel {background:#FFFFFF;border:1px solid #C2CBD8;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0;}
#sectionContent#sectionContent .st-doc-panel-title {margin:0;color:#293444;font:600 18px/24px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-doc-panel > p {margin:0;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;}
#sectionContent#sectionContent .st-doc-panel .st-doc-notice {background:#D9D9D9;min-width:0;}
#sectionContent#sectionContent .st-doc-panel .st-doc-table-scroll {margin:0;}
#sectionContent#sectionContent .st-doc-section-note {display:inline-flex;padding:6px 10px;border:1px solid #8F7753;border-radius:16px;font:400 12px/18px Inter,Arial,sans-serif;color:#8F7753;white-space:nowrap;}
#sectionContent#sectionContent .st-doc-table td {font-weight:400;}
#sectionContent#sectionContent :is(.st-doc-table-scroll,.table-wrapper,.table-scroll,.table-container) {scrollbar-color:#293444 #ECECEC;scrollbar-width:thin;}
#sectionContent#sectionContent :is(.st-doc-table-scroll,.table-wrapper,.table-scroll,.table-container)::-webkit-scrollbar {height:8px;width:8px;}
#sectionContent#sectionContent :is(.st-doc-table-scroll,.table-wrapper,.table-scroll,.table-container)::-webkit-scrollbar-thumb {background:#293444;border-radius:4px;}
#sectionContent#sectionContent :is(.st-doc-table-scroll,.table-wrapper,.table-scroll,.table-container)::-webkit-scrollbar-track {background:#ECECEC;border-radius:4px;}
#sectionContent#sectionContent .st-upload-card[data-upload-state="uploading"] .st-upload-progress {display:block !important;flex:0 0 6px;width:100%;height:6px;min-height:6px;}
@media(max-width:600px) {#sectionContent#sectionContent .st-doc-panel {padding:16px;}}

/* Gateway fields are moved out of activationForm by gateway.js. */
#gatewayNotice input:is([type="email"],[type="text"]):not(:disabled):focus {
    border:2px solid transparent;outline:none;
    background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#gatewayNotice input:is([type="email"],[type="text"])[aria-invalid="true"] {border-color:#B44B4B;}

/* Content replacement must not restore a previous document scroll anchor. */
.app-shell > .application-workspace, .app-shell > .application-gateway {overflow-anchor:none;}

/* Shared Related Areas layout: full-width rows with module-owned values. */
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas .form-group {
 display:flex;flex-direction:column;gap:9px;min-width:0;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas .option-group,
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas .st-related-row {
 display:flex;flex-direction:column;gap:8px;width:100%;grid-template-columns:none;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label.option-row {
 display:flex;align-items:center;justify-content:flex-start;gap:10px;
 width:100%;box-sizing:border-box;min-height:52px;height:auto;
 margin:0;padding:8px 12px;border:1px solid #C2CBD8;border-radius:8px;
 background:#FFFFFF;color:#293444;box-shadow:none;cursor:pointer;
 font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label.option-row > span {
 min-width:0;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas .form-group > label:not(.option-row) {
 margin:0;color:#293444;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label.option-row:has(input:checked) {
 background:#FFFFFF;color:#293444;border:1px solid #C2CBD8;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label.option-row:has(input:focus-visible) {
 outline:none;border-color:transparent;
 background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
@media (hover:hover) {
 #sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label.option-row:hover:has(input:not(:disabled)) {
  border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
 }
}

/* Submission receipt actions: consistent buttons and a separate helper note. */
.st-copy-controls {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin:0;
    padding:0;
}
.st-success-actions .st-copy-download,
.st-success-actions > .st-success-close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    box-sizing:border-box;
    min-height:40px;
    width:242px;
    max-width:100%;
    padding:12px 24px;
    border:0;
    border-radius:40px;
    background:#293444;
    color:#D9D9D9;
    font:600 10px/16px Inter,sans-serif;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:none;
}
.st-success-actions .st-copy-download:hover:not(:disabled) {
    background:#344256;
}
.st-success-actions .st-copy-download:focus-visible,
.st-success-actions > .st-success-close:focus-visible {
    outline:2px solid #9B7843;
    outline-offset:3px;
}
.st-success-actions .st-copy-download:disabled {
    background:#687384;
    color:#FFFFFF;
    opacity:.65;
    cursor:not-allowed;
}
.st-copy-controls .st-copy-note {
    margin:0;
    max-width:600px;
    color:#687384;
    font:400 12px/18px Inter,sans-serif;
}

/* Shared desktop presentation: identity questions, notes and single choices. */
#sectionContent#sectionContent#sectionContent#sectionContent fieldset.st-identity-group {
 min-width:0;margin:0;padding:0;border:0;background:transparent;
}
#sectionContent#sectionContent#sectionContent#sectionContent fieldset.st-identity-group > legend {
 float:none;width:100%;padding:0;margin:0 0 12px;color:#293444;
 font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-question-heading {
 font:400 16px/20px Inter,Arial,sans-serif;color:#293444;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-section-note {
 background:#ECECEC;border:0;border-radius:8px;padding:16px;margin:0;
 color:#687384;font:400 12px/18px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-section-note p {
 margin:0;font:inherit;color:inherit;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-section-note p + p {margin-top:8px;}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]) {
 border:1px solid transparent;border-radius:4px;font:400 16px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:checked),
#sectionContent#sectionContent#sectionContent#sectionContent .st-search-option[aria-selected="true"] {
 background:#293444;color:#ECECEC;border-color:transparent;
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:checked) :is(span,.st-ae-letter) {color:inherit;}
@media(hover:hover) {
 #sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):hover:has(input[type="radio"]:not(:disabled)):not(:has(input:checked)) {
  background:linear-gradient(#ECECEC,#ECECEC) padding-box,var(--af-gold-border) border-box;border-color:transparent;
 }
 #sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):hover:has(input[type="radio"]:checked:not(:disabled)),
 #sectionContent#sectionContent#sectionContent#sectionContent .st-search-option[aria-selected="true"]:hover {
  background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;border-color:transparent;color:#ECECEC;
 }
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:focus-visible) {
 outline:2px solid #B6A175;outline-offset:2px;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-search-option[aria-selected="true"]:focus-visible {
 background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;color:#ECECEC;
}

#sectionContent#sectionContent#sectionContent#sectionContent .st-ae-choice:has(input:checked) > .st-ae-letter {color:#293444;}

/* Invalid identification fields keep their red border during hover and focus. */
#sectionContent#sectionContent#sectionContent#sectionContent :is(input,select,textarea)[aria-invalid="true"],
#sectionContent#sectionContent#sectionContent#sectionContent :is(.st-multi-field,.st-declarant-cards).st-validation-error {
 border:2px solid #B44B4B !important;background-image:none !important;outline-color:#B44B4B !important;
}

/* Shared pointer and click/focus states; error borders remain authoritative. */
#sectionContent#sectionContent#sectionContent#sectionContent :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.st-country-filter):not(.art-date-picker),textarea,select:not(.st-search-original)):not(:disabled):not([aria-invalid="true"]):focus,
#sectionContent#sectionContent#sectionContent#sectionContent .st-multi-field:not(.st-control-disabled):not(.st-validation-error):focus-within {
 border:2px solid transparent;outline:none;box-shadow:none;
 background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card,label.checkbox-row):has(input:not(:disabled):focus):not(:has(input[aria-invalid="true"])):not(:has(input[type="radio"]:checked)):not(.st-related-areas label:has(input:checked)) {
 border:1px solid transparent;outline:none;
 background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.option-card):has(input[type="radio"]:checked:focus),
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label:has(input:checked:focus) {
 background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;color:#ECECEC;
}
@media(hover:hover) {
 #sectionContent#sectionContent#sectionContent#sectionContent :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not(.st-country-filter):not(.art-date-picker),textarea,select:not(.st-search-original)):not(:disabled):not([aria-invalid="true"]):hover,
 #sectionContent#sectionContent#sectionContent#sectionContent .st-multi-field:not(.st-control-disabled):not(.st-validation-error):hover {
  border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
 }
 #sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):hover:has(input[type="checkbox"]:not(:disabled)):not(:has(input[aria-invalid="true"])) {
  border:1px solid transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;
 }
 #sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label:hover:has(input:checked:not(:disabled)) {
  background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;color:#ECECEC;
 }
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(input[type="checkbox"],input[type="radio"]):not(:disabled):not([aria-invalid="true"]):focus {
 border-color:transparent;background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;outline:none;
}
#sectionContent#sectionContent#sectionContent#sectionContent input[type="checkbox"]:checked:not(:disabled):focus {
 background:linear-gradient(#293444,#293444) padding-box,var(--af-gold-border) border-box;
}

/* Escrow summaries keep long names and document filenames readable. */
#sectionContent .st-beneficiary {min-width:0;margin:0;padding:20px;border:1px solid #C2CBD8;border-radius:8px;}
#sectionContent .st-beneficiary > legend {padding:0 6px;font:400 16px/24px Inter,Arial,sans-serif;}
#sectionContent .st-escrow-review-answer {margin:12px 0;overflow-wrap:anywhere;}
#sectionContent .st-escrow-review-answer dt {font:500 14px/20px Inter,Arial,sans-serif;}
#sectionContent .st-escrow-review-answer dd {margin:4px 0 0;font:400 14px/20px Inter,Arial,sans-serif;white-space:pre-wrap;}

/* Declaration statements remain plain text, including on hover and focus. */
#sectionContent#sectionContent#sectionContent#sectionContent label.st-declaration-row,
#sectionContent#sectionContent#sectionContent#sectionContent .st-final-section label:has(input[type="checkbox"]),
#sectionContent#sectionContent#sectionContent#sectionContent label.st-declaration-row:is(:hover,:focus-within),
#sectionContent#sectionContent#sectionContent#sectionContent .st-final-section label:has(input[type="checkbox"]):is(:hover,:focus-within) {
 background:transparent !important;background-image:none !important;border:0 !important;
 box-shadow:none !important;outline:none;border-radius:0;padding:0;color:#293444;
 font:400 16px/24px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent label.st-declaration-row > span {
 font:inherit;color:inherit;background:transparent;
}
/* A heading receives focus after navigation without looking like an input. */
#unlockedSectionTitle:focus {outline:none;box-shadow:none;}

#sectionContent#sectionContent#sectionContent#sectionContent .st-final-section input[type="checkbox"]:hover:not(:checked) {
 background:#FFFFFF;background-image:none;border-color:#C2CBD8;box-shadow:none;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-final-section input[type="checkbox"]:hover:checked {
 background:#293444;background-image:none;border-color:#293444;box-shadow:none;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-final-section input[type="checkbox"]:focus-visible {
 outline:2px solid #B6A175;outline-offset:3px;
}

/* Keep the final explanatory note consistent with other help panels. */
#sectionContent#sectionContent#sectionContent#sectionContent .st-escrow-coda {
 background:#ECECEC;border:0;border-radius:8px;padding:16px;margin:0;
 color:#687384;font:400 12px/18px Inter,Arial,sans-serif;
}

/* Helper copy and character counts share the line beneath their field. */
#sectionContent#sectionContent .st-field-meta {
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;
 gap:4px 16px;margin-top:4px;
}
#sectionContent#sectionContent .st-field-meta :is(.field-help,.field-hint) {
 margin:0;min-width:0;text-align:left;
}
#sectionContent#sectionContent .st-field-meta .st-text-counter {
 grid-column:2;margin:0;white-space:nowrap;text-align:right;
}

/* Completion belongs below the breadcrumb and above both form columns. */
.app-shell > .st-section-progress {display:block;box-sizing:border-box;margin:36px 80px 0;padding:0;}
.app-shell > .st-section-progress .progress-text {margin:0 0 8px;color:#D9D9D9;font:400 12px/18px Inter,Arial,sans-serif;}
.app-shell > .st-section-progress .progress-track {height:6px;background:#39485B;border-radius:999px;}
.app-shell > .st-section-progress .progress-fill {background:linear-gradient(90deg,#8F7753 0%,#E1CBA4 29.33%,#B8A17C 55.29%,#735B39 87.5%);}
.app-shell:has(> .st-section-progress:not([hidden])) > .application-workspace {margin-top:36px;}
.app-shell:is(.entry-access,.gateway-active,.st-submission-success) > .st-section-progress {display:none;}
@media(max-width:850px){.app-shell > .st-section-progress {margin:28px 20px 0;}}

/* Selected assessment letters stay readable on their pale badges. */
#sectionContent#sectionContent#sectionContent#sectionContent label.option-row.st-ae-choice:has(input[type="radio"]:checked) > .st-ae-letter {
 color:#293444;background:#ECECEC;
}

/* Shared identity-document card and review action geometry. */
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document {
 display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:16px;border:0;border-radius:8px;background:#ECECEC;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document > :is(legend,h3,strong),
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document > .info-box > strong {
 float:none;width:100%;margin:0;padding:0;color:#293444;font:600 14px/20px Inter,Arial,sans-serif;
}
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document > .info-box {padding:0;margin:0;border:0;background:transparent;}
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document :is(.form-group,.form-grid) {margin:0;gap:0;min-width:0;}
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document .form-grid {grid-template-columns:minmax(0,1fr);}
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document :is(.field-label,label:not(.option-row):not(.option-card)) {margin:0;font:400 14px/20px Inter,Arial,sans-serif;}
.app-shell:not(.entry-access) .form-content .st-review-card .st-review-actions > button {
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;height:auto;padding:11px 22px;border-radius:24px;font:400 14px/24px Inter,Arial,sans-serif;text-transform:none;
}
@media(max-width:600px){
 .app-shell:not(.entry-access) .form-content .st-review-card .st-review-actions > button {width:100%;min-width:0;flex:0 0 auto;padding-inline:12px;font-size:12px;}
}
@media(max-width:600px){
 .app-shell:not(.entry-access) .form-content .st-review-card .st-review-actions {display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;align-items:stretch;}
}

/* Checkbox cards retain their light surface; selection belongs to the checkbox. */
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):has(input[type="checkbox"]:checked):not(.st-final-section label):not(.st-declaration-row),
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label:has(input[type="checkbox"]:checked) {
 background:#FFFFFF;color:#293444;border:1px solid #C2CBD8;
}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):has(input[type="checkbox"]:checked):not(.st-final-section label):not(.st-declaration-row) > span,
#sectionContent#sectionContent#sectionContent#sectionContent .st-related-areas label:has(input[type="checkbox"]:checked) > span {color:#293444;}
#sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):has(input[type="checkbox"]:checked:focus):not(.st-final-section label):not(.st-declaration-row) {
 background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;border-color:transparent;color:#293444;
}
@media(hover:hover){
 #sectionContent#sectionContent#sectionContent#sectionContent :is(label.option-row,label.checkbox-row):hover:has(input[type="checkbox"]:checked:not(:disabled)):not(.st-final-section label):not(.st-declaration-row) {
  background:linear-gradient(#FFFFFF,#FFFFFF) padding-box,var(--af-gold-border) border-box;border-color:transparent;color:#293444;
 }
}
/* Direct checkbox lists use the same spacing as grouped choices. */
#sectionContent#sectionContent fieldset.form-group:has(> label.option-row input[type="checkbox"]) {display:flex;flex-direction:column;gap:8px;}
#sectionContent#sectionContent fieldset.form-group > label.option-row {margin-block:0;}
/* Identity cards use one heading and the same stacked five-field geometry. */
#sectionContent#sectionContent#sectionContent#sectionContent .st-declarant-document > .st-document-heading {
 display:block;float:none;width:100%;margin:0;padding:0;font:600 14px/20px Inter,Arial,sans-serif;
}

#sectionContent#sectionContent fieldset.form-group > .checkbox-grid {display:flex;flex-direction:column;gap:8px;}

/* The application link stays marked throughout gateway, verification and form screens. */
.app-header .site-navigation > .site-nav-link[data-header-gateway="areas"]::after {
    content: ""; display: block; position: absolute; left: 0; bottom: -4px;
    width: 100%; height: 1px; pointer-events: none;
    background: linear-gradient(180deg, #8F7753 0%, #E1CBA4 29.33%, #B8A17C 55.29%, #735B39 87.5%);
}

/* Keep each tax-residence control separate from the next one. */
#sectionContent .st-tax-residence {display:flex;flex-direction:column;gap:8px;}
#sectionContent .st-tax-residence > :is(.form-group,.option-row) {margin:0;}
/* Show the initial screen after its language and entry state have been restored. */
html.st-language-loading #appShell {visibility:hidden;}

/* Dropdown rows use the complete menu width; validation messages stay below fields. */
#sectionContent .st-multi-panel :is(label.option-row,label.checkbox-row) {box-sizing:border-box;width:100%;}
#sectionContent .st-field-validation-message {margin:6px 0 0;color:#B44B4B;font:400 12px/18px Inter,Arial,sans-serif;}
#sectionContent .st-field-validation-message[hidden] {display:none;}

/* Establishment cards keep the shared controls inside a padded body. */
.app-shell #tab03EstablishmentsList { display: grid; gap: 16px; margin-bottom: 16px; }
.app-shell [data-tab03-establishment] .repeatable-card-header h4 { margin: 0; font: 600 15px/21px Inter, sans-serif; }
.app-shell [data-tab03-establishment] .repeatable-card-body { gap: 16px; }
.app-shell [data-tab03-establishment] .form-group { margin: 0; min-width: 0; }
.app-shell [data-tab03-establishment] [data-remove-establishment] { min-height: 30px; padding: 6px 18px; border: 1px solid #8F7753; border-radius: 40px; background: transparent; color: #8F7753; font: 600 10px/16px Inter, sans-serif; text-transform: uppercase; }
.app-shell .st-review-summary.is-incomplete .st-review-missing,
.app-shell .st-review-summary.is-incomplete .st-review-missing p { color: #ECECEC; }

/* Country results must extend beyond the establishment card. */
.app-shell .form-content [data-tab03-establishment] { overflow: visible; }

/* Form references follow the service-card and preview typography. */
.gateway-service-number {
    display: block; margin: 0 0 6px; height: 16px;
    color: #A88752; font: normal 600 12px/normal "Inter", Arial, sans-serif;
}
.gateway-preview-form-label {
    margin: 0 0 18px; min-height: 16px; color: #A88752;
    font: normal 600 11px/normal "Inter", Arial, sans-serif;
    letter-spacing: 0.55px; text-transform: uppercase;
}
