:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #697386;
    --line: #dfe4ec;
    --surface: #ffffff;
    --canvas: #f4f6f9;
    --navy: #142238;
    --blue: #245fa9;
    --blue-soft: #e8f1fc;
    --green: #18794e;
    --green-soft: #e6f6ee;
    --amber: #9a6700;
    --amber-soft: #fff4ce;
    --red: #b42318;
    --red-soft: #feeceb;
    --violet: #6941c6;
    --violet-soft: #f1edff;
    --shadow-sm: 0 1px 2px rgb(18 32 56 / 5%);
    --shadow-md: 0 10px 28px rgb(18 32 56 / 8%);
    --panel-padding: 22px;
    --panel-padding-mobile: 18px;
    --form-gap: 20px;
    --select-control-height: 40px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgb(47 111 187 / 40%);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

#main-content {
    padding-bottom: 40px;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    color: #fff;
    background: var(--navy);
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    box-shadow: 0 4px 16px rgb(15 27 45 / 18%);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    display: block;
    flex: 0 0 38px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    letter-spacing: .01em;
}

.brand small {
    margin-top: 1px;
    color: #b9c5d6;
    font-size: 12px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #c9d4e4;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 120ms ease, background-color 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
    background: rgb(255 255 255 / 9%);
}

.nav-link.is-active {
    color: #fff;
    background: #2b5f9c;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}

.primary-navigation {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.header-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid rgb(255 255 255 / 16%);
}

.header-account span,
.header-account strong,
.header-account small {
    display: block;
}

.header-account strong {
    max-width: 150px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account small {
    max-width: 180px;
    overflow: hidden;
    color: #b9c5d6;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account form {
    margin: 0;
}

.header-logout {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.header-logout:hover,
.header-logout:focus-visible {
    background: rgb(255 255 255 / 9%);
}

.flash-message,
.validation-summary {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #9fcdb8;
    border-radius: 10px;
    color: #12613f;
    background: var(--green-soft);
}

.validation-summary {
    border-color: #f0c4c0;
    color: #8f231b;
    background: #fff8f7;
}

.validation-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.operations-flash-stack {
    display: grid;
    gap: 12px;
    margin: 24px 0 20px;
}

.operations-flash-stack > .flash-message,
.operations-flash-stack > .validation-summary {
    margin: 0;
}

.page-heading,
.detail-heading,
.page-header {
    padding: 44px 0 24px;
}

.page-heading,
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-header__content {
    max-width: 840px;
}

.page-header__content .back-link {
    margin-bottom: 16px;
}

.page-header__aside {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 12px;
}

.page-header__status,
.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.page-header__summary {
    margin-top: 12px;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 7px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

h2 {
    letter-spacing: -.012em;
}

.page-description,
.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
}

.record-count {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.operations-context {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #cfd8e5;
    border-radius: 12px;
    background: #eef3f9;
}

.operations-context > div {
    min-width: 0;
    padding: 14px 18px;
    border-right: 1px solid #cfd8e5;
}

.operations-context > div:last-child {
    border-right: 0;
}

.operations-context span,
.operations-context strong,
.operations-context small {
    display: block;
}

.operations-context span {
    margin-bottom: 3px;
    color: #536074;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.operations-context strong {
    font-size: 16px;
}

.operations-context small {
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: var(--muted);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.section-intro {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.section-intro h2 {
    margin: 0;
    font-size: 20px;
}

.summary-card {
    position: relative;
    min-width: 0;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid #8b95a6;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.summary-card--info {
    border-top-color: var(--blue);
}

.summary-card--success {
    border-top-color: var(--green);
}

.summary-card--warning {
    border-top-color: #d6a321;
}

.summary-card--danger {
    border-top-color: var(--red);
}

.summary-card__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.summary-card__value {
    display: block;
    margin: 7px 0 4px;
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.summary-card__description {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
}

.summary-card__link {
    width: fit-content;
    margin-top: auto;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.summary-card__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.content-grid--wide-leading {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr);
}

.metadata-list {
    margin: 0;
}

.metadata-list > div {
    display: grid;
    grid-template-columns: minmax(130px, .65fr) minmax(0, 1.35fr);
    gap: 18px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}

.metadata-list > div:last-child {
    border-bottom: 0;
}

.metadata-list dt {
    margin: 0;
}

.provider-health-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.provider-health-list article:last-child {
    border-bottom: 0;
}

.provider-health-list article > div span,
.provider-health-list article p,
.provider-health-list article small {
    display: block;
    color: var(--muted);
}

.provider-health-list article p,
.provider-health-list article small {
    grid-column: 1 / -1;
    margin: 0;
}

.dashboard-generated {
    display: grid;
    justify-items: end;
    gap: 7px;
    color: var(--muted);
}

.dashboard-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-card,
.metric-grid article {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgb(18 32 56 / 5%);
}

.dashboard-card span,
.metric-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.dashboard-card strong,
.metric-grid strong {
    display: block;
    margin: 5px 0 3px;
    font-size: 25px;
    font-variant-numeric: tabular-nums;
}

.dashboard-card small,
.warning-item small {
    color: var(--muted);
}

.dashboard-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
    gap: 20px;
}

.warning-list {
    display: grid;
    gap: 0;
}

.warning-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--line);
}

.warning-item:last-child {
    border-bottom: 0;
}

.warning-item > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-item p {
    margin: 7px 0 0;
}

.warning-information {
    border-left-color: var(--blue);
}

.warning-warning {
    border-left-color: var(--amber);
}

.warning-critical {
    border-left-color: var(--red);
}

.dashboard-evidence-grid {
    grid-template-columns: 1fr;
}

.dashboard-evidence-grid > div,
.dashboard-evidence-grid > div:nth-child(3n),
.dashboard-evidence-grid > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-evidence-grid > div:last-child {
    border-bottom: 0;
}

.metric-grid {
    margin: 0;
    padding: 20px;
}

.metric-grid article {
    box-shadow: none;
}

.metric-grid--page {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 28px;
    padding: 0;
}

.metric-grid--page .summary-card {
    min-height: 150px;
}

.dashboard-table-card {
    margin-bottom: 40px;
}

.table-card,
.detail-card,
.empty-state {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgb(18 32 56 / 5%);
}

.detail-card {
    scroll-margin-top: 96px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
    font-size: 13px;
}

.compact-table {
    min-width: 860px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table-empty {
    padding: 30px 20px;
    color: var(--muted);
    text-align: center;
}

th {
    color: #536074;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fafcff;
}

.event-link,
.back-link {
    color: var(--blue);
    font-weight: 750;
    text-underline-offset: 3px;
}

.button,
button {
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.button:hover {
    filter: brightness(.97);
}

.button-primary {
    color: #fff;
    background: var(--blue);
}

.button-secondary {
    border-color: #cdd4df;
    color: #344054;
    background: #fff;
}

.button-danger {
    border-color: #e8aaa5;
    color: var(--red);
    background: var(--red-soft);
}

.button-row,
.actions-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-row {
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-audit {
    margin-top: 24px;
}

.actions-cell form,
.button-row form {
    margin: 0;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.text-danger {
    color: var(--red);
}

.timestamp {
    color: #4d586b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.identifier,
.hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .92em;
}

.source-label {
    font-weight: 700;
    text-transform: capitalize;
}

.number-column {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.status-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.status-received {
    color: var(--blue);
    background: var(--blue-soft);
}

.status-processing {
    color: var(--amber);
    background: var(--amber-soft);
}

.status-completed {
    color: var(--green);
    background: var(--green-soft);
}

.status-failed {
    color: var(--red);
    background: var(--red-soft);
}

.status-default {
    color: #596579;
    background: #edf0f4;
}

.status-neutral {
    color: #596579;
    background: #edf0f4;
}

.status-info {
    color: var(--blue);
    background: var(--blue-soft);
}

.status-success {
    color: var(--green);
    background: var(--green-soft);
}

.status-warning {
    color: var(--amber);
    background: var(--amber-soft);
}

.status-danger {
    color: var(--red);
    background: var(--red-soft);
}

.status-approved,
.status-ready,
.status-resolved,
.status-synchronized,
.status-executed,
.status-reconciled,
.status-matched,
.status-active {
    color: var(--green);
    background: var(--green-soft);
}

.status-pending,
.status-incomplete,
.status-blocked,
.status-disabled {
    color: var(--amber);
    background: var(--amber-soft);
}

.status-claimed,
.status-executing,
.status-authorization_required,
.status-drift_detected {
    color: var(--blue);
    background: var(--blue-soft);
}

.status-cancelled {
    color: #596579;
    background: #edf0f4;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
}

.empty-state-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 800;
}

.empty-state h2 {
    margin-bottom: 6px;
    font-size: 18px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.empty-state--compact h2 {
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 14px;
}

.empty-state--compact p {
    margin: 0;
}

.empty-state__actions {
    margin-top: 16px;
}

.pagination {
    padding: 18px 0 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.table-card > .pagination {
    padding-right: var(--panel-padding);
    padding-bottom: var(--panel-padding);
    padding-left: var(--panel-padding);
}

.pagination > :last-child {
    text-align: right;
}

.pagination p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.pagination-link {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid #cdd4df;
    border-radius: 8px;
    color: #344054;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-link:not(.disabled):hover {
    border-color: #8da9cb;
    color: var(--blue);
}

.pagination-link.disabled {
    color: #a0a8b5;
    background: #f1f3f6;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
    font-size: 13px;
}

.detail-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.detail-title-row h1 {
    margin-bottom: 0;
}

.detail-card {
    margin-bottom: 20px;
}

.section-heading {
    padding: 18px var(--panel-padding);
    border-bottom: 1px solid var(--line);
}

.section-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.action-panel {
    border-color: #b8cae1;
    box-shadow: inset 4px 0 0 var(--blue), var(--shadow-sm);
}

.action-panel__body {
    padding: var(--panel-padding);
}

.action-panel__body--sections {
    padding: 0;
}

.action-panel__body--sections > .validation-summary {
    margin: var(--panel-padding);
}

.action-panel__body > :first-child {
    margin-top: 0;
}

.action-panel__body > :last-child {
    margin-bottom: 0;
}

.operations-panel__body {
    padding: var(--panel-padding);
}

.operations-panel__body > :first-child,
.operations-action-section > :first-child {
    margin-top: 0;
}

.operations-panel__body > :last-child,
.operations-action-section > :last-child {
    margin-bottom: 0;
}

.operations-action-section {
    padding: var(--panel-padding);
}

.operations-action-section + .operations-action-section {
    border-top: 1px solid var(--line);
}

.operations-action-section h3 {
    margin: 0 0 16px;
    font-size: 14px;
}

.operations-form-stack {
    display: grid;
    gap: var(--form-gap);
}

.operations-action-stack {
    display: grid;
    gap: var(--form-gap);
}

.operations-action-stack > * {
    margin-top: 0;
    margin-bottom: 0;
}

.operations-form-stack + .operations-form-stack {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.operations-form-group {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.reference-candidate-selector,
.customer-candidate-selector {
    display: grid;
    gap: var(--form-gap);
}

.reference-candidate-selector__status,
.customer-candidate-selector__status {
    color: var(--muted);
    font-size: 12px;
}

.reference-candidate-selector__more,
.customer-candidate-selector__more {
    justify-self: start;
}

.reference-candidate-empty,
.customer-candidate-empty {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid #e4b55d;
    border-radius: 8px;
    color: #69420b;
    background: #fff8e8;
}

.reference-candidate-empty a,
.customer-candidate-empty a {
    color: var(--blue);
    font-weight: 750;
}

.inline-empty-state {
    padding: 28px 22px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--form-gap);
    padding: var(--panel-padding);
}

.form-grid label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.form-grid .form-wide {
    grid-column: span 2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cdd4df;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

select {
    height: var(--select-control-height);
    min-height: var(--select-control-height);
    padding-top: 0;
    padding-bottom: 0;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgb(36 95 169 / 14%);
}

.checkbox-field {
    display: flex !important;
    align-items: center;
    align-self: end;
    flex-direction: row;
    gap: 9px !important;
    min-height: 42px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    flex: 0 0 17px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--blue);
}

input[type="radio"] {
    border-radius: 50%;
}

.operations-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.form-grid .operations-checkbox-row {
    display: flex;
    align-self: end;
    gap: 9px;
    min-height: 42px;
}

.operations-checkbox-row input {
    margin-top: 1px;
}

.field-help {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.scheduling-time {
    display: grid;
    gap: 2px;
}

.scheduling-time__local {
    font-weight: 700;
}

.operations-form-help {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-actions + .operations-form-help {
    margin: -8px var(--panel-padding) var(--panel-padding);
}

.operations-panel__body .form-actions + .operations-form-help,
.form-actions--flush + .operations-form-help {
    margin: 12px 0 0;
}

.field-error {
    color: var(--red);
    font-weight: 650;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 var(--panel-padding) var(--panel-padding);
}

.operations-panel__body .form-actions,
.operations-action-section .form-actions,
.compact-action-panel .form-actions {
    margin-top: 18px;
    padding: 0;
}

.operations-form-stack .form-actions {
    margin-top: 0;
    padding: 0;
}

.form-actions--flush {
    margin-top: 0 !important;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background: linear-gradient(145deg, #0f1b2d 0%, var(--navy) 55%, #1d4777 100%);
}

.auth-shell {
    width: min(100%, 460px);
}

.auth-brand {
    width: fit-content;
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.auth-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand small {
    color: #b9c5d6;
}

.auth-card {
    padding: 30px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgb(4 13 27 / 36%);
}

.auth-card .flash-message,
.auth-card .validation-summary {
    margin: 0 0 22px;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading h1 {
    font-size: 27px;
}

.auth-heading p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 750;
}

.auth-form .button {
    width: 100%;
    min-height: 42px;
}

.auth-footer {
    margin: 20px 0 0;
    text-align: center;
}

.auth-footer a {
    color: var(--blue);
    font-weight: 750;
    text-underline-offset: 3px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 15px;
}

.section-heading p {
    margin-top: 3px;
    font-size: 12px;
}

.section-heading--subsection {
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.section-heading--subsection h3 {
    margin: 0;
    font-size: 14px;
}

.detail-card > p,
.detail-card > ul {
    margin: 18px var(--panel-padding);
}

.detail-card > .flash-message,
.detail-card > .validation-summary {
    margin: 18px var(--panel-padding);
}

.reference-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 var(--panel-padding) var(--panel-padding);
}

.reference-card__actions > * {
    margin: 0;
}

.metadata-card,
.compact-action-panel {
    margin: var(--panel-padding);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
}

.metadata-card > p,
.metadata-card > ul {
    margin: 16px var(--panel-padding);
}

.compact-action-panel {
    display: grid;
    gap: 16px;
    padding: var(--panel-padding);
    border-color: #b8cae1;
    box-shadow: inset 4px 0 0 var(--blue);
}

.compact-action-panel h3,
.compact-action-panel p {
    margin: 0;
}

.compact-action-panel form {
    margin: 0;
}

.detail-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list > div {
    min-width: 0;
    padding: 16px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-list > div:nth-child(2n) {
    border-right: 0;
}

.detail-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.provider-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-action-row form {
    margin: 0;
}

.metadata-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metadata-grid > div {
    min-width: 0;
    padding: 18px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metadata-grid > div:nth-child(3n) {
    border-right: 0;
}

.metadata-grid > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.metadata-grid .metadata-wide {
    grid-column: span 3;
    border-right: 0;
}

.metadata-secondary dd,
.identifier-secondary,
.hash {
    color: #596579;
    font-weight: 600;
}

.hash {
    word-break: break-all;
}

dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.payload-output,
.error-output {
    max-height: 620px;
    margin: 0;
    overflow: auto;
    padding: 22px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.payload-output {
    color: #d8e2f0;
    background: #101a2a;
}

.error-card {
    border-color: #f0c4c0;
}

.error-output {
    color: #8f231b;
    background: #fff8f7;
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 28px, 1440px);
    }

    .site-header {
        position: static;
    }

    .header-inner {
        min-height: 64px;
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 0 10px;
        gap: 10px;
    }

    .brand small {
        display: none;
    }

    .primary-navigation {
        width: 100%;
        padding-bottom: 3px;
    }

    .header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .header-account {
        justify-content: space-between;
        padding: 8px 0 0;
        border-top: 1px solid rgb(255 255 255 / 16%);
        border-left: 0;
    }

    .nav-link {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .page-heading,
    .detail-title-row,
    .page-header {
        align-items: start;
        flex-direction: column;
    }

    .page-header__aside,
    .page-header__status,
    .page-header__actions {
        justify-items: start;
        justify-content: flex-start;
    }

    .dashboard-generated {
        justify-items: start;
    }

    .dashboard-grid,
    .metric-grid,
    .dashboard-two-column,
    .summary-grid,
    .content-grid,
    .content-grid--wide-leading,
    .operations-context {
        grid-template-columns: 1fr;
    }

    .operations-context > div {
        border-right: 0;
        border-bottom: 1px solid #cfd8e5;
    }

    .operations-context > div:last-child {
        border-bottom: 0;
    }

    .page-heading,
    .detail-heading {
        padding-top: 30px;
    }

    .metadata-grid {
        grid-template-columns: 1fr;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .detail-list > div,
    .detail-list > div:nth-child(2n),
    .detail-list > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .detail-list > div:last-child {
        border-bottom: 0;
    }

    .metadata-grid > div,
    .metadata-grid > div:nth-child(3n),
    .metadata-grid > div:nth-last-child(-n + 3) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metadata-grid > div:last-child {
        border-bottom: 0;
    }

    .metadata-grid .metadata-wide {
        grid-column: span 1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .action-panel__body,
    .operations-panel__body,
    .operations-action-section,
    .form-grid,
    .compact-action-panel {
        padding-right: var(--panel-padding-mobile);
        padding-left: var(--panel-padding-mobile);
    }

    .metadata-card,
    .compact-action-panel,
    .detail-card > p,
    .detail-card > ul,
    .detail-card > .flash-message,
    .detail-card > .validation-summary {
        margin-right: var(--panel-padding-mobile);
        margin-left: var(--panel-padding-mobile);
    }

    .reference-card__actions {
        padding-right: var(--panel-padding-mobile);
        padding-left: var(--panel-padding-mobile);
    }

    .form-actions {
        padding-right: var(--panel-padding-mobile);
        padding-left: var(--panel-padding-mobile);
    }

    .form-actions .button,
    .operations-panel__body > .button,
    .operations-action-section > .button {
        width: 100%;
    }

    .form-grid .form-wide {
        grid-column: span 1;
    }

    .section-heading-actions,
    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .section-actions {
        justify-content: flex-start;
    }

    .metadata-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
    }

    .table-card > .pagination {
        padding-right: var(--panel-padding-mobile);
        padding-bottom: var(--panel-padding-mobile);
        padding-left: var(--panel-padding-mobile);
    }

    .pagination p {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .auth-card {
        padding: 24px 20px;
    }
}
