:root {
  color-scheme: dark;
  --bg: #08110f;
  --surface: #0e1b18;
  --surface-2: #13231f;
  --line: #274139;
  --text: #effaf5;
  --muted: #93aea4;
  --accent: #76f7b5;
  --accent-2: #58b9ff;
  --warn: #ffc66d;
  --danger: #ff7f8e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 15% 0%, #15362c 0, transparent 32rem), var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 1rem max(1.2rem, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(8,17,15,.9); backdrop-filter: blur(16px); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
main { width: min(1240px, calc(100% - 2rem)); margin: 0 auto 5rem; }
.hero { display: grid; grid-template-columns: 1.3fr .9fr; gap: 2rem; align-items: end; padding: 5rem 0 2.5rem; }
h1 { max-width: 850px; margin: .25rem 0 1rem; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: .96; letter-spacing: -.055em; }
h2 { margin: .2rem 0 1rem; font-size: 1.25rem; }
.lede { max-width: 720px; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--accent); font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
.loop { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, rgba(118,247,181,.09), rgba(88,185,255,.05)); }
.loop span, .chip { padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font: 600 .75rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.loop b { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.stat { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat strong { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .78rem; }
.grid { display: grid; gap: 1rem; }
.forms { grid-template-columns: repeat(3, 1fr); }
.execution-forms { grid-template-columns: .85fr 1.15fr; margin-bottom: 1rem; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(19,35,31,.94), rgba(14,27,24,.94)); padding: 1.2rem; box-shadow: 0 18px 60px rgba(0,0,0,.14); }
label { display: grid; gap: .35rem; margin-top: .85rem; color: var(--muted); font-size: .8rem; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #091411; color: var(--text); padding: .75rem; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(118,247,181,.28); border-color: var(--accent); }
button { margin-top: 1rem; border: 0; border-radius: 9px; background: var(--accent); color: #06110d; padding: .72rem 1rem; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button.ghost { margin: 0; border: 1px solid var(--line); background: transparent; color: var(--text); }
button.compact { padding: .45rem .65rem; font-size: .75rem; }
[hidden] { display: none !important; }
.identity { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .8rem; }
.identity strong { color: var(--text); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: min(430px, 100%); padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.auth-card h1 { margin: .4rem 0 1rem; font-size: 2.2rem; letter-spacing: -.035em; }
.auth-error { min-height: 1.4rem; margin: .75rem 0 0; color: var(--danger); font-size: .82rem; }
.hint { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.list-panel { min-height: 280px; }
.cards { display: grid; gap: .65rem; }
.cards.horizontal { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border-left: 3px solid var(--accent-2); border-radius: 8px; padding: .8rem .9rem; background: rgba(5,14,12,.65); }
.card.warn { border-color: var(--warn); }
.card.danger { border-color: var(--danger); }
.card strong { display: block; margin-bottom: .3rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: var(--muted); font: .72rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.card p { margin: .55rem 0 0; color: #c5d9d1; line-height: 1.45; font-size: .88rem; }
.artifact { max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; background: #050d0b; color: #d9eee6; }
.card button { margin: .7rem .4rem 0 0; padding: .45rem .65rem; font-size: .72rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.toast { position: fixed; right: 1rem; bottom: 1rem; max-width: 420px; margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #10231d; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .hero, .forms, .columns, .execution-forms { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .hero { padding-top: 3rem; } }
@media (max-width: 520px) { main { width: min(100% - 1rem, 1240px); } .topbar { padding: .8rem; } .stats { grid-template-columns: 1fr 1fr; } h1 { font-size: 2.45rem; } }
