/* Day by Day — minimal, list-led interface. Edit the tokens to retheme. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #25262b;
  background: #fff;
  font-synthesis: none;
  line-height: 1.5;
  --accent: #bd432d;
  --pale: #fff3ee;
  --line: #e9e9ec;
  --muted: #64656f;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; border: 1px solid #d9d9de; border-radius: 8px; background: #fff; color: inherit; padding: 10px 15px; font-weight: 600; min-height: 44px; }
button:hover:not(:disabled) { background: #fafafa; border-color: #b8b8c1; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #bd432d; outline-offset: 4px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #a53622; border-color: #a53622; }
.quiet { background: transparent; }
.small { font-size: .875rem; padding: 8px 12px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 20; }
.skip:focus { top: 12px; background: white; padding: 10px; }
.top { background: #fff; border-bottom: 1px solid var(--line); padding: 15px max(24px, calc((100vw - 1160px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 720; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #df563b; color: white; font-size: 1.25rem; }
.brand span:not(.brand-mark) { color: #777781; font-weight: 450; letter-spacing: 0; }
.top small { color: var(--muted); align-self: center; }
.top button { font-size: .875rem; }
.mode { background: #fafafa; border-bottom: 1px solid var(--line); padding: 8px 20px; text-align: center; font-size: .8125rem; color: var(--muted); }
.wrap { max-width: 1160px; margin: auto; padding: 38px 24px 60px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 30px; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(1.65rem, 3vw, 2.1rem); line-height: 1.25; letter-spacing: -.045em; margin: 0 0 8px; font-weight: 720; }
h2 { font-size: 1.125rem; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 680; }
h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, 1fr); gap: 38px; }
.stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; min-width: 0; }
.plan { border: 0; border-radius: 0; padding: 6px 0 20px; }
.grid > aside { border-left: 1px solid var(--line); padding-left: 30px; }
.grid > aside > .card { border: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); border-radius: 0; }
.profiles { display: grid; grid-template-columns: 1fr; gap: 0; margin: 30px 0; border-top: 1px solid var(--line); max-width: 840px; }
.profile { text-align: left; padding: 25px 14px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
.profile:hover:not(:disabled) { border-color: var(--line); background: #fafafa; }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #eef0f4; color: #454d62; font-size: 1.4rem; font-weight: 700; grid-row: 1/3; }
.profile:nth-child(2) .avatar { background: #fff0e7; color: #ad4d21; }
.profile:nth-child(3) .avatar { background: #edf3ef; color: #3c6750; }
.profile strong { font-size: 1.125rem; align-self: end; }
.profile .muted { font-weight: 400; grid-column: 2; font-size: .9375rem; }
.profile .enter { grid-column: 3; grid-row: 1/3; align-self: center; font-size: .875rem; color: #50515d; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pill { font-size: .8125rem; background: #f5f5f7; color: #555560; padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.task { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 22px 0; }
.task:last-child { padding-bottom: 4px; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; margin: 0 0 4px; overflow-wrap: anywhere; }
.meta { font-size: .875rem; color: var(--muted); }
.check { border-radius: 8px; width: 44px; min-height: 44px; padding: 0; flex-shrink: 0; font-size: 1.2rem; color: #6b6c76; }
.done .check { background: var(--pale); color: var(--accent); border: 1px solid #f1d5cc; display: grid; place-items: center; }
.done .task-title { text-decoration: line-through; color: var(--muted); }
.xp { color: #555560; font-weight: 650; font-size: .8125rem; white-space: nowrap; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; }
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 0; }
.moods button { padding: 10px 1px; font-size: .875rem; font-weight: 450; min-width: 0; border-color: transparent; background: #f7f7f8; }
.moods span { font-size: 1.5rem; display: block; margin-bottom: 5px; }
.moods .selected { background: var(--pale); border-color: var(--accent); }
select, input { width: 100%; background: #fff; border: 1px solid #cfcfd6; border-radius: 7px; padding: 10px; color: #25262b; min-width: 0; }
label { display: block; font-size: .875rem; font-weight: 550; margin-bottom: 7px; }
progress { appearance: none; width: 100%; height: 6px; display: block; border: 0; border-radius: 8px; overflow: hidden; background: #eaeaec; }
progress::-webkit-progress-bar { background: #eaeaec; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--accent); }
.big-number { font-size: 2rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.2; }
.metric { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
.feature, .gabriel .feature { background: #fafafa; border: 1px solid var(--line); color: #25262b; }
.feature .muted, .feature .eyebrow, .gabriel .feature .muted, .gabriel .feature .eyebrow { color: var(--muted); }
.feature .pill { background: #fff; border: 1px solid var(--line); }
.feature progress { margin: 16px 0 10px; }
.feature p:last-child { margin-bottom: 0; font-size: .875rem; }
.gabriel { --accent: #bd432d; --pale: #fff3ee; }
.gabriel .feature { border-top: 3px solid #df563b; }
.reward { border-top: 1px solid var(--line); padding: 18px 0; display: flex; gap: 14px; align-items: center; }
.reward > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reward p { margin: 0; }
.reward button { font-size: .875rem; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: .875rem; padding: 9px 11px; background: #f6f6f7; border-radius: 7px; color: var(--muted); }
.badge.unlocked { background: var(--pale); color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.wide { grid-column: 1/-1; }
.form-grid button { justify-self: start; }
.parent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.parent-grid .task { flex-wrap: wrap; gap: 10px; }
.parent-grid .task-main { flex-basis: 55%; }
.summary { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0; }
.summary p { margin: 0; }
.privacy { font-size: .875rem; color: var(--muted); max-width: 760px; margin-top: 30px; }
.empty { padding: 18px 0; color: var(--muted); }
.login { max-width: 440px; margin: 40px auto; }
.login label { margin-top: 16px; }
.login button { margin-top: 22px; width: 100%; }
#notice:not(:empty) { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #25262b; color: white; border-radius: 8px; padding: 14px 22px; box-shadow: 0 4px 20px #0002; z-index: 30; max-width: 90vw; width: max-content; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.history { max-height: 250px; overflow: auto; }
.history p { font-size: .875rem; border-top: 1px solid var(--line); padding: 10px 0; margin: 0; }
.date { font-size: .875rem; color: var(--muted); }
.app-error { color: #9a2d26; padding: 15px; background: #fff0ee; border-radius: 8px; margin-bottom: 20px; }
.loading { padding: 60px; text-align: center; }
summary { cursor: pointer; font-size: .875rem; }
@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1.4fr) minmax(295px, 1fr); gap: 24px; }
  .grid > aside { padding-left: 20px; }
}
@media (max-width: 760px) {
  .grid, .parent-grid { grid-template-columns: 1fr; }
  .grid > aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .intro { align-items: flex-start; }
  .card { padding: 20px; }
  .plan { padding: 0 0 12px; }
  .wrap { padding: 26px 18px 50px; }
  .top { padding: 14px 18px; }
  .top small { display: none; }
  .profile { grid-template-columns: 48px minmax(0, 1fr); padding: 22px 0; gap: 4px 16px; }
  .avatar { width: 46px; height: 46px; }
  .profile .enter { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; border: 0; padding: 0; color: var(--accent); }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
  .intro { flex-direction: column; gap: 8px; }
  .top { gap: 8px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand span:not(.brand-mark) { display: none; }
  .reward { flex-wrap: wrap; }
  .reward > div { flex-basis: 60%; }
  .task { gap: 10px; }
  .card { padding: 17px; }
  .plan { padding: 0 0 12px; }
  .section-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background .15s, border-color .15s; }
}

/* V0.2: dark Product Hunt reference, quiet sidebar and focused content panel. */
:root { color: #e9e9ed; background: #202122; --accent: #ff6b58; --pale: #392725; --line: #343538; --muted: #b0b1bb; color-scheme: dark; }
body { background: #202122; }
button,select,input { background: #202122; color: #ededf1; border-color: #48494e; }
button:hover:not(:disabled) { background: #303135; border-color: #777880; }
.primary { background: #ff6b58; border-color: #ff6b58; color: #171717; }
.primary:hover:not(:disabled) { background: #ff8c7d; color: #171717; border-color: #ff8c7d; }
.top { padding: 18px 30px; background: #202122; border: 0; gap: 20px; }
.brand { font-size: 1.2rem; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; font-size: 1.65rem; background: #ff6155; }
.top-context { flex: 1; color: var(--muted); font-size: .875rem; padding-left: 20px; }
.shell { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; padding: 12px 24px 30px 18px; max-width: 1600px; margin: auto; }
.sidebar { padding: 18px 6px; }
.sidebar .eyebrow { padding-left: 16px; font-size: .75rem; letter-spacing: .1em; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav button,.nav-current { display: block; border: 0; background: transparent; text-align: left; border-radius: 24px; padding: 12px 18px; font-weight: 500; }
.sidebar nav button[aria-current="page"],.nav-current { background: #064f77; color: #e4f4ff; }
.sidebar-note { margin: 30px 15px 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .875rem; }
.sidebar-note p { color: var(--muted); margin-top: 6px; }
.sidebar > .meta { padding: 0 15px; font-size: .8125rem; }
.wrap { background: #121314; border-radius: 24px; width: 100%; max-width: none; padding: 34px; margin: 0; min-width: 0; }
h1 { font-weight: 600; font-size: clamp(1.7rem,3vw,2.65rem); }
h2,h3 { font-weight: 600; }
.hero { padding: 30px; border: 1px solid #454050; border-radius: 18px; margin-bottom: 30px; background: linear-gradient(125deg,#282032,#212b39 65%,#272224); }
.hero h1 { max-width: 650px; }
.hero p { max-width: 680px; color: #d3cedb; }
.hero .eyebrow { font-size: .8125rem; letter-spacing: .08em; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0 14px; }
.hero-stats strong { font-size: 1.2rem; }
.hero-stats span { color: var(--muted); }
.hero progress { max-width: 600px; }
.card { background: #171819; border-color: var(--line); margin-bottom: 22px; border-radius: 12px; }
.stack .card,.parent-grid .card { margin-bottom: 0; }
.parent-grid { margin-bottom: 24px; }
.plan { background: transparent; }
.grid { grid-template-columns: minmax(0,1.65fr) minmax(295px,1fr); gap: 28px; }
.grid>aside { padding-left: 24px; }
.grid>aside>.card { background: transparent; }
.block-title { margin: 30px 0 8px; }
.profile { background: transparent; color: #ededf1; }
.profile:hover:not(:disabled) { background: #1e1f21; border-color: var(--line); }
.profile .enter { color: #c2c5cf; }
.avatar { background: #283442; color: #c2d7f1; }
.profile:nth-child(2) .avatar { background: #3b2d48; color: #e0c7f9; }
.profile:nth-child(3) .avatar { background: #273b35; color: #c1e4d1; }
.pill,.badge { background: #27282c; color: #cacbd2; }
.xp { color: #e1e2e7; }
.task { align-items: flex-start; padding: 22px 0; }
.task-index { font-size: .875rem; color: #92939e; width: 22px; flex-shrink: 0; padding-top: 2px; }
.done .task-index { color: #99d5b8; }
.done .task-title { color: #a8aab4; }
.status { color: #bdc9df; font-size: .8125rem; margin-top: 8px; }
.moods button { background: #25262a; }
.moods .selected { background: #413027; border-color: #ff9a77; }
progress, progress::-webkit-progress-bar { background: #34363d; }
progress::-webkit-progress-value { background: #82b0ff; }
progress::-moz-progress-bar { background: #82b0ff; }
.complete-form { padding: 18px 0 4px; display: grid; gap: 10px; }
.complete-form label { margin: 0; }
.complete-form button { justify-self: start; }
.complete-form input[type="file"] { font-size: .875rem; width: 100%; }
details summary { color: #a9c6fa; padding: 6px 0; }
.chart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.chart-row progress,.chart-row>.meta { grid-column: 1/-1; }
.chart-row strong { color: #ffd2c4; align-self: center; }
.chart-row .eyebrow { display: block; }
.work-item { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0; align-items: center; }
.work-item>div:first-child { flex: 1; min-width: 180px; }
.work-item .toolbar { flex-basis: 100%; }
.photo-dialog { max-width: min(900px,94vw); max-height: 94vh; padding: 18px; background: #171819; border: 1px solid #575961; border-radius: 12px; }
.photo-dialog::backdrop { background: #000b; }
.photo-dialog img { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; margin-top: 14px; }
.app-error { background: #482624; color: #ffcdc5; }
.login { background: #171819; }
@media(max-width:1100px) { .shell { grid-template-columns: 170px minmax(0,1fr); gap: 16px; } .wrap { padding: 26px; } .grid { grid-template-columns: 1fr; } .grid>aside { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; } }
@media(max-width:760px) { .shell { display: block; padding: 0 12px 16px; } .sidebar { padding: 4px 0 16px; } .sidebar>.eyebrow,.sidebar-note,.sidebar>.meta { display: none; } .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; } .sidebar nav button { font-size: .875rem; padding: 10px 14px; } .top { padding: 16px; } .top-context { display: none; } .brand { flex: 1; } .wrap { padding: 24px 18px; border-radius: 18px; } .hero { padding: 24px 20px; } .chart-row { grid-template-columns: 1fr; } .chart-row strong { grid-column: 1; } .parent-grid { grid-template-columns: 1fr; } .task { gap: 10px; } }
@media(max-width:420px) { .task { flex-wrap: wrap; } .task-main { flex-basis: calc(100% - 40px); } .task>.xp { margin-left: 32px; } .top { gap: 8px; } }
