/* Look: near-black with soft colour glows, heavy tight headings, pill buttons and rounded glass cards.
   Two colours carry meaning everywhere: pink is "do this now", mint is "done". */
:root { --bg:#07080A; --panel:#111317; --raised:#191C21; --glass:rgba(255,255,255,.05); --line:rgba(255,255,255,.10); --line2:rgba(255,255,255,.20);
  --ink:#F5F7F8; --soft:#B8C0C6; --dim:#8A939A; --pink:#FF5FA2; --pink2:#FFA3CB; --mint:#5EF2C0; --mint2:#B6FFE4;
  --go:linear-gradient(135deg, #FF5FA2, #FFA3CB); --done:linear-gradient(135deg, #3FE0AC, #B6FFE4);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 380px at -10% -6%, rgba(255,95,162,.17), transparent 62%), radial-gradient(560px 380px at 110% 2%, rgba(94,242,192,.11), transparent 62%), var(--bg); }
a { color: var(--pink2); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label, summary { touch-action: manipulation; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--pink2); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + var(--st)) 18px 8px; background: rgba(7,8,10,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top:empty { display: none; }
.top .brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.top .brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 4px rgba(255,95,162,.35); }
.top .who { font-weight: 700; font-size: 14px; color: var(--ink); background: var(--glass); border: 1px solid var(--line2); border-radius: 999px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center;
  text-decoration: none; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 620px; margin: 0 auto; padding: 16px 16px calc(112px + var(--sb)); }
body.playing main { padding-bottom: calc(252px + var(--sb)); }
.kick { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(94,242,192,.12); border: 1px solid rgba(94,242,192,.4); color: var(--mint2);
  font-weight: 800; font-size: 11.5px; line-height: 1.2; letter-spacing: .13em; text-transform: uppercase; }
h1 { font-size: 31px; line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin: 12px 0 10px; }
h2 { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 32px 0 8px; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 30px 0 10px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--soft); }
.dim { color: var(--dim); }
.ins { color: var(--soft); }
ul { padding-left: 22px; margin: 0 0 12px; color: var(--soft); } li { margin-bottom: 6px; }

.btn, .play { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--glass); color: var(--ink); font-weight: 800; font-size: 16px; line-height: 1.15; letter-spacing: -.01em; text-decoration: none; text-align: center; }
.btn.primary { background: var(--go); border-color: transparent; color: #1a0410; font-weight: 900; box-shadow: 0 14px 34px rgba(255,95,162,.28); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; box-shadow: none; }
.btn:active, .play:active, .tick:active { transform: scale(.97); }
.play { min-height: 44px; padding: 8px 18px; font-size: 14.5px; border-color: rgba(255,95,162,.5); background: rgba(255,95,162,.10); color: var(--pink2); }
.play.off { color: var(--dim); border-color: var(--line); background: transparent; font-weight: 600; }
.link { background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--pink2); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,163,203,.5); }
.back { display: flex; width: fit-content; align-items: center; min-height: 44px; padding: 0 2px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--soft); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin: 14px 0; }
.card h2 { margin-top: 0; font-size: 21px; }
.card p { color: var(--soft); }
.card p:last-child { margin-bottom: 0; }

/* Today: the one thing to do next */
.hero { margin: 14px 0; padding: 18px; border-radius: 24px; border: 1px solid rgba(255,95,162,.5); background: linear-gradient(180deg, rgba(255,95,162,.17), rgba(255,255,255,.02)); box-shadow: 0 20px 54px rgba(255,95,162,.12); }
.hero .kick { background: rgba(255,95,162,.14); border-color: rgba(255,95,162,.5); color: var(--pink2); }
.hero .hs { float: right; color: var(--soft); font-size: 14px; font-weight: 600; padding-top: 5px; }
.hero .t { font-size: 23px; line-height: 1.14; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 4px; clear: both; }
.hero .m { color: var(--soft); font-size: 14.5px; }
.hero .acts { margin-top: 16px; } .hero .acts .btn { flex: 1 1 0; min-height: 54px; padding-left: 12px; padding-right: 12px; }
.hero.alldone { border-color: rgba(94,242,192,.5); background: linear-gradient(180deg, rgba(94,242,192,.16), rgba(255,255,255,.02)); box-shadow: 0 20px 54px rgba(94,242,192,.10); }
.hero.alldone .kick { background: rgba(94,242,192,.12); border-color: rgba(94,242,192,.4); color: var(--mint2); }
.dayprog { margin: 14px 2px 0; }
.dayprog .dl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: var(--soft); margin-bottom: 7px; }
.dayprog .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; }
.dayprog .bar i { display: block; height: 100%; border-radius: 99px; background: var(--done); transition: width .3s ease; }

