*{box-sizing:border-box}
:root{--bg:#050915;--line:rgba(148,163,184,.18);--text:#e5edf7;--muted:#94a3b8;--blue:#60a5fa;--green:#22c55e;--red:#ef4444;--amber:#f59e0b}
html,body{margin:0;min-height:100%;background:radial-gradient(circle at top,#14213a 0,#050915 42%,#02040a 100%);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
button,input{font:inherit}
.app-shell{width:min(1280px,calc(100vw - 28px));margin:18px auto 28px;display:grid;gap:14px}
.topbar{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,rgba(17,24,39,.96),rgba(5,10,20,.96));box-shadow:0 14px 40px rgba(0,0,0,.28)}
.topbar strong{display:block;font-size:16px;font-weight:950;letter-spacing:.08em}
.topbar span{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:700}
.topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pill{display:inline-flex;align-items:center;height:30px;padding:0 10px;border-radius:999px;border:1px solid var(--line);font-size:10px;font-weight:950;letter-spacing:.05em}
.pill.ok{border-color:rgba(34,197,94,.36);color:#bbf7d0;background:rgba(20,83,45,.28)}
.pill.warn{border-color:rgba(245,158,11,.42);color:#fde68a;background:rgba(120,53,15,.28)}
.topbar button,.log-card button{height:34px;border-radius:7px;border:1px solid rgba(96,165,250,.34);background:rgba(37,99,235,.18);color:#dbeafe;font-weight:900;cursor:pointer}
.notice,.warning{padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.45}
.notice{border:1px solid rgba(96,165,250,.22);background:rgba(30,64,175,.14);color:#dbeafe}
.warning{border:1px solid rgba(245,158,11,.34);background:rgba(120,53,15,.20);color:#fde68a}
.notice code,.warning code,.steps code{background:#020617;border:1px solid var(--line);border-radius:4px;padding:1px 5px;color:#bfdbfe}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.card,.log-card,.steps{border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(3,7,18,.97));box-shadow:0 12px 34px rgba(0,0,0,.24);overflow:hidden}
.card header,.log-card header{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#162033,#0b1220)}
.card h2,.log-card h2,.steps h2{margin:0;font-size:12px;font-weight:950;letter-spacing:.08em}
.card header span{font-size:11px;font-weight:900;color:var(--muted)}
.card.is-active header span{color:#86efac}.card.is-error header span{color:#fca5a5}
.card label{display:grid;gap:5px;margin:12px 14px}
.card label span{color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.05em}
.card input{width:100%;height:36px;border-radius:7px;border:1px solid rgba(148,163,184,.18);background:#020617;color:var(--text);padding:0 10px;font-size:12px;font-weight:750;outline:none}
.card input:focus{border-color:rgba(96,165,250,.58);box-shadow:0 0 0 3px rgba(96,165,250,.12)}
.row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 14px}.row label{margin:0}
.actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:14px}
.actions button{height:38px;border:1px solid var(--line);border-radius:8px;background:#111827;color:var(--text);font-size:12px;font-weight:950;cursor:pointer}
.actions button[data-action="start"]{border-color:rgba(34,197,94,.38);background:rgba(20,83,45,.36);color:#dcfce7}
.actions button[data-action="stop"]{border-color:rgba(239,68,68,.38);background:rgba(127,29,29,.30);color:#fee2e2}
.actions button:hover,.topbar button:hover,.log-card button:hover{filter:brightness(1.12)}
.log-card header{padding:0 14px}.log-card pre{min-height:230px;max-height:420px;overflow:auto;margin:0;padding:14px;background:#020617;color:#a7c7ff;font-size:12px;line-height:1.4;white-space:pre-wrap}
.steps{padding:14px}.steps h2{margin-bottom:8px}.steps ol{margin:0;padding-left:22px;color:#cbd5e1;font-size:13px;line-height:1.65}
@media(max-width:1100px){.grid{grid-template-columns:1fr}}
@media(max-width:850px){.topbar{align-items:flex-start;flex-direction:column}.row{grid-template-columns:1fr}.topbar-actions{justify-content:flex-start}}
