:root{--pp-fg:#1f2733;--pp-muted:#56636f;--pp-surface:#fff;--pp-primary:#2563eb;--pp-primary-2:#1d4ed8;--pp-on-primary:#fff;--pp-good:#15803d;--pp-good-2:#166534;--pp-ring:#2563eb;--pp-radius:24px;--pp-touch:92px;--pp-space:18px;--pp-font:23px;--pp-shadow:0 12px 32px rgba(31,39,51,.1)}*{box-sizing:border-box}body,html{margin:0;padding:0;background:linear-gradient(180deg,#f8f5ef,#eef1f7);color:var(--pp-fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif;font-size:var(--pp-font);line-height:1.5;-webkit-font-smoothing:antialiased}main.senior{max-width:1180px;margin:0 auto;padding:clamp(18px,3.5vw,40px);min-height:100vh;display:flex;flex-direction:column;gap:calc(var(--pp-space) * 1.25)}.senior .brand{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.senior .brand-id{display:flex;align-items:center;gap:.7rem}.senior .logo{width:56px;height:56px;display:grid;place-items:center;font-size:2.1rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border-radius:16px}.senior .brand-text{display:flex;flex-direction:column;line-height:1.1}.senior .brand-name{font-size:1.6rem;font-weight:800;letter-spacing:.2px}.senior .brand-name .plus{color:var(--pp-primary)}.senior .brand-tag{font-size:.95rem;font-weight:600;color:var(--pp-muted)}.senior .lina{display:flex;align-items:center;gap:.6rem;padding:.5rem 1.1rem;background:var(--pp-surface);border-radius:999px;box-shadow:var(--pp-shadow)}.senior .lina-ava{font-size:1.9rem}.senior .lina-text{display:flex;flex-direction:column;line-height:1.1}.senior .lina-name{font-size:1.2rem;font-weight:700}.senior .lina-sub{font-size:.9rem;color:var(--pp-muted)}.senior .columns{display:grid;grid-template-columns:1fr;grid-gap:calc(var(--pp-space) * 1.3);gap:calc(var(--pp-space) * 1.3)}@media (min-width:768px){.senior .columns{grid-template-columns:1fr 1fr;align-items:start}}.senior .col{display:flex;flex-direction:column;gap:var(--pp-space)}.senior .hello{background:var(--pp-surface);border-radius:var(--pp-radius);padding:clamp(18px,2.6vw,30px);box-shadow:var(--pp-shadow)}.senior .hello h1{margin:0;font-size:clamp(1.9rem,3.4vw,2.6rem);font-weight:800}.senior .hello .today-full{margin:.5rem 0 0;font-size:1.4rem;font-weight:700;color:var(--pp-fg)}.senior .hello .today-time{margin:.15rem 0 0;font-size:1.2rem;font-weight:600;color:var(--pp-muted)}.senior .primary{display:flex;align-items:center;gap:1rem;width:100%;min-height:calc(var(--pp-touch) + 30px);padding:1.3rem 1.6rem;border:none;border-radius:var(--pp-radius);background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));color:var(--pp-on-primary);box-shadow:var(--pp-shadow);cursor:pointer;text-align:left}.senior .primary .ic{font-size:2.9rem;line-height:1}.senior .primary .lbl{font-size:1.8rem;font-weight:800}.senior .primary .sub{display:block;font-size:1.1rem;font-weight:500;opacity:.92;margin-top:.15rem}.senior .mood{background:var(--pp-surface);border-radius:var(--pp-radius);padding:clamp(14px,2vw,22px);box-shadow:var(--pp-shadow)}.senior .mood h2{margin:0 0 .7rem;font-size:1.4rem;font-weight:700}.senior .mood-row{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:.7rem;gap:.7rem}@media (min-width:880px){.senior .mood-row{grid-template-columns:repeat(4,1fr)}}.senior .mood-btn{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.7rem .4rem;min-height:84px;background:#f5f7fb;border:3px solid transparent;border-radius:16px;cursor:pointer;color:var(--pp-fg)}.senior .mood-btn .mood-emo{font-size:1.9rem}.senior .mood-btn .mood-lbl{font-size:.95rem;font-weight:600;text-align:center}.senior .mood-btn.sel{border-color:var(--pp-primary);background:#e8effe}.senior .mood-resp{margin:.8rem 0 0;font-size:1.15rem;color:var(--pp-good-2);font-weight:600}.senior .wellbeing{justify-content:center;gap:.7rem;min-height:calc(var(--pp-touch) + 18px);font-size:1.7rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-good),var(--pp-good-2));border:none;border-radius:var(--pp-radius)}.senior .info-card,.senior .wellbeing{display:flex;align-items:center;width:100%;box-shadow:var(--pp-shadow);cursor:pointer}.senior .info-card{gap:1rem;min-height:var(--pp-touch);padding:1rem 1.25rem;background:var(--pp-surface);border:3px solid transparent;border-radius:var(--pp-radius);color:var(--pp-fg);text-align:left}.senior .info-card .info-ic{flex:0 0 auto;width:66px;height:66px;display:grid;place-items:center;font-size:2.1rem;border-radius:18px}.senior .info-card.reminder .info-ic{background:#fff3e0}.senior .info-card.message .info-ic{background:#fde7ef}.senior .info-body{display:flex;flex-direction:column;gap:.1rem;min-width:0}.senior .info-label{font-size:.9rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--pp-muted)}.senior .info-main{font-size:1.3rem;font-weight:700}.senior .info-meta{font-size:1.05rem;color:var(--pp-muted)}.senior .grid{display:grid;grid-template-columns:1fr;grid-gap:var(--pp-space);gap:var(--pp-space)}.senior .tile{display:flex;align-items:center;gap:1rem;min-height:var(--pp-touch);padding:1.1rem 1.3rem;background:var(--pp-surface);border:3px solid transparent;border-radius:var(--pp-radius);box-shadow:var(--pp-shadow);color:var(--pp-fg);cursor:pointer;text-align:left}.senior .tile .ic{flex:0 0 auto;width:66px;height:66px;display:grid;place-items:center;font-size:2.1rem;background:#eef2ff;border-radius:18px}.senior .tile .lbl{font-size:1.35rem;font-weight:700}.senior .info-card:focus-visible,.senior .info-card:hover,.senior .mood-btn:focus-visible,.senior .primary:focus-visible,.senior .tile:focus-visible,.senior .tile:hover,.senior .wellbeing:focus-visible{border-color:var(--pp-ring);outline:none}.senior .primary:focus-visible,.senior .wellbeing:focus-visible{outline:4px solid rgba(37,99,235,.35);outline-offset:3px}.senior .reassure{margin-top:auto;text-align:center;color:var(--pp-muted);font-size:1.15rem;padding-top:var(--pp-space)}.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);display:grid;place-items:center;padding:20px;z-index:50}.modal{width:100%;max-width:560px;background:var(--pp-surface);border-radius:26px;padding:clamp(22px,4vw,34px);box-shadow:0 24px 60px rgba(0,0,0,.25)}.modal h3{margin:0 0 .6rem;font-size:1.7rem;font-weight:800}.modal p{margin:0 0 .8rem;font-size:1.2rem}.modal ul{margin:0 0 .8rem;padding-left:1.3rem;font-size:1.15rem}.modal li{margin-bottom:.4rem}.modal .modal-note{font-size:1rem;color:var(--pp-muted)}.modal .modal-close{width:100%;min-height:72px;margin-top:.6rem;font-size:1.4rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border:none;border-radius:18px;cursor:pointer}.senior .brand-right{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.senior .logout-link{border:2px solid #d7dde7;background:var(--pp-surface);color:var(--pp-muted);font-weight:700;font-size:.95rem;padding:.5rem 1rem;border-radius:999px;cursor:pointer}.senior .logout-link:focus-visible,.senior .logout-link:hover{border-color:var(--pp-ring);color:var(--pp-fg);outline:none}main.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:100%;max-width:460px;background:var(--pp-surface);border-radius:26px;padding:clamp(24px,5vw,40px);box-shadow:var(--pp-shadow)}.login-brand{display:flex;align-items:center;gap:.6rem;margin-bottom:1.2rem}.login-brand .logo{width:52px;height:52px;display:grid;place-items:center;font-size:2rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border-radius:15px}.login-name{font-size:1.5rem;font-weight:800}.login-name .plus{color:var(--pp-primary)}.login-card h1{margin:0 0 .3rem;font-size:1.8rem;font-weight:800}.login-intro{margin:0 0 1.4rem;color:var(--pp-muted);font-size:1.1rem}.login-form{gap:1rem}.login-field,.login-form{display:flex;flex-direction:column}.login-field{gap:.35rem}.login-field span{font-weight:700;font-size:1rem}.login-field input{min-height:60px;padding:0 1rem;font-size:1.15rem;border:2px solid #d7dde7;border-radius:14px;background:#f8fafc;color:var(--pp-fg)}.login-field input:focus-visible{border-color:var(--pp-ring);outline:3px solid rgba(37,99,235,.25);outline-offset:1px}.login-error{margin:0;color:#b91c1c;font-weight:600}.login-submit{min-height:64px;margin-top:.4rem;font-size:1.25rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border:none;border-radius:16px;cursor:pointer}.login-submit:disabled{opacity:.6;cursor:default}.login-note{margin:1.4rem 0 0;font-size:.9rem;color:var(--pp-muted);text-align:center}main.family{max-width:760px;margin:0 auto;padding:clamp(18px,3.5vw,40px);min-height:100vh;display:flex;flex-direction:column;gap:1.1rem}.family-head{justify-content:space-between;gap:1rem;flex-wrap:wrap}.family-brand,.family-head{display:flex;align-items:center}.family-brand{gap:.6rem}.family-brand .logo{width:48px;height:48px;display:grid;place-items:center;font-size:1.8rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border-radius:14px}.family-title{font-size:1.3rem;font-weight:800}.family-title .plus{color:var(--pp-primary)}main.family h1{margin:0;font-size:1.7rem;font-weight:800}.family-intro{margin:0}.family-empty,.family-intro{color:var(--pp-muted);font-size:1.1rem}.family-empty{background:var(--pp-surface);border-radius:var(--pp-radius);padding:1.4rem;box-shadow:var(--pp-shadow)}.family-list{display:flex;flex-direction:column;gap:1rem}.senior-card{background:var(--pp-surface);border-radius:var(--pp-radius);padding:clamp(16px,3vw,24px);box-shadow:var(--pp-shadow)}.senior-card-head{display:flex;align-items:baseline;gap:.7rem;margin-bottom:.8rem}.senior-card-name{font-size:1.4rem;font-weight:800}.senior-card-rel{font-size:.95rem;font-weight:700;color:var(--pp-muted);background:#eef2ff;padding:.15rem .7rem;border-radius:999px}.status{display:flex;flex-direction:column;gap:.3rem}.status-badge{align-self:flex-start;font-size:1.15rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-good),var(--pp-good-2));padding:.35rem .9rem;border-radius:999px}.status-when{font-size:1.1rem;font-weight:600}.status-mood{font-size:1rem;color:var(--pp-muted)}.status.none{font-size:1.1rem;color:var(--pp-muted)}.family-note{margin-top:auto;text-align:center;color:var(--pp-muted);font-size:.95rem;padding-top:1rem}.msg-form{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #e6eaf0}.msg-label{font-weight:700;font-size:1rem}.msg-input{width:100%;resize:vertical;min-height:70px;padding:.7rem .9rem;font:inherit;font-size:1.05rem;border:2px solid #d7dde7;border-radius:14px;background:#f8fafc;color:var(--pp-fg)}.msg-input:focus-visible{border-color:var(--pp-ring);outline:3px solid rgba(37,99,235,.2)}.msg-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.msg-send{min-height:52px;padding:0 1.4rem;font-size:1.1rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border:none;border-radius:14px;cursor:pointer}.msg-send:disabled{opacity:.55;cursor:default}.msg-ok{color:var(--pp-good-2);font-weight:700}.msg-err{color:#b91c1c;font-weight:700}.msg-new-badge{align-self:flex-start;display:inline-block;font-size:.95rem;font-weight:800;color:#fff;background:linear-gradient(135deg,#dc2626,#b91c1c);padding:.2rem .7rem;border-radius:999px;margin-bottom:.35rem}.msg-new-line{font-weight:800;color:#b91c1c}.msg-read-line{color:var(--pp-good-2);font-weight:700}.msg-read-btn{width:100%;min-height:64px;margin-top:.4rem;font-size:1.3rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-good),var(--pp-good-2));border:none;border-radius:16px;cursor:pointer}.msg-read-btn:disabled{opacity:.6;cursor:default}.msg-list{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.8rem}.msg-item{border:2px solid #e6eaf0;border-radius:14px;padding:.8rem 1rem}.msg-item.unread{border-color:#fca5a5;background:#fff5f5}.msg-item-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.3rem}.msg-item-from{font-weight:800;font-size:1.05rem}.msg-item-status{font-size:.9rem;font-weight:700;color:var(--pp-good-2);white-space:nowrap}.msg-item-status.new{color:#b91c1c}.msg-item-body{margin:0 0 .25rem;font-size:1.1rem}.msg-item-when{margin:0;font-size:.9rem;color:var(--pp-muted)}.msg-item .msg-read-btn{min-height:48px;font-size:1.05rem;margin-top:.5rem}.sent-list{margin-top:1rem}.sent-title{margin:0 0 .5rem;font-size:1.05rem;font-weight:800}.sent-list ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}.sent-item{border:1px solid #e6eaf0;border-radius:12px;padding:.6rem .8rem}.sent-body{margin:0 0 .2rem;font-size:1.02rem}.sent-meta{margin:0;font-size:.9rem;color:var(--pp-muted)}.sent-read{color:var(--pp-good-2);font-weight:700}.sent-unread{color:#b45309;font-weight:700}.rem-form{display:flex;flex-direction:column;gap:.6rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #e6eaf0}.rem-heading{margin:0;font-size:1.05rem;font-weight:800}.rem-field{display:flex;flex-direction:column;gap:.3rem}.rem-field span{font-weight:700;font-size:.95rem}.rem-field input,.rem-field select,.rem-field textarea{font:inherit;font-size:1.02rem;padding:.55rem .8rem;border:2px solid #d7dde7;border-radius:12px;background:#f8fafc;color:var(--pp-fg)}.rem-field input:focus-visible,.rem-field select:focus-visible,.rem-field textarea:focus-visible{border-color:var(--pp-ring);outline:3px solid rgba(37,99,235,.2)}.rem-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.rem-send{min-height:52px;padding:0 1.4rem;font-size:1.1rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--pp-primary),var(--pp-primary-2));border:none;border-radius:14px;cursor:pointer}.rem-send:disabled{opacity:.55;cursor:default}.rem-list{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.7rem}.rem-item{display:flex;gap:.9rem;border:2px solid #e6eaf0;border-radius:14px;padding:.7rem .9rem}.rem-item.done{opacity:.6}.rem-item-time{flex:0 0 auto;font-weight:800;font-size:1.1rem;color:var(--pp-primary);min-width:64px}.rem-item-body{display:flex;flex-direction:column;gap:.15rem}.rem-item-title{font-size:1.15rem;font-weight:700}.rem-item-type{font-size:.9rem;color:var(--pp-muted)}.rem-item-desc{font-size:1rem}.curator{max-width:760px;margin:0 auto;padding:28px 20px 60px}.curator-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.curator-head h1{font-size:26px;margin:0;color:var(--pp-fg)}.curator-sub{color:var(--pp-muted);margin:6px 0 0}.curator-logout{width:auto;padding:10px 16px;font-size:14px}.curator-disclaimer{background:#eef2ff;border:1px solid #c7d2fe;border-radius:14px;padding:12px 14px;font-size:14px;color:#3730a3;margin:18px 0}.curator-empty{color:var(--pp-muted)}.curator-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.curator-card{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:18px 20px}.curator-card h2{font-size:20px;margin:0 0 4px;color:var(--pp-fg)}.curator-measure{color:var(--pp-muted);font-size:14px;margin:0 0 12px}.curator-domains{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;font-size:14px}.curator-domains li{color:var(--pp-muted)}.curator-domains li.is-involved{color:var(--pp-fg);font-weight:600}.curator-domains li.is-involved strong{color:var(--pp-primary-2)}.access{max-width:560px;margin:0 auto;padding:28px 20px 60px}.access-head,.stay-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}.access-brand,.stay-brand{font-weight:700;color:var(--pp-fg)}.access-brand .plus,.stay-brand .plus{color:var(--pp-primary)}.access h1,.stay-view h1{font-size:26px;margin:0 0 8px;color:var(--pp-fg)}.access-intro,.stay-intro{color:var(--pp-muted);margin:0 0 20px;line-height:1.5}.access-form{display:flex;flex-direction:column;gap:12px}.access-form label{font-weight:600;color:var(--pp-fg)}.access-form input{font-size:22px;letter-spacing:2px;text-transform:uppercase;padding:14px 16px;border:2px solid #e2e8f0;border-radius:14px}.access-form input:focus{outline:none;border-color:var(--pp-ring)}.access-form button{padding:14px 18px;font-size:18px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border:none;border-radius:14px;cursor:pointer}.access-form button:disabled{opacity:.5;cursor:not-allowed}.access-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:12px 14px;margin:4px 0 0}.access-note,.stay-note{color:var(--pp-muted);font-size:14px;margin-top:24px;line-height:1.5}.stay-view{max-width:620px;margin:0 auto;padding:28px 20px 60px}.stay-logout{width:auto;padding:10px 16px;font-size:14px;background:transparent;color:var(--pp-primary);border:1px solid #c7d2fe;border-radius:12px;cursor:pointer}.stay-card{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:18px 20px;margin:18px 0}.stay-card h2{font-size:20px;margin:0 0 6px;color:var(--pp-fg)}.stay-card p{color:var(--pp-muted);margin:0 0 10px;line-height:1.5}.stay-soon{display:inline-block;font-size:13px;font-weight:600;color:var(--pp-primary);background:#eef2ff;border-radius:999px;padding:4px 12px}.access-mgr{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:20px 22px;margin:18px 0 24px}.access-mgr h2{font-size:20px;margin:0 0 4px;color:var(--pp-fg)}.access-mgr-intro{color:var(--pp-muted);font-size:14px;margin:0 0 14px;line-height:1.5}.access-mgr label{display:block;font-weight:600;font-size:14px;color:var(--pp-fg);margin:10px 0 4px}.access-mgr input,.access-mgr select{width:100%;font-size:16px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px}.access-mgr-form{display:flex;flex-direction:column;gap:4px;margin-top:12px}.access-mgr-form button,.access-mgr-list button{width:auto;align-self:flex-start;margin-top:8px;padding:10px 16px;font-size:15px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border:none;border-radius:12px;cursor:pointer}.access-mgr-form button:disabled{opacity:.5;cursor:not-allowed}.access-mgr-code{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:14px;padding:14px 16px;margin:14px 0}.access-mgr-code code{display:block;font-size:26px;letter-spacing:3px;font-weight:700;color:#065f46;margin:8px 0}.access-mgr-code p{font-size:13px;color:#047857;margin:0}.access-mgr-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:10px 12px}.access-mgr h3{font-size:16px;margin:18px 0 8px;color:var(--pp-fg)}.access-mgr-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}.access-mgr-list li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 14px}.access-mgr-rel{font-weight:600;color:var(--pp-fg)}.access-mgr-status{font-size:13px;font-weight:600;border-radius:999px;padding:3px 10px}.access-mgr-status.status-active{color:#065f46;background:#d1fae5}.access-mgr-status.status-expired{color:#92400e;background:#fef3c7}.access-mgr-status.status-revoked{color:#991b1b;background:#fee2e2}.access-mgr-exp{font-size:13px;color:var(--pp-muted)}.access-mgr-list button{margin-top:0;margin-left:auto;background:transparent;color:#b91c1c;border:1px solid #fecaca}.stay-thread{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:18px 20px;margin:18px 0}.stay-thread h2{font-size:20px;margin:0 0 12px;color:var(--pp-fg)}.stay-thread-loading{color:var(--pp-muted)}.stay-thread-list{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:10px}.stay-thread-empty{color:var(--pp-muted);line-height:1.5;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:14px 16px}.stay-msg{border-radius:14px;padding:10px 14px;max-width:85%;background:#f1f5f9;border:1px solid #e2e8f0}.stay-msg.is-mine{align-self:flex-end;background:#eef2ff;border-color:#c7d2fe}.stay-msg.from-staff{background:#ecfdf5;border-color:#a7f3d0}.stay-msg-who{display:block;font-size:13px;font-weight:600;color:var(--pp-muted);margin-bottom:2px}.stay-msg-body{margin:0;color:var(--pp-fg);line-height:1.45;white-space:pre-wrap;word-break:break-word}.stay-msg-when{display:block;font-size:12px;color:var(--pp-muted);margin-top:4px}.stay-thread-form{display:flex;flex-direction:column;gap:8px}.stay-thread-form label{font-weight:600;color:var(--pp-fg)}.stay-thread-form textarea{font-size:17px;padding:12px 14px;border:2px solid #e2e8f0;border-radius:14px;resize:vertical;font-family:inherit}.stay-thread-form textarea:focus{outline:none;border-color:var(--pp-ring)}.stay-thread-form button{align-self:flex-start;padding:12px 18px;font-size:17px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border:none;border-radius:14px;cursor:pointer}.stay-thread-form button:disabled{opacity:.5;cursor:not-allowed}.stay-thread-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:10px 12px;margin:0}.staff-msg{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:20px 22px;margin:18px 0 24px}.staff-msg h2{font-size:20px;margin:0 0 4px;color:var(--pp-fg)}.staff-msg-intro{color:var(--pp-muted);font-size:14px;margin:0 0 14px;line-height:1.5}.staff-msg label{display:block;font-weight:600;font-size:14px;color:var(--pp-fg);margin:10px 0 4px}.staff-msg select,.staff-msg textarea{width:100%;font-size:16px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;font-family:inherit}.staff-msg-list{list-style:none;padding:0;margin:12px 0;display:flex;flex-direction:column;gap:8px}.staff-msg-empty{color:var(--pp-muted)}.staff-msg-item{display:flex;flex-direction:column;gap:2px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 12px}.staff-msg-item.from-staff{background:#ecfdf5;border-color:#a7f3d0}.staff-msg-who{font-size:13px;font-weight:600;color:var(--pp-muted)}.staff-msg-body{color:var(--pp-fg);line-height:1.45;white-space:pre-wrap;word-break:break-word}.staff-msg-when{font-size:12px;color:var(--pp-muted)}.staff-msg-form{display:flex;flex-direction:column;gap:4px;margin-top:12px}.staff-msg-form button{align-self:flex-start;margin-top:8px;padding:10px 16px;font-size:15px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border:none;border-radius:12px;cursor:pointer}.staff-msg-form button:disabled{opacity:.5;cursor:not-allowed}.staff-msg-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:10px 12px}.stay-photos{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:18px 20px;margin:18px 0}.stay-photos h2{font-size:20px;margin:0 0 12px;color:var(--pp-fg)}.stay-photos-add{display:inline-block;cursor:pointer;padding:12px 18px;font-size:17px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border-radius:14px}.stay-photos-add input:disabled~*{opacity:.5}.stay-photos-empty{color:var(--pp-muted);line-height:1.5;margin:14px 0 0}.stay-photos-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:10px 12px;margin:10px 0 0}.stay-photos-grid{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:10px;gap:10px}.stay-photos-grid li{display:flex;flex-direction:column;gap:4px}.stay-photos-grid img{width:100%;height:140px;object-fit:cover;border-radius:12px;border:1px solid #e2e8f0;background:#f1f5f9}.stay-photos-cap{font-size:13px;color:var(--pp-muted)}.staff-photos{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:14px}.staff-photos h3{font-size:16px;margin:0 0 8px;color:var(--pp-fg)}.staff-photos-add{display:inline-block;cursor:pointer;padding:10px 16px;font-size:15px;font-weight:600;background:var(--pp-primary);color:var(--pp-on-primary);border-radius:12px}.staff-photos-grid{list-style:none;padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));grid-gap:8px;gap:8px}.staff-photos-grid img{width:100%;height:110px;object-fit:cover;border-radius:10px;border:1px solid #e2e8f0;background:#f1f5f9}.patient-block{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:18px 22px;margin:16px 0}.patient-block h2{font-size:24px;margin:0 0 12px;color:var(--pp-fg)}.patient-empty{color:var(--pp-muted);font-size:18px;line-height:1.5;margin:0}.patient-messages{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}.patient-messages li{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px}.patient-messages li.is-mine{background:#eef2ff;border-color:#c7d2fe}.patient-msg-who{display:block;font-size:16px;font-weight:600;color:var(--pp-muted);margin-bottom:4px}.patient-msg-body{margin:0;font-size:22px;line-height:1.45;color:var(--pp-fg);white-space:pre-wrap;word-break:break-word}.patient-photos{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-gap:12px;gap:12px}.patient-photos li{display:flex;flex-direction:column;gap:6px}.patient-photos img{width:100%;height:200px;object-fit:cover;border-radius:14px;border:1px solid #e2e8f0;background:#f1f5f9}.patient-photo-cap{font-size:16px;color:var(--pp-muted)}.patient-quick{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}.patient-quick button{font-size:20px;font-weight:600;padding:16px 22px;border-radius:16px;border:2px solid #c7d2fe;background:#eef2ff;color:var(--pp-primary);cursor:pointer}.patient-quick button:disabled{opacity:.5;cursor:not-allowed}.patient-reply-form{display:flex;flex-direction:column;gap:8px}.patient-reply-form label{font-size:18px;font-weight:600;color:var(--pp-fg)}.patient-reply-form textarea{font-size:20px;padding:14px 16px;border:2px solid #e2e8f0;border-radius:14px;resize:vertical;font-family:inherit}.patient-reply-form textarea:focus{outline:none;border-color:var(--pp-ring)}.patient-reply-form button{align-self:flex-start;font-size:20px;font-weight:600;padding:14px 24px;border:none;border-radius:16px;background:var(--pp-primary);color:var(--pp-on-primary);cursor:pointer}.patient-reply-form button:disabled{opacity:.5;cursor:not-allowed}.patient-sent{font-size:18px;font-weight:600;color:var(--pp-good);margin:12px 0 0}.patient-reply-error{font-size:18px;color:#b91c1c;margin:12px 0 0}.staff-msg-item.from-patient,.stay-msg.from-patient{background:#fdf2f8;border-color:#fbcfe8}.admin-stays{background:var(--pp-surface);border:1px solid #e2e8f0;border-radius:18px;padding:20px 22px;margin:18px 0}.admin-stays h2{font-size:20px;margin:0 0 8px;color:var(--pp-fg)}.admin-stays h3{font-size:16px;margin:18px 0 8px;color:var(--pp-fg)}.admin-stays label{display:block;font-weight:600;font-size:14px;color:var(--pp-fg);margin:10px 0 4px}.admin-stays input,.admin-stays select{width:100%;font-size:16px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px}.admin-inline{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}.admin-inline input{flex:1 1 160px;width:auto}.admin-admit button,.admin-inline button,.admin-stays-list button{font-size:15px;font-weight:600;padding:10px 16px;border:none;border-radius:12px;background:var(--pp-primary);color:var(--pp-on-primary);cursor:pointer;white-space:nowrap}.admin-admit button:disabled,.admin-inline button:disabled,.admin-stays-list button:disabled{opacity:.5;cursor:not-allowed}.admin-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:12px;padding:10px 12px;margin:10px 0 0}.admin-muted{color:var(--pp-muted);margin:8px 0}.admin-rooms{list-style:none;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:8px}.admin-rooms li{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 12px}.admin-room-name{font-weight:600;color:var(--pp-fg)}.admin-room-floor{font-size:13px;color:var(--pp-muted)}.admin-room-status{font-size:12px;font-weight:600;border-radius:999px;padding:2px 10px}.admin-room-status.status-free{color:#065f46;background:#d1fae5}.admin-room-status.status-occupied{color:#92400e;background:#fef3c7}.admin-room-status.status-maintenance{color:#991b1b;background:#fee2e2}.admin-admit{display:flex;flex-direction:column;gap:2px}.admin-admit button{align-self:flex-start;margin-top:10px}.admin-stays-list{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:10px}.admin-stays-list li{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 14px}.admin-stay-name{font-weight:600;color:var(--pp-fg)}.admin-stay-room{font-size:14px;color:var(--pp-muted)}.admin-stay-dates{font-size:13px;color:var(--pp-muted)}.admin-stays-list button{margin-left:auto;background:transparent;color:#b91c1c;border:1px solid #fecaca}