:root{--ground:#F7F6F1;--ink:#1F2E27;--muted:#4A5A52;--green:#2D4A3C;--green2:#4A6B5B;--sage:#9DBBA8;--soft:#E8F0EA;--softer:#F3F7F4;--line:#E3EBE6;--line2:#C8D6CC}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--ground);color:var(--ink);font-family:Poppins,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body{display:flex;justify-content:center}
#app{width:100%;max-width:430px;min-height:100dvh;display:flex;flex-direction:column;position:relative;background:var(--ground)}
.screen{display:none;flex:1;flex-direction:column;min-height:0}
.screen.on{display:flex}
h1{margin:0;font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:30px;line-height:1.1}
.serif{font-family:'Instrument Serif',Georgia,serif;font-weight:400}
.ital{font-family:'Instrument Serif',Georgia,serif;font-style:italic;color:var(--green)}
.sub{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.pad{padding:0 24px}
.head{padding:max(52px,env(safe-area-inset-top)) 24px 14px}
.body{flex:1;padding:0 24px;display:flex;flex-direction:column;gap:10px;overflow:auto;padding-bottom:12px}
.foot{padding:10px 24px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
button,.btn{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.btn{display:flex;align-items:center;justify-content:center;height:52px;border-radius:14px;border:0;font-size:15px;font-weight:600;text-decoration:none;width:100%}
.btn.p{background:var(--green);color:#fff}
.btn.o{background:#fff;color:var(--green);border:1.5px solid var(--green)}
.btn.g{background:#fff;color:var(--ink);border:1.5px solid var(--line);font-weight:500;font-size:13px;height:46px}
.row{display:flex;gap:10px}.row>*{flex:1 1 0}
.card{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:12px 14px}
.card.soft{background:var(--soft);border-color:var(--soft)}
.card.sel{background:var(--soft);border-color:var(--green)}
.card.dash{background:transparent;border:1.5px dashed var(--sage)}
.kicker{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.small{font-size:12px;color:var(--muted);line-height:1.45}
.link{font-size:13px;color:var(--muted);text-align:center;text-decoration:underline;background:none;border:0}
nav{display:flex;border-top:1px solid var(--line);padding:10px 8px calc(10px + env(safe-area-inset-bottom));background:var(--ground)}
nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:44px;font-size:11px;font-weight:500;color:var(--muted);background:none;border:0}
nav button.on{color:var(--green);font-weight:600}
nav svg{width:22px;height:22px}
textarea{width:100%;height:240px;padding:16px;border-radius:16px;border:1.5px solid var(--line);background:var(--softer);font:inherit;font-size:15px;line-height:1.6;color:var(--ink);resize:none}
textarea::placeholder{color:#7A8A82}
.opt{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:0 14px 0 12px;border-radius:14px;border:1.5px solid var(--line);background:#fff;text-align:left}
.opt.sel{background:var(--soft);border-color:var(--green)}
.opt .ic{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--green);flex:0 0 auto}
.opt.sel .ic{background:var(--green);color:#fff}
.opt b{display:block;font-size:15px;font-weight:500}
.opt span{font-size:12px;color:var(--muted)}
.pill{height:34px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line2);background:#fff;color:var(--green);font-size:12px;font-weight:500}
.pill.on{background:var(--green);border-color:var(--green);color:#fff}
.hero{position:relative;background:var(--sage);height:212px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:22px}
.hero .c1,.hero .c2{position:absolute;border-radius:50%}
.hero .c1{width:420px;height:420px;background:#B4CCBC;top:-250px;left:calc(50% - 210px)}
.hero .c2{width:260px;height:260px;background:#C8DBCE;top:-150px;left:calc(50% - 130px)}
.hero img{position:relative;width:300px;height:300px;object-fit:cover;margin:-120px 0 -118px}
.hero p{position:relative;margin:0;font-size:12px;font-weight:500;letter-spacing:.08em}
.slot{display:flex;gap:12px;align-items:stretch}
.slot .t{flex:0 0 44px;padding-top:14px;font-size:12px;font-weight:500;color:var(--muted)}
.slot .card{flex:1}
.task{display:flex;gap:12px;align-items:flex-start;border:0;width:100%;text-align:left}
.dot{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--green);flex:0 0 auto;margin-top:1px}
.done .dot{background:var(--green)}
.done .tt{text-decoration:line-through}
.pips{display:flex;gap:4px;flex:1}.pips i{flex:1;height:6px;border-radius:3px;background:var(--line)}.pips i.on{background:var(--green)}
.week{display:flex;gap:4px;padding:0 16px 10px}
.week button{flex:1;height:64px;border-radius:12px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.week button.on{background:var(--green);color:#fff}
.week .d{font-size:10px;font-weight:500;color:var(--muted)}.week .on .d{color:#D6E3DA}
.week .n{font-size:16px;font-weight:600}
.week .m{width:6px;height:6px;border-radius:50%;background:var(--line)}.week .m.has{background:var(--sage)}.week .on .m{background:#fff}
.tl{position:relative;height:528px;margin:0 24px}
.hr{position:absolute;left:0;right:0;display:flex;gap:10px;align-items:flex-start}
.hr span{flex:0 0 36px;font-size:11px;font-weight:500;color:var(--muted);margin-top:-7px}.hr i{flex:1;height:1px;background:var(--line)}
.blk{position:absolute;left:46px;width:calc(100% - 46px);min-height:34px;padding:4px 12px;border-radius:10px;display:flex;flex-direction:column;justify-content:center;gap:1px;overflow:hidden;border:1.5px solid transparent}
.blk b{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.blk span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blk.fixed{background:#fff;border-color:var(--line2)}.blk.task{background:var(--soft)}.blk.rest{border:1.5px dashed var(--sage)}
.seg{display:flex;height:36px;padding:3px;border-radius:999px;background:var(--soft)}
.seg button{height:30px;padding:0 14px;border-radius:999px;border:0;background:transparent;color:var(--green);font-size:12px;font-weight:600}
.seg button.on{background:var(--green);color:#fff}
.grid7{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:0 16px}
.grid7 .cell{height:62px;border-radius:12px;border:1.5px solid var(--line);background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:14px;font-weight:500;color:var(--ink)}
.grid7 .cell.out{color:var(--line2)}.grid7 .cell.today{background:var(--green);border-color:var(--green);color:#fff}
.grid7 .cell .p{display:flex;gap:3px;height:6px}.grid7 .cell .p i{width:6px;height:6px;border-radius:50%;background:var(--green)}.grid7 .cell.today .p i{background:#fff}
.grid7 .dow{text-align:center;font-size:10px;font-weight:600;letter-spacing:.04em;color:var(--muted)}
.circle{width:140px;height:140px;border-radius:50%;background:var(--sage);transition:width 4s ease-in-out,height 4s ease-in-out}
.circle.big{width:220px;height:220px}
.av{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--green);color:#fff;font-size:13px;font-weight:600;flex:0 0 auto}
.mate{display:flex;align-items:center;gap:12px;width:100%;height:60px;padding:0 14px;border-radius:14px;border:1.5px solid var(--line);background:#fff;text-align:left}
.mate.sel{background:var(--soft);border-color:var(--green)}
.mate .nm{flex:1;display:flex;flex-direction:column;gap:2px}.mate .nm b{font-size:14px;font-weight:500}.mate .nm span{font-size:12px;color:var(--muted)}
.mate .ac{font-size:12px;font-weight:600;color:var(--green)}
.vid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.vid div{height:150px;border-radius:14px;display:flex;align-items:flex-end;padding:10px;color:#fff;font-size:12px;font-weight:600}
.timer{font-size:40px;font-weight:600;color:var(--green)}
.tog{display:flex;align-items:center;gap:12px;width:100%;height:62px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);background:#fff;text-align:left}
.tog.on{border-color:var(--green)}
.tog .nm{flex:1;display:flex;flex-direction:column;gap:2px}.tog .nm b{font-size:14px;font-weight:500}.tog .nm span{font-size:12px;color:var(--muted)}
.sw{width:44px;height:26px;border-radius:13px;background:var(--line2);position:relative;flex:0 0 auto}.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.tog.on .sw{background:var(--green)}.tog.on .sw::after{left:21px}
.sheet{position:fixed;inset:0;z-index:20;display:none;flex-direction:column;justify-content:flex-end}
.sheet.on{display:flex}
.sheet .bg{position:absolute;inset:0;background:rgba(31,46,39,.35);border:0}
.sheet .pn{position:relative;background:var(--ground);border-radius:22px 22px 0 0;padding:10px 0 calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;max-width:430px;width:100%;margin:0 auto}
.sheet .hd{align-self:center;width:36px;height:5px;border-radius:3px;background:var(--line2)}
.apps{display:flex;gap:18px;padding:14px 20px 0;border-top:1px solid var(--line)}
.apps button{display:flex;flex-direction:column;align-items:center;gap:6px;width:64px;border:0;background:transparent;padding:0;font-size:11px;color:var(--ink)}
.apps .ic{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:14px;background:var(--soft);color:var(--green)}
.apps .ic.d{background:var(--green);color:#fff}
.toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:#fff;font-size:13px;padding:10px 16px;border-radius:999px;opacity:0;transition:opacity .2s;pointer-events:none;z-index:30}
.toast.on{opacity:1}
.spin{width:18px;height:18px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .8s linear infinite;display:inline-block;vertical-align:middle;margin-right:8px}
@keyframes sp{to{transform:rotate(360deg)}}
input[type=text],input[type=time],input[type=date]{height:44px;padding:0 12px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font:inherit;font-size:14px;color:var(--ink);width:100%}
#sidenav{display:none}
/* ---------- desktop ---------- */
@media (min-width:900px){
  body{align-items:stretch}
  #app{max-width:1280px;height:100dvh;display:grid;grid-template-columns:240px minmax(0,1fr) minmax(0,1fr);gap:0;background:var(--ground)}
  #sidenav{display:flex;flex-direction:column;gap:6px;padding:28px 16px;border-right:1px solid var(--line);background:var(--ground)}
  #sidenav img{width:170px;height:170px;object-fit:cover;margin:-50px 0 -46px -24px;align-self:flex-start}
  #sidenav .sdate{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted);margin:0 0 18px 4px}
  #sidenav button{display:flex;align-items:center;gap:12px;height:46px;padding:0 14px;border-radius:12px;border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:500;text-align:left}
  #sidenav button svg{width:20px;height:20px}
  #sidenav button.on{background:var(--soft);color:var(--green);font-weight:600}
  #sidenav .sp{flex:1}
  #sidenav .wx{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:#fff;border:1.5px solid var(--line);font-size:13px}
  #sidenav .wx .ic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff}
  nav[data-nav]{display:none}
  .screen{height:100dvh;overflow:hidden;border-right:1px solid var(--line)}
  #sidenav{grid-row:1;grid-column:1}
  .screen.on{grid-column:2;grid-row:1}
  .screen.companion{display:flex;grid-column:3;grid-row:1;border-right:0}
  .screen.on.wide{grid-column:2/4;max-width:720px;width:100%;justify-self:center;border-right:0}
  .hero{height:200px;border-radius:0 0 24px 24px}
  .head{padding-top:36px}
  .body{overflow:auto}
  .tl{height:auto;flex:1;min-height:528px}
  .sheet .pn{border-radius:22px;margin-bottom:24px;max-width:420px}
}

/* ---------- v1 additions ---------- */
.notice{margin:8px 0 0;padding:10px 14px;border-radius:12px;background:var(--soft);font-size:13px;line-height:1.45;color:var(--ink)}
.vid iframe{width:100%;height:320px;border:0;border-radius:14px;grid-column:1/3;background:#1F2E27}
.moved{font-size:11px;color:var(--green);font-weight:500}
.avimg{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto}
@media (min-width:900px){ .screen.on.wide .hero{border-radius:0 0 24px 24px} }

/* ---------- landing ---------- */
.land{flex:1;display:flex;flex-direction:column;min-height:100dvh}
.land-hero{position:relative;background:var(--sage);height:230px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:0 0 28px 28px}
.land-hero .c1,.land-hero .c2{position:absolute;border-radius:50%}
.land-hero .c1{width:520px;height:520px;background:#B4CCBC;top:-290px;left:calc(50% - 260px)}
.land-hero .c2{width:320px;height:320px;background:#C8DBCE;top:-170px;left:calc(50% - 160px)}
.land-hero img{position:relative;width:320px;height:320px;object-fit:cover;margin-top:10px}
.land-body{flex:1;padding:28px 24px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px;max-width:560px;width:100%;margin:0 auto}
.land-h1{font-size:34px;line-height:1.08}
.land-h1 em{font-style:italic;color:var(--green)}
.land-sub{font-size:15px;line-height:1.6;margin:0}
.land-feats{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.feat{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:14px;row-gap:2px;padding:14px 16px;border-radius:14px;background:#fff;border:1.5px solid var(--line)}
.feat .ic{grid-row:1/3;width:40px;height:40px;border-radius:50%;background:var(--soft);color:var(--green);display:inline-flex;align-items:center;justify-content:center}
.feat .ic svg{width:20px;height:20px}
.feat b{font-size:14px;font-weight:600}
.feat span:last-child{font-size:12.5px;color:var(--muted);line-height:1.45}
.land-cta{margin-top:auto;height:54px;font-size:16px}
@media (min-width:900px){
  .land{flex-direction:row;min-height:100dvh}
  .land-hero{flex:0 0 46%;height:auto;border-radius:0}
  .land-hero img{width:440px;height:440px}
  .land-body{justify-content:center;padding:48px 56px;max-width:640px}
  .land-h1{font-size:44px}
  .land-cta{margin-top:12px;max-width:360px}
}
.land-hero{flex:0 0 230px;min-height:230px}
@media (min-width:900px){
  #s-signin.screen.on.wide{grid-column:1/4;max-width:none;justify-self:stretch;overflow:auto;border-right:0}
  .land-hero{flex:0 0 46%;min-height:100dvh}
}
.land-cta{flex:0 0 54px}

/* ---------- mic ---------- */
.micbtn{display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;width:100%;min-height:62px;padding:10px 16px;border-radius:16px;border:1.5px solid var(--line);background:#fff;color:var(--ink);text-align:left;font-family:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.micbtn .micdot{grid-row:1/3;width:12px;height:12px;border-radius:50%;background:var(--line2)}
.micbtn .micico{grid-row:1/3;color:var(--green)}
.micbtn .mictxt{font-size:15px;font-weight:600}
.micbtn .michint{font-size:12px;color:var(--muted)}
.micbtn.on{background:var(--green);border-color:var(--green);color:#fff}
.micbtn.on .micico{color:#fff}
.micbtn.on .michint{color:#D6E3DA}
.micbtn.on .micdot{background:#FF6B6B;animation:pulse 1.1s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.6);opacity:.55}}

/* ---------- mobile calendar + misc fixes ---------- */
.week{flex:0 0 auto}
.week button{color:var(--ink)}
.week .n{color:inherit}
.tl{flex:0 0 528px;min-height:528px}
#cal-week-view .pad.small{flex:0 0 auto}
.screen .head{flex:0 0 auto}
button{color:inherit}