.datenav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; text-align: center; }
.datenav h1 { font-size: 23px; margin: 8px 0 0; }
.nb { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line2); background: var(--glass); border-radius: 50%; text-decoration: none; font-size: 26px; line-height: 1; color: var(--ink); padding-bottom: 3px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; text-decoration: none; color: var(--ink); }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 12px 6px; text-align: center; }
.stat b { display: block; font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.stat span { font-size: 12.5px; line-height: 1.3; color: var(--dim); font-weight: 600; }
.strip .stat:last-child b, .tiles .stat:first-child b { color: var(--mint); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles .stat { padding: 16px 8px; } .tiles .stat b { font-size: 28px; }

.slot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 30px 2px 8px; font-weight: 800; font-size: 19px; letter-spacing: -.025em; }
.slot small { flex: 1 0 100%; font-weight: 400; font-size: 14px; line-height: 1.4; letter-spacing: 0; color: var(--dim); }
.slot .nowpill { padding: 3px 10px; border-radius: 999px; background: var(--go); color: #1a0410; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.row { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 14px; margin: 8px 0; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; }
.row.notick { grid-template-columns: 1fr; }
.row .t { font-size: 17.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.row .m { font-size: 13.5px; line-height: 1.45; color: var(--dim); margin-top: 3px; font-weight: 500; }
.row .n { color: var(--soft); font-size: 15.5px; line-height: 1.45; margin-top: 6px; }
.row.isdone { border-color: rgba(94,242,192,.3); background: rgba(94,242,192,.055); }
.row.isdone .t { color: var(--soft); }
.tick { width: 48px; height: 48px; border-radius: 16px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.03); color: #04130d; font-weight: 800; font-size: 14px; line-height: 1; display: grid; place-items: center; padding: 0; }
.tick.on { background: var(--done); border-color: transparent; font-size: 24px; box-shadow: 0 8px 22px rgba(94,242,192,.25); }
.tick.part { border-color: var(--mint); color: var(--mint); }
.tick.pop { animation: pop .28s cubic-bezier(.3,1.6,.5,1); }
.tick[disabled] { opacity: .35; }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.chip { display: inline-block; font-weight: 800; font-size: 11px; line-height: 22px; letter-spacing: .07em; text-transform: uppercase; border-radius: 999px; height: 22px; padding: 0 9px; margin-bottom: 7px; background: rgba(255,255,255,.09); color: var(--soft); }
.chip.listen { background: rgba(255,95,162,.16); color: var(--pink2); } .chip.do { background: rgba(94,242,192,.14); color: var(--mint2); }
.chip.write { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.saved { font-size: 13px; font-weight: 600; color: var(--mint); }
.wr { padding: 14px; margin: 8px 0; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; color: var(--soft); font-size: 16px; }
.wr b { color: var(--ink); font-weight: 800; }
.wr .acts { margin-top: 10px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; margin: 0 0 18px; }
.seg a { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--soft); text-align: center; }
.seg a[aria-current] { background: var(--go); color: #1a0410; font-weight: 900; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a, .chips button { min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.chips .done { border-color: rgba(94,242,192,.6); color: var(--mint); }
.chips [aria-current="page"], .chips [aria-pressed="true"] { background: var(--go); border-color: transparent; color: #1a0410; }
.chips [aria-current="true"] { background: var(--done); border-color: transparent; color: #04130d; }

.field { display: block; margin: 18px 0; }
.lab { display: block; font-weight: 700; font-size: 16px; margin-bottom: 7px; line-height: 1.3; }
.hint { display: block; color: var(--dim); font-size: 14.5px; margin-top: 7px; line-height: 1.4; }
input[type=text], input[type=date], input[type=time], input[type=number], select, textarea { width: 100%; min-height: 52px; padding: 13px 14px; font: 400 17px/1.4 var(--font); color: var(--ink);
  background: #0D0F13; border: 1px solid var(--line2); border-radius: 14px; -webkit-appearance: none; appearance: none; color-scheme: dark; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 4px rgba(255,95,162,.18); }
::placeholder { color: #6d767d; }
textarea { resize: vertical; display: block; }
.ck { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); min-height: 48px; }
.ck input { width: 28px; height: 28px; margin: 0; accent-color: #5EF2C0; }
.ck b { display: block; font-weight: 700; } .ck small { display: block; color: var(--dim); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.scale button { min-height: 48px; padding: 0; border-radius: 12px; border: 1px solid var(--line2); background: var(--glass); font-weight: 800; font-size: 14px; }
.scale button[aria-pressed="true"] { background: var(--done); border-color: transparent; color: #04130d; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 6px; }
.grid7 label { text-align: center; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--dim); }
.grid7 input { padding: 8px 2px; text-align: center; min-height: 46px; }
.grid7 button { min-height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: var(--glass); font-weight: 800; font-size: 14px; padding: 0; }
.grid7 button.on { background: var(--done); border-color: transparent; color: #04130d; }
.grid7 button.part { border-color: var(--mint); color: var(--mint); }
.entry { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 10px 0; }
.entry.form { border-color: rgba(255,95,162,.5); background: var(--panel); }
.kv { margin: 6px 0; } .kv span { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--dim); }
details { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; margin: 10px 0; }
details[open] { padding-bottom: 12px; }
summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--pink2); line-height: 1; }
details[open] > summary::after { content: "\2212"; }

.m50 { margin: 10px 0 16px; }
.m50 .band { margin-top: 14px; }
.m50 .bl { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dim); margin-bottom: 6px; }
.m50 .boxes { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.m50 .bx { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-size: 11.5px; font-weight: 600; line-height: 1; color: var(--dim); }
.m50 .bx.on { background: var(--done); border-color: transparent; color: #04130d; font-weight: 800; }
.m50 .bx.next { border-color: var(--pink); color: var(--pink2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.days a, .days span { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--dim); font-weight: 700; font-size: 12.5px; line-height: 1.2; text-align: center; }
.days .on { background: var(--done); border-color: transparent; color: #04130d; }
.days .now { border-color: var(--pink); color: var(--pink2); }
.days .on.now { color: #04130d; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge { border: 1px dashed var(--line2); border-radius: 18px; padding: 14px 13px; color: var(--dim); }
.badge b { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.2; letter-spacing: -.02em; color: var(--soft); margin-bottom: 5px; }
.badge small { font-size: 13.5px; line-height: 1.35; display: block; }
.badge.on { border: 1px solid rgba(94,242,192,.55); background: linear-gradient(180deg, rgba(94,242,192,.16), rgba(255,255,255,.02)); color: var(--soft); } .badge.on b { color: var(--mint2); }

.list { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 0 16px; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.list a:first-child { border-top: 0; }
.list a small { font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--dim); text-align: right; flex: 0 0 auto; letter-spacing: 0; }
.sit { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 15px 14px; margin-bottom: 8px; font-weight: 600; min-height: 60px; }
.sit input { width: 28px; height: 28px; margin: 0; accent-color: #FF5FA2; }
.sit.on { border-color: rgba(255,95,162,.6); background: rgba(255,95,162,.09); }
.ifl { font-size: 22px; line-height: 1.18; font-weight: 800; letter-spacing: -.03em; margin-top: 30px; } .ifl b, .thl b { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #1a0410; background: var(--go); border-radius: 999px; padding: 3px 9px; margin-right: 9px; vertical-align: 3px; }
.thl { margin: 8px 0 12px; color: var(--soft); } .thl b { background: var(--done); color: #04130d; vertical-align: 1px; }
.goal { display: block; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 10px 0; text-decoration: none; color: var(--ink); }
.goal .t { font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; } .goal .m { font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--dim); margin-top: 7px; }
.goal.done { border-color: rgba(94,242,192,.3); } .goal.done .t { color: var(--soft); }
.warn { border: 1px solid rgba(255,95,162,.4); background: linear-gradient(180deg, rgba(255,95,162,.10), rgba(255,255,255,.02)); border-radius: 16px; padding: 12px 14px; margin: 12px 0; color: var(--ink); font-size: 16px; }
table.gl { width: 100%; border-collapse: collapse; } table.gl td { display: block; padding: 0; color: var(--soft); } table.gl tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
table.gl td:first-child { font-weight: 800; color: var(--mint2); margin-bottom: 4px; letter-spacing: -.01em; }

#player { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--sb)); z-index: 6; background: rgba(25,28,33,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,95,162,.6); padding: 10px 16px 12px; }
#player:empty { display: none; }
#player .phead { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 620px; margin: 0 auto; }
#player .pt { font-weight: 800; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
#player audio, #player video { display: block; width: 100%; max-width: 620px; margin: 4px auto 0; color-scheme: dark; }
#player video { max-height: 38vh; background: #000; border-radius: 14px; }
#player .perr { max-width: 620px; margin: 6px auto 0; color: var(--pink2); font-size: 15px; } #player .perr:empty { display: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(7,8,10,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: var(--sb); }
.tabs:empty { display: none; }
.tabs a { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 8px 2px 7px; min-height: 64px; text-decoration: none; color: var(--dim); font-weight: 700; font-size: 11.5px; line-height: 1; }
.tabs a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current] { color: var(--pink); }
#toast { position: fixed; left: 50%; bottom: calc(86px + var(--sb)); transform: translate(-50%, 20px); z-index: 20; width: max-content; max-width: 88vw; background: var(--done); color: #04130d; font-weight: 800; font-size: 15px; line-height: 1.3;
  padding: 13px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
body.playing #toast { bottom: calc(214px + var(--sb)); }
.sheetbg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.72); display: grid; align-items: end; }
.sheet { background: var(--raised); border: 1px solid var(--line2); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + var(--sb)); max-width: 620px; width: 100%; margin: 0 auto; animation: rise .22s ease-out; }
.sheet .lead { color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.025em; line-height: 1.2; }
.sheet .acts .btn { flex: 1 1 0; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
footer.safe { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; line-height: 1.45; }
@media (max-width: 360px) { main { padding-left: 12px; padding-right: 12px; } h1 { font-size: 27px; } .scale button { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
