/* Olliefly: soft paper background, colours from the logo (green → teal → purple, heart red).
   Big tap targets and a very readable font (Atkinson Hyperlegible) for everyone. */
:root{
  --bg:#f7f8f2; --surface:#ffffff; --ink:#2b2338; --muted:#6c6578; --line:#e7e5dc; --soft:#f0efe7;
  --green:#80c17d; --teal:#6c9aa6; --purple:#734b86; --purple-2:#5d3a70; --heart:#d23443;
  --brand:linear-gradient(90deg,#80c17d,#6c9aa6 50%,#734b86);
  --title:"M PLUS Rounded 1c", "Segoe UI", system-ui, sans-serif;
  --body:"Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r:18px; --shadow:0 1px 2px rgba(43,35,56,.06),0 6px 20px rgba(43,35,56,.07);
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font:17px/1.45 var(--body);-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--title);margin:0;line-height:1.15;text-wrap:balance}
p{margin:0}
a{color:var(--purple)}
.boot{min-height:100vh;display:grid;place-items:center}
.wrap{max-width:640px;margin:0 auto;padding:calc(14px + var(--safe-t)) 16px calc(110px + var(--safe-b))}
.muted{color:var(--muted)}
.small{font-size:14px}
.eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* ---------- buttons and fields ---------- */
.btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 20px;border-radius:14px;font-weight:700;background:var(--surface);border:1.5px solid var(--line);text-align:center}
.btn:focus-visible,.tile:focus-visible,.card:focus-visible,.tabbar button:focus-visible,.chip:focus-visible,.seg button:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.btn.primary{background:var(--purple);border-color:var(--purple);color:#fff}
.btn.primary:active{background:var(--purple-2)}
.btn.block{display:flex;width:100%}
.btn.ghost{background:transparent;border-color:transparent;color:var(--purple)}
.btn.danger{color:var(--heart);border-color:#f2c9cd}
.btn.sm{min-height:40px;padding:0 14px;font-size:15px;border-radius:12px}
.btn[disabled]{opacity:.5;pointer-events:none}
.field{display:grid;gap:6px;margin-bottom:14px}
.field label{font-weight:700;font-size:15px}
.input{width:100%;min-height:52px;border:1.5px solid var(--line);border-radius:14px;padding:0 14px;background:var(--surface);font-size:18px}
.input:focus{outline:none;border-color:var(--purple);box-shadow:0 0 0 3px rgba(115,75,134,.15)}
.pw{position:relative}
.pw .input{padding-right:76px}
.pw button{position:absolute;right:6px;top:6px;bottom:6px;border:0;background:var(--soft);border-radius:10px;padding:0 12px;font-weight:700;font-size:14px;cursor:pointer}
.err{color:#b4232f;font-weight:700;font-size:15px;min-height:1.3em;margin:-4px 0 10px}
.ok-note{color:#2f7d4f;font-weight:700;font-size:14px}

/* ---------- login ---------- */
.auth{min-height:100vh;display:grid;align-content:center;padding:calc(24px + var(--safe-t)) 18px calc(24px + var(--safe-b))}
.auth-in{width:100%;max-width:420px;margin:0 auto}
.auth .logo{display:block;width:min(300px,78vw);margin:0 auto 6px}
.auth .tagline{text-align:center;color:var(--muted);margin:0 0 22px}
.auth-card{background:var(--surface);border-radius:24px;padding:20px 18px;box-shadow:var(--shadow)}
.tabs{display:grid;grid-template-columns:1fr 1fr;background:var(--soft);border-radius:14px;padding:4px;margin-bottom:18px}
.tabs button{border:0;background:none;min-height:44px;border-radius:11px;font-weight:700;color:var(--muted);cursor:pointer}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--purple);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.auth .fine{text-align:center;margin-top:14px;font-size:14px;color:var(--muted)}

/* ---------- top of each page ---------- */
.top{display:flex;align-items:center;gap:10px;margin-bottom:14px;min-height:48px}
.top .wordmark{height:46px;width:auto;margin-left:-4px}
.top .sp{flex:1}
.who{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:5px 12px 5px 5px;max-width:58vw;font-weight:700}
.who .av{flex:none}
.who .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who svg{flex:none;width:16px;height:16px;stroke:currentColor;stroke-width:2.5;fill:none}
.av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#fff;font-family:var(--title);font-weight:800;font-size:16px}
.av.lg{width:46px;height:46px;font-size:20px}
.pagehead{margin:4px 0 16px}
.pagehead h1{font-size:30px;font-weight:800}
.pagehead p{color:var(--muted);margin-top:4px}

/* ---------- dashboard tiles ---------- */
.hello .date{font-size:14px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.hello h1{font-size:clamp(28px,8vw,36px);font-weight:800;margin:2px 0 4px}
.hello h1 .grad{background:linear-gradient(90deg,#6c9aa6,#734b86);-webkit-background-clip:text;background-clip:text;color:transparent}
.sharedby{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;background:#efe7f4;color:var(--purple);border-radius:999px;padding:4px 10px;margin-top:4px}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
@media (min-width:560px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tile{all:unset;box-sizing:border-box;cursor:pointer;position:relative;display:grid;align-content:space-between;gap:10px;aspect-ratio:1/1;min-height:150px;padding:14px;border-radius:22px;color:#fff;background:var(--c);overflow:hidden;box-shadow:0 2px 0 rgba(0,0,0,.08)}
.tile::after{content:"";position:absolute;right:-30px;bottom:-30px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.12)}
.tile:active{transform:scale(.97)}
.tile .ic{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.18);display:grid;place-items:center;color:var(--c)}
.tile .ic svg{width:36px;height:36px}
.tile h2{font-size:19px;font-weight:800;position:relative;z-index:1}
.tile .lvl{position:absolute;top:12px;right:12px;font-size:12px;font-weight:700;background:rgba(0,0,0,.22);border-radius:999px;padding:3px 9px}
.tile.addtile{background:transparent;color:var(--purple);border:2px dashed #cdbfd6;box-shadow:none;align-content:center;justify-items:center;text-align:center}
.tile.addtile::after{display:none}
.tile.addtile .ic{background:#efe7f4;color:var(--purple)}
.tile.addtile h2{font-size:16px}
.arrange .tile{animation:wob .32s ease-in-out infinite alternate}
.arrange .tile.addtile{animation:none}
@keyframes wob{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}
@media (prefers-reduced-motion:reduce){.arrange .tile{animation:none}}
.tile .tools{position:absolute;inset:10px 10px auto 10px;display:flex;justify-content:space-between;z-index:2}
.arrange .tile .ic{visibility:hidden}
.tile .tools button{width:38px;height:38px;border-radius:50%;border:0;background:#fff;color:var(--ink);font-weight:800;font-size:18px;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.tile .tools .rm{color:var(--heart)}
.rowbtns{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:14px}
.empty{text-align:center;background:var(--surface);border-radius:24px;padding:26px 20px;box-shadow:var(--shadow);margin-top:16px}
.empty img{width:120px;margin-bottom:8px}
.empty h2{font-size:22px;margin-bottom:6px}
.empty p{color:var(--muted);margin-bottom:16px}

/* ---------- bottom bar ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 6px calc(6px + var(--safe-b))}
.tabbar button{all:unset;cursor:pointer;display:grid;justify-items:center;gap:2px;padding:6px 0;font-size:12.5px;font-weight:700;color:var(--muted);border-radius:12px}
.tabbar button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tabbar button[aria-current="page"]{color:var(--purple)}
.tabbar button[aria-current="page"] svg{stroke-width:2.4}
.tabbar .plusdot{width:52px;height:52px;margin-top:-24px;border-radius:50%;display:grid;place-items:center;background:var(--brand);box-shadow:0 4px 14px rgba(115,75,134,.35);border:4px solid var(--bg)}
.tabbar .plusdot svg{stroke:#fff;stroke-width:3;width:24px;height:24px}

/* ---------- library ---------- */
.libnote{background:#efe7f4;color:var(--purple-2);border-radius:14px;padding:12px 14px;font-size:15px;margin-bottom:14px}
.cards{display:grid;gap:10px}
.card{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:var(--surface);border-radius:var(--r);padding:12px;box-shadow:var(--shadow);border:2px solid transparent}
.card .ic{width:56px;height:56px;border-radius:16px;background:var(--c);display:grid;place-items:center;color:var(--c)}
.card .ic svg{width:36px;height:36px}
.card h3{font-size:18px;font-weight:800;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.card p{color:var(--muted);font-size:14.5px;line-height:1.35;margin-top:2px}
.card.on{border-color:color-mix(in srgb,var(--c) 55%,white)}
.new{font-family:var(--body);font-size:11px;font-weight:700;letter-spacing:.06em;background:var(--heart);color:#fff;border-radius:999px;padding:2px 7px}
.tick{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;flex:none;background:#fff}
.tick svg{width:18px;height:18px;stroke:#fff;stroke-width:3.4;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.on .tick{background:var(--c);border-color:var(--c)}
.on .tick svg{opacity:1}
.stickybar{position:fixed;left:0;right:0;bottom:calc(74px + var(--safe-b));z-index:15;padding:10px 16px;pointer-events:none}
.stickybar .btn{pointer-events:auto;max-width:608px;margin:0 auto;box-shadow:0 6px 18px rgba(115,75,134,.3)}

/* ---------- sheets (tile details, sharing) ---------- */
.sheet{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet-back{position:absolute;inset:0;background:rgba(30,22,40,.42)}
.sheet-card{position:relative;width:100%;max-width:640px;max-height:92vh;overflow:auto;background:var(--bg);border-radius:26px 26px 0 0;padding:0 0 calc(18px + var(--safe-b));animation:up .22s ease-out}
@keyframes up{from{transform:translateY(30px);opacity:0}}
.sheet-card .grab{width:44px;height:5px;border-radius:3px;background:#d8d4cb;margin:10px auto 0}
.sheet-body{padding:12px 18px 0}
.sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.sheet-head h2{font-size:24px;font-weight:800;flex:1}
.x{border:0;background:var(--soft);width:42px;height:42px;border-radius:50%;font-size:20px;cursor:pointer;flex:none}
.hero-tile{border-radius:22px;background:var(--c);color:#fff;padding:16px;display:flex;gap:14px;align-items:center;margin-bottom:14px}
.hero-tile .ic{width:62px;height:62px;border-radius:18px;background:rgba(255,255,255,.2);display:grid;place-items:center;color:var(--c);flex:none}
.hero-tile .ic svg{width:42px;height:42px}
.hero-tile h2{font-size:24px;font-weight:800}
.hero-tile p{opacity:.92;font-size:15px}
.sec{margin:16px 0 8px;font-size:18px;font-weight:800}
.bul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.bul li{display:flex;gap:10px;align-items:flex-start}
.bul li::before{content:"";flex:none;width:10px;height:10px;margin-top:7px;border-radius:50%;background:var(--c,var(--purple))}
.levels{display:grid;gap:8px}
.levels div{display:flex;gap:10px;background:var(--surface);border-radius:14px;padding:10px 12px}
.levels b{min-width:58px}

/* phone preview of a tile */
.phone{width:min(250px,72vw);margin:6px auto 4px;border-radius:30px;background:#231c2d;padding:9px;box-shadow:0 10px 30px rgba(43,35,56,.25)}
.phone .scr{border-radius:22px;background:#fff;overflow:hidden;height:330px;font-size:12px;line-height:1.3;position:relative}
.phone .bar{background:var(--c);color:#fff;padding:12px 12px 10px;font-family:var(--title);font-weight:800;font-size:15px}
.phone .pad{padding:10px}
.pv-seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-bottom:8px}
.pv-seg span{text-align:center;border-radius:8px;padding:5px 0;background:#f1eef5;font-weight:700;font-size:11px}
.pv-seg span.on{background:var(--c);color:#fff}
.pv-row{display:flex;align-items:center;gap:8px;border:1px solid #eee;border-radius:10px;padding:8px;margin-bottom:6px}
.pv-row .bx{width:20px;height:20px;border-radius:6px;border:2px solid #ccc;flex:none;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:800}
.pv-row .bx.on{background:var(--c);border-color:var(--c)}
.pv-row b{display:block;font-size:12.5px}
.pv-row small{color:#888}
.pv-row .tm{margin-left:auto;font-size:11px;color:#2f7d4f;font-weight:700}
.pv-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;height:calc(100% - 42px)}
.pv-grid div{border-radius:14px;background:#f2f6fa;display:grid;place-items:center;align-content:center;gap:4px;font-weight:700;font-size:13px;position:relative}
.pv-grid div span{font-size:30px}
.pv-grid .gaze{outline:3px solid var(--c);background:#e3eef8}
.pv-grid .gaze::after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:rgba(242,183,5,.85);right:22%;top:28%}
.pv-timer{text-align:center;padding:12px 0 6px}
.pv-timer b{font-family:var(--title);font-size:40px;display:block;color:var(--c)}
.pv-step{display:flex;gap:6px;margin:6px 0;font-size:12px}
.pv-step i{font-style:normal;flex:none;width:18px;height:18px;border-radius:50%;background:#f3ead9;display:grid;place-items:center;font-weight:800;font-size:10px}
.pv-step.urg{color:#b4232f;font-weight:700}
.pv-step.urg i{background:#fbe0e2}
.pv-card{border:2px solid var(--c);border-radius:14px;padding:10px;margin:10px}
.pv-card h4{margin:0 0 2px;font-family:var(--title);font-size:20px}
.pv-card dl{margin:8px 0 0;display:grid;grid-template-columns:auto 1fr;gap:4px 8px}
.pv-card dt{color:#888}
.pv-card dd{margin:0;font-weight:700}
.pv-pill{display:inline-block;border-radius:999px;padding:2px 8px;font-weight:700;font-size:11px}
.pv-pill.g{background:#dcf3e5;color:#1e7a46}.pv-pill.r{background:#fbe0e2;color:#b4232f}
.pv-chart{height:70px;margin:4px 0 8px;border-radius:10px;background:linear-gradient(#e9f7ef 0 0) 0 20px/100% 30px no-repeat,#fafafa}

/* ---------- sharing ---------- */
.legend{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 10px;font-size:13.5px;font-weight:700;background:var(--soft)}
.chip.see{background:#e8f1f6;color:#2c6a8a}.chip.add{background:#e5f4e7;color:#2b7a3d}.chip.edit{background:#f0e7f5;color:var(--purple-2)}.chip.owner{background:#fff1d6;color:#8a5a00}
.person{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:12px;display:grid;gap:10px;margin-bottom:10px}
.person .hd{display:flex;align-items:center;gap:10px}
.person .hd b{flex:1;font-size:18px}
.person .chips{display:flex;flex-wrap:wrap;gap:6px}
.person .chips .chip{background:var(--soft)}
.seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:var(--soft);border-radius:12px;padding:4px}
.seg button{border:0;background:none;border-radius:9px;min-height:40px;font-weight:700;font-size:14px;cursor:pointer;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.seg button[aria-pressed="true"][data-l="see"]{color:#2c6a8a}.seg button[aria-pressed="true"][data-l="add"]{color:#2b7a3d}.seg button[aria-pressed="true"][data-l="edit"]{color:var(--purple-2)}
.perm{background:var(--surface);border-radius:16px;padding:10px 12px;margin-bottom:8px;display:grid;gap:8px}
.perm .t{display:flex;align-items:center;gap:10px;font-weight:800}
.perm .t .ic{width:36px;height:36px;border-radius:11px;background:var(--c);display:grid;place-items:center;color:var(--c)}
.perm .t .ic svg{width:24px;height:24px}
.perm .help{font-size:13.5px;color:var(--muted);min-height:1.2em}
.box{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;margin-bottom:12px}
.list{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;margin-bottom:12px}
.list .li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);min-height:58px}
.list .li:last-child{border-bottom:0}
.list .li b{flex:1}
.list button.li{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);min-height:58px;width:100%;cursor:pointer}
.list .chev{color:var(--muted);font-size:22px}
.swatches{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 14px}
.swatches button{width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px var(--line);cursor:pointer}
.swatches button[aria-pressed="true"]{box-shadow:0 0 0 3px var(--ink)}

/* ---------- tutorial ---------- */
.tut{position:fixed;inset:0;z-index:50;background:var(--bg);display:grid;grid-template-rows:auto 1fr auto;padding:calc(12px + var(--safe-t)) 18px calc(18px + var(--safe-b))}
.tut .skip{justify-self:end}
.tut .slide{display:grid;align-content:center;justify-items:center;text-align:center;gap:16px;max-width:440px;margin:0 auto}
.tut .slide h1{font-size:clamp(26px,7.5vw,32px);font-weight:800}
.tut .slide p{color:var(--muted);font-size:18px}
.tut .art{width:100%;max-width:320px;min-height:220px;display:grid;place-items:center}
.tut .dots{display:flex;gap:8px;justify-content:center;margin:12px 0}
.tut .dots i{width:9px;height:9px;border-radius:50%;background:#d8d4cb}
.tut .dots i.on{background:var(--purple);width:24px;border-radius:5px}
.tut .foot{max-width:440px;width:100%;margin:0 auto}
.art-tiles{display:grid;grid-template-columns:repeat(3,72px);gap:10px}
.art-tiles span{width:72px;height:72px;border-radius:20px;background:var(--c);display:grid;place-items:center;color:var(--c);animation:pop .5s backwards}
.art-tiles span svg{width:40px;height:40px}
@keyframes pop{from{transform:scale(.6);opacity:0}}
.art-bar{position:relative;width:280px;height:200px}
.art-bar .phn{position:absolute;inset:0 40px;border-radius:26px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.art-bar .mini{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px}
.art-bar .mini i{height:46px;border-radius:12px;background:var(--c)}
.art-bar .bb{position:absolute;left:0;right:0;bottom:0;height:44px;border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center}
.art-bar .bb i{width:22px;height:6px;border-radius:3px;background:#ddd}
.art-bar .bb .p{width:44px;height:44px;border-radius:50%;background:var(--brand);margin-top:-22px;display:grid;place-items:center;color:#fff;font-size:26px;font-weight:800;box-shadow:0 0 0 6px rgba(115,75,134,.18);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 12px rgba(115,75,134,.08)}}
.art-share{display:grid;gap:8px;width:280px}
.art-share div{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:10px 12px;box-shadow:var(--shadow);text-align:left}
.art-share b{flex:1}

/* ---------- tile screen ---------- */
.tilebar{position:sticky;top:0;z-index:10;background:var(--c);color:#fff;padding:calc(10px + var(--safe-t)) 12px 12px;display:flex;align-items:center;gap:10px}
.tilebar h1{font-size:22px;font-weight:800;flex:1;min-width:0}
.tilebar .btn{min-height:42px;background:rgba(255,255,255,.18);border-color:transparent;color:#fff;padding:0 12px;font-size:15px}
.soon{background:var(--surface);border-radius:22px;padding:18px;box-shadow:var(--shadow);text-align:center;margin-top:16px}
.soon h2{font-size:21px;margin-bottom:6px}
.soon p{color:var(--muted)}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;top:calc(14px + var(--safe-t));transform:translateX(-50%);z-index:60;background:var(--ink);color:#fff;font-weight:700;padding:12px 18px;border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.25);max-width:88vw;text-align:center}

/* library card: the left part opens details, the tick adds or removes */
.card{grid-template-columns:1fr auto;cursor:default}
.card .cm{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;border-radius:12px}
.card .cm:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.card button.tick{cursor:pointer;width:44px;height:44px}
.sheet-head .sp{flex:1}

/* ================= Medicines tile ================= */
.tilefor{margin-bottom:10px}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.slot{all:unset;box-sizing:border-box;cursor:pointer;display:grid;justify-items:center;gap:2px;padding:10px 4px;border-radius:16px;background:var(--surface);border:2px solid var(--line);text-align:center}
.slot svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--c)}
.slot b{font-size:14.5px}
.slot small{font-size:12.5px;color:var(--muted);font-weight:700}
.slot[aria-pressed="true"]{background:var(--c);border-color:var(--c);color:#fff}
.slot[aria-pressed="true"] svg,.slot[aria-pressed="true"] small{color:#fff}
.slot.alldone:not([aria-pressed="true"]) small{color:#2f7d4f}
.slot:focus-visible,.mrow:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.medhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:6px 0 8px}
.medhead h2{font-size:22px;font-weight:800}
.medhead span{color:var(--muted);font-weight:700;font-size:14px}
.medlist{display:grid;gap:8px}
.mrow{all:unset;box-sizing:border-box;cursor:pointer;display:flex;gap:12px;align-items:flex-start;background:var(--surface);border-radius:16px;padding:14px;box-shadow:var(--shadow);border:2px solid transparent;min-height:64px}
.mrow .mbox{flex:none;width:32px;height:32px;border-radius:10px;border:2.5px solid #cfc9d6;display:grid;place-items:center;margin-top:1px}
.mrow .mbox svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.mrow.done{background:#f3eff6;box-shadow:none}
.mrow.done .mbox{background:var(--c);border-color:var(--c)}
.mrow.done .mbox svg{opacity:1}
.mrow.done .mn b{text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:rgba(0,0,0,.25)}
.mrow.off{opacity:.55;cursor:default}
.mrow:disabled:not(.off){cursor:default}
.mm{display:grid;gap:3px;min-width:0}
.mn{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.mn b{font-size:18px}
.mn .dose{font-weight:700;color:var(--c);font-size:16px}
.daytag{font-size:12px;font-weight:700;background:#fff1d6;color:#8a5a00;border-radius:999px;padding:2px 8px}
.prep{color:var(--muted);font-size:15px}
.given{color:#2f7d4f;font-weight:700;font-size:14px}
.allset{background:#e9f6ee;color:#1e6b3f;font-weight:700;border-radius:14px;padding:12px 14px}
.allset.muted{background:var(--soft);color:var(--muted);font-weight:400}
.section-label{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:8px 0 0}
.medactions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.prnbox{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}
.prnsum{background:#fff8e6;border:1px solid #f3dfa8;border-radius:14px;padding:10px 12px;margin-bottom:12px;font-size:15px;display:grid;gap:4px}
.prn{background:var(--surface);border-radius:16px;box-shadow:var(--shadow);padding:14px;margin-bottom:10px;display:grid;gap:10px;border-left:6px solid #2f9566}
.prn.wait{border-left-color:#d98b16}.prn.full{border-left-color:#d23443}
.prn .top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.prn h3{font-size:19px;font-weight:800}
.prn h3 .dose{font-family:var(--body);font-size:15px;color:var(--c)}
.prn .status{font-weight:700;font-size:14.5px;border-radius:999px;padding:3px 10px;background:#e5f4e7;color:#1e6b3f}
.prn.wait .status{background:#fff1d6;color:#8a5a00}.prn.full .status{background:#fbe0e2;color:#b4232f}
.prn .facts{display:grid;gap:3px;font-size:15px;color:#4b4458}
.prn .warn{color:#b4232f;font-weight:700}
.prn .btnrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.prn .at{min-height:40px;border:1.5px solid var(--line);border-radius:10px;padding:0 8px;background:#fff}
.prn .confirm{display:grid;gap:8px;background:#fff1d6;border-radius:12px;padding:10px 12px;font-weight:700}
.prn .cbtns{display:flex;gap:8px}
.prn .hist{display:flex;flex-wrap:wrap;gap:6px}
.prn .hist span{display:inline-flex;align-items:center;gap:4px;background:var(--soft);border-radius:999px;padding:3px 4px 3px 10px;font-size:14px;font-weight:700}
.prn .hist button{border:0;background:#fff;width:26px;height:26px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1}
.slotseg{margin-bottom:12px}
.medit{display:grid;gap:10px;margin-bottom:10px}
.medcard{background:var(--surface);border-radius:16px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;box-shadow:var(--shadow)}
.medcard label{display:grid;gap:4px;font-size:14px;font-weight:700}
.medcard .full{grid-column:1 / -1}
.medcard .input{min-height:46px;font-size:16px}
.medcard .rm{justify-self:start}
.daypick{display:grid;gap:6px}
.daypick .lbl{font-size:14px;font-weight:700}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.days button{border:1.5px solid var(--line);background:#fff;border-radius:10px;min-height:42px;font-weight:700;font-size:13.5px;cursor:pointer;padding:0}
.days button[aria-pressed="true"]{background:var(--c,var(--purple));border-color:var(--c,var(--purple));color:#fff}
.nextdose{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:0 10px;border-radius:14px;padding:10px 14px;background:var(--soft)}
.nextdose span{grid-row:1 / span 2;align-self:center;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.nextdose b{font-family:var(--title);font-size:26px;font-weight:800;line-height:1.1}
.nextdose small{color:#4b4458;font-size:14px}
.nextdose.ok{background:#e5f4e7}.nextdose.ok b{color:#1e6b3f}
.nextdose.wait{background:#fff1d6}.nextdose.wait b{color:#8a5a00}
.nextdose.full{background:#fbe0e2}.nextdose.full b{color:#b4232f}
.nextdose b em{font-style:normal;font-size:17px;font-family:var(--body)}
.sharetimes{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:12px;background:#eef3f8;border-radius:14px;padding:10px 12px}
.sharetimes{display:grid;gap:8px}
.sharetimes p{margin:0;color:#3d4a5a}
.sharebtns{display:flex;flex-wrap:wrap;gap:8px}
.sharedall{margin-top:10px}
.vis{font-weight:700}
.vis.me{color:#8a5a00}.vis.tick{color:#2c6a8a}.vis.time{color:#2f7d4f}
