* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; background: var(--page); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--page); font: 400 14px/1.45 Inter, sans-serif; }
button, input, select { font: inherit; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1:focus, h2:focus { outline: none; }
/* Focus moved by the page itself (a heading, a page section) is not drawn as a box; controls keep the ring above. */
[tabindex="-1"]:focus { outline: none; }
h1 { margin: 0; color: var(--navy); font: 800 32px/1.1 Montserrat, sans-serif; letter-spacing: -.01em; }
h2 { margin: 0; font: 600 16px/1.4 Inter, sans-serif; }
h3 { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; }
h4 { margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
p { margin: 0 0 12px; }
button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.secondary:hover { background: var(--tint); }
/* One disabled style for every button: neutral fill, muted text, no blue and no half transparency. The reason is stated in text beside the control. */
button:disabled, .primary:disabled, .secondary:disabled, .danger:disabled { cursor: default; background: var(--track); border-color: var(--track); color: var(--muted); }
/* Danger: the confirm of a destructive step (Disable, Delete, Decommission, Deactivate) is red, not the primary blue. */
.danger { color: var(--white); background: var(--bad); border-color: var(--bad); }
.danger:hover:not(:disabled) { background: #A21F1F; border-color: #A21F1F; }
.danger-text { color: var(--bad); }
.app-header { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: var(--navy); color: var(--white); }
.app-header :focus-visible { outline-color: var(--white); }
.header-start { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
/* The environment band (RXCON-58): full width, the first thing on the page. TEST is amber, PROD is red, the local preview is neutral; each also says it in words. */
.environment-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 7px 28px; font-size: 13px; line-height: 1.4; }
.environment-label { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.environment-banner[data-environment="test"] { background: var(--warn-dot); color: var(--ink); }
.environment-banner[data-environment="prod"] { background: var(--bad); color: var(--white); }
.environment-banner[data-environment="preview"] { background: var(--track); color: var(--ink); }
/* Account group in the header: Sign out and the access button side by side; a single Account button at phone width. */
.app-header { position: relative; }
.header-account { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-account:not(:has(.account-item)) { display: none; }
.account-panel { display: flex; align-items: center; gap: 8px; }
.account-toggle { display: none; align-items: center; min-height: 44px; padding: 8px 14px; background: transparent; border-color: var(--mist); color: var(--white); }
.account-toggle:hover, .account-item:hover { background: rgba(255, 255, 255, .14); }
.account-item { min-height: 40px; padding: 6px 14px; background: transparent; border-color: var(--mist); color: var(--white); }
.account-item:disabled { background: transparent; border-color: var(--mist); color: var(--mist); }
.brand-rule { height: 3px; flex-shrink: 0; background: linear-gradient(90deg, var(--navy), var(--blue) 60%, var(--sky)); }
.app-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); flex: 1; min-height: 0; }
.workspace-sidebar { background: var(--white); border-right: 1px solid var(--line); padding: 22px 12px; }
.workspace-nav { display: grid; gap: 22px; }
.nav-group > p { margin: 0 12px 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.nav-group > a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 10px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.nav-group > a:hover { background: var(--page); color: var(--navy); }
.nav-group > a[aria-current="page"] { background: var(--tint); color: var(--navy); font-weight: 600; }
.nav-group > a[aria-current="page"]::before { content: ''; position: absolute; width: 3px; top: 10px; bottom: 10px; left: 0; background: var(--sky); border-radius: 2px; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--icon); }
[aria-current="page"] > .nav-icon { color: var(--blue); }
.sidebar-note { margin: 36px 12px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.menu-toggle, .drawer-heading { display: none; }
main { min-width: 0; width: 100%; padding: 32px 36px 40px; }
.workspace-page { min-width: 0; width: 100%; max-width: 1440px; margin-inline: auto; }
.page-title { margin-bottom: 28px; }
.page-title > p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 76ch; }
.page-title > .workspace-updated { margin-top: 10px; color: var(--muted); font-size: 12px; }
.section-card { min-width: 0; max-width: 100%; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-intro { margin: 8px 0 22px; color: var(--muted); font-size: 14px; max-width: 76ch; }
.hint, .small-label { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hint { margin: 6px 0 0; }
.catalog-note { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.message, .catalog-warning, .draft-guard { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: var(--white); color: var(--ink); }
.message.error { border-left-color: var(--bad); }
/* A focused alert keeps one border: the focus ring is drawn inside the box instead of as a second outline that clashes with its neighbors. */
.message:focus, .message:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.message.error:focus, .message.error:focus-visible { outline-color: var(--bad); }
form > .message, fieldset + .message, .form-grid + .message { margin-top: 4px; }
.message p:last-child, .draft-guard p:last-child { margin-bottom: 0; }
#workspace-status { margin: 0 auto 16px; max-width: 1440px; }
#workspace-status:empty { display: none; }
.console-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 24px; align-items: start; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { margin-bottom: 20px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
input, select { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); }
input::placeholder { color: var(--muted); opacity: 1; }
input:disabled, select:disabled { background: var(--page); color: var(--muted); }
input[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--bad); }
.field-error { color: var(--ink); margin: 6px 0 0; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.target-editor { max-width: 1000px; }
.association-plan-editor { grid-column: 1 / -1; }
.association-plan-editor textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; resize: vertical; }
.setup-checklist { list-style: none; padding: 0; margin: 20px 0; }
.setup-checklist > li { overflow-wrap: anywhere; }
#setup-checklist > .actions { margin-top: 12px; }
.status-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; font-weight: 400; white-space: nowrap; }
.status-label::before { content: ''; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--dot-neutral); }
.status-label[data-tone="good"]::before { background: var(--good); }
.status-label[data-tone="warn"]::before { background: var(--warn-dot); }
.status-label[data-tone="bad"]::before { background: var(--bad); }
.status-compact::before { width: 8px; height: 8px; flex-basis: 8px; }
.record-list { min-width: 0; }
.record-row { min-width: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.record-row:first-child { border-top: 0; padding-top: 0; }
.record-row:last-child { padding-bottom: 0; }
.record-line { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 14px; }
.record-identity { min-width: 0; }
.record-identity h3, .record-identity p { overflow-wrap: anywhere; }
.record-row .actions { margin-top: 16px; }
.chain-history { max-width: 100%; }
.chain-history-versions { margin: 4px 0 16px; padding-left: 22px; font-size: 13.5px; }
.chain-history-versions li { padding: 3px 0; overflow-wrap: anywhere; }
.chain-history-controls, .chain-history-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chain-history-controls { margin: 12px 0; }
.chain-history-change { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.chain-history-change h4 { margin: 0 0 6px; }
.chain-history-values { font-size: 13.5px; }
.source-category { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.source-category h4 { margin-top: 0; }
.source-category ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.source-category li { padding: 4px 0; overflow-wrap: anywhere; }
.request-details { margin: 0; font-size: 13.5px; }
.request-details > div { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.request-details > div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
details { margin-top: 14px; }
summary { min-height: 40px; padding: 8px 0; color: var(--blue); font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
.empty-state { max-width: 72ch; margin: 0; padding: 16px 0; color: var(--muted); }
.fleet-summary { color: var(--muted); font-size: 13.5px; padding-bottom: 20px; }
.chain-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.chain-section { margin-bottom: 20px; }
.chain-section > h2 { margin-bottom: 20px; }
.destination-editor { margin-top: 16px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.check-label { display: flex; gap: 12px; align-items: center; min-height: 44px; margin-bottom: 14px; }
.check-label input { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); margin: 0; }
.value-options { margin-bottom: 20px; }
.value-options legend { font-weight: 500; margin-bottom: 8px; }
.value-options .check-label { font-weight: 400; margin: 0; }
.chain-review { margin-top: 20px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 16px; padding: 24px; background: var(--white); }
.chain-review h2 { margin-bottom: 20px; }
.chain-review .actions { margin-top: 20px; }
.run-review-dialog { width: min(760px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(90dvh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); overflow: hidden; flex-direction: column; }
.run-review-dialog[open] { display: flex; }
.run-review-dialog:not([open]) { display: none; }
.run-review-dialog::backdrop { background: rgb(0 0 0 / .45); }
.run-review-heading { padding: 20px 24px 12px; }
.run-review-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 24px 16px; overflow-wrap: anywhere; }
.run-review-destination { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.run-review-warning { margin: 0; padding: 10px 24px; color: var(--ink); }
.run-review-actions { flex: none; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--white); }
.job-result { margin: 0 auto 16px; max-width: 1440px; overflow-wrap: anywhere; }
.job-result-destination { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.job-destination { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.job-destination > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.job-destination > summary::before { content: '+'; color: var(--blue); }
.job-destination[open] > summary::before { content: '−'; }
.job-steps { list-style: none; padding: 0; margin: 18px 0 8px; counter-reset: job-step; }
.job-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); counter-increment: job-step; font-size: 13.5px; }
.job-steps li::before { content: counter(job-step); color: var(--muted); }
.step-attempt-context { grid-column: 2 / -1; min-width: 0; }
.step-attempt-context .request-details { font-size: 12.5px; }
.step-attempt-context .hint { margin: 0; }
.step-attempt-metadata { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.step-attempt-metadata > span { min-width: 0; overflow-wrap: anywhere; }
.step-attempt-metadata > span + span { border-left: 1px solid var(--line); padding-left: 12px; }
.step-attempt-context details { margin-top: 8px; }
.parameter-reference { margin: 16px 0; min-width: 0; }
.parameter-reference p { margin: 0 0 4px; font-weight: 500; }
.parameter-reference code { display: block; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.chain-readiness { margin: 16px 0; border-top: 1px solid var(--line); }
.readiness-checks { padding-left: 20px; font-size: 13.5px; }
.readiness-checks li { margin: 8px 0; overflow-wrap: anywhere; }
.job-filters { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.job-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px 16px; }
.job-filter-fields .field { margin-bottom: 0; min-width: 0; }
.job-filter-fields input, .job-filter-fields select { max-width: 100%; }
.job-filters > .actions { margin-top: 12px; }
.job-filter-notice { margin: 16px 0 0; }
.job-filter-notice p { margin-top: 0; }
.fleet-total { margin: 16px 0 4px; font-weight: 600; }
.matching-total { margin: 4px 0 12px; }
.job-recovery-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.job-recovery-counts > span { min-width: 0; overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { display: flex; min-width: 0; min-height: 184px; flex-direction: column; align-items: flex-start; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.kpi-card:hover { border-color: var(--chip-on-line); }
.kpi-label { color: var(--muted); font-size: 14px; }
.kpi-value { margin: 8px 0 10px; font: 800 64px/1.1 Montserrat, sans-serif; letter-spacing: -.02em; color: var(--navy); }
.kpi-value.kpi-word { font: 800 24px/1.2 Montserrat, sans-serif; margin-top: 22px; letter-spacing: -.01em; }
.kpi-value .status-label { font: inherit; white-space: normal; }
.kpi-caption { margin-top: auto; color: var(--muted); font-size: 12px; line-height: 1.4; }
.attention-list { margin-bottom: 20px; }
.attention-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--warn-dot); border-radius: 12px; background: var(--white); padding: 14px 18px; margin-bottom: 10px; }
.attention-item > .status-label { font-size: 0; gap: 0; }
.attention-item .text-link { margin-left: auto; }
.journey { margin-bottom: 24px; }
.journey-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; counter-reset: journey; }
.journey-steps li { counter-increment: journey; padding: 0 20px; border-left: 1px solid var(--line); }
.journey-steps li:first-child { padding-left: 0; border-left: 0; }
.journey-steps li::before { content: counter(journey); display: block; margin-bottom: 12px; color: var(--muted); font-size: 13.5px; }
.journey-link { font-weight: 600; font-size: 14px; }
.journey-steps p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.text-link { font-weight: 500; font-size: 13.5px; }
.latest-job { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); padding: 16px 0; }
.latest-job strong { font-weight: 500; overflow-wrap: anywhere; }
.latest-job:hover strong { color: var(--blue); text-decoration: underline; }
.latest-job > .hint { margin: 0; }
.integration-note { margin-top: 24px; padding: 18px 0 0; color: var(--muted); max-width: 86ch; }
.integration-note h2 { color: var(--ink); margin-bottom: 8px; }
.draft-savebar { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin: 24px auto 0; max-width: 1440px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; z-index: 3; }
.draft-guard { position: sticky; top: 16px; z-index: 4; max-width: 1440px; margin-inline: auto; }
.skeleton { position: relative; min-height: 56px; padding: 18px; border-radius: 12px; background: var(--track); color: var(--muted); }
.app-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; background: var(--navy); color: var(--white); }
.app-footer img { width: 116px; min-width: 100px; height: auto; }
.app-footer p { margin: 0; font-size: 13.5px; }
.app-footer p + p { margin-top: 5px; color: var(--mist); font-size: 12px; }
.support-content { max-width: 900px; }
.support-content details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.support-content details:first-child { padding-top: 0; }
.support-content details:last-child { border-bottom: 0; padding-bottom: 0; }
.support-content summary { cursor: pointer; font-weight: 700; }
.support-content li { margin-block: 10px; overflow-wrap: anywhere; }
.support-content li p { margin-bottom: 4px; }
.legacy-preview { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.legacy-preview .page-title { margin-top: 20px; }
.workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.request-panel, .operation-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.review-note { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 12px; }
.operation-summary { padding-bottom: 18px; }
.operation-summary strong { display: block; font-weight: 600; }
.operation-summary p, .operation-id { color: var(--muted); font-size: 13.5px; }
.operation-id { display: block; overflow-wrap: anywhere; }
.step-list { margin: 12px 0; padding-left: 22px; }
.step-list li { padding: 10px 0; }
.step-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.step-list p, .step-status { color: var(--muted); font-size: 13.5px; }
.history { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.history-button:hover, .history-button[aria-pressed="true"] { background: var(--tint); }
.history-button strong, .history-button span { display: block; overflow-wrap: anywhere; }
.history-button span { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.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; }
.skip-link { position: absolute; top: -80px; left: 12px; padding: 10px 14px; background: var(--white); color: var(--navy); z-index: 20; border-radius: 8px; }
.skip-link:focus { top: 8px; }
@media (max-width: 1279px) {
  main { padding: 28px 24px 36px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-split, .chain-layout { grid-template-columns: minmax(0, 1fr); }
  .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .journey-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .latest-job { grid-template-columns: 150px minmax(0, 1fr); }
  .latest-job > .hint { grid-column: 2; }
}
@media (max-width: 1023px) {
  .app-layout { display: block; }
  .environment-banner { padding-inline: 18px; }
  .app-header { padding-inline: 18px; }
  .header-start { gap: 14px; }
  .menu-toggle { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 4px; background: transparent; border-color: var(--mist); color: var(--white); font-size: 22px; }
  .workspace-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: calc(100vw - 48px); transform: translateX(-100%); visibility: hidden; overflow-y: auto; z-index: 12; }
  .workspace-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding-inline: 12px; }
  .drawer-heading button { min-height: 40px; }
  .navigation-backdrop { position: fixed; inset: 0; background: var(--ink); opacity: .35; z-index: 11; }
  body.drawer-open { overflow: hidden; }
}
@media (max-width: 599px) {
  .run-review-heading { padding: 16px 16px 8px; }
  .run-review-scroll { padding: 0 16px 12px; }
  .run-review-warning { padding: 8px 16px; }
  .run-review-actions { padding: 12px 16px; }
  main { padding: 24px 16px 28px; }
  .environment-banner { padding: 5px 12px; font-size: 12px; }
  .environment-scope { display: none; }
  .app-header { padding-inline: 12px; }
  .header-start { gap: 8px; }
  .brand { font-size: 16px; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .account-toggle { display: inline-flex; }
  .account-panel { display: none; position: absolute; z-index: 25; top: calc(100% + 4px); right: 12px; flex-direction: column; align-items: stretch; min-width: 200px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--navy); box-shadow: 0 8px 24px rgba(10, 30, 60, .3); }
  .account-panel[data-open="true"] { display: flex; }
  .account-item { min-height: 44px; }
  .page-title { margin-bottom: 24px; }
  h1 { font-size: 32px; overflow-wrap: anywhere; }
  .section-card { padding: 20px; }
  .kpi-grid { gap: 12px; }
  .kpi-card { min-height: 184px; padding: 20px 16px; }
  .kpi-value { font-size: 52px; }
  .kpi-value .status-label { font-size: 22px; }
  .kpi-label { font-size: 13.5px; }
  .journey-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .journey-steps li, .journey-steps li:nth-child(3) { padding: 0 0 0 16px; border-left: 2px solid var(--line); }
  .journey-steps li::before { margin-bottom: 6px; }
  .form-grid, .workspace { grid-template-columns: minmax(0, 1fr); }
  .record-line { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .chain-history-controls, .chain-history-values { grid-template-columns: minmax(0, 1fr); }
  .request-details > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .latest-job { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .latest-job > .hint { grid-column: auto; }
  .job-steps li { grid-template-columns: 18px minmax(0, 1fr); }
  .job-steps li > .status-label { grid-column: 2; }
  .app-footer { flex-direction: column; align-items: flex-start; padding: 24px 18px; gap: 16px; }
}
.fleet-card { margin-bottom: 24px; }
.field-label-row { display: flex; align-items: center; gap: 8px; height: 20px; margin-bottom: 6px; }
.field-label-row > label { margin: 0; line-height: 20px; }
/* The "?" is a 24px target (WCAG 2.5.8 minimum) that overhangs the 20px label row by 2px each side, so it never reaches the input below
   and neighboring inputs stay aligned with plain labels. */
.help-toggle { flex: 0 0 auto; box-sizing: border-box; width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin-block: -2px;
  padding: 0; border-radius: 50%; font-size: 13px; line-height: 1; }
.field-label-row + .help-panel { margin-top: 14px; }
.help-panel { margin: 0 0 12px; }
.help-panel ol { margin: 0 0 10px; padding-left: 22px; }
.step-checklist { margin: 0 0 12px; padding-left: 22px; }
.step-checklist li { margin-bottom: 6px; }
.step-reason { display: block; margin-top: 4px; color: var(--ink); font-size: 13.5px; line-height: 1.45; max-width: 76ch; }
.fleet-card > h2 { margin-top: 0; }
.checkbox-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.checkbox-group > legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.checkbox-field input { width: 22px; min-width: 22px; height: 22px; min-height: 22px; margin-top: 2px; flex: 0 0 22px; }
.checkbox-field label { min-width: 0; overflow-wrap: anywhere; }
.fleet-card textarea { display: block; width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.fleet-card code, .message code { overflow-wrap: anywhere; word-break: break-word; }
.record-row form, .record-row .message { margin-top: 16px; }
.logo-preview-slot { margin-top: 8px; }
.logo-preview { display: block; max-width: 160px; max-height: 80px; width: auto; height: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.space-list { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.space-list > legend { padding: 0; font-weight: 600; margin-bottom: 8px; }
.space-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 0 16px; align-items: end; margin-bottom: 12px; }
.space-row .field { margin-bottom: 0; }
.space-row > button { align-self: end; }
@media (max-width: 640px) { .space-row { grid-template-columns: minmax(0, 1fr); gap: 12px; } .space-row > button { justify-self: start; } }
.setup-progress { margin: 0 0 16px; font-weight: 600; }
.setup-steps { list-style: none; margin: 0 0 16px; padding: 0; }
.setup-step { padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.setup-step:first-child { border-top: 0; padding-top: 0; }
.setup-step-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.setup-step-heading h3 { margin: 0; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.setup-step-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-weight: 600; font-size: 13.5px; }
.setup-step-body { margin-left: 40px; min-width: 0; }
.setup-step-body > p { margin: 8px 0 12px; }
.setup-step-body .actions .hint { margin: 0; }
.next-step-title { margin: 0 0 4px; font-weight: 600; }
.fleet-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.fleet-table .status-label { white-space: normal; align-items: flex-start; }
.fleet-table th, .fleet-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.fleet-table td:first-child { overflow-wrap: anywhere; }
.fleet-table thead th { border-top: 0; font-weight: 600; color: var(--muted); }
@media (max-width: 599px) { .setup-step-body { margin-left: 0; } .fleet-table th, .fleet-table td { padding-right: 8px; font-size: 13.5px; } }
/* Search picker: a search box over a short scrolling list; the chosen item shows read only with a Change button. */
.search-picker { grid-column: 1 / -1; min-width: 0; }
.picker-options { list-style: none; margin: 6px 0 0; padding: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.picker-option { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 4px 8px; border-top: 1px solid var(--line); min-width: 0; }
.picker-option:first-child { border-top: 0; }
.picker-options > .hint { padding: 10px 12px; }
.picker-choice { min-height: 38px; padding: 6px 8px; border: 0; background: transparent; color: var(--navy); text-align: left; overflow-wrap: anywhere; }
.picker-choice:hover, .picker-choice:focus-visible { text-decoration: underline; }
.picker-option .hint { overflow-wrap: anywhere; }
.picker-selected { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; min-width: 0; }
.picker-selected-name { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.picker-selected .request-details { margin-bottom: 10px; }
.derived-id { grid-column: 1 / -1; min-width: 0; }
.derived-id input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* App releases: stage cards and target rows */
.stage-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.stage-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; height: auto; padding: 12px 14px; text-align: left; font-weight: 400; overflow-wrap: anywhere; }
.stage-card .stage-name { font-weight: 600; }
.stage-card .hint { margin: 0; }
.stage-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--tint); }
.target-row { margin: 0 0 16px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.target-row > legend { padding: 0; font-weight: 600; }
.plain-list { margin: 8px 0 0; padding: 0; list-style: none; }
.plain-list > li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }

.skeleton-shell { padding: 0; background: none; }
[data-skeleton] { border-radius: 12px; background: var(--track); }
[data-skeleton="page-header"] { height: 56px; width: min(28rem, 60%); margin-bottom: 18px; }
[data-skeleton="block"] { height: 96px; margin-bottom: 12px; }
@media (prefers-reduced-motion: no-preference) { [data-skeleton] { animation: skeleton-pulse 1.4s ease-in-out infinite; } }
@keyframes skeleton-pulse { 50% { opacity: .55; } }
