:root {
  color: #172033;
  background: #f5f7fb;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #0969da;
  --blue-soft: #eaf3ff;
  --border: #d7deea;
  --muted: #69758b;
  --success: #177245;
  --danger: #b42318;
  --bingo-logo-gold: #d8b85f;
  --bingo-logo-navy: #0b1d3a;
  --bingo-logo-blue: #0969da;
  --bingo-logo-white: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body { margin: 0; min-width: 320px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  transition: transform .14s ease;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid rgba(9,105,218,.22); outline-offset: 2px; }
main:focus { outline: none; }
:where(a, button, input, select, textarea, summary, [tabindex]:not(main)):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .92);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
button, input, select, textarea { font: inherit; }
a { color: var(--blue); }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 28px max(24px, calc((100vw - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--border); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(2rem, 4vw, 3rem); }
h2 { margin-bottom: 4px; }
h3 { margin-bottom: 6px; }
.eyebrow, .step { color: var(--blue); font-weight: 750; letter-spacing: .04em; margin-bottom: 4px; }
.muted, small, .section-heading p, .notice { color: var(--muted); }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
nav a.active, nav a[aria-current="page"], nav a[aria-current="location"] { background: var(--blue-soft); }
.login-shell { min-height: 100vh; align-content: center; max-width: 720px; }
.login-hero { text-align: center; padding-block: clamp(40px, 8vw, 84px); }
.login-hero > p { max-width: 560px; margin-left: auto; margin-right: auto; }
.login-panel form { display: grid; gap: 16px; margin-top: 22px; }
.login-panel form[hidden] { display: none; }
.auth-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.auth-tab.active { background: var(--blue); color: #fff; }
.login-help { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8ecf3; }
.login-help h2 { margin: 0 0 12px; font-size: 1.15rem; }
.login-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-help-card { display: grid; gap: 8px; min-height: 96px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8faff; color: var(--ink); text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.login-help-card strong { color: var(--blue); }
.login-help-card span, .login-help-manual { color: var(--muted); font-size: .94rem; }
.login-help-card:hover, .login-help-card:focus-visible { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 8px 20px rgba(20, 96, 190, .12); outline: none; }
.login-help-manual { margin: 14px 0 0; }
.login-help-manual a { margin-left: 6px; font-weight: 750; }
.recovery-panel { margin-top: 22px; }
.recovery-codes { margin-top: 20px; padding: 18px; border: 1px solid #b6dfc9; border-radius: 12px; background: #edf9f2; }
.recovery-codes pre { user-select: all; letter-spacing: .04em; }
main { width: min(1180px, calc(100% - 32px)); margin: 24px auto 48px; display: grid; gap: 20px; }
.panel, .status-strip { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 28px rgba(22, 35, 58, .05); }
.panel { padding: clamp(20px, 4vw, 34px); }
.status-strip { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 18px; padding: 16px 22px; }
.status-strip span { display: block; color: var(--muted); font-size: .88rem; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e8ecf3; padding-bottom: 16px; margin-bottom: 20px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, fieldset { display: grid; gap: 7px; font-weight: 700; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; grid-template-columns: repeat(2, max-content); align-content: center; }
legend { padding: 0 6px; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #bfc9d8; border-radius: 10px; padding: 11px 12px; background: #fff; color: inherit; }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.password-control input { min-width: 0; }
.password-toggle { white-space: nowrap; }
.capslock-hint { color: var(--danger); font-weight: 700; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(9,105,218,.18); border-color: var(--blue); }
button, a.secondary { border: 1px solid var(--blue); border-radius: 10px; padding: 10px 15px; background: var(--blue); color: #fff; font-weight: 750; cursor: pointer; text-decoration: none; text-align: center; }
button.secondary, a.secondary { background: #fff; color: var(--blue); }
button:disabled { opacity: .5; cursor: wait; }
.guide { margin-top: 20px; padding: 20px; border: 1px solid #bfd8fa; background: #f7fbff; border-radius: 14px; }
.guide[hidden] { display: none; }
.guide ol { padding-left: 22px; }
.guide-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.quiet-settings { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.quiet-settings summary { font-weight: 800; cursor: pointer; }
.details-body { margin-top: 16px; }
.message { color: var(--muted); }
.message.success { color: var(--success); font-weight: 700; }
.message.error { color: var(--danger); font-weight: 700; }
.user-list { display: grid; gap: 12px; }
.user-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.user-card summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.user-card summary::-webkit-details-marker { display: none; }
.user-card summary::after { content: "展开"; color: var(--blue); font-weight: 700; }
.user-card[open] summary::after { content: "收起"; }
.user-name { font-size: 1.1rem; font-weight: 800; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { background: #eef2f7; color: #41506a; padding: 4px 9px; border-radius: 999px; font-size: .85rem; }
.badge.on { background: #e8f6ef; color: #146c43; }
.user-detail { border-top: 1px solid var(--border); padding: 18px; display: grid; gap: 10px; }
.user-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.user-detail dt { color: var(--muted); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 18px; }
.search-results { display: grid; gap: 8px; margin-top: 14px; }
.result-button { width: 100%; text-align: left; background: #fff; color: inherit; border-color: var(--border); }
.result-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.locked { font-size: 1.2rem; font-weight: 800; padding: 14px; background: var(--blue-soft); border-radius: 10px; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.quote-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.quote-item span { display: block; color: var(--muted); font-size: .85rem; }
.rules-table { width: 100%; border-collapse: collapse; }
.table-scroll { overflow: auto; }
.rules-table th, .rules-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
.risk-reader { width: 100%; height: min(76vh, 920px); min-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--border); border-radius: 12px; background: #eef2f7; scroll-behavior: smooth; }
.risk-reader:focus-visible { outline: 3px solid rgba(9,105,218,.22); outline-offset: 3px; }
.risk-page-shell { display: grid; place-items: center; min-height: 280px; margin: 0 auto 22px; padding: 12px; border: 1px solid #cbd4e2; border-radius: 12px; background: #fff; box-shadow: 0 8px 26px rgba(21, 37, 62, .08); }
.risk-page-shell:last-child { margin-bottom: 0; }
.risk-page-shell img { display: block; width: min(100%, 1224px); height: auto; background: #fff; }
.risk-page-state { color: var(--muted); text-align: center; }
.risk-page-retry { margin-top: 10px; }
.risk-checklist { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
.risk-checklist legend { margin-left: 14px; font-weight: 800; }
.risk-choice { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); font-weight: 600; }
.risk-choice input { width: 20px; height: 20px; margin: 2px 0 0; }
.totp-field { max-width: 360px; margin-top: 20px; }
.accepted-card { padding: 18px; border: 1px solid #b6dfc9; border-radius: 12px; background: #edf9f2; color: var(--success); font-weight: 800; }
.activation-summary-title { display: block; margin-bottom: 14px; font-size: 1.1rem; }
.activation-facts { margin: 0; color: var(--text); font-weight: 500; }
.activation-facts dt { color: #40516a; }
.activation-facts dd { font-weight: 750; overflow-wrap: anywhere; }
.message-list, .case-list { display: grid; gap: 10px; }
.message-row { display: grid; gap: 4px; width: 100%; text-align: left; color: inherit; background: #fff; border-color: var(--border); }
.message-row:hover { border-color: var(--blue); background: var(--blue-soft); }
.message-row span, .case-card span { color: var(--muted); font-size: .88rem; }
.case-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; }
.broadcast-card .form-actions { margin: 8px 0 0; }
.case-action { justify-self: start; margin-top: 8px; }
.case-requirement { margin: 8px 0 0; color: #7a3e00; font-weight: 750; }
.case-timeline { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 0 0 24px; border-top: 1px solid var(--border); }
.case-timeline li { padding-left: 4px; }
.case-timeline li strong, .case-timeline li span { display: block; }
.case-timeline li span { margin-top: 2px; }
.admin-tools { display: grid; gap: 20px; }
.admin-tools[hidden] { display: none; }
.admin-status { grid-template-columns: repeat(3, 1fr) auto; }
.admin-invitation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.admin-invitation-actions form { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; }
.invitation-status-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.invitation-status-grid > div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--blue-soft); text-align: center; }
.invitation-status-grid span { color: var(--muted); font-size: .8rem; }
.safe-output { max-height: 320px; overflow: auto; }
.admin-identity-summary { display: grid; gap: 14px; margin-top: 18px; }
.identity-status-card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; }
.identity-status-card h3 { margin: 0 0 14px; }
.identity-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.identity-facts > div { min-width: 0; }
.identity-facts dt { color: var(--muted); font-size: .82rem; }
.identity-facts dd { margin: 4px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.service-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-subject-card { display: grid; gap: 5px; min-width: 0; padding: 14px; border: 1px solid #d9e5f3; border-radius: 10px; background: #fff; }
.service-subject-card span { color: var(--muted); font-size: .82rem; }
.service-subject-card code { overflow-wrap: anywhere; color: #0b4f9f; font-size: .84rem; }
.binding-result { text-align: center; }
.binding-qr { display: block; width: min(280px, 100%); aspect-ratio: 1; margin: 14px auto; background: #fff; border: 10px solid #fff; border-radius: 10px; }
.authenticator-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.authenticator-downloads a { flex: 1 1 220px; text-align: center; }
.subform { margin-top: 20px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; }
.subform[hidden] { display: none; }
.exception-choice { align-self: end; min-height: 46px; }
.product-grid, .credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.security-column { min-width: 0; }
.security-column h3 { margin-top: 0; }
.security-list { display: grid; gap: 10px; }
.security-item { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; overflow-wrap: anywhere; }
.security-item span { color: var(--muted); font-size: .9rem; }
.product-card, .credential-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fbfcfe; }
.todo-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 600px) { .todo-platform-grid { grid-template-columns: minmax(0, 1fr); } }
.todo-platform-card { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid #d9e5f3; border-radius: 10px; background: #fff; }
.todo-platform-card span { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.todo-platform-card a { margin-top: 4px; }
.credential-card { display: grid; grid-template-columns: 1fr; gap: 14px; }
.api-trust-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
  background: #f8f8f8;
}
.api-trust-mark {
  display: grid;
  width: 72px;
  min-height: 72px;
  place-items: center;
  padding-right: 20px;
  border-right: 1px solid #d5d8de;
  font-size: 2rem;
}
.api-trust-copy > strong { color: #5e636c; font-size: 1.02rem; line-height: 1.7; }
.api-trust-copy > strong span { color: #df7a00; }
.api-security-details { margin-top: 8px; }
.api-security-details summary { width: max-content; color: var(--blue); cursor: pointer; font-weight: 800; }
.api-security-details ul { margin: 12px 0 0; padding-left: 22px; color: var(--muted); }
.api-vault-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.danger-action { border-color: #b42318; color: #b42318; }
.scenario-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.scenario-result { padding: 22px; border: 1px solid #bfd8fa; border-radius: 14px; background: linear-gradient(180deg, #f8fbff, #fff); }
.scenario-result h3 { color: #0b4f9f; font-size: 1.35rem; }
.scenario-result .detail-grid { grid-template-columns: 1fr auto; }
.scenario-result .detail-grid dd { text-align: right; font-weight: 800; }
.contract-review { display: grid; gap: 18px; margin-top: 20px; }
.contract-page-reader { display: grid; gap: 18px; width: 100%; max-height: min(72vh, 860px); overflow-y: auto; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #eaf0f7; scroll-behavior: smooth; }
.contract-page-shell { display: grid; min-height: 520px; place-items: center; overflow: hidden; border: 1px solid #ccd7e5; border-radius: 10px; background: #fff; }
.contract-page-shell img { display: block; width: 100%; height: auto; background: #fff; }
.contract-page-state { color: var(--muted); font-weight: 700; }
.contract-page-retry { margin: 0 0 18px; }
.document-viewer-shell { width: min(1440px, calc(100% - 32px)); }
.document-viewer-panel { min-height: calc(100vh - 130px); }
.document-frame {
  display: block;
  width: 100%;
  min-height: min(76vh, 980px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.verification-list { display: grid; gap: 10px; margin-top: 18px; }
.verification-card { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; }
.verification-card.pass { border-color: #b6dfc9; background: #f3fbf6; }
.verification-card.fail, .blocked-card { border: 1px solid #efb6b2; background: #fff5f4; color: var(--danger); }
.blocked-card { padding: 18px; border-radius: 12px; font-weight: 800; }
.verification-card span { color: var(--muted); }
.verification-card p { margin: 4px 0 0; }
.payment-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.payment-workflow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e5f3;
  border-radius: 12px;
  background: #f8fbff;
}
.payment-workflow li > span {
  grid-row: 1 / 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #0b5caf;
  border-radius: 50%;
  font-weight: 850;
}
.payment-workflow li > strong { color: #173858; }
.payment-workflow li > small { line-height: 1.3; }
.payment-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.payment-order-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.payment-order-heading h3 { margin-bottom: 0; }
.payment-state { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: #eaf3ff; color: #0b4f9f; font-size: .86rem; font-weight: 800; }
.payment-state.review { background: #fff4d8; color: #805c00; }
.payment-state.complete { background: #e8f6ef; color: #146c43; }
.payment-state.closed { background: #eef1f5; color: #5e6878; }
.payment-guidance { margin: 8px 0 14px; color: #344966; font-weight: 650; }
.payment-order-meta { margin: 14px 0; color: var(--muted); overflow-wrap: anywhere; }
.payment-order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.payment-order-progress li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; min-width: 0; color: #8994a5; }
.payment-order-progress li > span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #c9d2df; border-radius: 50%; background: #fff; font-size: .78rem; font-weight: 850; }
.payment-order-progress li > small { min-width: 0; color: inherit; line-height: 1.25; }
.payment-order-progress li.complete { color: #177245; }
.payment-order-progress li.complete > span { color: #fff; border-color: #177245; background: #177245; }
.payment-order-progress li.current { color: #0b4f9f; font-weight: 800; }
.payment-order-progress li.current > span { color: #fff; border-color: #0969da; background: #0969da; box-shadow: 0 0 0 4px #eaf3ff; }
.payment-order-progress li.closed { color: #8a3d35; font-weight: 800; }
.payment-order-progress li.closed > span { color: #fff; border-color: #a64d43; background: #a64d43; }
.payment-instructions { display: grid; gap: 8px; margin: 14px 0; padding: 16px; border: 1px solid #bfd8fa; border-radius: 12px; background: #f7fbff; }
.payment-instructions code { padding: 9px 10px; overflow-wrap: anywhere; word-break: break-all; }
.payment-instructions p { margin-bottom: 0; }
.payment-qr { width: 180px; height: 180px; object-fit: contain; align-self: center; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.message-dialog { width: min(760px, calc(100% - 32px)); }
.message-dialog iframe { width: 100%; min-height: min(70vh, 760px); border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.protected-message { position: relative; min-height: 180px; overflow: hidden; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.protected-message.sensitive { user-select: none; -webkit-user-select: none; }
.message-body { position: relative; z-index: 2; white-space: pre-wrap; font-size: 1.05rem; }
.watermark-grid { position: absolute; z-index: 1; inset: -18%; display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); align-content: center; gap: 38px 26px; transform: rotate(-14deg); color: #385172; opacity: .11; pointer-events: none; }
.watermark-grid span { max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; font-size: .72rem; font-weight: 800; }
.print-protected-placeholder { display: none; }
dialog { width: min(620px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(12, 21, 36, .55); }
pre { white-space: pre-wrap; font: inherit; background: #f4f6fa; padding: 14px; border-radius: 10px; }
code { background: #e9edf4; padding: 2px 5px; border-radius: 5px; }
@media (max-width: 760px) {
  .topbar { align-items: start; flex-direction: column; }
  .brand-lockup { align-items: flex-start; gap: 12px; }
  .grid.two, .status-strip, .admin-status, .search-row { grid-template-columns: 1fr; }
  fieldset { grid-template-columns: 1fr; }
  .user-card summary { align-items: start; flex-direction: column; }
  .rules-table { font-size: .88rem; }
  .risk-reader { min-height: 480px; height: 68vh; padding: 8px; }
  .auth-tabs { grid-template-columns: 1fr; }
  .login-help-grid { grid-template-columns: 1fr; }
  .product-grid, .credential-grid, .service-overview-grid, .security-grid, .scenario-comparison { grid-template-columns: 1fr; }
  .api-trust-banner { grid-template-columns: 1fr; }
  .api-trust-mark { width: 100%; min-height: 48px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #d5d8de; }
  .admin-invitation-actions { grid-template-columns: 1fr; }
  .invitation-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-facts, .service-subject-grid { grid-template-columns: 1fr; }
  .payment-workflow, .payment-order-progress { grid-template-columns: 1fr; }
  .payment-order-card { grid-template-columns: 1fr; }
  .payment-order-heading { align-items: flex-start; flex-direction: column; }
  .payment-qr { width: min(220px, 100%); height: auto; justify-self: center; }
}
@media print {
  .protected-message.sensitive .message-body, .protected-message.sensitive .watermark-grid { display: none; }
  .protected-message.sensitive .print-protected-placeholder { display: block; }
}

.reading-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #d9e5f3;
  border-radius: 14px;
  background: #f7faff;
}
.reading-gate p { margin: 5px 0 0; }
.reading-progress { flex: 0 0 auto; min-width: 86px; padding: 8px 14px; border-radius: 999px; background: #eaf3ff; color: #0b4f9f; font-weight: 800; text-align: center; }
@media (max-width: 720px) {
  .reading-gate { align-items: stretch; flex-direction: column; }
}

/*
 * BINGO adaptive identity.
 * The approved PNG is the single geometry source. The surface contract
 * changes only its colour treatment; it must never substitute another mark.
 */
.logo-mark {
  display: inline-block;
  width: 48px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  color: var(--bingo-logo-gold);
  background: var(
    --logo-fill,
    url("/assets/bingo-logo-v2.png") center / contain no-repeat
  );
  -webkit-mask: url("/assets/bingo-logo-v2.png") center / contain no-repeat;
  mask: url("/assets/bingo-logo-v2.png") center / contain no-repeat;
}
.logo-mark[data-logo-surface="light"],
.logo-mark[data-logo-surface="white"],
.logo-mark[data-logo-surface="paper"],
.logo-mark[data-logo-surface="soft"],
.logo-mark[data-logo-surface="mist"],
.logo-mark[data-logo-surface="gray"],
.logo-mark[data-logo-surface="silver"],
.logo-mark[data-logo-surface="transparent"],
.logo-surface-light .logo-mark,
.logo-surface-white .logo-mark,
.logo-surface-paper .logo-mark,
.logo-surface-soft .logo-mark,
.logo-surface-mist .logo-mark,
.logo-surface-gray .logo-mark,
.logo-surface-silver .logo-mark,
.logo-surface-transparent .logo-mark,
.logo-on-light,
.logo-on-white,
.logo-on-paper,
.logo-on-soft,
.logo-on-mist,
.logo-on-gray,
.logo-on-silver,
.logo-on-transparent {
  /* Keep the approved gold artwork, including its original tonal detail. */
  --logo-fill: url("/assets/bingo-logo-v2.png") center / contain no-repeat;
}
.logo-mark[data-logo-surface="dark"],
.logo-mark[data-logo-surface="navy"],
.logo-mark[data-logo-surface="black"],
.logo-mark[data-logo-surface="brand"],
.logo-mark[data-logo-surface="blue"],
.logo-mark[data-logo-surface="green"],
.logo-mark[data-logo-surface="red"],
.logo-surface-dark .logo-mark,
.logo-surface-navy .logo-mark,
.logo-surface-black .logo-mark,
.logo-surface-brand .logo-mark,
.logo-surface-blue .logo-mark,
.logo-surface-green .logo-mark,
.logo-surface-red .logo-mark,
.logo-on-dark,
.logo-on-navy,
.logo-on-black,
.logo-on-brand,
.logo-on-blue,
.logo-on-green,
.logo-on-red {
  --logo-fill: var(--bingo-logo-white);
}
.logo-mark[data-logo-surface="gold"],
.logo-mark[data-logo-surface="accent"],
.logo-mark[data-logo-surface="yellow"],
.logo-mark[data-logo-surface="warm"],
.logo-surface-gold .logo-mark,
.logo-surface-accent .logo-mark,
.logo-surface-yellow .logo-mark,
.logo-surface-warm .logo-mark,
.logo-on-gold,
.logo-on-accent,
.logo-on-yellow,
.logo-on-warm {
  --logo-fill: var(--bingo-logo-navy);
}
.logo-mark[data-logo-surface="photo"],
.logo-mark[data-logo-surface="image"],
.logo-mark[data-logo-surface="mixed"],
.logo-surface-photo .logo-mark,
.logo-surface-image .logo-mark,
.logo-surface-mixed .logo-mark,
.logo-on-photo,
.logo-on-image,
.logo-on-mixed {
  --logo-fill: var(--bingo-logo-white);
  filter:
    drop-shadow(0 1px 1px rgba(3, 18, 38, .94))
    drop-shadow(0 3px 9px rgba(3, 18, 38, .62));
}

/*
 * A browser without CSS masking must still show the approved mark. Falling
 * back to its original gold artwork is safer than rendering a solid colour
 * square, and it keeps the identity geometry identical on older clients.
 */
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .logo-mark {
    background: url("/assets/bingo-logo-v2.png") center / contain no-repeat;
  }
}

@media (forced-colors: active) {
  .logo-mark {
    --logo-fill: CanvasText;
    forced-color-adjust: none;
  }
}

/* Customer-centre layout derived from the approved BINGO visual direction. */
.dashboard-page {
  color: #0b1d3a;
  background:
    radial-gradient(circle at 86% 8%, rgba(180, 220, 255, .52), transparent 25rem),
    linear-gradient(180deg, #f2f8ff 0, #f7faff 26rem, #f4f7fb 100%);
}
.portal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #d8e7f7;
  box-shadow: 0 8px 24px rgba(18, 62, 104, .05);
  backdrop-filter: blur(14px);
}
.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #081a36;
  text-decoration: none;
  font-size: 1.5rem;
  letter-spacing: .04em;
}
.portal-brand .logo-mark { width: 46px; }
.portal-header-compact { min-height: 76px; }
.portal-nav { justify-content: center; gap: 2px; }
.portal-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 14px;
  color: #344966;
  border-radius: 0;
  font-size: .96rem;
  white-space: nowrap;
}
.portal-nav a.active { color: #0a4d97; background: transparent; }
.portal-nav a[aria-disabled="true"] {
  color: #8793a3;
  cursor: not-allowed;
  opacity: .66;
  pointer-events: none;
}
.portal-nav a[aria-disabled="true"]::after { display: none; }
.portal-nav a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 3px;
  border-radius: 999px;
  background: #d59a13;
}
.portal-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.portal-account > span:nth-child(2) { display: grid; min-width: 92px; }
.portal-account small { color: #71809a; white-space: nowrap; }
.portal-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #17395f;
  text-decoration: none;
}
.portal-account-link > span:last-child { display: grid; min-width: 76px; max-width: 260px; }
.portal-account-link strong,
.portal-account-link small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-account-link:hover strong { color: #0a4d97; }
.account-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #133b69, #0b1d3a);
  border: 3px solid #e7f2ff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 850;
}
.security-factor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.security-factor-summary div {
  padding: 14px 16px;
  background: #f4f9ff;
  border: 1px solid #dceaf7;
  border-radius: 14px;
}
.security-factor-summary dt { color: #667994; font-size: .88rem; }
.security-factor-summary dd { margin: 4px 0 0; color: #0b2749; font-weight: 800; }
button.portal-logout {
  padding: 8px 10px;
  color: #52627a;
  background: transparent;
  border-color: transparent;
}
.page-context {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(239, 248, 255, .96), rgba(255, 255, 255, .96)),
    radial-gradient(circle at 82% 10%, rgba(69, 151, 231, .18), transparent 22rem);
  border-bottom: 1px solid #d8e7f7;
}
.page-context-copy { min-width: 0; }
.page-context h1 { margin-bottom: 4px; color: #071b38; font-size: clamp(2rem, 4vw, 3rem); }
.page-context p:last-child { margin-bottom: 0; }
.workflow-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 0;
  white-space: nowrap;
}
.workflow-nav a {
  padding: 9px 12px;
  color: #49617d;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #d8e5f2;
  border-radius: 999px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
}
.workflow-nav a.active { color: #0b4f9f; background: #e9f3ff; border-color: #a9ccef; }
.page-context-simple { justify-content: flex-start; }
.dashboard-container {
  width: min(1440px, calc(100% - 40px));
  margin-top: 0;
  gap: 22px;
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 190px;
  padding: 32px 36px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(236, 247, 255, .96), rgba(239, 248, 255, .72)),
    radial-gradient(circle at 76% 20%, rgba(71, 157, 237, .2), transparent 28%);
  border: 1px solid #d8e9fa;
  border-top: 0;
  border-radius: 0 0 24px 24px;
}
.dashboard-welcome h1 { color: #071b38; font-size: clamp(2rem, 4vw, 3.15rem); }
.dashboard-welcome > div:first-child > p:last-child { color: #5e7592; font-size: 1.05rem; }
.welcome-actions { display: grid; justify-items: end; gap: 14px; }
.dashboard-metrics { display: flex; gap: 10px; margin: 0; }
.dashboard-metrics div {
  min-width: 108px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid #dceafa;
  border-radius: 12px;
}
.dashboard-metrics dt { color: #75849a; font-size: .78rem; }
.dashboard-metrics dd { margin: 2px 0 0; color: #0b3b72; font-weight: 850; overflow-wrap: anywhere; }
.dashboard-columns { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.dashboard-primary { display: grid; gap: 22px; min-width: 0; }
.dashboard-page .panel {
  border-color: #d9e7f5;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(37, 82, 127, .07);
}
.account-sidebar { position: sticky; top: 104px; }
.account-sidebar h2 { font-size: 1.55rem; }
.account-sidebar h3 { margin-top: 26px; color: #17395f; font-size: 1rem; }
.account-summary { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 22px 0; }
.account-summary dt { color: #6c7e96; }
.account-summary dd { margin: 0; max-width: 150px; color: #17395f; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.privacy-note { padding: 12px; color: #6f7f93; background: #f3f8fd; border-radius: 10px; font-size: .8rem; }
.service-status-list { display: grid; gap: 12px; margin: 16px 0 26px; }
.service-status-list > div { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; }
.service-status-list strong { font-size: .85rem; }
.service-dot { width: 9px; height: 9px; background: #1976c9; border-radius: 50%; box-shadow: 0 0 0 4px #e7f3ff; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.dashboard-section-heading.compact { align-items: center; }
.dashboard-section-heading h2 { color: #102f54; }
.dashboard-section-heading > p { max-width: 570px; margin-bottom: 4px; color: #6b7e96; text-align: right; }
.service-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 16px; }
.service-entry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 52px minmax(44px, 1fr) minmax(24px, auto) 48px;
  gap: 12px 14px;
  min-width: 0;
  min-height: 228px;
  height: 100%;
  padding: 22px;
  border: 1px solid #d6e7f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 5px 16px rgba(37, 82, 127, .055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.service-entry-card > div:first-child { grid-column: 1; grid-row: 1; }
.service-entry-card > div:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; }
.service-entry-card > strong { grid-column: 1 / -1; grid-row: 3; align-self: center; }
.service-entry-card > p.service-policy-badge { grid-column: 1 / -1; grid-row: 2; align-self: center; min-height: 0; margin: 0; color: #60738d; font-size: .9rem; }
.service-entry-card > a { grid-column: 1 / -1; grid-row: 4; width: 100%; min-height: 48px; box-sizing: border-box; }
.service-entry-card .step { font-size: .76rem; }
.service-entry-card h3 { color: #0b2d55; font-size: 1.25rem; }
.service-entry-card:focus-within,
.service-entry-card:has(> a:active) {
  transform: translateY(-3px);
  border-color: #c8a24d;
  background: linear-gradient(180deg, #fffefb, #fff8e8);
  box-shadow: 0 14px 28px rgba(126, 92, 27, .18);
}
.trading-risk-step { min-width: 0; }
.risk-inline-frame {
  display: block;
  width: 100%;
  height: clamp(680px, 82vh, 1080px);
  border: 1px solid #d6e1ed;
  border-radius: 14px;
  background: #fff;
}
.compliance-inline-frame {
  display: block;
  width: 100%;
  height: clamp(780px, 92vh, 1280px);
  border: 1px solid #d6e1ed;
  border-radius: 14px;
  background: #fff;
}
.risk-embedded { min-width: 0; background: #fff; }
.risk-embedded .portal-header,
.risk-embedded .page-context { display: none !important; }
.risk-embedded #main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.risk-embedded #main-content > .panel { margin: 0 0 16px; box-shadow: none; }
.risk-embedded #main-content > .panel:first-child { padding-top: 10px; }
.compliance-embedded { min-width: 0; background: #fff; }
.compliance-embedded .skip-link,
.compliance-embedded .portal-header,
.compliance-embedded .page-context,
.compliance-embedded nav,
.compliance-embedded a[href] { display: none !important; }
.compliance-embedded #main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.compliance-embedded #main-content > .panel { margin: 0 0 16px; box-shadow: none; }
.compliance-embedded #main-content > .panel:first-child { padding-top: 10px; }
@media (max-width: 640px) {
  .risk-inline-frame { height: 76vh; min-height: 600px; }
  .compliance-inline-frame { height: 88vh; min-height: 780px; }
}
@media (hover: hover) and (pointer: fine) {
  .service-entry-card:hover {
    transform: translateY(-4px);
    border-color: #c8a24d;
    background: linear-gradient(180deg, #fffefb, #fff8e8);
    box-shadow: 0 14px 28px rgba(126, 92, 27, .18);
  }
}
@media (hover: none) {
  .service-entry-card:has(> a:active) {
    transform: translateY(-2px) scale(.995);
    border-color: #c8a24d;
    background: linear-gradient(180deg, #fffefb, #fff5dc);
    box-shadow: 0 12px 24px rgba(126, 92, 27, .2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-entry-card { transition: none; }
}
.service-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 13px; }
.service-icon svg { width: 29px; height: 29px; fill: currentColor; }
.service-icon-trading { color: #1977d8; background: #e6f2ff; }
.service-icon-voice { color: #13964a; background: #e5f9eb; }
.service-icon-vpn { color: #2f82dd; background: #eaf4ff; }
.gold-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  color: #14233a;
  background: linear-gradient(100deg, #ffd773, #dda010);
  border: 1px solid #d79a0a;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(212, 151, 14, .16);
  font-weight: 850;
  text-decoration: none;
}
.gold-action[aria-disabled="true"],
.service-entry-card .service-access-denied {
  color: #637187;
  background: #edf1f5;
  border-color: #d8dfe7;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.full-action { width: 100%; }
.state-positive { color: #13824a; }
.state-negative { color: #b42318; }
.state-neutral { color: #735d2a; }
.message-preview-list { display: grid; }
.message-preview {
  display: grid;
  grid-template-columns: 14px minmax(100px, .55fr) minmax(155px, .7fr) minmax(180px, 2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  color: #264667;
  border-top: 1px solid #e2ecf6;
  text-decoration: none;
}
.message-preview:first-child { border-top: 0; }
.message-preview time, .message-preview small { color: #74849a; font-size: .84rem; }
.message-marker { width: 9px; height: 9px; background: #d89a08; border-radius: 50%; box-shadow: 0 0 0 4px #fff2c8; }
.message-marker.read { background: #8aa0b7; box-shadow: 0 0 0 4px #edf2f7; }

@media (max-width: 1100px) {
  .portal-header { grid-template-columns: auto 1fr; }
  .portal-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .portal-account { justify-self: end; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .service-entry-grid { grid-template-columns: 1fr; }
  .service-entry-card > p { min-height: 0; }
  .page-context { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 760px) {
  .portal-header { display: flex; align-items: center; flex-wrap: wrap; padding: 10px 16px; }
  .portal-brand strong { font-size: 1.2rem; }
  .portal-brand .logo-mark { width: 38px; }
  .portal-account > span:nth-child(2), .portal-account-link > span:last-child, .portal-logout { display: none; }
  .portal-nav { order: 3; width: 100%; padding-bottom: 4px; }
  .portal-nav a { padding: 11px 7px; font-size: .86rem; }
  .page-context { padding: 24px 16px; }
  .page-context h1 {
    font-size: clamp(1.85rem, 8vw, 2.15rem);
    word-break: keep-all;
  }
  .workflow-nav { width: 100%; }
  .dashboard-container { width: min(100% - 24px, 1440px); }
  .dashboard-welcome { align-items: start; flex-direction: column; padding: 26px 20px; }
  .welcome-actions { width: 100%; justify-items: stretch; }
  .dashboard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .dashboard-metrics div { min-width: 0; padding: 9px; }
  .dashboard-section-heading { align-items: start; flex-direction: column; }
  .dashboard-section-heading > p { text-align: left; }
  .message-preview { grid-template-columns: 14px 1fr auto; }
  .message-preview time, .message-preview > span:nth-of-type(2) { grid-column: 2 / -1; }
  .service-entry-card { padding: 18px; }
  .security-factor-summary { grid-template-columns: 1fr; }
}

/* Public landing page: same identity and palette, with no sample account state. */
.public-home {
  color: #0b1d3a;
  background:
    radial-gradient(circle at 82% 18%, rgba(79, 160, 235, .18), transparent 30rem),
    linear-gradient(180deg, #f6fbff 0, #fff 36rem, #f5f8fc 100%);
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #d8e7f7;
}
.public-header-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 16px;
  margin-left: auto;
  border: 1px solid #dce6ef;
  border-radius: 14px;
  background: #f8fbfe;
}
.public-header nav a { color: #344966; }
.public-clock {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  color: #6e5a34;
  text-align: right;
}
.public-clock-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 10px;
  max-width: 100%;
}
.public-clock-primary time {
  color: #172033;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
}
.public-clock-date { color: #52637a; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.public-clock span { color: #80642e; font-size: .8125rem; font-weight: 700; }
.language-toggle { display: inline-flex; gap: 6px; align-items: center; padding-left: 18px; border-left: 1px solid #dce6ef; }
.language-option { min-width: 72px; padding: 8px 11px; border-radius: 9px; font-size: .9rem; }
.language-option.secondary { border-color: #d9c48e; color: #856a31; background: #fff; }
.public-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto 60px; gap: 28px; }
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  min-height: 600px;
  padding: 64px clamp(10px, 3vw, 44px);
}
.public-hero-copy, .public-hero-visual, .public-home .login-panel { min-width: 0; max-width: 100%; }
.public-hero-copy h1 { max-width: 760px; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: 1.08; letter-spacing: -.035em; }
.public-hero-copy > p:not(.eyebrow):not(.message) { max-width: 680px; color: #5d718d; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions button, .hero-actions a { min-width: 158px; min-height: 50px; }
.public-hero-visual {
  display: grid;
  min-height: 420px;
  align-content: center;
  justify-items: center;
  padding: 42px;
  overflow: hidden;
  color: #2f281d;
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 255, 255, .82), transparent 18rem),
    linear-gradient(145deg, #fffaf0, #f1e4c7 72%);
  border: 1px solid #dfc78d;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(107, 80, 27, .16);
  text-align: center;
}
.public-hero-visual .hero-logo { width: 112px; margin-bottom: 20px; }
.public-hero-visual > p.hero-kicker { margin-bottom: 12px; color: #9a762e; font-size: 1.05rem; font-weight: 850; letter-spacing: .1em; }
.public-hero-visual > strong { color: #2d271d; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.22; }
.public-hero-visual > .hero-value { max-width: 28rem; margin-top: 18px; color: #6e6048; font-size: 1rem; line-height: 1.7; }
.public-home .login-panel { width: min(760px, 100%); margin: 20px auto; scroll-margin-top: 24px; }
.uat-invitation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid #dfc78d;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 8px 28px rgba(107, 80, 27, .08);
}
.uat-invitation-card h2 { margin-bottom: 4px; }
.uat-invitation-card p:not(.step) { margin: 0; color: #6e6048; }
.uat-invitation-output {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px dashed #c39c4d;
  border-radius: 10px;
  background: #fff;
  color: #2f281d;
  font: 800 1.08rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
  user-select: all;
}
.auth-route .public-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto 48px; }
.auth-route .auth-page-heading { padding: 34px 0 8px; text-align: center; }
.auth-page-heading h1 { margin: 0 0 8px; font-size: clamp(1.65rem, 4vw, 2.3rem); }
.auth-page-heading > p { margin: 0 0 18px; color: var(--muted); }
.auth-page-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.auth-page-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--blue); text-decoration: none; font-weight: 700; }
.auth-page-links a[aria-current="page"] { border-color: #dfc78d; background: #fff8e8; color: #75591f; }
.auth-route .login-panel { width: 100%; margin: 18px auto; }
.auth-route .login-panel > .auth-tabs { display: none; }
.public-home-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.public-product-home .public-hero { min-height: 430px; }
.public-products { width: min(1280px, 100%); margin: 0 auto 24px; }
.public-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.public-service-grid article { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 20px; border: 1px solid #d9e5f3; border-radius: 14px; background: #fff; }
.public-service-grid h3, .public-service-grid p { margin: 0; }
.public-service-grid p { color: var(--muted); line-height: 1.6; }
.public-service-grid a { margin-top: auto; padding-top: 10px; font-weight: 750; }
.public-service-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #0b5caf; background: #eaf3ff; font-size: 1.35rem; font-weight: 850; }
.public-account-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border: 1px solid #dfc78d; border-radius: 16px; background: #fffaf0; }
.public-account-entry h2, .public-account-entry p { margin: 0; }
.public-account-entry p { margin-top: 6px; color: var(--muted); }

@media (max-width: 900px) {
  .public-hero { grid-template-columns: 1fr; min-height: 0; padding-block: 44px; }
  .public-hero-visual { min-height: 340px; }
}
@media (max-width: 760px) {
  .public-header { align-items: stretch; flex-direction: column; gap: 14px; padding: 12px 16px; }
  .public-header-tools { width: 100%; gap: 14px; }
  .public-clock { justify-items: start; text-align: left; }
  .public-clock-primary { justify-content: flex-start; }
  .public-header nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .public-shell { width: calc(100% - 24px); max-width: 1280px; }
  .public-hero { gap: 28px; padding: 38px 4px; }
  .public-hero-copy { overflow-wrap: anywhere; }
  .public-hero-copy h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .public-hero-visual { padding: 28px; }
  .uat-invitation-card { grid-template-columns: 1fr; padding: 18px; }
  .public-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .public-header-tools { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 10px; }
  .public-header-tools .language-toggle { justify-content: flex-end; border-left: 0; border-top: 1px solid #dce6ef; padding: 10px 0 0; }
}
@media (max-width: 420px) { .public-service-grid { grid-template-columns: minmax(0,1fr); } .auth-page-links { gap: 6px; } .auth-page-links a { padding-inline: 9px; font-size: .88rem; } }
/* Application steps share the portal's gold/neutral design and compact spacing. */
.application-progress { display:flex; flex-wrap:wrap; gap:.55rem; list-style:none; padding:0; margin:0 0 1.25rem; }
.application-progress li { border:1px solid #dce4ee; border-radius:999px; padding:.55rem .85rem; color:#64748b; background:#f7f9fc; }
.application-progress li.current { color:#61471a; background:#fff2cf; border-color:#c9a14c; font-weight:700; }
.application-progress li.complete { color:#19623f; background:#edf8f1; }
[data-voice-step][hidden], [data-trading-step][hidden] { display:none !important; }
.release-details { display:grid; gap:.7rem; margin-top:.8rem; }
.release-details code { overflow-wrap:anywhere; font-size:.75rem; }
.release-details a { display:flex; align-items:center; gap:.5rem; }
.application-actions { margin-top: 1rem; }
.application-actions .form-actions { justify-content: flex-end; }
.application-restart { border-top: 1px solid var(--border, #e5e7eb); margin-top: 1.25rem; padding-top: 1rem; }
#trading-products .product-card .button { display: inline-flex; justify-content: center; margin-top: 1rem; padding: .75rem 2rem; border-radius: .75rem; background: #9b742a; color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 560px) { .application-actions .form-actions { flex-direction: column; } .application-actions .form-actions button { width: 100%; } }
.account-person-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.portal-account-link.account-centre-entry { width: 48px; height: 48px; min-width: 48px; padding: 10px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--border); border-radius: 50%; color: #163459; background: #fff; }
.portal-header .portal-account { margin-left: auto; }
.dashboard-home-content { display: block; }
.dashboard-home-content .dashboard-primary { display: grid; gap: 24px; }
[data-page="account-centre"] .security-list { max-height: none; overflow: visible; }
.service-policy-badge { color: #176343; font-weight: 700; margin: .4rem 0; }
.portal-language { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.portal-language button { padding: 6px 9px; font-size: .82rem; white-space: nowrap; }
.portal-account { flex-wrap: wrap; justify-content: flex-end; }
.section-heading > div { min-width: 0; }
#document-meta, #document-title { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  [data-page="risk-disclosure"] .section-heading { flex-direction: column; align-items: stretch; }
  .risk-checklist, .risk-choice, .reading-gate > div { min-width: 0; }
  .risk-choice { grid-template-columns: auto minmax(0, 1fr); overflow-wrap: anywhere; }
  .risk-reader, .risk-page-shell { min-width: 0; max-width: 100%; }
}
@media (max-width: 560px) {
  [data-page="vpn"] .section-heading { flex-direction: column; align-items: stretch; }
  [data-page="vpn"] .section-heading .form-actions { align-self: flex-start; }
  [data-page="vpn"] .section-heading button { white-space: nowrap; }
}
