:root {
  color-scheme: dark;
  --fg: #d7dbe0;
  --bg: #20242b;
  --bg-2: #191d27;
  --cream: #eef1f5;
  --cream-2: #222837;
  --ink: #eef1f5;
  --muted: #8f98a3;
  --brass: #ff5fa8;
  --brass-2: #ff8fc0;
  --green: #5fd8cb;
  --red: #e59a8f;
  --amber: #f4c86a;
  --blue: #9ad7ff;
  --line: rgba(255,255,255,.08);
  --panel: rgba(26,30,37,.72);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: #20242b;
  color: var(--fg);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, .display {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.15;
  color: #eef1f5;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.nav, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; background: linear-gradient(180deg, rgba(28,22,44,.86), rgba(20,18,34,.86)); border: 1.5px solid rgba(255,95,168,.55); border-radius: 14px; padding: 6px 13px 7px 9px; box-shadow: 0 0 14px rgba(255,95,168,.18), 0 4px 14px rgba(0,0,0,.25); color: #fff; }
.brand .title { font-weight: 750; font-size: 17px; color: #fff; display: block; }
.brand .subtitle { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #ff7fbf; font-weight: 800; display: block; }
.card .brand, .side .brand { color: #fff; }
.mt { margin-top: 16px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spacer { height: 12px; }
.brand svg { display: block; }
.nav-links, .footer-links { display: flex; gap: 18px; align-items: center; }
.nav a, .footer a { text-decoration: none; }
.nav a:hover, .footer a:hover { color: var(--brass-2); }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255,190,240,.55);
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #6d3fd6 0%, #9b4be0 50%, #c552c9 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(170,80,230,.28);
}
.btn.secondary { background: rgba(22,20,34,.84); color: #e9e6f2; border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.btn.ghost { background: transparent; color: #9fe3da; border: 1px solid rgba(95,216,203,.4); box-shadow: none; }
.btn.danger { background: rgba(120,40,40,.55); color: #f6dcc8; border-color: rgba(229,154,143,.45); box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 0.92rem; }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: center; padding: 28px 0 64px; }
.kicker { letter-spacing: 1.6px; text-transform: uppercase; font-size: 11px; font-weight: 800; color: #ff7fbf; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 16px; color: #fff; }
.lede { font-size: 1.18rem; max-width: 38rem; color: rgba(244, 239, 230, 0.84); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.fine { color: var(--muted); font-size: 0.92rem; }
.diorama {
  height: 460px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 230, 0.16);
  box-shadow: var(--shadow);
  background: linear-gradient(#243456, #121722 58%);
}
.skyline { position: absolute; left: 0; right: 0; bottom: 150px; height: 160px; display: flex; align-items: flex-end; gap: 8px; padding: 0 24px; }
.skyline span { display: block; width: 28px; background: #101624; position: relative; }
.skyline span:nth-child(odd) { height: 90px; }
.skyline span:nth-child(even) { height: 130px; }
.skyline span:nth-child(3n) { height: 70px; width: 40px; }
.room {
  position: absolute;
  left: 36px; right: 36px; bottom: 28px; height: 210px;
  background: linear-gradient(#123c44 0 62%, #4a1834 62% 100%);
  border-radius: 16px 16px 8px 8px;
  box-shadow: inset 0 0 0 8px #161a22;
}
.desks, .lounge-row { position: absolute; left: 18px; right: 18px; display: flex; justify-content: space-between; }
.desks { top: 28px; }
.lounge-row { bottom: 22px; }
.mini-desk, .sofa {
  width: 78px; height: 46px; border-radius: 8px; background: #2a3140; position: relative;
  box-shadow: 0 8px 0 #161a22;
}
.screen { position: absolute; width: 26px; height: 16px; background: #1c2433; top: -16px; left: 26px; border-radius: 3px; }
.screen.on { background: #5fd8cb; box-shadow: 0 0 10px #5fd8cb; }
.screen.wait { background: #f4c86a; box-shadow: 0 0 10px #f4c86a; }
.screen.bad { background: #ff5fa8; box-shadow: 0 0 10px #ff5fa8; }
.person {
  width: 18px; height: 18px; border-radius: 50%; position: absolute; top: -28px;
  box-shadow: 0 16px 0 6px currentColor;
}
.p1 { color: #3b6fd4; left: 8px; background: #3b6fd4; }
.p2 { color: #d46a9f; left: 8px; background: #d46a9f; }
.p3 { color: #e08a2c; left: 8px; background: #e08a2c; }
.sofa { width: 110px; height: 36px; background: #5a2048; box-shadow: 0 8px 0 #3a1830; }
.sofa .person { top: -20px; left: 18px; color: #2aa39a; background: #2aa39a; }
.caption {
  position: absolute; top: 18px; left: 18px; background: rgba(18, 20, 28, 0.72);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem;
}
.section { padding: 10px 0 70px; }
.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr 0.8fr; }
.card, .dark-card, .stat {
  background: #222837;
  color: #eef1f5;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-top: 4px solid #5fd8cb;
}
a.leader-card { display: block; text-decoration: none; color: inherit; }
a.leader-card:hover { border-color: #ff8fc0; }
.card h2, .card h3 { color: #5fd8cb; }
.card.pink, .big.pink { border-top-color: #ff8fc0; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; }
.dark-card h3 { color: #ff8fc0; }
.steps { counter-reset: step; }
.steps article { position: relative; padding-left: 48px; }
.steps article::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brass); color: #23180a; font-weight: 700;
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 2.6rem; margin: 0 0 8px; }
.stack { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: #191d27;
  color: #eef1f5;
  padding: 10px 12px;
}
.oauth { display: grid; gap: 8px; margin: 8px 0 4px; }
.oauth a, a.google {
  display: flex; justify-content: center; text-decoration: none;
  border-radius: 999px; padding: 12px 18px; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, #6d3fd6, #c552c9);
  border: 2px solid rgba(255,190,240,.55);
}
.split { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.split::before, .split::after { content: ""; height: 1px; background: rgba(23,25,31,0.12); flex: 1; }
.banner {
  background: rgba(110,60,30,.9); color: #f6dcc8; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px;
}
.banner.bad { background: rgba(120,40,40,.85); color: #f6dcc8; }
.soon { background: rgba(40,28,18,.9); color: #f4c86a; border: 1px solid rgba(244,200,106,.45); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { padding: 16px 12px; border-right: 1px solid rgba(255,255,255,.08); background: #191d27; display: flex; flex-direction: column; gap: 14px; }
.side nav { display: grid; gap: 4px; }
.side a, .side button.link {
  text-decoration: none; text-align: left; background: rgba(22,20,34,.84); border: 1px solid rgba(255,255,255,.14);
  color: #e9e6f2; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-weight: 600;
}
.side a.active, .side a:hover { border-color: rgba(255,95,168,.55); color: #fff; }
.main { padding: 28px; }
.main h1 { margin: 0 0 6px; font-size: 2.7rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat strong { display: block; font-size: 1.5rem; font-family: Palatino, Georgia, serif; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: #aeb8c4; }
.table th, .table td { padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; color: #eef1f5; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; background: rgba(26,30,37,.72); border: 1px solid rgba(255,255,255,.07); color: #d7dbe0; }
.s-working { color: #5fd8cb; border-color: rgba(95,216,203,.45); }
.s-waiting { color: #f4c86a; border-color: rgba(244,200,106,.45); }
.s-error { color: #e59a8f; border-color: rgba(229,154,143,.45); }
.s-done { color: #9ad7ff; border-color: rgba(154,215,255,.4); }
.s-idle { color: #8f98a3; }
.quiet { opacity: 0.8; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #5fd8cb; box-shadow: 0 0 8px #5fd8cb; }
pre, .snippet {
  background: #191d27; color: #e6eaf0; border-radius: 12px; padding: 12px;
  overflow: auto; font-size: 12.5px; line-height: 1.45; border: 1px solid rgba(255,255,255,.08);
}
.snippet-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.office { height: 100vh; background: #20242b; position: relative; }
.office #view { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; left: 12px; bottom: 12px; z-index: 6; width: min(340px, calc(100vw - 24px)); max-height: min(52vh, 420px); overflow: auto; background: rgba(20,25,32,.88); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; backdrop-filter: blur(8px); }
.hud h1 { font-size: 1.8rem; margin: 8px 0; }
#view { width: 100%; height: 100%; display: block; }
.roster { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.roster li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.roster strong, .roster em, .roster p, .roster small { display: block; }
.roster em { font-style: normal; color: var(--brass-2); font-size: 0.82rem; }
.roster p { margin: 2px 0; }
.roster small { color: rgba(244,239,230,0.62); }
.note { font-size: 0.92rem; color: rgba(244,239,230,0.75); }
.form-row { display: grid; grid-template-columns: 1.2fr 1fr 120px auto; gap: 8px; align-items: end; }
.inline { display: flex; gap: 8px; align-items: center; }
.footer { border-top: 1px solid var(--line); margin-top: 20px; color: rgba(244,239,230,0.7); }
.farm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counts { display: flex; gap: 6px; flex-wrap: wrap; }
.hud .banner { color: #5c4210; }
.legal { width: min(760px, calc(100% - 40px)); margin: 20px auto 60px; background: #191d27; color: #eef1f5; border-top: 4px solid #ff8fc0; }
.legal h1 { font-size: 32px; color: #5fd8cb; }
.fine, .note { color: #8f98a3; }
.stat strong { color: #5fd8cb; font-size: 32px; font-weight: 800; }
.legal h2 { margin-top: 1.6rem; }
@media (max-width: 900px) {
  .hero, .grid-3, .grid-2, .stats, .app, .office, .form-row, .farm-grid { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .office { height: auto; }
  #view { height: 68vh; }
  .nav { flex-wrap: wrap; }
}