@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");:root{font-family:Inter,Noto Sans Thai,system-ui,sans-serif;color:#2c2a26;background:#e5ded3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(100% 80% at 50% 0,#f4f0ea 0,#e5ded3 76%)}button,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;padding:32px 18px;display:grid;place-items:center}.phone{width:min(100%,440px);min-height:844px;position:relative;overflow:hidden;padding:29px 20px 98px;background:#f8f5ef;box-shadow:0 24px 70px rgba(68,54,35,.2)}.topbar{justify-content:space-between;padding:3px 3px 18px}.topbar,.topbar-actions{display:flex;align-items:center}.topbar-actions{gap:7px}.language-toggle{border:1px solid #e2dbcf;border-radius:99px;background:#fff;color:#3e6e54;padding:7px 9px}.eyebrow,.language-toggle{font-size:11px;font-weight:800}.eyebrow{color:#6e9b7e;letter-spacing:.08em;text-transform:uppercase;margin:0 0 5px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:24px;line-height:1.25;letter-spacing:-.04em}h2{font-size:16px;margin-bottom:3px;letter-spacing:-.02em}h3{font-size:13px;margin-bottom:2px}p{color:#706a62;font-size:12px;line-height:1.55;margin-bottom:0}.icon-button{position:relative;width:42px;height:42px;border:1px solid #e2dbcf;border-radius:50%;background:#fff;font-size:23px;color:#3e6e54}.notification-dot{position:absolute;width:7px;height:7px;background:#d96b50;border:1px solid #fff;border-radius:50%;top:9px;right:10px}.resident-switcher{display:flex;gap:8px;padding:4px 0 19px;overflow-x:auto}.resident-tab{border:1px solid #e2dbcf;background:#fff;color:#56524b;display:flex;gap:7px;align-items:center;border-radius:99px;padding:5px 11px 5px 5px;font-size:12px;font-weight:700;white-space:nowrap}.resident-tab.active{color:#2c2a26;background:#e5efe7;border-color:#6e9b7e}.avatar{display:grid;place-items:center;border-radius:50%;font-weight:800;flex:0 0 auto}.avatar.coral{background:#f3cec3;color:#9e3c2a}.avatar.blue{background:#bfd0e6;color:#31547f}.content{display:grid;grid-gap:13px;gap:13px}.card,.hero-card,.profile-hero{background:#fff;border:1px solid #e9e3d8;border-radius:20px;padding:16px;box-shadow:0 4px 15px rgba(61,51,35,.035)}.hero-card{min-height:108px;display:flex;justify-content:space-between;align-items:center;color:#fff;border:0}.hero-card.coral{background:linear-gradient(135deg,#d96b50,#c85d45)}.hero-card.blue{background:linear-gradient(135deg,#4a6fa5,#3b5e90)}.hero-card p,.hero-card span{color:rgba(255,255,255,.8)}.hero-card h2{font-size:21px;margin:2px 0}.hero-card .avatar{background:rgba(255,255,255,.22);color:#fff;border:1px solid rgba(255,255,255,.28)}.card-title,.section-heading{display:flex;align-items:flex-start;gap:10px}.card-title h2{margin-bottom:0}.title-icon{color:#d96b50;width:28px;height:28px;display:grid;place-items:center;background:#fbedE8;border-radius:9px;font-weight:800}.handover-text{font-size:13px;color:#3f3b36;margin:13px 0 10px}.soft-alert{font-size:12px;color:#3e6e54;background:#e5efe7;padding:9px 10px;border-radius:11px}.section-heading{justify-content:space-between}.text-button{border:0;padding:2px 0;background:transparent;color:#3e6e54;font-size:12px;font-weight:800}.timeline{padding-top:10px}.task{display:grid;grid-template-columns:75px 10px 1fr;grid-gap:9px;gap:9px;padding:9px 0}.task:not(:last-child){border-bottom:1px solid #f0ece5}.time{display:grid;grid-gap:2px;gap:2px;align-content:start}.time b{color:#3e6e54;font-size:12px}.time span{color:#847f76;font-size:10px;line-height:1.35}.task i{margin-top:4px;width:10px;height:10px;border-radius:50%;background:#6e9b7e;box-shadow:0 0 0 4px #e5efe7}.task i.risk{background:#d96b50;box-shadow:0 0 0 4px #fbedE8}.task h3{font-size:12px}.task p{font-size:11px}.med-list{margin-top:8px}.med{display:flex;align-items:center;gap:10px;padding:10px 0}.med+.med{border-top:1px solid #f0ece5}.med time{color:#4a6fa5;background:#e7edf5;min-width:44px;text-align:center;padding:5px 2px;border-radius:8px;font-size:11px;font-weight:800}.med>div{flex:1 1}.med p{font-size:11px}.done{color:#fff;background:#6e9b7e;display:grid;place-items:center;border-radius:50%;width:24px;height:24px;font-weight:800}.take-button{color:#3e6e54;border:1px solid #6e9b7e;background:#fff;font-weight:700;font-size:11px;padding:7px 9px;border-radius:9px}.insight-card{background:#f9f5ed}.insight{color:#4b6554;padding:8px 0;font-size:12px}.insight+.insight{border-top:1px solid #e6dfd1}.event-line{display:flex;gap:10px;align-items:center;padding:10px 0}.event-line+.event-line{border-top:1px solid #f0ece5}.behavior-icon{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;font-size:17px}.behavior-choices .walking,.behavior-icon.walking{background:#f5edda}.behavior-choices .agitated,.behavior-icon.agitated{background:#fbe5df}.behavior-choices .confused,.behavior-icon.confused{background:#eeeafa}.behavior-choices .sleep,.behavior-icon.sleep{background:#e7edf5}.behavior-choices .refuse,.behavior-icon.refuse{background:#f2eee8}.empty{padding:15px 0 4px;text-align:center}.ai-card{background:#f4f7f2}.ai-input{display:flex;gap:7px;margin-top:11px}.ai-input input{min-width:0;flex:1 1;border:1px solid #d8d0c4;border-radius:10px;padding:9px 10px;outline-color:#6e9b7e;font-size:12px}.ai-input button{border:0;border-radius:10px;padding:0 13px;color:#fff;background:#3e6e54;font-size:12px;font-weight:800}.ai-input button:disabled{opacity:.55}.ai-answer{margin-top:11px;padding:10px;border-radius:10px;background:#fff;color:#3f3b36;white-space:pre-wrap}.ai-answer.muted{color:#847f76;font-style:italic}.bottom-nav{position:absolute;bottom:0;left:0;right:0;height:77px;background:rgba(255,255,255,.95);border-top:1px solid #e8e1d6;display:flex;justify-content:space-around;padding:11px 52px 6px 12px}.bottom-nav button{color:#847f76;display:grid;place-items:center;grid-gap:2px;gap:2px;border:0;background:transparent;font-size:10px;min-width:55px}.bottom-nav span{font-size:21px;line-height:1}.bottom-nav button.active{color:#3e6e54;font-weight:800}.fab{position:absolute;right:20px;bottom:33px;width:56px;height:56px;border-radius:50%;border:3px solid #f8f5ef;background:#d96b50;color:white;font-size:32px;font-weight:300;z-index:2;box-shadow:0 6px 16px rgba(176,74,52,.35)}.highlight{background:#3e6e54;color:#fff}.highlight .eyebrow,.highlight p{color:#dbeadf}.highlight h2{font-size:27px;margin:3px 0}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:9px;gap:9px}.metric{padding:13px 8px;text-align:center;background:#fff;border:1px solid #e9e3d8;border-radius:17px}.metric span{color:#d96b50;font-size:18px;display:block}.metric b{font-size:20px;display:block;margin-top:2px}.metric p{font-size:10px;line-height:1.3}.chart{height:150px;padding:13px 2px 0;border-bottom:1px solid #dcd4c8;display:flex;justify-content:space-around;background:repeating-linear-gradient(180deg,transparent 0 36px,#f1ede7 37px)}.chart,.chart>div{align-items:flex-end}.chart>div{height:100%;flex:1 1;display:grid;justify-items:center;grid-gap:7px;gap:7px}.chart i{display:block;width:14px;max-height:108px;border-radius:8px 8px 2px 2px;background:#6e9b7e}.chart i.warm{background:#d96b50}.chart small{color:#847f76;font-size:10px}.insight-list{margin:9px 0 0;padding-left:18px;color:#56524b}.insight-list li{font-size:12px;line-height:1.55;margin:7px 0}.warning{margin-top:9px;padding:10px;border-radius:10px;color:#92513c;background:#fbedE8;font-size:12px;line-height:1.5}.profile-hero{text-align:center;padding:23px 16px}.profile-hero.coral{background:#fbeDE8}.profile-hero.blue{background:#e7edf5}.profile-hero .avatar{margin:0 auto 11px}.profile-hero h2{font-size:21px}.status-pill{color:#3e6e54;background:#fff;padding:6px 9px;border-radius:99px;display:inline-block;font-weight:700;font-size:11px;margin-top:12px}.profile-list{padding:4px 16px}.profile-list>div{padding:13px 0}.profile-list>div+div{border-top:1px solid #f0ece5}.profile-list b{color:#847f76;font-size:11px}.profile-list p{color:#383530;font-size:13px;margin-top:3px}.shift{margin:5px 0 13px}.staff{display:flex;gap:9px;align-items:center}.staff>span{display:grid;place-items:center;color:#3e6e54;background:#e5efe7;width:32px;height:32px;border-radius:50%;font-size:10px;font-weight:800}.staff>div{flex:1 1}.staff b{font-size:12px}.staff p{font-size:10px}.staff button{border:0;color:#fff;background:#4a6fa5;padding:8px 12px;border-radius:9px;font-size:11px;font-weight:700}.modal-backdrop{position:fixed;inset:0;z-index:10;background:rgba(35,31,25,.45);display:grid;place-items:flex-end center;padding:0}.modal{position:relative;width:min(100%,440px);max-height:90vh;overflow:auto;padding:25px 20px 28px;border-radius:26px 26px 0 0;background:#f8f5ef;box-shadow:0 -10px 35px rgba(0,0,0,.12)}.close{position:absolute;top:13px;right:15px;border:0;color:#847f76;background:transparent;font-size:29px;line-height:1}.modal h2{font-size:21px;margin-bottom:4px}.modal-sub{margin-bottom:17px}.behavior-choices{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.behavior-choices button{min-height:57px;text-align:left;display:flex;align-items:center;gap:7px;border:2px solid transparent;border-radius:14px;color:#514c45;font-size:11px;font-weight:700;padding:8px}.behavior-choices button span{font-size:20px}.behavior-choices button.selected{border-color:#3e6e54;box-shadow:0 0 0 2px #e5efe7}label{display:grid;grid-gap:6px;gap:6px;font-size:12px;color:#56524b;font-weight:700;margin-top:18px}textarea{resize:vertical;border:1px solid #d8d0c4;border-radius:12px;background:white;padding:10px;color:#2c2a26;outline-color:#6e9b7e}.save-button{width:100%;margin-top:16px;border:0;border-radius:13px;padding:13px;color:#fff;background:#3e6e54;font-size:14px;font-weight:800}.save-button:disabled{opacity:.65}.toast{position:fixed;z-index:20;bottom:24px;left:50%;transform:translateX(-50%);color:#fff;background:#2c2a26;padding:12px 17px;border-radius:99px;font-size:12px;box-shadow:0 8px 25px rgba(0,0,0,.2);white-space:nowrap}.loading{background:#fff;padding:32px;border-radius:20px;color:#3e6e54;box-shadow:0 12px 40px rgba(65,50,30,.14)}@media (min-width:560px){.phone{border-radius:30px}.modal-backdrop{padding:18px;align-items:center}.modal{border-radius:26px}}@media (max-width:450px){.app-shell{padding:0}.phone{min-height:100vh;width:100%;box-shadow:none}}