:root {
  --bg: #0b1020;
  --bg-deep: #080d19;
  --panel: #11182b;
  --panel-2: #182139;
  --panel-3: #202b47;
  --panel-hover: #1d2943;
  --text: #eef3ff;
  --text-soft: #cbd5e8;
  --muted: #93a0b8;
  --muted-2: #66738c;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --accent: #6ea8ff;
  --accent-2: #4e8de8;
  --success: #5fd39a;
  --warning: #f0c96a;
  --gold: #d9b85f;
  --gold-bright: #f4d77b;
  --gold-deep: #8f6f25;
  --gold-glow: rgba(217,184,95,.28);
  --danger: #f17878;
  --critical: #ff5b6e;
  --shadow: 0 18px 50px rgba(0,0,0,.26);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.15);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.45;
  font-size: 14px;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
code { font-family: "SFMono-Regular", Consolas, monospace; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #35415a; border-radius: 10px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: #52617d; }

.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;
}
.noscript { padding: 16px 22px; background: #302813; color: #f4dc9e; border-bottom: 1px solid rgba(240,201,106,.28); }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0,1fr);
  background:
    radial-gradient(circle at 85% 6%, rgba(110,168,255,.055), transparent 28rem),
    var(--bg);
}

.sidebar {
  background: linear-gradient(180deg, #080d19 0%, #090f1c 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 30;
}
.brand-block { padding: 25px 22px 18px; position: relative; }
.brand-name { font-size: 25px; font-weight: 850; letter-spacing: .07em; line-height: 1; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 7px; letter-spacing: .035em; }
.env-badge {
  position: absolute; right: 20px; top: 25px; color: var(--accent); border: 1px solid rgba(110,168,255,.28);
  background: rgba(110,168,255,.07); border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 800; letter-spacing: .09em;
}
.nav-stack { padding: 4px 12px 24px; display: grid; gap: 3px; }
.nav-section {
  color: var(--muted-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  padding: 19px 11px 7px;
}
.nav-item {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #b9c5d9; text-align: left; transition: .16s ease;
}
.nav-item:not(:disabled):hover { background: rgba(255,255,255,.045); color: white; }
.nav-item.is-active {
  color: white; background: linear-gradient(90deg, rgba(110,168,255,.15), rgba(110,168,255,.07));
  border-color: rgba(110,168,255,.20); box-shadow: inset 2px 0 0 var(--accent);
}
.nav-item:disabled { opacity: .54; }
.nav-item.is-active:disabled { opacity: 1; }
.nav-icon { width: 22px; flex: 0 0 22px; text-align: center; font-size: 16px; color: var(--accent); }
.nav-tag { margin-left: auto; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; }
.sidebar-foot { padding: 16px 21px 20px; border-top: 1px solid var(--line); font-size: 10px; }
.sidebar-foot-label { color: var(--muted-2); text-transform: uppercase; letter-spacing: .10em; margin-bottom: 6px; }
.sidebar-foot code { display: block; color: var(--text-soft); font-size: 10px; }
.sidebar-foot-meta { color: var(--muted-2); margin-top: 4px; }

.workspace-shell { min-width: 0; min-height: 100vh; }
.topbar {
  height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
  background: rgba(11,16,32,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.page-kicker { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.page-title { font-size: 20px; font-weight: 760; letter-spacing: -.015em; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.connection-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 750; border: 1px solid var(--line); background: var(--panel);
}
.connection-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: .9; }
.connection-badge.is-online { color: var(--success); border-color: rgba(95,211,154,.22); background: rgba(95,211,154,.055); }
.connection-badge.is-offline { color: var(--muted); }
.connection-badge.is-error { color: var(--danger); border-color: rgba(241,120,120,.25); background: rgba(241,120,120,.055); }


.language-switch { display:inline-flex; align-items:center; gap:3px; padding:3px; border:1px solid rgba(217,184,95,.34); border-radius:999px; background:rgba(217,184,95,.025); }
.language-button { min-width:31px; height:25px; border:1px solid transparent; border-radius:999px; background:transparent; color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.06em; transition:.15s ease; }
.language-button:hover { color:#fff8e6; border-color:rgba(244,215,123,.48); box-shadow:0 0 10px rgba(217,184,95,.15); }
.language-button.is-active { color:#171309; background:linear-gradient(180deg,#efd475,#c79d38); border-color:#f7dc7d; box-shadow:0 0 10px rgba(217,184,95,.18); }

.main-content { min-width: 0; padding: 24px 28px 42px; }
.project-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0,1fr); gap: 18px; align-items: start; max-width: 1650px; margin: 0 auto; }
.panel { background: rgba(17,24,43,.94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); min-width: 0; overflow: hidden; }
.project-panel { position: sticky; top: 98px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.panel-header { padding: 20px 20px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-header h1, .panel-header h2 { margin: 0; }
.panel-header h1 { font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.panel-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; max-width: 240px; }
.eyebrow { margin: 0 0 5px; text-transform: uppercase; letter-spacing: .11em; color: var(--accent); font-size: 9px; font-weight: 850; }
.helper-text { color: var(--muted); margin: 0; font-size: 11px; }

.button {
  min-height: 34px; border: 1.5px solid rgba(217,184,95,.52); border-radius: 8px; padding: 7px 11px;
  background: linear-gradient(180deg, rgba(217,184,95,.055), rgba(17,24,43,.88)); color: #efe6cf; font-weight: 700; font-size: 11px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.button:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(244,215,123,.12), rgba(29,41,67,.94));
  color: #fff8e6;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(244,215,123,.22), 0 0 18px var(--gold-glow), inset 0 0 12px rgba(244,215,123,.035);
}
.button:disabled { opacity: .42; }
.button-primary {
  background: linear-gradient(180deg, #efd475, #c79d38);
  border-color: #f7dc7d;
  color: #11100a;
  box-shadow: 0 7px 18px rgba(143,111,37,.22), inset 0 1px 0 rgba(255,255,255,.22);
}
.button-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe79a, #d8ae46);
  border-color: #fff0ae;
  color: #0d0d09;
  box-shadow: 0 0 0 1px rgba(255,240,174,.38), 0 0 22px rgba(244,215,123,.42), 0 8px 22px rgba(143,111,37,.24);
}
.button-quiet { background: rgba(217,184,95,.025); }
.button-danger { color: #ffd0d0; border-color: rgba(241,120,120,.48); background: rgba(241,120,120,.09); }
.button-danger:hover:not(:disabled) { border-color:#ff9b9b; box-shadow:0 0 0 1px rgba(255,155,155,.20),0 0 18px rgba(241,120,120,.24); }
.button-small { min-height: 29px; padding: 5px 9px; font-size: 10px; }
.button-icon { width: 36px; padding: 0; display: inline-grid; place-items: center; font-size: 16px; }
.button-group { display: flex; flex-wrap: wrap; gap: 7px; }

.project-filters { padding: 0 20px 14px; display: grid; grid-template-columns: minmax(0,1fr) 122px 36px; gap: 7px; }
input, select, textarea {
  width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px;
  color: var(--text); background: #0d1425; outline: none; transition: .15s ease;
}
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #5f6d87; }
input:focus, select:focus, textarea:focus { border-color: rgba(110,168,255,.68); box-shadow: 0 0 0 3px rgba(110,168,255,.09); }
select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#7787a4 50%),linear-gradient(135deg,#7787a4 50%,transparent 50%); background-position: calc(100% - 15px) 15px,calc(100% - 10px) 15px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; padding-right:28px; }
.list-summary { padding: 0 20px 10px; color: var(--muted-2); font-size: 10px; border-bottom: 1px solid var(--line); }
.project-list { overflow: auto; min-height: 120px; }
.project-card {
  padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit;
  text-align: left; width: 100%; display: block; transition: .13s ease;
}
.project-card:hover { background: rgba(255,255,255,.026); }
.project-card.is-active { background: linear-gradient(90deg, rgba(110,168,255,.10), rgba(110,168,255,.025)); box-shadow: inset 2px 0 0 var(--accent); }
.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.project-code { font-weight: 780; font-size: 13px; color: var(--text); }
.project-client { margin-top: 3px; color: var(--muted); font-size: 11px; }
.project-meta { margin-top: 10px; color: var(--muted-2); font-size: 9px; display:flex; gap:8px; flex-wrap:wrap; }

.status-pill, .health-pill, .severity-pill, .mini-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .035em;
}
.status-pill::before, .health-pill::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.status-ACTIVE, .status-READY, .health-GREEN, .health-OK, .mini-pill.ok { color: var(--success); border-color: rgba(95,211,154,.25); background: rgba(95,211,154,.07); }
.status-SETUP, .status-DRAFT, .health-AMBER, .health-WARNING, .severity-MEDIUM, .severity-WARNING { color: var(--warning); border-color: rgba(240,201,106,.25); background: rgba(240,201,106,.07); }
.status-SUSPENDED, .health-RED, .health-BLOCKED, .severity-HIGH, .severity-CRITICAL { color: var(--danger); border-color: rgba(241,120,120,.28); background: rgba(241,120,120,.075); }
.status-CLOSED { color: #95a1b6; background: rgba(149,161,182,.07); }
.status-ACTIVE_LEGACY { color: #b9a0ff; border-color: rgba(185,160,255,.25); background: rgba(185,160,255,.065); }

.detail-panel { min-height: calc(100vh - 122px); }
.empty-detail { min-height: 590px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 48px; position: relative; overflow: hidden; }
.empty-detail::before { content:""; position:absolute; width:520px; height:520px; border-radius:50%; background:radial-gradient(circle,rgba(110,168,255,.08),transparent 65%); }
.empty-detail > * { position: relative; }
.empty-symbol { width: 54px; height: 54px; display:grid; place-items:center; border-radius:14px; background:var(--panel-2); border:1px solid var(--line); color:var(--accent); font-size:24px; margin-bottom:14px; }
.empty-detail h2 { margin:0; font-size:24px; letter-spacing:-.03em; }
.empty-detail p:not(.eyebrow) { max-width: 520px; color:var(--muted); font-size:12px; margin:9px auto 0; }
.empty-preview-grid { margin-top:24px; display:grid; grid-template-columns:repeat(4,52px); gap:8px; opacity:.62; }
.empty-preview-grid span { height:34px; border-radius:8px; background:var(--panel-2); border:1px solid var(--line); }

.detail-header { padding: 22px 22px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,rgba(24,33,57,.54),rgba(17,24,43,0)); }
.detail-heading-row { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.detail-title h2 { margin:0; font-size:27px; letter-spacing:-.035em; }
.detail-title .project-code { color:var(--accent); font-size:10px; margin-bottom:5px; text-transform:uppercase; letter-spacing:.08em; }
.detail-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.period-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }

.tabbar { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:8px; padding:14px 18px; border-bottom:1px solid var(--line); background:rgba(8,13,25,.35); }
.tab-button { min-height:42px; border:1.5px solid rgba(217,184,95,.38); border-radius:9px; background:var(--panel); color:#c7c1b1; font-size:12px; font-weight:750; padding:9px 11px; transition:.15s ease; }
.tab-button:hover { color:#fff8e6; border-color:var(--gold-bright); background:rgba(217,184,95,.065); box-shadow:0 0 0 1px rgba(244,215,123,.16),0 0 16px rgba(217,184,95,.22); }
.tab-button.is-active { color:#fff9e8; background:linear-gradient(180deg,rgba(217,184,95,.10),var(--panel-2)); border-color:var(--gold-bright); box-shadow:inset 0 -2px 0 var(--gold),0 0 12px rgba(217,184,95,.12); }
.detail-body { padding:18px 20px 24px; }
.detail-panel .button { font-size:12px; }
.detail-panel .button-small { font-size:11px; }

.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.kpi-card { min-height:92px; padding:14px 15px; border:1px solid var(--line); border-radius:11px; background:linear-gradient(180deg,var(--panel-2),rgba(24,33,57,.72)); position:relative; overflow:hidden; }
.kpi-card::after { content:""; position:absolute; right:-22px; top:-25px; width:70px; height:70px; border-radius:50%; background:rgba(110,168,255,.045); }
.kpi-label { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.055em; margin-bottom:8px; }
.kpi-value { font-size:25px; line-height:1.05; font-weight:790; letter-spacing:-.03em; }
.kpi-note { color:var(--muted-2); font-size:11px; line-height:1.35; margin-top:7px; }

.content-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; grid-auto-rows:max-content; }
/* UI density rule: dashboard cards follow their content height; no visual stretching to match adjacent cards. */
.section-card { border:1px solid var(--line); border-radius:11px; background:rgba(24,33,57,.52); overflow:hidden; min-width:0; align-self:start; height:fit-content; }
.section-card.full { grid-column:1 / -1; }
.section-heading { min-height:0; display:flex; justify-content:space-between; align-items:center; gap:14px; padding:13px 15px; border-bottom:1px solid var(--line); font-size:13px; font-weight:780; color:var(--text-soft); }
.section-heading h3 { margin:0; font-size:18px; line-height:1.2; letter-spacing:-.015em; color:var(--text); }
.section-heading p { margin:5px 0 0; color:var(--text-soft); font-size:13px; line-height:1.35; font-weight:650; }
.section-body { padding:13px 15px; }
.metric-list { display:grid; gap:0; }
.metric-row { min-height:39px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid var(--line); padding:8px 0; }
.metric-row:first-child { border-top:0; }
.metric-name { color:var(--muted); font-size:13px; line-height:1.35; }
.metric-value { color:var(--text); font-size:14px; line-height:1.25; font-weight:760; text-align:right; }

.alert-list { display:grid; gap:7px; }
.alert-item { display:grid; grid-template-columns:auto 1fr auto; gap:9px; align-items:center; padding:9px 10px; border-radius:8px; border:1px solid var(--line); background:rgba(8,13,25,.30); }
.alert-item.CRITICAL, .alert-item.HIGH { border-color:rgba(241,120,120,.22); background:rgba(241,120,120,.045); }
.alert-item.WARNING, .alert-item.MEDIUM { border-color:rgba(240,201,106,.20); background:rgba(240,201,106,.04); }
.alert-code { font-size:12px; line-height:1.3; font-weight:800; color:var(--text-soft); }
.alert-domain { color:var(--muted); font-size:11px; line-height:1.3; }

.readiness-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; grid-auto-rows:max-content; }
.readiness-card { min-width:0; overflow:hidden; border:1.5px solid var(--line); border-radius:12px; padding:16px; background:rgba(8,13,25,.25); align-self:start; height:fit-content; }
.readiness-card.is-ready { border-color:rgba(95,211,154,.56); background:linear-gradient(180deg,rgba(35,145,91,.20),rgba(24,73,52,.12)); box-shadow:inset 0 0 22px rgba(95,211,154,.035); }
.readiness-card.is-blocked { border-color:rgba(241,120,120,.60); background:linear-gradient(180deg,rgba(184,58,67,.22),rgba(78,31,42,.13)); box-shadow:inset 0 0 22px rgba(241,120,120,.04); }
.readiness-title { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:10px; min-width:0; }
.readiness-title h4 { margin:0; font-size:15px; line-height:1.25; letter-spacing:.005em; }
.readiness-state { flex:0 0 auto; font-size:13px; line-height:1.1; padding:6px 11px; }
.readiness-card.is-ready .readiness-state { color:#9df2c4; border-color:rgba(95,211,154,.65); background:rgba(95,211,154,.16); }
.readiness-card.is-blocked .readiness-state { color:#ffb0b0; border-color:rgba(241,120,120,.68); background:rgba(241,120,120,.18); }
.readiness-items { margin:12px 0 0; padding-left:20px; color:#d1d8e6; font-size:13px; line-height:1.48; min-width:0; }
.readiness-items li { max-width:100%; overflow-wrap:anywhere; word-break:normal; padding-right:2px; }
.readiness-items li + li { margin-top:7px; }
.readiness-items strong { color:var(--text); }
.readiness-empty { font-size:13px; color:#d1d8e6; line-height:1.48; }

.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:9px; }
table { width:100%; border-collapse:collapse; min-width:620px; }
th { position:sticky; top:0; background:#131c31; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.055em; text-align:left; padding:9px 10px; border-bottom:1px solid var(--line-strong); }
td { padding:9px 10px; border-bottom:1px solid var(--line); font-size:11px; color:var(--text-soft); vertical-align:middle; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:rgba(255,255,255,.024); }
.numeric { text-align:right; font-variant-numeric:tabular-nums; }
.muted { color:var(--muted); }
.truncate { max-width:210px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.empty-state { padding:22px 18px; text-align:center; color:var(--muted); font-size:13px; line-height:1.4; }
.empty-state.compact { padding:14px 13px; font-size:12px; }
.loading-state { padding:22px 16px; color:var(--muted); text-align:center; font-size:13px; }
.error-box { border:1px solid rgba(241,120,120,.30); background:rgba(241,120,120,.065); color:#ffb7b7; padding:11px 12px; border-radius:8px; font-size:12px; line-height:1.4; }

.modal-root[hidden] { display:none; }
.modal-root { position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:24px; background:rgba(2,6,14,.76); backdrop-filter:blur(5px); overflow:auto; }
.modal-card { width:min(680px,100%); max-height:calc(100vh - 48px); overflow:auto; background:#11182b; border:1px solid rgba(110,168,255,.16); border-radius:14px; box-shadow:0 28px 90px rgba(0,0,0,.52); padding:20px; }
.modal-card.wide { width:min(900px,100%); }
.access-card { width:min(620px,100%); }
.modal-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; }
.modal-heading h2 { margin:0; font-size:21px; letter-spacing:-.025em; }
.icon-close { border:1.5px solid rgba(217,184,95,.48); background:var(--panel-2); color:#efe6cf; border-radius:50%; width:32px; height:32px; font-size:19px; line-height:1; transition:.15s ease; }
.icon-close:hover { border-color:var(--gold-bright); color:#fff8e6; box-shadow:0 0 0 1px rgba(244,215,123,.16),0 0 14px rgba(217,184,95,.22); }
.dev-notice { margin-bottom:13px; padding:10px 11px; border-radius:8px; color:#b9cae7; background:rgba(110,168,255,.055); border:1px solid rgba(110,168,255,.18); font-size:10px; line-height:1.45; }
.field { display:grid; gap:5px; margin-top:11px; color:var(--muted); font-size:10px; font-weight:700; }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 11px; }
.field-grid .full { grid-column:1 / -1; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:8px; }
.check-row { display:flex; align-items:flex-start; gap:8px; padding:9px; border:1px solid var(--line); background:rgba(8,13,25,.25); border-radius:8px; }
.check-row input { width:auto; min-height:auto; margin-top:2px; }
.check-copy { display:grid; gap:1px; }
.check-copy strong { color:var(--text); font-size:10px; }
.check-copy small { font-weight:400; color:var(--muted); font-size:9px; }
.site-field { gap:8px; }
.site-field-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.site-field-heading > span { color:var(--muted); font-size:10px; font-weight:700; }
.site-create-panel { margin-top:8px; padding:11px; border:1px solid rgba(217,184,95,.30); border-radius:9px; background:rgba(217,184,95,.035); }
.site-create-panel[hidden] { display:none; }
.site-create-grid .field { margin-top:0; }
.site-create-actions { margin-top:10px; display:flex; justify-content:flex-end; gap:7px; }
.modal-actions { margin-top:18px; display:flex; justify-content:flex-end; align-items:center; gap:7px; }
.modal-actions .button-quiet:first-child { margin-right:auto; }

.toast-root { position:fixed; right:18px; bottom:18px; z-index:80; display:grid; gap:7px; width:min(360px,calc(100vw - 36px)); }
.toast { background:#182139; border:1px solid var(--line-strong); color:white; padding:10px 12px; border-radius:9px; box-shadow:var(--shadow); font-size:10px; animation:toast-in .18s ease-out; }
.toast.error { border-color:rgba(241,120,120,.35); background:#3a1c28; }
.toast.success { border-color:rgba(95,211,154,.30); background:#153226; }
@keyframes toast-in { from { transform:translateY(8px); opacity:0; } to { transform:translateY(0); opacity:1; } }

@media (max-width: 1280px) {
  :root { --sidebar: 210px; }
  .project-layout { grid-template-columns: 330px minmax(0,1fr); }
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tabbar { grid-template-columns:repeat(2,minmax(120px,1fr)); }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns:72px minmax(0,1fr); }
  .brand-block { padding:22px 10px; text-align:center; }
  .brand-name { font-size:14px; letter-spacing:.03em; }
  .brand-subtitle, .env-badge, .nav-section, .nav-item > span:not(.nav-icon), .sidebar-foot { display:none; }
  .nav-stack { padding:8px; }
  .nav-item { justify-content:center; padding:8px; }
  .nav-icon { width:auto; }
  .main-content { padding:16px; }
  .project-layout { grid-template-columns:1fr; }
  .project-panel { position:static; max-height:none; }
  .detail-panel { min-height:520px; }
  .content-grid, .readiness-grid { grid-template-columns:1fr; }
  .section-card.full { grid-column:auto; }
}
@media (max-width: 640px) {
  .app-shell { display:block; }
  .sidebar { display:none; }
  .topbar { padding:0 13px; height:62px; }
  .page-title { font-size:17px; }
  .connection-badge { display:none; }
  .main-content { padding:10px; }
  .panel-header, .detail-header, .detail-body { padding-left:13px; padding-right:13px; }
  .project-filters { grid-template-columns:1fr 1fr 36px; padding-left:13px; padding-right:13px; }
  .project-filters .search-field { grid-column:1 / -1; }
  .detail-heading-row { display:grid; }
  .detail-actions { justify-content:flex-start; }
  .kpi-grid, .field-grid, .check-grid, .tabbar { grid-template-columns:1fr; }
  .field-grid .full { grid-column:auto; }
  .modal-root { padding:9px; }
  .modal-card { max-height:calc(100vh - 18px); }
}
