:root {
  color-scheme: dark;
  --ink: #f3f8f5;
  --muted: #8f9f98;
  --muted-2: #67756f;
  --canvas: #07100e;
  --canvas-deep: #040a09;
  --sidebar: rgba(5, 13, 11, 0.92);
  --panel: rgba(15, 27, 23, 0.78);
  --panel-solid: #101c19;
  --panel-raised: #14231f;
  --line: rgba(198, 226, 214, 0.1);
  --line-strong: rgba(198, 226, 214, 0.18);
  --mint: #67f0c2;
  --lime: #b7ff6a;
  --coral: #ff7f78;
  --violet: #a991ff;
  --blue: #75baff;
  --amber: #ffc96b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 258px;
  font-family: Inter, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background:
    radial-gradient(circle at 76% -20%, rgba(103, 240, 194, 0.08), transparent 35%),
    linear-gradient(145deg, var(--canvas-deep), var(--canvas) 48%, #071310);
  color: var(--ink);
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.is-hidden { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one { background: var(--mint); top: -20rem; right: 8%; }
.ambient-two { background: #4f78ff; bottom: -26rem; left: 24%; opacity: 0.08; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px 70px;
  position: relative;
}

.glass-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(18, 34, 29, 0.92), rgba(9, 19, 16, 0.88));
  border: 1px solid rgba(194, 255, 230, 0.13);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.login-card {
  width: min(590px, 100%);
  padding: clamp(34px, 7vw, 68px);
  border-radius: 28px;
  overflow: hidden;
}

.login-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 240, 194, 0.13), transparent 68%);
  top: -170px;
  right: -130px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-mark span {
  position: absolute;
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--mint), var(--lime));
  border-radius: 2px;
  transform: rotate(0deg);
}

.brand-mark span:nth-child(1) { width: 30px; top: 7px; }
.brand-mark span:nth-child(2) { width: 20px; top: 16px; }
.brand-mark span:nth-child(3) { width: 8px; top: 25px; }
.brand-mark-large { width: 52px; height: 52px; margin-bottom: 34px; transform: scale(1.35); transform-origin: left center; }

.login-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 500px;
}

h1 em, h1 span { color: var(--mint); font-style: normal; font-weight: inherit; }

.login-copy {
  color: #afbeb8;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 470px;
  margin: 24px 0 38px;
}

.login-form label, .stacked-form label, .confirmation-input-wrap {
  display: block;
  color: #cbd5d1;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 9px;
}

.password-row { display: flex; gap: 10px; }

