@font-face {
  font-family: "Control Sans";
  src: local("Inter"), local("Segoe UI");
}
:root {
  font-family: "Control Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211f;
  background: #f3f5f1;
  font-synthesis: none;
  --ink: #17211f;
  --muted: #67736f;
  --line: #dce2dc;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --green: #185f4b;
  --green-deep: #104536;
  --green-soft: #e6f2ed;
  --orange: #bd6a2b;
  --red: #a13d3d;
  --shadow: 0 18px 50px rgba(29, 48, 41, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: #dceee5; left: -160px; top: -140px; }
.ambient-two { width: 520px; height: 520px; background: #eee4d6; right: -230px; bottom: -230px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: min(460px, 100%); background: rgba(255,255,255,.94); border: 1px solid rgba(214,224,217,.9); border-radius: 28px; padding: 42px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.auth-card-wide { width: min(760px, 100%); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 16px; font: 800 1.35rem Georgia, serif; box-shadow: 0 10px 24px rgba(24,95,75,.2); margin-bottom: 24px; }
.brand-mark-small { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; }
h1 { font: 700 clamp(2rem, 5vw, 3.35rem)/1.02 Georgia, "Times New Roman", serif; }
h2 { font: 700 clamp(1.45rem, 3vw, 2rem)/1.1 Georgia, "Times New Roman", serif; }
h3 { font-size: 1.05rem; }
.lede { color: var(--muted); line-height: 1.65; margin: 14px 0 28px; }
.stack { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #34413d; font-weight: 700; font-size: .88rem; }
label small { color: var(--muted); font-weight: 450; line-height: 1.45; }
input, select {
  width: 100%; color: var(--ink); background: #fff; border: 1px solid #cbd4ce;
  border-radius: 12px; padding: 12px 13px; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(24,95,75,.12); }
button {
  border: 0; border-radius: 12px; padding: 12px 16px; color: #fff; background: var(--green);
  font-weight: 800; transition: transform .15s, background .15s, opacity .15s;
}
button:hover { background: var(--green-deep); transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-secondary { color: #284038; background: #e8eeea; }
.button-secondary:hover { color: #fff; background: #48665b; }
.button-quiet { color: var(--green); background: transparent; padding-inline: 0; text-align: left; }
.button-quiet:hover { color: var(--green-deep); background: transparent; transform: none; }
.button-danger { background: var(--red); }
.button-danger:hover { background: #7f2e2e; }
.button-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-line { min-height: 1.4em; color: var(--muted); font-size: .9rem; }
.status-line.error { color: var(--red); }
.notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); }
.security-callout { border: 1px solid #cfe0d7; background: var(--surface-soft); border-radius: 16px; padding: 20px; }
.security-callout h2 { font-size: 1.25rem; }
.security-callout p { color: var(--muted); line-height: 1.5; }
.security-callout.warning { border-color: #ead3b9; background: #fff8ef; }
.secret-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
code, pre { font: 600 .82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
code { display: block; padding: 11px; border-radius: 9px; background: #edf1ed; }
.uri-code { margin-top: 10px; }
pre { white-space: pre-wrap; margin: 0; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #ead3b9; line-height: 1.7; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; color: #dbe6e1; background: #142b24; padding: 28px 20px; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand span { margin-top: 3px; color: #8da59b; font-size: .75rem; }
nav { display: grid; gap: 6px; }
.nav-link { color: #a9bbb4; text-decoration: none; padding: 11px 13px; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.operator-card { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.04); }
.operator-card span, .operator-card small { display: block; overflow-wrap: anywhere; }
.operator-card small { color: #8da59b; margin: 4px 0 8px; }
.operator-card .button-quiet { color: #c6d8d0; font-size: .8rem; }
.workspace { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px clamp(22px, 4vw, 58px) 24px; border-bottom: 1px solid var(--line); background: rgba(243,245,241,.88); backdrop-filter: blur(14px); }
.topbar h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-pill, .badge, .state-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 6px 10px; font-size: .75rem; font-weight: 800; }
.live-pill { color: var(--green-deep); background: var(--green-soft); }
.live-pill::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #31a174; }
.badge { color: #7c4c23; background: #f7eadb; }
.content { padding: 32px clamp(22px, 4vw, 58px) 80px; display: grid; gap: 48px; }
.section-block { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.panel, .platform-card, .release-card, .target-card, .metric-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(29,48,41,.045);
}
.panel { padding: 26px; }
.target-enrollment-panel { margin-bottom: 16px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 20px; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: .78rem; font-weight: 750; }
.metric-card strong { display: block; margin: 10px 0 6px; font: 700 1.8rem Georgia, serif; overflow-wrap: anywhere; }
.metric-card small { font-size: .75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-action { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-action p { max-width: 660px; margin: 0; line-height: 1.5; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card, .release-card, .target-card { padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-head p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.state-pill { color: #46534f; background: #edf1ee; white-space: nowrap; }
.state-pill.ready, .state-pill.approved, .state-pill.canary_verified, .state-pill.active, .state-pill.succeeded { color: var(--green-deep); background: var(--green-soft); }
.state-pill.failed, .state-pill.partial, .state-pill.removal_failed, .state-pill.purge_failed { color: #7c2929; background: #f8e5e5; }
.state-pill.running, .state-pill.deployment_pending, .state-pill.update_pending, .state-pill.removal_pending { color: #7c4c23; background: #f7eadb; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 13px; margin: 18px 0; font-size: .82rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.action-row button { padding: 9px 11px; font-size: .78rem; }
.dns-block { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.dns-block summary { cursor: pointer; color: var(--green); font-weight: 750; }
.dns-row { margin-top: 10px; }
.dns-row strong { display: block; margin-bottom: 5px; color: var(--muted); font-size: .72rem; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #c9d2cc; border-radius: 16px; color: var(--muted); padding: 28px; text-align: center; }
.muted { color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); z-index: 10; color: #fff; background: #173d31; border-radius: 13px; padding: 13px 16px; box-shadow: var(--shadow); }
.toast.error { background: #7f2e2e; }
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px; }
  nav { display: flex; overflow-x: auto; }
  .operator-card { display: none; }
  .card-grid, .form-grid { grid-template-columns: 1fr; }
  .topbar { padding-top: 24px; }
}
@media (max-width: 560px) {
  .auth-card { padding: 28px 22px; border-radius: 22px; }
  .metric-grid { grid-template-columns: 1fr; }
  .topbar, .section-heading, .form-action { align-items: stretch; flex-direction: column; }
  .topbar-actions { justify-content: space-between; }
  .secret-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
