*{box-sizing:border-box}
body{margin:0;background:#eef9f7;color:#25243a;font-family:Arial,Helvetica,sans-serif}
button,input,select{font:inherit}
.app{width:100%;max-width:540px;min-height:100vh;margin:auto;background:#f9fdfc;padding:20px 16px 28px;display:flex;flex-direction:column}
header{text-align:center;padding:2px 0 20px}
.logo{font-size:23px;letter-spacing:-.5px}.z{font-weight:800;color:#087f8c}.f{color:#71858a}
.hero{text-align:center;padding:10px 10px 20px}
.hero h1{font-size:27px;line-height:1.15;margin:0 0 7px;letter-spacing:-.5px;color:#17383c}
.hero p{font-size:15px;color:#708589;margin:0}
.add{width:100%;border:0;border-radius:14px;background:linear-gradient(135deg,#087f8c,#8b63d9);color:#fff;padding:16px;margin-top:20px;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 7px 18px rgba(8,127,140,.20)}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 3px 10px}
.section-head h2{font-size:17px;margin:0;color:#244347}.count{font-size:13px;color:#71858a}
.group-title{font-size:12px;font-weight:800;letter-spacing:.7px;color:#777;margin:17px 3px 8px}
.card{border:1px solid #d7eeeb;border-radius:15px;padding:14px;margin-bottom:10px;background:#fff;box-shadow:0 4px 14px rgba(83,70,160,.06)}
.top{display:flex;justify-content:space-between;gap:10px}
.name{font-size:17px;font-weight:800;color:#244347}.reason{font-size:14px;color:#718589;margin-top:4px}
.date{font-size:12px;font-weight:800;white-space:nowrap;color:#087f8c}.overdue{color:#ee6b5b}.today{color:#e9795f}
.note{font-size:13px;color:#777;margin-top:9px}
.actions{display:flex;align-items:center;gap:7px;margin-top:13px;flex-wrap:wrap}.actions .icon-btn{flex:1 1 calc(25% - 6px);min-width:0}.actions .snooze,.actions .edit{flex:1 1 calc(50% - 6px);text-align:center}
.icon-btn{width:42px;height:38px;flex:1;border:1px solid #d4e9e6;border-radius:10px;background:#f1faf8;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#087f8c}
.icon-btn svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-btn.whatsapp{color:#159a70;background:#eefaf5;border-color:#cceee0}.icon-btn.email{color:#087f8c;background:#eefaf5;border-color:#cceee0}.icon-btn.sms{color:#3f78a8;background:#eff6fb;border-color:#d5e4ef}.icon-btn.call{color:#df7256;background:#fff3ef;border-color:#f1d4ca}.icon-btn.telegram{color:#2a8dcc;background:#eef7fd;border-color:#d4e9f6}.icon-btn.other{color:#777;background:#f7f8f8;border-color:#ddd}.icon-btn.done{background:#087f8c;color:#fff;border-color:#087f8c}
.edit,.snooze{font-size:12px;color:#087f8c;background:#e8f6f4;border:0;border-radius:8px;padding:7px 9px;cursor:pointer;font-weight:700}.snooze{background:#fff7e9;color:#b7791f;border:1px solid #f3dfb4}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 3px 8px}.summary-chip{background:#fff;border:1px solid #d7eeeb;border-radius:11px;padding:9px 7px;text-align:center}.summary-chip strong{display:block;font-size:17px;color:#244347}.summary-chip span{font-size:10px;color:#718589;text-transform:uppercase;letter-spacing:.4px}.summary-chip.overdue strong{color:#ee6b5b}.summary-chip.today strong{color:#087f8c}.summary-chip.upcoming strong{color:#71858a}
.empty{text-align:center;color:#71858a;border:1px dashed #c9e4e0;border-radius:14px;padding:34px 10px;background:#f6fcfb}
.foot{text-align:center;color:#9a96b2;font-size:12px;margin-top:auto;padding-top:25px}
.modal-bg{position:fixed;inset:0;background:rgba(25,65,68,.40);display:none;align-items:flex-end;justify-content:center;z-index:5}
.modal{width:100%;max-width:540px;background:#fbfaff;border-radius:22px 22px 0 0;padding:22px 18px 28px;max-height:90vh;overflow:auto}
.modal h2{margin:0 0 17px;font-size:21px;color:#244347}
label{display:block;font-size:13px;font-weight:700;margin:13px 0 6px}
input,select{width:100%;padding:13px;border:1px solid #cfe5e2;border-radius:11px;font-size:16px;background:#fff;color:#244347}
.phone-row{display:flex;gap:8px}.country{width:105px}.phone{flex:1}
.contact-pick{width:100%;margin-top:8px;padding:12px;border:1px solid #c9e4e0;border-radius:10px;background:#f3f0ff;color:#087f8c;text-align:left;font-weight:700;cursor:pointer}
.when-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.when-option{padding:12px;border:1px solid #cfe5e2;border-radius:11px;background:#fff;text-align:left;cursor:pointer;color:#4d666a}
.when-option.active{border-color:#087f8c;background:#087f8c;color:#fff;box-shadow:0 4px 10px rgba(101,87,217,.18)}
.date-picker{display:none;margin-top:9px}
.ma{display:flex;gap:9px;margin-top:20px}.ma button{flex:1;padding:14px;border-radius:11px;border:1px solid #cfe5e2;font-weight:800;background:#fff;color:#4d666a}.ma .save{background:#087f8c;color:#fff;border-color:#087f8c}
.search-wrap{position:relative;margin:0 0 15px}.search{width:100%;padding:13px 15px 13px 42px;border:1px solid #cfe5e2;border-radius:11px;font-size:16px;background:#fff}.search-icon{position:absolute;left:14px;top:13px;color:#777}
.reminder-banner{display:none;margin:0 0 14px;padding:13px 14px;border-radius:12px;background:linear-gradient(135deg,#ff7b68,#ef5b82);color:#fff;font-size:14px;font-weight:700;box-shadow:0 6px 16px rgba(238,107,91,.18)}
.note{line-height:1.35}.repeat-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.repeat-option{padding:12px;border:1px solid #cfe5e2;border-radius:11px;background:#fff;text-align:left;cursor:pointer;color:#4d666a}.repeat-option.active{border-color:#087f8c;background:#087f8c;color:#fff}
.contact-pick{width:100%;margin-top:8px;padding:12px;border:1px solid #c9e4e0;border-radius:10px;background:#f3f0ff;color:#087f8c;text-align:left;font-weight:700;cursor:pointer}
.country-search{margin-bottom:8px}.country-list{max-height:230px;overflow:auto;border:1px solid #eee;border-radius:10px;display:none;margin-top:8px}.country-item{padding:11px 12px;border-bottom:1px solid #eee;cursor:pointer}.country-item:last-child{border-bottom:0}
.settings-row{display:flex;gap:8px;margin-top:10px}.settings-btn{flex:1;padding:11px;border:1px solid #c9e4e0;border-radius:10px;background:#f3f0ff;color:#087f8c;font-weight:700}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 0 20px}
.topbar .logo{flex:1;text-align:center}.top-icon{width:42px;height:42px;border:0;border-radius:12px;background:#e8f6f4;color:#087f8c;font-size:21px;cursor:pointer;position:relative}
.bell-btn{font-size:24px;line-height:1}.bell-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bell-btn span{position:absolute;right:5px;top:5px;width:9px;height:9px;background:#ee6b5b;border-radius:50%;display:none;border:2px solid #e8f6f4}
.drawer-bg{position:fixed;inset:0;background:rgba(47,40,91,.35);display:none;z-index:20}
.drawer{position:absolute;right:0;top:0;width:min(330px,88%);height:100%;background:#fbfaff;padding:24px 18px;box-shadow:-10px 0 30px rgba(47,40,91,.15);overflow:auto}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.drawer-head h2{margin:0;color:#244347}
.close-menu{border:0;background:#e8f6f4;color:#087f8c;border-radius:10px;width:38px;height:38px;font-size:20px}
.menu-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #ebe7f8;background:transparent;padding:13px 6px;color:#403b5f;font-size:15px;font-weight:700;cursor:pointer}
.menu-item-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#e8f6f4;color:#087f8c;display:flex;align-items:center;justify-content:center}
.menu-item-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.menu-item-text{min-width:0;flex:1}
.menu-item small{display:block;color:#9691ae;font-weight:400;margin-top:3px;line-height:1.35}
.page-bg{position:fixed;inset:0;background:#fbfaff;display:none;z-index:30;overflow:auto}
.page{max-width:540px;min-height:100vh;margin:auto;padding:20px 18px 35px}
.page-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.back{border:0;background:#e8f6f4;color:#087f8c;border-radius:10px;width:40px;height:40px;font-size:20px}.page-head h1{font-size:23px;margin:0;color:#244347}
.page h2{font-size:18px;color:#244347;margin:25px 0 8px}.page p,.page li{font-size:14px;line-height:1.65;color:#66627d}.page ul{padding-left:20px}
.page-card{background:#fff;border:1px solid #d7eeeb;border-radius:14px;padding:16px;margin:12px 0}
.page-action{width:100%;padding:14px;border:0;border-radius:11px;background:#087f8c;color:#fff;font-weight:800;margin-top:9px;cursor:pointer}
.page-action.secondary{background:#e8f6f4;color:#087f8c}
textarea{width:100%;min-height:120px;border:1px solid #cfe5e2;border-radius:11px;padding:12px;font:inherit;resize:vertical}
.notification-item{background:#fff;border:1px solid #d7eeeb;border-radius:13px;padding:14px;margin-bottom:9px}.notification-item strong{color:#244347}.notification-item div{font-size:14px;color:#6d8084;margin-top:5px}

.early-note{margin:14px 0 0;padding:12px 13px;border-radius:11px;background:#fff3ef;border:1px solid #f1d4ca;color:#a65c4b;text-align:center;font-size:12px;line-height:1.45}
.onboard-bg{position:fixed;inset:0;background:#eef9f7;z-index:100;overflow:auto;display:none}
.onboard{max-width:540px;min-height:100%;margin:auto;padding:42px 20px 28px;display:flex;flex-direction:column}
.onboard-logo{text-align:center;font-size:23px;margin-bottom:42px}.onboard h1{font-size:28px;line-height:1.15;color:#17383c;margin:0 0 9px;text-align:center}.onboard p{font-size:15px;color:#708589;text-align:center;line-height:1.5;margin:0 auto 24px;max-width:390px}
.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.method-choice{border:1px solid #cfe5e2;background:#fff;border-radius:14px;padding:15px 13px;text-align:left;cursor:pointer;color:#244347;display:flex;align-items:center;gap:11px;min-height:62px}
.method-choice .mi{width:38px;height:38px;border-radius:11px;background:#eef9f7;display:flex;align-items:center;justify-content:center;flex:none;font-size:19px}
.method-choice strong{font-size:14px}.method-choice small{display:block;color:#8a999c;font-size:11px;margin-top:2px}
.method-choice.active{border:2px solid #087f8c;padding:14px 12px;background:#f0fbfa;box-shadow:0 4px 12px rgba(8,127,140,.10)}
.method-choice.active .mi{background:#087f8c;color:#fff}
.method-limit{text-align:center;color:#8a999c;font-size:12px;margin:13px 0 0}
.onboard-actions{margin-top:auto;padding-top:28px}
.onboard-save{width:100%;padding:15px;border:0;border-radius:13px;background:#087f8c;color:#fff;font-weight:800;font-size:16px;cursor:pointer}
.onboard-save:disabled{opacity:.45;cursor:not-allowed}
.method-select{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.method-select button{padding:11px 10px;border:1px solid #cfe5e2;border-radius:10px;background:#fff;color:#4d666a;cursor:pointer;font-weight:700}
.method-select button.active{background:#087f8c;color:#fff;border-color:#087f8c}
.method-help{font-size:12px;color:#89999c;margin:7px 0 0}
.page-method{margin-top:12px}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 0 20px}
.topbar .logo{flex:1;text-align:center}.top-icon{width:42px;height:42px;border:0;border-radius:12px;background:#e8f6f4;color:#087f8c;font-size:21px;cursor:pointer;position:relative}
.bell-btn{font-size:24px;line-height:1}.bell-btn svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bell-btn span{position:absolute;right:5px;top:5px;width:9px;height:9px;background:#ee6b5b;border-radius:50%;display:none;border:2px solid #e8f6f4}
.drawer-bg{position:fixed;inset:0;background:rgba(47,40,91,.35);display:none;z-index:20}
.drawer{position:absolute;right:0;top:0;width:min(330px,88%);height:100%;background:#fbfaff;padding:24px 18px;box-shadow:-10px 0 30px rgba(47,40,91,.15);overflow:auto}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.drawer-head h2{margin:0;color:#244347}
.close-menu{border:0;background:#e8f6f4;color:#087f8c;border-radius:10px;width:38px;height:38px;font-size:20px}
.menu-item{width:100%;text-align:left;border:0;border-bottom:1px solid #ebe7f8;background:transparent;padding:15px 6px;color:#403b5f;font-size:15px;font-weight:700;cursor:pointer}
.menu-item small{display:block;color:#9691ae;font-weight:400;margin-top:3px}
.page-bg{position:fixed;inset:0;background:#fbfaff;display:none;z-index:30;overflow:auto}
.page{max-width:540px;min-height:100vh;margin:auto;padding:20px 18px 35px}
.page-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.back{border:0;background:#e8f6f4;color:#087f8c;border-radius:10px;width:40px;height:40px;font-size:20px}.page-head h1{font-size:23px;margin:0;color:#244347}
.page h2{font-size:18px;color:#244347;margin:25px 0 8px}.page p,.page li{font-size:14px;line-height:1.65;color:#66627d}.page ul{padding-left:20px}
.page-card{background:#fff;border:1px solid #d7eeeb;border-radius:14px;padding:16px;margin:12px 0}
.page-action{width:100%;padding:14px;border:0;border-radius:11px;background:#087f8c;color:#fff;font-weight:800;margin-top:9px;cursor:pointer}
.page-action.secondary{background:#e8f6f4;color:#087f8c}
textarea{width:100%;min-height:120px;border:1px solid #cfe5e2;border-radius:11px;padding:12px;font:inherit;resize:vertical}
.notification-item{background:#fff;border:1px solid #d7eeeb;border-radius:13px;padding:14px;margin-bottom:9px}.notification-item strong{color:#244347}.notification-item div{font-size:14px;color:#6d8084;margin-top:5px}

/* PWA startup splash */
.pwa-splash{position:fixed;inset:0;z-index:9999;background:#eef9f7 url("../assets/splash.png") center/cover no-repeat;display:flex;align-items:center;justify-content:center;opacity:1;visibility:visible;transition:opacity .28s ease,visibility .28s ease}
.pwa-splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.pwa-splash-card{display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translateY(-2vh)}
.pwa-splash-card img{width:92px;height:92px;border-radius:22px;box-shadow:0 10px 25px rgba(8,127,140,.12)}
.pwa-splash-title{margin-top:16px;font-size:24px;letter-spacing:-.5px;color:#087f8c}
.pwa-splash-title strong{color:#087f8c}.pwa-splash-title span{color:#e8a20b;font-weight:800}
@media (prefers-reduced-motion:reduce){.pwa-splash{transition:none}}
