:root {
  --ink: #f7f5ff;
  --muted: #a7a2bc;
  --panel: rgba(22, 18, 42, .76);
  --panel-solid: #17132c;
  --line: rgba(255, 255, 255, .09);
  --violet: #9f7aea;
  --pink: #fb6fbc;
  --cyan: #38d9f5;
  --lime: #a4ef78;
  --coral: #ff8d72;
  --shadow: 0 24px 80px rgba(4, 2, 16, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #090714; overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.ambient { position: fixed; width: 42rem; height: 42rem; border-radius: 50%; filter: blur(110px); opacity: .17; pointer-events: none; }
.ambient-one { top: -18rem; right: -8rem; background: #9d5cff; }
.ambient-two { bottom: -24rem; left: -14rem; background: #16cfe7; }
.shell { width: min(1460px, calc(100% - 40px)); margin: 0 auto; position: relative; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; margin-top: 5px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; position: relative; display: block; transform: rotate(-13deg); }
.brand-mark i { position: absolute; width: 13px; height: 30px; border-radius: 9px; top: 3px; }
.brand-mark i:nth-child(1) { left: 1px; background: linear-gradient(#ffd057, #92d338); }
.brand-mark i:nth-child(2) { left: 11px; background: linear-gradient(#ff795f, #e447b8); }
.brand-mark i:nth-child(3) { left: 21px; background: linear-gradient(#59ddff, #7867ff); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.last-updated { color: var(--muted); font-size: .78rem; margin-right: 8px; }
.button { border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; cursor: pointer; transition: .2s ease; font-weight: 700; }
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); }
.button-quiet { background: rgba(255,255,255,.045); }
.button-primary { border-color: transparent; background: linear-gradient(120deg, #845ef7, #d957c4); box-shadow: 0 10px 30px rgba(151, 85, 232, .22); }
.hero { min-height: 410px; padding: 76px 5vw 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero h1 { margin: 14px 0 18px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.072em; max-width: 880px; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, #fff 0%, #a89af3 48%, #f779c5 100%); background-clip: text; -webkit-background-clip: text; }
.hero p { max-width: 630px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.eyebrow, .section-kicker { color: #c7bee9; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.04); }
.status-dot.up { background: var(--lime); box-shadow: 0 0 20px rgba(164,239,120,.8); }
.status-dot.down { background: var(--coral); box-shadow: 0 0 20px rgba(255,141,114,.8); }
.status-dot.neutral { background: #77718f; }
.hero-orbit { width: 260px; height: 260px; flex: 0 0 260px; position: relative; }
.orbit-ring { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 60px rgba(142,88,245,.12); animation: float 5s ease-in-out infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.11); inset: 24px; }
.orbit-ring::after { inset: 58px; border-style: solid; }
.orbit-core { width: 86px; height: 86px; border-radius: 28px; display: grid; place-items: center; font-weight: 900; font-size: 2.6rem; background: linear-gradient(145deg, #7354ef, #dc55b8); transform: rotate(8deg); box-shadow: 0 20px 50px rgba(111,65,226,.4); }
.orbit-label { position: absolute; border: 1px solid var(--line); background: rgba(19,15,37,.9); border-radius: 999px; padding: 7px 10px; font-size: .66rem; font-weight: 800; box-shadow: var(--shadow); }
.orbit-label-one { top: 28px; right: -8px; }.orbit-label-two { bottom: 44px; right: -10px; }.orbit-label-three { left: -12px; top: 105px; }
@keyframes float { 50% { transform: translateY(-9px) rotate(2deg); } }
.alert-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 42px; border: 1px solid rgba(255,141,114,.3); border-radius: 18px; background: linear-gradient(100deg, rgba(255,100,93,.12), rgba(255,255,255,.025)); }
.alert-banner.hidden { display: none; }.alert-banner p { margin: 4px 0 0; color: #c9bfd1; font-size: .88rem; }
.alert-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #1a0910; background: var(--coral); font-weight: 900; }
.alert-banner button { margin-left: auto; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.section-heading, .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
h2 { margin: 6px 0 0; font-size: 1.45rem; letter-spacing: -.035em; }
.poll-note { color: var(--muted); font-size: .75rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card, .metric-card, .panel { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.service-card { padding: 19px; border-radius: 18px; min-height: 138px; }
.service-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-card h3 { margin: 0; font-size: .96rem; }.service-card p { margin: 20px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; overflow-wrap: anywhere; }
.status-badge { border-radius: 999px; padding: 5px 8px; font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.status-badge.up { color: var(--lime); background: rgba(164,239,120,.1); }.status-badge.down { color: var(--coral); background: rgba(255,141,114,.1); }.status-badge.not_configured { color: #bcb5cf; background: rgba(255,255,255,.06); }
.latency { color: #dbd6e8; font-size: .75rem; }
.runtime-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: rgba(255,255,255,.022); }
.runtime-strip > div { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }.runtime-strip > div:last-child { border-right: 0; }
.runtime-strip span { color: var(--muted); font-size: .68rem; }.runtime-strip strong { font-size: .82rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 54px; }
.metric-card { min-height: 158px; padding: 22px; border-radius: 19px; position: relative; overflow: hidden; }
.metric-card::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -30px; top: -35px; filter: blur(12px); opacity: .3; }
.accent-violet::before { background: var(--violet); }.accent-cyan::before { background: var(--cyan); }.accent-lime::before { background: var(--lime); }.accent-coral::before { background: var(--coral); }
.metric-card span { color: var(--muted); font-size: .78rem; }.metric-card strong { display: block; font-size: 3.2rem; letter-spacing: -.06em; margin: 11px 0 2px; }.metric-card small { color: #77718f; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(350px, .75fr); gap: 16px; }
.panel { border-radius: 24px; padding: 24px; }
.count-pill { font-size: .68rem; padding: 7px 10px; border-radius: 999px; color: var(--cyan); background: rgba(56,217,245,.09); white-space: nowrap; }.count-pill.danger { color: var(--coral); background: rgba(255,141,114,.09); }
.campaign-list, .failure-list { display: grid; gap: 10px; }
.campaign-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 15px; background: rgba(255,255,255,.027); border: 1px solid transparent; transition: .2s; }
.campaign-row:hover { background: rgba(255,255,255,.045); border-color: var(--line); }
.campaign-thumb { width: 58px; height: 58px; border-radius: 13px; object-fit: cover; background: linear-gradient(145deg, #32255a, #18465b); }
.campaign-title { font-size: .86rem; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.campaign-meta { color: var(--muted); font-size: .7rem; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 8px; }
.campaign-link { color: #d9d0ff; text-decoration: none; font-size: .72rem; padding: 8px; }.campaign-link:hover { color: #fff; }
.failure-item { border-left: 2px solid var(--coral); padding: 13px 14px; background: rgba(255,255,255,.026); border-radius: 4px 14px 14px 4px; }
.failure-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 800; }.failure-time { color: var(--muted); font-size: .66rem; font-weight: 500; white-space: nowrap; }
.failure-item p { color: #bcb6c9; font-size: .74rem; line-height: 1.45; margin: 7px 0; }.failure-action { color: var(--coral); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }
.empty-state { min-height: 180px; place-items: center; color: var(--muted); text-align: center; }
.safeguards-panel { margin: 16px 0 52px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }.safeguards-panel > div:first-child p { color: var(--muted); margin: 9px 0 0; font-size: .8rem; }
.safeguards { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.guard { padding: 10px 12px; border-radius: 12px; font-size: .72rem; border: 1px solid var(--line); }.guard.safe { color: var(--lime); }.guard.info { color: var(--cyan); }.guard.unsafe { color: var(--coral); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: #716b86; font-size: .69rem; }
dialog { color: var(--ink); width: min(540px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: var(--panel-solid); box-shadow: 0 40px 120px #000; }
dialog::backdrop { background: rgba(3,2,10,.78); backdrop-filter: blur(10px); }
dialog form { padding: 30px; position: relative; } dialog h2 { font-size: 1.8rem; } dialog p { color: var(--muted); font-size: .84rem; line-height: 1.55; }
dialog label { display: grid; gap: 8px; margin-top: 18px; font-size: .76rem; font-weight: 700; color: #d8d2e7; } dialog input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; padding: 13px; outline: none; } dialog input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(159,122,234,.12); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }.dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
@media (max-width: 1050px) { .service-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }.runtime-strip { grid-template-columns: repeat(2, 1fr); }.runtime-strip > div:nth-child(2) { border-right: 0; }.runtime-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.split-layout { grid-template-columns: 1fr; }.hero-orbit { width: 210px; height: 210px; flex-basis: 210px; } }
@media (max-width: 700px) { .shell { width: min(100% - 24px, 1460px); }.topbar { padding: 14px 0; align-items: flex-start; }.top-actions { flex-wrap: wrap; justify-content: flex-end; }.last-updated { width: 100%; text-align: right; margin: 0; }.hero { padding: 56px 4px 44px; min-height: 0; }.hero-orbit { display: none; }.service-grid, .metric-grid, .runtime-strip { grid-template-columns: 1fr; }.runtime-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }.runtime-strip > div:last-child { border-bottom: 0; }.metric-grid { margin-bottom: 40px; }.section-heading { align-items: flex-start; flex-direction: column; }.panel { padding: 18px; }.campaign-row { grid-template-columns: 48px minmax(0,1fr); }.campaign-thumb { width: 48px; height: 48px; }.campaign-link { grid-column: 2; padding: 0; }.safeguards-panel { align-items: flex-start; flex-direction: column; }.safeguards { justify-content: flex-start; } footer { flex-direction: column; }.button { padding: 9px 11px; font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
