:root {
  --bg: #0b0c0e;
  --panel: #141619;
  --panel-2: #191c20;
  --line: #262a30;
  --text: #e8eaed;
  --muted: #8d949e;
  --accent: #5b9dff;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 12px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.muted { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

form { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--accent); }

button {
  background: var(--accent);
  color: #04070d;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: default; }

.msg { min-height: 20px; font-size: 13px; margin: 14px 0 0; color: var(--muted); }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* ---- dashboard ---- */
.shell { max-width: 1100px; margin: 0 auto; padding: 26px 20px 60px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.who { font-size: 13px; color: var(--muted); }
.who b { color: var(--text); font-weight: 600; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.row span:last-child { text-align: right; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: #1f4d33; }
.pill.bad { color: var(--danger); border-color: #54262a; }

.desk {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.desk iframe { display: block; width: 100%; height: 62vh; border: 0; }

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  padding: 8px 13px;
  font-size: 14px;
}

a { color: var(--accent); }
