:root {
  color-scheme: light;
  --ink: #17202f;
  --muted: #667085;
  --line: #e3e7ee;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --brand: #155eef;
  --brand-dark: #0b46bd;
  --success: #067647;
  --warning: #b54708;
  --danger: #b42318;
  --radius: 7px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .52; }
button:disabled { color: #98a2b3 !important; background: #f2f4f7 !important; border-color: #e4e7ec !important; box-shadow: none !important; transform: none !important; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: #f1f4f8; }
.login-panel { width: min(420px, 100%); padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgb(20 35 60 / 8%); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 6px; color: #fff; background: var(--ink); font-size: 21px; font-weight: 800; }
.brand-mark.small { width: 34px; height: 34px; margin: 0; font-size: 16px; }
.brand-mark .brand-logo { display: block; width: 100%; height: 100%; max-width: 48px; max-height: 48px; object-fit: contain; }
.brand-mark.small .brand-logo { max-width: 34px; max-height: 34px; }
.eyebrow { margin: 0 0 8px; color: #667085; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.login-panel h1, .topbar h1, .section-heading h2, .dialog-heading h2 { margin: 0; letter-spacing: 0; }
.login-panel h1 { font-size: 28px; }
.login-copy { margin: 12px 0 28px; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #cfd5df; border-radius: 5px; }
.input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.input-with-unit input { border-radius: 5px 0 0 5px; }
.input-with-unit span { min-height: 42px; display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); background: #f2f4f7; border: 1px solid #cfd5df; border-left: 0; border-radius: 0 5px 5px 0; font-size: 12px; font-weight: 650; }
textarea { resize: vertical; }
.form-error { margin: 0; color: var(--danger); font-size: 13px; line-height: 1.5; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; overflow-y: auto; color: #d0d5dd; background: #17202f; }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { color: #fff; font-size: 15px; }
.brand-lockup span { margin-top: 2px; font-size: 11px; }
#app-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; padding: 0 12px; color: #c7ced8; text-align: left; text-decoration: none; background: transparent; border: 0; border-radius: 5px; }
.nav-item:hover { color: #fff; background: rgb(255 255 255 / 7%); }
.nav-item.active { color: #fff; background: #2b3648; font-weight: 650; }
.sidebar-footer { margin-top: auto; display: grid; gap: 8px; padding: 16px 8px 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.sidebar-footer a, .text-button { color: #b8c0cc; font-size: 12px; text-decoration: none; }
.text-button { padding: 0; text-align: left; background: none; border: 0; }
.sidebar-footer a:hover, .text-button:hover { color: #fff; }

.workspace { min-width: 0; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 56px); background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 22px; }
.session-user { color: var(--muted); font-size: 12px; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 38px clamp(24px, 4vw, 56px) 64px; }
.view { display: none; }
.view.active { display: block; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading.compact { align-items: center; margin-bottom: 14px; }
.section-heading h2 { font-size: 18px; }
.section-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.setup-flow-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: -8px 0 20px; padding: 13px 16px; border: 1px solid #cbdcf7; border-radius: var(--radius); background: #f5f9ff; color: #475467; font-size: 12px; line-height: 1.5; }
.setup-flow-note strong { color: #172b4d; }
.setup-flow-note span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.setup-flow-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4f8df7; }
.setup-flow-note span + span::before { box-shadow: -15px 0 0 -2px #98a2b3; }
.setup-flow-note small { width: 100%; color: var(--muted); }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 38px; padding: 0 14px; border-radius: 5px; border: 1px solid transparent; font-weight: 650; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button-link { display: inline-flex; align-items: center; text-decoration: none; }
.button:active { transform: scale(.98); }
.button.primary { color: #fff; background: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.subtle { color: #344054; background: #fff; border-color: #d0d5dd; }
.button.subtle:hover { border-color: #98a2b3; background: #f9fafb; }
.button.danger { color: var(--danger); background: #fff; border-color: #f0b4ad; }
.button.full { width: 100%; }
.button.small { min-height: 30px; padding: 0 10px; font-size: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.metric { min-height: 116px; padding: 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-top: 13px; font-size: 28px; line-height: 1; }
.metric span { color: var(--muted); font-size: 12px; }
.workflow-band { display: flex; align-items: center; gap: 14px; margin: 20px 0 34px; padding: 16px 20px; color: #475467; background: #edf3ff; border: 1px solid #d4e2ff; border-radius: var(--radius); font-size: 12px; font-weight: 650; }
.workflow-band i { height: 1px; flex: 1; background: #a9c3fa; }
.publish-note { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 14px 18px; color: #475467; background: #edf3ff; border: 1px solid #d4e2ff; border-radius: var(--radius); font-size: 12px; }
.publish-note strong { color: var(--ink); }
.publish-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
.table-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; }
.table-section > .section-heading { padding: 20px 20px 0; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th { padding: 11px 14px; color: #667085; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; overflow: hidden; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fbfcfe; }
.cell-title { display: block; overflow: hidden; color: #273244; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.cell-subtitle { display: block; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.model-cell { min-width: 0; }
.model-inline-meta { display: inline-block; max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; vertical-align: top; white-space: nowrap; }
.model-table { min-width: 1280px; }
.model-table th:first-child, .model-table td:first-child { width: 25%; }
.model-table th:last-child, .model-table td:last-child { width: 430px; overflow: visible; }
.pricing-table th:first-child, .pricing-table td:first-child { width: 22%; }
.pricing-plaza-table { min-width: 1180px; }
.pricing-plaza-table th:nth-child(2), .pricing-plaza-table td:nth-child(2),
.pricing-plaza-table th:nth-child(3), .pricing-plaza-table td:nth-child(3),
.pricing-plaza-table th:nth-child(4), .pricing-plaza-table td:nth-child(4) { width: 13%; }
.pricing-plaza-table th:nth-child(5), .pricing-plaza-table td:nth-child(5) { width: 104px; }
.pricing-plaza-table th:nth-child(6), .pricing-plaza-table td:nth-child(6) { width: 25%; }
.pricing-plaza-table th:last-child, .pricing-plaza-table td:last-child { width: 220px; overflow: visible; }
.pricing-source-group + .pricing-source-group { margin-top: 16px; }
.pricing-source-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.pricing-source-heading strong { display: block; color: #1d2939; font-size: 14px; }
.pricing-source-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.pricing-source-heading > .status { display: inline-flex; margin-top: 0; white-space: nowrap; }
.pricing-breakdown, .pricing-actual-breakdown { display: grid; gap: 4px; min-width: 0; }
.pricing-breakdown span, .pricing-actual-breakdown span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; white-space: nowrap; }
.pricing-breakdown strong, .pricing-actual-breakdown strong { color: #344054; font-size: 11px; font-weight: 650; }
.pricing-actual-breakdown strong { color: var(--brand); }
.pricing-missing { color: #b54708 !important; }
.inline-pricing-multiplier { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.inline-pricing-multiplier input { width: 70px; min-height: 34px; padding: 5px 7px; color: #1d2939; font-size: 13px; font-weight: 700; text-align: right; }
.inline-pricing-multiplier input:disabled { color: #98a2b3; background: #f2f4f7; }
.pricing-effective-row td { padding-top: 0; background: #fbfcfe; }
.pricing-effective-row:hover td { background: #f8fbff; }
.pricing-effective-row > td > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px; border-left: 3px solid #b8d2ff; background: #f5f9ff; }
.pricing-effective-row strong { color: #175cd3; font-size: 11px; white-space: nowrap; }
.pricing-effective-row span { display: flex; flex-wrap: wrap; gap: 5px 14px; min-width: 0; color: #475467; font-size: 11px; }
.pricing-effective-row small { margin-left: auto; color: var(--muted); font-size: 11px; }
.pricing-control-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 15px 16px; border: 1px solid #d4e2ff; border-radius: var(--radius); background: #f5f9ff; }
.pricing-control-copy { display: grid; gap: 5px; min-width: 0; }
.pricing-control-copy strong { color: #1d2939; font-size: 13px; }
.pricing-control-copy span { color: #667085; font-size: 12px; line-height: 1.5; }
.pricing-control-actions { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.pricing-global-multiplier { display: grid; gap: 4px; color: #475467; font-size: 11px; font-weight: 650; }
.pricing-global-multiplier input { width: 82px; min-height: 34px; padding: 5px 8px; font-size: 13px; font-weight: 700; }
.pricing-control-card .form-message { width: 100%; margin: 0; }
.model-plaza-metrics { margin: 16px 0; }
.model-plaza-list { display: grid; gap: 16px; }
.model-plaza-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.model-plaza-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.model-plaza-group-heading strong { display: block; color: #1d2939; font-size: 14px; }
.model-plaza-group-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.model-plaza-group-heading .status { margin-top: 0; white-space: nowrap; }
.model-plaza-table { min-width: 1080px; }
.model-plaza-table th:first-child, .model-plaza-table td:first-child { width: 24%; }
.model-plaza-table th:nth-child(2), .model-plaza-table td:nth-child(2) { width: 18%; }
.model-plaza-table th:nth-child(3), .model-plaza-table td:nth-child(3) { width: 19%; }
.model-plaza-table th:nth-child(4), .model-plaza-table td:nth-child(4) { width: 18%; }
.model-plaza-table th:last-child, .model-plaza-table td:last-child { width: 220px; overflow: visible; }
.model-plaza-price { display: grid; gap: 3px; }
.model-plaza-price span { color: var(--muted); font-size: 11px; }
.model-plaza-price strong { color: #344054; font-size: 11px; font-weight: 650; }
.model-plaza-price strong.actual { color: var(--brand); }
.model-plaza-availability { display: grid; gap: 4px; }
.model-plaza-availability small { color: var(--muted); font-size: 11px; }
.model-plaza-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.publishing-table th:first-child, .publishing-table td:first-child { width: 27%; }
.connection-table { min-width: 1080px; table-layout: auto; --connection-name-column: 290px; --connection-type-column: 240px; }
.connection-table th:last-child, .connection-table td:last-child { width: 246px; }
.connection-table-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
.connection-table th:first-child, .connection-table td:first-child { position: sticky; left: 0; z-index: 2; width: var(--connection-name-column); min-width: var(--connection-name-column); background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.connection-table th:nth-child(2), .connection-table td:nth-child(2) { position: sticky; left: var(--connection-name-column); z-index: 2; width: var(--connection-type-column); min-width: var(--connection-type-column); background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.connection-table th:first-child, .connection-table th:nth-child(2) { z-index: 3; background: #f8fafc; }
.connection-table tr:hover td:first-child, .connection-table tr:hover td:nth-child(2) { background: #fbfcfe; }
.connection-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #dce4eb; border-radius: 6px; background: #f8fafc; color: #667085; font-size: 12px; line-height: 1.6; }
.connection-summary strong { color: #1d2939; font-size: 13px; font-variant-numeric: tabular-nums; }
.connection-current { min-width: 0; }
.connection-catalog-list { margin-top: 14px; }
.connection-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.connection-group-heading h3 { margin: 0; color: #1d2939; font-size: 14px; font-weight: 650; }
.connection-group-heading p { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.6; }
.connection-inactive-list { margin-top: 14px; border: 1px solid #dce4eb; border-radius: 6px; background: #fff; overflow: hidden; }
.connection-inactive-list > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 13px 14px; color: #475467; font-size: 13px; font-weight: 650; }
.connection-inactive-list > summary::-webkit-details-marker { display: none; }
.connection-inactive-list > summary::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 1.5px solid #667085; border-bottom: 1.5px solid #667085; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.connection-inactive-list[open] > summary { border-bottom: 1px solid #e4e7ec; background: #fafbfc; }
.connection-inactive-list[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.connection-inactive-list > summary > span:last-child { margin-left: auto; color: #667085; font-size: 11px; font-weight: 500; }
.connection-inactive-list > p { margin: 0; padding: 11px 14px; border-bottom: 1px solid #e4e7ec; color: #667085; font-size: 12px; line-height: 1.65; background: #fafbfc; }
.connection-inactive-list .connection-table { opacity: .82; }
.actions-cell { overflow: visible !important; white-space: nowrap; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; color: #344054; background: #f2f4f7; font-size: 11px; font-weight: 650; }
.status.published, .status.passed, .status.active, .status.ready { color: var(--success); background: #ecfdf3; }
.status.paused, .status.testing { color: var(--warning); background: #fffaeb; }
.status.disabled, .status.failed { color: var(--danger); background: #fef3f2; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: nowrap; white-space: nowrap; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: #344054; font-size: 15px; }
.filter-bar { display: grid; grid-template-columns: minmax(280px, 1fr) 180px auto; gap: 10px; margin-bottom: 14px; }
.model-filter-panel { margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.model-filter-primary { display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 12px; align-items: center; }
.model-filter-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f4; }
.model-filter-grid label { gap: 5px; }
.model-filter-grid label > span { color: var(--muted); font-size: 11px; }
.model-filter-grid select { min-height: 38px; }
.model-filter-actions { display: flex; justify-content: flex-end; gap: 8px; }
.view-switch { display: inline-flex; height: 38px; padding: 3px; background: #eef1f5; border: 1px solid #dde2ea; border-radius: 5px; }
.view-switch button { min-width: 58px; padding: 0 10px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: 12px; }
.view-switch button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / 9%); font-weight: 650; }
.result-summary { min-height: 22px; margin: 0 2px 10px; color: var(--muted); font-size: 12px; }
.model-results.card-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-results.card-view > .empty-state { grid-column: 1 / -1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.model-results.list-view { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.supplier-model-card { min-width: 0; display: flex; flex-direction: column; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.supplier-model-card:hover { border-color: #b8c7e2; box-shadow: 0 10px 28px rgb(28 46 74 / 8%); transform: translateY(-1px); }
.supplier-model-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.supplier-model-card-header h3 { margin: 4px 0 5px; overflow: hidden; font-size: 16px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.supplier-model-card-header code, .supplier-model-source code { display: block; overflow: hidden; color: #667085; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.model-provider { color: var(--brand); font-size: 11px; font-weight: 700; }
.model-card-status { display: grid; justify-items: end; gap: 6px; flex: none; }
.modality-badge { color: #475467; font-size: 11px; }
.supplier-model-summary { min-height: 42px; margin: 15px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.supplier-model-capability-markers { display: grid; gap: 5px; margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.supplier-model-capability-markers > div { display: flex; flex-wrap: wrap; gap: 4px; }
.supplier-model-capability-markers small { color: #667085; font-size: 10px; }
.supplier-model-source { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 12px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.supplier-model-source span { color: var(--muted); font-size: 11px; }
.supplier-model-source strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; text-align: right; }
.supplier-model-source code { grid-column: 1 / -1; margin-top: 3px; }
.supplier-model-media-route { grid-column: 1 / -1; display: grid; gap: 3px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e5e7eb; }
.supplier-model-media-route span { color: #2563eb; font-size: 11px; font-weight: 600; }
.supplier-model-media-route code { margin-top: 0; color: #475467; }
.supplier-model-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0 16px; }
.supplier-model-metrics div { min-width: 0; padding: 8px 10px; border-bottom: 1px solid #edf0f4; }
.supplier-model-metrics div:nth-child(odd) { padding-left: 0; border-right: 1px solid #edf0f4; }
.supplier-model-metrics div:nth-child(even) { padding-right: 0; }
.supplier-model-metrics dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.supplier-model-metrics dd { margin: 0; color: #344054; font-size: 11px; line-height: 1.45; word-break: break-word; }
.supplier-model-ops { display: grid; gap: 12px; margin: 14px 0 16px; padding: 12px; background: #f8fafc; border: 1px solid #e4eaf2; border-radius: 10px; }
.model-operation-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.model-operation-steps li { min-width: 0; display: grid; gap: 4px; padding: 10px 11px; background: #fff; border: 1px solid #d9e2ec; border-radius: 8px; }
.model-operation-steps li.done { background: #f0fbf5; border-color: #b9e5cf; }
.model-operation-steps li.ready { background: #f5f9ff; border-color: #bcd3ff; }
.model-operation-steps li.blocked { background: #fff6f0; border-color: #f4c7b2; }
.model-operation-steps li span { color: var(--muted); font-size: 10px; font-weight: 800; }
.model-operation-steps li strong { color: var(--ink); font-size: 12px; line-height: 1.25; }
.model-operation-steps li small { color: #667085; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.model-ops-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.model-ops-panel { min-width: 0; display: grid; align-content: start; gap: 7px; padding: 12px; background: #fff; border: 1px solid #e4eaf2; border-radius: 8px; }
.model-ops-panel > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.model-ops-panel > strong { color: var(--ink); font-size: 13px; line-height: 1.35; }
.model-ops-panel > code { color: #667085; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.model-ops-panel > small, .ops-note { color: #667085; font-size: 11px; line-height: 1.45; }
.ops-note { margin: 0; }
.model-price-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.model-price-summary.empty { display: block; padding: 10px; background: #fcfdff; border: 1px dashed #d0d5dd; border-radius: 8px; }
.model-price-summary.empty span, .model-price-summary > div span { display: block; color: #667085; font-size: 10px; font-weight: 800; }
.model-price-summary.empty strong, .model-price-summary > div strong { display: block; margin-top: 3px; color: #172b4d; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.model-price-summary.empty small { display: block; margin-top: 3px; color: #667085; font-size: 10px; }
.model-price-summary > div { min-width: 0; padding: 8px 9px; background: #fcfdff; border: 1px solid #edf1f6; border-radius: 7px; }
.model-price-summary .model-price-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price-panel-inline .button, .publish-panel-inline .button { width: fit-content; }
.publish-panel-inline .row-actions { margin-top: 2px; }
.supplier-model-card-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }

dialog { width: min(640px, calc(100% - 32px)); padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 28px 80px rgb(16 24 40 / 22%); }
#price-dialog { width: min(1180px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
#available-model-dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
#platform-audit-detail-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgb(20 29 43 / 48%); }
.dialog-form { padding: 26px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 20px; }
.icon-button { width: 36px; height: 36px; color: #667085; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.checkbox-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding-top: 20px; color: var(--muted); font-size: 12px; }
.checkbox-field input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--brand); }
.checkbox-field span { color: #475467; }
.media-settings { padding: 14px 16px; background: #f6f9ff; border: 1px solid #d8e4f5; border-radius: 6px; }
.media-settings[hidden] { display: none; }
.media-settings-heading { display: grid; gap: 3px; margin-bottom: 12px; }
.media-settings-heading strong { color: #344054; font-size: 13px; }
.media-settings-heading span { color: #667085; font-size: 12px; line-height: 1.45; }
.media-settings-grid { gap: 12px; }
.field-note { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.connection-enabled { display: flex; grid-template-columns: none; align-items: center; gap: 11px; min-height: 58px; padding: 11px 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.connection-enabled input { width: 18px; min-width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.connection-enabled span { display: grid; gap: 2px; }
.connection-enabled strong { color: #344054; font-size: 13px; }
.connection-enabled small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.connection-advanced { margin-top: 18px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--line); border-radius: 5px; }
.connection-advanced summary { color: #344054; cursor: pointer; font-size: 13px; font-weight: 650; }
.connection-advanced > .field-note { margin: 10px 0 14px; }
.connection-media-paths { padding: 14px 16px; background: #f6f9ff; border: 1px solid #d8e4f5; border-radius: 6px; }
.connection-media-paths .form-grid { gap: 12px; }
.connection-advanced .form-grid { padding-top: 0; }
.connection-advanced .form-grid.wide { display: grid; }
.model-advanced { grid-column: 1 / -1; margin-top: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: #f8fafc; }
.model-advanced summary { color: #344054; cursor: pointer; font-size: 13px; font-weight: 650; }
.model-advanced > .form-grid { margin-top: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.compact-form { display: grid; gap: 16px; }
.compact-form .dialog-heading { margin-bottom: 2px; }
.price-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-form-grid .wide { grid-column: 1 / -1; }
.price-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); }
.price-panel { min-width: 0; padding: 20px; }
.price-panel + .price-panel { border-left: 1px solid var(--line); background: #fafbfc; }
.selling-price-panel { order: -1; background: #fff; }
.official-price-panel { background: #fafbfc; }
.price-panel .advanced-price-note { margin: -4px 0 15px; padding: 9px 11px; border: 1px solid #dce4eb; border-radius: 5px; color: var(--muted); background: #fff; font-size: 12px; line-height: 1.45; }
.price-panel-heading { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.price-panel-heading h3 { margin: 3px 0 0; font-size: 16px; }
.step-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.selling-points-notice { margin: -4px 0 16px; padding: 10px 12px; color: #344054; background: #f0f7ff; border: 1px solid #cfe3ff; border-radius: 5px; font-size: 12px; line-height: 1.5; }
.selling-points-notice strong { color: var(--brand); font-weight: 700; }
.price-points-preview { display: block; margin-top: 5px; color: var(--brand); font-size: 11px; font-weight: 600; line-height: 1.35; }
.official-source-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin: 14px 0; }
.billing-mode-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr); gap: 14px; align-items: end; margin: 14px 0; }
.billing-mode-row .field-note { margin: 0 0 10px; }
.price-panel [data-unit-custom] { margin-top: 7px; }
.official-price-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.official-price-footer .field-note { margin: 0; }
.multiplier-box { margin-bottom: 16px; padding: 13px 14px; background: #edf3ff; border: 1px solid #d4e2ff; }
.multiplier-box > span { display: block; margin-bottom: 9px; color: #344054; font-size: 12px; font-weight: 650; }
.multiplier-controls { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.multiplier-button { min-height: 32px; padding: 0 11px; color: #344054; background: #fff; border: 1px solid #b9c5d8; border-radius: 5px; font-weight: 700; }
.multiplier-button.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.custom-multiplier { width: 112px; display: grid; gap: 3px; font-size: 10px; }
.custom-multiplier input { min-height: 32px; padding-block: 4px; }
.price-change-note { padding: 10px 12px; color: #854a0e; background: #fff7e8; border: 1px solid #f2d39b; font-size: 12px; line-height: 1.5; }
.price-marker { display: inline-flex; margin-left: 7px; padding: 2px 6px; color: #854a0e; background: #fff4dc; border-radius: 3px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.dialog-note { margin: 0; color: var(--muted); }
.form-guidance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; border: 1px solid #dce4eb; border-radius: 6px; background: #f8fafc; color: #667085; font-size: 12px; line-height: 1.5; }
.form-guidance strong { color: #1d2939; }
.form-guidance span { white-space: nowrap; }
.form-guidance span::before { content: "→"; margin-right: 7px; color: #4f8df7; }
.form-guidance small { width: 100%; color: var(--muted); }
.available-model-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; margin-top: 18px; }
.available-model-toolbar label { display: grid; gap: 5px; color: #475467; font-size: 11px; font-weight: 650; }
.available-model-toolbar input, .available-model-toolbar select { min-height: 38px; }
.available-model-summary { margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.available-model-list { max-height: min(48vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.available-model-row { display: grid; grid-template-columns: 20px minmax(180px, 1fr) minmax(150px, .65fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; border-bottom: 1px solid #edf1f6; }
.available-model-row:last-child { border-bottom: 0; }
.available-model-row:hover { background: #f8fbff; }
.available-model-row > input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); }
.available-model-main { display: grid; min-width: 0; gap: 3px; }
.available-model-main strong { overflow: hidden; color: #172b4d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.available-model-main small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.available-model-alias { display: grid; min-width: 0; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 600; }
.available-model-alias input { min-height: 32px; padding: 5px 8px; font-size: 12px; font-weight: 400; }
.available-model-state { color: #667085; font-size: 11px; white-space: nowrap; }
.available-model-row.is-synced .available-model-state { color: #087443; }
.available-model-pagination { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: 360px; padding: 13px 16px; color: #fff; background: #17202f; border-radius: 6px; box-shadow: 0 16px 40px rgb(16 24 40 / 20%); }

.nav-item[data-view="moremark"].active { color: #e6efff; border-left: 2px solid #6da4ff; }
.nav-group-label { margin: 16px 9px 5px; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-group-label:first-child { margin-top: 0; }
.nav-stage-item { gap: 9px; }
.nav-stage { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; color: #98a2b3; background: #263348; border: 1px solid #3b4a61; border-radius: 50%; font-size: 10px; font-weight: 800; }
.nav-stage-item.active .nav-stage { color: #17202f; background: #d8e7ff; border-color: #d8e7ff; }
.nav-group-label-secondary { margin-top: 21px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 12%); }
.nav-group-label-governance { margin-top: 23px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 12%); }
.nav-item-governance { color: #d0d5dd; }
.nav-item-governance.active { background: #25354d; }
.operations-boundary { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; padding: 13px 16px; color: #475467; background: #fbfcfe; border: 1px solid #dfe5ed; border-left: 3px solid #667085; border-radius: var(--radius); font-size: 12px; line-height: 1.55; }
.operations-boundary strong { flex: none; color: #273244; }
.credential-boundary { border-left-color: #155eef; background: #f5f9ff; }
.connection-base-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.operations-metrics { margin-bottom: 18px; }
.operations-metrics .metric { min-height: 122px; }
.operations-metrics .metric small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.operations-overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 18px; }
.operations-attention-list { display: grid; gap: 0; }
.operations-attention { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 15px 20px; border-bottom: 1px solid #edf0f4; }
.operations-attention:last-child { border-bottom: 0; }
.operations-attention > div { display: grid; min-width: 0; gap: 4px; }
.operations-attention strong { color: #344054; font-size: 13px; }
.operations-attention span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.operations-attention.warning { border-left: 3px solid #f79009; }
.operations-attention.danger { border-left: 3px solid var(--danger); }
.operations-attention.success { border-left: 3px solid var(--success); }
.operations-attention.neutral { border-left: 3px solid #98a2b3; }
.operations-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.operations-flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; padding: 14px 20px; border-bottom: 1px solid #edf0f4; }
.operations-flow li:last-child { border-bottom: 0; }
.operations-flow li > span { display: grid; place-items: center; width: 26px; height: 26px; color: #344054; background: #edf0f4; border-radius: 50%; font-size: 10px; font-weight: 800; }
.operations-flow li > div { display: grid; gap: 3px; }
.operations-flow strong { color: #344054; font-size: 13px; }
.operations-flow small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.operations-split { display: grid; grid-template-columns: minmax(400px, .88fr) minmax(520px, 1.12fr); gap: 18px; align-items: start; }
.operations-list-panel, .operations-detail-panel { min-width: 0; overflow: hidden; }
.operations-list-panel > .section-heading, .operations-detail-panel > .section-heading { padding: 20px 20px 0; }
.operations-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 18px; border-bottom: 1px solid #edf0f4; }
.operations-create-form label { min-width: 0; font-size: 12px; }
.operations-create-form > .button { align-self: end; justify-self: start; }
.operations-create-form.two-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.operations-advanced-fields { grid-column: 1 / -1; padding: 11px 12px; color: #475467; background: #f8fafc; border: 1px solid #e1e7ef; border-radius: 6px; }
.operations-advanced-fields summary { color: #344054; cursor: pointer; font-size: 12px; font-weight: 700; }
.operations-advanced-fields > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.operations-advanced-fields label { font-size: 12px; }
.operations-list-toolbar { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; padding: 13px 20px; background: #f8fafc; border-bottom: 1px solid #edf0f4; }
.compact-label { gap: 4px; color: var(--muted); font-size: 11px; }
.compact-label select, .operations-list-toolbar input { min-height: 36px; padding-block: 7px; font-size: 12px; }
.operations-search { display: block; }
.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; }
.operations-row-list { display: grid; max-height: 610px; overflow: auto; }
.operations-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; padding: 13px 20px; color: inherit; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #edf0f4; }
.operations-row:hover { background: #f8fbff; }
.operations-row.selected { background: #edf4ff; box-shadow: inset 3px 0 0 var(--brand); }
.operations-row > div { display: grid; min-width: 0; gap: 4px; }
.operations-row > div:last-child { justify-items: end; text-align: right; }
.operations-row strong, .operations-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-row strong { color: #344054; font-size: 13px; }
.operations-row small { color: var(--muted); font-size: 11px; }
.system-account-label { display: inline-flex; align-items: center; min-height: 18px; margin-left: 7px; padding: 0 6px; color: #475467; background: #eef2f6; border: 1px solid #d9e1ea; border-radius: 999px; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.operations-row.system-account { background: #fafbfc; }
.credit-account-toolbar { padding: 12px 20px; border-bottom: 1px solid #edf0f4; }
.credit-account-toolbar input { width: 100%; }
.credit-accounts-split { grid-template-columns: minmax(210px, .62fr) minmax(300px, .92fr) minmax(420px, 1.36fr); }
.credit-enterprise-list { max-height: 610px; }
.credit-enterprise-row { display: grid; gap: 4px; width: 100%; min-height: 66px; padding: 13px 16px; color: inherit; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #edf0f4; }
.credit-enterprise-row:hover { background: #f8fbff; }
.credit-enterprise-row.selected { background: #edf4ff; box-shadow: inset 3px 0 0 var(--brand); }
.credit-enterprise-row strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.credit-enterprise-row span { color: var(--muted); font-size: 10px; }
.credit-account-grant-form { display: grid; gap: 14px; padding: 0 20px 20px; }
.credit-account-grant-form textarea { min-height: 84px; resize: vertical; }
.credit-account-grant-form .operations-form-footer { margin-top: 4px; }
.credit-account-grant-form .form-message { min-height: 18px; margin: 0; }
.credit-account-grant-form .form-message.bad { color: var(--danger); }
.credit-account-grant-form .form-message.ok { color: var(--success); }
#connection-message { min-height: 20px; margin: 0 0 10px; color: var(--muted); }
#connection-message.bad { color: var(--danger); }
#connection-message.ok { color: var(--success); }
.operations-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 20px; border: 1px solid #e5e9f0; border-radius: 6px; overflow: hidden; }
.operations-detail-metrics > div { min-width: 0; padding: 12px; border-right: 1px solid #e5e9f0; border-bottom: 1px solid #e5e9f0; }
.operations-detail-metrics > div:nth-child(even) { border-right: 0; }
.operations-detail-metrics > div:nth-last-child(-n+2) { border-bottom: 0; }
.operations-detail-metrics span { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.operations-detail-metrics strong { display: block; margin-top: 6px; overflow: hidden; color: #344054; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.credit-account-group { border-bottom: 1px solid var(--line); }
.credit-account-group:last-child { border-bottom: 0; }
.credit-account-group-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 9px; background: #f8fafc; border-bottom: 1px solid #edf0f4; }
.credit-account-group-heading > div { display: grid; gap: 3px; min-width: 0; }
.credit-account-group-heading strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.credit-account-group-heading span { color: var(--muted); font-size: 10px; }
.credit-account-group-items { display: grid; }
.operations-policy-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 20px 20px; }
.operations-policy-form label { font-size: 12px; }
.operations-policy-form .wide { grid-column: 1 / -1; }
.operations-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; }
.operations-form-footer span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.channels-split { grid-template-columns: minmax(400px, .82fr) minmax(560px, 1.18fr); }
.channel-delivery-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 20px; border: 1px solid #e1e7ef; border-radius: 6px; overflow: hidden; }
.channel-delivery-step { min-width: 0; padding: 13px; border-right: 1px solid #e1e7ef; }
.channel-delivery-step:last-child { border-right: 0; }
.channel-delivery-step strong, .channel-delivery-step span { display: block; }
.channel-delivery-step strong { color: #344054; font-size: 12px; }
.channel-delivery-step span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.channel-binding-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 0 20px 14px; }
.channel-binding-control label { font-size: 12px; }
.channel-binding-list { display: grid; gap: 7px; margin: 0 20px 17px; }
.channel-binding { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto; align-items: center; gap: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 5px; }
.channel-binding code { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.channel-binding span { color: var(--muted); font-size: 11px; }
.channel-migration-panel, .channel-route-panel { margin: 0 20px 17px; border: 1px solid #e1e7ef; border-radius: 6px; overflow: hidden; }
.channel-migration-heading, .channel-route-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 13px; color: #475467; background: #f8fafc; border-bottom: 1px solid #e1e7ef; }
.channel-migration-heading strong, .channel-route-heading strong { color: #344054; font-size: 12px; }
.channel-migration-heading span, .channel-route-heading span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.channel-route-heading small { color: #854a0e; font-size: 10px; line-height: 1.45; }
.channel-route-heading > div { display: grid; gap: 4px; }
.channel-migration-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.channel-migration-check { min-width: 0; padding: 12px 13px; border-right: 1px solid #e1e7ef; }
.channel-migration-check:last-child { border-right: 0; }
.channel-migration-check span, .channel-migration-check strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-migration-check span { color: var(--muted); font-size: 10px; font-weight: 700; }
.channel-migration-check strong { margin-top: 5px; color: #854a0e; font-size: 11px; }
.channel-migration-check.complete { background: #f0fbf5; }
.channel-migration-check.complete strong { color: var(--success); }
.channel-route-list { display: grid; }
.channel-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 13px; border-bottom: 1px solid #edf0f4; }
.channel-route:last-child { border-bottom: 0; }
.channel-route > div { display: grid; min-width: 0; gap: 4px; }
.channel-route code { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.channel-route span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.channel-route > .status { flex: none; color: var(--success); }
.inline-empty { padding: 13px; color: var(--muted); background: #f8fafc; border: 1px dashed #d0d5dd; border-radius: 5px; font-size: 12px; line-height: 1.5; }
.operations-handoff { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 18px 20px 20px; }
.operations-handoff > div:first-child { display: grid; gap: 3px; }
.operations-handoff strong { color: #344054; font-size: 13px; }
.operations-handoff span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.operations-handoff pre { grid-column: 1 / -1; max-height: 260px; margin: 4px 0 0; padding: 13px; overflow: auto; color: #d0d5dd; background: #17202f; border-radius: 5px; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.operations-handoff-preview { grid-column: 1 / -1; color: #475467; }
.operations-handoff-preview summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.operations-handoff-preview:not([open]) pre { display: none; }
.overview-operations-grid { grid-template-columns: minmax(0, 1fr); }
.audit-boundary { margin-bottom: 16px; }
.operations-audit-table { overflow-x: auto; }
.platform-audit-data { min-width: 900px; }
.platform-audit-data small, .platform-settlement-table small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.platform-audit-data code, .platform-settlement-table code { color: #475467; font-size: 11px; }
.audit-failure-inline { color: var(--danger) !important; }
.audit-detail-dialog { max-height: calc(100vh - 48px); overflow: auto; }
.audit-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; border-block: 1px solid var(--line); }
.audit-detail-facts > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid #edf0f4; }
.audit-detail-facts dt, .audit-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.audit-detail-facts dt { color: var(--muted); font-size: 11px; }
.audit-detail-facts dd { margin-top: 4px; color: var(--ink); font-size: 13px; font-weight: 650; }
.audit-detail-failure { margin-top: 14px; padding: 12px 14px; background: #fff5f4; border: 1px solid #f3c7c3; border-radius: 7px; }
.audit-detail-failure strong { color: var(--danger); font-size: 13px; }
.audit-detail-failure p { margin: 5px 0 0; color: #7a271a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.audit-content-action { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.audit-content-action span { color: var(--muted); font-size: 11px; }
.audit-decrypted-content { display: grid; gap: 9px; margin-top: 10px; padding: 12px 14px; background: #f8fafc; border: 1px solid #dfe5ed; border-radius: 7px; }
.audit-decrypted-content strong { color: var(--ink); font-size: 12px; }
.audit-decrypted-content span { color: var(--muted); font-size: 11px; }
.audit-decrypted-content pre { max-height: 220px; margin: 4px 0 8px; overflow: auto; padding: 9px; color: #344054; background: #fff; border: 1px solid #e4eaf2; border-radius: 5px; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-detail-metadata { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.audit-detail-metadata summary { color: var(--brand); cursor: pointer; font-size: 12px; font-weight: 700; }
.audit-detail-metadata dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 8px 0 0; }
.audit-detail-metadata dl > div { min-width: 0; padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.audit-detail-metadata dt, .audit-detail-metadata dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.audit-detail-metadata dt { color: var(--muted); }
.audit-detail-metadata dd { margin-top: 3px; color: var(--ink); white-space: pre-wrap; }
.audit-detail-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.operations-settlement-note { display: flex; gap: 12px; margin: 0 0 18px; padding: 13px 16px; color: #475467; background: #fbfcfe; border: 1px solid #dfe5ed; border-radius: var(--radius); font-size: 12px; line-height: 1.55; }
.operations-settlement-note strong { flex: none; color: #344054; }
.platform-settlement-table { min-width: 1080px; }
.one-time-token { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; margin-top: 18px; padding: 12px; background: #f8fafc; border: 1px solid #dfe5ed; border-radius: 6px; }
.one-time-token code { min-width: 0; overflow: hidden; color: #17202f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-admin-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.moremark-admin-metrics .metric { min-height: 104px; padding: 18px 20px; }
.moremark-admin-metrics .metric strong { margin-top: 10px; font-size: 25px; }
.moremark-admin-metrics .metric small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.moremark-reward-readiness { margin: 0 0 16px; padding: 18px 20px; background: #fff; border: 1px solid #d8e0ea; border-radius: var(--radius); }
.moremark-reward-readiness-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #edf0f4; }
.moremark-reward-readiness-heading h3 { margin: 0; color: var(--ink); font-size: 15px; }
.moremark-reward-readiness-heading p { margin: 5px 0 0; max-width: 720px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.data-freshness { flex: none; padding: 4px 7px; color: #475467; background: #f2f4f7; border-radius: 3px; font-size: 10px; font-weight: 700; }
.reward-gate-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0; padding: 12px 14px; border: 1px solid #e4e9ef; border-left: 3px solid #98a2b3; background: #fbfcfe; }
.reward-gate-status.is-open { border-left-color: var(--success); background: #f4fcf7; }
.reward-gate-status.is-closed { border-left-color: #f79009; background: #fffaf1; }
.reward-gate-status > div { display: grid; gap: 3px; }
.reward-gate-status strong { color: #273244; font-size: 13px; }
.reward-gate-status span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.reward-gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reward-gate-requirement { display: grid; align-content: start; gap: 11px; min-width: 0; padding: 14px; border: 1px solid #e4e9ef; border-radius: 6px; background: #fbfcfe; }
.reward-gate-requirement.is-ready { border-color: #b9e5cf; background: #f4fcf7; }
.reward-gate-requirement.is-blocked { border-color: #f1d5a6; background: #fffdf8; }
.reward-gate-requirement-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reward-gate-requirement-heading > div { display: flex; align-items: baseline; gap: 8px; }
.reward-gate-requirement-heading span { color: var(--muted); font-size: 11px; font-weight: 700; }
.reward-gate-requirement-heading strong { color: #172b4d; font-size: 20px; }
.reward-gate-progress { height: 5px; overflow: hidden; background: #e7ebf0; border-radius: 999px; }
.reward-gate-progress i { display: block; width: 0; height: 100%; min-width: 0; background: #f79009; border-radius: inherit; transition: width 180ms ease; }
.reward-gate-progress i.progress-5 { width: 5%; }
.reward-gate-progress i.progress-10 { width: 10%; }
.reward-gate-progress i.progress-15 { width: 15%; }
.reward-gate-progress i.progress-20 { width: 20%; }
.reward-gate-progress i.progress-25 { width: 25%; }
.reward-gate-progress i.progress-30 { width: 30%; }
.reward-gate-progress i.progress-35 { width: 35%; }
.reward-gate-progress i.progress-40 { width: 40%; }
.reward-gate-progress i.progress-45 { width: 45%; }
.reward-gate-progress i.progress-50 { width: 50%; }
.reward-gate-progress i.progress-55 { width: 55%; }
.reward-gate-progress i.progress-60 { width: 60%; }
.reward-gate-progress i.progress-65 { width: 65%; }
.reward-gate-progress i.progress-70 { width: 70%; }
.reward-gate-progress i.progress-75 { width: 75%; }
.reward-gate-progress i.progress-80 { width: 80%; }
.reward-gate-progress i.progress-85 { width: 85%; }
.reward-gate-progress i.progress-90 { width: 90%; }
.reward-gate-progress i.progress-95 { width: 95%; }
.reward-gate-progress i.progress-100 { width: 100%; }
.reward-gate-requirement.is-ready .reward-gate-progress i { background: var(--success); }
.reward-gate-requirement > p { min-height: 18px; margin: 0; color: #475467; font-size: 11px; line-height: 1.5; }
.reward-gate-blockers { display: grid; gap: 7px; }
.reward-gate-blockers article { display: grid; gap: 4px; padding: 9px 10px; background: #fff; border: 1px solid #ede4d3; border-radius: 5px; }
.reward-gate-blockers article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.reward-gate-blockers strong { overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.reward-gate-blockers small { display: grid; justify-items: end; min-width: 0; color: #667085; font-size: 10px; text-align: right; }
.reward-gate-blockers small code { overflow: hidden; max-width: 190px; color: #475467; text-overflow: ellipsis; white-space: nowrap; }
.reward-gate-blockers small span { overflow: hidden; max-width: 190px; text-overflow: ellipsis; white-space: nowrap; }
.reward-gate-blockers article > span { color: #9a5b13; font-size: 10px; line-height: 1.4; }
.reward-gate-blockers article > p { min-height: 0; margin: 0; color: #667085; font-size: 10px; line-height: 1.45; }
.reward-gate-clear { padding: 10px; color: #087443; background: #fff; border: 1px solid #c8ead7; border-radius: 5px; font-size: 11px; }
.reward-gate-requirement .button { justify-self: start; }
.reward-gate-note { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.moremark-admin-note { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin: 0 0 20px; padding: 13px 16px; color: #475467; background: #f5f9ff; border: 1px solid #cbdcf7; border-radius: var(--radius); font-size: 12px; }
.points-source-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #c9e5de; border-left: 4px solid #087f72; border-radius: 6px; background: #f4fbf9; }
.points-source-card > div { display: grid; gap: 4px; min-width: 0; }
.points-source-card span { color: #087f72; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.points-source-card strong { color: #173a38; font-size: 17px; }
.points-source-card small { color: #5b6e6d; font-size: 11px; }
.inline-points-rule-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-points-rule-form label { display: inline-flex; align-items: center; gap: 6px; color: #173a38; font-weight: 700; font-size: 13px; }
.inline-points-rule-form input { width: 92px; padding: 8px 9px; border: 1px solid #b8d6d0; border-radius: 5px; background: #fff; color: #173a38; font: inherit; }
@media (max-width: 720px) { .points-source-card { align-items: flex-start; flex-direction: column; } }
.moremark-admin-note strong { color: #172b4d; }
.moremark-admin-note span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #4f8df7; vertical-align: 1px; }
.moremark-admin-note small { width: 100%; color: var(--muted); line-height: 1.45; }
.moremark-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
.moremark-products-panel, .moremark-decisions-panel { min-width: 0; overflow: hidden; }
.moremark-products-panel > .section-heading, .moremark-decisions-panel > .section-heading { padding: 20px 20px 16px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.data-freshness { color: var(--success); font-size: 11px; white-space: nowrap; }
.moremark-product-workbench { display: grid; grid-template-columns: minmax(216px, 260px) minmax(0, 1fr); min-height: 560px; background: #fff; }
.moremark-product-navigation { display: grid; align-content: start; gap: 6px; padding: 12px; background: #f8fafc; border-right: 1px solid var(--line); }
.moremark-product-option { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; color: #475467; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 5px; }
.moremark-product-option:hover { background: #fff; border-color: #d7e3f4; }
.moremark-product-option.active { color: #173d7a; background: #fff; border-color: #a8c5ef; box-shadow: inset 3px 0 0 var(--brand); }
.moremark-product-option > span { display: grid; min-width: 0; gap: 4px; }
.moremark-product-option strong { overflow: hidden; color: inherit; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-product-option small { overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-product-option-meta { justify-items: end; flex: none; }
.moremark-product-detail { min-width: 0; padding: 20px; }
.moremark-product-card { min-width: 0; }
.moremark-product-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.moremark-product-card h3 { margin: 4px 0 4px; color: var(--ink); font-size: 16px; }
.moremark-product-card code { color: #667085; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.moremark-product-type { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.moremark-product-state { display: grid; justify-items: end; gap: 5px; text-align: right; }
.moremark-product-state small { color: var(--muted); font-size: 11px; }
.moremark-product-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; padding: 10px; background: #f8fafc; border: 1px solid #e8edf3; border-radius: 5px; }
.moremark-product-meta span { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.moremark-product-meta strong { color: #344054; font-size: 11px; overflow-wrap: anywhere; }
.moremark-capability-groups { display: grid; gap: 18px; }
.moremark-capability-group { min-width: 0; padding: 12px; background: #fbfcfe; border: 1px solid #e4eaf2; border-radius: 6px; }
.moremark-capability-group > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.moremark-capability-group > header > div { display: grid; gap: 3px; }
.moremark-capability-group > header strong { color: #173d7a; font-size: 12px; }
.moremark-capability-group > header small, .moremark-capability-group > header > span { color: var(--muted); font-size: 10px; }
.moremark-capability-group > header > span { text-align: right; }
.moremark-candidate-columns, .moremark-candidate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .36fr) 90px; gap: 12px; }
.moremark-candidate-columns { padding: 0 10px 7px; color: #667085; font-size: 10px; font-weight: 750; }
.moremark-candidate-columns span:nth-child(2), .moremark-candidate-columns span:nth-child(3) { text-align: right; }
.moremark-candidate-list { display: grid; gap: 7px; max-height: 480px; overflow: auto; padding: 2px; }
.moremark-candidate { align-items: center; min-height: 62px; padding: 9px 10px; border: 1px solid #e3e7ee; border-radius: 5px; }
.moremark-candidate:hover { background: #f7fbff; border-color: #b9cff2; }
.moremark-candidate.is-blocked { background: #fcfcfd; }
.moremark-candidate-toggle { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.moremark-candidate.is-blocked .moremark-candidate-toggle { cursor: not-allowed; }
.moremark-candidate-toggle > input { width: 16px; min-height: 16px; padding: 0; accent-color: var(--brand); }
.moremark-candidate-main, .moremark-candidate-state { display: grid; min-width: 0; gap: 3px; }
.moremark-candidate-main strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-candidate-main small, .moremark-candidate-state small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-capability-markers { display: flex; flex-wrap: wrap; gap: 4px; }
.moremark-capability-chip { width: fit-content; padding: 2px 5px; color: #365486; background: #eef4ff; border: 1px solid #dbe7fb; border-radius: 3px; font-size: 9px; line-height: 1.2; white-space: nowrap; }
.moremark-capability-chip.is-empty { color: #667085; background: #f2f4f7; border-color: #eaecf0; }
.moremark-vision-capability { width: fit-content; padding: 2px 5px; border-radius: 3px; font-size: 9px; line-height: 1.2; }
.moremark-vision-capability.is-supported { color: #176b45; background: #ecfdf3; }
.moremark-vision-capability.is-declared { color: #8a5a00; background: #fff7e6; }
.moremark-vision-capability.is-unsupported { color: #667085; background: #f2f4f7; }
.moremark-candidate-state { justify-items: end; }
.moremark-candidate-config { display: grid; justify-items: end; }
.moremark-candidate-config label { width: 76px; display: grid; gap: 3px; min-width: 0; color: var(--muted); font-size: 9px; font-weight: 700; text-align: right; }
.moremark-candidate-config input { min-width: 0; min-height: 28px; padding: 4px 6px; color: #344054; font-size: 11px; text-align: right; }
.moremark-candidate-config input:disabled { color: #98a2b3; background: #f8fafc; }
.moremark-candidate-hint { margin: 9px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.moremark-exact-route { display: grid; gap: 7px; padding: 2px; }
.moremark-exact-route > div { display: flex; align-items: center; gap: 9px; padding: 10px; background: #f8fafc; border: 1px solid #e3e7ee; border-radius: 5px; }
.moremark-exact-route > div strong { color: #344054; font-size: 12px; }
.moremark-exact-route > div span { margin-right: auto; color: var(--muted); font-size: 11px; }
.moremark-product-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.moremark-status-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.moremark-status-select select { width: auto; min-height: 30px; padding: 4px 8px; font-size: 11px; }
.moremark-decision-list { display: grid; }
.moremark-decision-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #edf0f4; }
.moremark-decision-row:last-child { border-bottom: 0; }
.decision-outcome { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.decision-outcome.succeeded { background: var(--success); }
.decision-outcome.failed { background: var(--danger); }
.moremark-decision-row > div:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.moremark-decision-row strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-decision-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.moremark-decision-meta { display: grid; justify-items: end; gap: 3px; color: #475467; font-size: 10px; white-space: nowrap; }
.moremark-proof-tag { padding: 3px 6px; color: var(--success); background: #ecfdf3; border-radius: 3px; font-size: 10px; white-space: nowrap; }

.analytics-filter-panel { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; align-items: end; gap: 12px; margin-bottom: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.analytics-filter-actions { display: flex; align-items: center; gap: 8px; }
.analytics-period { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.analytics-metrics { margin-bottom: 18px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.analytics-panel { min-width: 0; padding: 18px; }
.analytics-bars { display: grid; gap: 9px; }
.analytics-bar-row { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(100px, 1.6fr) 70px; align-items: center; gap: 10px; color: #475467; font-size: 12px; }
.analytics-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-bar-row > i { height: 9px; overflow: hidden; background: #eef2f6; border-radius: 2px; }
.analytics-bar-row > i > b { display: block; height: 100%; background: #6b9cf8; border-radius: 2px; }
.analytics-bar-row > strong { color: var(--ink); font-size: 12px; text-align: right; }
.analytics-bars > small { margin: -5px 0 3px; color: var(--muted); font-size: 10px; }
.analytics-table-scroll { overflow-x: auto; }
.analytics-data-table { min-width: 600px; }
.analytics-data-table small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

/* Keep connection actions in view on compact desktop workspaces. */
@media (max-width: 1360px) {
  .connection-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
  .connection-table-scroll { overflow: visible; }
  .connection-table th:first-child, .connection-table td:first-child,
  .connection-table th:nth-child(2), .connection-table td:nth-child(2) {
    position: static;
    min-width: 0;
    box-shadow: none;
  }
  .connection-table thead { display: none; }
  .connection-table tbody, .connection-table tr, .connection-table td { display: block; width: 100%; }
  .connection-table tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .connection-table td {
    min-height: 0;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f4;
    overflow: visible;
  }
  .connection-table td:last-child { border-bottom: 0; }
  .connection-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 24px;
  }
  .connection-table .cell-title, .connection-table .cell-subtitle {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .connection-table .row-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .connection-table .actions-cell { width: 100%; }
}

@media (max-width: 1040px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .workflow-band { align-items: flex-start; flex-direction: column; }
  .workflow-band i { width: 1px; height: 12px; flex: none; margin-left: 18px; }
  .publish-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .table-section { overflow-x: auto; }
  .data-table { min-width: 820px; }
  .available-model-row { grid-template-columns: 20px minmax(150px, 1fr) minmax(130px, .7fr) auto; }
  .model-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-operation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-columns { grid-template-columns: 1fr; }
  .price-panel + .price-panel { border-left: 0; border-top: 1px solid var(--line); }
  .pricing-control-card { align-items: stretch; flex-direction: column; }
  .pricing-control-actions { justify-content: flex-start; }
  .pricing-control-actions .button { flex: 1; }
  .model-plaza-group { overflow: visible; border: 0; background: transparent; }
  .model-plaza-group-heading { border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
  .model-plaza-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
  .model-plaza-table thead { display: none; }
  .model-plaza-table tbody, .model-plaza-table tr, .model-plaza-table td { display: block; width: 100%; }
  .model-plaza-table tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .model-plaza-table td { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f4; overflow: visible; }
  .model-plaza-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 24px; }
  .model-plaza-table td:first-child { display: block; padding-top: 0; }
  .model-plaza-table td:first-child::before { display: none; }
  .model-plaza-table td:last-child { border-bottom: 0; }
  .model-plaza-actions { justify-content: flex-start; }
  .analytics-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; }
  .brand-lockup { padding: 0 0 12px; }
  #app-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .nav-item { width: 100%; min-width: 0; justify-content: center; padding: 0 8px; text-align: center; }
  .sidebar-footer { display: none; }
  .topbar { height: 78px; padding: 0 18px; }
  .content { padding: 26px 18px 48px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 100px; padding: 17px; }
  .filter-bar { grid-template-columns: 1fr; }
  .model-filter-primary, .model-filter-grid { grid-template-columns: 1fr; }
  .model-filter-actions { justify-content: stretch; }
  .model-filter-actions .button { flex: 1; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; }
  .model-results.card-view { grid-template-columns: 1fr; }
  .model-operation-steps { grid-template-columns: 1fr; }
  .model-price-summary { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .price-form-grid { grid-template-columns: 1fr; }
  .price-form-grid .wide { grid-column: auto; }
  .official-source-row { grid-template-columns: 1fr; }
  .billing-mode-row { grid-template-columns: 1fr; gap: 8px; }
  .official-price-footer { align-items: stretch; flex-direction: column; }
  .pricing-plaza-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
  .pricing-plaza-table thead { display: none; }
  .pricing-plaza-table tbody, .pricing-plaza-table tr, .pricing-plaza-table td { display: block; width: 100%; }
  .pricing-plaza-table tr:not(.pricing-effective-row) { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .pricing-plaza-table tr:not(.pricing-effective-row) td { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f4; overflow: visible; }
  .pricing-plaza-table tr:not(.pricing-effective-row) td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 24px; }
  .pricing-plaza-table tr:not(.pricing-effective-row) td:first-child { display: block; padding-top: 0; }
  .pricing-plaza-table tr:not(.pricing-effective-row) td:first-child::before { display: none; }
  .pricing-plaza-table tr:not(.pricing-effective-row) td:last-child { border-bottom: 0; }
  .pricing-plaza-table .row-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .pricing-effective-row { margin-top: -12px; }
  .pricing-effective-row td { padding: 0 14px 12px; border: 0; }
  .pricing-effective-row > td > div { align-items: flex-start; flex-direction: column; }
  .pricing-effective-row small { margin-left: 0; }
  .connection-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
  .connection-table-scroll { overflow: visible; }
  .connection-table th:first-child, .connection-table td:first-child,
  .connection-table th:nth-child(2), .connection-table td:nth-child(2) { position: static; min-width: 0; box-shadow: none; }
  .connection-table thead { display: none; }
  .connection-table tbody, .connection-table tr, .connection-table td { display: block; width: 100%; }
  .connection-table tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .connection-table td { min-height: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf0f4; overflow: visible; }
  .connection-table td:last-child { border-bottom: 0; }
  .connection-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 650; line-height: 24px; }
  .connection-table .cell-title, .connection-table .cell-subtitle { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .connection-table .row-actions { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .connection-table .actions-cell { width: 100%; }
  .available-model-toolbar { grid-template-columns: 1fr; }
  .available-model-row { grid-template-columns: 20px minmax(0, 1fr); align-items: start; }
  .available-model-alias, .available-model-state { grid-column: 2; }
  .available-model-state { white-space: normal; }
  .available-model-pagination { justify-content: space-between; }
  .login-panel { padding: 28px 24px; }
  .analytics-filter-panel, .analytics-grid { grid-template-columns: 1fr; }
  .analytics-filter-actions { grid-column: auto; }
  .analytics-filter-actions .button { flex: 1; }
  .analytics-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1180px) {
  .moremark-admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moremark-admin-grid { grid-template-columns: 1fr; }
  .operations-overview-grid, .operations-split, .channels-split { grid-template-columns: 1fr; }
  .operations-row-list { max-height: 420px; }
}

@media (max-width: 720px) {
  .moremark-admin-metrics { grid-template-columns: 1fr 1fr; }
  .moremark-reward-readiness { padding: 16px; }
  .moremark-reward-readiness-heading, .reward-gate-status { align-items: flex-start; flex-direction: column; gap: 10px; }
  .reward-gate-grid { grid-template-columns: 1fr; }
  .reward-gate-blockers article > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .reward-gate-blockers small { justify-items: start; text-align: left; }
  .moremark-admin-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .moremark-product-workbench { grid-template-columns: 1fr; min-height: 0; }
  .moremark-product-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .moremark-product-option { min-width: 0; padding: 10px; }
  .moremark-product-detail { padding: 16px; }
  .moremark-product-meta { grid-template-columns: 1fr; }
  .moremark-capability-group > header { align-items: flex-start; flex-direction: column; }
  .moremark-capability-group > header > span { text-align: left; }
  .moremark-candidate { grid-template-columns: minmax(0, 1fr) auto; }
  .moremark-candidate-columns { display: none; }
  .moremark-candidate-config { grid-column: 1 / -1; justify-items: start; }
  .moremark-candidate-config label { width: auto; grid-template-columns: auto 86px; align-items: center; text-align: left; }
  .moremark-product-actions { align-items: stretch; flex-direction: column; }
  .moremark-status-select { justify-content: space-between; }
  .moremark-decision-row { grid-template-columns: 8px minmax(0, 1fr); }
  .moremark-decision-meta, .moremark-proof-tag { grid-column: 2; justify-self: start; }
  .nav-group-label { display: none; }
  .operations-metrics { grid-template-columns: 1fr 1fr; }
  .operations-attention { align-items: flex-start; flex-direction: column; }
  .operations-create-form, .operations-create-form.two-columns, .operations-policy-form, .operations-advanced-fields > div { grid-template-columns: 1fr; }
  .operations-create-form > .button { width: 100%; }
  .operations-detail-metrics { grid-template-columns: 1fr 1fr; }
  .operations-form-footer, .operations-handoff { align-items: stretch; flex-direction: column; }
  .operations-form-footer { display: flex; }
  .channel-delivery-workflow { grid-template-columns: 1fr; }
  .channel-delivery-step { border-right: 0; border-bottom: 1px solid #e1e7ef; }
  .channel-delivery-step:last-child { border-bottom: 0; }
  .channel-migration-checks { grid-template-columns: 1fr; }
  .channel-migration-check { border-right: 0; border-bottom: 1px solid #e1e7ef; }
  .channel-migration-check:last-child { border-bottom: 0; }
  .channel-binding-control { grid-template-columns: 1fr; }
  .channel-binding { grid-template-columns: minmax(0, 1fr) auto; }
  .channel-binding span { grid-column: 1 / -1; grid-row: 2; }
  .one-time-token { grid-template-columns: 1fr 1fr; }
  .one-time-token code { grid-column: 1 / -1; }
}
