:root {
  --wm-blue: #036cb5;
  --wm-orange: #e59733;
  --wm-green: #7fa531;
  --ink: #26313d;
  --muted: #61707e;
  --line: #d9e0e6;
  --soft: #f3f5f7;
  --paper: #ffffff;
  --warning: #fff4df;
  --warning-line: #e9bc70;
  --info: #edf6fd;
  --shadow: 0 10px 24px rgba(24, 42, 57, .09);
}

.workspace-summary,
.batch-review {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-summary h2,
.batch-review h2 {
  margin-top: 0;
}

.draft-badge {
  display: inline-flex;
  width: fit-content;
  padding: .15rem .45rem;
  border-radius: 999px;
  color: #714b00;
  background: #fff2c7;
  font-size: .75rem;
  font-weight: 700;
}

.batch-step-list {
  flex: 1 1 100%;
  margin: .5rem 0;
}
.review-change-list { display: grid; gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.review-change-list > li { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.workspace-section-actions {
  margin-top: .75rem;
}

.credential-card .identifier,
.client-card .identifier,
.identifier-chips code,
.client-choice-list code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 700px) {
  .workspace-summary,
  .batch-review {
    display: block;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--paper); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
}

main { flex: 1 0 auto; min-width: 0; }

/* Grid/flex children must be allowed to shrink to the viewport. Long commands
   retain their original bytes and scroll only within their own code card. */
.shell, .section-grid > *, .guide-overview > *, .panel, .setup-snippet,
.access-layout > *, .key-values > *, .copy-field, .signal-panel { min-width: 0; max-width: 100%; }
.panel, .prose, .signal-row, .key-values dd { overflow-wrap: anywhere; }
.panel pre, .prose pre, .setup-snippet pre { min-width: 0; max-width: 100%; overflow-x: auto; white-space: pre; overflow-wrap: normal; }
.panel pre code { white-space: inherit; overflow-wrap: normal; word-break: normal; }
.copy-field input { min-width: 0; width: 100%; }
.guide-overview { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.setup-snippet > summary { font-size: 1.1rem; font-weight: 650; cursor: pointer; }
.setup-snippet-heading { flex-wrap: wrap; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.table-scroll table { border-collapse: collapse; width: 100%; }
.table-scroll th, .table-scroll td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll caption { text-align: left; font-weight: 650; padding: .6rem; }
.admin-filters, .admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.admin-filters label { display: flex; flex-direction: column; min-width: 0; }
.admin-filters input, .admin-filters select { min-width: 0; width: 100%; padding: .5rem; font: inherit; }
.admin-cards h2 { font-size: 1rem; }
.admin-cards a { font-size: 1.75rem; font-weight: 650; }
.admin-chart { width: 100%; height: auto; }
.admin-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.admin-chart-grid figure { min-width: 0; margin: 0; }
.admin-chart text { font: 12px system-ui, sans-serif; fill: currentColor; }
.admin-chart a:focus circle { stroke: currentColor; stroke-width: 3; }
.admin-page td { max-width: 24rem; overflow-wrap: anywhere; vertical-align: top; }
.admin-page .table-scroll { max-width: 100%; }
.admin-page td { word-break: normal; }
.admin-page td code, .admin-page td details { min-width: 10ch; }
.admin-journal td:nth-child(6) { min-width: 8rem; white-space: nowrap; }
.admin-parameters td:first-child { min-width: 12rem; overflow-wrap: normal; }
.admin-page td:first-child { min-width: 10rem; }
.admin-pagination { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.admin-pagination [aria-disabled="true"] { opacity: .65; cursor: default; }
.admin-filters input:disabled { background: #eee; color: #444; cursor: default; }
.admin-session [hidden], [data-admin-protected][hidden] { display: none; }
.admin-filters input, .admin-filters select { border: 1px solid var(--line); border-radius: 5px; background: var(--paper, #fff); color: var(--text, #222); }
.admin-filters .inline-actions, .admin-filters details { grid-column: 1 / -1; }
.admin-filter-advanced { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 12px; }
.access-list details[data-wallet-group] { border-top: 1px solid var(--line); padding-top: 8px; }
.access-list details[data-wallet-group] summary { cursor: pointer; padding: 10px 0; overflow-wrap: anywhere; }
.admin-page code { overflow-wrap: anywhere; }
.admin-filters input[type="checkbox"] { width: auto; align-self: flex-start; }
.wallet-filter { display: grid; gap: .5rem; margin-bottom: 1rem; }
.wallet-filter input[type="search"] { min-width: 0; width: 100%; }
.wallet-filter label { display: block; }
:focus-visible { outline: 3px solid #805000; outline-offset: 3px; }
#webMoneyFooter { flex: 0 0 auto; }

a { color: var(--wm-blue); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 3px solid #805000;
  outline-offset: 3px;
}

.shell {
  width: min(100% - 32px, 992px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.account-tabs a,
.account-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #34495a;
  text-decoration: none;
}
.account-tabs a:hover,
.account-tabs a.active { background: var(--soft); color: #805000; }
.account-tabs span.disabled { color: #7b8791; cursor: not-allowed; }

.webmoney-layout-host {
  min-height: 1px;
}

.webmoney-layout-error {
  border-bottom: 1px solid var(--line);
}

.layout-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.layout-fallback nav { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: var(--wm-orange);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button-secondary {
  background: #fff;
  color: var(--wm-blue);
  border: 1px solid var(--line);
}
.button:disabled { background: #d7dde3; color: #667; cursor: not-allowed; }

.hero-band {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #fff 0%, #f6f8fa 100%);
}
.hero-band.compact .shell { padding: 40px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
  padding: 54px 0;
}
.hero-grid.single { grid-template-columns: minmax(0, 720px); }
.eyebrow {
  margin: 0 0 10px;
  color: #805000;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 760px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0;
}
h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.lead { max-width: 720px; margin: 16px 0 0; color: #455869; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.signal-panel,
.panel,
.card,
.metric {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.signal-panel { padding: 16px; }
.signal-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.signal-row:last-child { border-bottom: 0; }
.signal-row span { color: var(--muted); }
code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3f7;
  color: #23313d;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .92em;
}

.section-stack { padding: 28px 0 46px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.section-stack > * { min-width: 0; }
.card-grid { display: grid; gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .panel, .metric { padding: 18px; }
.card p, .panel p { color: var(--muted); margin: 8px 0 0; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.warning-panel { background: var(--warning); border-color: var(--warning-line); }
.warning-panel.subtle { box-shadow: none; }
.info-panel { background: var(--info); border-color: #b8d9ef; }
.steps { margin: 10px 0 0; padding-left: 22px; }
.steps li { margin: 10px 0; }
.steps span { display: block; color: var(--muted); }
.code-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.key-values { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 12px 0 0; }
.key-values dt, .mini-dl dt { color: var(--muted); }
.key-values dd, .mini-dl dd { margin: 0; }

.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.status.verified { background: #e9f5df; color: #476f18; }
.status.beta { background: #fff1dc; color: #81510f; }
.status.active { background: #e9f5df; color: #476f18; }
.status.disabled, .status.expired { background: #fbe7e4; color: #8a352c; }
.status.unknown { background: #edf0f2; color: #52606c; }
.mini-dl { display: grid; grid-template-columns: 130px 1fr; gap: 7px 10px; margin: 12px 0 16px; }
.copy-field { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; margin-top: 10px; }
.copy-field input, .text-input {
  min-width: 0;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
}
.copy-field button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--wm-blue);
  cursor: pointer;
}

.setup-snippet { margin-top: 22px; }
.setup-snippet-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.setup-snippet-heading span { color: var(--muted); font-size: .85rem; text-transform: uppercase; }
.setup-snippet-heading button { flex: 0 0 auto; }
.setup-snippet pre { max-height: 34rem; overflow: auto; white-space: pre; }
.prose { max-width: 820px; }
.prose li { margin: 8px 0; }

.account-space { padding-top: 28px; }
.account-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.link-tabs { flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric span { display: block; color: var(--muted); }
.metric strong { display: block; margin-top: 4px; font-size: clamp(18px, 2.2vw, 24px); }
.summary-number { font-size: 18px; font-weight: 700; color: var(--ink) !important; }
.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.clean-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.compact-list { margin-top: 12px; }
.count-list { display: grid; gap: 8px; margin: 12px 0 0; }
.count-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.count-list dd { margin: 0; font-weight: 800; }
.access-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.access-list { position: sticky; top: 86px; }
.access-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.access-list span { display: block; color: var(--muted); font-size: 13px; }
.access-list a.active { color: #805000; }
.editor-panel > h1 { font-size: 30px; }
.access-subsection { margin-top: 24px; }
.subsection-heading, .client-card-head, .credential-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.client-card-list, .credential-card-list { display: grid; gap: 10px; }
.client-card, .credential-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.client-card { display: grid; gap: 8px; }
.client-card p { margin: 0; }
.field-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.identifier { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.oauth-registration-values code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.credential-card { display: grid; gap: 12px; background: #fff; }
.credential-card.has-draft, .client-card.has-draft { border-left: 4px solid var(--wm-orange); }
.draft-state { width: fit-content; margin: 0; padding: 3px 8px; border-radius: 999px; color: #714b00; background: #fff2c7; font-size: 13px; font-weight: 800; }
.credential-heading { min-width: 0; display: grid; gap: 4px; }
.credential-current-state { display: flex; }
.credential-card h3, .client-policy h3 { margin: 0 0 7px; font-size: 15px; }
.capability-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.capability-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.policy-label { display: inline-block; margin: 0 !important; color: var(--ink) !important; font-weight: 700; }
.policy-kind { margin: 4px 0 0 !important; font-size: 13px; }
.identifier-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.identifier-chips code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credential-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.credential-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credential-policy-grid section { min-width: 0; }
.technical-details summary { cursor: pointer; font-weight: 700; }
.technical-data { margin: 10px 0; }
.technical-data div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; }
.technical-data dd { min-width: 0; margin: 0; }
.credential-actions span { color: var(--muted); font-size: 13px; }
.future-editor { margin-top: 20px; border: 1px dashed #aeb9c2; border-radius: 7px; background: #fafbfc; }
.future-editor summary { padding: 12px 14px; cursor: pointer; font-weight: 800; }
.future-editor-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.compact-form-grid { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 9px 12px; align-items: center; }
.compact-form-grid textarea { min-height: 70px; padding-top: 7px; resize: vertical; }
.compact-permissions { margin: 4px 0; }
fieldset { border: 1px solid var(--line); border-radius: 7px; margin: 16px 0; padding: 12px; }
legend { font-weight: 700; padding: 0 6px; }
fieldset label { display: block; margin: 8px 0; }
.wallet-access-list { display: grid; gap: 12px; }
.wallet-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.wallet-card-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.wallet-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.wallet-id { color: var(--muted); font-size: 13px; }
.wallet-credentials, .transfer-limits { padding-top: 12px; border-top: 1px solid var(--line); }
.wallet-credentials h2, .transfer-limits h2 { font-size: 17px; }
.transfer-limit-values { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; }
.transfer-limit-values div { display: inline-flex; gap: 5px; align-items: baseline; }
.transfer-limit-values div:not(:last-child)::after { content: "·"; margin-left: 5px; color: var(--muted); }
.transfer-limit-values dt { color: var(--muted); font-size: 13px; }
.transfer-limit-values dd { margin: 0; font-weight: 800; }
.credential-list { display: grid; gap: 8px; }
.credential-list section {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(180px, 2fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
}
.credential-list span { color: var(--muted); font-size: 13px; }
.permission-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.permission-grid label, .limit-grid label { margin: 0; }
.limit-block { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--soft); }
.limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.future-credential-transfer-limits .limit-grid { grid-template-columns: max-content minmax(0, 1fr); align-items: center; }
.money-input { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.money-input input { min-width: 0; border: 0; min-height: 34px; padding: 0 8px; }
.money-input span { padding: 0 8px; color: var(--muted); }
.save-bar {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.save-bar span { color: var(--muted); }
.section-apply-form { display: grid; gap: 12px; margin-top: 16px; }
.credential-edit-fieldset { display: grid; gap: 10px; background: var(--soft); }
.credential-edit-fieldset > label { display: grid; gap: 5px; }
.credential-inline-form { min-width: 0; padding: 14px; border: 2px solid rgba(3, 108, 181, .4); border-radius: 8px; background: #fff; }
.credential-inline-form > .credential-edit-fieldset { margin: 0; border: 0; padding: 0; }
.editor-group { margin: 5px 0; background: #fff; }
.dependent-fields { min-width: 0; }
.client-choice-list { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.client-choice-list label { display: flex; gap: 7px; align-items: flex-start; margin: 0; }
.client-choice-list label > span { display: grid; min-width: 0; }
.client-choice-list small { color: var(--muted); }
.ip-rule-editor { display: grid; gap: 10px; }
.ip-rule-row { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border-bottom: 1px solid var(--line); }
.ip-rule-row label { min-width: 0; margin: 0; }
.field-validation-error { grid-column: 1 / -1; color: #9b1c1c; font-weight: 700; }
.inline-confirmation { display: grid; gap: 8px; }
.inline-confirmation p { margin: 0; }
.danger-button { border-color: #9b1c1c; background: #9b1c1c; color: white; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.draft-actions form, .credential-actions form { padding: 0; border: 0; background: transparent; }
.add-credential-button { display: inline-flex; margin-top: 14px; text-decoration: none; }
.exact-wallet-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.wallet-chip { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.wallet-chip.active { border-color: var(--wm-blue); background: var(--info); }
.wallet-chip small { color: var(--muted); }
.workspace-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 20px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.workspace-auth-summary { overflow-wrap: anywhere; }
.session-deadlines { min-width: 0; }
.session-deadlines p { margin: 4px 0; overflow-wrap: anywhere; }
.workspace-strip-summary, .workspace-auth-summary, .workspace-strip-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-width: 0; }
.workspace-strip-heading { display: flex; flex: 1 0 100%; justify-content: space-between; gap: 12px; align-items: center; }
.workspace-strip-summary span:not(.workspace-statuses) + span:not(.workspace-statuses)::before { content: "·"; margin-right: 12px; color: var(--muted); }
.workspace-statuses { color: #714b00; font-size: 13px; font-weight: 700; }
.workspace-strip-actions { grid-column: 1 / -1; justify-content: flex-end; }
.workspace-strip-actions form { margin: 0; }
.readiness-card { display: grid; align-content: start; gap: 10px; }
.readiness-card .readiness-value { font-size: 18px; font-weight: 800; }
.readiness-card p { margin: 0; }
.security-scope-note p { margin: 0; }
.apply-review { margin: 16px 0; }
.review-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.review-counts div { padding: 8px; border-radius: 5px; background: var(--soft); }
.review-counts dt { color: var(--muted); font-size: 13px; }
.review-counts dd { margin: 3px 0 0; font-size: 20px; font-weight: 800; }
.compatibility-note { padding: 10px; border-left: 3px solid var(--brand); background: var(--soft); }
.confirm-apply-form { margin-top: 12px; }
.button-small { min-height: 32px; padding-inline: 12px; }
.faq-list, .registration-sections, .technical-field-list, .connection-help { display: grid; gap: 12px; }
.registration-sections { margin: 0; padding: 0; list-style-position: inside; }
.registration-sections > li::marker { font-weight: 800; }
.faq-list details summary, .connection-help summary, .technical-details > summary { cursor: pointer; font-weight: 800; }
.faq-list details p, .connection-help details p { margin-bottom: 0; }
.review-wide.batch-review { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 18px; width: 100%; }
.review-wide .review-header { display: grid; gap: 6px; min-width: 0; }
.review-wide .review-header h1, .review-wide .review-header p { margin: 0; }
.review-wide .batch-step-list { display: grid; gap: 14px; width: 100%; min-width: 0; margin: 0; padding-left: 28px; }
.review-wide .review-step { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.review-step-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-step-heading h2 { min-width: 0; margin: 0; overflow-wrap: break-word; }
.review-wide .review-warning { width: 100%; padding: 14px; border: 1px solid var(--warning-line); border-radius: 7px; background: var(--warning); }
.review-wide .confirm-apply-form, .review-wide .step-up-draft-form { display: grid; justify-items: start; gap: 12px; width: 100%; margin: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 820px) {
  .hero-grid, .section-grid, .card-grid.two, .card-grid.three, .access-layout { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-list { position: static; }
  .credential-list section, .permission-grid, .limit-grid, .review-counts, .credential-policy-grid { grid-template-columns: 1fr; }
  .workspace-strip { grid-template-columns: 1fr; }
  .workspace-strip-actions { grid-column: 1; justify-content: flex-start; }
  .ip-rule-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-list { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 0 14px; max-height: 360px; overflow: auto; }
  .access-list h2 { grid-column: 1 / -1; margin-top: 10px; }
}

@media (max-width: 520px) {
  h1 { font-size: 32px; }
  .lead { font-size: 17px; }
  .hero-grid { padding: 36px 0; }
  .copy-field, .key-values, .mini-dl { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .account-tabs { overflow-x: auto; }
  .access-list, .compact-form-grid, .future-credential-transfer-limits .limit-grid { grid-template-columns: 1fr; }
  .subsection-heading, .client-card-head, .credential-card-head { align-items: stretch; flex-direction: column; }
  .save-bar { flex-direction: column; align-items: flex-start; }
  .ip-rule-row { grid-template-columns: 1fr; }
  .workspace-strip-summary span { width: auto; }
  .workspace-strip-summary span:not(.workspace-statuses) + span:not(.workspace-statuses)::before { content: none; }
  .workspace-strip-heading, .review-step-heading { align-items: flex-start; flex-direction: column; }
  .workspace-strip-actions, .review-wide .confirm-apply-form, .review-wide .step-up-draft-form { align-items: stretch; }
  .workspace-strip-actions .button, .review-wide .button { width: 100%; white-space: normal; }
  .review-wide .batch-step-list { padding-left: 22px; }
  .review-wide .review-step { padding: 12px; }
  .layout-fallback { align-items: flex-start; flex-direction: column; }
}

/* Journal identity and copy action remain intact inside the local scroll region. */
.admin-journal { min-width: 920px; }
.admin-journal td:nth-child(2), .admin-journal td:nth-child(2) a { white-space: nowrap; min-width: 8.5rem; overflow-wrap: normal; word-break: normal; }
.admin-journal td:nth-child(2) .button { white-space: nowrap; width: auto; min-width: 7rem; height: auto; line-height: 1.5; margin-top: .4rem; }
