/* BLOOM 30 — Soft Studio Daylight. Warm ivory, peach, lilac, butter.
   Motion verb: bloom (soft scale + fade). Radius: pill-heavy, 24-28px cards. */
:root{
  --bg:#FFF8F1; --card:#FFFFFF; --ink:#33272E; --muted:#8A7580;
  --peach:#FF9E7D; --pink:#FF7E9D; --lilac:#B7A6F5; --butter:#FFC94D; --sage:#7FBF9E;
  --line:#F6E4D5; --soft:#FFF1E6; --soft2:#F3EFFF;
  --grad:linear-gradient(120deg,#FF9E7D,#FF7E9D);
  --radius:26px; --shadow:0 10px 30px rgba(214,140,110,.14);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{margin:0; background:var(--bg); color:var(--ink); font-family:'DM Sans',system-ui,sans-serif; font-size:16px; line-height:1.5; padding-bottom:110px}
h1,h2{font-family:'Fraunces',serif; font-weight:650; line-height:1.12; margin:0}
h1 em{font-style:italic; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent}
button{font-family:inherit; cursor:pointer}
input,select{font-family:inherit}

/* top bar */
.topbar{position:sticky; top:0; z-index:20; display:flex; justify-content:space-between; align-items:center; padding:14px 18px; background:rgba(255,248,241,.88); backdrop-filter:blur(10px)}
.wordmark{font-family:'Fraunces',serif; font-size:26px; font-weight:650}
.wordmark span{background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent}
.top-pills{display:flex; gap:8px}
.pill{background:var(--card); border:1.5px solid var(--line); border-radius:999px; padding:7px 13px; font-weight:700; font-size:14px; min-height:36px; display:inline-flex; align-items:center}
.pill-xp{color:#B4622D}

main{max-width:560px; margin:0 auto; padding:6px 16px 0}
.view{display:none}
.view.active{display:block; animation:bloomIn .35s ease}
@keyframes bloomIn{from{opacity:0; transform:scale(.985) translateY(6px)} to{opacity:1; transform:none}}

/* entrance */
.hello{padding:14px 2px 4px}
.hello-eyebrow{color:#C05B2E; font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:12px; margin:0 0 8px}
.hello h1{font-size:40px}
.hello-sub{color:var(--muted); margin:12px 0 4px; font-size:16.5px}

.bloom-card{background:var(--card); border:1.5px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px; margin-top:16px; text-align:center}
.bloom-visual{display:flex; justify-content:center}
.bloom-stats{display:flex; justify-content:space-around; margin-top:10px}
.bloom-stats div{display:flex; flex-direction:column}
.bloom-stats strong{font-family:'Fraunces',serif; font-size:28px}
.bloom-stats span{color:var(--muted); font-size:13px}
.bloom-note{color:var(--muted); font-size:14px; margin:10px 0 2px}
.petal{transition:fill .5s ease}
.petal-core{font-size:15px}

.start-card,.today-card{background:var(--soft2); border:1.5px solid #E3D9FF; border-radius:var(--radius); padding:18px; margin-top:14px}
.today-card{background:linear-gradient(135deg,#FFE9DC,#FFE3EE)}
.start-card h2,.today-card h2{font-size:24px; margin-bottom:6px}
.start-card p,.today-card p{margin:4px 0; color:#5C4A54}
.start-label{display:block; font-weight:700; font-size:13px; margin-top:10px}
.start-row{display:flex; gap:10px; margin-top:6px; flex-wrap:wrap}
.start-row input[type=date]{flex:1; min-width:150px; min-height:52px; border:1.5px solid var(--line); border-radius:16px; padding:10px 12px; font-size:16px; background:#fff}
.today-eyebrow{font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:12px; color:#B64A6B; margin:0}

.btn{border:none; border-radius:999px; padding:13px 22px; font-size:16px; font-weight:700; min-height:52px; display:inline-flex; align-items:center; justify-content:center; gap:8px}
.btn-main{background:var(--grad); color:#fff; box-shadow:0 8px 20px rgba(255,126,157,.35)}
.btn-main:active{transform:scale(.98)}
.btn-big{width:100%; margin-top:14px; font-size:18px; min-height:58px}
.btn-soft{background:var(--card); border:1.5px solid var(--line); color:var(--ink)}
.btn-ghost{background:transparent; border:1.5px dashed var(--line); color:var(--muted); min-height:48px}

.today-meta{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.meta-chip{background:rgba(255,255,255,.75); border-radius:999px; padding:6px 12px; font-size:13.5px; font-weight:600}

/* week blocks + day grid */
.week-block{margin-top:26px}
.week-head{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
.week-head h2{font-size:23px}
.week-head .wk-note{color:var(--muted); font-size:13.5px; text-align:right}
.day-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:7px; margin-top:12px}
.day-cell{border:1.5px solid var(--line); background:var(--card); border-radius:18px; min-height:64px; padding:6px 2px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; position:relative; font-size:12px}
.day-cell .dn{font-family:'Fraunces',serif; font-size:17px; font-weight:650}
.day-cell .dt{font-size:10.5px; color:var(--muted); text-align:center; line-height:1.15}
.day-cell.today{border-color:var(--pink); box-shadow:0 0 0 3px rgba(255,126,157,.25); animation:pulse 2s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 3px rgba(255,126,157,.25)} 50%{box-shadow:0 0 0 6px rgba(255,126,157,.12)}}
.day-cell.done{background:linear-gradient(140deg,#FFE4D6,#FFDCE8); border-color:#FFC9B0}
.day-cell.done::after{content:'✓'; position:absolute; top:3px; right:7px; color:#D14E79; font-weight:800; font-size:12px}
.day-cell.rest{background:#FBF4FF}
.day-cell.recovery{background:#F2FBF5}
.day-cell.sel{outline:3px solid var(--lilac)}
.day-detail{background:var(--card); border:1.5px solid var(--line); border-radius:20px; padding:14px; margin-top:10px; animation:bloomIn .3s ease}
.day-detail h4{margin:0 0 4px; font-family:'Fraunces',serif; font-size:18px}
.day-detail p{margin:4px 0; color:#5C4A54; font-size:14.5px}

.how-card{display:block; width:100%; text-align:left; background:var(--card); border:1.5px solid var(--line); border-radius:var(--radius); padding:18px; margin-top:22px; box-shadow:var(--shadow)}
.how-head{font-family:'Fraunces',serif; font-size:19px; display:flex; justify-content:space-between}
.how-body{display:none; margin-top:10px}
.how-card.open .how-body{display:flex; flex-direction:column; gap:10px}
.how-body span{font-size:15px; color:#4A3942}
.flip-arrow{transition:transform .25s}
.how-card.open .flip-arrow{transform:rotate(180deg)}

/* day view */
.back-link{background:none; border:none; color:#B64A6B; font-weight:700; font-size:15px; padding:12px 0; min-height:48px}
.day-eyebrow{color:#C05B2E; font-weight:700; text-transform:uppercase; letter-spacing:.05em; font-size:12.5px; margin:2px 0 6px}
.day-title{font-size:32px}
.day-focus{color:var(--muted); font-size:16.5px}
.section-h{font-family:'Fraunces',serif; font-size:21px; margin:24px 0 10px}
.ready-card,.toggles-card,.you-card,.compare-card{background:var(--card); border:1.5px solid var(--line); border-radius:var(--radius); padding:16px 18px; margin-top:16px; box-shadow:var(--shadow)}
.ready-card h3,.you-card h3,.compare-card h3{font-family:'Fraunces',serif; margin:0 0 4px; font-size:19px}
.ready-card p,.compare-card p{color:var(--muted); margin:2px 0 10px; font-size:14.5px}
.ready-row{display:flex; gap:8px; flex-wrap:wrap}
.ready-btn{flex:1; min-width:100px; min-height:52px; border-radius:16px; border:1.5px solid var(--line); background:var(--soft); font-weight:700; font-size:15px}
.ready-btn.sel{border-color:var(--ink); background:#fff; box-shadow:var(--shadow)}
.ready-note{font-weight:600; color:#5C4A54 !important}
.toggle-row{display:flex; justify-content:space-between; align-items:center; gap:14px; padding:10px 0; min-height:56px; cursor:pointer}
.toggle-row small{display:block; color:var(--muted); font-weight:400}
.toggle-row input{position:absolute; opacity:0}
.switch{width:52px; height:30px; border-radius:999px; background:#EBD9CE; position:relative; flex:none; transition:background .2s}
.switch::after{content:''; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; transition:left .2s; box-shadow:0 2px 6px rgba(0,0,0,.15)}
.toggle-row input:checked + .switch{background:var(--pink)}
.toggle-row input:checked + .switch::after{left:25px}
.toggle-row input:focus-visible + .switch{outline:3px solid var(--lilac)}

.move-card{background:var(--card); border:1.5px solid var(--line); border-radius:20px; margin-bottom:9px; overflow:hidden}
.move-head{width:100%; background:none; border:none; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 16px; min-height:56px; text-align:left}
.move-head .mn{font-weight:700; font-size:16px}
.move-head .mp{color:var(--muted); font-size:12.5px; display:block; font-weight:500}
.move-body{display:none; padding:0 16px 16px; color:#4A3942; font-size:15px}
.move-card.open .move-body{display:block}
.move-body ul{margin:6px 0; padding-left:18px}
.move-body .opt{background:var(--soft); border-radius:14px; padding:9px 12px; margin-top:8px}
.move-body .opt b{color:#B64A6B}
.done-row{display:flex; gap:8px; margin-top:10px; flex-wrap:wrap}
.done-row .btn{flex:1; min-width:105px; min-height:52px; font-size:14.5px; padding:10px}
.done-note{text-align:center; color:#B64A6B; font-weight:700}

.baseline-box{background:var(--soft2); border:1.5px solid #E3D9FF; border-radius:var(--radius); padding:16px 18px; margin-top:16px}
.baseline-box h3{font-family:'Fraunces',serif; margin:0 0 4px}
.baseline-box p{color:#5C4A54; font-size:14.5px}
.base-grid{display:grid; grid-template-columns:1fr 82px; gap:9px; align-items:center; margin-top:8px}
.base-grid label{font-size:14.5px; font-weight:600}
.base-grid input{min-height:50px; border:1.5px solid var(--line); border-radius:14px; padding:8px; font-size:16px; width:100%}

/* moves view */
.view-title{font-size:32px; padding-top:14px}
.view-sub{color:var(--muted)}
.chip-row{display:flex; gap:8px; flex-wrap:wrap; margin:12px 0}
.chip{border:1.5px solid var(--line); background:var(--card); border-radius:999px; padding:9px 15px; font-weight:700; font-size:14px; min-height:44px}
.chip.sel{background:var(--ink); color:#fff; border-color:var(--ink)}

/* progress */
.compare-table{width:100%; border-collapse:collapse; font-size:14.5px}
.compare-table th,.compare-table td{padding:8px 6px; border-bottom:1px solid var(--line); text-align:left}
.compare-table th{color:var(--muted); font-size:12.5px; text-transform:uppercase; letter-spacing:.04em}
.badge-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:9px}
.badge{background:var(--card); border:1.5px solid var(--line); border-radius:20px; padding:14px 8px; text-align:center; opacity:.45}
.badge.earned{opacity:1; background:linear-gradient(140deg,#FFE4D6,#FFDCE8)}
.badge .bi{font-size:26px}
.badge .bn{font-weight:700; font-size:14px; display:block}
.badge .bt{color:var(--muted); font-size:12px}
.log-item{background:var(--card); border:1.5px solid var(--line); border-radius:16px; padding:11px 14px; margin-bottom:8px; font-size:14.5px}
.log-item b{font-family:'Fraunces',serif}
.empty{color:var(--muted); text-align:center; padding:18px}

/* player */
.player{position:fixed; inset:0; z-index:50; background:linear-gradient(160deg,#FFF3E8,#FFE9F1 60%,#F1EBFF); display:flex; flex-direction:column; align-items:center; padding:20px 20px 30px; overflow:auto}
.player[hidden]{display:none}
.player-top{width:100%; max-width:520px; display:flex; justify-content:space-between; align-items:center}
.player-x{width:52px; height:52px; border-radius:50%; border:1.5px solid var(--line); background:#fff; font-size:17px}
.player-where{font-weight:700; color:#B64A6B}
.ring-wrap{position:relative; margin-top:16px}
.ring{transform:rotate(-90deg)}
.ring-bg{fill:none; stroke:rgba(255,255,255,.7); stroke-width:12}
.ring-fg{fill:none; stroke:url(#none); stroke:#FF7E9D; stroke-width:12; stroke-linecap:round; stroke-dasharray:553; stroke-dashoffset:0; transition:stroke-dashoffset .3s linear, stroke .3s}
.ring-fg.rest{stroke:var(--lilac)}
.ring-center{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center}
.ring-time{font-family:'Fraunces',serif; font-size:52px; font-weight:650}
.ring-phase{color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:13px}
.player-move{font-size:28px; text-align:center; margin-top:14px}
.player-cue{color:#5C4A54; text-align:center; max-width:420px; margin:8px 0 0}
.player-next{color:var(--muted); font-size:14px; margin-top:6px}
.dots{display:flex; gap:5px; margin:16px 0; flex-wrap:wrap; justify-content:center; max-width:340px}
.dot{width:10px; height:10px; border-radius:50%; background:rgba(51,39,46,.15)}
.dot.done{background:var(--pink)}
.dot.now{background:var(--ink); transform:scale(1.3)}
.player-controls{display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; justify-content:center}
.player-controls .btn{min-width:104px}

/* celebrate */
.celebrate{position:fixed; inset:0; z-index:60; background:rgba(51,39,46,.45); display:flex; align-items:center; justify-content:center; padding:18px}
.celebrate[hidden]{display:none}
.celebrate-card{background:#fff; border-radius:30px; padding:26px 22px; max-width:440px; width:100%; text-align:center; animation:bloomIn .35s ease}
.celebrate-flower{font-size:52px}
.celebrate-card h2{font-size:27px; margin:6px 0}
.celebrate-card p{color:var(--muted)}
.cel-label{display:block; text-align:left; font-weight:700; font-size:14px; margin-top:14px}
.celebrate-card input[type=text]{width:100%; min-height:52px; border:1.5px solid var(--line); border-radius:14px; padding:10px 12px; font-size:16px; margin-top:5px}
.celebrate-card input[type=range]{width:100%; height:44px; accent-color:var(--pink)}

/* dock */
.dock{position:fixed; left:50%; transform:translateX(-50%); bottom:calc(14px + env(safe-area-inset-bottom)); z-index:30; display:flex; gap:4px; background:rgba(255,255,255,.94); border:1.5px solid var(--line); border-radius:999px; padding:6px; box-shadow:0 14px 34px rgba(120,70,50,.22); backdrop-filter:blur(10px)}
.dock-btn{border:none; background:transparent; border-radius:999px; min-height:54px; min-width:74px; padding:6px 12px; font-weight:700; font-size:13px; display:flex; flex-direction:column; align-items:center; gap:1px; color:var(--muted)}
.dock-btn span{font-size:19px}
.dock-btn.active{background:var(--ink); color:#fff}
@media (max-width:380px){ .day-grid{gap:5px} .hello h1{font-size:34px} .dock-btn{min-width:64px} }

/* --- accounts, gate, forms (the 100) --- */
.pill-btn{cursor:pointer; font-family:inherit}
.gate-card{position:relative; text-align:left}
.gate-card h2,.gate-card .celebrate-flower{text-align:center}
.gate-x{position:absolute; top:14px; right:14px; width:48px; height:48px}
.gate-tabs{display:flex; gap:8px; margin:14px 0 4px}
.gate-tab{flex:1; min-height:50px; border-radius:999px; border:1.5px solid var(--line); background:var(--soft); font-weight:700; font-size:15px}
.gate-tab.sel{background:var(--ink); color:#fff; border-color:var(--ink)}
.gate-card input[type=email],.gate-card input[type=password]{width:100%; min-height:54px; border:1.5px solid var(--line); border-radius:14px; padding:10px 12px; font-size:16px; margin-top:5px}
.form-msg{color:#B64A6B; font-weight:600; font-size:14.5px; min-height:20px; margin:8px 0 0}
.form-msg.ok{color:#2E7D4F}
.gate-fine{text-align:center; color:var(--muted); font-size:13.5px}
.gate-fine a{color:#B64A6B; font-weight:700}
.you-card textarea,.you-card input[type=email]{width:100%; border:1.5px solid var(--line); border-radius:14px; padding:10px 12px; font-size:16px; margin-top:5px; font-family:inherit}
.acct-line{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:6px 0}
.sync-note{color:var(--muted); font-size:13.5px}
.btn-danger{background:#fff; border:1.5px solid #F0B7C5; color:#B03050}
/* sheet (replaces confirm dialogs) */
.sheet{position:fixed; inset:0; z-index:70; background:rgba(51,39,46,.45); display:flex; align-items:flex-end; justify-content:center}
.sheet[hidden]{display:none}
.sheet-card{background:#fff; border-radius:28px 28px 0 0; padding:24px 20px calc(20px + env(safe-area-inset-bottom)); width:100%; max-width:560px; animation:bloomIn .3s ease}
.sheet-card h2{font-size:24px; margin-bottom:6px}
.sheet-card p{color:var(--muted)}
.sheet-row{display:flex; gap:10px; margin-top:14px}
.sheet-row .btn{flex:1}
/* proof strip, chips, misc */
.proof-strip{display:flex; gap:8px; flex-wrap:wrap; margin-top:14px}
.proof-strip span{background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:8px 13px; font-weight:700; font-size:13.5px}
.start-chips{display:flex; gap:8px; margin-top:10px}
.start-chips .chip.sel{background:var(--ink); color:#fff}
.sleep-row{display:flex; gap:8px; margin:10px 0 2px; flex-wrap:wrap}
.sleep-btn{flex:1; min-width:88px; min-height:48px; border-radius:14px; border:1.5px solid var(--line); background:#fff; font-weight:700}
.sleep-btn.sel{border-color:var(--ink); background:var(--soft)}
.group-member{display:flex; justify-content:space-between; background:var(--soft); border-radius:14px; padding:10px 14px; margin-top:8px; font-weight:600}
.finisher-row{display:flex; justify-content:space-between; padding:8px 2px; border-bottom:1px solid var(--line); font-size:15px}
.level-line{font-weight:700; color:#B4622D; margin-top:4px}
body.reduced-motion *{animation:none !important; transition:none !important}
.player.captions .player-cue{font-size:22px; font-weight:700; color:var(--ink)}
.player.captions .player-move{font-size:34px}
@media print{
  body>*{display:none !important}
  #printCal{display:block !important; position:static}
  #printCal table{width:100%; border-collapse:collapse; font-size:12px}
  #printCal td,#printCal th{border:1px solid #999; padding:6px}
}
#printCal{display:none}
