:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172333;
  background: #f2f5f9;
  font-synthesis: none;
  --navy: #142941;
  --blue: #2466b1;
  --teal: #1d9485;
  --muted: #617286;
  --line: #dbe3ec;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px max(22px, calc((100vw - 1160px) / 2));
  color: #fff;
  background: var(--navy);
  border-bottom: 4px solid var(--teal);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: #237e79; font-weight: 850; }
.eyebrow { margin: 0 0 5px; color: #59c7b8; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h2 { margin-bottom: 5px; font-size: 1.23rem; }
.status-pill, .tag { padding: 8px 11px; border: 1px solid #efc36e; border-radius: 999px; color: #ffe6ae; font-size: .7rem; font-weight: 800; white-space: nowrap; }
main { width: min(1160px, calc(100% - 32px)); margin: 24px auto 42px; }
.panel { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 22px #10243b0a; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 27px; border-top: 3px solid var(--teal); }
.hero h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.hero p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.readiness { display: flex; flex: 0 0 225px; align-items: center; gap: 11px; padding: 13px; border: 1px solid #edd5d2; border-radius: 10px; background: #fff8f7; }
.readiness strong, .readiness small { display: block; }
.readiness strong { color: #972b2b; font-size: .83rem; }
.readiness small { margin-top: 3px; color: var(--muted); }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: #c94a42; box-shadow: 0 0 0 4px #f7ddda; }
.grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading .eyebrow { color: #327a74; }
.tag { border-color: #b9dcd6; color: #216c63; background: #f1faf8; }
.tag-muted { border-color: #d1d9e2; color: #5d6c7d; background: #f7f9fb; }
.tag-active { border-color: #a9d9c6; color: #176443; background: #effaf3; }
.tag-blocked { border-color: #edc8c4; color: #9a302a; background: #fff5f3; }
.muted, .footnote { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.corridor-list, .gate-list { display: grid; gap: 8px; margin: 13px 0; padding: 0; list-style: none; }
.corridor-list li, .gate-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.corridor-list strong, .gate-list strong { flex: 0 0 auto; color: #8d4e17; font-size: .67rem; letter-spacing: .035em; }
.footnote { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; }
label { display: grid; gap: 6px; margin: 12px 0; font-size: .82rem; font-weight: 700; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset:disabled { opacity: .62; }
fieldset:disabled select { cursor: not-allowed; background: #f1f3f6; }
select, button { min-height: 42px; padding: 9px 11px; border: 1px solid #b9c7d5; border-radius: 7px; font: inherit; }
select { color: #243549; background: #fff; }
button { border-color: var(--blue); color: #fff; background: var(--blue); font-weight: 750; cursor: pointer; }
button:hover { background: #1b518f; }
button:focus-visible, select:focus-visible { outline: 3px solid #e5b640; outline-offset: 2px; }
.button-secondary { border-color: #bdc8d4; color: #304257; background: #f5f7f9; }
.button-secondary:hover { background: #e8edf2; }
.currency-note { display: flex; gap: 10px; margin: 15px 0; padding: 12px; border: 1px solid #ecd9a8; border-radius: 8px; background: #fffaf0; }
.currency-note > span { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #b88420; font-weight: 800; }
.currency-note p { margin: 0; color: #5f5132; font-size: .8rem; line-height: 1.5; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.status { min-height: 1.3em; margin: 10px 0 0; color: #40566d; font-size: .82rem; }
.status[data-state="error"] { color: #a02b25; }
.portal-panel { margin-bottom: 18px; border-left: 4px solid var(--teal); }
.portal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.portal-controls .status { margin: 0; }
.bank-apps-note { margin-top: 15px; padding: 12px 14px; border: 1px solid #dbe3ec; border-radius: 8px; background: #f8fafc; }
.bank-apps-note strong { color: #30465c; font-size: .85rem; }
.bank-apps-note p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.notice { margin-top: 18px; padding: 17px 20px; border-left: 4px solid #d69b31; border-radius: 8px; background: #fff8e9; }
.notice strong { color: #624714; }
.notice p { margin: 5px 0 0; color: #675a3d; font-size: .84rem; line-height: 1.55; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px max(22px, calc((100vw - 1160px) / 2)); color: #617286; background: #e8edf3; font-size: .76rem; }
@media (max-width: 780px) {
  .topbar, .hero, footer { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .readiness { flex: auto; width: 100%; }
}
@media (max-width: 480px) {
  main { width: min(100% - 20px, 1160px); margin-top: 12px; }
  .panel, .hero { padding: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .corridor-list li, .gate-list li { align-items: flex-start; flex-direction: column; gap: 5px; }
  .button-row button { width: 100%; }
  .portal-controls { align-items: flex-start; flex-direction: column; }
}