input, textarea, select {
  color: var(--ink);
  background: rgba(3, 10, 8, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input:hover, textarea:hover, select:hover { border-color: rgba(103, 240, 194, 0.3); }
input:focus, textarea:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(103, 240, 194, 0.08); outline: 0; }
input::placeholder, textarea::placeholder { color: #5e6d67; }

.password-row input { min-width: 0; flex: 1; padding: 13px 15px; }

.button {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.button-primary { background: linear-gradient(135deg, var(--mint), #75efac); color: #04110c; box-shadow: 0 10px 30px rgba(103, 240, 194, 0.12); }
.button-primary:hover { box-shadow: 0 13px 34px rgba(103, 240, 194, 0.2); }
.button-quiet { background: rgba(255, 255, 255, 0.035); color: #cbd7d2; border: 1px solid var(--line); }
.button-quiet:hover { background: rgba(255, 255, 255, 0.065); border-color: var(--line-strong); }
.button-danger { background: rgba(255, 127, 120, 0.12); color: #ffaaa5; border: 1px solid rgba(255, 127, 120, 0.24); }
.button-danger:hover { background: rgba(255, 127, 120, 0.18); }
.button-wide { width: 100%; padding: 13px 18px; }

.form-message { min-height: 20px; margin: 10px 0 0; color: var(--coral); font-size: 0.78rem; }
.login-trust { display: flex; justify-content: space-between; gap: 15px; margin-top: 25px; color: var(--muted-2); font-size: 0.68rem; }
.login-trust span { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px rgba(103, 240, 194, 0.65); }
.login-footnote { position: absolute; bottom: 22px; color: #52615b; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.6rem; }

.app-shell { min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 27px 18px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 28px;
  text-decoration: none;
  color: var(--ink);
}

.brand strong { display: block; font-size: 0.77rem; letter-spacing: 0.13em; }
.brand small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 0.52rem; letter-spacing: 0.2em; }

.nav { flex: 1; }
.nav-label { margin: 20px 11px 8px; color: #48564f; font-size: 0.56rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  margin-bottom: 3px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #84938d;
  font-size: 0.76rem;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.nav-item:hover { color: #d9e4df; background: rgba(255, 255, 255, 0.025); }
.nav-item.is-active { color: var(--ink); background: rgba(103, 240, 194, 0.075); border-color: rgba(103, 240, 194, 0.08); }
.nav-item.is-active .nav-icon { color: var(--mint); }
.nav-icon { width: 19px; text-align: center; font-size: 1rem; color: #617069; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; text-align: center; border-radius: 20px; color: #7c8a84; background: rgba(255, 255, 255, 0.04); font-size: 0.62rem; }
.nav-count.accent { color: #07120e; background: var(--mint); }

.sidebar-bottom { display: flex; align-items: center; gap: 9px; padding: 14px 7px 0; border-top: 1px solid var(--line); }
.system-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.system-chip strong, .system-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.system-chip strong { color: #aebbb6; font-size: 0.66rem; }
.system-chip small { color: #4f5d57; margin-top: 3px; font-size: 0.56rem; }
.pulse-ring { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(103, 240, 194, 0.16); border-radius: 50%; }
.pulse-ring i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #7d8d86;
  transition: color 150ms ease, background 150ms ease;
}
.icon-button:hover { color: var(--mint); background: rgba(103, 240, 194, 0.06); }

.main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 14, 0.72);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 8;
}
.breadcrumb { color: #596760; font-size: 0.57rem; font-weight: 720; letter-spacing: 0.14em; }
.breadcrumb span { padding: 0 7px; color: #35423c; }
.breadcrumb strong { color: #99a7a1; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.site-picker-label { color: #55635d; font-size: 0.62rem; margin-right: 2px; }
.site-picker, .quiet-select { padding: 9px 31px 9px 11px; color: #c5d2cd; font-size: 0.7rem; }
.site-picker { max-width: 190px; }

.main-scroll { padding: 42px clamp(24px, 4vw, 56px) 80px; max-width: 1740px; margin: 0 auto; }
.view { display: none; animation: view-in 300ms ease both; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hero-row, .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 31px;
}
.hero-row h1, .section-heading h1 { margin: 0; letter-spacing: -0.047em; font-weight: 680; }
.hero-row h1 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
.section-heading h1 { font-size: clamp(2.15rem, 4.3vw, 3.8rem); }
.hero-row h1 span, .section-heading h1 span { color: #7f9189; }
.hero-copy, .section-heading > div > p:last-child { color: var(--muted); max-width: 680px; line-height: 1.6; font-size: 0.83rem; }
.hero-actions, .heading-actions { display: flex; gap: 9px; padding-bottom: 4px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.metric-card {
  min-height: 154px;
  padding: 21px 22px;
  background: linear-gradient(145deg, rgba(18, 33, 28, 0.76), rgba(11, 23, 19, 0.76));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #8d9b95; font-size: 0.67rem; }
.metric-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-weight: 800; }
.metric-icon.green { color: var(--mint); background: rgba(103, 240, 194, 0.08); }
.metric-icon.violet { color: var(--violet); background: rgba(169, 145, 255, 0.09); }
.metric-icon.coral { color: var(--coral); background: rgba(255, 127, 120, 0.09); }
.metric-icon.blue { color: var(--blue); background: rgba(117, 186, 255, 0.09); }
.metric-card > strong { display: block; margin: 16px 0 7px; font-size: 2.05rem; letter-spacing: -0.045em; font-weight: 680; }
.metric-card p { margin: 0; color: #586761; font-size: 0.63rem; line-height: 1.4; }

.panel {
  background: linear-gradient(145deg, rgba(17, 31, 26, 0.78), rgba(10, 21, 18, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header h2 { margin: 0; font-size: 1rem; letter-spacing: -0.02em; }
.panel-header .eyebrow { font-size: 0.56rem; margin-bottom: 7px; color: #64736c; }
.text-button { background: none; border: 0; padding: 5px; color: #71817a; font-size: 0.67rem; }
.text-button:hover { color: var(--mint); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.85fr); gap: 15px; margin-bottom: 15px; }
.portfolio-panel, .attention-panel { padding: 23px; min-height: 405px; }
.chart-wrap { min-height: 250px; position: relative; padding-top: 28px; overflow: hidden; }
.chart-copy { position: absolute; z-index: 1; top: 29px; left: 0; }
.chart-copy span, .chart-copy small { display: block; color: #57665f; font-size: 0.55rem; letter-spacing: 0.11em; text-transform: uppercase; }
.chart-copy strong { display: block; margin: 5px 0 2px; font-size: 1.75rem; font-weight: 640; letter-spacing: -0.04em; }
.signal-chart { width: 100%; height: 218px; margin-top: 25px; overflow: visible; }
.chart-grid line { stroke: rgba(193, 226, 212, 0.06); stroke-dasharray: 3 5; }
.area-path { fill: url(#area-gradient); }
.line-path { fill: none; stroke: url(#line-gradient); stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.signal-chart circle { fill: var(--lime); stroke: var(--canvas); stroke-width: 3; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 16px; }
.kpi-strip > div { padding: 0 15px; border-right: 1px solid var(--line); }
.kpi-strip > div:first-child { padding-left: 0; }
.kpi-strip > div:last-child { border: 0; }
.kpi-strip span, .kpi-strip strong { display: block; }
.kpi-strip span { color: #57665f; font-size: 0.57rem; }
.kpi-strip strong { margin-top: 5px; font-size: 0.93rem; }

.priority-list { margin-top: 21px; }
.priority-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.priority-item:first-child { border-top: 0; padding-top: 3px; }
.priority-rank { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(103, 240, 194, 0.07); color: var(--mint); font-size: 0.58rem; }
.priority-item strong { display: block; color: #ced9d5; font-size: 0.7rem; line-height: 1.42; }
.priority-item small { display: block; margin-top: 4px; color: #56655f; font-size: 0.59rem; }
.severity-badge, .status-badge { display: inline-flex; padding: 4px 7px; border-radius: 30px; font-size: 0.51rem; font-weight: 760; letter-spacing: 0.07em; text-transform: uppercase; }
.severity-badge.high { color: #ffaaa5; background: rgba(255, 127, 120, 0.09); }
.severity-badge.medium { color: #ffd896; background: rgba(255, 201, 107, 0.08); }
.severity-badge.low { color: #95caff; background: rgba(117, 186, 255, 0.08); }

.sites-table-panel { padding: 23px; }
.table-wrap { overflow-x: auto; margin-top: 17px; }
table { width: 100%; border-collapse: collapse; min-width: 740px; }
th { color: #4f5e57; font-size: 0.54rem; letter-spacing: 0.11em; text-align: left; text-transform: uppercase; font-weight: 700; padding: 10px 13px; border-bottom: 1px solid var(--line); }
td { padding: 15px 13px; border-bottom: 1px solid rgba(198, 226, 214, 0.065); color: #8d9b95; font-size: 0.68rem; }
tbody tr { transition: background 130ms ease; }
tbody tr:hover { background: rgba(103, 240, 194, 0.025); }
.site-cell { display: flex; align-items: center; gap: 11px; }
.site-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #0b1c15; background: linear-gradient(145deg, var(--mint), var(--lime)); font-weight: 800; font-size: 0.72rem; }
.site-cell strong, .site-cell small { display: block; }
.site-cell strong { color: #d5dfdb; font-size: 0.7rem; }
.site-cell small { color: #516059; font-size: 0.58rem; margin-top: 3px; }
.posture { display: inline-flex; align-items: center; gap: 7px; text-transform: capitalize; }
.posture i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.posture.no-credentials i { background: var(--coral); }
.coverage-bar { display: inline-flex; align-items: center; gap: 8px; }
.coverage-bar i { width: 80px; height: 4px; overflow: hidden; display: inline-block; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.coverage-bar i::after { content: ""; display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: inherit; }
.coverage-bar i.coverage-5::after { width: 5%; }
.coverage-bar i.coverage-10::after { width: 10%; }
.coverage-bar i.coverage-15::after { width: 15%; }
.coverage-bar i.coverage-20::after { width: 20%; }
.coverage-bar i.coverage-25::after { width: 25%; }
.coverage-bar i.coverage-30::after { width: 30%; }
.coverage-bar i.coverage-35::after { width: 35%; }
.coverage-bar i.coverage-40::after { width: 40%; }
.coverage-bar i.coverage-45::after { width: 45%; }
.coverage-bar i.coverage-50::after { width: 50%; }
.coverage-bar i.coverage-55::after { width: 55%; }
.coverage-bar i.coverage-60::after { width: 60%; }
.coverage-bar i.coverage-65::after { width: 65%; }
.coverage-bar i.coverage-70::after { width: 70%; }
.coverage-bar i.coverage-75::after { width: 75%; }
.coverage-bar i.coverage-80::after { width: 80%; }
.coverage-bar i.coverage-85::after { width: 85%; }
.coverage-bar i.coverage-90::after { width: 90%; }
.coverage-bar i.coverage-95::after { width: 95%; }
.coverage-bar i.coverage-100::after { width: 100%; }
.row-open { border: 0; background: transparent; color: #62716b; font-size: 1rem; }
.row-open:hover { color: var(--mint); }

.empty-state { text-align: center; padding: 55px 25px 35px; }
.empty-state h3 { margin: 15px 0 7px; font-size: 1.08rem; }
.empty-state p { max-width: 470px; margin: 0 auto 20px; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }
.empty-orbit { width: 45px; height: 45px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(103, 240, 194, 0.18); border-radius: 50%; color: var(--mint); }

.section-heading { align-items: end; margin-bottom: 38px; }
.section-heading > div > p:last-child { margin: 13px 0 0; }
.site-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.site-card { padding: 22px; min-height: 260px; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.site-card:hover { transform: translateY(-3px); border-color: rgba(103, 240, 194, 0.2); background: linear-gradient(145deg, rgba(20, 38, 32, 0.88), rgba(11, 23, 19, 0.9)); }
.site-card-top { display: flex; justify-content: space-between; align-items: start; }
.site-card h3 { margin: 16px 0 3px; font-size: 1rem; }
.site-card-domain { color: #5f6e67; font-size: 0.62rem; }
.site-card-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 17px; }
.site-card-kpis span, .site-card-kpis strong { display: block; }
.site-card-kpis span { color: #53615b; font-size: 0.53rem; }
.site-card-kpis strong { font-size: 0.85rem; margin-top: 5px; }
.source-dots { display: flex; gap: 5px; margin-top: 22px; }
.source-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.08); }
.source-dots i.on { background: var(--mint); box-shadow: 0 0 7px rgba(103, 240, 194, .35); }
.site-detail-panel { margin-top: 15px; padding: 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.detail-stat { padding: 15px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.035); }
.detail-stat span, .detail-stat strong { display: block; }
.detail-stat span { color: #58665f; font-size: .56rem; }
.detail-stat strong { margin-top: 6px; font-size: .9rem; }
.source-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.source-pill { padding: 6px 9px; border-radius: 8px; color: #55635d; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: .56rem; }
.source-pill.on { color: #b9f9df; border-color: rgba(103,240,194,.15); background: rgba(103,240,194,.05); }

.queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.16); }
.segmented button { border: 0; padding: 8px 13px; border-radius: 7px; background: transparent; color: #64736d; font-size: .66rem; }
.segmented button.is-active { color: #dbe4e0; background: rgba(255,255,255,.055); box-shadow: 0 3px 12px rgba(0,0,0,.15); }
.toolbar-right { display: flex; gap: 8px; }
.queue-summary { color: #607069; font-size: .66rem; margin: 0 0 14px; }
.action-list { display: grid; gap: 9px; }
.action-card { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 17px; align-items: stretch; padding: 18px 20px 18px 0; overflow: hidden; }
.action-card::before { content: ""; background: var(--blue); border-radius: 0 8px 8px 0; }
.action-card.severity-high::before { background: var(--coral); }
.action-card.severity-medium::before { background: var(--amber); }
.action-card-main { min-width: 0; }
.action-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #53625b; font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.action-card h3 { margin: 8px 0 5px; color: #d4ded9; font-size: .82rem; line-height: 1.4; }
.action-card p { margin: 0; color: #71807a; font-size: .65rem; line-height: 1.55; max-width: 900px; }
.action-card-actions { display: flex; align-items: center; gap: 7px; }
.status-select { padding: 8px 27px 8px 9px; font-size: .62rem; text-transform: capitalize; }
.payload-button { padding: 8px 10px; }
.execution-dock { position: sticky; bottom: 18px; z-index: 5; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; border: 1px solid rgba(103,240,194,.18); border-radius: 13px; background: rgba(9,22,18,.94); box-shadow: 0 18px 60px rgba(0,0,0,.4); backdrop-filter: blur(18px); }
.execution-dock > div { display: flex; align-items: center; gap: 11px; }
.execution-dock > div:first-child { display: grid; grid-template-columns: auto 1fr; }
.execution-dock > div:first-child small { grid-column: 2; color: #5c6b64; font-size: .56rem; }
.execution-dock strong { font-size: .7rem; }

.automation-grid, .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.automation-card, .report-card { padding: 25px; position: relative; overflow: hidden; }
.automation-card::after, .report-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -75px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(103,240,194,.09), transparent 70%); }
.automation-icon, .report-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: var(--mint); background: rgba(103,240,194,.07); border: 1px solid rgba(103,240,194,.1); font-size: 1rem; }
.automation-card h3, .report-card h3 { margin: 20px 0 7px; font-size: .94rem; }
.automation-card p, .report-card p, .studio-note p { color: #687770; font-size: .66rem; line-height: 1.58; margin: 0; }
.automation-footer, .report-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.automation-footer small, .report-footer small { color: #506059; font-size: .55rem; }
.run-history-panel { padding: 24px; }
.run-list { margin-top: 16px; }
.run-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.run-item:first-child { border-top: 0; }
.run-status { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.run-status.failed { background: var(--coral); }
.run-status.skipped { background: var(--amber); }
.run-item strong, .run-item small { display: block; }
.run-item strong { color: #c5d0cc; font-size: .67rem; text-transform: capitalize; }
.run-item small { color: #53615b; font-size: .56rem; margin-top: 3px; }
.run-time { color: #526159; font-size: .57rem; }
.studio-note { padding: 24px; display: flex; align-items: center; gap: 17px; }
.studio-note h3 { margin: 0 0 6px; font-size: .82rem; }
.studio-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(169,145,255,.08); color: var(--violet); }

.onboarding-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; margin-bottom: 15px; }
.onboarding-form-panel, .onboarding-results-panel { padding: 28px; min-height: 430px; }
.step-number { color: var(--mint); font-size: .56rem; letter-spacing: .12em; }
.onboarding-grid h2 { margin: 18px 0 7px; font-size: 1.15rem; }
.onboarding-grid article > p { margin: 0; color: #687770; font-size: .68rem; line-height: 1.58; }
.stacked-form { margin-top: 26px; }
.stacked-form label { margin-top: 15px; }
.stacked-form label span { float: right; color: #4c5b54; font-weight: 500; }
.stacked-form input { width: 100%; padding: 12px 13px; }
.stacked-form .button { margin-top: 22px; }
.onboarding-results { margin: 24px 0 18px; }
.empty-results { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 13px; color: #596861; }
.empty-results p { max-width: 310px; font-size: .65rem; line-height: 1.5; }
.radar-loader { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(103,240,194,.16); border-radius: 50%; position: relative; }
.radar-loader::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(103,240,194,.1); border-radius: 50%; }
.radar-loader i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.candidate { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.candidate:first-child { border-top: 0; }
.candidate input { margin-top: 4px; accent-color: var(--mint); }
.candidate strong, .candidate small { display: block; }
.candidate strong { font-size: .69rem; color: #d0dbd6; }
.candidate small { margin-top: 4px; font-size: .56rem; color: #56645e; }
.confidence { color: var(--mint); font-size: .51rem; text-transform: uppercase; }
.readiness-panel { padding: 24px; }
.readiness-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.readiness-item { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.readiness-item span { display: flex; align-items: center; gap: 7px; color: #84928c; font-size: .59rem; }
.readiness-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.readiness-item.on i { background: var(--mint); }
.readiness-item small { display: block; color: #4d5c55; font-size: .5rem; margin-top: 6px; }

.modal {
  width: min(510px, calc(100vw - 28px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}
.modal::backdrop { background: rgba(1,6,5,.76); backdrop-filter: blur(6px); }
.modal-card { position: relative; margin: 0; padding: 31px; background: #101d19; border: 1px solid var(--line-strong); border-radius: 19px; box-shadow: var(--shadow); }
.modal-card h2 { margin: 10px 0 9px; font-size: 1.35rem; letter-spacing: -.035em; }
.modal-card > p:not(.eyebrow):not(.form-message) { margin: 0; color: #718079; font-size: .72rem; line-height: 1.6; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.03); color: #64726c; font-size: 1.15rem; }
.modal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--mint); background: rgba(103,240,194,.07); margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }
.confirmation-input-wrap { margin-top: 18px; }
.confirmation-input-wrap input { width: 100%; margin-top: 8px; padding: 11px 12px; }
.modal-wide { width: min(760px, calc(100vw - 28px)); }
#payload-editor { width: 100%; min-height: 330px; margin-top: 20px; padding: 14px; resize: vertical; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; line-height: 1.55; }

.toast-stack { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast { padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; gap: 10px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(16,31,26,.96); box-shadow: var(--shadow); animation: toast-in 220ms ease both; }
.toast i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--mint); }
.toast.error i { background: var(--coral); }
.toast strong, .toast small { display: block; }
.toast strong { font-size: .67rem; }
.toast small { margin-top: 3px; color: #617069; font-size: .56rem; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.loading-shimmer { position: relative; overflow: hidden; color: transparent !important; border-radius: 5px; background: rgba(255,255,255,.035); }
.loading-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  :root { --sidebar-width: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .site-card-grid { grid-template-columns: repeat(2, 1fr); }
  .readiness-grid { grid-template-columns: repeat(3, 1fr); }
  .site-picker-label { display: none; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 72px; }
  .sidebar { padding-inline: 10px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:last-child, .nav-label, .nav-item span:not(.nav-icon), .sidebar-bottom .system-chip { display: none; }
  .nav-item { justify-content: center; padding-inline: 0; }
  .nav-icon { width: auto; }
  .sidebar-bottom { justify-content: center; }
  .topbar { padding-inline: 24px; }
  .overview-grid, .onboarding-grid { grid-template-columns: 1fr; }
  .topbar .button-quiet, .site-picker-label { display: none; }
  .site-picker { max-width: 140px; }
  .attention-panel { min-height: auto; }
}

@media (max-width: 680px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 100%; height: 64px; inset: auto 0 0; flex-direction: row; align-items: center; padding: 7px 10px; border-right: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .sidebar .nav-label, .sidebar-bottom { display: none; }
  .nav { display: flex; width: 100%; justify-content: space-around; }
  .nav-item { width: 44px; min-height: 44px; margin: 0; }
  .nav-item:nth-of-type(5), .nav-item:nth-of-type(6) { display: none; }
  .topbar { height: 65px; padding: 0 15px; }
  .breadcrumb { display: none; }
  .topbar-actions { width: 100%; }
  .site-picker { flex: 1; max-width: none; }
  .topbar .button { padding: 10px; }
  .topbar .button span, .topbar .button .refresh-glyph { display: none; }
  .main-scroll { padding: 28px 15px 94px; }
  .hero-row, .section-heading { display: block; }
  .hero-actions, .heading-actions { margin-top: 20px; }
  .metric-grid, .site-card-grid, .automation-grid, .report-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 132px; }
  .password-row { display: grid; }
  .login-trust { display: grid; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); gap: 15px 0; }
  .kpi-strip > div:nth-child(2) { border: 0; }
  .queue-toolbar, .execution-dock { align-items: stretch; flex-direction: column; }
  .toolbar-right, .execution-dock > div:last-child { width: 100%; }
  .toolbar-right > *, .execution-dock > div:last-child > * { flex: 1; }
  .action-card { grid-template-columns: 4px minmax(0,1fr); }
  .action-card-actions { grid-column: 2; justify-content: flex-start; }
  .readiness-grid, .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
