:root {
  --bg: #0b0d12;
  --panel: #12161e;
  --panel-2: #171c26;
  --border: #252c38;
  --text: #f5f7fb;
  --muted: #98a2b3;
  --accent: #c8ff4a;
  --accent-text: #10140a;
  --danger: #ff7a7a;
  --shadow: 0 16px 40px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.topbar { max-width: 1100px; margin: 0 auto; padding: 28px 20px 18px; display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; margin-top: 4px; }
.muted { color: var(--muted); }
.eyebrow, .tag { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.hero-grid { display:grid; grid-template-columns: 1.5fr 1fr; gap:16px; margin: 12px 0 16px; }
.hero-card, .meta-card, .card, .northstar, .login-card { background:var(--panel); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow); }
.hero-card { padding:26px; }
.hero-card h2 { margin-top:12px; }
.status-pill { display:inline-flex; padding:7px 11px; border-radius:999px; font-size:11px; font-weight:800; letter-spacing:.08em; }
.status-pill.done { background:rgba(200,255,74,.14); color:var(--accent); }
.status-pill.todo { background:rgba(255,255,255,.06); color:#d5dae3; }
.meta-card { padding:12px; display:grid; grid-template-columns:1fr; gap:8px; }
.meta-card div { background:var(--panel-2); border-radius:15px; padding:13px 15px; }
.meta-card span { display:block; color:var(--muted); font-size:12px; margin-bottom:3px; }
.meta-card strong { font-size:15px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size:12px; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card { padding:22px; min-height:215px; display:flex; flex-direction:column; }
.card.complete { border-color:rgba(200,255,74,.25); }
.card.highlight { border-color:rgba(200,255,74,.55); }
.card-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.check { font-size:12px; color:var(--muted); white-space:nowrap; }
.card p { flex:1; margin:14px 0 18px; }
.primary, .secondary, .ghost, .link-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; border-radius:13px; border:1px solid transparent; padding:0 16px; font-weight:800; text-decoration:none; transition:.15s ease; }
.primary { background:var(--accent); color:var(--accent-text); }
.primary:hover { transform:translateY(-1px); filter:brightness(1.04); }
.secondary { background:transparent; color:var(--text); border-color:var(--border); }
.secondary:hover, .ghost:hover, .link-btn:hover { background:var(--panel-2); }
.ghost, .link-btn { background:transparent; color:var(--muted); border-color:var(--border); }
.full { width:100%; margin-top:16px; }
.northstar { margin-top:16px; padding:24px; display:flex; justify-content:space-between; gap:18px; align-items:center; }
.northstar h2 { margin-top:8px; }
.quote { color:var(--muted); font-weight:700; text-align:right; max-width:320px; }
.toast { position:fixed; left:50%; bottom:22px; transform:translate(-50%,20px); background:var(--panel-2); border:1px solid var(--border); border-radius:13px; padding:12px 16px; max-width:min(92vw,620px); white-space:pre-wrap; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:.2s ease; z-index:30; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.toast.good { border-color:rgba(200,255,74,.35); }
.toast.bad { border-color:rgba(255,122,122,.4); }
.modal[hidden] { display:none; }
.modal { position:fixed; inset:0; z-index:20; display:grid; place-items:center; padding:18px; }
.modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.modal-card { position:relative; width:min(720px,100%); max-height:92vh; overflow:auto; background:var(--panel); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow); padding:28px; }
.modal-close { position:absolute; right:14px; top:14px; border:0; background:transparent; color:var(--muted); font-size:30px; width:38px; height:38px; }
.form-grid { display:grid; gap:15px; margin-top:20px; }
label { display:grid; gap:7px; color:#dce2eb; font-size:13px; font-weight:700; }
input, textarea, select { width:100%; background:#0d1118; color:var(--text); border:1px solid var(--border); border-radius:13px; padding:12px 13px; outline:none; }
textarea { resize:vertical; min-height:86px; }
input:focus, textarea:focus, select:focus { border-color:var(--accent); }
.check-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.checkline { display:flex; grid-template-columns:none; align-items:center; gap:9px; background:var(--panel-2); padding:11px 12px; border-radius:12px; }
.checkline input { width:auto; accent-color:var(--accent); }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:6px; position:sticky; bottom:0; padding-top:8px; background:linear-gradient(transparent,var(--panel) 32%); }
.alert { padding:11px 13px; border-radius:12px; margin:12px 0; font-size:13px; }
.error { border:1px solid rgba(255,122,122,.35); color:#ffd2d2; background:rgba(255,122,122,.08); }
.login-body { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(420px,100%); padding:28px; }
.login-card h1 { margin-top:8px; }

@media (max-width: 840px) {
  .hero-grid, .cards { grid-template-columns:1fr; }
  .northstar { align-items:flex-start; flex-direction:column; }
  .quote { text-align:left; }
}
@media (max-width: 520px) {
  .topbar { padding-top:20px; }
  .wrap { padding:0 14px 40px; }
  .hero-card, .card, .northstar, .modal-card, .login-card { border-radius:18px; }
  .check-grid { grid-template-columns:1fr; }
  .modal-card { padding:22px 16px; }
  .form-actions { flex-direction:column-reverse; }
  .form-actions button { width:100%; }
}
