@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --canvas: #f6f9fc;
  --surface: #fff;
  --ink: #1a1f36;
  --muted: #697386;
  --border: #e3e8ee;
  --primary: #635bff;
  --primary-hover: #5851ea;
  --primary-soft: #f0efff;
  --positive: #217005;
  --positive-soft: #d7f7c2;
  --caution: #983705;
  --caution-soft: #fcedb9;
  --negative: #df1b41;
  --negative-soft: #ffe7f2;
  --neutral: #3c4257;
  --neutral-soft: #ebeef1;
  scrollbar-color: #a3acb9 var(--canvas);
  scrollbar-width: thin;
}
/* B8 uses the same shell, tokens and form owners as partner/bank setup. Only
   the editor owns a bounded three-panel scroller; sibling forms remain natural height. */
.template-editor-grid {
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.template-editor-grid > * {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.template-panel-heading,
.template-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.template-panel-heading h2 {
  margin: 0 0 12px;
}
.template-toolbar {
  justify-content: flex-start;
  margin: 0;
}
.template-toolbar .in {
  width: auto;
  max-width: 100%;
}
.template-toolbar .foot-summary {
  margin-left: auto;
}
.template-toolbar .template-name-field {
  width: 260px;
}
.template-toolbar .template-save {
  margin-left: auto;
}
.template-variable-list {
  max-height: 680px;
  overflow: auto;
  margin-top: 12px;
}
.template-variable {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 4px 0;
  background: var(--primary-soft);
  color: #4b45c6;
  font:
    12px ui-monospace,
    monospace;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.template-variable:hover {
  background: var(--primary-soft);
}
.template-variable.required {
  color: var(--caution);
  background: var(--caution-soft);
}
.template-code-panel .f {
  margin-bottom: 12px;
}
textarea.template-code {
  width: 100%;
  height: 600px;
  resize: none;
  font:
    12px/1.65 ui-monospace,
    monospace;
  tab-size: 2;
  white-space: pre-wrap;
  overflow: auto;
  color: transparent;
  caret-color: var(--ink);
  background: transparent;
  position: absolute;
  inset: 0;
  padding: 14px;
  border: 0;
}
.template-variable-group {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
.template-editor-wrap {
  max-width: none;
  gap: 16px;
}
.template-editor-wrap .lead {
  display: none;
}
.template-editor-wrap .title-row {
  justify-content: flex-start;
}
.template-editor-wrap .foot-summary {
  display: none;
}
.template-toolbar .btn.on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.template-name-disclosure {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.template-code-surface {
  position: relative;
  height: 600px;
}
.template-code-highlight {
  position: absolute;
  inset: 0;
  padding: 14px;
  margin: 0;
  font:
    12px/1.65 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  pointer-events: none;
  color: var(--neutral);
}
.template-code-token {
  color: #4b45c6;
  background: var(--primary-soft);
  border-radius: 4px;
}
.template-code-invalid {
  color: var(--negative);
  background: var(--negative-soft);
  text-decoration: underline wavy;
}
.template-code-panel > .f > .lb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.template-code-panel > .f > .hint {
  display: none;
}
.template-editor-grid .template-preview-panel {
  background: var(--canvas);
}
@media (forced-colors: active) {
  textarea.template-code {
    color: CanvasText;
  }
  .template-code-highlight {
    display: none;
  }
}
.template-preview {
  width: 100%;
  min-width: 0;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.template-preview-panel .in {
  width: auto;
  max-width: 65%;
  margin-bottom: 12px;
}
.template-comparison .template-preview {
  height: 240px;
}
.template-final-comparison .template-preview {
  height: 330px;
}
.template-final-comparison > .card {
  min-width: 0;
  padding: 16px;
}
.template-final-comparison .template-source-diff {
  max-height: 180px;
}
.template-checks {
  font-size: 13px;
  line-height: 2;
}
.template-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 13px;
  cursor: pointer;
}
.template-check-row input {
  accent-color: var(--primary);
}
.template-bank-copy {
  padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.template-source-diff {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  background: var(--canvas);
  border-radius: 8px;
  font:
    11px/1.6 ui-monospace,
    monospace;
}
.template-copy-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
}
.template-copy-row:last-child {
  border-bottom: 0;
}
.template-layout-options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.template-table {
  overflow-x: auto;
}
.template-table td {
  overflow-wrap: anywhere;
}
.ok-text {
  color: var(--positive);
}
.template-problems {
  color: var(--negative);
}
@media (max-width: 1279px) {
  .template-editor-grid {
    grid-template-columns: 180px minmax(240px, 1fr);
  }
  .template-editor-grid .template-preview-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .template-editor-grid .template-preview {
    height: 540px;
  }
}
@media (max-width: 767px) {
  .template-editor-grid {
    display: block;
  }
  .template-editor-grid > * + * {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .template-variable-list {
    max-height: 220px;
  }
  .template-copy-row {
    flex-wrap: wrap;
  }
}
.choice-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.reason-dialog {
  width: min(480px, calc(100vw - 48px));
  padding: 24px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.reason-dialog::backdrop {
  background: rgb(26 31 54 / 35%);
}
.reason-dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reason-dialog h2,
.reason-dialog p {
  margin: 0;
}
.reason-dialog textarea {
  resize: none;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.reason-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.choice-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
}
.choice-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature-grid {
  gap: 10px;
}
.radio-choice,
.feature-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}
.radio-choice.selected {
  border: 2px solid var(--primary);
  padding: 13px;
  background: var(--primary-soft);
}
.feature-choice {
  border-radius: 8px;
  padding: 10px 12px;
}
.radio-choice input,
.feature-choice input {
  accent-color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.radio-choice:has(input:disabled),
.feature-choice:has(input:disabled) {
  cursor: default;
}
.radio-choice:has(input:focus-visible),
.feature-choice:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.workspace-heading,
.workspace-actions,
.workspace-body,
.table-heading {
  display: flex;
  gap: 16px;
}
.workspace-heading {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.workspace-actions {
  gap: 8px;
}
.workspace-wrap .btn {
  height: 36px;
  padding: 0 14px;
}
.workspace-subtitle {
  margin-top: 6px;
}
.workspace-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.tile-count {
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
}
.tile-total {
  color: #a3acb9;
  font-size: 16px;
  font-weight: 400;
}
.tile-value {
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}
.tile-detail {
  margin-top: 10px;
}
.workspace-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 12px;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  appearance: none;
}
.workspace-progress::-webkit-progress-bar {
  background: var(--neutral-soft);
}
.workspace-progress::-webkit-progress-value {
  background: var(--primary);
}
.workspace-progress::-moz-progress-bar {
  background: var(--primary);
}
.workspace-body {
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.workspace-forms {
  flex: 999 1 600px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.table-heading {
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.tbl th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  background: var(--canvas);
}
.tbl td {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.selection-column {
  width: 60px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
input[type='checkbox'] {
  accent-color: var(--primary);
}
.workspace-gate {
  flex: 1 1 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gate-intro {
  margin-top: -6px;
}
.workspace-gate .btn {
  margin-top: 6px;
}
.ck {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.positive {
  color: var(--positive);
}
.negative {
  color: var(--negative);
}
.in.fixed-field {
  background: var(--canvas);
  color: var(--muted);
}
.caution {
  color: var(--caution);
}
.ck > span {
  font-weight: 600;
}
.submission-stage {
  min-height: 900px;
  background: rgb(26 31 54 / 45%);
  padding: 80px 16px;
}
.submission-dialog {
  position: absolute;
  top: 137px;
  margin: 0 auto;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 153px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgb(26 31 54 / 25%);
  font: inherit;
  color: var(--ink);
  overflow: auto;
}
.submission-dialog::backdrop {
  background: transparent;
}
.submission-heading {
  padding: 22px 24px 6px;
}
.submission-heading h1 {
  font-size: 20px;
}
.submission-heading p {
  margin: 8px 0 0;
  line-height: 1.5;
}
.submission-rows {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.submission-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.submission-name {
  flex: 1;
}
.submission-outcome:empty {
  display: none;
}
.submission-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.submission-footer .btn {
  height: 38px;
  padding: 0 16px;
}
@media (max-width: 1100px) {
  .workspace-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-hover);
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.app {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.top {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}
.uat {
  background: var(--caution-soft);
  color: var(--caution);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
}
.top-spacer {
  flex: 1 1 200px;
}
.top-menu {
  position: relative;
  font-size: 13px;
}
.top-menu > summary {
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
  padding: 8px;
}
.top-menu > summary:hover {
  background: var(--primary-soft);
}
.top-menu-panel {
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 24px rgb(26 31 54 / 12%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.top .btn {
  white-space: nowrap;
}
.top-search {
  min-width: 160px;
}
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.home-metric {
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.home-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.home-columns > .card {
  flex: 1 1 320px;
}
.home-columns > .card:first-child {
  flex-basis: 420px;
}
.topbar-columns > .card:first-child {
  flex-basis: 320px;
}
.home-attention {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.box-head {
  padding: 16px 18px;
}
@media (max-width: 1280px) {
  .top-spacer {
    flex-basis: 0;
  }
  .top {
    gap: 10px;
  }
  .top-search {
    min-width: 0;
  }
}
@media (max-width: 1100px) {
  .top {
    height: auto;
    min-height: 56px;
  }
  .top .brand > span {
    max-width: 180px;
  }
  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.body {
  display: flex;
  flex-wrap: wrap;
}
.nav {
  flex: 1 1 220px;
  max-width: 232px;
  padding: 20px 12px;
}
.nh {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 16px 12px 6px;
}
.nl {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
}
.nl.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.main {
  flex: 999 1 560px;
  min-width: 0;
  padding: 24px 32px 0;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
}
.form-wrap {
  max-width: 880px;
}
.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.directory-subtitle {
  margin-top: 6px;
}
.directory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.metric-value {
  font-size: 24px;
  font-weight: 600;
  margin-top: 6px;
}
.directory-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.partner-table {
  min-width: 820px;
}
.partner-table td {
  padding: 14px 16px;
}
.partner-table .numeric {
  text-align: right;
}
.partner-name {
  font-weight: 500;
}
.tiny {
  font-size: 12px;
}
.table-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.catalogue-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.catalogue-choice input {
  accent-color: var(--primary);
  margin-top: 3px;
}
.catalogue-details {
  margin-top: 12px;
}
.catalogue-details > summary {
  font-size: 12px;
  color: var(--primary);
}
.catalogue-event {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.catalogue-event pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.connectivity-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 8px;
  padding: 10px 14px;
}
.btn.compact {
  height: 32px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.g2,
.g3 {
  display: grid;
  gap: 20px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.lb {
  font-weight: 500;
}
.i {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 400;
  cursor: help;
}
.in {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  min-width: 0;
}
.ad {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  gap: 6px;
  background: var(--surface);
}
.ad:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.ad input {
  border: 0;
  outline: 0;
  width: 100%;
  color: var(--ink);
  min-width: 0;
}
.ad.help-open {
  border: 2px solid var(--primary);
  padding: 0 11px;
}
.u {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.chg {
  font-size: 12px;
  color: var(--caution);
}
.def {
  background: var(--neutral-soft);
  color: var(--neutral);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 11px;
}
.pill {
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}
.neu {
  background: var(--neutral-soft);
  color: var(--neutral);
}
.ok {
  background: var(--positive-soft);
  color: var(--positive);
}
.wait {
  background: var(--caution-soft);
  color: var(--caution);
}
.bad {
  background: var(--negative-soft);
  color: var(--negative);
}
.btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pri {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pri:hover {
  background: var(--primary-hover);
  color: white;
}
.foot {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  margin: 0 -32px;
}
.footin {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-summary {
  flex: 1 1 240px;
  font-size: 13px;
}
.tip {
  background: var(--primary-soft);
  color: #3c3489;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.tip.neutral {
  background: var(--canvas);
  color: var(--neutral);
}
.opt {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.opt.sel {
  border: 2px solid var(--primary);
  padding: 13px;
  background: var(--primary-soft);
}
.bank-interest-options {
  display: grid;
  gap: 20px;
}
.bank-setup.wrap {
  max-width: 1160px;
}
.bank-setup-heading {
  justify-content: space-between;
  align-items: flex-end;
}
.bank-setup progress {
  width: 260px;
  height: 8px;
  accent-color: var(--primary);
}
.bank-identity {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 18px;
  font-size: 13px;
}
.bank-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scheduler-table {
  table-layout: fixed;
}
.scheduler-editor.card {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.scheduler-editor details {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.scheduler-rules li {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.scheduler-table th:nth-child(1) {
  width: 48px;
}
.scheduler-table th:nth-child(2) {
  width: 22%;
}
.scheduler-table th:nth-child(4) {
  width: 29%;
}
.scheduler-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scheduler-timing .in {
  flex: 1 1 100px;
  min-width: 0;
}
.scheduler-table .tiny {
  margin-top: 6px;
}
.bank-setup-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}
.bank-setup-card:hover {
  border-color: var(--primary);
  color: var(--ink);
}
.bank-setup-card .t {
  font-weight: 600;
  font-size: 15px;
}
.bank-setup-card .d {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
.bank-setup-card .m {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.bank-setup-card .req {
  font-size: 11px;
  color: #4b45c6;
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 1px 6px;
}
@media (max-width: 1100px) {
  .bank-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .bank-setup-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bank-interest-options .radio-choice {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bank-interest-options .radio-choice.selected {
  border: 2px solid var(--primary);
  padding: 19px 21px;
}
.bank-interest-options .small {
  line-height: 1.55;
  font-size: 14px;
}
.classification-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
.classification-bar span {
  padding: 8px 10px;
  flex: 1;
  text-align: center;
}
.classification-bar span:nth-child(1) {
  background: #d7f7c2;
  color: #217005;
}
.classification-bar span:nth-child(2) {
  background: #fcedb9;
  color: #983705;
}
.classification-bar span:nth-child(3) {
  background: #fcddb0;
  color: #983705;
}
.classification-bar span:nth-child(4) {
  background: #ffd7c2;
  color: #9c3a06;
}
.classification-bar span:nth-child(5) {
  background: #ffe7f2;
  color: #b3093c;
}
.bank-suspension-categories {
  display: grid;
  gap: 20px;
}
.bank-policy-category {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.bank-policy-category .seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 200px;
}
.bank-policy-category .seg .btn {
  height: 34px;
  border: none;
  border-radius: 0;
  font-size: 13px;
  color: var(--muted);
}
.bank-policy-category .seg .stop {
  background: #ffe7f2;
  color: #df1b41;
}
.bank-policy-category .seg .go {
  background: #d7f7c2;
  color: #217005;
}
.bank-policy-category .seg button:disabled {
  opacity: 1;
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--primary);
}
.segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.segment button {
  height: 38px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
}
.segment button[aria-pressed='true'] {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.pop {
  box-sizing: content-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(26 31 54 / 12%);
  padding: 16px 18px;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pop .small {
  line-height: 1.55;
}
.help-slot:empty {
  display: none;
}
.pop-example {
  background: var(--canvas);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.error {
  color: var(--negative);
  font-size: 13px;
}
.error-summary {
  border: 1px solid var(--negative);
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
}
.loading {
  padding: 32px;
}
.toast {
  pointer-events: none;
  position: fixed;
  right: 24px;
  bottom: 90px;
  max-width: 420px;
  padding: 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font:
    14px Inter,
    system-ui,
    sans-serif;
  z-index: 30;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.expiry-details {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.expiry-days {
  width: 200px;
}
.expiry-preview {
  flex: 1 1 300px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
@media (max-width: 1100px) {
  .nav {
    flex-basis: 200px;
    width: 200px;
  }
  .main {
    padding-inline: 24px;
  }
  .foot {
    margin-inline: -24px;
  }
}
@media (max-width: 760px) {
  .body {
    flex-direction: column;
  }
  .nav {
    width: 100%;
    flex-basis: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }
  .nh {
    flex-basis: 100%;
  }
  .main {
    padding: 20px 16px 0;
  }
  .g2,
  .g3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot {
    margin-inline: -16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
/* P8 uses the shared governed field controls inside the approved purpose table. */
.accounting-card {
  gap: 16px;
}
.accounting-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.accounting-heading > .f {
  max-width: 300px;
}
.accounting-book-fixed {
  font-size: 13px;
}
.accounting-book-fixed .lb {
  color: var(--muted);
  font-weight: 400;
}
.accounting-book-fixed .hint {
  display: none;
}
.accounting-table th:first-child {
  width: 42%;
}
.accounting-table th {
  padding: 8px 10px;
}
.accounting-table td {
  vertical-align: middle;
  padding: 8px 10px;
}
.accounting-table .lb {
  font-weight: 400;
}
.accounting-table .in {
  height: 36px;
  padding: 0 10px;
}
.accounting-table .f {
  min-width: 0;
  gap: 2px;
}
.accounting-table .hint {
  font-size: 11px;
}
.accounting-mapping-evidence {
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--primary-soft);
  color: var(--ink);
}
.accounting-mapping-evidence.mapping-complete {
  background: var(--positive-soft);
  color: var(--positive);
}
.service-card {
  padding: 6px 24px;
}
.ordered-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.order-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.order-label {
  flex: 1;
}
.order-move {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.order-move:hover:not(:disabled) {
  background: var(--primary-soft);
}
.order-move:disabled {
  cursor: default;
  opacity: 0.5;
}
.policy-details {
  margin-top: 16px;
}
.policy-details summary {
  cursor: pointer;
  color: var(--primary);
}
.policy-details > div {
  margin-top: 16px;
}
.policy-reference {
  font-size: 13px;
  line-height: 1.6;
}
.ad input:disabled {
  background: transparent;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
}
.service-row {
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.service-row:first-child {
  border-top: 0;
}
.service-description {
  flex: 1;
  min-width: 0;
}
.service-switch {
  width: 40px;
  height: 22px;
  min-width: 40px;
  border: 0;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  padding: 0;
}
.service-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}
.service-switch[aria-checked='true'] {
  background: var(--primary);
}
.service-switch[aria-checked='true']::after {
  left: 20px;
}
.service-switch:disabled {
  opacity: 1;
  cursor: default;
}
.mcc-picker {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mcc-picker .seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mcc-picker .seg button {
  border: 0;
  background: white;
  color: var(--muted);
  font: inherit;
  height: 38px;
}
.mcc-picker .seg button.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.mcc-picker .seg button:disabled {
  opacity: 1;
  cursor: default;
}
.mcc-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mcc-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--negative-soft);
  color: #b3093c;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
}
.mcc-chips .chip button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}
.mcc-results {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mcc-result {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: white;
  padding: 10px 12px;
  font: inherit;
}
.mcc-result:hover,
.mcc-result:focus-visible {
  background: var(--primary-soft);
}
.search-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
}
.mcc-picker [role='status']:empty {
  display: none;
}
.mcc-picker input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.inline-disclosure:not([open]) {
  display: inline;
}
.inline-disclosure summary {
  display: inline;
  list-style: none;
  color: var(--primary);
  cursor: pointer;
}
.inline-disclosure summary::-webkit-details-marker {
  display: none;
}
.partner-users-card {
  gap: 14px;
}
.partner-users-card .tbl td {
  vertical-align: top;
}
.partner-users-card .tbl input {
  height: 36px;
  min-width: 0;
}
.partner-users-card .tbl th:last-child {
  width: 44px;
}
.remove-person {
  width: 32px;
  height: 32px;
  padding: 0;
}
.partner-users-card .tbl {
  table-layout: fixed;
}
.partner-users-card .tbl td .hint {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.go-live-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.go-live-check:first-of-type {
  border-top: 0;
}
.go-live-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.go-live-checklist {
  gap: 12px;
}
textarea.in {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
  resize: none;
}
.messages-wrap,
.messages-form .footin {
  max-width: 980px;
}
.message-configuration {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.message-channels,
.inline-choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.message-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  flex: 1 1 200px;
}
.message-table td {
  padding: 9px 10px;
}
.message-table th {
  padding: 8px 10px;
}
.message-table td .pill.neu {
  font-size: 11px;
}
.message-configuration .title-row {
  justify-content: space-between;
}
.messages-form .message-missing-summary {
  color: var(--negative);
}
.message-table .in {
  height: 32px;
  font-size: 13px;
  padding: 0 10px;
}
.message-table .miss {
  border-color: var(--negative);
  background: var(--negative-soft);
}
.message-preview {
  background: var(--canvas);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.message-template-link {
  border: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.message-template-link:hover {
  text-decoration: underline;
}
.message-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.message-all-types {
  max-height: 520px;
  overflow: auto;
}
.message-template-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message-template-dialog {
  max-height: 85vh;
  overflow: auto;
}
.reminder-plan-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.partner-addresses {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.partner-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}
.credential-handover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--neutral);
}
.connection-evidence {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.credential-stage {
  padding: 0;
}
.credential-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 152px);
  margin: 136px auto 16px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(26 31 54 / 25%);
}
.credential-dialog::backdrop {
  background: linear-gradient(transparent 56px, rgb(26 31 54 / 45%) 56px);
}
.credential-heading {
  padding: 22px 24px 4px;
}
.credential-heading h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.credential-heading p {
  margin: 8px 0 0;
  line-height: 1.5;
}
.credential-content {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.credential-kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.credential-value {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 6px 0 12px;
  min-height: 40px;
  background: var(--canvas);
}
.credential-value input {
  flex: 1;
  width: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font:
    13px ui-monospace,
    Menlo,
    monospace;
  text-overflow: ellipsis;
}
.credential-value .cp {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.credential-warning,
.session-ended-notice {
  background: var(--caution-soft);
  color: var(--caution);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.credential-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.approval-inbox {
  max-width: 1120px;
}
.approval-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.approval-tabs .tab {
  padding: 10px 2px;
  margin-right: 24px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.approval-tabs .tab.on {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.approval-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.approval-filters .flt {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  max-width: 100%;
}
.approval-table {
  min-width: 900px;
}
.approval-table th {
  padding: 10px 16px;
}
.approval-table td {
  padding: 14px 16px;
}
.approval-table .btn {
  height: 34px;
  padding: 0 14px;
}
.reference-wrap {
  overflow-wrap: anywhere;
}
.change-review {
  max-width: 1000px;
}
.review-table {
  table-layout: fixed;
}
.review-table th {
  padding: 10px 14px;
}
.review-table th:first-child {
  width: 34%;
}
.review-table td {
  padding: 12px 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-table .changed {
  background: #fffbeb;
}
.review-table .previous-value {
  text-decoration: line-through;
}
.review-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.review-context > div {
  background: var(--canvas);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.decision-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.decision-form textarea {
  height: auto;
  min-height: 84px;
}
.btn.dng {
  color: var(--negative);
}
.change-review details > summary {
  color: var(--primary);
  font-size: 13px;
}
.submission-row.unavailable {
  background: var(--canvas);
  color: var(--muted);
}
.pill.info {
  color: var(--primary);
  background: var(--primary-soft);
}
/* Live partner views retain the prototype's shared seven-tab shell. */
.live-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e3e8ee;
}
.live-tabs a {
  padding: 12px 18px;
  color: #687385;
  border-bottom: 2px solid transparent;
}
.live-tabs a.on {
  color: #635bff;
  border-bottom-color: #635bff;
  font-weight: 600;
}
.live-columns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.live-columns > :first-child {
  flex: 999 1 520px;
  min-width: 0;
}
.live-columns > :last-child {
  flex: 1 1 300px;
  min-width: 0;
}
.live-columns.equal > * {
  flex: 1 1 420px;
}
.live-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e3e8ee;
}
.live-row:first-of-type {
  border-top: 0;
}
.live-row > * {
  overflow-wrap: anywhere;
  min-width: 0;
}
.live-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 16px 18px;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
}
.live-add {
  background: #fff;
  border: 1px dashed #c8c4ff;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.live-add-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.live-add-fields .in {
  width: 200px;
}
.live-success,
.live-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 12px 16px;
}
.live-success {
  background: #d7f7c2;
  color: #217005;
}
.live-warning {
  background: #fcedb9;
  color: #983705;
  flex-wrap: wrap;
}
.live-warning > span {
  flex: 1 1 400px;
}
.live-partner .tile-count {
  overflow-wrap: anywhere;
}
.live-message-content {
  display: grid;
  gap: 20px;
}
.live-events {
  padding-left: 20px;
  margin: 0;
  line-height: 2;
  overflow-wrap: anywhere;
}
.live-partner td {
  overflow-wrap: anywhere;
}
.suspension-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  margin: 112px auto 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 40px rgba(26, 31, 54, 0.25);
}
.suspension-dialog::backdrop {
  background: linear-gradient(to bottom, transparent 56px, rgba(26, 31, 54, 0.45) 56px);
}
.suspension-header {
  padding: 22px 24px 6px;
}
.suspension-header h1 {
  font-size: 20px;
  margin: 0;
}
.suspension-header p {
  margin: 8px 0 0;
}
.suspension-content {
  padding: 12px 24px;
}
.suspension-fields {
  padding: 4px 24px 16px;
  display: grid;
  gap: 10px;
}
.suspension-fields textarea.in {
  height: auto;
  padding: 10px 12px;
}
.danger-fill {
  background: var(--negative);
  border-color: var(--negative);
  color: #fff;
}
.danger-fill:hover {
  background: var(--negative);
  border-color: var(--negative);
  filter: brightness(0.9);
}
.notice-issuer-wrap {
  max-width: 1000px;
}
.bank-message-section .foot {
  position: static;
  margin-top: 0;
}
.bank-message-section .approval-order {
  max-width: 960px;
  margin: 0 auto 10px;
}
.bank-message-section .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bank-message-section + .bank-message-section h1 {
  font-size: 20px;
}
@media (max-width: 1100px) {
  .bank-message-section .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.notice-issuer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.notice-issuer-columns > .card {
  min-width: 0;
}
.notice-signatory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.notice-issuer-columns input[type='file'] {
  width: 100%;
  font: inherit;
  font-size: 12px;
}
.notice-issuer-columns textarea {
  padding: 10px 12px;
  height: auto;
}
.notice-issuer-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.notice-issuer-preview header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.notice-issuer-preview header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
@media (max-width: 1100px) {
  .notice-issuer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
.foundation-upload {
  max-width: 880px;
}
.foundation-review {
  max-width: 1000px;
}
.foundation-drop {
  border: 2px dashed #c8c4ff;
  background: #f8f7ff;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.foundation-drop input {
  max-width: 100%;
}
.foundation-config > summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 500;
}
.foundation-config .card + .card {
  margin-top: 16px;
}
.foundation-items,
.foundation-entry,
.foundation-leg {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.foundation-entry,
.foundation-leg {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 14px;
}
.foundation-entry {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.foundation-entry > div:not(.f),
.foundation-entry > button {
  grid-column: 1 / -1;
}
.foundation-entry legend,
.foundation-leg legend {
  padding: 0 6px;
  font-weight: 500;
}
.foundation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.foundation-summary .card {
  gap: 4px;
  padding: 14px 16px;
}
.foundation-summary strong {
  font-size: 22px;
}
.foundation-invalid td {
  background: #fff5f8;
}
.foundation-review .tbl {
  min-width: 780px;
}
.foundation-review .table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.foundation-revision .tbl {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.foundation-revision .tbl td,
.foundation-revision legend {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.foundation-revision .foundation-entry > table,
.foundation-revision .foundation-entry > h3,
.foundation-revision .foundation-entry > p,
.foundation-revision .foundation-entry > ul {
  grid-column: 1 / -1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.foundation-upload code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.bank-ledger-account {
  max-width: 860px;
}
.ledger-identity {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 20px;
  margin: 0;
}
.ledger-identity dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.bank-network {
  max-width: 880px;
}
.network-credential {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.network-credential > div {
  flex: 1 1 300px;
  min-width: 0;
}
.bank-network .feature-choice:has(input:disabled) {
  border: 0;
  background: transparent;
  padding: 0;
}
.bank-network .feature-choice:has(input:disabled) input,
.bank-network .feature-choice:has(input:disabled) br,
.bank-network .feature-choice:has(input:disabled) .small {
  display: none;
}
.bank-network .feature-choice:has(input:checked:disabled)::before {
  content: '✓';
  color: var(--positive);
}
.bank-network .feature-choice:has(input:not(:checked):disabled)::before {
  content: '—';
  color: var(--muted);
}
.defaults-group {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.partner-defaults {
  max-width: 960px;
}
.defaults-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--background, #f6f9fc);
}
.defaults-group-heading h2 {
  margin: 0;
  font-size: 14px;
}
.defaults-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
}
.defaults-value {
  min-width: 200px;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.partner-defaults details summary {
  color: var(--primary);
  cursor: pointer;
}

/* Scoped account reads share one keyset pager and one account shell. */
.account-search-controls {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) minmax(160px, 1fr) 120px minmax(145px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.account-search-controls .f {
  min-width: 0;
}
.account-search-controls .ad {
  position: relative;
}
.account-search-controls input[type='search'] {
  padding-right: 36px;
}
.account-search-controls input[type='search']::-webkit-search-cancel-button {
  appearance: none;
}
.search-clear {
  position: absolute;
  right: 6px;
  top: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 4px 8px;
  cursor: pointer;
}
.search-clear:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.account-search-summary,
.table-pager {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.table-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.table-pager [role='status'] {
  margin-right: auto;
}
.account-more {
  display: flex;
  justify-content: flex-end;
}
.account-table {
  table-layout: auto;
  width: 100%;
}
.account-table td,
.account-table th {
  overflow-wrap: anywhere;
}
.account-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.account-table td.numeric {
  white-space: nowrap;
}
.account-table .table-empty {
  padding: 32px 18px;
}
.account-facility-meta {
  margin-top: -8px;
}
.account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.account-metrics .tile {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.account-tile-value {
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 4px;
}
.account-balance-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.account-balance-detail > div {
  display: grid;
  gap: 6px;
}
.account-unavailable {
  display: grid;
  gap: 6px;
  max-width: 190px;
}
.account-action-form {
  max-width: 820px;
}

.charge-waiver-dialog {
  width: min(580px, calc(100vw - 32px));
  max-width: 580px;
  max-height: calc(100dvh - 128px);
  margin: 112px auto 16px;
  padding: 0;
  overflow: auto;
  border: 0;
}
.charge-waiver-dialog::backdrop {
  background: linear-gradient(transparent 56px, rgb(26 31 54 / 45%) 56px);
}
.charge-waiver-dialog .form-wrap {
  width: auto;
  padding: 22px 24px 14px;
  gap: 14px;
}
.charge-waiver-dialog h1 {
  font-size: 20px;
}
.charge-waiver-dialog .lead {
  margin-bottom: 0;
}
.charge-waiver-dialog .waiver-fields {
  border: 0;
  padding: 0;
  gap: 14px;
}
.charge-waiver-dialog .foot {
  position: sticky;
  left: auto;
  bottom: 0;
  padding: 16px 24px;
  margin: 0;
}
.charge-waiver-dialog .footin {
  max-width: none;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.charge-waiver-dialog .foot-summary {
  flex-basis: 100%;
}
.charge-waiver-dialog .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.charge-waiver-dialog .waiver-quote {
  border-radius: 8px;
  background: var(--canvas);
  padding: 12px 14px;
}
.account-action-facts {
  align-self: center;
  padding: 10px 0;
}
.account-mandatory-types {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.account-workspace .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-workspace .chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.account-workspace .chip.on {
  color: var(--primary);
  background: var(--primary-soft);
}
.account-workspace .box-body {
  padding: 16px 18px;
}
@media (max-width: 1280px) {
  .account-search-controls {
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) 120px;
  }
  .account-search-status {
    grid-column: 1 / 3;
  }
  .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Stored bank reports: document flow, with wide comparison tables scrolling
   only inside their own surface. The shared theme remains the token owner. */
.bank-report {
  max-width: 1120px;
}
.trial-report {
  max-width: 960px;
}
.report-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.report-heading-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-subtitle {
  margin-top: 6px;
}
.report-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
}
.report-loading {
  min-height: 240px;
  padding: 24px 0;
  color: var(--muted);
}
.report-tiles {
  display: grid;
  gap: 16px;
}
.report-tiles.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.report-tiles.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.report-tile-value {
  font-size: 22px;
  font-weight: 600;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.report-tile-value.positive {
  color: var(--positive);
}
.report-tile-value.negative {
  color: var(--negative);
}
.report-caption {
  font-size: 12px;
  margin-top: 4px;
}
.report-filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.report-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.report-filter-form .f {
  flex: 1 1 180px;
  min-width: 0;
}
.report-controls:has(.report-filter-panel[hidden]):has(> div[hidden]) {
  display: none;
}
.report-note {
  line-height: 1.5;
}
.bank-report .numeric {
  text-align: right;
  white-space: nowrap;
}
.bank-report .tbl {
  min-width: 640px;
}
.bank-report .asset-report-table {
  min-width: 820px;
}
.reconciliation-report .tbl {
  min-width: 920px;
}
.bank-report .tbl tfoot td {
  font-weight: 600;
  background: var(--canvas);
}
.trial-report .tbl tfoot td {
  border-top: 2px solid var(--ink);
}
.report-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}
.report-dot.standard {
  background: var(--positive-soft);
}
.report-dot.sma_0,
.report-dot.sma_1,
.report-dot.sma_2 {
  background: var(--caution-soft);
}
.report-dot[class*='npa_'] {
  background: var(--negative-soft);
}
.report-compliance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
@media (max-width: 1100px) {
  .report-tiles.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .report-tiles.three,
  .report-tiles.four {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reconciliation-resolution {
  max-width: 820px;
}
.recon-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.recon-item-row:first-child {
  border-top: 0;
}
.recon-decision-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.recon-locked-outcome {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.operation-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.operation-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.operation-partner {
  min-width: 180px;
  margin: 0;
}
.operation-range {
  display: flex;
  align-items: center;
  gap: 0;
}
.operation-range .btn {
  border-radius: 0;
}
.operation-range .btn:first-child {
  border-radius: 8px 0 0 8px;
}
.operation-range .btn:nth-child(2) {
  border-radius: 0 8px 8px 0;
}
.operation-range [aria-pressed='true'] {
  background: var(--primary-soft);
  color: var(--primary);
}
.operation-range .i {
  margin-left: 6px;
}
.operation-table .box-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.operation-table .numeric {
  text-align: right;
  white-space: nowrap;
}
.operation-page .locked-feature {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.overdue-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.overdue-filters .seg {
  display: flex;
  flex-wrap: wrap;
}
.overdue-filters .seg .btn {
  border-radius: 0;
}
.overdue-filters .seg .btn:first-child {
  border-radius: 8px 0 0 8px;
}
.overdue-filters .seg .btn:last-child {
  border-radius: 0 8px 8px 0;
}
.overdue-filters [aria-pressed='true'] {
  background: var(--primary-soft);
  color: var(--primary);
}
.overdue-filters .f {
  min-width: 160px;
  margin: 0;
}
.overdue-page .account-table {
  min-width: 900px;
}
.operation-closure-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.operation-closure-tabs [aria-pressed='true'] {
  background: var(--primary-soft);
  color: var(--primary);
}
.operation-exception,
.operation-report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.operation-exception > div,
.operation-report-card > div {
  flex: 1;
  min-width: min(260px, 100%);
}
.operation-exception-title {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.report-hub-results {
  display: grid;
  gap: 14px;
}
.access-stage {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 16px;
}
.access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.access-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.access-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgb(26 31 54 / 8%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.access-card h1 {
  font-size: 22px;
}
.activation-stage {
  justify-content: flex-start;
  padding-top: 72px;
}
.activation-stage .access-card {
  max-width: 420px;
  padding: 28px;
}
.access-lead {
  margin: 6px 0 0;
  line-height: 1.5;
}
.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.access-form .f {
  margin: 0;
}
.access-input {
  display: flex;
  gap: 6px;
  align-items: center;
}
.access-input input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
}
.access-submit {
  width: 100%;
  height: 40px;
}
.access-note {
  text-align: center;
  line-height: 1.5;
}
.access-footer {
  font-size: 12px;
}
.access-feedback {
  line-height: 1.5;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-password summary {
  cursor: pointer;
  color: var(--primary);
}
.profile-password-form {
  max-width: 400px;
  padding-top: 20px;
}
.profile-page .box-head {
  padding: 16px 18px;
}
.system-results {
  display: grid;
  gap: 20px;
}
.system-readiness-plane {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.system-results > select {
  max-width: 280px;
}
.system-run-filter {
  max-width: 280px;
}

/* Partner setup: forms grouped by partner, product, systems and launch. */
.tbl .form-group-row td {
  background: var(--canvas);
  padding: 9px 16px;
}
.form-group-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 10px;
}
.tbl .form-row-waiting td {
  color: var(--muted);
}
.product-start {
  display: grid;
  gap: 6px;
  padding: 4px 0;
}
.product-start-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.product-start-fields .in {
  max-width: 240px;
}

.decision-confirm-dialog {
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.decision-confirm-dialog .tbl {
  table-layout: fixed;
  width: 100%;
}
.decision-confirm-dialog td {
  overflow-wrap: anywhere;
}
.decision-confirm-dialog .reason-actions {
  margin-top: 20px;
}
.session-warning {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 24px;
  background: var(--caution-soft);
  color: var(--caution);
}
.session-warning[hidden] {
  display: none;
}
.session-warning-copy {
  margin: 0;
}
