 :root{--bg:#f5f6f8;--card:#fff;--ink:#0f172a;--muted:#7d8798;--line:#e4e8ee;--soft:#eef1f5;--blue:#0a84ff;--danger:#c65353;--shadow:0 14px 40px rgba(15,23,42,.06)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif}body{overscroll-behavior-y:none}button,input,textarea,select{font:inherit}button{touch-action:manipulation}.hidden{display:none!important}.login{min-height:100dvh;display:grid;place-items:center;padding:24px}.panel{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:30px;padding:26px;box-shadow:0 28px 80px rgba(15,23,42,.09)}.eyebrow{font-size:11px;letter-spacing:.17em;color:var(--muted);font-weight:850}.login h1{font-size:31px;line-height:1.12;margin:10px 0 7px;letter-spacing:-.045em}.sub{font-size:13px;color:var(--muted);line-height:1.55}.field{margin-top:14px}.field label{display:block;font-size:11px;color:var(--muted);margin:0 0 6px 3px}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:#fafbfc;border-radius:16px;padding:13px 14px;outline:none}.field textarea{min-height:120px;resize:vertical}.row{display:flex;gap:9px;align-items:center}.grow{flex:1}.primary,.secondary,.pill,.danger{border:0;border-radius:15px;padding:12px 15px;font-weight:780;cursor:pointer}.primary{background:var(--ink);color:white}.secondary{background:var(--soft);color:var(--ink)}.pill{padding:9px 13px;border-radius:999px;background:var(--soft);font-size:12px}.danger{background:#fff0f0;color:var(--danger)}.shell{max-width:780px;margin:auto;padding:0 18px calc(100px + env(safe-area-inset-bottom))}.top{position:sticky;top:0;z-index:20;background:rgba(245,246,248,.9);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);padding:calc(14px + env(safe-area-inset-top)) 0 13px;border-bottom:1px solid rgba(15,23,42,.05)}.toprow{display:flex;align-items:center;justify-content:space-between;gap:16px}.date{font-size:12px;color:var(--muted)}.title{font-size:29px;font-weight:880;letter-spacing:-.05em;margin-top:5px;line-height:1.15}.fab{width:48px;height:48px;flex:0 0 48px;border-radius:50%;border:0;background:var(--ink);color:#fff;font-size:29px}.cloud{font-size:11px;color:var(--muted);margin-top:8px}.cloud.reconnecting{color:#9a7b4b}.cloud.offline{color:#a06464}.running{position:sticky;top:calc(90px + env(safe-area-inset-top));z-index:15;background:#fff;border:1px solid var(--line);border-radius:20px;padding:13px 15px;margin-top:14px;display:flex;align-items:center;gap:10px;box-shadow:var(--shadow)}.running strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.running time{margin-left:auto;font-size:19px;font-weight:880;font-variant-numeric:tabular-nums}.hero{background:var(--ink);color:#fff;border-radius:30px;padding:28px 26px;margin-top:22px;display:flex;justify-content:space-between;align-items:end;min-height:190px}.count{font-size:70px;font-weight:900;letter-spacing:-.075em;line-height:.95;margin-top:28px}.count span{font-size:34px;color:#8995ab}.pct{font-size:31px;font-weight:880}.hero .sub{color:#aab5c7;font-size:14px;margin-top:16px}.section{margin-top:31px}.section small{font-size:10px;letter-spacing:.18em;color:#8993a3;font-weight:850}.section h2{font-size:28px;letter-spacing:-.035em;margin:5px 0 14px}.sectionLead{font-size:13px;color:var(--muted);margin:-5px 0 14px}.task{background:#fff;border:1px solid var(--line);border-radius:22px;padding:15px;margin:11px 0;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:start}.task.completed{background:#f7f8fa;opacity:.63}.check{width:30px;height:30px;border:2px solid #c9d0db;border-radius:50%;background:#fff;padding:0}.check.done{border-color:#5a6577;background:#5a6577}.tname{font-size:16px;font-weight:790;line-height:1.35;word-break:break-word}.completed .tname{text-decoration:line-through}.meta{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.45}.actual{font-weight:800;color:#657184}.timer-btn{color:var(--blue);white-space:nowrap}.donepill{color:#8d98a8;background:#eef1f5;white-space:nowrap}.checklist{grid-column:2/4;background:#f7f8fa;border-radius:16px;padding:9px 12px;margin-top:3px}.ci{display:flex;align-items:center;gap:9px;padding:7px 0;font-size:13px}.ci input{width:20px;height:20px;accent-color:var(--blue);margin:0}.completed .ci span{text-decoration:line-through;color:#8f98a6}.sessionDetails{grid-column:2/4;margin-top:2px;border-top:1px solid var(--line);padding-top:2px}.sessionDetails summary{list-style:none;cursor:pointer;padding:11px 0 7px;font-size:12px;color:#788294;font-weight:780}.sessionDetails summary::-webkit-details-marker{display:none}.sessionDetails summary:after{content:"⌄";float:right;color:#94a0b1;font-size:16px}.sessionDetails[open] summary:after{content:"⌃"}.sessionRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:9px 0}.sessionRow+.sessionRow{border-top:1px solid #edf0f4}.sessionTitle{font-size:13px;font-weight:760}.sessionReason{font-size:11px;color:var(--muted);margin-top:4px}.sessionDur{font-size:14px;font-weight:850;align-self:center}.tabs{position:fixed;bottom:0;left:0;right:0;background:rgba(251,251,253,.93);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 10px calc(8px + env(safe-area-inset-bottom));z-index:50}.tab{border:0;background:transparent;color:#98a1af;font-size:11px;padding:6px}.tab b{display:block;font-size:18px;margin-bottom:3px}.tab.on{color:var(--ink);font-weight:780}.card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:17px;margin:11px 0}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.metric span{font-size:11px;color:var(--muted)}.metric strong{display:block;font-size:23px;margin-top:5px}.big-number{font-size:42px;font-weight:900;letter-spacing:-.04em}.modalWrap{position:fixed;inset:0;background:rgba(15,23,42,.31);z-index:100;display:grid;align-items:end}.modal{background:#fbfbfd;border-radius:30px 30px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));max-height:88dvh;overflow:auto}.modal h2{margin:4px 0 7px;font-size:25px}.proposal{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px;margin:10px 0}.proposal label{display:flex;gap:8px;align-items:flex-start}.proposal input[type=checkbox]{width:20px;height:20px;accent-color:var(--blue)}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.chip{font-size:11px;background:#f0f2f5;color:#667080;border-radius:999px;padding:6px 9px}.toast{position:fixed;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#111827;color:#fff;border-radius:999px;padding:10px 15px;font-size:12px;z-index:150;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.empty{text-align:center;color:var(--muted);padding:30px 5px}@media(min-width:900px){.shell{max-width:850px}.modalWrap{place-items:center}.modal{width:min(640px,calc(100vw - 50px));border-radius:30px}.tabs{left:50%;right:auto;transform:translateX(-50%);width:540px;border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0}} 
/* Report v0.5 */
.periodSwitch{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#e9edf2;border-radius:14px;padding:4px;margin:8px 0 14px}.periodSwitch button{border:0;background:transparent;color:#7a8493;border-radius:11px;padding:9px 10px;font-weight:760}.periodSwitch button.on{background:#fff;color:var(--ink);box-shadow:0 2px 9px rgba(15,23,42,.08)}
.reportHero{background:#fff;border:1px solid var(--line);border-radius:24px;padding:21px 20px;margin-top:11px;display:flex;align-items:end;justify-content:space-between;gap:18px}.reportMini{text-align:right}.reportMini strong{display:block;font-size:25px}.reportMini span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.reportMetrics{margin-top:10px}.reportMetrics .metric strong{font-size:21px}
.chartCard{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;margin-top:12px;overflow:hidden}.chartHeader{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:8px}.chartHeader span{display:block;color:var(--muted);font-size:11px}.chartHeader strong{display:block;font-size:16px;margin-top:4px}.chartHeader em{font-style:normal;color:var(--muted);font-size:11px;text-align:right}
.lineChart{width:100%;height:auto;display:block;overflow:visible}.chartGrid{stroke:#edf0f4;stroke-width:1}.chartAxis{fill:#929baa;font-size:10px}.chartAxis.y{font-variant-numeric:tabular-nums}.chartArea{fill:url(#areaFade);stroke:none}.chartLine{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chartDot{fill:#fff;stroke:var(--ink);stroke-width:3}
.chartGrid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.donutWrap{display:flex;align-items:center;gap:24px;padding:8px 4px 3px}.donut{width:128px;height:128px;border-radius:50%;position:relative;display:grid;place-items:center;flex:0 0 128px}.donut:after{content:"";position:absolute;inset:16px;border-radius:50%;background:#fff}.donut>div{position:relative;z-index:2;text-align:center}.donut strong{display:block;font-size:27px}.donut span{display:block;font-size:10px;letter-spacing:.14em;color:var(--muted);margin-top:2px}.donutLegend{flex:1;min-width:0}.donutLegend>div{display:grid;grid-template-columns:12px 1fr auto;gap:7px;align-items:center;padding:8px 0}.donutLegend>div+div{border-top:1px solid #edf0f4}.donutLegend span{font-size:12px;color:var(--muted)}.donutLegend strong{font-size:13px}.legendSwatch{width:9px;height:9px;border-radius:50%;display:block}.legendSwatch.main{background:var(--ink)}.legendSwatch.side{background:#d8dee7}
.insightRows>div{display:flex;justify-content:space-between;align-items:center;padding:11px 0}.insightRows>div+div{border-top:1px solid #edf0f4}.insightRows span{color:var(--muted);font-size:12px}.insightRows strong{font-size:14px}
.rankItem{padding:9px 0}.rankItem+.rankItem{border-top:1px solid #edf0f4}.rankHead{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}.rankHead strong{font-size:12px}.rankName{font-size:12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:7px}.questDot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}.questDot.main{background:var(--ink)}.questDot.side{background:#b9c1cd}
.barTrack{height:8px;background:#eef1f5;border-radius:999px;overflow:hidden}.barTrack.thin{height:6px;min-width:0}.barFill{height:100%;background:var(--ink);border-radius:999px}.barFill.expected{background:#cbd2dc}.barFill.actualbar{background:var(--ink)}
.compareItem{padding:11px 0}.compareItem+.compareItem{border-top:1px solid #edf0f4}.compareHead{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px}.compareHead span{font-size:12px;font-weight:760;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compareHead strong{font-size:12px;color:#667182}.compareHead strong.warn{color:#9a7048}.compareRow{display:grid;grid-template-columns:30px minmax(0,1fr) 44px;gap:8px;align-items:center;margin:6px 0}.compareRow>span{font-size:10px;color:var(--muted)}.compareRow em{font-style:normal;font-size:10px;color:var(--muted);text-align:right}
.chartEmpty{text-align:center;color:var(--muted);font-size:12px;padding:28px 8px}.reviewButton{width:100%;margin-top:13px}
@media(max-width:650px){.chartGrid2{grid-template-columns:1fr}.donutWrap{justify-content:center}.reportHero{padding:18px}.chartCard{padding:15px}.reportMetrics{grid-template-columns:1fr 1fr}}


/* v0.5.1 — Visual Breathing */
.reportSection{margin-top:38px}
.reportHeading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}
.reportHeading h2{margin-bottom:0}
.reportHeading .periodSwitch{margin:0;width:min(390px,48%);flex:0 0 auto}
.reportOverview{background:#fff;border:1px solid var(--line);border-radius:28px;margin-top:0;overflow:hidden}
.reportPrimary{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:27px 30px 24px}
.reportKpis{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #edf0f4}
.reportKpi{padding:18px 22px;min-width:0}
.reportKpi+.reportKpi{border-left:1px solid #edf0f4}
.reportKpi span{display:block;color:var(--muted);font-size:11px;line-height:1.35}
.reportKpi strong{display:block;font-size:23px;margin-top:7px;letter-spacing:-.025em}
.reportSection .chartCard{margin-top:24px;padding:26px 28px;border-radius:27px}
.reportSection .chartGrid2{gap:24px;margin-top:24px}
.reportSection .chartGrid2 .chartCard{margin-top:0}
.reportSection .chartHeader{margin-bottom:17px}
.reportSection .chartHeader strong{font-size:17px;margin-top:5px}
.reportSection .chartHeader span{font-size:11px;letter-spacing:.01em}
.reportSection .lineChart{margin-top:4px}
.reportSection .donutWrap{gap:34px;padding:14px 8px 10px}
.reportSection .donut{width:118px;height:118px;flex-basis:118px}
.reportSection .donut:after{inset:15px}
.reportSection .donut strong{font-size:25px}
.reportSection .donutLegend>div{padding:11px 0}
.reportSection .insightRows>div{padding:14px 0}
.reportSection .rankItem{padding:14px 0}
.reportSection .rankHead{margin-bottom:10px}
.reportSection .barTrack{height:7px}
.reportSection .compareItem{padding:17px 0}
.reportSection .compareHead{margin-bottom:12px}
.reportSection .compareRow{margin:8px 0;grid-template-columns:36px minmax(0,1fr) 52px;gap:10px}
.reportSection .reviewButton{margin-top:26px;padding:14px 18px}

@media(min-width:900px){
  .reportShell{max-width:1080px;padding-left:28px;padding-right:28px}
  .reportShell .top{padding-top:calc(18px + env(safe-area-inset-top));padding-bottom:17px}
  .reportShell .title{font-size:31px}
  .reportSection{margin-top:48px}
  .reportHeading{margin-bottom:26px}
  .reportHeading .periodSwitch{width:420px}
  .reportOverview{display:grid;grid-template-columns:minmax(260px,1.15fr) minmax(0,2.85fr)}
  .reportPrimary{padding:30px 32px;border-right:1px solid #edf0f4}
  .reportKpis{border-top:0;grid-template-columns:repeat(4,1fr)}
  .reportKpi{padding:26px 20px;display:flex;flex-direction:column;justify-content:center}
  .reportSection .chartCard{padding:30px 32px;margin-top:28px}
  .reportSection .trendCard{padding-bottom:26px}
  .reportSection .chartGrid2{gap:28px;margin-top:28px}
  .reportSection .chartGrid2 .chartCard{padding:28px 30px}
  .reportSection .rankList{padding:2px 2px 0}
  .reportSection .compareList{padding:0 2px}
  .reportShell+.tabs{}
}

@media(max-width:899px){
  .reportHeading{display:block;margin-bottom:14px}
  .reportHeading .periodSwitch{width:100%;margin-top:14px}
  .reportOverview{border-radius:24px}
  .reportPrimary{padding:21px 20px}
  .reportKpis{grid-template-columns:1fr 1fr}
  .reportKpi{padding:15px 17px}
  .reportKpi:nth-child(3){border-left:0;border-top:1px solid #edf0f4}
  .reportKpi:nth-child(4){border-top:1px solid #edf0f4}
  .reportKpi strong{font-size:21px}
  .reportSection .chartCard{padding:18px;margin-top:17px}
  .reportSection .chartGrid2{gap:17px;margin-top:17px}
  .reportSection .chartGrid2 .chartCard{padding:18px}
}

@media(max-width:650px){
  .reportSection{margin-top:30px}
  .reportPrimary{padding:19px 18px}
  .reportMini strong{font-size:22px}
  .reportSection .donutWrap{gap:22px;justify-content:flex-start}
  .reportSection .donut{width:108px;height:108px;flex-basis:108px}
  .reportSection .donut:after{inset:14px}
  .reportSection .chartHeader{margin-bottom:12px}
}


/* v0.6.0 · Timer Guard */
.guardHero{
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
  background:#f4f6f9;border:1px solid var(--line);border-radius:18px;padding:14px 15px;margin:14px 0 10px
}
.guardHero strong{font-size:15px;line-height:1.4}
.guardHero span{font-size:12px;color:var(--muted);white-space:nowrap}
.quickTimes{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.guardToggle{
  display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:13px 14px;
  background:#f7f8fa;border-radius:15px;font-size:13px;line-height:1.45
}
.guardToggle input{width:20px;height:20px;accent-color:var(--blue);margin:0;flex:0 0 auto}
.sessionNeedsReview{background:#fffaf2;border-radius:12px;padding-left:9px;padding-right:9px}
.miniReview{
  display:block;margin-top:6px;margin-left:auto;border:0;border-radius:999px;
  padding:5px 9px;background:#fff0d8;color:#8b6226;font-size:10px;font-weight:800;cursor:pointer
}
@media(max-width:560px){
  .guardHero{display:block}
  .guardHero span{display:block;margin-top:6px;white-space:normal}
  .modal .row{align-items:stretch}
}


/* v0.7.0 · Web Push + clearer timer correction */
.correctionPreview{margin-top:10px;padding:12px 14px;border-radius:14px;background:#eef4fb;color:#637083;font-size:12px}
.correctionPreview strong{color:var(--ink);font-size:15px;margin-left:5px}
.pushCardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pushDot{width:10px;height:10px;border-radius:50%;background:#c8ced8;flex:0 0 auto;margin-top:5px;box-shadow:0 0 0 5px rgba(148,163,184,.08)}
.pushDot.on{background:#34c759;box-shadow:0 0 0 5px rgba(52,199,89,.10)}
.pushStatus{font-size:12px;line-height:1.5;color:#667386;background:#f5f7fa;border-radius:14px;padding:11px 12px;margin-top:14px}
.pushEnable{width:100%;margin-top:12px}
.pushActions{margin-top:12px}.pushActions .ghost{padding-left:13px;padding-right:13px}
