@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#173c35;--muted:#63766f;--green:#28765b;--pale:#e6f1e9;--line:#dce5de;--canvas:#f6f8f4}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:18px;line-height:1.5}button,input,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ba792c;outline-offset:4px}h1,h2,h3,.brand{font-family:Manrope,Arial,sans-serif;letter-spacing:-.035em}h1{font-size:42px;line-height:1.15;margin:6px 0 12px;font-weight:800}h2{font-size:25px;line-height:1.25;margin:0 0 14px}h3{font-size:21px;margin:0 0 7px}p{margin:0 0 16px}.muted{color:var(--muted)}.shell{max-width:1600px;display:grid;grid-template-columns:256px 1fr;min-height:100vh;margin:auto}.sidebar{padding:38px 24px;position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:#fcfdfb;display:flex;flex-direction:column}.brand{font-weight:800;font-size:36px;color:var(--ink);text-decoration:none;display:flex;gap:12px;align-items:center}.brand-icon{background:var(--green);color:white;border-radius:13px;width:43px;height:43px;display:grid;place-items:center;font:36px Arial}.brand-sub{font-size:12px;margin:10px 0 48px;color:var(--muted)}.workspace-label,.eyebrow{font-size:12px;letter-spacing:.14em;font-weight:700}.workspace-label{color:var(--muted);margin-bottom:14px}.nav-item{width:100%;border:0;background:none;display:flex;gap:13px;align-items:center;text-align:left;padding:16px;border-radius:12px;color:var(--muted);margin:4px 0;font-size:16px;font-weight:600}.nav-item.active{background:var(--pale);color:var(--green)}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar-bottom{margin-top:auto;font-size:14px}.sidebar-bottom p{font-size:13px;color:var(--muted);margin-top:12px}.small-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#63a886;margin-right:7px}.main-wrap{padding:0 46px}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.08em;font-weight:700}.slash{padding:0 10px;color:#a0ada5}.text-button{background:none;border:0;color:var(--green);padding:12px 0;font-size:15px;font-weight:700;text-align:left}.topbar .text-button{font-size:12px}main{padding:34px 0;max-width:1120px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.page-heading p{margin-bottom:0}.primary,.secondary{border:0;border-radius:12px;padding:14px 20px;min-height:52px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:14px;line-height:1.25}.primary{background:var(--green);color:#fff;box-shadow:0 4px 0 #1c5944;transition:transform .15s,background .15s}.primary:hover{background:#205f49;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #1c5944}.secondary{background:white;border:1px solid #cbd9cf;color:var(--ink)}.secondary:hover{background:var(--pale)}.primary svg{width:18px}.hero{background:#e0eee3;border:1px solid #ccdccc;border-radius:22px;padding:29px 30px;display:flex;justify-content:space-between;gap:25px;position:relative;overflow:hidden}.hero h2{font-size:30px;max-width:420px;margin:12px 0}.hero p{max-width:450px;color:#446353;font-size:17px}.hero-art{min-width:170px;align-self:center;height:160px;display:grid;place-items:center;position:relative}.hero-art .halo{width:140px;height:140px;border:1px solid #bdd6c3;border-radius:50%;position:absolute;box-shadow:0 0 0 17px #d9e9dc,0 0 0 18px #ccdfd0}.hero-art .bell{z-index:1;display:grid;place-items:center;background:#fffdf6;border-radius:25px;width:98px;height:110px;transform:rotate(-9deg);box-shadow:9px 12px 0 #bfd6c3}.bell svg{width:58px;height:58px;color:var(--green);stroke-width:1.6}.badge{display:inline-flex;font-size:12px;font-weight:700;border-radius:99px;padding:5px 10px;background:#fff9;color:#3e6750;gap:7px;align-items:center}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;margin-top:30px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-heading h2{font-size:21px;margin:0}.section-heading span{font-size:13px;color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:23px;margin-bottom:16px}.card p{font-size:16px;color:var(--muted)}.mini-icon{display:grid;place-items:center;border-radius:14px;background:#edf4ed;width:49px;height:49px;color:var(--green)}.medicine-line{display:flex;align-items:center;gap:13px;margin-bottom:20px}.medicine-line h3{margin:0;font-size:19px}.medicine-line p{margin:4px 0 0;font-size:14px}.tag{font-size:12px;border-radius:6px;padding:4px 7px;background:#f2f5f0;color:var(--muted);display:inline-block}.empty{text-align:center;padding:34px 22px;background:#fff;border:1px dashed #cbd9cf;border-radius:18px}.empty .mini-icon{margin:0 auto 15px}.empty h3{font-size:20px}.empty p{color:var(--muted);font-size:16px;max-width:330px;margin:0 auto 20px}.note{display:flex;gap:10px;background:#f0f3ed;border-radius:12px;padding:15px;font-size:14px;color:#52675b}.note svg{width:18px;height:18px}.note p{font-size:14px;margin:0}.progress-line{height:6px;border-radius:5px;background:#edf2ea;margin:17px 0;overflow:hidden}.progress-line span{display:block;height:100%;background:#398461}.stat{font-size:32px;font-family:Manrope;font-weight:800}.stat small{font-size:16px;color:var(--muted);font-weight:400}.step{display:flex;gap:12px;margin:15px 0;font-size:15px}.step b{background:var(--pale);color:var(--green);height:26px;min-width:26px;border-radius:50%;text-align:center;font-size:13px;padding-top:3px}.footer{border-top:1px solid var(--line);padding:20px 0 30px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:10px}.actions button{font-size:16px;flex:1}.dose-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dose-time{font-size:25px;font-weight:700}.status{font-size:12px;font-weight:700;color:#805a23;background:#fff3d9;padding:5px 10px;border-radius:99px}.status.taken{background:#e5f3e8;color:#286743}.status.skipped{background:#f1f1ef;color:#637067}.week{display:flex;gap:8px;margin:24px 0;overflow:hidden}.date-chip{border:1px solid var(--line);background:#fff;min-width:58px;border-radius:14px;padding:10px;text-align:center;flex:1;color:var(--muted)}.date-chip strong{display:block;font-size:19px}.date-chip.today{color:white;background:var(--green);border-color:var(--green)}.date-chip span{font-size:12px}.full{width:100%}.hint{font-size:14px;color:var(--muted)}#mobile-nav{display:none}dialog{border:1px solid var(--line);border-radius:22px;max-width:600px;width:calc(100% - 28px);padding:28px;color:var(--ink);max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #173c3533}dialog::backdrop{background:#102d2a70;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.dialog-heading .eyebrow{color:var(--green);margin-bottom:5px}.icon-button{border:0;border-radius:50%;background:#eef2ed;width:42px;height:42px;flex-shrink:0;font-size:25px;color:var(--ink)}label{display:block;font-size:17px;font-weight:600;margin:19px 0 10px}input,textarea{display:block;width:100%;background:#fbfcfa;border:1px solid #bccfc2;border-radius:9px;padding:12px;margin-top:8px;color:var(--ink);min-width:0}input[type=checkbox]{width:22px;height:22px;accent-color:var(--green);margin:0;flex-shrink:0}.check{display:flex;gap:12px;font-weight:400;font-size:16px;align-items:flex-start}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}fieldset{border:0;padding:0;margin:20px 0}legend{font-size:17px;font-weight:600;margin-bottom:6px}.time-row{display:flex;gap:10px;align-items:center}.time-row input{flex:1}.days{display:flex;gap:5px;flex-wrap:wrap}.days label{margin:4px 0;position:relative;cursor:pointer}.days label input{position:absolute;opacity:0}.days label span{display:block;padding:10px 8px;border:1px solid var(--line);border-radius:8px;font-size:14px}.days label input:checked+span{background:var(--green);color:white}.days label input:focus-visible+span{outline:3px solid #ba792c}#form-error{color:#a63d2e;font-size:16px}#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);border-radius:12px;background:#153c30;color:white;padding:14px 22px;z-index:10;display:none;max-width:90%;box-shadow:0 7px 24px #1234}.history-row{display:flex;justify-content:space-between;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.history-row:last-child{border:0}.history-row p{margin:3px 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .card{margin:0}.setting-note{font-size:16px;color:var(--muted)}.mobile-brand{display:none}.storage-error{padding:15px;background:#fff1e4;color:#823e20;border-radius:12px}
@media(min-width:1500px){main{padding-top:50px}.hero{padding:38px}}
@media(max-width:1150px){.shell{grid-template-columns:210px 1fr}.main-wrap{padding:0 28px}.layout{grid-template-columns:minmax(0,1fr) 250px}.sidebar{padding:30px 16px}.hero-art{min-width:135px}.hero h2{font-size:27px}}
@media(max-width:900px){.sidebar{display:none}.shell{display:block}.main-wrap{padding:0 22px}.topbar{height:68px}.layout{grid-template-columns:minmax(0,1fr) 270px}h1{font-size:36px}#mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffff2;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 10px max(8px,env(safe-area-inset-bottom));z-index:5}#mobile-nav .nav-item{flex:1;display:flex;flex-direction:column;gap:2px;align-items:center;font-size:12px;padding:8px;margin:0}.footer{padding-bottom:108px}.mobile-brand{display:flex;margin-bottom:24px;font-size:27px}.mobile-brand .brand-icon{width:34px;height:34px;font-size:29px}}
@media(max-width:650px){body{font-size:18px}.topbar{font-size:10px}.topbar .text-button{font-size:11px}.layout{grid-template-columns:1fr;gap:8px}.page-heading{align-items:flex-start;flex-direction:column;gap:20px}.page-heading>button{width:100%}h1{font-size:36px}.hero{padding:23px;gap:4px}.hero h2{font-size:25px}.hero p{font-size:16px}.hero-art{min-width:72px;width:72px;align-self:flex-start;margin-top:45px}.hero-art .halo{width:62px;height:62px;box-shadow:0 0 0 8px #d9e9dc}.hero-art .bell{width:57px;height:68px;border-radius:17px;box-shadow:4px 6px 0 #bfd6c3}.bell svg{width:38px;height:38px}.hero .primary{font-size:16px;padding:12px}.main-wrap{padding:0 18px}.card{padding:21px}.footer{flex-direction:column}.settings-grid{grid-template-columns:1fr}.date-chip{min-width:0;padding:8px 3px}.week{gap:5px}.form-columns{grid-template-columns:1fr}.form-columns label{margin:5px 0}.actions button{min-height:50px}dialog{padding:22px}.hero-art{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:650px){.hero.has-plan{display:none}main{padding-top:22px}.mobile-brand{margin-bottom:18px}.page-heading{margin-bottom:22px}.week{margin:16px 0}.layout{margin-top:22px}}
.frequency-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.frequency-options button{min-height:54px;padding:12px;border:1px solid #bfd1c5;background:#fff;border-radius:10px;color:var(--ink);font-weight:600;font-size:17px}.frequency-options button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 0 #1c5944}.frequency-options button:last-child{grid-column:1/-1}#schedule-preview{display:block;font-size:17px;line-height:1.6;margin-top:16px}[hidden]{display:none!important}

/* Prominent calendar export on Today and each medicine. */
.export-shortcut{margin:0 0 24px}
.export-button{width:100%;min-height:88px;padding:18px 20px;margin:12px 0 20px;gap:14px;text-align:left;background:#24684e;border:2px solid #1b523e;box-shadow:0 5px 0 #173f31,0 8px 18px #24684e20;border-radius:16px;white-space:normal}
.export-button>svg{width:30px;height:30px;flex-shrink:0}
.export-button>span{flex:1;min-width:0}
.export-button strong{display:block;font-size:21px;line-height:1.25;font-weight:800}
.export-button small{display:block;font-size:15px;line-height:1.4;margin-top:5px;color:#fff;font-weight:400}
.export-button:hover:not(:disabled){background:#1a543e;transform:translateY(-1px)}
.export-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #173f31}
.export-button:focus-visible{outline:3px solid #145dd9;outline-offset:4px}
.export-button:disabled{opacity:.55;box-shadow:none;cursor:not-allowed}
@media(max-width:400px){.export-button{padding:16px 12px;gap:10px}.export-button strong{font-size:19px}.export-button>svg:last-child{display:none}}

#editor{max-width:calc(100vw - 24px);overflow-x:hidden}#medicine-form,.form-columns>*{min-width:0}#medicine-form input,#medicine-form textarea{max-width:100%;min-width:0;box-sizing:border-box}.draft-banner{border:2px solid #28765b;background:#edf7f0}.draft-banner strong{font-size:21px}

#calendar-export{max-width:min(580px,calc(100vw - 24px));overflow-wrap:anywhere}#calendar-export [hidden]{display:none!important}.export-steps{padding-left:24px;line-height:1.6}.export-steps li{margin-bottom:14px}#calendar-export summary{cursor:pointer;font-weight:700;padding:16px 0}#export-message{font-weight:600}
