/* Shared generator components come from index.css; only US-specific layout lives here. */
.us-shell { max-width: 1120px; padding-bottom: 48px; }
.us-intro { padding: 20px 0 28px; max-width: 850px; }
.us-intro h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.12; letter-spacing: -.04em; margin: 18px 0; }
.us-shell p { color: var(--muted); line-height: 1.7; }
.us-shell > .surface { padding: 24px; margin-bottom: 22px; }
.us-shell h2 { margin-top: 0; }
.us-shell label:not(.synthetic-toggle):not(.advanced-toggle) { display: block; margin: 16px 0 8px; color: var(--text); }
.us-shell input:not([type=checkbox]), .us-shell textarea, .us-shell select { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: inherit; }
.us-shell input:focus-visible, .us-shell textarea:focus-visible, .us-shell select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.us-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 600px; overflow: auto; font: 13px/1.6 "JetBrains Mono", monospace; }
.us-shell .btn-neo { cursor: pointer; white-space: normal; text-align: center; max-width: 100%; }
.us-shell a:not(.btn-neo):not(.small-btn) { color: var(--green-2); }
.us-shell .generator-panel, .us-shell .result-panel { padding: 18px; margin-bottom: 0; }
.us-shell .generator-wrap { display: grid; gap: 28px; }
.us-shell .field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.us-shell .advanced-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
.us-shell .advanced-panel .field label { margin-top: 0; }
.us-shell .advanced-panel .field + .field { margin-top: 0; }
.us-shell .advanced-panel.open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.us-shell .us-optional-options { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.us-shell .us-optional-options > summary { min-height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; color: var(--text); font-weight: 800; list-style: none; }
.us-shell .us-optional-options > summary::-webkit-details-marker { display: none; }
.us-shell .us-optional-options > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.us-shell .us-optional-options[open] > summary::after { transform: rotate(225deg); }
.us-shell .us-optional-options > summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.us-shell .us-optional-options > summary > span:first-child i { color: var(--green-2); }
.us-shell .us-optional-options .field-hint { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 600; }
.us-shell .us-optional-options-body { padding: 0 12px 12px; }
.us-shell .us-optional-options-body small { display: block; margin-top: 7px; color: var(--muted); }
.us-shell .us-seed-options .field { margin: 0; }
.us-shell .advanced-panel #gen-scope { margin: 0; }
.us-state-badge { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 24px; border: 1px solid rgba(49, 226, 116, .4); border-radius: 5px; background: rgba(49, 226, 116, .12); color: var(--green-2); font-size: .75rem; font-weight: 900; letter-spacing: .02em; }
.us-state-badge i { font-size: .85rem; }
.us-shell .us-state-combobox .country-search { width: calc(100% - 20px); margin: 10px; }
.us-shell .us-bank-combobox .country-search { width: calc(100% - 20px); margin: 10px; }
.us-shell input.country-search { box-sizing: border-box; height: 40px; min-height: 40px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); padding: 0 12px; }
.us-shell .us-state-combobox, .us-shell .us-bank-combobox { min-width: 0; }
.us-shell .us-bank-combobox .country-menu { max-height: min(430px, 70vh); }
.us-shell .us-bank-combobox .country-options { max-height: min(318px, 52vh); }
.us-shell .us-bank-combobox .country-option-main { flex: 1 1 auto; }
.us-shell .us-bank-combobox .country-option .mono { color: var(--muted); font-size: .78rem; }
.us-shell .us-bank-search-status { display: block; min-height: 1.2em; padding: 0 14px 10px; color: var(--muted); font-size: .78rem; }
.us-shell .us-bank-combobox .country-button:disabled { opacity: .6; cursor: not-allowed; }
.us-shell .us-state-native { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.us-shell .us-state-combobox .country-button:disabled { opacity: .6; cursor: not-allowed; }
.us-shell .generator-quota-preview {
  margin-top: 14px;
  text-align: center;
  border-color: rgba(49, 226, 116, .22);
  background: rgba(49, 226, 116, .07);
  color: var(--muted);
}
.us-shell #gen-status { min-height: 1.5rem; margin-top: 12px; text-align: center; color: var(--muted); }
.us-shell #gen-status .btn-neo { display: inline-flex; margin: 8px; }
.us-shell :is(#gen-status, .workflow-offer-panel) .btn-primary-neo,
.us-shell :is(#gen-status, .workflow-offer-panel) .btn-primary-neo:visited {
  color: #031009; background: linear-gradient(135deg, #2ccc67, #31e274); text-decoration: none;
}
.us-shell .hero-grid { max-width: 100%; }
.us-generator-shell { max-width: 1440px; }
.us-generator-shell .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.us-generator-shell .hero-preview { min-width: 0; width: 100%; }
.us-generator-shell .hero-copy h1 { font-size: clamp(2.5rem, 4vw, 4.4rem); }
.us-generator-shell #us-hero-slogan span { white-space: normal; overflow-wrap: break-word; }
.us-generator-shell .hero-preview .preview-bank-stack span { white-space: normal; }
@media (max-width: 980px) { .us-generator-shell .hero-grid { grid-template-columns: 1fr; } }
#us-hero-slogan { display: block; transition: opacity .22s ease, transform .22s ease; }
#us-hero-slogan span { display: block; }
#us-hero-slogan.is-switching { opacity: 0; transform: translateY(5px); }
.us-shell .hero-preview .preview-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
.us-shell [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { #us-hero-slogan { transition: none; } }
@media (prefers-reduced-motion: reduce) { .us-shell .profile-loading::before, .us-shell .profile-loading::after { animation: none; } }
.us-target-offer { margin-top: 16px; }
.us-shell .workflow-offer-grid article { display: grid; gap: 10px; }
.us-shell .workflow-offer-grid .small-btn { margin-top: 4px; }
.us-shell .workflow-offer-grid article.recommended { border-color: var(--green); box-shadow: 0 0 0 1px rgba(49, 226, 116, .22); }
.us-shell .result-panel .advanced-note { margin: 0 0 16px; text-align: center; }
.us-routing-record .us-account-line { display: grid; justify-items: center; gap: 5px; padding: 2px 0 8px; }
.us-routing-record .us-account-line span, .us-routing-record .us-routing-label { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.us-routing-record .us-account-line strong { color: var(--text); font-size: clamp(1.05rem, 2vw, 1.5rem); }
.us-routing-record .status-pill i { margin-right: 5px; }
.us-routing-record .copyable-value { cursor: pointer; }
.us-shell .validator-help { margin-top: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.us-shell .validator-help summary { cursor: pointer; font-weight: 700; }
.us-shell .generated-panel .output-actions { justify-content: center; }
.us-shell .generated-panel .download-format { width: auto; min-width: 100px; }
.us-shell .us-qa-save { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.us-shell .us-qa-save label { margin: 0 0 8px; }
.us-shell .us-qa-save small { display: block; margin-top: 8px; color: var(--muted); }
.us-shell .us-qa-controls { display: flex; align-items: center; gap: 10px; }
.us-shell .us-qa-controls :is(input, select) { flex: 1 1 auto; min-width: 0; }
.us-shell .us-qa-controls .small-btn { flex: 0 0 auto; }
.us-shell .us-qa-saved p { margin: 0 0 12px; }
.us-shell #gen-saved-status { min-height: 1.4rem; margin: 12px 0 0; color: var(--muted); }
.us-shell #gen-profile-shell { margin-top: 18px; }
.us-shell #gen-profile-status { text-align: center; }
.us-shell #gen-profile-status:empty { display: none; }
.us-shell .profile-panel { margin-top: 12px; }
.us-shell [hidden] { display: none !important; }
.us-note { border-left: 3px solid var(--green); padding-left: 16px; }
.us-shell .source-date { font-size: .85rem; }

.usa-tool-tabs { width: min(720px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.usa-tool-tab { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(2, 9, 6, .62); color: var(--text); text-decoration: none; display: grid; gap: 7px; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.usa-tool-tab:hover { border-color: var(--green); background: rgba(49, 226, 116, .07); transform: translateY(-2px); }
.usa-tool-tab strong { color: var(--text); font-size: 1.1rem; }
.usa-tool-tab small { color: var(--muted); line-height: 1.5; }
.usa-tool-icon { color: var(--green); font-size: 1.35rem; font-weight: 900; }
.usa-hub .seo-mini-card .btn-neo { display: inline-flex; margin-top: 8px; }

@media (max-width: 720px) {
  .usa-tool-tabs { grid-template-columns: 1fr; }
  .us-shell .advanced-grid { grid-template-columns: 1fr; }
  .us-shell > .surface { padding: 18px; }
  .us-shell .generator-options-row { align-items: stretch; }
  .us-shell .synthetic-toggle, .us-shell .advanced-toggle { width: 100%; box-sizing: border-box; }
  .us-shell .advanced-toggle { flex-wrap: wrap; }
  .us-shell .advanced-toggle .plan-badge { white-space: normal; text-align: center; }
  .us-shell .output-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .us-shell .output-actions .small-btn:first-child { grid-column: 1 / -1; }
  .us-shell .generated-panel .download-format { width: 100%; min-width: 0; }
  .us-shell .us-qa-controls { flex-wrap: wrap; }
  .us-shell .us-qa-controls :is(input, select) { flex-basis: 100%; }
}
:is(#generate, #validate) { scroll-margin-top: 100px; }
#validate { margin: 32px auto; max-width: 1100px; }
#validate .validator-heading h2 { font-size: clamp(28px, 4vw, 48px); }
/* Shared IBAN coverage and brand components, sized for the US catalog. */
.us-registry-coverage { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 32px 0; }
.us-registry-coverage .registry-stat:last-child { grid-column: auto; }
.us-shell .brand-marquee { margin-top: 0; }
.us-shell .brand-marquee-track { gap: 0; }
.us-brand-group { display: flex; align-items: center; flex-shrink: 0; gap: 44px; padding-right: 44px; }
.us-brand-group .brand-pill { flex-shrink: 0; }
.us-brand-group img { filter: grayscale(1) invert(1) brightness(1.42) contrast(1.34) drop-shadow(0 0 16px rgba(137, 247, 169, .14)); mix-blend-mode: screen; }
.us-shell .brand-marquee:focus-within .brand-marquee-track { animation-play-state: paused; }
.us-brand-group .brand-pill:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 650px) { .us-brand-group { gap: 30px; padding-right: 30px; } }
.us-routing-record button.profile-locked-value { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.us-account-line small, .us-bank-limitations { display: block; color: #9ca8a2; font-size: .8rem; font-weight: 400; margin-top: 10px; }
.us-routing-record .bank-intelligence-grid .meta-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 650px) { .us-registry-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .us-shell .brand-marquee-track { animation: none; } }
.us-profile-purchase-offer { display: flex; flex: 1 1 240px; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.us-profile-purchase-offer .btn-neo { white-space: normal; text-align: center; }
.us-profile-purchase-offer small { color: var(--text-secondary, #a5b4bc); line-height: 1.5; }
.us-institution-icon { object-fit: contain; border-radius: 12px; background: #fff; padding: 6px; }
.us-profile-facts { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 8px 20px; }
.us-profile-facts dt { color: var(--text-muted, #a8bac1); }
.us-profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.us-picker-bank-icon { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
@media (max-width: 480px) { .us-profile-facts { grid-template-columns: 1fr; gap: 4px; } .us-profile-facts dd { margin-bottom: 12px; } }

/* Provider sandbox routing numbers on the routing checker. */
.test-routing-table { max-width: 100%; margin: 10px 0 8px; overflow-x: auto; border: 1px solid rgba(148, 163, 184, .24); border-radius: 10px; }
.test-routing-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.test-routing-table th, .test-routing-table td { padding: 9px 12px; border-bottom: 1px solid rgba(148, 163, 184, .16); text-align: left; vertical-align: top; line-height: 1.5; }
.test-routing-table tr:last-child td { border-bottom: 0; }
.test-routing-table th { color: #a9b6af; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.test-routing-table td:nth-child(2) { white-space: nowrap; }
.test-routing-source { color: #a9b6af; font-size: .82rem; }
