*{box-sizing:border-box}body{margin:0;font-family:-apple-system,Segoe UI,Roboto,sans-serif;background:#f3f5f8;color:#1b2430}
header{position:sticky;top:0;background:#1f4e79;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:8px;z-index:5}
header h1{font-size:17px;margin:0;flex:1}.bell{position:relative;background:none;border:0;color:#fff;font-size:20px}
.badge{position:absolute;top:-4px;right:-6px;background:#e5484d;color:#fff;border-radius:9px;font-size:11px;padding:1px 5px}
main{padding:12px;max-width:900px;margin:0 auto 76px}
nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d8dee6;display:flex;z-index:5}
nav button{flex:1;border:0;background:none;padding:10px 0 14px;font-size:12px;color:#556}nav button.on{color:#1f4e79;font-weight:700}
nav span{display:block;font-size:19px}
.card{background:#fff;border-radius:12px;padding:12px;margin-bottom:10px;box-shadow:0 1px 3px #0001}
.btn{background:#1f4e79;color:#fff;border:0;border-radius:9px;padding:10px 14px;font-size:15px}.btn.sec{background:#e4e9f0;color:#1f4e79}
.btn.red{background:#c0392b}.btn.sm{padding:6px 10px;font-size:13px}
input,select,textarea{font-size:16px;padding:10px;border:1px solid #c8d0da;border-radius:9px;width:100%}
.row{display:flex;gap:8px;align-items:center}.tabs{display:flex;gap:6px;margin-bottom:10px}.tabs button{flex:1}
.month{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.month .h{font-size:11px;text-align:center;color:#667;padding:3px}
.cell{background:#fff;min-height:62px;border-radius:6px;padding:2px;font-size:10px;overflow:hidden}.cell.out{opacity:.35}
.cell .d{font-weight:700;font-size:11px}.cell.today{outline:2px solid #1f4e79}
.chip{display:block;max-width:100%;border-radius:4px;padding:1px 3px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9.5px}
.c-ER{background:#cfe2f3;color:#1f4e79}.c-SCU{background:#1e7b4f;color:#fff}.c-OB{background:#f9d0e0;color:#8a1846}
.c-Anesthesia{background:#fde2c4;color:#8a4b08}.c-Hospitalist{background:#e8e0c8;color:#5a4a12}.c-SDC{background:#dde3ea;color:#2e3a46}
.c-Dialysis{background:#e4d4f4;color:#4b1f7a}.c-Clinic{background:#d9ef8b;color:#3f5200}.c-PCH{background:#f4b6a6;color:#7a2414}.c-Addictions{background:#ffe08a;color:#6b4f00}
.list-item{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #eef}
.warn{background:#fff4e5;border-left:4px solid #f59e0b;padding:7px 9px;border-radius:6px;font-size:13px;margin:4px 0}
.ok{background:#e8f7ee;border-left:4px solid #1e7b4f;padding:7px 9px;border-radius:6px;font-size:13px}
.msgs{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow:auto;padding:4px}
.msg{max-width:80%;padding:8px 11px;border-radius:14px;background:#fff;font-size:14px}.msg.me{align-self:flex-end;background:#1f4e79;color:#fff}
.msg small{display:block;opacity:.7;font-size:11px}.muted{color:#778;font-size:13px}.pill{font-size:11px;padding:2px 7px;border-radius:9px;background:#e4e9f0}
.login{max-width:360px;margin:12vh auto;padding:20px}.login h2{color:#1f4e79}
.notice{font-size:12px;color:#8a4b08;background:#fff4e5;padding:6px 9px;border-radius:8px;margin-bottom:8px}
@media(min-width:800px){.cell{min-height:90px;font-size:12px}.chip{font-size:11px}}
.list-item .chip{display:inline-block}

.seg{display:flex;background:#e4e9f0;border-radius:10px;padding:3px;margin-bottom:10px}.seg button{flex:1;border:0;background:none;padding:9px;border-radius:8px;font-size:15px;color:#1f4e79}
.seg button.on{background:#fff;font-weight:700;box-shadow:0 1px 3px #0002}
.fpanel{margin-top:8px}.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fchk{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e1e6ed;border-radius:9px;min-height:44px}
.fchk input{width:20px;height:20px;flex:none}.fchk .chip{font-size:13px;display:inline-block}
@media(min-width:700px){.fgrid{grid-template-columns:repeat(4,1fr)}}

.switch{position:relative;width:50px;height:30px;flex:none}.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:#c8d0da;border-radius:30px;transition:.2s}
.switch span:before{content:'';position:absolute;width:24px;height:24px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.switch input:checked+span{background:#1e7b4f}.switch input:checked+span:before{transform:translateX(20px)}
a.btn{display:inline-block}

.sheet{position:fixed;left:0;right:0;bottom:0;z-index:20;max-height:85vh;overflow:auto;border-radius:16px 16px 0 0;padding:16px 14px 22px}
@media(min-width:700px){.sheet{left:50%;transform:translateX(-50%);width:560px;bottom:auto;top:12vh;border-radius:14px}}
.ackrow{display:flex;gap:10px;align-items:flex-start;margin-top:10px;padding:10px;border:1px solid #f59e0b;border-radius:10px;background:#fffaf0;font-size:14px}
.ackrow input{width:22px;height:22px;flex:none;margin-top:1px}.btn:disabled{opacity:.45}
.ackby{color:#1e7b4f;font-size:12px;margin-top:4px}.newflag{color:#c0392b;font-weight:700;font-size:12px;margin-top:4px}

.egrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.egrid label,.sheet label.muted{display:block;font-size:12px;color:#556}
.egrid select,.egrid input,.sheet label input{margin-top:3px}

.chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.tchip{border:1px solid #c8d0da;background:#fff;border-radius:16px;padding:7px 11px;font-size:13px;min-height:36px}
.tchip.on{background:#1f4e79;color:#fff;border-color:#1f4e79}.offer{border-top:1px dashed #dde;padding:7px 0;font-size:14px}
nav button{font-size:11px}
