:root { --bg: #0d0f14; --card: #161a22; --line: #262c38; --text: #e8ebf1; --dim: #8b93a3; --accent: #53fc18; --danger: #ff4d5e; --warn: #ffb020; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--accent); }
code { background: #222835; padding: 1px 6px; border-radius: 5px; }
h1, h2, h3 { margin: 0 0 10px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 60px 20px; }
.hero { text-align: center; } .logo { width: 128px; height: 128px; display: block; margin: 0 auto 8px;
  filter: drop-shadow(0 8px 24px rgba(83,252,24,.25)); } .lead { font-size: 18px; color: var(--dim); }
.muted { color: var(--dim); } .small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card.warn { border-color: var(--warn); margin: 16px 0; }
.btn { display: inline-block; background: var(--accent); color: #0b0d10; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.btn.big { font-size: 18px; padding: 14px 28px; margin: 18px 0; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.top { display: flex; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.top #who { flex: 1; color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .grow { flex: 1; min-width: 160px; }
input[type=text], input:not([type]) { background: #0f1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.switch { display: flex; gap: 8px; align-items: center; margin: 10px 0; cursor: pointer; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill.good { background: rgba(83,252,24,.15); color: var(--accent); } .pill.bad { background: rgba(255,77,94,.15); color: var(--danger); }
.cmd { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cmd b { min-width: 90px; } .cmd span { flex: 1; color: var(--dim); overflow-wrap: anywhere; }
.feed div { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .feed time { color: var(--dim); margin-right: 8px; }
.steps ol { padding-left: 20px; margin: 6px 0; } .steps { margin-top: 14px; font-size: 14px; }
.danger-zone { border-color: rgba(255,77,94,.4); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #222835; padding: 10px 16px; border-radius: 8px; display: none; }
#toast.bad { background: var(--danger); }

/* full dashboard */
.shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 50px); }
nav.side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
nav.side button { background: none; border: 0; color: var(--text); text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; }
nav.side button:hover { background: #1b2029; } nav.side button.active { background: rgba(83,252,24,.12); color: var(--accent); font-weight: 700; }
.shell .grid { max-width: 1250px; margin: 0; align-content: start; }
.shell .grid > * { min-width: 0; }
.wide { grid-column: 1 / -1; }
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } nav.side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; } .tabs button { background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 16px; cursor: pointer; font-weight: 600; } .tabs button.active { border-color: var(--accent); color: var(--accent); }
.form { display: grid; gap: 2px; } .field { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; align-items: center; padding: 7px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; } .field.check input { justify-self: start; width: 18px; height: 18px; }
.field input[type=text], .field input[type=number], .field select { width: 100%; }
.rangebox { display: flex; gap: 8px; align-items: center; } .rangebox input { flex: 1; min-width: 0; }
input[type=number], select { background: #0f1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 14px; }
input[type=password] { background: #0f1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input[type=color] { width: 60px; height: 32px; background: none; border: 1px solid var(--line); border-radius: 6px; }
.num { width: 90px; } .saved { color: var(--accent); font-size: 13px; min-height: 18px; }
.stage { position: relative; width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, #3b1d6e, transparent 60%), radial-gradient(circle at 80% 80%, #0d5c3a, transparent 55%), #10131a; }
.stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { background: #0f1218; border: 1px solid var(--line); border-radius: 10px; padding: 12px; } .stat b { display: block; font-size: 24px; color: var(--accent); }
.stat span { color: var(--dim); font-size: 13px; }
.lb { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 90px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb.head { color: var(--dim); font-size: 12px; text-transform: uppercase; }
.timer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pill { margin-right: 6px; background: #222835; }
