:root {
  --bg: #10110e;
  --bg-2: #181a15;
  --line: rgba(230, 236, 214, 0.14);
  --text: #f3f5ee;
  --muted: #9aa292;
  --accent: #e2ff57;
  --accent-ink: #1a2200;
  --danger: #ffb4a8;
  --ok: #b6f2c4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(226, 255, 87, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

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

#app { min-height: 100vh; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.login-copy, .login-card {
  padding: 64px 56px;
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mark {
  font-family: Palatino, "Iowan Old Style", serif;
  font-size: 64px;
  letter-spacing: -0.04em;
  margin: 0;
}

.lede {
  max-width: 460px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--muted);
}

.login-card {
  display: flex;
  align-items: center;
}

.card {
  width: min(420px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

input, textarea, select {
  width: 100%;
  background: #0d0e0c;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

textarea { min-height: 88px; resize: vertical; }

.primary, .ghost, .danger {
  border-radius: 999px;
  border: 0;
  padding: 12px 18px;
}

.primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.rail {
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail .mark { font-size: 36px; }

.rail button {
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
}

.rail button.active, .rail button:hover {
  background: rgba(226, 255, 87, 0.1);
  color: var(--text);
}

.stage { padding: 36px 42px 64px; }

h2 {
  font-family: Palatino, "Iowan Old Style", serif;
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.sub { color: var(--muted); margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.project, .panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(24, 26, 21, 0.75);
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

code, pre {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

pre {
  white-space: pre-wrap;
  background: #0d0e0c;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--line);
}

.notice {
  margin-top: 14px;
  color: var(--ok);
}

.notice.bad { color: var(--danger); }

.badge { display: inline-block; border-radius: 999px; padding: 4px 10px; background: rgba(226, 255, 87, 0.12); }

.session {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .login, .shell, .split { grid-template-columns: 1fr; }
  .login-copy, .login-card, .stage { padding: 28px 20px; }
}
