:root{font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0}*{box-sizing:border-box;margin:0;padding:0}body{color:#2d3748;background:#f0f7ff;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app{flex-direction:column;min-height:100vh;display:flex}.app-header{background:#fff;justify-content:space-between;align-items:center;padding:.9rem 1.5rem;display:flex;box-shadow:0 1px #e8f0fe}.brand{align-items:center;gap:.5rem;display:flex}.brand-icon{font-size:1.4rem;line-height:1}.brand-name{color:#4a90d9;letter-spacing:-.5px;font-size:1.1rem;font-weight:800;line-height:1.2;display:block}.brand-sub{color:#a0bcd8;letter-spacing:0;font-size:.68rem;font-weight:400;line-height:1;display:block}.app-nav{gap:.3rem;display:flex}.app-nav a{color:#8fa8c8;border-radius:20px;padding:.45rem .9rem;font-size:.88rem;font-weight:500;text-decoration:none;transition:all .2s}.app-nav a:hover{color:#4a90d9;background:#e8f4fd}.app-nav a.active{color:#2980b9;background:#d6eaf8;font-weight:600}.app-main{flex:1;width:100%;max-width:640px;margin:0 auto;padding:1.5rem 1rem}.card{background:#fff;border:1px solid #edf4fd;border-radius:16px;margin-bottom:.85rem;padding:1.2rem 1.3rem;box-shadow:0 2px 12px #4a90d914}.btn{cursor:pointer;letter-spacing:.1px;border:none;border-radius:20px;justify-content:center;align-items:center;gap:.4rem;padding:.6rem 1.3rem;font-size:.88rem;font-weight:600;transition:all .2s;display:inline-flex}.btn-primary{color:#fff;background:linear-gradient(135deg,#74b9e8,#4a90d9);box-shadow:0 3px 10px #4a90d94d}.btn-primary:hover{background:linear-gradient(135deg,#5aabee,#3579c8);transform:translateY(-1px);box-shadow:0 4px 14px #4a90d966}.btn-success{color:#fff;background:linear-gradient(135deg,#a8e6cf,#5cb890);box-shadow:0 3px 10px #5cb8904d}.btn-success:hover{background:linear-gradient(135deg,#91ddc0,#48a87e);transform:translateY(-1px)}.btn-danger{color:#e57373;background:#fff0f0;border:1.5px solid #f8d0d0}.btn-danger:hover{background:#ffe0e0}.btn-outline{color:#4a90d9;background:#fff;border:1.5px solid #c5dff5}.btn-outline:hover{background:#edf6fd}.form-group{margin-bottom:1rem}.form-group label{color:#7a99b8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.35rem;font-size:.82rem;font-weight:600;display:block}.form-group input,.form-group select,.form-group textarea{color:#2d3748;background:#fafcff;border:1.5px solid #e2eef8;border-radius:10px;outline:none;width:100%;padding:.65rem .9rem;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{background:#fff;border-color:#74b9e8;box-shadow:0 0 0 3px #74b9e826}.badge{border-radius:20px;align-items:center;gap:.3rem;padding:.25rem .7rem;font-size:.75rem;font-weight:600;display:inline-flex}.badge-taken{color:#3a9e6e;background:#e8f8f0}.badge-missed{color:#c0392b;background:#fdeaea}.badge-pending{color:#d4a017;background:#fef9e7}.page-title{color:#2c4a6e;margin-bottom:1.1rem;font-size:1.25rem;font-weight:700}.empty-state{text-align:center;color:#a0bcd8;padding:3rem 1rem}.empty-state .empty-icon{margin-bottom:.6rem;font-size:2.8rem;display:block}.empty-state p{color:#b0c8e0;font-size:.9rem}.divider{border:none;border-top:1px solid #edf4fd;margin:1rem 0}.summary-card{background:linear-gradient(135deg,#d6eaf8 0%,#e8f8f0 100%);border:1px solid #c5e8f5;margin-bottom:1.2rem}.summary-date{color:#7aa8c8;font-size:.8rem;font-weight:500}.summary-row{justify-content:space-between;align-items:flex-end;margin-top:.5rem;display:flex}.summary-count{color:#2c6fa8;font-size:1.7rem;font-weight:800;line-height:1.1}.summary-count span{color:#7aa8c8;font-size:1rem;font-weight:500}.summary-sub{color:#5a9abf;margin-top:.3rem;font-size:.82rem}.summary-emoji{font-size:3rem;line-height:1}.progress-track{background:#ffffff80;border-radius:20px;height:8px;margin-top:1rem;overflow:hidden}.progress-fill{height:100%;width:var(--pct,0%);background:linear-gradient(90deg,#74b9e8,#5cb890);border-radius:20px;transition:width .5s}.section-label{color:#7a99b8;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.6rem;font-size:.88rem;font-weight:700}.section-label+.section-label,.card+.section-label,.section-label-mt{margin-top:1rem}.dose-card{flex-direction:column;gap:.3rem;display:flex}.dose-time{color:#4a90d9;letter-spacing:.3px;text-transform:uppercase;font-size:.78rem;font-weight:700}.dose-name{color:#2c4a6e;margin:0;font-size:1.05rem;font-weight:700}.dose-meta{color:#a0bcd8;font-size:.82rem}.btn-take-full{border-radius:12px;width:100%;margin-top:.6rem;padding:.65rem;font-size:.9rem}.dose-card-taken{justify-content:space-between;align-items:center;gap:.6rem;display:flex}.dose-time-taken{color:#5cb890;font-size:.75rem;font-weight:600}.dose-name-taken{color:#4a7a5a;margin:0;font-size:.95rem;font-weight:600;text-decoration:line-through}.btn-undo{color:#a0bcd8;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:.3rem .5rem;font-size:.78rem;font-weight:500;text-decoration:underline}.btn-undo:hover{color:#4a90d9}.dose-card-missed{background:#fff8f8;border-color:#f8d0d0;justify-content:space-between;align-items:center;gap:.6rem;display:flex}.dose-time-missed{color:#e57373;letter-spacing:.3px;text-transform:uppercase;font-size:.78rem;font-weight:700}.dose-name-missed{color:#c0392b;margin:0;font-size:1.05rem;font-weight:700}.log-card{justify-content:space-between;align-items:center;display:flex}.log-icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.2rem;display:flex}.log-icon-pending{background:linear-gradient(135deg,#fef9e7,#fdecd1)}.log-icon-taken{background:linear-gradient(135deg,#e8f8f0,#c8eed8)}.log-info{align-items:center;gap:.8rem;display:flex}.log-name{color:#2c4a6e;font-size:.95rem;font-weight:700}.log-name-taken{color:#4a7a5a;font-size:.9rem;font-weight:600;text-decoration:line-through}.log-time{color:#a0bcd8;margin-top:.15rem;font-size:.8rem}.log-card-taken{opacity:.7;align-items:center;gap:.8rem;display:flex}.btn-take{padding:.5rem 1rem;font-size:.82rem}.page-header{justify-content:space-between;align-items:center;margin-bottom:1.2rem;display:flex}.page-header .page-title{margin-bottom:0}.btn-link{align-items:center;text-decoration:none;display:inline-flex}.btn-link-mt{align-items:center;margin-top:1.2rem;text-decoration:none;display:inline-flex}.med-card{justify-content:space-between;align-items:flex-start;display:flex}.med-name{color:#2c4a6e;font-size:1.05rem;font-weight:700}.med-detail{color:#8fa8c8;margin-top:.3rem;font-size:.83rem}.med-notes{color:#b0c8e0;margin-top:.3rem;font-size:.8rem;font-style:italic}.btn-delete{flex-shrink:0;padding:.4rem .9rem;font-size:.8rem;text-decoration:none}.med-actions{flex-direction:column;flex-shrink:0;gap:.5rem;display:flex}.ocr-card{text-align:center}.btn-photo{width:100%}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ocr-hint{color:#a0bcd8;margin-top:.6rem;font-size:.78rem}.ocr-raw{text-align:left;color:#7a99b8;margin-top:.6rem;font-size:.8rem}.ocr-raw summary{cursor:pointer;font-weight:600}.ocr-raw p{white-space:pre-wrap;color:#a0bcd8;margin-top:.4rem}.time-inputs{flex-wrap:wrap;gap:.5rem;display:flex}.time-input{flex:1;min-width:120px;width:auto!important}.date-row{gap:1rem;display:flex}.date-row .form-group{flex:1}.form-actions{gap:.8rem;margin-top:.5rem;display:flex}.form-actions .btn{flex:1}.header-user{align-items:center;gap:.6rem;display:flex}.user-name{color:#7a99b8;font-size:.85rem;font-weight:500}.btn-logout{color:#a0bcd8;cursor:pointer;background:0 0;border:1.5px solid #e2eef8;border-radius:20px;padding:.3rem .7rem;font-size:.78rem;font-weight:500;transition:all .2s}.btn-logout:hover{color:#e57373;background:#fff0f0;border-color:#f8d0d0}.btn-bell{color:#a0bcd8;cursor:pointer;background:0 0;border:1.5px solid #e2eef8;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:.95rem;transition:all .2s;display:inline-flex}.btn-bell:hover:not(:disabled){background:#edf6fd;border-color:#c5dff5}.btn-bell:disabled{cursor:default;opacity:.6}@media (width<=480px){.brand-sub,.user-name{display:none}}.auth-wrap{flex-direction:column;align-items:center;padding-top:2rem;display:flex}.auth-brand{text-align:center;margin-bottom:1.5rem}.auth-brand-icon{margin-bottom:.4rem;font-size:2.5rem;display:block}.auth-brand-name{color:#4a90d9;letter-spacing:-.5px;margin:0;font-size:1.6rem;font-weight:800}.auth-brand-sub{color:#a0bcd8;margin-top:.25rem;font-size:.82rem}.auth-card{width:100%;max-width:400px}.auth-title{color:#2c4a6e;margin-bottom:1.2rem;font-size:1.1rem;font-weight:700}.auth-error{color:#e57373;background:#fff0f0;border-radius:8px;margin-bottom:.8rem;padding:.5rem .8rem;font-size:.85rem}.auth-submit{width:100%;margin-top:.25rem}.auth-switch{text-align:center;color:#a0bcd8;margin-top:1rem;font-size:.85rem}.auth-switch a{color:#4a90d9;font-weight:600;text-decoration:none}.week-chart{align-items:flex-end;gap:.4rem;height:60px;display:flex}.week-bar-wrap{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:4px;height:100%;display:flex}.week-bar{width:100%;min-height:4px;height:var(--bar-h,4%);border-radius:4px 4px 0 0}.week-bar-high{background:#5cb890}.week-bar-mid{background:#f5c842}.week-bar-low{background:#e57373}.week-bar-none{background:#e2eef8}.week-day{color:#b0c8e0;font-size:.65rem}.log-header{justify-content:space-between;align-items:center;display:flex}.adherence-rate{font-size:1.4rem;font-weight:700}.rate-high{color:#5cb890}.rate-mid{color:#f5c842}.rate-low{color:#e57373}.log-row{justify-content:space-between;align-items:center;display:flex}.log-med-name{color:#2c4a6e;font-weight:600}.log-meta{color:#a0bcd8;margin-top:.2rem;font-size:.83rem}.app-footer{text-align:center;color:#c0d4e8;background:#fff;border-top:1px solid #edf4fd;padding:1.2rem 1.5rem;font-size:.72rem;line-height:1.6}.date-input-bare{cursor:pointer;color:#2c4a6e;background:0 0;border:none;outline:none;padding:0;font-size:1rem;font-weight:600}.rate-label{color:#a0bcd8;font-size:.8rem}.chart-label{color:#5a7a9a;margin-bottom:1rem;font-size:.95rem;font-weight:600}
