@font-face { font-family: Urbanist; src: url('/assets/urbanist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Urbanist; src: url('/assets/urbanist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Urbanist; src: url('/assets/urbanist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Urbanist; src: url('/assets/urbanist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Urbanist; src: url('/assets/urbanist-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* Shared visual language: Rentinit's productTheme.ts / product.css (Bondoq). */
:root {
  font-family: Urbanist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  font-weight: 500;
  color: #172d3d;
  background: #f3f6f9;
  --brand: #1a9798;
  --on-brand: #071d21;
  --tint: #1a979817;
  --soft: #1a979842;
  --ink: #117475;
  --line: #e2eaf0;
  --muted: #617584;
  --field: #f8fafc;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
#shell { flex: 1; }
button, input, a { touch-action: manipulation; }
button, input { font: inherit; }
button, .button {
  min-height: 40px; border: 1px solid var(--line); border-radius: 7px;
  background: white; padding: 10px 16px; cursor: pointer; font-size: 13px;
  font-weight: 600; text-decoration: none; color: inherit; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
}
button:hover, .button:hover { background: var(--field); border-color: #c9d8e2; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--ink); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 700; }
.primary:hover { background: #22a8a8; border-color: #22a8a8; }
.danger { color: #a13740; border-color: #eed5d8; }
.danger:hover { background: #fcf1f2; border-color: #e3b9bf; }
.quiet { background: transparent; border-color: transparent; }
.muted, small { color: var(--muted); }
[hidden] { display: none !important; }
.topbar {
  min-height: 76px; padding: 16px 24px; display: flex; align-items: center; gap: 24px;
  background: #0a0f1a; color: #edf4f8; border-bottom: 1px solid #ffffff1a;
}
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: #f5f1e8; flex-shrink: 0; }
.brand img { display: block; }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.surface { border-left: 1px solid #ffffff26; padding-left: 16px; margin-left: 9px; color: #b4c6d3; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; }
.topbar nav a { padding: 11px 17px; border: 1px solid #ffffff1a; border-radius: 7px; font-size: 13px; font-weight: 700; color: #b4c6d3; background: #142330; text-decoration: none; }
.topbar nav a:hover { background: #203541; }
.topbar nav a[aria-current=page] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.header-right { display: flex; align-items: center; gap: 18px; font-size: 12px; color: #b4c6d3; }
#navigation[hidden] + .header-right { margin-left: auto; }
.header-right .quiet { color: #b4c6d3; padding: 8px; }
.header-right .quiet:hover { background: #142330; border-color: #ffffff1a; }
#mode:not(:empty) { padding-left: 18px; border-left: 1px solid #ffffff26; }
main { max-width: 1320px; margin: 0 auto; padding: 42px 40px 64px; }
main:focus { outline: none; }
.eyebrow { font-size: 10px; letter-spacing: .13em; color: var(--muted); font-weight: 700; }
h1 { font-size: 32px; font-weight: 500; letter-spacing: -.035em; margin: 8px 0 10px; line-height: 1.2; }
h2 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; margin: 24px 0 18px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; }
p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin-bottom: 0; }
.page-heading > div { min-width: 0; overflow-wrap: anywhere; }
.page-heading > button { flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 32px; }
.stat { position: relative; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.stat strong { display: block; font-size: 32px; font-weight: 500; letter-spacing: -1px; margin: 14px 0 0; line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-icon { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--field); color: var(--muted); }
.stat-icon.positive { background: var(--tint); color: var(--ink); }
.stat-icon.attention { background: #faf0e5; color: #9b622f; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
#toolbar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; gap: 16px; }
#filters { display: flex; flex-wrap: wrap; gap: 4px; }
#filters button { min-height: 38px; border-color: transparent; background: transparent; color: var(--muted); padding: 9px 12px; }
#filters button:hover { background: #e9eff3; }
#filters button[aria-pressed=true] { background: white; border-color: var(--line); color: #172d3d; box-shadow: 0 1px 3px #172d3d04; }
.search { width: 270px; flex-shrink: 0; }
label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 8px; }
input:not([type=radio],[type=checkbox]) { background: var(--field); color: inherit; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; min-width: 0; width: 100%; }
input::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.search input { background: white; font-size: 13px; }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.environment-list { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.list-head, .env-card { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1.25fr) 140px 32px; gap: 22px; align-items: center; }
.list-head { padding: 14px 24px; background: var(--field); color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.env-card { position: relative; padding: 25px 24px; border-top: 1px solid var(--line); }
.env-card:hover { background: #f8fbfc; }
.env-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.env-identity > div { min-width: 0; }
.env-identity h3 { overflow-wrap: anywhere; }
.env-identity h3 a { color: inherit; text-decoration: none; }
.env-identity h3 a::after { content: ''; position: absolute; inset: 0; }
.env-identity h3 a:focus-visible { outline: none; }
.env-card:has(a:focus-visible) { outline: 2px solid var(--brand); outline-offset: -3px; }
.env-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border: 1px solid var(--soft); border-radius: 10px; background: var(--tint); color: var(--ink); }
.env-mark.residentai { background: #0aaac412; color: #087a8d; border-color: #0aaac42e; }
.env-identity small { display: block; font-size: 12px; }
.env-status { min-width: 0; }
.env-status p { margin: 7px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.env-status .active-operation { color: var(--ink); }
.checked { font-size: 12px; line-height: 1.6; color: var(--muted); }
.checked small { display: block; font-size: 11px; }
.open-arrow { display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; width: 30px; height: 30px; }
.env-card:hover .open-arrow { background: var(--tint); border-color: var(--soft); color: var(--ink); }
.badge { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 4px 7px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; background: #edf1f5; color: #586e7e; line-height: 1.3; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.healthy, .succeeded { background: #eaf6f1; color: #236f53; }
.down, .failed { background: #fbeef0; color: #a13740; }
.warning, .uncertain { background: #faf0e5; color: #95602e; }
.running, .submitted, .queued, .waiting, .dispatching, .verifying { background: #eaf1fc; color: #416392; }
.paused, .stopped, .deallocated, .idle, .not_configured { background: #f0eef7; color: #6b5d8c; }
#list-footer { display: flex; justify-content: space-between; gap: 20px; margin: 17px 0; color: var(--muted); font-size: 11px; }
#freshness { font-size: 11px; margin: 0; line-height: 1.5; }
.empty { padding: 48px 24px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty h3 { color: #172d3d; margin-bottom: 8px; }
.empty button { margin-top: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 26px; min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 24px; align-items: start; }
.side-panels { display: grid; gap: 20px; min-width: 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; }
.actions .primary, .actions [data-action=stop] { grid-column: 1 / -1; }
.actions + button { margin-top: 12px; }
.detail-check { border-top: 1px solid var(--line); padding: 18px 0; }
.detail-check p { font-size: 12px; margin: 6px 0 0; overflow-wrap: anywhere; }
.detail-check a { font-size: 12px; display: inline-block; margin-top: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.row h3 { margin: 0; }
.panel > .row + p { margin: 12px 0 20px; font-size: 12px; }
.panel .button { margin-top: 10px; }
.setup-details, .control-details { border-top: 1px solid var(--line); margin: 18px 0 12px; padding-top: 14px; }
.setup-details summary, .control-details summary { cursor: pointer; color: var(--ink); font-size: 13px; }
.diagnostics { display: block; margin-top: 20px; font-size: 12px; }
.monitor-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: -8px 0 20px; }
.monitor-controls > div { display: flex; align-items: center; gap: 12px; }
.monitor-controls button { font-size: 12px; padding: 8px; }
.auto-update { flex-direction: row; align-items: center; font-size: 12px; white-space: nowrap; color: var(--muted); }
.metric-details { margin-top: 12px; }
.metric-details summary { color: var(--ink); cursor: pointer; font-size: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 16px 0; padding: 16px; background: var(--field); border-radius: 8px; }
.metrics dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.metrics dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.pipeline-tasks { padding: 0; list-style: none; }
.pipeline-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; margin: 0; border-bottom: 1px solid var(--line); }
.pipeline-tasks li > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.review-actions { display: flex; gap: 8px; }
.op { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin-bottom: 14px; }
.op .meta { font-size: 12px; margin: 12px 0; color: var(--muted); overflow-wrap: anywhere; }
.op a { font-size: 13px; }
.op details { margin-top: 16px; border-top: 1px solid var(--line); }
.op summary { cursor: pointer; font-size: 13px; padding: 14px 0 0; color: var(--ink); }
.op .job { border-top: 1px solid var(--line); padding: 14px 0 0; margin-top: 14px; }
.op .job a { font-size: 12px; }
.op li { font-size: 12px; margin: 8px 0; }
.note { padding: 14px 16px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.6; margin: 16px 0; color: var(--muted); }
.error { color: #a13740; }
.error:empty { display: none; }
.error:not(:empty) { margin: 16px 0; padding: 12px; background: #fcf0f2; border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
#notice { padding: 12px 24px; background: #fff4e2; color: #785719; font-size: 13px; border-bottom: 1px solid #ecd9bc; }
#notice button { margin-left: 12px; }
dialog { width: 580px; max-width: calc(100% - 32px); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: inherit; box-shadow: 0 24px 70px #0a0f1a30; }
dialog::backdrop { background: #0a0f1a99; backdrop-filter: blur(5px); }
dialog h2 { margin-top: 20px; margin-bottom: 10px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading .close { font-size: 24px; padding: 0; width: 36px; min-height: 36px; color: var(--muted); }
.stepper { display: flex; padding: 0; gap: 24px; list-style: none; margin: 20px 0 24px; border-bottom: 1px solid var(--line); }
.stepper li { display: flex; align-items: center; gap: 8px; margin: 0; padding-bottom: 14px; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; }
.stepper span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf1f5; font-size: 11px; }
.stepper [aria-current=step] { color: var(--ink); border-color: var(--brand); }
.stepper [aria-current=step] span { background: var(--tint); }
form > label { margin: 20px 0; }
fieldset { border: 0; padding: 0; margin: 22px 0; min-width: 0; }
legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.choice { flex-direction: row; align-items: center; border: 1px solid var(--line); padding: 15px; border-radius: 8px; margin: 9px 0; font-size: 13px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.choice strong, .choice small { display: block; }
.choice small { font-size: 12px; font-weight: 400; margin-top: 5px; line-height: 1.4; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row small { font-size: 11px; font-weight: 400; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px; }
.review-facts { display: grid; grid-template-columns: 1fr 1fr; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 18px; gap: 18px; font-size: 14px; margin-top: 20px; overflow-wrap: anywhere; }
.review-facts small { display: block; margin-bottom: 5px; font-size: 11px; }
.steps { padding-left: 22px; font-size: 13px; line-height: 1.6; }
.steps li { margin: 10px 0; padding-left: 5px; }
.login { width: min(430px, calc(100% - 32px)); margin: 9vh auto; padding: 32px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.login button, .login .button { width: 100%; }
.login-mark { display: grid; place-items: center; border: 1px solid var(--soft); border-radius: 12px; background: var(--tint); width: 64px; height: 64px; margin-bottom: 30px; }
.login h1 { font-size: 30px; margin-top: 12px; }
.skip { position: absolute; left: -1000px; }
.skip:focus { left: 20px; top: 20px; z-index: 9; background: white; padding: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
footer { margin-top: auto; border-top: 1px solid var(--line); padding: 22px 32px; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
code { font-size: 11px; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 12px; text-decoration: none; }
ol { padding-left: 20px; }
li { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 1000px) {
  #mode { display: none; }
  .topbar { gap: 16px; }
  main { padding-inline: 24px; }
  .list-head, .env-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 110px 28px; gap: 16px; }
  .env-mark { display: none; }
  .split { gap: 18px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .panel { padding: 22px; }
}
@media (max-width: 760px) {
  .topbar { padding: 16px 20px 12px; flex-wrap: wrap; gap: 16px 8px; }
  .surface { font-size: 9px; padding-left: 12px; margin-left: 5px; }
  .header-right { margin-left: auto; }
  .topbar nav { order: 3; width: 100%; margin: 0; }
  .topbar nav a { flex: 1; text-align: center; }
  main { padding: 28px 20px 40px; }
  h1 { font-size: 28px; }
  .page-heading { align-items: start; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
  .page-heading > div { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
  .stat { padding: 17px; }
  .stat strong { font-size: 28px; }
  .stat-icon { right: 15px; bottom: 15px; width: 28px; height: 28px; }
  #toolbar { flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-bottom: 14px; }
  .search { width: 100%; }
  #filters { gap: 2px; }
  #filters button { font-size: 12px; padding: 9px 10px; min-height: 42px; }
  .list-head { display: none; }
  .env-card { grid-template-columns: minmax(0,1fr) 30px; gap: 15px 12px; padding: 20px; }
  .env-card:first-of-type { border-top: 0; }
  .env-identity { grid-column: 1; }
  .env-identity h3 { font-size: 17px; }
  .env-status { grid-row: 2; grid-column: 1 / -1; }
  .checked { grid-row: 3; grid-column: 1 / -1; font-size: 11px; }
  .checked small { display: inline; margin-right: 5px; }
  .open-arrow { grid-row: 1; grid-column: 2; }
  #list-footer { flex-direction: column; gap: 6px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .panel, .op { padding: 22px 20px; }
  .op h3 { font-size: 16px; }
  .op .row { align-items: start; }
  dialog { padding: 22px; }
  .dialog-footer { position: sticky; bottom: -22px; background: white; margin: 24px -22px -22px; padding: 16px 22px; box-shadow: 0 -8px 12px -12px #172d3d30; }
  .field-row { grid-template-columns: 1fr; }
  .monitor-controls { align-items: start; flex-direction: column; gap: 6px; }
  .review-actions { flex-wrap: wrap; justify-content: flex-end; }
  .review-actions button { padding-inline: 10px; font-size: 12px; }
  .stepper { gap: 16px; }
  .stepper li { font-size: 11px; gap: 6px; }
  footer { padding: 20px; }
  footer span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
