:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #18202a; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, .button { border: 0; border-radius: 9px; padding: .7rem 1rem; background: #152334; color: white; cursor: pointer; font: inherit; }
button.secondary, .button.secondary { background: #e8edf2; color: #18202a; }
button.danger { background: #a92323; }
input, select { width: 100%; margin-top: .4rem; border: 1px solid #ccd4dc; border-radius: 8px; padding: .75rem; font: inherit; }
label { display: block; font-weight: 600; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: #101b29; color: white; }
.brand { font-weight: 750; }
.topbar nav { display: flex; align-items: center; gap: 1.2rem; }
.topbar nav form { margin: 0; }
.link-button { background: transparent; padding: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 2rem; }
.heading, .card-row, .actions, .container-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.heading { margin-bottom: 1.5rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .4rem; }
h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.metrics article, .card { background: white; border: 1px solid #e1e6eb; border-radius: 14px; padding: 1.2rem; box-shadow: 0 3px 14px rgba(20, 32, 45, .04); }
.metrics article { display: flex; flex-direction: column; }
.metrics strong { font-size: 1.8rem; }
.metrics span, .muted { color: #66717e; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.app-card:hover { border-color: #9aa8b5; transform: translateY(-1px); }
.badge { font-size: .78rem; padding: .3rem .55rem; border-radius: 999px; background: #e8edf2; }
.badge.ok { background: #d9f4e4; color: #176b3c; }
.badge.bad { background: #f8dede; color: #8f2020; }
.url { margin-top: .8rem; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.stack { display: grid; gap: 1rem; }
.split { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.actions { justify-content: flex-start; flex-wrap: wrap; }
.actions form { margin: 0; }
.alert { padding: .8rem 1rem; border-radius: 9px; margin-bottom: 1rem; }
.alert.success { background: #d9f4e4; color: #176b3c; }
.alert.error { background: #f8dede; color: #8f2020; }
.alert.compact { margin: .7rem 0; }
.role { font-size: .75rem; letter-spacing: .08em; color: #66717e; font-weight: 800; }
.container-meta { justify-content: flex-start; margin: 1rem 0; flex-wrap: wrap; }
.container-meta span { background: #f3f5f7; border-radius: 8px; padding: .5rem .7rem; }
.console { margin: 1rem 0 0; max-height: 430px; overflow: auto; padding: 1rem; border-radius: 9px; background: #0d1520; color: #dbe7f3; white-space: pre-wrap; word-break: break-word; }
.back { display: inline-block; color: #66717e; margin-bottom: .5rem; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(420px, 100%); background: white; border: 1px solid #e1e6eb; padding: 2rem; border-radius: 14px; display: grid; gap: 1rem; }
.checkbox { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.checkbox input { width: auto; margin: 0; }
.empty { color: #66717e; }
@media (max-width: 760px) { .page { padding: 1rem; } .topbar { padding: 1rem; } .split, .metrics { grid-template-columns: 1fr; } .heading { align-items: flex-start; flex-direction: column; } }
textarea { width: 100%; margin-top: .4rem; border: 1px solid #ccd4dc; border-radius: 8px; padding: .75rem; font: inherit; resize: vertical; }
.form-stack { display: grid; gap: .9rem; }
.release-layout { margin: 1rem 0; }
.release-summary { margin-bottom: 1rem; }
.release-list { display: grid; gap: .8rem; margin-top: 1rem; }
.release-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-top: 1px solid #edf0f3; padding-top: .8rem; }
.release-row:first-child { border-top: 0; padding-top: 0; }
.release-actions { display: flex; align-items: center; gap: .5rem; }
.release-notes { margin: .4rem 0 0; font-size: .9rem; }
.release-chip { margin-top: .7rem; width: fit-content; padding: .25rem .5rem; border-radius: 7px; background: #f0f3f6; font-size: .8rem; }
.table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.history-table th, .history-table td { text-align: left; padding: .7rem .5rem; border-top: 1px solid #edf0f3; white-space: nowrap; }
.history-table th { color: #66717e; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.status-queued { background: #fff1c9; color: #7b5700; }
.status-running { background: #dcecff; color: #174f8a; }
.status-succeeded { background: #d9f4e4; color: #176b3c; }
.status-failed { background: #f8dede; color: #8f2020; }
.compact-button { padding: .4rem .65rem; font-size: .82rem; }
.deployment-output-row td { padding-top: 0; }
.deployment-output-row .console { margin-top: 0; }
.version { font-size: .7rem; color: #9fb0c3; margin-left: .35rem; }
.nav-role { font-size: .75rem; color: #aebdcd; }
.auto-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.text-danger { color: #a92323; }
.alert.warning { background: #fff1c9; color: #725000; }
.warning-badge { background: #fff1c9; color: #725000; }
.attention-card { border-color: #edd69a; margin-bottom: 1rem; }
.top-gap { margin-top: 1rem; }
.compact-meta { margin-bottom: .3rem; }
.badge-stack, .gate-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.gate-row { margin-top: .45rem; }
.digest { display: block; max-width: 430px; overflow: hidden; text-overflow: ellipsis; margin-top: .35rem; color: #66717e; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.form-grid .wide { grid-column: 1 / -1; }
.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form select { margin: 0; width: auto; }
.plain-list { padding-left: 1.2rem; line-height: 1.8; }
.secret-once { display: block; margin-top: .5rem; padding: .6rem; background: rgba(255,255,255,.6); overflow-wrap: anywhere; user-select: all; }
.timeline { border-left: 3px solid #d8e0e7; padding-left: .8rem; margin-top: 1rem; }
.compact-timeline p { margin: .5rem 0 0; }
.mini-form { display: grid; gap: .4rem; min-width: 260px; margin-top: .5rem; }
.capacity-bars { display: grid; gap: .5rem; margin: 1rem 0; }
.capacity-bars > div { display: grid; grid-template-columns: 55px 1fr 50px; gap: .6rem; align-items: center; }
progress { width: 100%; height: .65rem; }
.audit-result { max-width: 360px; white-space: normal; color: #66717e; font-size: .85rem; margin-top: .25rem; }
.status-approval_required { background: #fff1c9; color: #725000; }
.status-awaiting_cutover { background: #fff1c9; color: #725000; }
.status-pending { background: #fff1c9; color: #725000; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; } .topbar { align-items: flex-start; gap: 1rem; } .topbar nav { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .topbar { flex-direction: column; } .topbar nav { justify-content: flex-start; } }
