/* Responsive presentation extends the shared desktop components. */
.mobile-menu-toggle,.mobile-sections-toggle {display:none;-webkit-tap-highlight-color:transparent;}

@media (max-width:1120px) {
 .app-shell .app-header {flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;min-height:80px;padding:16px 24px;}
 .app-shell .app-header .header-meta {display:none;}
 .app-shell .app-header .header-meta:has(.meta-item:not([hidden])) {display:flex;flex:1 0 100%;order:3;margin:0;}
 .app-shell .app-header .brand-area {flex:0 1 240px;width:auto;min-width:0;margin:0;}
 .app-shell .app-header .brand-mark {display:block;max-width:100%;width:240px;height:auto;}
 .responsive-navigation-ready .app-header .mobile-menu-toggle {display:flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:44px;padding:10px 14px;color:#ECECEC;border:1px solid #8F7753;border-radius:24px;background:transparent;font:600 13px/20px Inter,Arial,sans-serif;cursor:pointer;}
 .mobile-menu-icon {display:block;position:relative;width:18px;height:12px;border-block:1.5px solid currentColor;}
 .mobile-menu-icon::after {content:'';position:absolute;inset:4px 0 auto;height:1.5px;background:currentColor;}
 .responsive-navigation-ready .app-header .site-navigation {position:absolute;inset:100% 16px auto;z-index:100;width:auto;max-height:calc(100dvh - 110px);overflow:auto;margin:0;padding:16px;display:none;flex-direction:column;align-items:stretch;gap:4px;white-space:normal;border:1px solid #8F7753;border-radius:12px;background:#293444;box-shadow:0 16px 32px #0005;}
 .responsive-navigation-ready .app-header.mobile-navigation-open .site-navigation {display:flex;}
 .app-shell .app-header .site-navigation .site-nav-link {display:flex;align-items:center;min-height:44px;width:100%;margin:0;padding:12px;text-align:left;white-space:normal;font-size:13px;line-height:20px;}
 .app-shell .app-header .site-header-actions {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 0;padding:12px 8px 0;border-top:1px solid #657080;}
 .app-shell .app-header .site-language {min-height:44px;}
 .app-shell .app-header .site-contact-button {display:flex;align-items:center;justify-content:center;min-height:44px;height:auto;padding:10px 22px;white-space:normal;font-size:12px;line-height:20px;}
 .app-shell .app-header .site-language-menu {position:static;margin-top:4px;}
 .app-shell .app-header .site-language-menu[hidden] {display:none;}
 .app-shell .app-header .site-language-menu button {min-height:44px;}
 .app-shell .site-breadcrumb {padding:24px 24px 0;overflow-wrap:anywhere;}
 .app-shell > .st-section-progress {margin:24px 24px 0;}
 .app-shell > .application-workspace {width:calc(100% - 48px);max-width:none;margin:28px 24px 64px;grid-template-columns:230px minmax(0,1fr);gap:20px;}
 .app-shell:not(.entry-access):not(.gateway-active) .section-sidebar {padding:28px 20px;min-width:0;}
 .app-shell:not(.entry-access) .section-navigation-list {gap:22px;}
 .app-shell:not(.entry-access) .section-navigation-button {min-width:0;padding-right:34px;font-size:18px;line-height:26px;}
 .app-shell:not(.entry-access) .section-navigation-button::after {width:26px;height:26px;}
 .app-shell:not(.entry-access) .form-content .section-card-header {margin:0 28px;padding-top:28px;}
 .app-shell:not(.entry-access) .form-content .section-content {padding:24px 28px;}
 .app-shell .application-gateway {grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:28px;padding:48px 24px 64px;}
 .app-shell .gateway-panel {width:100%;max-width:100%;padding:32px;}
 .app-shell .gateway-intro {width:auto;min-width:0;}
 .app-shell .gateway-compliance-notice {min-width:0;}
 .app-shell .torri-feature-band {gap:28px;padding:40px 24px;grid-template-columns:repeat(2,minmax(0,1fr));}
 .app-shell .torri-feature::after {display:none;}
 .app-shell .torri-footer {padding:40px 24px;}
 .app-shell .torri-footer-brands {gap:32px;}
 .app-shell .torri-footer-partners {flex-wrap:wrap;gap:24px;}
 .app-shell .torri-footer-partners > div {min-width:0;}
 .app-shell .torri-footer img {max-width:100%;height:auto;}
 #sectionContent#sectionContent .st-doc-table-scroll {position:relative;min-width:0;max-width:100%;}
}

@media (max-width:900px) {
 .app-shell {-webkit-tap-highlight-color:transparent;}
 .app-shell > .application-workspace,.app-shell.entry-access:not(.gateway-active) > .application-workspace {display:grid;grid-template-columns:minmax(0,1fr);width:calc(100% - 40px);margin:24px 20px 48px;gap:16px;}
 .app-shell:has(> .st-section-progress:not([hidden])) > .application-workspace {margin-top:24px;}
 .app-shell.st-submission-success > .application-workspace {width:calc(100% - 40px);margin:24px 20px 48px;padding:0;}
 .app-shell:not(.entry-access):not(.gateway-active) .section-sidebar {position:static;width:100%;padding:16px 20px;border-radius:10px;}
 .responsive-navigation-ready .section-sidebar .mobile-sections-toggle {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:48px;padding:0;border:0;background:transparent;color:#ECECEC;text-align:left;cursor:pointer;}
 .mobile-sections-toggle > span:first-child {display:flex;flex-direction:column;gap:4px;min-width:0;}
 .mobile-sections-label {color:#E1CBA4;font:400 11px/16px Inter,Arial,sans-serif;}
 #mobileCurrentSection {font:600 14px/21px Inter,Arial,sans-serif;overflow-wrap:anywhere;}
 .mobile-sections-chevron {display:block;flex:0 0 8px;width:8px;height:8px;margin-right:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);}
 [aria-expanded="true"] > .mobile-sections-chevron {transform:rotate(225deg);}
 .responsive-navigation-ready .section-sidebar #sectionNavigation {display:none;}
 .responsive-navigation-ready .section-sidebar.mobile-navigation-open #sectionNavigation {display:block;max-height:60dvh;overflow-y:auto;margin-top:16px;overscroll-behavior:contain;}
 .app-shell:not(.entry-access) .section-sidebar .section-navigation-list {display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;overflow:visible;width:100%;}
 .app-shell:not(.entry-access) .section-sidebar .section-navigation-button {flex:none;width:100%;min-height:48px;padding:12px 38px 12px 0;font:400 16px/24px Inter,Arial,sans-serif;white-space:normal;overflow-wrap:anywhere;}
 .app-shell:not(.entry-access) .section-sidebar .section-navigation-button::after {top:50%;transform:translateY(-50%);width:24px;height:24px;}
 .app-shell:not(.entry-access) .section-sidebar .sidebar-actions {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:14px;padding-top:14px;}
 .app-shell:not(.entry-access) .section-sidebar .sidebar-actions button {width:100%;min-height:44px;padding:10px 12px;font:600 11px/16px Inter,Arial,sans-serif;}
 .app-shell .form-content,.app-shell .access-view {width:100%;min-width:0;max-width:100%;}
 .app-shell:not(.entry-access) .form-content .section-card {min-width:0;width:100%;max-width:100%;}
 .app-shell .application-gateway,#applicationGateway.showing-otp {display:flex;flex-direction:column;gap:24px;padding:32px 20px 48px;}
 .app-shell .gateway-intro {display:contents;}
 .app-shell .gateway-intro > h1 {order:0;margin:0;font-size:32px;line-height:1.2;}
 .app-shell .gateway-intro > p {order:1;margin:0;font-size:15px;line-height:23px;}
 .app-shell .gateway-panel {order:2;min-height:0;width:100%;max-width:680px;align-self:center;padding:28px;}
 .app-shell .gateway-compliance-notice {order:3;align-self:center;width:100%;max-width:680px;grid-column:auto;margin:0;}
 .app-shell .gateway-contacts {order:4;align-self:center;width:100%;max-width:680px;margin:16px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
 .app-shell .gateway-contact-row,.app-shell .gateway-secure-sessions {min-width:0;margin:0;}
 .app-shell .gateway-contact-copy {min-width:0;overflow-wrap:anywhere;}
 .app-shell .gateway-intro h1 {max-width:none;}
 .app-shell .gateway-macro-grid {gap:14px;}
 .app-shell .gateway-macro-card {min-height:220px;padding:18px 14px;}
 .app-shell .gateway-services button {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
 .app-shell .gateway-preview-actions {gap:12px;flex-wrap:wrap;}
 .app-shell .gateway-panel :is(.gateway-back,.gateway-preview-continue),#gatewayNotice > button {min-height:44px;}
 #applicationGateway #activationGate .section-card {min-height:0;padding:28px;}
 #otpVerification .otp-card,.app-shell.entry-access #otpVerification .otp-card {max-width:100%;padding:28px;}
 .app-shell .torri-footer-brands {flex-direction:column;align-items:flex-start;}
 .app-shell .torri-footer-lower {grid-template-columns:minmax(0,1fr);gap:28px;}
 .app-shell .torri-footer-company {min-width:0;max-width:100%;}
}

@media (max-width:600px) {
 .app-shell .app-header {min-height:76px;padding:14px 16px;}
 .app-shell .app-header .brand-area {flex-basis:205px;}
 .app-shell .app-header .brand-mark {width:205px;}
 .app-shell .app-header::after {left:16px;right:16px;}
 .app-shell .site-breadcrumb {gap:8px;padding:20px 16px 0;font-size:11px;line-height:18px;}
 .app-shell > .st-section-progress {margin:20px 16px 0;}
 .app-shell > .application-workspace,.app-shell.entry-access:not(.gateway-active) > .application-workspace {width:calc(100% - 24px);margin-inline:12px;}
 .app-shell.st-submission-success > .application-workspace {width:calc(100% - 24px);margin:24px 12px 48px;padding:0;}
 .app-shell:not(.entry-access):not(.gateway-active) .section-sidebar {padding:14px 16px;}
 .app-shell:not(.entry-access) .form-content .section-card-header {margin:0 20px;padding-top:24px;}
 .app-shell:not(.entry-access) .form-content .section-content {padding:20px;}
 .app-shell:not(.entry-access) .form-content .section-card-header h2,.app-shell:not(.entry-access) .form-content .subsection-heading {font-size:28px;line-height:1.25;overflow-wrap:anywhere;}
 .app-shell:not(.entry-access) .application-position {font-size:20px;line-height:26px;margin-bottom:12px;}
 .app-shell:not(.entry-access) #unlockedApplication .section-number {font-size:10px;line-height:16px;margin-bottom:12px;overflow-wrap:anywhere;}
 #sectionContent#sectionContent#sectionContent :is(.form-grid,.two-columns,.three-columns,.option-card-grid,.st-declarant-cards,.st-related-row,.st-subject-grid) {grid-template-columns:minmax(0,1fr);gap:14px;}
 #sectionContent#sectionContent#sectionContent .st-telephone-pair {grid-template-columns:minmax(95px,.45fr) minmax(0,1fr);gap:8px 10px;}
 #sectionContent#sectionContent#sectionContent .st-percentage-pair {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 #sectionContent :is(.form-group,fieldset,legend,.conditional-block,.st-beneficiary,.st-connected-subject,.st-review-row-main,.info-box) {min-width:0;max-width:100%;}
 #sectionContent :is(.field-label,legend,.info-box p,.st-field-meta,.upload-file-item,.st-review-row-title,.st-subject-identity) {overflow-wrap:anywhere;}
 #sectionContent#sectionContent .st-related-row > label {min-height:48px;}
 .app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) {gap:12px;flex-wrap:wrap;}
 .app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) > button,.app-shell:not(.entry-access) .form-content :is(#previousSectionButton,#nextSectionButton) {min-height:44px;height:auto;max-width:100%;min-width:0;padding:12px 18px;font-size:12px;line-height:18px;white-space:normal;}
 .app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) > button:last-child {flex:0 0 auto;}
 #sectionContent#sectionContent .st-multi-arrow {width:40px;height:44px;flex:0 0 40px;background-size:20px;}
 #sectionContent#sectionContent .st-country-filter {min-width:0;font-size:16px;}
 #sectionContent#sectionContent .st-multi-panel {max-height:50dvh;overscroll-behavior:contain;}
 #sectionContent#sectionContent .st-selected-chip {min-height:36px;max-width:100%;white-space:normal;}
 #sectionContent#sectionContent .st-upload-card {padding:14px;}
 #sectionContent#sectionContent .st-upload-pending {flex-wrap:wrap;}
 #sectionContent#sectionContent .upload-dropzone {padding:18px 12px;}
 #sectionContent#sectionContent .st-upload-prompt {min-height:44px;white-space:normal;}
 #sectionContent#sectionContent .st-doc-panel {padding:14px;}
 #sectionContent#sectionContent .st-documentation-overview {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
 .app-shell .form-content .section-card.st-review-card {padding:24px 20px;}
 .app-shell:not(.entry-access) .form-content .section-card.st-review-card #unlockedSectionTitle {font-size:28px;line-height:1.25;}
 .app-shell .st-review-row {gap:10px;}
 .app-shell .st-review-identity {grid-template-columns:minmax(0,1fr);gap:16px;}
 .app-shell.st-submission-success .form-content .section-card {padding:28px 20px;}
 .app-shell .st-success-actions {display:flex;flex-direction:column;gap:12px;}
 .app-shell .st-success-actions > button {width:100%;min-height:44px;white-space:normal;}
 .app-shell .application-gateway,#applicationGateway.showing-otp {padding:28px 16px 40px;gap:20px;}
 .app-shell .gateway-panel {padding:24px 20px;}
 .app-shell .gateway-panel h2 {font-size:26px;line-height:1.25;}
 .app-shell .gateway-panel h3 {font-size:24px;line-height:1.3;}
 .app-shell .gateway-macro-card {min-height:0;gap:10px;align-items:flex-start;}
 .app-shell .gateway-macro-card strong {font-size:16px;line-height:21px;}
 .app-shell .gateway-macro-card small {font-size:12px;line-height:18px;}
 .app-shell .gateway-macro-icon,.app-shell .gateway-macro-icon svg {width:40px;height:40px;}
 .app-shell .gateway-contacts {grid-template-columns:minmax(0,1fr);gap:20px;}
 .app-shell .gateway-compliance-notice {gap:12px;}
 .app-shell .gateway-compliance-notice > svg {width:28px;height:28px;flex-basis:28px;}
 .app-shell .gateway-compliance-notice h2 {font-size:13px;line-height:19px;}
 #applicationGateway #activationGate .section-card,#otpVerification .otp-card,.app-shell.entry-access #otpVerification .otp-card {padding:24px 20px;}
 #otpVerification #stOtpBoxes {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-width:420px;}
 #otpVerification #stOtpBoxes input {width:100%;min-width:0;height:52px;padding:0;font-size:22px;}
 #otpVerification #otpForm :is(.primary-button,.secondary-button),#activationForm .form-actions > button {min-height:44px;height:auto;max-width:100%;padding:12px 18px;font-size:12px;line-height:18px;white-space:normal;}
 .app-shell .torri-feature-band {grid-template-columns:minmax(0,1fr);gap:24px;padding:32px 20px;min-height:0;}
 .app-shell .torri-feature {min-height:0;align-items:flex-start;gap:16px;}
 .app-shell .torri-feature > svg {width:44px;height:44px;flex:0 0 44px;}
 .app-shell .torri-footer {padding:32px 20px;}
 .app-shell .torri-footer-partners {display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:100%;}
 .app-shell .torri-footer-partners img {max-width:240px;width:100%;height:auto;}
 .app-shell .torri-footer-links {gap:24px;flex-wrap:wrap;}
 .app-shell .help-panel {width:100%;max-width:100%;max-height:90dvh;overflow-y:auto;padding:24px 20px;}
 .app-shell .help-close-button {min-width:44px;min-height:44px;}
 body .st-shared-dialog-overlay {padding:12px;}
 body .st-shared-dialog {max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;}
 body .st-shared-dialog h2 {font-size:28px;line-height:1.25;}
 body .st-shared-dialog-actions button {min-height:44px;padding:12px 18px;font-size:12px;line-height:18px;}
 body .st-shared-dialog-overlay.st-identity-editor {padding:12px;align-items:flex-start;}
 body .st-identity-editor .st-shared-dialog {max-width:100%;max-height:calc(100dvh - 24px);padding:24px 20px;overflow-y:auto;}
 body .st-identity-editor .st-shared-dialog-actions {display:flex;gap:12px;flex-wrap:wrap;}
 body .st-identity-editor .st-shared-dialog-actions button {min-height:44px;flex:1;}
 .app-shell .mobile-menu-toggle:focus-visible,.app-shell .mobile-sections-toggle:focus-visible {outline:2px solid #E1CBA4;outline-offset:4px;}
}

@media (max-width:360px) {
 .app-shell .app-header .brand-area {flex-basis:175px;}
 .app-shell .app-header .brand-mark {width:175px;}
 .app-shell .gateway-macro-grid {grid-template-columns:minmax(0,1fr);}
 .app-shell .gateway-macro-card {min-height:0;}
}

@media (prefers-reduced-motion:reduce) {
 .mobile-menu-toggle,.mobile-sections-toggle {scroll-behavior:auto;}
}

/* Keep paired navigation actions consistent without stretching their height. */
.app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions) > :is(.primary-button,.secondary-button) {
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;height:auto;padding:12px 22px;font-size:12px;line-height:20px;
}
@media(max-width:600px) {
 .app-shell:not(.entry-access) .form-content :is(.navigation-actions,.form-actions,.st-review-actions) > button {flex:0 0 auto;width:100%;min-height:48px;}
}
.app-shell:not(.entry-access) .form-content .st-final-section .form-actions > button {
 min-height:48px;height:auto;padding:11px 22px;font:400 14px/24px Inter,Arial,sans-serif;
}
@media(max-width:600px) {
 .app-shell:not(.entry-access) .form-content :is(#nextSectionButton,#previousSectionButton) {width:100%;min-height:48px;height:auto;flex:0 0 auto;}
}
@media(max-width:600px) {
 .app-shell:not(.entry-access) .form-content .st-final-section .form-actions > button {padding:12px;font-size:12px;line-height:20px;}
}
