:root { color-scheme: light; --bg: #f5f7ff; --surface: #fff; --text: #1f2440; --muted: #6e7394; --line: #e3e6f5; --brand: #4f46e5; --brand-strong: #3730a3; --done: #8a90ae; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #131522; --surface: #1e2133; --text: #f3f4ff; --muted: #afb4cf; --line: #353a55; --brand: #9a94ff; --brand-strong: #b8b4ff; --done: #9da3bf; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top, #e6e8ff 0, var(--bg) 38rem); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
:root[data-theme="dark"] body { background: radial-gradient(circle at top, #252644 0, var(--bg) 38rem); }
.app { width: min(100% - 2rem, 960px); margin: 4rem auto; padding: 2rem; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 60px #23255a1a; }
.header, .toolbar, .task-form, .task-item { display: flex; align-items: center; gap: .75rem; }
.header, .toolbar { justify-content: space-between; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.06em; }
h2, h3 { margin-top: 0; }
h2 { font-size: 1.35rem; letter-spacing: -.03em; }
h3 { font-size: 1rem; }
.eyebrow { margin: 0 0 .2rem; color: var(--brand); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; font-weight: 700; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; }
.icon-button { width: 2.7rem; height: 2.7rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); font-size: 1.25rem; }
.tabs { display: flex; gap: .35rem; padding: .35rem; margin-top: 1.7rem; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { padding: .55rem .8rem; color: var(--muted); background: transparent; }
.tabs button.active { color: var(--brand); background: var(--surface); box-shadow: 0 1px 3px #23255a1a; }
.intro { max-width: 46rem; margin: 1.3rem 0 0; color: var(--muted); }
.lead { max-width: 48rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.05rem; }
a { color: var(--brand); }
.notice { margin-top: 1rem; padding: .85rem 1rem; color: var(--text); background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 38%, var(--line)); border-radius: 12px; }
.notice code, .info-card code { display: inline; padding: .1rem .28rem; font-size: .9em; }
.hero-card { margin: 1.4rem 0 2rem; padding: 1.45rem; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 13%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); border-radius: 16px; }
.hero-card h2 { margin-bottom: .6rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.hero-card > p:not(.eyebrow) { max-width: 48rem; margin-bottom: 1.2rem; color: var(--muted); }
.route-card { margin: 0 0 2rem; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.route-card h2 { margin-bottom: .75rem; }
.route-card ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 0; list-style: none; counter-reset: route; }
.route-card li { position: relative; min-height: 4.8rem; padding: .7rem .75rem .7rem 2.45rem; color: var(--muted); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); border-radius: 10px; counter-increment: route; }
.route-card li::before { position: absolute; top: .75rem; left: .7rem; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; color: #fff; background: var(--brand); border-radius: 50%; content: counter(route); font-size: .72rem; font-weight: 800; }
.route-card strong { color: var(--text); }
.route-card code { display: inline; padding: .1rem .25rem; font-size: .85em; }
.stat-grid, .mode-grid, .two-column { display: grid; gap: .85rem; }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid div, .mode-grid article { padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat-grid strong, .stat-grid span { display: block; }
.stat-grid strong { color: var(--brand); }
.stat-grid span, .mode-grid p { color: var(--muted); font-size: .9rem; }
.mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 2rem; }
.mode-grid h3 { margin-bottom: .35rem; color: var(--brand); }
.mode-grid p { margin: 0; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .85rem; }
.info-card { padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.info-card h2 { margin-bottom: .75rem; }
.info-card ul { display: grid; gap: .55rem; padding-left: 1.2rem; margin: 0; color: var(--muted); }
footer { margin-top: 2rem; padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .85rem; }
.task-form { margin: 2rem 0 1.15rem; }
.task-form input { flex: 1; min-width: 0; padding: .8rem 1rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.task-form button { padding: .8rem 1rem; color: #fff; background: var(--brand); }
.task-form button:hover { background: var(--brand-strong); }
.filters { display: flex; gap: .35rem; flex-wrap: wrap; }
.filters button, .text-button { padding: .45rem .65rem; color: var(--muted); background: transparent; }
.filters button.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.text-button:hover { color: var(--brand); }
.summary { margin: 1rem 0 .65rem; color: var(--muted); font-size: .9rem; }
.task-list { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.task-item { padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.task-item input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); }
.task-title { flex: 1; overflow-wrap: anywhere; }
.task-item.completed .task-title { color: var(--done); text-decoration: line-through; }
.delete { padding: .3rem .55rem; color: #b42336; background: transparent; }
.empty-state { padding: 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.empty-state[hidden] { display: none; }
.starter { margin: 1.35rem 0 2.4rem; padding: 1.25rem; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: 16px; }
.starter h2 { margin-bottom: 1rem; }
.hint { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.hint code { display: inline; padding: .1rem .28rem; font-size: .9em; }
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.start-grid li { position: relative; min-height: 7rem; padding: .9rem .9rem .9rem 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; counter-increment: step; }
.start-grid li::before { position: absolute; top: .9rem; left: .9rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; color: #fff; background: var(--brand); border-radius: 50%; content: counter(step); font-size: .8rem; font-weight: 800; }
.start-grid strong { display: block; margin-bottom: .35rem; }
code { display: block; overflow-wrap: anywhere; padding: .45rem .55rem; color: var(--text); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid var(--line); border-radius: 8px; font: .82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 24rem; margin: 0; color: var(--muted); font-size: .9rem; }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.command-card { display: flex; flex-direction: column; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.command-card h3 { color: var(--brand); }
.command-card p { flex: 1; margin: 0 0 1rem; color: var(--muted); font-size: .93rem; }
.command-example { display: grid; gap: .55rem; }
.practical-notes { margin-top: 1rem; }
.copy-button { justify-self: start; padding: .45rem .65rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.copy-button:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .app { width: min(100% - 1rem, 680px); margin: .5rem auto; padding: 1.25rem; } .toolbar, .section-heading { align-items: flex-start; flex-direction: column; } .start-grid, .command-grid, .mode-grid, .two-column, .stat-grid, .route-card ol { grid-template-columns: 1fr; } }
