:root {
  --ink: #eef4ff;
  --muted: #9aabc3;
  --canvas: #0c1422;
  --surface: #111c2e;
  --surface-raised: #18263c;
  --line: rgba(220, 234, 255, .12);
  --accent: #78e3c2;
  --accent-ink: #062a25;
  --warning: #f4c578;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 80% -10%, #254164 0, transparent 31rem), var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 660px; min-height: 100vh; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom)); }
.topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 28px; }
.topbar > div { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 8vw, 42px); letter-spacing: -0.055em; line-height: 1; }
h2 { font-size: 28px; letter-spacing: -0.045em; }
h3 { font-size: 16px; letter-spacing: -0.02em; }
.eyebrow, .panel-label { color: var(--muted); font-size: 12px; letter-spacing: .03em; }
.icon-button { width: 42px; height: 42px; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: 20px; }
.is-hidden { display: none !important; }
.project-list { display: grid; gap: 10px; }
.project-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; width: 100%; padding: 15px 13px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--surface-raised) 70%, var(--surface))); transition: transform .15s ease, border-color .15s ease; }
.project-card:active { transform: scale(.985); }
.project-card:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.project-symbol, .project-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--project-color, var(--accent)); color: #071723; font-size: 19px; }
.project-card-main { min-width: 0; }
.project-card-name { display: block; font-size: 17px; font-weight: 680; letter-spacing: -.025em; }
.project-card-meta { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-card-arrow { color: var(--muted); font-size: 23px; }
.project-hero { display: flex; align-items: center; gap: 14px; padding: 2px 0 20px; }
.project-mark { width: 54px; height: 54px; border-radius: 16px; font-size: 26px; }
.status-row { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(120, 227, 194, .11); }
.note-panel { padding: 18px; border-left: 3px solid var(--project-color, var(--accent)); border-radius: 0 16px 16px 0; background: rgba(255,255,255,.045); }
.note-panel p:last-child { margin-top: 8px; line-height: 1.5; }
.section-block { padding-top: 26px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.text-button { padding: 0; color: var(--accent); border: 0; background: transparent; font-size: 14px; }
.task-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.task-item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.task-item input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--muted); border-radius: 6px; background: transparent; }
.task-item input:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); }
.task-item:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.empty-copy { color: var(--muted); line-height: 1.5; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 28px; }
.primary-action, .secondary-action { min-height: 48px; padding: 11px 15px; border-radius: 13px; font-weight: 700; }
.primary-action { color: var(--accent-ink); border: 0; background: var(--accent); }
.secondary-action { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
dialog { width: min(420px, calc(100% - 32px)); padding: 22px; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); box-shadow: 0 20px 80px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(2, 7, 14, .7); backdrop-filter: blur(4px); }
dialog h2 { margin: 8px 0 20px; }
dialog label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
dialog input { width: 100%; padding: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--canvas); }
dialog input:focus { border-color: var(--accent); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.toast { position: fixed; right: 18px; bottom: 20px; max-width: min(400px, calc(100% - 36px)); padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #1c304d; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
body.light { --ink: #142033; --muted: #64748b; --canvas: #edf2f7; --surface: #ffffff; --surface-raised: #f8fafc; --line: rgba(31, 52, 82, .14); --accent-ink: #062a25; background: radial-gradient(circle at 80% -10%, #bce8dd 0, transparent 30rem), var(--canvas); }
@media (max-width: 380px) { .shell { padding-inline: 14px; } .action-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
