:root{
  --bg:#0a0b0a; --panel:#0d0f0d; --card:#141715; --card2:#181c19;
  --line:#232823; --line2:#2c332c; --text:#eef2ea; --muted:#8a938b; --dim:#6b736b;
  --green:#c8f24f; --green2:#a8e02f; --orange:#f0a35c; --radius:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg);color:var(--text);font-family:'Satoshi','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body{min-height:100vh;background-image:radial-gradient(900px 500px at 80% -10%,rgba(200,242,79,.05),transparent 70%)}
button{font-family:inherit}
.shell{display:flex;min-height:100vh}
.side{width:232px;flex:0 0 232px;background:var(--panel);border-right:1px solid var(--line);padding:18px 12px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:9px;padding:4px 8px 14px}
.brand .mk{width:26px;height:26px;border-radius:8px;background:rgba(200,242,79,.14);display:grid;place-items:center;color:var(--green);font-size:15px}
.brand b{font-size:15px;letter-spacing:.2px}
.nav-label{font-size:10.5px;letter-spacing:.14em;color:#5b635b;margin:12px 10px 6px;text-transform:uppercase}
.nav-item{display:flex;align-items:center;gap:11px;height:42px;padding:0 12px;border-radius:11px;color:#b7beb6;font-size:14px;cursor:pointer;border:1px solid transparent;transition:.15s}
.nav-item:hover{background:#141814;color:#dfe4dc}
.nav-item.on{background:rgba(200,242,79,.10);color:var(--green);border-color:rgba(200,242,79,.18)}
.nav-item svg{width:17px;height:17px;flex:0 0 auto}
.side .foot{margin-top:auto;font-size:11px;color:#525a52;padding:10px 10px 2px;line-height:1.7}
.main{flex:1;min-width:0;padding:18px 24px 40px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.search{flex:1;max-width:400px;height:40px;border-radius:20px;background:#111411;border:1px solid var(--line);display:flex;align-items:center;gap:9px;padding:0 14px;color:var(--dim);font-size:13px}
.search svg{width:15px;height:15px;opacity:.7}
.tb-l{display:flex;align-items:center;gap:10px}
.pill{height:34px;padding:0 13px;border-radius:17px;display:flex;align-items:center;gap:7px;font-size:12.5px;background:#131613;border:1px solid var(--line);color:#c3cbc2}
.pill b{font-family:'Satoshi';font-size:14px;color:var(--green)}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(140deg,#c8f24f,#6f8f1f);color:#0b0e08;display:grid;place-items:center;font-weight:700;font-size:15px}
.greet h1{font-size:25px;font-weight:700;letter-spacing:-.3px}
.greet p{color:var(--muted);font-size:13px;margin-top:5px}
.grid{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:14px}
.col{display:flex;flex-direction:column;gap:14px;min-width:0}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:15px 17px}
.card-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}
.card-t{font-size:14.5px;font-weight:700;display:flex;align-items:center;gap:8px}
.sq{width:8px;height:8px;border-radius:2px;background:var(--green)}
.sq.or{background:var(--orange)}
.sub{font-size:12px;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:13px 14px 11px}
.stat .k{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:6px}
.stat .k svg{width:14px;height:14px;opacity:.6}
.stat .v{font-family:'Satoshi';font-size:25px;margin-top:7px;letter-spacing:.2px}
.stat .v small{font-family:'Satoshi';font-size:12px;color:var(--muted);margin-left:2px;font-weight:400;letter-spacing:0}
.seg{display:flex;gap:3px;margin-top:10px}
.seg i{flex:1;height:4px;border-radius:2px;background:#252b25}
.seg i.on{background:var(--green)}
.seg i.or{background:var(--orange)}
.stat .f{font-size:11px;color:#69716a;margin-top:8px}
.tl{position:relative;height:92px;border-radius:12px;background:#0f120f;border:1px solid #1c211c;overflow:hidden}
.tl-hours{display:flex;position:absolute;inset:0}
.tl-hours div{flex:1;border-right:1px solid rgba(255,255,255,.035);position:relative}
.tl-hours div:last-child{border:0}
.tl-hours span{position:absolute;top:5px;left:5px;font-size:9.5px;color:#5a625a;font-family:'Satoshi'}
.tl-block{position:absolute;top:24px;height:52px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;padding:0 7px;overflow:hidden;white-space:nowrap;color:#0b0e08;font-weight:600}
.tl-block .tll{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block}
.tl-empty{position:absolute;inset:0;display:grid;place-items:center;color:#5f675f;font-size:12px}
.chart{display:flex;align-items:flex-end;gap:11px;height:186px;padding-top:6px}
.chart .cb{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;height:100%;justify-content:flex-end;min-width:0}
.chart .bar{width:100%;border-radius:6px 6px 3px 3px;background:var(--green);min-height:3px;transition:height .4s}
.chart .bar.or{background:var(--orange)}
.chart .bar.mut{background:#262d26}
.chart .lbl{font-size:11px;color:var(--muted);white-space:nowrap}
.note{background:rgba(200,242,79,.07);border:1px solid rgba(200,242,79,.16);border-radius:12px;padding:11px 13px;font-size:12.5px;color:#d3dccb;line-height:1.85;margin-top:12px}
.note b{color:var(--green)}
.ins-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #1b201b}
.ins-item:last-child{border:0;padding-bottom:2px}
.ins-item .ic{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:rgba(200,242,79,.10);color:var(--green);flex:0 0 auto}
.ins-item .ic.or{background:rgba(240,163,92,.12);color:var(--orange)}
.ins-item .ic svg{width:14px;height:14px}
.ins-item h4{font-size:12.5px;font-weight:700}
.ins-item p{font-size:11.5px;color:var(--muted);margin-top:3px;line-height:1.7}
.timer-wrap{display:flex;flex-direction:column;align-items:center;gap:16px;padding:22px 10px 10px;text-align:center}
.clock{font-family:'Satoshi';font-size:104px;line-height:1;letter-spacing:2px;color:#f4f8ee}
.clock.idle{color:#dfe6d8}
.tstate{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}
.pulse{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 rgba(200,242,79,.5);animation:pl 1.8s infinite}
@keyframes pl{70%{box-shadow:0 0 0 10px rgba(200,242,79,0)}100%{box-shadow:0 0 0 0 rgba(200,242,79,0)}}
.subj-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:520px}
.chip{height:34px;padding:0 15px;border-radius:17px;border:1px solid var(--line);background:#121512;color:#c2cac1;font-size:13px;cursor:pointer;transition:.15s}
.chip:hover{border-color:#39423a}
.chip.on{background:rgba(200,242,79,.12);border-color:rgba(200,242,79,.38);color:var(--green)}
.btns{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.btn{height:50px;padding:0 26px;border-radius:13px;border:0;font-size:15.5px;font-weight:700;cursor:pointer;transition:.15s;display:inline-flex;align-items:center;gap:8px}
.btn.primary{background:var(--green);color:#0b0e08}
.btn.primary:hover{background:#d4ff5c}
.btn.ghost{background:#161a16;color:#dde3da;border:1px solid var(--line)}
.btn.ghost:hover{border-color:#3a443b}
.btn.orange{background:var(--orange);color:#1b1206}
.btn.sm{height:40px;padding:0 16px;font-size:13px;border-radius:11px}
.xpline{font-size:13px;color:var(--muted)}
.xpline b{color:var(--green);font-family:'Satoshi';font-size:15px}
.comp{display:flex;gap:16px;align-items:center}
.comp .art{width:112px;height:112px;flex:0 0 auto;display:grid;place-items:center;background:radial-gradient(circle at 50% 80%,rgba(200,242,79,.12),transparent 65%);border-radius:18px}
.comp h3{font-size:16px}
.comp p{font-size:12.5px;color:var(--muted);margin-top:5px;line-height:1.7}
.lvlbar{height:7px;border-radius:4px;background:#252b25;overflow:hidden;margin-top:9px}
.lvlbar i{display:block;height:100%;background:linear-gradient(90deg,var(--green2),var(--green));border-radius:4px}
.snd{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.snd .item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:13px;background:#121512;border:1px solid var(--line)}
.snd .item.on{border-color:rgba(200,242,79,.4);background:rgba(200,242,79,.07)}
.snd .nm{font-size:13.5px;font-weight:600}
.snd .ds{font-size:11px;color:var(--muted);margin-top:3px}
.play{width:38px;height:38px;border-radius:50%;background:var(--green);color:#0b0e08;display:grid;place-items:center;border:0;cursor:pointer;flex:0 0 auto}
.play.off{background:#202620;color:#8f978e}
.range{width:100%;accent-color:var(--green)}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #1b201b}
.row:last-child{border:0}
.row .nm{font-size:13.5px}
.row .ds{font-size:11.5px;color:var(--muted);margin-top:3px}
.barline{height:7px;border-radius:4px;background:#242a24;overflow:hidden;margin-top:7px;width:100%}
.barline i{display:block;height:100%;background:var(--green);border-radius:4px}
.barline i.or{background:var(--orange)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.65);display:none;place-items:center;z-index:60;padding:16px;backdrop-filter:blur(3px)}
.modal.open{display:grid}
.modal .box{background:#121512;border:1px solid var(--line2);border-radius:18px;padding:20px;width:100%;max-width:400px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.modal h3{font-size:17px;margin-bottom:4px}
.modal p{font-size:12.5px;color:var(--muted);margin-bottom:16px}
.field{margin-bottom:12px}
.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
input,select{background:#0d100d;border:1px solid var(--line2);color:var(--text);border-radius:10px;height:42px;padding:0 12px;font-family:inherit;font-size:14px;width:100%}
input:focus,select:focus{outline:1px solid rgba(200,242,79,.4)}
.frow{display:flex;gap:10px}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(20px);background:#1b211b;border:1px solid rgba(200,242,79,.35);color:#eaf0e4;padding:12px 20px;border-radius:12px;font-size:13.5px;opacity:0;pointer-events:none;transition:.25s;z-index:70;max-width:92vw;text-align:center}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.bnav{display:none}
.empty{color:var(--muted);font-size:13px;text-align:center;padding:26px 0}
@media(max-width:900px){
  .side{display:none}
  .main{padding:14px 13px 86px}
  .grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .clock{font-size:66px;letter-spacing:1px}
  .snd{grid-template-columns:1fr}
  .greet h1{font-size:19px;line-height:1.25}
  .greet p{font-size:11.5px;margin-top:3px}
  .pill{height:30px;padding:0 10px;font-size:11px;gap:5px}
  .pill b{font-size:12.5px}
  .avatar{width:32px;height:32px;font-size:13px}
  .topbar{flex-direction:column;align-items:stretch;gap:11px;margin-bottom:14px}
  .tb-l{justify-content:flex-start;gap:7px}
  .greet h1{font-size:21px;line-height:1.2}
  .search{display:none}
  .chart{height:150px;gap:7px}
  .chart .lbl{font-size:9.5px}
  .card{padding:14px 14px}
  .bnav{display:flex;position:fixed;bottom:0;left:0;right:0;height:66px;background:#0c0f0c;border-top:1px solid var(--line);z-index:40;padding-bottom:env(safe-area-inset-bottom)}
  .bnav .it{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7b837b;font-size:10px;cursor:pointer}
  .bnav .it.on{color:var(--green)}
  .bnav .it svg{width:19px;height:19px}
  .toast{bottom:80px}
}

/* ===== motion ===== */
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes slidein{from{opacity:0;transform:scaleX(.6)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@keyframes breathe{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(1.08);opacity:.85}}
@keyframes glow{0%,100%{text-shadow:0 0 0 rgba(200,242,79,0)}50%{text-shadow:0 0 26px rgba(200,242,79,.18)}}
@keyframes pop{0%{transform:scale(.9)}60%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes dash{from{opacity:0}to{opacity:1}}

.main.anim-in > *{animation:rise .42s cubic-bezier(.22,.8,.3,1) both}
.topbar{animation-delay:.02s}
.grid{animation-delay:.06s}
.stat{transition:transform .18s ease,border-color .18s ease,background .18s ease}
.main.anim-in .stat{animation:rise .45s cubic-bezier(.22,.8,.3,1) both}
.stat:nth-child(1){animation-delay:.04s}
.stat:nth-child(2){animation-delay:.09s}
.stat:nth-child(3){animation-delay:.14s}
.stat:nth-child(4){animation-delay:.19s}
.card{transition:transform .2s ease,border-color .2s ease,background .2s ease}
@media(hover:hover){
  .stat:hover{transform:translateY(-3px);border-color:rgba(200,242,79,.28);background:#171b17}
  .card:hover{border-color:#2e362e}
  .nav-item:hover{transform:translateX(2px)}
  .tl-block:hover{transform:scale(1.04);filter:brightness(1.08)}
  .chip:hover{transform:translateY(-1px)}
  .play:hover{transform:scale(1.08)}
}
.stat .v{animation:rise .5s cubic-bezier(.22,.8,.3,1) both;animation-delay:.12s}
.seg i{transition:background .3s ease}
.seg i.on{animation:dash .5s ease both}
.chart .bar{transform-origin:bottom center}
.main.anim-in .chart .bar{animation:grow .62s cubic-bezier(.2,.9,.25,1) both}
.cb:nth-child(1) .bar{animation-delay:.05s}
.cb:nth-child(2) .bar{animation-delay:.1s}
.cb:nth-child(3) .bar{animation-delay:.15s}
.cb:nth-child(4) .bar{animation-delay:.2s}
.cb:nth-child(5) .bar{animation-delay:.25s}
.cb:nth-child(6) .bar{animation-delay:.3s}
.cb:nth-child(7) .bar{animation-delay:.35s}
.cb:nth-child(8) .bar{animation-delay:.4s}
.tl-block{transform-origin:left center;animation:slidein .5s cubic-bezier(.2,.9,.25,1) both;transition:transform .18s ease,filter .18s ease}
.ins-item{animation:rise .45s cubic-bezier(.22,.8,.3,1) both}
.ins-item:nth-child(1){animation-delay:.1s}
.ins-item:nth-child(2){animation-delay:.16s}
.ins-item:nth-child(3){animation-delay:.22s}
.ins-item:nth-child(4){animation-delay:.28s}
.comp .art svg{animation:float 4.5s ease-in-out infinite}
.comp .art{position:relative}
.comp .art:after{content:'';position:absolute;inset:14%;border-radius:50%;background:radial-gradient(circle,rgba(200,242,79,.16),transparent 70%);animation:breathe 4.5s ease-in-out infinite;z-index:-1}
.clock{transition:color .3s ease}
.clock:not(.idle){animation:glow 3.2s ease-in-out infinite;font-variant-numeric:tabular-nums}
.lvlbar i{transition:width .6s cubic-bezier(.2,.9,.25,1)}
.barline i{transition:width .6s cubic-bezier(.2,.9,.25,1);animation:slidein .6s ease both;transform-origin:left center}
.btn{transition:transform .12s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.btn:active{transform:scale(.96)}
.btn.primary:hover{box-shadow:0 6px 24px rgba(200,242,79,.22)}
.btn.ghost:hover{background:#1b201b}
.chip{transition:transform .12s ease,background .18s ease,border-color .18s ease,color .18s ease}
.chip.on{animation:pop .3s ease}
.pulse{animation:pl 1.8s infinite}
.toast.show{animation:pop .28s ease}
.avatar{transition:transform .2s ease}
@media(hover:hover){.avatar:hover{transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* tick strips */
.ticks{display:flex;align-items:flex-end;gap:2px;height:22px;margin-top:11px;cursor:default}
.ticks i{flex:1;height:7px;border-radius:1.5px;background:#2b322b;transition:height .14s ease-out,background .25s ease}
.ticks i.on{background:var(--green)}
.ticks i.on.or{background:var(--orange)}

/* icon sizing (svg has no intrinsic size) */
.pill svg{width:14px;height:14px;flex:0 0 auto}
.btn svg{width:17px;height:17px;flex:0 0 auto}
.btn.sm svg{width:14px;height:14px}
.btn.primary,.btn.orange{white-space:nowrap}
.play svg{width:15px;height:15px}
.chip svg{width:13px;height:13px}
.snd .item svg{width:15px;height:15px}
.ins-item .ic svg{flex:0 0 auto}

.timer-card{min-height:calc(100vh - 190px);display:flex;align-items:center;justify-content:center}
@media(max-width:900px){.timer-card{min-height:auto}}

/* goal ring around the clock */
.clock-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:620px;padding:18px 26px}
.clock-wrap .ring{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.clock-wrap .ring-p{transition:stroke-dashoffset .8s cubic-bezier(.3,.9,.3,1);filter:drop-shadow(0 0 6px rgba(200,242,79,.25))}
.clock-wrap.live .ring-p{animation:ringpulse 2.6s ease-in-out infinite}
@keyframes ringpulse{0%,100%{filter:drop-shadow(0 0 4px rgba(200,242,79,.18))}50%{filter:drop-shadow(0 0 12px rgba(200,242,79,.5))}}
@media(max-width:900px){.clock-wrap{padding:12px 10px}}

/* ===== study playlist dock ===== */
.mdock{position:fixed;right:22px;bottom:22px;z-index:55;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.mdock-fab{width:50px;height:50px;border-radius:50%;border:1px solid rgba(200,242,79,.35);background:#141914;color:var(--green);display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.55);transition:transform .18s ease,background .2s ease,border-color .2s ease}
.mdock-fab svg{width:21px;height:21px}
.mdock-fab:hover{transform:translateY(-2px) scale(1.04);background:#1b211b;border-color:rgba(200,242,79,.6)}
.mdock.has .mdock-fab{background:rgba(200,242,79,.12);animation:breathe 3.4s ease-in-out infinite}
.mdock-panel{display:none;width:360px;max-height:calc(100vh - 130px);overflow:auto;max-width:calc(100vw - 28px);background:#111511;border:1px solid var(--line2);border-radius:18px;box-shadow:0 26px 70px rgba(0,0,0,.65);overflow:hidden}
.mdock.open .mdock-panel{display:block;animation:rise .22s cubic-bezier(.22,.8,.3,1) both}
.mdock-h{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid var(--line)}
.mdock-h b{font-size:13.5px;letter-spacing:.1px}
.mdock-x{width:28px;height:28px;border-radius:8px;border:0;background:#191e19;color:#b9c2b7;display:grid;place-items:center;cursor:pointer}
.mdock-x svg{width:14px;height:14px}
.mdock-body{padding:13px 14px 14px}
.mdock-p{font-size:12.5px;color:var(--muted);line-height:1.5;margin-bottom:11px}
.mdock-row{display:flex;gap:8px}
.mdock-row input{height:40px;font-size:12.5px}
.mdock-note{font-size:11px;color:#7d867c;margin-top:10px;line-height:1.5}
.mdock-err{font-size:11.5px;color:var(--orange);margin-top:8px}
.mdock-frame{width:100%;border:0;border-radius:12px;background:#000;display:block}
.mdock-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:11.5px}
.mdock-foot a{color:var(--green);text-decoration:none}
.mdock-link{background:none;border:0;color:#9aa398;font-size:11.5px;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:3px}
.mdock-link:hover{color:#d8e0d4}
@media(max-width:900px){
  .mdock{right:12px;bottom:78px;left:12px;align-items:flex-end}
  .mdock-fab{width:46px;height:46px}
  .mdock-panel{width:100%;max-width:none;max-height:calc(100vh - 170px)}
  .mdock-h{padding:12px 13px}
}

/* empty chart state */
.chart-empty{height:186px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;border:1px dashed #242b24;border-radius:14px;margin-top:4px}
.chart-empty .ce-ico{width:34px;height:34px;border-radius:11px;background:rgba(200,242,79,.1);color:var(--green);display:grid;place-items:center;margin-bottom:2px}
.chart-empty .ce-ico svg{width:17px;height:17px}
.chart-empty .ce-t{font-size:13.5px;font-weight:600}
.chart-empty .ce-s{font-size:11.5px;color:var(--muted);margin-bottom:8px}
.clock.brk{color:var(--orange);animation:none}
.pulse.or{background:var(--orange)}
a.mdock-fab{text-decoration:none}
