/*
 * The approved prototype's presentation rules that the production Console owns.
 *
 * The prototype's information architecture, layout and interactions are the product
 * design baseline (AGENTS.md §0; UI LLD phase 2: "Implement the production ConsoleApp
 * shell according to the prototype"). These rules were split out of `src/styles.css` into
 * `src/prototype.css` to keep the MVP bundle small, which also removed the approved
 * design from the Console. This file takes them back, family by family, as the Console
 * starts rendering each one -- `scripts/extract-console-shell-css.mjs` reproduces it
 * exactly, so a reviewer can diff rather than trust.
 *
 * Source: ../agcloud-console-ui-delta-prototype/src/prototype.css
 * Source sha256(first 16): 2330c0912ae3aa38
 * Rules taken: 142 of 4068
 *
 * Do not edit by hand: edit the selector families in the script and re-run it. `prototype.css`
 * and its runtime are deleted with the prototype; this file is the surviving design.
 */

/* Prototype-only styles, split out of styles.css so the production bundle does
   not carry them. Imported by PrototypeApp, which is a lazy chunk a production
   build never emits. Rules keep their original relative order. */


.product-mark
{ height: 64px; display: flex; align-items: center; gap: 11px; min-width: 148px; }

.product-symbol
{ width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: #e7f6ef; color: #147b57; }

.product-mark strong
{ display: block; font-size: 17px; line-height: 21px; letter-spacing: 0; }

.product-mark small
{ display: block; color: #8492a3; font-size: 10px; line-height: 14px; letter-spacing: .3px; }

.button
{ min-height: 34px; padding: 6px 12px; border: 1px solid #d4dbe0; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }

.button:hover:not(:disabled)
{ background: #f6f8f9; border-color: #aeb8c1; }

.button.primary
{ color: #fff; border-color: #2f6feb; background: #2f6feb; box-shadow: 0 1px 0 rgba(27, 31, 36, .08); }

.button.primary:hover:not(:disabled)
{ border-color: #255fc3; background: #255fc3; }

.button.success
{ color: #fff; border-color: #1f883d; background: #1f883d; box-shadow: 0 1px 0 rgba(27, 31, 36, .1); }

.button.success:hover:not(:disabled)
{ border-color: #1a7f37; background: #1a7f37; }

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

.button.quiet
{ border-color: transparent; background: transparent; color: #526171; }

.button:disabled
{ opacity: .45; cursor: not-allowed; }

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

.page-heading .eyebrow, .eyebrow
{ display: block; margin-bottom: 7px; color: #708091; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.page-heading h1
{ font-size: 27px; line-height: 34px; letter-spacing: 0; }

.page-heading p
{ color: var(--muted); margin-top: 5px; font-size: 13px; }

.heading-actions
{ display: flex; align-items: center; gap: 8px; }

.section-title
{ min-height: 31px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

.section-title > div
{ display: flex; align-items: baseline; gap: 10px; min-width: 0; }

.section-title h2
{ font-size: 15px; line-height: 22px; }

.section-title span
{ color: #8591a0; font-size: 11px; }

.application-group-section-heading > .button
{ position: absolute; top: 0; right: 0; }

.app-user-add-row > .button
{ margin-top: 20px; }

.cockpit-shell
{ min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--canvas); }

.platform-home-link
{ min-width: 0; padding: 0; border: 0; display: block; background: transparent; cursor: pointer; text-align: left; }

.platform-home-link .product-mark
{ pointer-events: none; }

.platform-home-topbar .product-mark
{ flex: none; min-width: 164px; }

.cockpit-sidebar
{ position: sticky; top: 0; height: 100vh; padding: 0 14px; border-right: 1px solid var(--line); color: var(--ink); background: var(--sidebar); display: flex; flex-direction: column; }

.sidebar-brand
{ height: 64px; display: flex; align-items: center; gap: 6px; }

.workspace-launcher-trigger
{ flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 4px; display: grid; place-items: center; color: #65737e; background: transparent; cursor: pointer; }

.workspace-launcher-trigger:hover
{ color: #1f302a; background: #e9eeeb; }

.cockpit-sidebar .product-mark
{ min-width: 0; padding: 0 3px; }

.cockpit-sidebar .product-symbol
{ color: #147b57; background: #e7f6ef; }

.cockpit-sidebar .product-mark strong
{ color: var(--ink); }

.sidebar-business-scope
{ min-height: 52px; margin: 7px 0 10px; padding: 0 8px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; color: #557064; }

.sidebar-business-scope > svg
{ color: #28785d; }

.sidebar-business-scope span, .sidebar-business-scope small, .sidebar-business-scope b
{ min-width: 0; display: block; }

.sidebar-business-scope small
{ color: #87938d; font-size: 8px; line-height: 12px; }

.sidebar-business-scope b
{ overflow: hidden; color: #35473f; font-size: 10px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-business-scope em
{ grid-column: 2; margin-top: -5px; color: #8a9690; font-size: 8px; font-style: normal; }

.sidebar-business-scope p
{ grid-column: 2; margin: -4px 0 0; color: #87938d; font-size: 7px; }

.cockpit-sidebar nav
{ min-height: 0; margin-top: 0; overflow-x: hidden; overflow-y: auto; }

.secondary-nav
{ margin: 0; padding: 0; }

.nav-section
{ padding-bottom: 7px; }

.nav-direct
{ margin-bottom: 2px; padding-bottom: 0; }

.nav-section-label
{ display: block; padding: 0 9px 4px; color: #85919b; font-size: 8px; line-height: 16px; font-weight: 700; }

.nav-section > button, .nav-flyout-trigger
{ height: 32px !important; padding: 0 9px !important; font-size: 10.5px !important; }

.nav-section > button.active
{ box-shadow: inset 2px 0 var(--green); }

.nav-flyout-group
{ position: relative; margin-bottom: 2px; }

.secondary-nav > .nav-direct:first-child + .nav-flyout-group
{ margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--line); }

.nav-flyout-trigger > svg
{ margin-left: auto; color: #87939d; transition: transform .16s ease; }

.nav-flyout-group.open .nav-flyout-trigger > svg
{ transform: rotate(90deg); }

.nav-flyout-trigger em + svg
{ margin-left: 0; }

.nav-flyout-trigger.active-parent
{ color: #126f4d !important; background: #f0f5f2; }

.nav-flyout-menu
{ margin: 2px 0 7px 10px; padding: 2px 0 2px 8px; border-left: 1px solid #d8e1dd; display: none; }

.nav-flyout-group.open .nav-flyout-menu
{ display: grid; }

.nav-flyout-menu > button
{ height: 31px !important; padding-left: 10px !important; color: #52616d !important; font-size: 10px !important; }

.nav-flyout-menu > button:hover
{ color: #126f4d !important; background: #eef6f2 !important; }

.nav-flyout-menu > button.active
{ color: #126f4d !important; background: #e8f3ee !important; box-shadow: inset 2px 0 #45a67d; }

.cockpit-sidebar nav button, .sidebar-bottom > button
{ width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 5px; display: flex; align-items: center; gap: 10px; color: #52616d; background: transparent; font-size: 12px; cursor: pointer; }

.cockpit-sidebar nav button b
{ font-weight: 500; }

.cockpit-sidebar nav button em
{ margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; color: #9a5917; background: #fff0dc; font-size: 9px; font-style: normal; }

.cockpit-sidebar nav button em.danger
{ color: #fff; background: #b83232; }

.cockpit-sidebar nav button:hover, .sidebar-bottom > button:hover
{ color: #26343f; background: #ecefef; }

.cockpit-sidebar nav button.active, .sidebar-bottom > button.active
{ color: #126f4d; background: #e8f3ee; box-shadow: inset 2px 0 var(--green); }

.cockpit-sidebar nav button.active svg, .sidebar-bottom > button.active svg
{ color: var(--green); }

.cockpit-sidebar nav button:disabled
{ opacity: .42; cursor: not-allowed; }

.cockpit-sidebar nav button:disabled:hover
{ color: #52616d; background: transparent; }

.sidebar-bottom
{ margin-top: auto; padding: 10px 0 14px; border-top: 1px solid var(--line); }

.workspace-launcher-layer
{ position: fixed; z-index: 120; inset: 0; background: rgba(19, 29, 37, .42); }

.workspace-launcher
{ width: min(520px, calc(100vw - 28px)); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: 14px 0 40px rgba(13, 25, 34, .2); }

.workspace-launcher > header
{ height: 68px; padding: 0 18px; border-bottom: 1px solid #e3e7e9; display: flex; align-items: center; gap: 13px; }

.workspace-launcher > header > button
{ width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; display: grid; place-items: center; color: #65737e; background: transparent; cursor: pointer; }

.workspace-launcher > header > button:hover
{ color: #25333e; background: #f0f3f4; }

.workspace-launcher > header .product-symbol
{ color: #28785d; background: #e3f1eb; }

.workspace-launcher-content
{ padding: 30px 34px; overflow-y: auto; }

.workspace-launcher-content .eyebrow
{ margin-bottom: 5px; }

.workspace-launcher-content h2
{ color: #25333e; font-size: 23px; line-height: 31px; }

.workspace-launcher-content > p
{ margin-top: 6px; color: #74818c; font-size: 11px; line-height: 18px; }

.workspace-launcher-options
{ margin-top: 24px; display: grid; gap: 9px; }

.workspace-launcher-option
{ width: 100%; min-height: 70px; padding: 12px 14px; border: 1px solid #dfe4e7; border-radius: 5px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 12px; color: #33414c; background: #fff; text-align: left; cursor: pointer; }

.workspace-launcher-option:hover
{ border-color: #9bbdad; background: #f7faf8; }

.workspace-launcher-option.active
{ border-color: #78b49b; background: #eef7f3; }

.workspace-launcher-option > span
{ width: 38px; height: 38px; border-radius: 5px; display: grid; place-items: center; color: #28785d; background: #e2f1ea; }

.workspace-launcher-option p, .workspace-launcher-option b, .workspace-launcher-option small
{ min-width: 0; display: block; }

.workspace-launcher-option b
{ color: #26353f; font-size: 13px; line-height: 19px; }

.workspace-launcher-option small
{ margin-top: 3px; color: #7c8993; font-size: 10px; line-height: 15px; }

.workspace-launcher-option > svg
{ color: #84919b; }

.workspace-launcher-option.active > svg
{ color: #28785d; }

.cockpit-body
{ min-width: 0; }

.cockpit-topbar
{ height: 58px; padding: 0 24px; border-bottom: 1px solid #e1e5e8; display: flex; align-items: center; gap: 16px; background: #fff; }

.topbar-spacer
{ flex: 1; }

.user-identity
{ flex: none; min-height: 38px; padding: 0 0 0 12px; border: 0; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: #65727e; background: transparent; cursor: pointer; text-align: left; }

.user-identity > span
{ width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #263944; font-size: 9px; font-weight: 700; }

.user-identity p, .user-identity small, .user-identity b
{ display: block; }

.user-identity small
{ color: #8a96a0; font-size: 8px; line-height: 11px; }

.user-identity b
{ color: #26343f; font-size: 10px; line-height: 14px; }

.user-identity:hover
{ background: #f5f7f8; }

.user-menu
{ position: relative; flex: none; }

.user-avatar
{ position: relative; }

.user-avatar em
{ position: absolute; top: -6px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #c23b3b; font-size: 8px; font-style: normal; line-height: 13px; }

.user-todo-popover
{ position: absolute; z-index: 70; top: 47px; right: 0; width: 360px; border: 1px solid #dce2e6; border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgba(18, 30, 39, .2); }

.user-todo-popover > header
{ min-height: 56px; padding: 10px 13px; border-bottom: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; }

.user-todo-popover > header h2
{ font-size: 14px; line-height: 20px; }

.user-todo-popover > header span
{ display: block; margin-top: 1px; color: #84909b; font-size: 9px; }

.user-todo-popover > header button
{ padding: 5px 4px; border: 0; color: #2563a8; background: transparent; font-size: 10px; font-weight: 600; cursor: pointer; }

.todo-group
{ padding: 8px; border-bottom: 1px solid var(--soft-line); }

.todo-group:last-child
{ border-bottom: 0; }

.todo-group > span
{ display: block; padding: 2px 7px 6px; color: #89949d; font-size: 8px; font-weight: 700; }

.todo-item
{ width: 100%; min-height: 57px; padding: 8px 7px; border: 0; border-radius: 4px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 15px; align-items: center; gap: 8px; color: #52606c; background: #fff; text-align: left; cursor: pointer; }

.todo-item:hover
{ background: #f5f7f8; }

.todo-item > span
{ width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: #536d80; background: #eef2f4; }

.todo-item.priority > span
{ color: #a45a16; background: var(--orange-soft); }

.todo-item.release-pr > span
{ color: #2563a8; background: #edf4ff; }

.todo-item p, .todo-item b, .todo-item small, .todo-item em
{ min-width: 0; display: block; }

.todo-item b
{ overflow: hidden; color: #2b3944; font-size: 10px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }

.todo-item small
{ overflow: hidden; margin-top: 2px; color: #84909a; font-size: 8px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }

.todo-item em
{ margin-top: 2px; color: #a86120; font-size: 8px; font-style: normal; line-height: 11px; }

.todo-item > svg
{ color: #9aa4ad; }

.cockpit-main
{ max-width: 1480px; margin: 0 auto; padding: 26px 28px 90px; }

.surface
{ min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Shared application and platform operations pages */
.console-page-stack
{ min-width: 0; width: 100%; display: grid; gap: 16px; }

.release-plan-actions > .button
{ width: 100%; }

.release-plan-actions .release-actions .button
{ width: 100%; justify-content: center; }

.metric-strip
{ padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }

.metric-strip > div
{ min-width: 0; min-height: 94px; padding: 16px 18px; border-right: 1px solid var(--soft-line); display: flex; justify-content: center; flex-direction: column; }

.metric-strip > div:last-child
{ border-right: 0; }

.metric-strip span, .metric-strip strong, .metric-strip small
{ display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.metric-strip span
{ color: #74818e; font-size: 10px; }

.metric-strip strong
{ margin: 6px 0 5px; font-size: 21px; line-height: 24px; }

.metric-strip small
{ color: #83909b; font-size: 9px; }

.metric-strip small.tone-success
{ color: var(--green); }

.metric-strip small.tone-warning
{ color: var(--orange); }

.metric-strip small.tone-danger
{ color: var(--red); }

.metric-strip small.tone-info
{ color: var(--blue); }

.resource-owner-scope > .button
{ flex: none; }

.gpu-operations-filters > .button
{ margin-left: auto; }

.capacity-create-footer > .button
{ justify-self: end; }

.confirm-dialog .button.danger
{ color: #fff; border-color: #b73535; background: #b73535; }

.confirm-dialog .button.danger:hover:not(:disabled)
{ background: #9f2c2c; border-color: #9f2c2c; }

.finance-driver-detail > .button
{ margin-top: auto; align-self: flex-start; }
:root {
  font-family: Inter, "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  color: #17202a;
  background: #f3f5f7;
  font-synthesis: none;
  --ink: #17202a;
  --muted: #697586;
  --line: #dfe4e8;
  --soft-line: #edf0f2;
  --surface: #ffffff;
  --canvas: #f5f7f8;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #16865c;
  --green-soft: #e9f7f1;
  --orange: #c76b12;
  --orange-soft: #fff3e4;
  --red: #c23b3b;
  --red-soft: #fff0f0;
  --purple: #7452bb;
  --purple-soft: #f3effc;
  --sidebar: #f7f8f9;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid #5b88ed; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
code { font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: 0; }

.status-badge { width: max-content; max-width: 100%; min-height: 24px; padding: 3px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; color: #536171; background: #f1f3f5; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.success { color: #147754; background: var(--green-soft); }
.status-badge.warning { color: #a9590e; background: var(--orange-soft); }
.status-badge.danger { color: #ad3030; background: var(--red-soft); }
.status-badge.info { color: #285fbf; background: var(--blue-soft); }
.status-badge.purple { color: #6845a5; background: var(--purple-soft); }
.capacity-contract-row span:not(.status-badge), .capacity-contract-row b, .capacity-contract-row small { display: block; }
.capacity-contract-row span:not(.status-badge) { color: #87929b; font-size: 8px; }
.topology-object-summary span:not(.status-badge), .topology-object-summary h3, .topology-object-summary p { display: block; }
.topology-object-summary span:not(.status-badge) { color: #85919a; font-size: 8px; }
@media (max-width: 680px) {
  .release-domain-selector, .service-domain-config > .service-domain-cadence:only-child { grid-template-columns: minmax(0, 1fr); }
  .service-domain-config > .service-domain-cadence:only-child > header { grid-column: 1; }
  .service-domain-config > .service-domain-cadence:only-child > label + label { border-left: 0; }
}
.abtest-metric-mapping > div > span:not(.status-badge) { color: #718078; font-size: 8px; }
.app-user-row > span:not(.status-badge) { color: #66756d; font-size: 8px; }
.platform-application-identity > .status-badge { grid-column: 2; width: max-content; margin-top: -3px; }
@media (max-width: 680px) {
  .application-create-layer { padding: 10px; align-items: end; }
  .application-create-dialog { width: 100%; height: calc(100vh - 20px); }
  .application-create-dialog > header { min-height: 82px; padding: 13px 14px; }
  .application-create-dialog > header p { max-width: 280px; }
  .application-create-steps { height: 62px; padding: 0 12px; }
  .application-create-steps li { gap: 5px; }
  .application-create-steps li > span { width: 22px; height: 22px; }
  .application-create-steps li b { padding-right: 4px; font-size: 8px; }
  .application-create-body { padding: 16px 14px; }
  .application-form-grid, .application-opening-layout, .application-opening-review { grid-template-columns: minmax(0, 1fr); }
  .application-form-grid label.span-2, .application-opening-review > .application-step-heading { grid-column: 1; }
  .application-review-card > header { align-items: flex-start; flex-direction: column; }
  .application-review-card > div { grid-template-columns: 1fr; }
  .application-review-card article { border-right: 0; border-bottom: 1px solid #e3e8ea; }
  .application-review-card article:last-child { border-bottom: 0; }
  .application-create-dialog > footer { padding: 10px 14px; }
}

@media (max-width: 1100px) {
  .version-status-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .version-status-summary > div:nth-child(2) { border-right: 0; }
  .version-status-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
}
@keyframes capacity-stream-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes diagnostic-spin { to { transform: rotate(360deg); } }

@media (max-width: 1360px) {
}

@media (max-width: 1260px) {
  .platform-home-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .platform-application-list > article { grid-template-columns: minmax(170px, .8fr) minmax(0, 2fr) 82px; gap: 10px; }
  .platform-application-list article > dl { grid-template-columns: 1.25fr 1fr 1fr .7fr; }
  .platform-application-list article > dl > div:last-child { display: none; }
  .platform-workspaces > div { grid-template-columns: 1fr; }
  .cockpit-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .cockpit-sidebar { padding: 0 10px; }
  .cockpit-topbar { gap: 10px; }
  .user-identity p, .user-identity > svg { display: none; }
  .console-split { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); }
  .optimization-main-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .plan-comparison-grid dl { grid-template-columns: 1fr 1fr; }
  .plan-comparison-grid dl div:last-child { grid-column: 1 / -1; }
  .service-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .failover-workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .failover-workflow > div:nth-child(3) { border-right: 1px solid #e1e7e4; }
}

@media (max-width: 980px) {
  .platform-home-topbar { padding: 0 16px; gap: 10px; }
  .platform-home-topbar .product-mark { min-width: 142px; }
  .platform-topbar-link { display: none; }
  .platform-home-main { width: calc(100% - 28px); padding-top: 20px; }
  .platform-recent { grid-template-columns: 1fr; }
  .platform-recent > header { min-height: 28px; border-right: 0; border-bottom: 1px solid #e4e8ea; }
  .platform-recent > div { grid-template-columns: 1fr 1fr; }
  .platform-home-layout { grid-template-columns: 1fr; }
  .platform-home-aside { grid-template-columns: 1fr 1fr; align-items: start; }
  .cockpit-shell { display: block; }
  .cockpit-sidebar { position: static; width: 100%; height: 58px; padding: 0 14px; flex-direction: row; align-items: center; }
  .sidebar-brand { flex: none; height: 58px; }
  .cockpit-sidebar .product-mark { width: 145px; }
  .sidebar-business-scope { flex: none; width: 154px; min-height: 40px; margin: 0 8px 0 0; padding: 0 9px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .sidebar-business-scope em { display: none; }
  .sidebar-application { flex: none; margin: 0 8px 0 0; padding: 0 8px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .sidebar-application-trigger { width: 132px; min-height: 40px; }
  .sidebar-application-menu { position: fixed; top: 58px; right: auto; left: 150px; width: 210px; }
  .cockpit-sidebar nav { min-width: 0; margin: 0; display: flex; overflow-x: auto; overflow-y: hidden; }
  .secondary-nav, .nav-section, .nav-flyout-group { display: contents; }
  .nav-section-label { display: none; }
  .nav-flyout-trigger > svg { display: none; }
  .nav-flyout-menu { position: fixed; z-index: 50; top: 58px; right: 12px; left: 12px; width: auto; }
  .sidebar-nav-group > span, .sidebar-bottom { display: none; }
  .cockpit-sidebar nav button { flex: none; width: auto; padding: 0 12px; }
  .cockpit-topbar { top: 0; }
  .topbar-health { display: none; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .console-split, .console-split.equal { grid-template-columns: 1fr; }
  .finance-price-form { grid-template-columns: 1fr 1fr; }
  .finance-efficiency-definitions { grid-template-columns: 1fr; }
  .finance-efficiency-definitions > div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .finance-efficiency-definitions > div:last-child { border-bottom: 0; }
  .finance-filter-bar { align-items: stretch; flex-direction: column; }
  .finance-filter-bar > label { width: 100%; }
  .finance-filter-bar > span { margin-left: 0; }
  .optimization-scope-bar { grid-template-columns: 1fr 1fr; }
  .optimization-scope-bar > div:nth-child(2) { border-right: 0; }
  .optimization-scope-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
  .plan-comparison-grid, .optimization-main-grid, .optimization-main-grid.balanced { grid-template-columns: 1fr; }
  .savings-lifecycle > div { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .usage-evidence-detail > div { grid-template-columns: 1fr 1fr; }
  .usage-evidence-detail > div > span:nth-child(2n) { border-right: 0; }
  .usage-evidence-detail > div > span:nth-last-child(-n+4) { border-bottom: 1px solid var(--soft-line); }
  .usage-evidence-detail > div > span:nth-last-child(-n+2) { border-bottom: 0; }
  .finance-governance-flow { grid-template-columns: repeat(3, 1fr); }
  .finance-governance-flow i { display: none; }
  .finance-governance-tabs { overflow-x: auto; }
  .finance-governance-tabs button { flex: none; }
  .space-access-summary { grid-template-columns: 1fr 1fr; }
  .space-access-summary > div:nth-child(2) { border-right: 0; }
  .space-access-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
  .version-source-context { grid-template-columns: 1fr 22px 1.35fr 22px 1fr; }
  .release-plan-layout { grid-template-columns: 1fr; }
  .release-plan-summary { position: static; }
  .service-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .failover-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .failover-workflow > div:nth-child(even) { border-right: 1px solid #e1e7e4; }
  .drill-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drill-evidence-grid > div:nth-child(2) { border-right: 0; }
  .drill-evidence-grid > div:nth-child(-n+2) { border-bottom: 1px solid #e8ecea; }
  .resource-target-grid { grid-template-columns: 1fr 1fr; }
  .resource-filter-grid { grid-template-columns: 1fr 1fr; }
  .application-overview-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .application-overview-content { grid-row: 2; }
  .overview-bookmarks { position: static; grid-row: 1; padding: 0 0 10px; border-bottom: 1px solid #dce2e6; border-left: 0; display: flex; justify-content: flex-start; }
  .overview-bookmarks > button { width: 38px; height: 38px; }
  .overview-bookmarks > button.active::before { top: auto; right: 8px; bottom: -11px; left: 8px; width: auto; height: 3px; border-radius: 2px 2px 0 0; }
  .overview-bookmark-tooltip { top: calc(100% + 9px); right: auto; left: 50%; transform: translateX(-50%) translateY(-4px); }
  .overview-bookmark-tooltip::after { top: -6px; right: auto; left: 50%; transform: translateX(-50%) rotate(-45deg); }
  .overview-bookmarks > button:hover .overview-bookmark-tooltip, .overview-bookmarks > button:focus-visible .overview-bookmark-tooltip { transform: translateX(-50%) translateY(0); }
  .overview-version-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-version-distribution { padding-right: 0; }
  .overview-release-health { padding: 16px 0 18px; border-top: 1px solid var(--soft-line); border-left: 0; }
}

@media (max-width: 680px) {
  .platform-home-topbar { height: auto; min-height: 112px; padding: 10px 12px; flex-wrap: wrap; }
  .platform-home-topbar .product-mark { height: 42px; flex: 1; }
  .platform-global-search { order: 3; width: 100%; margin: 0; }
  .platform-home-main { width: calc(100% - 20px); padding-top: 16px; }
  .platform-home-intro time { display: none; }
  .platform-recent > div, .platform-home-aside { grid-template-columns: 1fr; }
  .platform-application-list > article { grid-template-columns: 1fr; }
  .platform-application-list article > dl { grid-template-columns: 1fr 1fr; }
  .platform-application-list article > dl > div { border-left: 0; border-top: 1px solid #e6eaec; }
  .platform-enter-application { width: 100%; }
  .button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
  .ops-snapshot-bar { align-items: flex-start; padding: 9px 10px; flex-direction: column; gap: 4px; }
  .resource-owner-scope { align-items: stretch; flex-wrap: wrap; }
  .resource-owner-scope > div { width: 100%; min-width: 0; }
  .resource-owner-scope label { width: calc(50% - 4px); }
  .resource-owner-scope > p { width: 100%; margin-left: 2px; }
  .resource-owner-scope > .button { width: 100%; justify-content: center; }
  .platform-scope-bar { align-items: stretch; flex-wrap: wrap; }
  .platform-scope-bar > div { width: 100%; }
  .platform-scope-bar > span { display: none; }
  .platform-scope-bar label, .platform-scope-bar > .button { width: 100%; }
  .platform-scope-bar > .button { justify-content: center; }
  .service-catalog-grid { grid-template-columns: 1fr; }
  .capacity-contract-band { grid-template-columns: 1fr; }
  .capacity-contract-band > svg { margin: 0 auto; transform: rotate(90deg); }
  .failover-workflow { grid-template-columns: 1fr; }
  .failover-workflow > div { border-right: 1px solid #e1e7e4; }
  .drill-evidence-grid { grid-template-columns: 1fr; }
  .drill-evidence-grid > div { border-right: 0; border-bottom: 1px solid #e8ecea; }
  .drill-evidence-grid > div:last-child { border-bottom: 0; }
  .quota-adjust-layer { padding: 10px; align-items: end; }
  .quota-adjust-dialog { max-height: calc(100vh - 20px); }
  .quota-adjust-dialog > header { min-height: 74px; padding: 13px 14px; }
  .quota-adjust-body { padding: 14px; }
  .quota-direction-control { width: 100%; }
  .quota-adjust-fields { grid-template-columns: 1fr; }
  .quota-adjust-facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .quota-adjust-facts > div:nth-child(2) { border-right: 0; }
  .quota-adjust-facts > div:nth-child(3) { padding-left: 0; }
  .quota-adjust-dialog > footer { padding: 10px 14px; }
  .resource-pool-create-layer { padding: 10px; align-items: end; }
  .resource-pool-create-dialog { height: calc(100vh - 20px); }
  .resource-pool-create-dialog > header { min-height: 74px; padding: 12px 14px; }
  .resource-pool-create-steps { min-height: 52px; padding: 7px 12px; }
  .resource-pool-create-steps > div { grid-template-columns: 24px minmax(0, 1fr); gap: 5px; }
  .resource-pool-create-steps > div > span { width: 24px; height: 24px; }
  .resource-pool-create-steps > div > svg { display: none; }
  .resource-pool-create-body { padding: 14px; }
  .resource-pool-form-grid, .resource-filter-grid { grid-template-columns: 1fr; }
  .resource-pool-form-grid label.span-2 { grid-column: 1; }
  .resource-target-grid { grid-template-columns: 1fr 1fr; }
  .resource-trait-row { grid-template-columns: 1fr 1fr; }
  .resource-trait-row > span, .resource-trait-row > .button { grid-column: 1 / -1; }
  .resource-trait-row > .button { justify-content: center; }
  .resource-preview-heading { align-items: stretch; flex-direction: column; }
  .resource-preview-heading .button { width: 100%; justify-content: center; }
  .resource-pool-review-facts { grid-template-columns: 1fr 1fr; }
  .resource-pool-review-facts > div:nth-child(2) { border-right: 0; }
  .resource-pool-review-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .resource-allocation-comparison { grid-template-columns: 1fr; }
  .resource-allocation-comparison > svg { transform: rotate(90deg); }
  .resource-allocation-comparison section.target { padding-top: 12px; padding-left: 0; border-top: 2px solid #4a9675; border-left: 0; }
  .resource-pool-create-dialog > footer { padding: 9px 12px; }
  .agent-launcher { right: 12px; bottom: 12px; }
  .agent-panel { width: 100%; }
  .agent-start { padding: 28px 18px 18px; }
  .confirm-layer { padding: 12px; align-items: end; }
  .confirm-dialog { padding: 16px; grid-template-columns: 38px minmax(0, 1fr); }
  .confirm-dialog footer { display: grid; grid-template-columns: 1fr 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-heading h1 { font-size: 22px; }
  .release-task-steps { min-height: 50px; padding: 0 10px; }
  .release-task-steps li { gap: 5px; }
  .release-task-steps li > span { width: 20px; height: 20px; }
  .release-task-steps li:not(:last-child)::after { left: 26px; right: 7px; }
  .release-task-steps li b { padding-right: 4px; font-size: 8px; }
  .release-readiness-grid { grid-template-columns: 1fr; gap: 18px; }
  .release-readiness-grid > div + div { padding: 18px 0 0; border-top: 1px solid var(--soft-line); border-left: 0; }
  .release-execution-header { align-items: flex-start; flex-direction: column; }
  .release-execution-header .release-actions { width: 100%; }
  .release-runtime-evidence { grid-template-columns: 1fr; }
  .release-runtime-evidence > div:last-child { padding: 18px 0 0; border-top: 1px solid var(--soft-line); border-left: 0; }
  .staging-target { grid-template-columns: 1fr; }
  .staging-target > div, .staging-target > div:first-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .staging-target > div:last-child { border-bottom: 0; }
  .heading-actions { width: 100%; min-width: 0; flex-wrap: wrap; overflow: visible; }
  .cockpit-sidebar { height: 52px; overflow: hidden; }
  .sidebar-brand { height: 52px; }
  .cockpit-sidebar .product-mark { min-width: 112px; }
  .cockpit-sidebar .product-mark small { display: none; }
  .workspace-launcher-trigger { width: 32px; }
  .workspace-launcher-content { padding: 24px 20px; }
  .sidebar-business-scope { display: none; }
  .sidebar-application { padding-right: 6px; }
  .sidebar-application-trigger { width: 70px; min-height: 38px; }
  .sidebar-application-home { width: 40px; padding: 0; justify-content: center; }
  .sidebar-application-home span { display: none; }
  .sidebar-application-switch { width: 30px; }
  .sidebar-application-menu { top: 52px; right: 10px; left: 10px; width: auto; }
  .cockpit-sidebar nav button { width: 42px; padding: 0; justify-content: center; }
  .cockpit-sidebar nav button b, .cockpit-sidebar nav button em { display: none; }
  .secondary-nav button { width: auto; padding: 0 10px; }
  .secondary-nav button b { display: block; }
  .nav-flyout-menu { top: 52px; }
  .nav-flyout-menu > span, .nav-flyout-menu > button b, .nav-flyout-menu > button em { display: block; }
  .cockpit-topbar { height: auto; min-height: 86px; padding: 8px 12px; align-content: center; flex-wrap: wrap; }
  .cockpit-topbar > .topbar-spacer { display: none; }
  .workspace-select { order: 1; min-width: 0; margin-left: 0; font-size: 10px; }
  .resource-pool-filter { order: 1; width: min(178px, calc(100vw - 92px)); margin-left: 0; }
  .application-context { order: 1; margin-left: 0; }
  .topbar-signals { order: 3; width: 100%; }
  .user-menu { order: 2; margin-left: auto; }
  .user-identity { min-height: 38px; padding-left: 0; border-left: 0; display: flex; }
  .user-todo-popover { position: fixed; top: 50px; right: 10px; left: 10px; width: auto; }
  .business-application-filter { width: 100%; }
  .business-application-trigger { width: 100%; min-width: 0; }
  .business-application-menu { position: fixed; top: 150px; right: 12px; left: 12px; width: auto; }
  .overview-runtime-section > .section-title { align-items: stretch; flex-direction: column; gap: 10px; }
  .service-domain-filter { width: 100%; overflow: hidden; }
  .service-domain-filter button { min-width: 0; padding: 0 5px; flex: 1; }
  .overview-version-chart { grid-template-columns: 102px minmax(0, 1fr); gap: 12px; }
  .overview-version-donut { width: 96px; }
  .work-order-review-layer { padding: 10px; align-items: end; }
  .work-order-review-dialog { max-height: calc(100vh - 20px); }
  .work-order-review-dialog > header { min-height: 72px; padding: 13px 14px; }
  .work-order-review-body { padding: 0 14px; }
  .work-order-facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .work-order-facts > div, .work-order-facts > div:first-child, .work-order-facts > div:last-child { padding: 0 10px; }
  .work-order-facts > div:nth-child(2) { border-right: 0; }
  .work-order-diff { grid-template-columns: 1fr; }
  .work-order-diff > svg { transform: rotate(90deg); }
  .work-order-evidence { grid-template-columns: 1fr; gap: 9px; }
  .work-order-review-dialog > footer { padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .space-access-summary { grid-template-columns: 1fr; }
  .space-access-summary > div, .space-access-summary > div:nth-child(2) { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .space-access-summary > div:last-child { border-bottom: 0; }
  .space-settings-page .section-title { align-items: stretch; flex-direction: column; gap: 9px; }
  .space-settings-page .section-title > div { display: block; }
  .space-settings-page .section-title > div > span { margin-top: 3px; display: block; line-height: 15px; }
  .space-settings-page .section-title > .button { width: max-content; }
  .role-matrix-actions { width: 100%; }
  .role-matrix-actions .button { flex: 1; }
  .space-modal-layer { padding: 10px; align-items: end; }
  .space-modal-body { padding: 14px; }
  .space-modal > footer { padding: 10px 14px; }
  .uap-policy-tabs { padding-right: 6px; padding-left: 6px; }
  .uap-policy-tabs button { flex: 1; padding: 0 7px; justify-content: center; font-size: 9px; }
  .uap-policy-view { padding: 14px 12px; }
  .uap-policy-view .section-title { align-items: stretch; flex-direction: column; gap: 9px; }
  .uap-policy-view .section-title > div { display: block; }
  .uap-policy-view .section-title > div > span { margin-top: 3px; display: block; line-height: 15px; }
  .uap-policy-view .section-title > .button { width: max-content; }
  .uap-toolbar { align-items: stretch; flex-direction: column; }
  .uap-toolbar > span { padding-left: 2px; }
  .uap-modal-layer { padding: 10px; align-items: end; }
  .uap-modal { max-height: calc(100vh - 20px); }
  .uap-modal-body { padding: 14px; }
  .uap-modal > footer { padding: 10px 14px; }
  .policy-form { grid-template-columns: 1fr; }
  .uap-overflow-switch, .uap-policy-preview { grid-column: 1; }
  .uap-route-preview, .uap-delete-fact { padding: 9px; grid-template-columns: auto minmax(60px, 1fr) 16px auto minmax(70px, 1fr); }
  .uap-policy-preview { grid-template-columns: minmax(70px, 1fr) 16px minmax(70px, 1fr) 16px minmax(70px, 1fr); }
  .version-source-context { grid-template-columns: 1fr; }
  .version-source-context > svg { display: none; }
  .version-source-context > div { min-height: 68px; border-bottom: 1px solid var(--soft-line); }
  .version-source-context > div:last-child { border-bottom: 0; }
  .version-management-page .section-title { align-items: stretch; flex-direction: column; gap: 9px; }
  .version-management-page .section-title > div { display: block; }
  .version-management-page .section-title > div > span { margin-top: 3px; display: block; line-height: 15px; }
  .version-management-page .section-title > .button { width: max-content; }
  .version-filter-bar { align-items: stretch; flex-direction: column; }
  .version-filter-bar label, .version-filter-bar select { width: 100%; }
  .version-filter-bar > span { margin-left: 2px; }
  .version-dialog-layer { padding: 10px; align-items: end; }
  .version-dialog { max-height: calc(100vh - 20px); }
  .version-stepper { padding: 7px 10px; }
  .version-stepper > div { justify-content: center; gap: 5px; }
  .version-stepper > div::after { display: none; }
  .version-stepper span { width: 23px; height: 23px; }
  .version-stepper b { font-size: 8px; }
  .version-dialog-body { padding: 14px; }
  .version-dialog > footer { padding: 10px 14px; }
  .version-source-options, .version-image-fields, .version-checks { grid-template-columns: 1fr; }
  .version-review-flow { grid-template-columns: 1fr; }
  .version-review-flow > svg { justify-self: center; transform: rotate(90deg); }
  .version-detail-facts { grid-template-columns: 1fr; }
  .version-detail-facts > div, .version-detail-facts > div:nth-child(2n), .version-detail-facts > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .version-detail-facts > div:last-child { border-bottom: 0; }
  .topbar-attention { width: 100%; }
  .cockpit-main { padding: 18px 12px 86px; }
  .hybrid-main { padding-top: 14px; }
  .inventory-head { display: none; }
  .domain-topology { grid-template-columns: 1fr; gap: 8px; }
  .domain-topology > i { transform: rotate(90deg); }
  .topology-dependencies { grid-template-columns: 1fr 1fr; }
  .dependency-contracts > div { padding: 10px 0; grid-template-columns: 1fr auto; gap: 6px; }
  .dependency-contracts > div > span { grid-column: 1 / -1; }
  .openapi-flow { grid-template-columns: 1fr; gap: 0; }
  .openapi-flow > div { padding: 10px 4px; }
  .openapi-flow > svg { transform: rotate(90deg); }
  .inventory-row { padding: 12px; grid-template-columns: minmax(120px, 1fr) auto; gap: 9px; }
  .inventory-row > div:nth-child(2) { justify-self: end; }
  .inventory-row > span { grid-column: 1 / -1; }
  .inventory-row > .status-badge { grid-column: 2; grid-row: 1; }
  .release-scene-tabs { display: flex; overflow-x: auto; }
  .release-scene-tabs { gap: 20px; }
  .release-scene-tabs button { flex: none; }
  .workflow-waves { grid-template-columns: 1fr; }
  .workflow-scope { grid-template-columns: 1fr; }
  .workflow-scope > div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .workflow-scope > div:last-child { border-bottom: 0; }
  .workflow-target-table { margin-left: -1px; margin-right: -1px; }
  .workflow-wave { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .workflow-wave:last-child { border-bottom: 0; }
  .workflow-wave:not(:last-child)::after { top: auto; right: calc(50% - 10px); bottom: -14px; transform: rotate(90deg); }
  .sli-row { grid-template-columns: 1fr auto; gap: 7px; }
  .sli-row.head { display: none; }
  .sli-row code, .sli-row strong { grid-column: 1; }
  .sli-row .status-badge { grid-column: 2; grid-row: 1 / 3; }
  .release-comparison { grid-template-columns: 1fr; gap: 12px; }
  .comparison-arrow { padding: 8px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
  .comparison-arrow > span { transform: rotate(90deg); }
  .comparison-actions { flex-direction: row; flex-wrap: wrap; }
  .release-summary { grid-template-columns: 1fr 1fr; }
  .release-summary > div { min-height: 73px; padding: 12px; border-bottom: 1px solid var(--soft-line); }
  .release-summary > div:nth-child(2) { border-right: 0; }
  .release-summary > div:nth-child(n+3) { border-bottom: 0; }
  .release-summary strong { font-size: 13px; }
  .focus-task { padding: 14px 12px; }
  .focus-task-heading { grid-template-columns: 34px 1fr; }
  .focus-task-heading .release-actions { grid-column: 1 / -1; }
  .focus-task .phase-timeline { display: none; }
  .cockpit-grid { gap: 12px; }
  .surface { padding: 14px 12px; }
  .section-title { align-items: flex-start; }
  .section-title > div { display: block; }
  .section-title span { display: block; margin-top: 2px; }
  .section-title > .capacity-runtime-filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacity-runtime-filters > label { width: 100%; min-width: 0; }
  .collapsible-heading { gap: 8px; }
  .collapsible-toggle { gap: 6px; }
  .collapsible-toggle span { display: block; }
  .collapsible-toggle small { display: block; margin-top: 2px; }
  .member-row, .member-list.condensed .member-row { padding: 10px 0; grid-template-columns: 34px minmax(100px, 1fr) auto; }
  .version-change { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start; }
  .member-row > .status-badge, .member-row > .button { grid-column: 3; grid-row: 1; }
  .truth-state { grid-template-columns: 1fr; gap: 9px; }
  .truth-state > svg { transform: rotate(90deg); margin-left: 9px; }
  .matrix-head { display: none; }
  .matrix-row { padding: 11px; grid-template-columns: minmax(130px, 1fr) auto; gap: 8px; }
  .matrix-row > :nth-child(2) { justify-self: end; }
  .runtime-fact, .progress-cell, .target-diagnosis, .matrix-row > div:last-child { grid-column: 1 / -1; justify-self: stretch; }
  .session-cell { display: flex; align-items: baseline; gap: 7px; }
  .capacity-control { grid-template-columns: 1fr; }
  .capacity-members > div { padding: 8px 0; grid-template-columns: 1fr auto 12px auto; }
  .capacity-members code { display: none; }
  .event-surface .event-list { display: block; }
  .event-list > div { grid-template-columns: 8px 32px minmax(100px, 1fr); }
  .event-list em { display: none; }
  .console-page-stack { gap: 12px; }
  .version-distribution, .version-distribution.compact { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .version-distribution .route-share { grid-column: 1 / -1; }
  .version-donut { width: 102px; }
  .direct-release-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .overview-convergence { grid-template-columns: 1fr; gap: 8px; }
  .overview-convergence > div, .overview-convergence > div:first-child, .overview-convergence > div:last-child { padding: 10px 0; }
  .overview-convergence > i { margin-left: 4px; text-align: left; transform: rotate(90deg); }
  .overview-attention > div { align-items: start; padding: 12px 0; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip > div { min-height: 78px; padding: 12px; border-bottom: 1px solid var(--soft-line); }
  .metric-strip > div:nth-child(2) { border-right: 0; }
  .metric-strip > div:nth-child(n+3) { border-bottom: 0; }
  .metric-strip strong { margin: 4px 0; font-size: 17px; }
  .application-overview .metric-strip strong { font-size: 14px; }
  .console-table-head, .console-table-row { min-width: 720px; }
  .trend-bars { height: 150px; gap: 3px; }
  .trend-bars span { width: min(24px, 72%); }
  .node-operation-toolbar { align-items: stretch; flex-wrap: wrap; }
  .node-operation-toolbar > span { display: none; }
  .node-operation-toolbar button { flex: 1 0 auto; justify-content: center; }
  .node-metadata-actions { align-items: flex-start; }
  .lifecycle-stage-strip { grid-template-columns: 1fr; gap: 6px; }
  .lifecycle-stage-strip > div { grid-template-columns: 24px minmax(0, 1fr); }
  .lifecycle-stage-strip > div > svg { display: none; }

  .approval-strip { grid-template-columns: 1fr 1fr; }
  .approval-strip button:nth-child(2) { border-right: 0; }
  .approval-strip button:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
}
@media (max-width: 680px) {
  .service-domain-dialog-layer { padding: 10px; align-items: end; }
  .service-domain-opening-dialog { max-height: calc(100vh - 20px); }
  .service-domain-dialog > header { min-height: 78px; padding: 13px 14px; }
  .service-domain-dialog > ol { min-width: 0; padding: 10px 14px; grid-template-columns: repeat(2, 104px); overflow-x: auto; }
  .service-domain-dialog-body { min-height: 0; padding: 14px; }
  .service-domain-form.grid, .service-domain-form.quota-grid, .service-domain-region-list, .service-domain-definition-step, .service-domain-review-step { grid-template-columns: 1fr; }
  .service-domain-context-strip { grid-template-columns: 1fr 1fr; }
  .service-domain-context-strip > div:nth-child(2) { border-right: 0; }
  .service-domain-context-strip > div:last-child { grid-column: 1 / -1; border-top: 1px solid #dce4e0; }
  .service-domain-definition-step { gap: 14px; }
  .service-domain-resource-summary { align-items: flex-start; flex-direction: column; gap: 6px; padding: 10px 12px; }
  .service-domain-resource-summary span { margin: 0; }
  .service-domain-scope-review, .service-domain-created-step > div { grid-template-columns: 1fr; }
  .service-domain-scope-review > div { border-right: 0; }
  .service-domain-created-step section { border-right: 0; border-bottom: 1px solid #dbe3df; }
  .service-domain-created-step section:last-child { border-bottom: 0; }
  .service-domain-dialog > footer { padding: 10px 14px; }
}
@media (max-width: 1100px) {
  .alert-filter-bar { grid-template-columns: minmax(220px, 1fr) 170px 170px 110px; }
}

@media (max-width: 980px) {
  .request-binding-fields { grid-template-columns: 1fr 1fr; }
  .request-binding-fields label:first-child { grid-column: 1 / -1; }
  .gpu-operations-filters { align-items: stretch; flex-wrap: wrap; }
  .gpu-operations-filters > div:first-child { width: 100%; }
  .gpu-filter-menu, .gpu-operations-filters > label { flex: 1; width: auto; min-width: 150px; }
  .gpu-operations-filters > .button { margin-left: 0; }
  .gpu-policy-guardrails, .gpu-security-summary { grid-template-columns: 1fr; }
  .gpu-recovery-policies { grid-template-columns: 1fr; }
  .gpu-policy-guardrails > div, .gpu-security-summary > div { border-right: 0; border-bottom: 1px solid #e3e8e6; }
  .gpu-recovery-policies > div { border-right: 0; border-bottom: 1px solid #e3e8e6; }
  .gpu-recovery-policies > div:last-child { border-bottom: 0; }
  .gpu-policy-guardrails > div:last-child, .gpu-security-summary > div:last-child { border-bottom: 0; }
  .gpu-finops-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gpu-finops-band > div:nth-child(3) { border-right: 0; }
  .gpu-finops-band > div:nth-child(-n+3) { border-bottom: 1px solid #e3e7e9; }
}

@media (max-width: 680px) {
  .application-request-detail .application-request-facts { grid-template-columns: 1fr 1fr; }
  .application-request-binding { padding: 14px 12px 4px; }
  .request-binding-heading { align-items: flex-start; flex-direction: column; }
  .request-binding-row > header { grid-template-columns: minmax(0, 1fr); }
  .request-binding-row > header > b { grid-column: 1 / -1; grid-row: 2; }
  .request-binding-header-actions { grid-row: 3; justify-content: space-between; }
  .request-binding-target { align-items: flex-start; flex-direction: column; gap: 5px; }
  .request-binding-pool { padding-right: 0; padding-bottom: 46px; }
  .request-binding-fields { grid-template-columns: 1fr; }
  .request-binding-fields label:first-child { grid-column: 1; }
  .request-binding-fields small { white-space: normal; }
  .request-binding-pool-action { top: auto; right: 11px; bottom: 10px; }
  .gpu-console-tabs { padding-right: 6px; padding-left: 6px; }
  .gpu-console-tabs button { padding: 0 9px; }
  .gpu-console-panel { padding: 14px 12px; overflow-x: auto; }
  .gpu-console-panel .section-title { min-width: 0; align-items: stretch; flex-direction: column; gap: 8px; }
  .gpu-console-panel .section-title > .button { width: max-content; }
  .gpu-capacity-ledger, .gpu-ops-funnel, .gpu-topology-flow, .gpu-attribution-chain { min-width: 760px; }
  .gpu-backlog-summary { min-width: 680px; }
  .gpu-inline-heading { min-width: 0; align-items: flex-start; flex-wrap: wrap; }
  .gpu-operations-filters > div:first-child { min-width: 0; }
  .gpu-filter-menu, .gpu-operations-filters > label { width: 100%; flex: none; }
  .gpu-filter-menu > div { position: fixed; z-index: 180; top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; }
  .gpu-operations-filters > .button { width: 100%; justify-content: center; }
  .gpu-dialog-layer { padding: 10px; align-items: end; }
  .gpu-dialog { max-height: calc(100vh - 20px); }
  .gpu-dialog > header { min-height: 76px; padding: 13px 14px; }
  .gpu-dialog-body { padding: 14px; }
  .gpu-dialog-grid { grid-template-columns: 1fr; }
  .gpu-dialog > footer { padding: 10px 14px; }
  .gpu-finops-band { min-width: 680px; }
  .application-gpu-capability { grid-template-columns: 22px minmax(0, 1fr); }
  .application-gpu-capability > span { grid-column: 2; padding: 8px 0 0; border-top: 1px solid #d5e4dc; border-left: 0; }
}

@media (max-width: 980px) {
  .finance-guided-flow { grid-template-columns: 1fr 1fr; padding: 8px 10px; gap: 4px; }
  .finance-workbench .console-split, .finance-workbench .console-split.equal { grid-template-columns: minmax(0, 1fr); }
  .finance-guided-flow > span { grid-column: 1 / -1; padding: 4px 6px 7px; }
  .finance-guided-flow > button em { display: none; }
  .finance-conclusion-body, .finance-attribution-layout { grid-template-columns: 1fr; }
  .finance-data-quality-metrics { grid-template-columns: 1fr 1fr; }
  .finance-data-quality-metrics > div:nth-child(2) { border-right: 0; }
  .finance-data-quality-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
  .line-variance-panel > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finance-future-risk { grid-template-columns: 1fr; }
  .finance-future-risk > .button { justify-self: start; }
  .finance-forecast-bars { gap: 8px; padding-right: 4px; padding-left: 4px; }
  .finance-publication-form > div { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .finance-period-bar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .finance-period-bar > span:nth-child(2) { padding: 8px 0 0; border-top: 1px solid #dce6e1; border-left: 0; }
  .finance-period-bar > .status-badge { justify-self: start; }
  .finance-workbench .metric-strip strong { font-size: 15px; line-height: 19px; white-space: normal; overflow-wrap: anywhere; }
  .finance-data-readiness > header { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .finance-data-readiness > header > .button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .finance-conclusion-body h2 { font-size: 15px; line-height: 21px; }
  .finance-conclusion-body dl { grid-template-columns: 1fr; }
  .finance-conclusion-body dl > div { min-height: 68px; border-right: 0; border-bottom: 1px solid #e4e9e6; }
  .finance-conclusion-body dl > div:last-child { border-bottom: 0; }
  .variance-driver-list > button { grid-template-columns: 78px minmax(90px, 1fr) 66px; }
  .variance-driver-list > button small { grid-column: 1 / -1; margin-top: 2px; }
  .line-variance-panel > div { grid-template-columns: 1fr 1fr; }
  .finance-future-risk dl { grid-template-columns: 1fr; }
  .finance-future-risk dl > div { min-height: 58px; border-right: 0; border-bottom: 1px solid #e4e9ea; }
  .finance-future-risk dl > div:last-child { border-bottom: 0; }
  .finance-future-risk > .button { width: 100%; justify-content: center; }
  .finance-vid-detail-grid { grid-template-columns: 1fr 1fr; }
  .finance-vid-detail-grid > div { border-bottom: 1px solid var(--soft-line); }
  .finance-vid-detail-grid > div:nth-child(2n) { border-right: 0; }
  .finance-vid-detail-grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .finance-forecast-scenarios { grid-template-columns: 1fr; }
  .finance-forecast-scenarios button { min-height: 50px; }
  .finance-forecast-bars { height: 210px; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; overflow: hidden; }
  .finance-forecast-bars > div { grid-template-rows: 158px 18px 16px; }
  .finance-forecast-bars > div > span { height: 158px; }
  .finance-forecast-bars b { font-size: 7px; }
  .finance-forecast-legend { flex-wrap: wrap; }
  .finance-forecast-assumption dl, .finance-publication-form > div { grid-template-columns: 1fr; }
  .finance-forecast-assumption dl > div { border-right: 0; }
  .finance-forecast-assumption dl > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--soft-line); }
  .finance-forecast-assumption dl > div:last-child { border-bottom: 0; }
  .finance-publication-form footer { display: grid; grid-template-columns: 1fr 1fr; }
}
.cockpit-shell,
.production-console,
.production-login,
.production-session-check {
  --production-border: #d8dee8;
  --production-text: #172033;
  --production-muted: #657084;
  --production-surface: #ffffff;
  --production-background: #f5f7fa;
  --production-blue: #1769d2;
  --production-green: #16794b;
  --production-red: #c53434;
  min-height: 100vh;
  color: var(--production-text);
  background: var(--production-background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.production-session-check {
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--production-muted);
}

.production-header {
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: #202a3a;
  border-bottom: 1px solid #111827;
}

.production-brand,
.production-header-actions,
.production-toolbar,
.production-scope-summary,
.production-login-brand,
.production-git-baseline,
.production-detail-status,
.production-pr-link {
  display: flex;
  align-items: center;
}

.production-brand { gap: 12px; }
.production-brand strong { font-size: 16px; }
.production-brand span { padding-left: 12px; border-left: 1px solid #566276; color: #c9d1dd; font-size: 12px; }
.production-header-actions { gap: 8px; }
.production-user { margin-right: 6px; color: #d7deea; font-size: 13px; }

.production-toolbar {
  min-height: 62px;
  padding: 10px 24px;
  gap: 14px;
  background: var(--production-surface);
  border-bottom: 1px solid var(--production-border);
}

.production-toolbar > label,
.production-form-grid label,
.production-dialog-body > label,
.production-login label {
  display: grid;
  gap: 6px;
  color: #49556a;
  font-size: 12px;
  font-weight: 600;
}

.production-toolbar > label { grid-template-columns: auto minmax(180px, 260px); align-items: center; }

.production-console select,
.production-console input,
.production-console textarea,
.production-login input {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--production-text);
  background: #fff;
  border: 1px solid #bfc8d5;
  border-radius: 4px;
  font: inherit;
  letter-spacing: 0;
}

.production-console select:focus,
.production-console input:focus,
.production-console textarea:focus,
.production-login input:focus { outline: 2px solid #b9d7ff; border-color: var(--production-blue); }

.production-segmented { display: grid; grid-template-columns: repeat(2, minmax(74px, 1fr)); border: 1px solid #bfc8d5; border-radius: 4px; overflow: hidden; }
.production-segmented button { min-height: 34px; padding: 0 14px; border: 0; background: #fff; color: #465267; cursor: pointer; }
.production-segmented button + button { border-left: 1px solid #bfc8d5; }
.production-segmented button.active { color: #fff; background: #344258; }
.production-view-tabs { display: flex; align-items: center; align-self: stretch; gap: 2px; border-left: 1px solid var(--production-border); padding-left: 12px; }
.production-view-tabs button { min-height: 34px; padding: 0 11px; color: #566276; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-weight: 600; }
.production-view-tabs button.active { color: var(--production-blue); border-bottom-color: var(--production-blue); }

.production-scope-summary { gap: 14px; flex: 1; min-width: 0; color: var(--production-muted); font-size: 12px; }
.production-scope-summary code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.production-icon-button,
.production-command-button,
.production-primary-button,
.production-danger-button {
  min-height: 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.production-icon-button { width: 36px; min-width: 36px; padding: 0; border: 1px solid #627086; color: inherit; background: transparent; }
.production-command-button { padding: 0 13px; color: #344258; background: #fff; border: 1px solid #bfc8d5; }
.production-header .production-command-button { color: #fff; background: #344258; border-color: #627086; }
.production-primary-button { padding: 0 15px; color: #fff; background: var(--production-blue); border: 1px solid #0f58b7; }
.production-danger-button { padding: 0 15px; color: #fff; background: var(--production-red); border: 1px solid #a92828; }
.production-icon-button:disabled,
.production-command-button:disabled,
.production-primary-button:disabled,
.production-danger-button:disabled { opacity: .5; cursor: not-allowed; }

.production-main { padding: 20px 24px 48px; }
.production-release-list { max-width: 1500px; margin: 0 auto; }
.production-rollout-list { margin-bottom: 24px; }
.production-section-heading { min-height: 54px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.production-section-heading h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.production-section-heading p { margin: 4px 0 0; color: var(--production-muted); font-size: 12px; }
.production-section-heading > span { color: var(--production-muted); font-size: 12px; }

.production-table { background: var(--production-surface); border: 1px solid var(--production-border); border-radius: 6px; overflow: hidden; }
.production-table-head,
.production-table-row { display: grid; grid-template-columns: minmax(170px, 1.3fr) minmax(145px, 1.1fr) 90px minmax(110px, .9fr) 120px 110px 28px; gap: 12px; align-items: center; }
.production-rollout-head,
.production-rollout-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) 100px 120px 110px 28px; gap: 12px; align-items: center; }
.production-rollout-head { min-height: 40px; padding: 0 16px; color: #566276; background: #eef2f6; border-bottom: 1px solid var(--production-border); font-size: 12px; font-weight: 700; }
.production-rollout-row { width: 100%; min-height: 58px; padding: 9px 16px; text-align: left; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e6eaf0; cursor: pointer; }
.production-rollout-row:hover { background: #f7faff; }
.production-rollout-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.production-rollout-row > span:first-child { display: grid; gap: 3px; }
.production-rollout-row code { color: #687387; font-size: 11px; }
.production-table-head { min-height: 40px; padding: 0 16px; color: #566276; background: #eef2f6; border-bottom: 1px solid var(--production-border); font-size: 12px; font-weight: 700; }
.production-table-row { width: 100%; min-height: 64px; padding: 9px 16px; text-align: left; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e6eaf0; cursor: pointer; }
.production-table-row:last-of-type { border-bottom: 0; }
.production-table-row:hover { background: #f7faff; }
.production-table-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.production-table-row > span:first-child { display: grid; gap: 3px; }
.production-table-row strong { font-size: 13px; }
.production-table-row code { color: #687387; font-size: 11px; }
.production-empty { padding: 48px 20px; text-align: center; color: var(--production-muted); font-size: 13px; }
.production-pagination { display: flex; justify-content: center; padding: 14px 0; }
.production-capacity-main { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(360px, .85fr) minmax(520px, 1.4fr); gap: 22px; }
.production-capacity-editor,
.production-capacity-results { min-width: 0; }
.production-checkbox-line { min-height: 36px; display: flex !important; grid-template-columns: auto 1fr; align-items: center; align-self: end; }
.production-checkbox-line input { min-height: auto; }
.production-capacity-plan-list { border: 1px solid var(--production-border); border-radius: 5px; overflow: hidden; }
.production-capacity-plan-list > button { width: 100%; min-height: 54px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e4e8ee; cursor: pointer; }
.production-capacity-plan-list > button:last-of-type { border-bottom: 0; }
.production-capacity-plan-list > button.active { background: #edf5ff; box-shadow: inset 3px 0 var(--production-blue); }
.production-capacity-plan-list > button > span { display: grid; gap: 3px; }
.production-capacity-plan-list code { color: var(--production-muted); font-size: 11px; }
.production-capacity-preview { margin-top: 14px; padding-top: 2px; }
.production-capacity-preview pre { max-height: 300px; overflow: auto; padding: 12px; color: #283449; background: #f1f4f8; border: 1px solid #dce2eb; border-radius: 4px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.production-capacity-publish { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }
.production-capacity-publish label { display: grid; gap: 6px; color: #49556a; font-size: 12px; font-weight: 600; }

.production-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 3px; font-style: normal; font-size: 12px; color: #3e4a5f; background: #e9edf3; }
.status-completed, .status-rolled_back, .status-ready, .status-approved { color: #0d6139; background: #dff3e8; }
.status-failed, .status-stale, .status-terminated, .status-infeasible { color: #9d2424; background: #fbe4e4; }
.status-paused, .status-blocked { color: #7a4b00; background: #fff0cf; }
.status-validating, .status-syncing, .status-rolling, .status-observing, .status-snapshotting, .status-rendering, .status-committing, .status-planning, .status-applying, .status-reserved, .status-dependency_scaling, .status-dependency_observing, .status-routing, .status-source_scaling { color: #1058a7; background: #e0edff; }
.status-pending { color: #1058a7; background: #e0edff; }
.status-passed { color: #0d6139; background: #dff3e8; }
.status-rejected, .status-expired { color: #9d2424; background: #fbe4e4; }
.status-not_issued { color: #7a4b00; background: #fff0cf; }

.production-error { margin: 12px 24px 0; padding: 10px 12px; color: #8e2525; background: #fff1f1; border: 1px solid #efbaba; border-radius: 4px; font-size: 12px; }
.production-dialog-body .production-error { margin: 0; }

.production-modal-backdrop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(17, 24, 39, .52); }
.production-modal-stacked { z-index: 100; }
.production-modal { width: min(760px, 100%); max-height: min(820px, calc(100vh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; border: 1px solid #cbd2dd; border-radius: 7px; box-shadow: 0 20px 48px rgba(13, 22, 38, .22); overflow: hidden; }
.production-create-dialog { width: min(840px, 100%); }
.production-application-create-dialog { width: min(900px, 100%); }
.production-release-detail { width: min(720px, 100%); }
.production-rollback-dialog { width: min(560px, 100%); }
.production-modal > header,
.production-modal > footer { min-height: 64px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--production-border); }
.production-modal > footer { justify-content: flex-end; border-top: 1px solid var(--production-border); border-bottom: 0; }
.production-modal header h2 { margin: 0; font-size: 17px; }
.production-modal header p { margin: 3px 0 0; color: var(--production-muted); font-size: 12px; }
.production-modal header .production-icon-button { color: #344258; border-color: #c3cad4; }
.production-dialog-body { padding: 18px; overflow: auto; }
.production-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.production-dialog-body fieldset { margin: 0 0 18px; padding: 12px; border: 1px solid var(--production-border); border-radius: 5px; }
.production-dialog-body legend { padding: 0 6px; color: #49556a; font-size: 12px; font-weight: 700; }
.production-toolbar-create-application { color: #344258; border-color: #bfc8d5; }
.production-application-group-select { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; color: #49556a; font-size: 12px; font-weight: 600; }
.production-application-region { min-height: 42px; margin-top: 12px; padding: 0 10px; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: #49556a; background: #f3f6fa; border: 1px solid #dce2eb; border-radius: 4px; font-size: 12px; }
.production-application-region span { color: var(--production-muted); }
.production-application-region code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-az-choice-list { margin-top: 10px; border-top: 1px solid #e2e6ec; }
.production-az-choice { min-height: 54px; display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(130px, .55fr); align-items: center; gap: 10px; border-bottom: 1px solid #e2e6ec; cursor: pointer; }
.production-az-choice input { min-height: auto; }
.production-az-choice > span { min-width: 0; display: grid; gap: 3px; }
.production-az-choice > span:last-child { text-align: right; }
.production-az-choice strong, .production-az-choice b { overflow: hidden; color: #344258; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.production-az-choice small { color: var(--production-muted); font-size: 11px; }
.production-quota-grid { margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.production-application-group-quota { overflow-x: auto; border-top: 1px solid #e2e6ec; }
.production-application-group-quota > div { min-width: 650px; min-height: 48px; display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(88px, .7fr)); align-items: center; gap: 10px; border-bottom: 1px solid #e2e6ec; font-size: 11px; }
.production-application-group-quota span { min-width: 0; display: grid; gap: 2px; }
.production-application-group-quota strong { color: #344258; }
.production-application-group-quota small { color: var(--production-muted); font-size: 10px; }
.production-group-choice { min-height: 48px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e5e9ef; cursor: pointer; }
.production-group-choice:last-child { border-bottom: 0; }
.production-group-choice input { min-height: auto; }
.production-group-choice span { display: grid; gap: 3px; }
.production-group-choice small { color: var(--production-muted); font-weight: 400; }
.production-rollout-stage-choice { min-height: 48px; border-bottom: 1px solid #e5e9ef; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.production-rollout-stage-choice:last-child { border-bottom: 0; }
.production-rollout-stage-choice .production-group-choice { min-width: 0; flex: 1; border-bottom: 0; }
.production-stage-order { display: flex; align-items: center; gap: 4px; }
.production-stage-order .production-icon-button { width: 28px; height: 28px; }
.production-git-baseline { gap: 9px; min-width: 0; padding: 10px 12px; color: #4b586d; background: #f1f4f8; border: 1px solid #dce2eb; border-radius: 4px; font-size: 12px; }
.production-git-baseline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-git-baseline code { color: #273348; }
.production-release-preview { display: grid; gap: 14px; }
.production-release-preview > dl { margin: 0; }

.production-detail-status { gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e2e6ec; color: var(--production-muted); font-size: 12px; }

/* One wait, stated once. `stage_since` is the stage clock, so a dialog left open
   for days still answers "how long has this been stuck" instead of restarting
   the count at every refresh. */
.production-change-stage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; padding: 10px 12px; color: #24344d; background: #f1f4f8; border: 1px solid #dce2eb; border-radius: 4px; font-size: 12px; }
.production-change-stage b { font-size: 13px; }
.production-change-stage small { color: var(--production-muted); }
.production-admission { margin-top: 14px; border: 1px solid #dce2eb; border-radius: 4px; overflow: hidden; }
.production-admission > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 9px 12px; background: #f7f8fa; border-bottom: 1px solid #e2e6ec; color: #3e4a5f; font-size: 12px; }
.production-admission ul { margin: 0; padding: 0; list-style: none; }
.production-admission li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-bottom: 1px solid #eef1f5; font-size: 12px; }
.production-admission li:last-child { border-bottom: 0; }
.production-admission li em { flex: 1 1 220px; color: #8e2525; font-style: normal; overflow-wrap: anywhere; }
.production-admission li small { color: var(--production-muted); }
.production-dialog-body .production-error b { display: block; margin-bottom: 4px; }
.production-dialog-body dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0; margin: 14px 0; border-top: 1px solid #e2e6ec; }
.production-dialog-body dt,
.production-dialog-body dd { min-width: 0; margin: 0; padding: 10px 8px; border-bottom: 1px solid #e2e6ec; font-size: 12px; }
.production-dialog-body dt { color: var(--production-muted); background: #f7f8fa; }
.production-dialog-body dd { overflow-wrap: anywhere; }
.production-pr-link { width: fit-content; gap: 7px; color: var(--production-blue); font-size: 13px; text-decoration: none; }
.production-conflicts { margin-top: 14px; border: 1px solid #efbaba; border-radius: 4px; overflow: hidden; }
.production-conflicts > div { display: grid; gap: 4px; padding: 10px 12px; color: #8e2525; background: #fff1f1; border-bottom: 1px solid #efcaca; font-size: 12px; }
.production-conflicts > div:last-child { border-bottom: 0; }
.production-target-list { margin-top: 16px; border-top: 1px solid #e2e6ec; }
.production-target-list > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e2e6ec; font-size: 12px; }
.production-target-detail { border-bottom: 1px solid #e2e6ec; }
.production-target-detail > header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.production-instance-list { border-top: 1px solid #edf0f4; }
.production-instance-list > div { min-height: 42px; display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(150px, 1fr) 90px 100px minmax(120px, 1fr); align-items: center; gap: 8px; padding: 6px 0 6px 16px; color: var(--production-muted); font-size: 11px; }
.production-instance-list > div > span { min-width: 0; display: flex; align-items: center; gap: 6px; }
.production-instance-list code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-step-list { border: 1px solid #dce2eb; border-radius: 4px; overflow: hidden; }
.production-step-list button { width: 100%; min-height: 52px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e2e6ec; text-align: left; cursor: pointer; }
.production-step-list button:last-child { border-bottom: 0; }
.production-step-list button:disabled { cursor: default; }
.production-step-list button > span { display: flex; align-items: center; gap: 9px; }
.production-step-list button > span:first-child { display: grid; gap: 3px; }
.production-step-list small { color: var(--production-muted); }
.production-rollout-reason { margin-top: 16px; display: grid; gap: 6px; color: #49556a; font-size: 12px; font-weight: 600; }
.production-rollout-evidence { min-height: 54px; margin-top: 12px; padding: 9px 12px; border: 1px solid #dce2eb; border-radius: 4px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 12px; background: #f8fafc; }
.production-rollout-evidence span { color: #536174; font-size: 12px; font-weight: 700; }
.production-rollout-evidence code { overflow: hidden; color: #2f5f52; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.production-rollout-evidence small { grid-column: 2; color: var(--production-muted); font-size: 10px; }
.production-rollback-evidence { margin-top: 14px; }
.production-rollback-evidence > div:not(.production-instance-heading) { min-height: 52px; padding: 8px 12px; border: 1px solid #dce2eb; border-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-rollback-evidence > div:nth-child(2) { border-radius: 4px 4px 0 0; }
.production-rollback-evidence > div:last-child { border-bottom: 1px solid #dce2eb; border-radius: 0 0 4px 4px; }
.production-rollback-evidence strong, .production-rollback-evidence small { display: block; }
.production-rollback-evidence strong { color: #3f4f62; font-size: 11px; }
.production-rollback-evidence small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }

.production-management-main { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(320px, .75fr) minmax(560px, 1.45fr); gap: 22px; }
.production-management-editor { min-width: 0; }
.production-management-editor fieldset { margin: 0 0 18px; padding: 12px; border: 1px solid var(--production-border); border-radius: 5px; }
.production-management-editor legend { padding: 0 6px; color: #49556a; font-size: 12px; font-weight: 700; }
.production-management-editor > label { display: grid; gap: 6px; margin-bottom: 14px; color: #49556a; font-size: 12px; font-weight: 600; }
.production-management-head, .production-management-row { display: grid; grid-template-columns: minmax(150px, 1fr) 120px minmax(210px, 1.3fr) 120px; gap: 12px; align-items: center; padding: 0 14px; }
.production-management-head, .production-audit-head { min-height: 40px; color: #566276; background: #eef2f6; border-bottom: 1px solid var(--production-border); font-size: 12px; font-weight: 700; }
.production-management-row { width: 100%; min-height: 58px; border: 0; border-bottom: 1px solid #e6eaf0; color: inherit; background: transparent; text-align: left; font-size: 12px; }
button.production-management-row { cursor: pointer; }
button.production-management-row:hover { background: #f7f9fb; }
.production-management-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--production-muted); }
.production-service-domain-main { grid-template-columns: minmax(430px, .95fr) minmax(650px, 1.35fr); }
.production-service-domain-editor textarea { min-height: 72px; resize: vertical; }
.production-wide-field { grid-column: 1 / -1; }
.production-namespace-preview { min-height: 42px; margin: -4px 0 18px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--production-muted); background: #f3f5f8; border: 1px solid #dce2ea; border-radius: 4px; font-size: 12px; }
.production-namespace-preview code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #273449; }
.production-region-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.production-region-options button { min-width: 0; min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; color: #445066; background: #fff; border: 1px solid #cbd3df; border-radius: 4px; text-align: left; cursor: pointer; }
.production-region-options button.active { color: #0f58b7; background: #edf5ff; border-color: #6aa4e8; box-shadow: inset 3px 0 #1769d2; }
.production-region-options span, .production-region-options strong, .production-region-options small { min-width: 0; display: block; }
.production-region-options strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.production-region-options small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }
.production-az-options { border: 1px solid #d8dee8; border-radius: 4px; overflow: hidden; }
.production-az-options > label { min-height: 72px; padding: 9px 10px; display: grid; grid-template-columns: 18px minmax(120px, 1.35fr) repeat(3, minmax(82px, 1fr)) auto; align-items: center; gap: 9px; border-bottom: 1px solid #e6eaf0; cursor: pointer; }
.production-az-options > label:last-child { border-bottom: 0; }
.production-az-options > label.active { background: #f0f7ff; box-shadow: inset 3px 0 #1769d2; }
.production-az-options > label.disabled { color: #8a94a5; background: #f7f8fa; cursor: not-allowed; }
.production-az-options input { min-height: auto; accent-color: #1769d2; }
.production-az-identity, .production-az-identity strong, .production-az-identity small { min-width: 0; display: block; }
.production-az-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.production-az-identity small, .production-az-capacity small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }
.production-az-capacity { min-width: 0; display: grid; gap: 3px; }
.production-az-capacity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.production-service-domain-head, .production-service-domain-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(110px, .8fr) minmax(150px, 1.1fr) 110px 110px 24px; align-items: center; gap: 12px; padding: 0 14px; }
.production-service-domain-head { min-height: 40px; color: #566276; background: #eef2f6; border-bottom: 1px solid var(--production-border); font-size: 12px; font-weight: 700; }
.production-service-domain-row { width: 100%; min-height: 64px; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e6eaf0; text-align: left; cursor: pointer; }
.production-service-domain-row:hover { background: #f7faff; }
.production-service-domain-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.production-service-domain-row > span:first-child { display: grid; gap: 3px; }
.production-service-domain-row code { color: var(--production-muted); font-size: 11px; }
.production-service-domain-detail, .production-git-change-detail { width: min(980px, 100%); }
.production-domain-description { margin: 12px 0 18px; color: #48546a; font-size: 12px; line-height: 1.6; }
.production-instance-heading { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-instance-heading h3 { margin: 0; font-size: 14px; }
.production-instance-heading span { color: var(--production-muted); font-size: 11px; }
.production-instance-table { overflow-x: auto; border: 1px solid #dce2ea; border-radius: 4px; }
.production-instance-head, .production-instance-row { min-width: 820px; display: grid; grid-template-columns: minmax(150px, 1fr) 100px minmax(180px, 1.2fr) minmax(180px, 1.2fr) 110px; align-items: center; gap: 10px; padding: 0 11px; }
.production-instance-head { min-height: 36px; color: #566276; background: #f1f4f8; font-size: 11px; font-weight: 700; }
.production-instance-row { min-height: 58px; border-top: 1px solid #e6eaf0; font-size: 11px; }
.production-instance-row > span:first-child { min-width: 0; display: grid; gap: 3px; }
.production-instance-row small { color: var(--production-muted); }
.production-instance-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-git-change-link { margin-top: 14px; }
.production-git-change-state { min-height: 58px; padding: 10px 12px; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; color: #1769d2; background: #edf5ff; border: 1px solid #c6ddf7; border-radius: 4px; }
.production-git-change-state > div, .production-git-change-state strong, .production-git-change-state small { min-width: 0; display: block; }
.production-git-change-state small { margin-top: 4px; color: var(--production-muted); font-size: 11px; }
.production-git-file-list { border: 1px solid #dce2ea; border-radius: 4px; overflow: hidden; }
.production-git-file-list > div:not(.production-empty) { min-height: 54px; padding: 8px 11px; display: grid; gap: 5px; border-bottom: 1px solid #e6eaf0; }
.production-git-file-list > div:last-child { border-bottom: 0; }
.production-git-file-list span { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 8px; }
.production-git-file-list i { color: #1769d2; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.production-git-file-list code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.production-git-file-list small { color: var(--production-muted); font-size: 10px; }
.production-preview-diff-list pre { max-height: 240px; margin: 3px 0 0; padding: 9px; overflow: auto; border: 1px solid #d8dee8; background: #f7f9fc; color: #1d2939; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.production-version-main { grid-template-columns: minmax(360px, .75fr) minmax(680px, 1.45fr); }
.production-version-source { min-height: 54px; margin: 0 0 18px; padding: 9px 11px; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; color: #1769d2; background: #edf5ff; border: 1px solid #c6ddf7; border-radius: 4px; }
.production-version-source span, .production-version-source strong, .production-version-source code { min-width: 0; display: block; }
.production-version-source strong, .production-version-source code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-version-source strong { color: #273449; font-size: 12px; }
.production-version-source code { margin-top: 4px; color: var(--production-muted); font-size: 10px; }
.production-version-head, .production-version-row { display: grid; grid-template-columns: minmax(120px, .85fr) 105px 105px 105px minmax(110px, .8fr) 110px 24px; align-items: center; gap: 10px; padding: 0 13px; }
.production-version-head { min-height: 40px; color: #566276; background: #eef2f6; border-bottom: 1px solid var(--production-border); font-size: 11px; font-weight: 700; }
.production-version-row { width: 100%; min-height: 62px; color: var(--production-text); background: #fff; border: 0; border-bottom: 1px solid #e6eaf0; text-align: left; cursor: pointer; }
.production-version-row:hover { background: #f7faff; }
.production-version-row > span { min-width: 0; }
.production-version-row > span:first-child { display: grid; gap: 3px; }
.production-version-row small { color: var(--production-muted); font-size: 10px; }
.production-version-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--production-muted); font-size: 11px; }
.production-version-detail { width: min(920px, 100%); }
.production-version-artifacts, .production-version-validations { margin-bottom: 16px; border: 1px solid #dce2ea; border-radius: 4px; overflow: hidden; }
.production-version-artifacts > div { min-height: 48px; padding: 7px 10px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(260px, 1.3fr); align-items: center; gap: 10px; border-bottom: 1px solid #e6eaf0; }
.production-version-artifacts > div:last-child, .production-version-validations > div:last-child { border-bottom: 0; }
.production-version-artifacts span { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; }
.production-version-artifacts i { color: #1769d2; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.production-version-artifacts code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.production-version-validations > div { min-height: 54px; padding: 8px 10px; display: grid; grid-template-columns: 18px minmax(0, 1fr) 110px; align-items: center; gap: 9px; color: #16794b; border-bottom: 1px solid #e6eaf0; }
.production-version-validations span, .production-version-validations strong, .production-version-validations small { min-width: 0; display: block; }
.production-version-validations small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }
.production-version-validations code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--production-muted); font-size: 10px; }
.production-version-actions { margin-top: 18px; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid #dce2ea; }
.production-version-actions label { display: grid; gap: 6px; color: #49556a; font-size: 12px; font-weight: 600; }
.production-version-actions > div { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.production-policy-main { max-width: 900px; margin: 0 auto; }
.uap-policy-workspace { max-width: 1500px; display: grid; grid-template-columns: minmax(480px, .95fr) minmax(540px, 1.05fr); gap: 22px; }
.uap-route-editor, .uap-strategy-editor, .uap-vendor-editor { margin: 16px 0; border: 1px solid #dce2ea; border-radius: 5px; overflow: hidden; }
.uap-route-editor > .production-instance-heading, .uap-vendor-editor > .production-instance-heading { padding: 0 12px; background: #f5f7fa; }
.uap-route-editor > div:not(.production-instance-heading) { min-height: 54px; padding: 7px 10px; border-top: 1px solid #e6eaf0; display: grid; grid-template-columns: minmax(170px, 1fr) 110px 110px; align-items: center; gap: 10px; }
.uap-route-editor > div > label:not(.production-checkbox-line), .uap-vendor-editor > div > label { display: grid; gap: 3px; color: var(--production-muted); font-size: 10px; }
.uap-route-editor input[type="number"] { min-height: 32px; }
.uap-strategy-editor { padding: 11px 12px; }
.uap-strategy-editor .production-form-grid { margin-top: 10px; }
.uap-vendor-editor > div:not(.production-instance-heading) { min-height: 56px; padding: 8px 10px; border-top: 1px solid #e6eaf0; display: grid; grid-template-columns: minmax(220px, 1fr) 150px 32px; align-items: end; gap: 9px; }
.production-policy-results { min-width: 0; }
.uap-revision-list { border: 1px solid #dce2ea; border-radius: 5px; overflow: hidden; }
.uap-revision-list > button { width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-bottom: 1px solid #e6eaf0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--production-text); background: #fff; text-align: left; cursor: pointer; }
.uap-revision-list > button:last-child { border-bottom: 0; }
.uap-revision-list > button.active { background: #edf5ff; box-shadow: inset 3px 0 #1769d2; }
.uap-revision-list span, .uap-revision-list strong, .uap-revision-list code { min-width: 0; display: block; }
.uap-revision-list code { margin-top: 3px; overflow: hidden; color: var(--production-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.uap-policy-detail { margin-top: 16px; }
.uap-target-list { margin-top: 14px; border: 1px solid #dce2ea; border-radius: 5px; overflow: hidden; }
.uap-target-list > div:not(.production-empty) { min-height: 62px; padding: 8px 11px; border-bottom: 1px solid #e6eaf0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uap-target-list > div:last-child { border-bottom: 0; }
.uap-target-list span, .uap-target-list strong, .uap-target-list code, .uap-target-list small { min-width: 0; display: block; }
.uap-target-list code { margin-top: 3px; overflow: hidden; color: #566276; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.uap-target-list small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }
.capacity-az-filter { border: 1px solid #dce2ea; border-radius: 4px; overflow: hidden; }
.capacity-az-filter > label { min-height: 48px; padding: 7px 10px; border-bottom: 1px solid #e6eaf0; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.capacity-az-filter > label:last-child { border-bottom: 0; }
.capacity-az-filter input { min-height: auto; }
.capacity-az-filter span, .capacity-az-filter strong, .capacity-az-filter small { min-width: 0; display: block; }
.capacity-az-filter small { margin-top: 3px; color: var(--production-muted); font-size: 10px; }
.capacity-allocation-table { margin-top: 14px; border: 1px solid #dce2ea; border-radius: 5px; overflow-x: auto; }
.capacity-allocation-table > div { min-width: 760px; min-height: 54px; padding: 8px 10px; border-top: 1px solid #e6eaf0; display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(88px, .7fr)) minmax(145px, 1fr); align-items: center; gap: 10px; color: #4f5d70; font-size: 11px; }
.capacity-allocation-table > div.head { min-height: 36px; border-top: 0; color: #68758a; background: #f2f5f8; font-size: 10px; font-weight: 700; }
.capacity-allocation-table span, .capacity-allocation-table strong, .capacity-allocation-table code { min-width: 0; }
.capacity-allocation-table span:first-child { display: grid; gap: 3px; }
.capacity-allocation-table code { overflow: hidden; color: var(--production-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.capacity-allocation-table > div > strong { color: #1769d2; }
.group-capacity-workloads,
.group-capacity-placements { margin-top: 14px; overflow-x: auto; border: 1px solid var(--production-border); border-radius: 4px; }
.group-capacity-workloads > div,
.group-capacity-placements > div { min-width: 720px; min-height: 52px; padding: 8px 10px; display: grid; align-items: center; gap: 10px; border-top: 1px solid #e6eaf0; color: #4f5d70; font-size: 11px; }
.group-capacity-workloads > div { grid-template-columns: minmax(170px, 1.2fr) 80px 120px 100px minmax(130px, 1fr); }
.group-capacity-placements > div { grid-template-columns: minmax(160px, 1.2fr) 105px 100px minmax(190px, 1.2fr) 80px; }
.group-capacity-workloads > div.head,
.group-capacity-placements > div.head { min-height: 36px; border-top: 0; color: #68758a; background: #f2f5f8; font-size: 10px; font-weight: 700; }
.group-capacity-workloads span,
.group-capacity-placements span { min-width: 0; }
.group-capacity-workloads > div > span:first-child,
.group-capacity-placements > div > span:first-child { display: grid; gap: 3px; }
.group-capacity-workloads code,
.group-capacity-placements code { overflow: hidden; color: var(--production-muted); text-overflow: ellipsis; white-space: nowrap; }
.group-capacity-placements small { color: var(--production-muted); }
.group-capacity-dependencies { margin-top: 14px; border-top: 1px solid #e2e6ec; }
.group-capacity-dependencies > div { min-height: 50px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; border-bottom: 1px solid #e2e6ec; color: #425067; }
.group-capacity-dependencies svg { color: var(--production-blue); }
.group-capacity-dependencies span { min-width: 0; display: grid; gap: 3px; }
.group-capacity-dependencies small { color: var(--production-muted); font-size: 11px; }
.production-audit-head, .production-audit-row { display: grid; grid-template-columns: 130px minmax(160px, 1fr) minmax(240px, 1.4fr) 150px 90px; gap: 12px; align-items: center; padding: 0 14px; }
.production-audit-row { min-height: 54px; border-bottom: 1px solid #e6eaf0; font-size: 12px; }
.production-success { margin-top: 12px; padding: 10px 12px; color: #0d6139; background: #e3f5eb; border: 1px solid #a9ddc0; border-radius: 4px; font-size: 12px; }
.production-login { display: grid; place-items: center; padding: 24px; }
.production-login form, .production-login > section { width: min(380px, 100%); padding: 26px; display: grid; gap: 16px; background: #fff; border: 1px solid var(--production-border); border-radius: 7px; box-shadow: 0 14px 36px rgba(25, 36, 54, .12); }
.production-login-brand { gap: 9px; color: #273449; }
.production-login h1 { margin: 4px 0 2px; font-size: 21px; }
.production-login .production-primary-button { width: 100%; margin-top: 4px; }
.production-login-error { padding: 9px 10px; color: #8e2525; background: #fff1f1; border: 1px solid #efbaba; border-radius: 4px; font-size: 12px; }

.is-spinning { animation: production-spin 1s linear infinite; }
@keyframes production-spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .production-toolbar { align-items: stretch; flex-wrap: wrap; }
  .production-toolbar > label { flex: 1 1 300px; }
  .production-scope-summary { order: 3; flex-basis: 100%; }
  .production-table { overflow-x: auto; }
  .production-table-head, .production-table-row { min-width: 900px; }
  .production-rollout-head, .production-rollout-row { min-width: 760px; }
	.uap-policy-workspace { grid-template-columns: 1fr; }
  .production-capacity-main { grid-template-columns: 1fr; }
	.production-management-main { grid-template-columns: 1fr; }
	.production-management-head, .production-management-row { min-width: 760px; }
	.production-service-domain-head, .production-service-domain-row { min-width: 780px; }
	.production-version-head, .production-version-row { min-width: 790px; }
	.production-az-options { overflow-x: auto; }
	.production-az-options > label { min-width: 760px; }
	.production-audit-head, .production-audit-row { min-width: 900px; }
}

@media (max-width: 620px) {
  .production-header { padding: 10px 14px; align-items: flex-start; }
  .production-brand span, .production-user { display: none; }
  .production-toolbar, .production-main { padding-left: 14px; padding-right: 14px; }
  .production-toolbar > label { grid-template-columns: 1fr; }
  .production-scope-summary { display: grid; grid-template-columns: 1fr 1fr; }
  .production-scope-summary code { grid-column: 1 / -1; }
	.production-view-tabs { order: 3; width: 100%; overflow-x: auto; border-left: 0; border-top: 1px solid var(--production-border); padding: 8px 0 0; }
	.production-view-tabs button { white-space: nowrap; }
  .production-primary-button { flex: 1; }
  .production-modal-backdrop { padding: 0; align-items: end; }
  .production-modal { width: 100%; max-height: 94vh; border-radius: 7px 7px 0 0; }
	.production-form-grid { grid-template-columns: 1fr; }
	.production-application-group-select { grid-template-columns: 1fr; }
	.production-az-choice { grid-template-columns: 20px minmax(0, 1fr); padding: 8px 0; }
	.production-az-choice > span:last-child { grid-column: 2; text-align: left; }
	.production-wide-field { grid-column: auto; }
	.production-region-options { grid-template-columns: 1fr; }
	.production-version-actions { grid-template-columns: 1fr; }
	.production-version-actions > div { grid-column: auto; flex-wrap: wrap; }
	.uap-route-editor > div:not(.production-instance-heading) { grid-template-columns: 1fr 1fr; }
	.uap-route-editor .production-checkbox-line { grid-column: 1 / -1; }
	.uap-vendor-editor > div:not(.production-instance-heading) { grid-template-columns: minmax(0, 1fr) 110px 32px; }
  .production-dialog-body dl { grid-template-columns: 105px minmax(0, 1fr); }
}

/* 租户与资源组视图（HLD v0.55 / PR-BO-41） */
.production-hint { margin: 8px 0 0; color: var(--production-muted); font-size: 12px; line-height: 1.6; }
.production-tier-tag { margin-left: 6px; padding: 1px 6px; font-style: normal; font-size: 11px; color: #344258; background: #eef1f6; border: 1px solid #d5dbe4; border-radius: 3px; }
.production-inline-field { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--production-muted); }
.production-tenant-workspace { display: grid; gap: 20px; }
.production-tenant-usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 24px 20px; }
.production-tenant-usage dt { font-size: 12px; color: var(--production-muted); }
.production-tenant-usage dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.production-tenant-usage dd small { display: block; font-weight: 400; font-size: 11px; color: var(--production-muted); }

/* 三列并排：逻辑额度 / 物理可用 / 业务可用容量。短板列高亮，读数的人一眼看出卡在哪一侧。 */
.production-quota-table { width: calc(100% - 48px); margin: 12px 24px 20px; border-collapse: collapse; font-size: 12px; }
.production-quota-table th { padding: 8px 10px; text-align: left; font-weight: 600; color: var(--production-muted); border-bottom: 1px solid #d9dee6; }
.production-quota-table td { padding: 9px 10px; border-bottom: 1px solid #eceff4; vertical-align: top; }
.production-quota-table td small { display: block; font-size: 11px; color: var(--production-muted); }
.production-quota-table td.is-binding { background: #fff8ec; }

.production-resource-group { margin: 0 24px 16px; border: 1px solid #dfe4ec; border-radius: 5px; }
.production-resource-group > header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #eceff4; }
.production-resource-group > header > div { flex: 1; }
.production-resource-group > header small { display: block; font-size: 11px; color: var(--production-muted); }
.production-resource-group > header > span { font-size: 12px; color: var(--production-muted); }
.production-icon-button .is-rotated { transform: rotate(90deg); }
.production-shortfall-hint { margin: 10px 12px 0; padding: 9px 11px; font-size: 12px; line-height: 1.6; color: #7a4b10; background: #fff6e6; border: 1px solid #f0d6a8; border-radius: 4px; }
.production-resource-group .production-hint { margin: 10px 12px 0; }
.production-cluster-breakdown { padding: 0 12px 12px; display: grid; gap: 8px; }
.production-cluster-breakdown details { border: 1px solid #e6eaf0; border-radius: 4px; }
.production-cluster-breakdown summary { display: flex; gap: 10px; align-items: center; padding: 8px 10px; cursor: pointer; font-size: 12px; }
.production-cluster-breakdown summary span { flex: 1; color: var(--production-muted); }
.production-cluster-breakdown summary i { font-style: normal; font-size: 11px; color: var(--production-muted); }
.production-cluster-breakdown .production-quota-table { width: calc(100% - 20px); margin: 0 10px 10px; }

/* ---------------------------------------------------------------------------
   Console shell and Workspace presentation layer.

   These classes belong to the single production Console (`src/console/**`). The
   `console-` prefix keeps them separable from the `production-*` rules that the
   legacy views still use, so a rule cannot silently apply to both trees while the
   migration is in progress.
   --------------------------------------------------------------------------- */

.console-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.console-shell-header { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.console-shell-brand { display: flex; align-items: baseline; gap: 8px; }
.console-shell-brand strong { font-size: 14px; }
.console-shell-brand span { color: var(--muted); font-size: 11px; }
.console-shell-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* The ownership chain reads as one line, in the order the LLD fixes it. */
.console-scope-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.console-scope-segment { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.console-scope-caption { color: var(--muted); }
.console-scope-segment select { min-height: 30px; max-width: 260px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 600; }
.console-scope-separator { width: 1px; align-self: stretch; background: var(--line); }
/* The tenant model being off is a property of the deployment, not a warning about the
   operator's selection, so it reads as a quiet caption on the same row rather than as an
   alert that would sit next to real failures. */
.console-scope-notice { color: var(--muted); font-size: 12px; }

.console-scope-disclosure { position: relative; min-width: 0; max-width: min(420px, 100%); }
.console-scope-disclosure > summary { min-width: 0; min-height: 38px; padding: 4px 10px; border: 1px solid #dfe5e3; border-radius: 5px; display: flex; align-items: center; gap: 9px; color: #286b52; background: #f8faf9; cursor: pointer; list-style: none; }
.console-scope-disclosure > summary::-webkit-details-marker { display: none; }
.console-scope-disclosure > summary b { min-width: 0; overflow: hidden; color: #263d35; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.console-scope-disclosure > summary > svg:last-child { flex: none; margin-left: auto; color: #70827a; }
.console-scope-disclosure[open] > summary > svg:last-child { transform: rotate(180deg); }
.console-scope-disclosure-panel { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; width: min(360px, calc(100vw - 24px)); padding: 12px; border: 1px solid #dce4e0; border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgba(18, 30, 39, .16); }
.console-scope-disclosure-panel .console-scope-bar { display: grid; gap: 9px; padding: 0; border: 0; }
.console-scope-disclosure-panel .console-scope-segment { min-width: 0; display: grid; grid-template-columns: 105px minmax(0, 1fr); }
.console-scope-disclosure-panel .console-scope-segment select { min-width: 0; width: 100%; max-width: none; }
.console-scope-disclosure-panel .console-scope-separator { width: auto; height: 1px; }
.console-scope-disabled-context { color: var(--muted); font-size: 11px; }

/* F-006: the "当前应用" filter is a resident, flat row of selects (no fold, no click-to-open).
   It reuses the ScopeBar row but drops the standalone-bar chrome so it flows inline with a
   leading label and the trailing option count. */
.application-context-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #e0e6e3; border-radius: 6px; background: #f8faf9; }
.application-context-label { display: inline-flex; align-items: center; gap: 6px; color: #286b52; font-size: 12px; font-weight: 600; }
.application-context-label > svg { color: #237657; }
.application-context-bar .console-scope-bar { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; }
.application-context-count { color: #6d7e76; font-size: 11px; white-space: nowrap; }
.console-ownership-context { margin: -8px 0 18px; color: #60766b; font-size: 12px; }
.application-overview-empty { min-height: 220px; display: grid; justify-items: center; align-content: center; gap: 12px; color: #557267; background: #fff; border: 1px solid #e3e8e5; border-radius: 6px; }
.application-overview-empty strong { color: #30463d; font-size: 14px; }
@media (max-width: 680px) {
  .cockpit-topbar > .console-scope-disclosure { flex: 1; max-width: none; }
  .console-scope-disclosure-panel { top: calc(100% + 6px); width: calc(100vw - 24px); }
  /* On a narrow viewport the resident row becomes a stacked column so no select is clipped. */
  .application-context-bar { flex-direction: column; align-items: stretch; }
  .application-context-bar .console-scope-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .application-context-bar .console-scope-segment { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .application-context-bar .console-scope-segment select { width: 100%; max-width: none; }
}

.console-shell-body { flex: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); align-items: start; }
.console-nav { padding: 14px 10px 24px; background: var(--sidebar); border-right: 1px solid var(--line); position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
.console-nav-mode + .console-nav-mode { margin-top: 14px; }
.console-nav-mode-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px; }
.console-nav-group + .console-nav-group { margin-top: 10px; }
.console-nav-group-label { font-size: 12px; font-weight: 600; color: #536171; padding: 0 8px 4px; }
.console-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.console-nav-list button { width: 100%; min-height: 30px; padding: 0 8px; display: flex; align-items: center; border: 0; border-radius: 4px; background: transparent; color: #445261; font-size: 13px; text-align: left; cursor: pointer; }
.console-nav-list button:hover { background: #eceff2; }
.console-nav-list button.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.console-main { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.console-page { display: grid; gap: 14px; }
.console-page-heading { display: flex; align-items: baseline; gap: 10px; }
.console-page-heading h2 { font-size: 16px; }
.console-page-heading p { color: var(--muted); font-size: 12px; }
.console-page-actions { display: flex; justify-content: flex-end; gap: 8px; }

.console-table { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.console-table-head, .console-table-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(90px, 1fr)) 60px; gap: 10px; align-items: center; padding: 9px 12px; text-align: left; font-size: 12px; }
.console-table-head { background: #f7f8f9; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.console-table-row { width: 100%; border: 0; border-bottom: 1px solid var(--soft-line); background: transparent; cursor: pointer; }
.console-table-row:hover { background: #fafbfc; }
.console-table-row.active { background: var(--blue-soft); }
.console-table-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.console-targets { padding: 10px 12px 14px; background: #fbfcfd; border-bottom: 1px solid var(--soft-line); display: grid; gap: 10px; }
.console-aggregate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 4px; background: var(--surface); font-size: 12px; }
.console-aggregate[data-aggregate-state="ready"] { border-left-color: var(--green); }
.console-aggregate[data-aggregate-state="partial"] { border-left-color: var(--orange); background: var(--orange-soft); }
.console-aggregate[data-aggregate-state="blocked"], .console-aggregate[data-aggregate-state="failed"] { border-left-color: var(--red); background: var(--red-soft); }

.console-target { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.console-target > header { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--soft-line); font-size: 12px; }
.console-evidence { margin: 0; padding: 8px 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px 14px; }
.console-evidence dt { color: var(--muted); font-size: 11px; }
.console-evidence dd { margin: 2px 0 0; font-size: 12px; word-break: break-all; }
/* Unknown is a state, not an empty cell: it is rendered as a labelled value. */
.console-evidence dd.is-unknown { color: var(--muted); font-style: italic; }

.console-loading, .console-empty { padding: 14px; color: var(--muted); font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-partial { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 9px 12px; background: var(--orange-soft); border: 1px solid #f0d6b4; border-radius: 6px; font-size: 12px; }
.console-unavailable, .console-refused, .console-failure, .console-conflict { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; }
.console-unavailable { border-left: 3px solid var(--muted); }
.release-unavailable-note { display: grid; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; color: var(--muted); }
.release-unavailable-note > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.release-unavailable-note[open] > summary { margin-bottom: 2px; }
.release-unavailable-note > span { color: var(--muted); }
.console-refused { border-left: 3px solid var(--red); background: var(--red-soft); }
.console-failure { border-left: 3px solid var(--red); }
.console-conflict { border-left: 3px solid var(--orange); background: var(--orange-soft); }
.console-failure-meta { color: var(--muted); font-size: 11px; }
.console-clear-button, .console-primary-button { min-height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; }
.console-primary-button { border-color: var(--blue); background: var(--blue); color: #fff; }
.console-clear-button:disabled, .console-primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
/* The page's own footer control, not the table's: it sits under the list it extends. */
.console-pagination { display: flex; justify-content: center; }

.console-draft-form { display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-draft-form h2 { font-size: 14px; }
.console-draft-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.console-draft-form input { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; }
.console-draft-scope { color: var(--muted); font-size: 12px; }
.console-draft-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Version identity. The identity rows and the observation block are deliberately styled
   apart: one is what the Version froze, the other is what a cluster is running, and a
   reader who cannot tell them apart at a glance will read the second as the first. */
.console-modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(23, 32, 42, 0.4); z-index: 40; }
.console-modal-backdrop .console-draft-form { width: min(560px, 100%); }
.console-draft-form header { display: flex; align-items: center; justify-content: space-between; }
.console-draft-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.console-version-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.console-version-detail { display: grid; gap: 10px; }
.console-identity { display: grid; gap: 1px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-identity-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 12px; }
.console-identity-row span { color: var(--muted); }
.console-identity-row code { word-break: break-all; }
/* An absent identity field is a state, not an empty cell. */
.console-identity-row em { color: var(--orange); font-style: normal; }
.console-image-identity, .console-validations, .console-artifacts, .console-observed-images { display: grid; gap: 1px; }
.console-image-row, .console-validation-row, .console-artifact-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.console-image-row span, .console-validation-row span, .console-artifact-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.console-image-row code, .console-validation-row code, .console-artifact-row code { word-break: break-all; }
.console-validation-row[data-validation-passed="false"] { border-left: 3px solid var(--red); }
.console-validation-row[data-validation-passed="true"] { border-left: 3px solid var(--green); }
/* Observation is a different claim from identity, so it is a different surface. */
.console-observed-images { padding: 12px; background: var(--orange-soft); border: 1px solid #f0d6b4; border-radius: 6px; }
.console-observed-images p { margin: 0; font-size: 12px; color: #8a5514; }
.console-observed-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.console-observed-row span { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; min-width: 0; }
.console-version-commands { display: grid; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-version-commands label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.console-version-commands input { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; }
.console-version-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* The delivery page and the Release Preview. The diff is the artefact an operator approves,
   so added and removed lines are coloured rather than merely annotated: a diff where the two
   look alike is a diff nobody reads. */
.console-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.console-form-grid label, .console-scope-choice label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.console-form-grid select, .console-form-grid input { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.console-hint { margin: 0; color: var(--muted); font-size: 12px; }
.console-scope-choice { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.console-scope-choice legend { padding: 0 4px; font-size: 12px; font-weight: 600; }
.console-scope-choice:disabled { opacity: 0.6; }
.console-stage-choice { display: flex; align-items: center; gap: 10px; }
.console-group-choice { flex: 1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.console-group-choice span { display: grid; gap: 2px; }
.console-group-choice small { color: var(--muted); }
.console-stage-order { display: flex; gap: 4px; }
.console-git-baseline { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.console-preview { display: grid; gap: 12px; }
.console-preview-file { display: grid; gap: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-preview-file header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.console-preview-file header span { display: grid; gap: 2px; min-width: 0; }
.console-preview-file small { color: var(--muted); font-size: 11px; }
.console-preview-hashes { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 3px 8px; margin: 0; font-size: 11px; }
.console-preview-hashes dt { color: var(--muted); }
.console-preview-hashes dd { margin: 0; overflow-wrap: anywhere; }
.console-preview-diff { display: block; margin: 0; padding: 8px 10px; max-height: 340px; overflow: auto; background: #fbfcfd; border: 1px solid var(--soft-line); border-radius: 4px; font-size: 12px; line-height: 1.5; }
.console-preview-diff span { display: block; white-space: pre-wrap; }
.diff-add { background: var(--green-soft); color: #10603f; }
.diff-del { background: var(--red-soft); color: #8e2b2b; }
.diff-hunk { color: var(--purple); }
.diff-meta { color: var(--muted); }
.console-preview-actions { display: flex; justify-content: flex-end; }

/* The Target evidence matrix. Each Target is its own card rather than a row in one table:
   two clusters that disagree are two answers, and a shared table invites reading them as one. */
.console-target-matrix { display: grid; gap: 10px; }
.console-target-head { grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(160px, 1.4fr) minmax(90px, 0.8fr) minmax(140px, 1fr) 24px; }
.console-target-row { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-target-row[data-target-outcome="failed"] { border-left: 3px solid var(--red); }
.console-target-row[data-target-outcome="converged"] { border-left: 3px solid var(--green); }
.console-target-row[data-target-outcome="waiting"] { border-left: 3px solid var(--orange); }
.console-target-row[data-target-outcome="unobserved"] { border-left: 3px solid var(--muted); }
.console-target-facts { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr) minmax(160px, 1.4fr) minmax(90px, 0.8fr) minmax(140px, 1fr) 24px; gap: 10px; align-items: baseline; }
.console-target-facts span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.console-target-facts small { color: var(--muted); }
.console-target-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 12px; margin: 0; padding-top: 6px; border-top: 1px solid var(--soft-line); }
.console-target-evidence dt { color: var(--muted); font-size: 11px; }
.console-target-evidence dd { margin: 0; font-size: 12px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.console-target-evidence dd em { color: var(--muted); font-style: normal; }
.console-target-evidence dd code { font-size: 11px; }
.release-execution-evidence .console-target-matrix .console-table { overflow-x: auto; }
.release-execution-evidence .console-target-head,
.release-execution-evidence .console-target-row { min-width: 820px; }
.release-execution-evidence .console-target-evidence {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid var(--soft-line);
}
.release-execution-evidence .console-target-evidence dt,
.release-execution-evidence .console-target-evidence dd { padding: 0; border-bottom: 0; background: transparent; }
.drawer-body .console-identity {
  grid-template-columns: minmax(0, 1fr);
  margin: 12px 0 0;
  border: 1px solid var(--line);
}
.console-target-completion { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 12px; background: var(--green-soft); border: 1px solid #cbe8d9; border-radius: 6px; font-size: 12px; }

/* The Mirror stage. Each Target is its own card like the evidence matrix, because a required
   internal-mirror Target and a GitHub-only one are different answers that must not merge. */
.console-mirror-stage { display: grid; gap: 10px; }
.console-mirror-head { grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(120px, 1fr) minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(150px, 1.4fr); }
.console-mirror-row { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.console-mirror-row[data-mirror-outcome="failed"] { border-left: 3px solid var(--red); }
.console-mirror-row[data-mirror-outcome="replicated"] { border-left: 3px solid var(--green); }
.console-mirror-row[data-mirror-outcome="not_required"] { border-left: 3px solid var(--green); }
.console-mirror-row[data-mirror-outcome="waiting"] { border-left: 3px solid var(--orange); }
.console-mirror-row[data-mirror-outcome="unobserved"] { border-left: 3px solid var(--muted); }
.console-mirror-facts { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.8fr) minmax(120px, 1fr) minmax(150px, 1.4fr) minmax(120px, 1fr) minmax(150px, 1.4fr); gap: 10px; align-items: baseline; }
.console-mirror-facts span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.console-mirror-facts small { color: var(--muted); }
.console-mirror-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 12px; margin: 0; padding-top: 6px; border-top: 1px solid var(--soft-line); }
.console-mirror-evidence dt { color: var(--muted); font-size: 11px; }
.console-mirror-evidence dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.production-status.status-not_required, .production-status.status-replicated { background: var(--green-soft); color: #1f7a4d; }
.production-status.status-waiting { background: var(--orange-soft, #fdf0dc); color: #a4620d; }
.production-status.status-failed { background: #fbe4e4; color: var(--red); }
.production-status.status-unobserved { background: var(--surface-muted, #f0f1f3); color: var(--muted); }
.release-execution-evidence .console-mirror-stage .console-table { overflow-x: auto; }
.release-execution-evidence .console-mirror-head,
.release-execution-evidence .console-mirror-row { min-width: 820px; }

@media (max-width: 900px) {
  .console-shell-body { grid-template-columns: minmax(0, 1fr); }
  .console-nav { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .console-table-head, .console-table-row { grid-template-columns: minmax(140px, 1.4fr) repeat(2, minmax(80px, 1fr)); }
  .console-table-head span:nth-child(n + 4), .console-table-row span:nth-child(n + 4) { display: none; }
  /* Identity and evidence collapse to one column rather than hiding fields: which hash a
     Version carries is not a detail that a narrow window may drop. */
  .console-identity-row { grid-template-columns: minmax(0, 1fr); }
  .console-image-row, .console-validation-row, .console-artifact-row { grid-template-columns: minmax(0, 1fr); }
  .console-observed-row { grid-template-columns: minmax(0, 1fr); }
}
/* Artifact evidence is shared by the shell's Release detail and the lazy Preview
   workspace, so its common layout belongs beside the existing shared diff rows. */
.console-generated-artifact { min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); }
.console-generated-artifact > * { min-width: 0; max-width: 100%; }
.console-generated-artifact .console-identity { grid-template-columns: minmax(0, 1fr); }
.console-generated-artifact > header { display: flex; flex-wrap: wrap; gap: 8px; }
.console-generated-artifact .console-identity-row { min-width: 0; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.console-generated-artifact .console-identity-row > * { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.console-generated-artifact p, .console-generated-artifact strong { overflow-wrap: anywhere; }
.console-generated-artifact details { margin-top: 12px; }
.console-generated-artifact pre { max-width: 100%; overflow-x: auto; padding: 12px; background: #f4f7f6; }
@media (max-width: 600px) {
  .console-generated-artifact .console-identity-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
dialog.production-modal { margin: auto; padding: 0; max-width: calc(100vw - 40px); color: inherit; }
dialog.production-modal:not([open]) { display: none; }
dialog.production-modal::backdrop { background: rgba(18, 27, 34, .44); }

/* The custom application picker retains the native field for forms and change
   events. Only its combobox participates in keyboard and accessibility navigation. */
.application-select { position: relative; display: inline-block; min-width: 0; width: 100%; max-width: 100%; vertical-align: middle; }
:root body .application-select select[data-application-native] { position: absolute; width: 1px; height: 1px; min-height: 0; min-width: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
:root body .application-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #d4dce1; border-radius: 6px; background: #fff; color: #2d3b46; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 20px; text-align: left; cursor: pointer; }
.application-select-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-select-chevron { color: #74818e; flex-shrink: 0; }
:root body .application-select-trigger:focus-visible { outline: 2px solid #5b88ed; outline-offset: 2px; }
:root body .application-select-trigger:disabled { color: #7f8b95; background: #f3f5f6; cursor: not-allowed; }
:root body .application-select-popup { position: fixed; box-sizing: border-box; margin: 0; padding: 8px; border: 1px solid #d4dce1; border-radius: 8px; background: #fff; color: #2d3b46; box-shadow: 0 10px 30px #172b4d26; overflow: hidden; }
:root body .application-select-popup input { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: 36px; min-height: 36px; margin: 0 0 8px; padding: 0 10px; border: 1px solid #d4dce1; border-radius: 5px; font: inherit; font-size: 13px; }
.application-select-options { display: block; overflow-y: auto; overscroll-behavior: contain; }
.application-select-entry { display: block; }
.application-select-group { display: block; padding: 7px 8px 3px; color: #74818e; font-size: 11px; font-weight: 600; }
:root body .application-select-options button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; height: 36px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: #2d3b46; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.application-select-options button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root body .application-select-options button:hover, :root body .application-select-options button[data-active="true"] { background: #eef4ff; }
:root body .application-select-options button[aria-selected="true"] { color: #285fcb; font-weight: 600; }
.application-select-empty { display: block; padding: 14px 8px; color: #74818e; font-size: 13px; }
.console-scope-segment:has(.application-select) { min-width: 180px; max-width: 320px; }
.console-scope-segment:has(.application-select) .console-scope-caption { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) { .console-scope-segment:has(.application-select) { max-width: 100%; width: 100%; } }
@media (forced-colors: active) { .application-select-popup { border: 1px solid CanvasText; } .application-select-options button[data-active="true"] { outline: 1px solid Highlight; } }

/* Native single selects share the approved Header control proportions. Keep this
   rule more specific than lazy workspace rules so legacy forms cannot restore
   browser chrome. Multiple and size > 1 controls remain native listboxes: a 40px
   dropdown treatment would hide their rows and imply the wrong interaction. */
:root body select:not([multiple]):not([size]:not([size="0"], [size="1"])) {
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #d4dce1;
  border-radius: 6px;
  color: #2d3b46;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374818e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}
:root body select:not([multiple]):not([size]:not([size="0"], [size="1"])):focus-visible {
  outline: 2px solid #5b88ed;
  outline-offset: 2px;
}
:root body select:not([multiple]):not([size]:not([size="0"], [size="1"])):disabled {
  color: #7f8b95;
  background-color: #f3f5f6;
  cursor: not-allowed;
  opacity: 1;
}
@media (forced-colors: active) {
  /* Let the system draw its own arrow when custom image colors cannot follow
     the user's contrast palette. Native semantics and keyboard behavior stay. */
  :root body select:not([multiple]):not([size]:not([size="0"], [size="1"])) {
    appearance: auto;
    background-image: none;
  }
}
