:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #101113;
  --surface: #18191c;
  --surface-hover: #202126;
  --text: #f7f8f8;
  --muted: #8a8f98;
  --subtle: #62666d;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6d6af8;
  --accent-hover: #828fff;
  --green: #2db86c;
  --amber: #e5a84b;
  --red: #ed6a73;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 40% -20%, rgba(109, 106, 248, .12), transparent 36%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; font-feature-settings: "cv01", "ss03"; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.topbar { height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: rgba(8, 9, 10, .84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, var(--accent), #4a48bb); box-shadow: 0 0 24px rgba(109, 106, 248, .25); font-weight: 600; }
.brand-mark.large { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 24px; }
.user-chip { color: var(--muted); font-size: 13px; }
.shell { max-width: 1240px; margin: 0 auto; padding: 56px 32px 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.page-heading.compact { margin-top: 28px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(32px, 5vw, 48px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.eyebrow { color: var(--muted); margin-bottom: 10px; font: 500 11px/1.3 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.lede { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.button { appearance: none; border: 1px solid var(--border); border-radius: 7px; padding: 9px 14px; color: var(--text); background: rgba(255, 255, 255, .03); cursor: pointer; }
.button:hover { background: rgba(255, 255, 255, .07); }
.button.primary { background: var(--accent); border-color: transparent; box-shadow: 0 6px 24px rgba(109, 106, 248, .18); }
.button.primary:hover { background: var(--accent-hover); }
.button.full { width: 100%; padding: 11px 16px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.metric, .panel { border: 1px solid var(--border); background: rgba(255, 255, 255, .025); box-shadow: 0 18px 60px rgba(0, 0, 0, .18); }
.metric { padding: 18px 20px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 22px; font-weight: 500; }
.metric .status-ready { color: var(--green); font-size: 14px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { overflow: hidden; border-radius: 11px; }
.panel-heading { min-height: 82px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.panel-heading .eyebrow { margin-bottom: 7px; }
.count-badge, .pill { border: 1px solid var(--border); border-radius: 999px; color: #c5c8cf; background: rgba(255, 255, 255, .03); font-size: 11px; padding: 4px 8px; }
.project-row, .task-row { min-height: 68px; padding: 13px 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid rgba(255, 255, 255, .055); transition: background .15s ease; }
.project-row:last-child, .task-row:last-child { border-bottom: 0; }
.project-row:hover, .task-row:hover { background: rgba(255, 255, 255, .035); }
.project-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 8px; background: rgba(109, 106, 248, .12); color: #a6a4ff; font-size: 13px; font-weight: 600; }
.project-main, .task-main { display: grid; gap: 5px; min-width: 0; flex: 1; }
.project-main strong, .task-main strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.project-main small, .task-main small { color: var(--subtle); font-size: 11px; }
.status-dot { width: 10px; height: 10px; flex: none; border: 2px solid var(--subtle); border-radius: 50%; }
.status-dot.in_progress { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--bg); background: var(--accent); }
.status-dot.blocked { border-color: var(--red); background: var(--red); }
.status-dot.done { border-color: var(--green); background: var(--green); }
.priority { color: var(--muted); font-size: 11px; }
.priority.high, .priority.urgent { color: var(--amber); }
.priority.urgent { color: var(--red); }
.empty { padding: 40px 22px; text-align: center; }
.empty strong { display: block; margin-bottom: 7px; font-size: 14px; }
.empty p { margin: 0; color: var(--muted); font-size: 12px; }
.breadcrumb { display: flex; gap: 9px; color: var(--subtle); font-size: 12px; }
.breadcrumb a:hover { color: var(--text); }
.task-table-head, .task-table-row { display: grid; grid-template-columns: minmax(260px, 1fr) 140px 120px 120px; gap: 16px; align-items: center; padding: 0 22px; }
.task-table-head { height: 42px; border-bottom: 1px solid var(--border); color: var(--subtle); font: 500 10px "JetBrains Mono", monospace; text-transform: uppercase; }
.task-table-row { min-height: 58px; border-bottom: 1px solid rgba(255, 255, 255, .055); color: var(--muted); font-size: 12px; }
.task-title { display: flex; align-items: center; gap: 11px; color: var(--text); }
.task-title strong { font-size: 13px; font-weight: 500; }
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; }
.auth-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .025); box-shadow: 0 24px 90px rgba(0, 0, 0, .35); }
.auth-card h1 { font-size: 30px; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-form label { display: grid; gap: 8px; color: #c9ccd2; font-size: 12px; }
.auth-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 7px; outline: none; background: rgba(255, 255, 255, .025); color: var(--text); }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 106, 248, .12); }
.form-error { margin: 20px 0 -10px; color: #ff969c; font-size: 12px; }
.task-composer { position: relative; }
.task-composer summary { list-style: none; }
.task-composer summary::-webkit-details-marker { display: none; }
.task-composer form { position: absolute; right: 0; top: 48px; z-index: 5; width: min(430px, calc(100vw - 36px)); display: grid; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 11px; background: #18191c; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.task-composer label { display: grid; gap: 7px; color: #c9ccd2; font-size: 11px; }
.task-composer input, .task-composer select, .task-composer textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255, 255, 255, .025); color: var(--text); }
.task-composer textarea { min-height: 86px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 820px) { .dashboard-grid, .metrics { grid-template-columns: 1fr; } .task-table-head { display: none; } .task-table-row { grid-template-columns: 1fr auto; padding-block: 13px; } .task-table-row > :nth-child(3), .task-table-row > :nth-child(4) { display: none; } }
@media (max-width: 600px) { .topbar { padding: 0 18px; } .user-chip { display: none; } .shell { padding: 36px 18px 56px; } .page-heading { align-items: flex-start; flex-direction: column; } .page-heading .button { width: 100%; } h1 { font-size: 34px; } }
