.patient-signal{margin:18px 0;padding:20px;border:1px solid #dce6e2;border-radius:20px;background:#fff;color:#172e29;box-shadow:0 5px 22px #173b2910;max-width:100%;min-width:0}
.patient-signal *,.ps-dialog *{box-sizing:border-box}
.ps-heading,.ps-controls,.ps-actions,.ps-card-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ps-heading{justify-content:space-between;margin-bottom:14px}.ps-heading h2{font-size:20px;margin:0}.ps-kicker{font-size:11px;letter-spacing:.12em;color:#5c776d;font-weight:700;margin:0 0 4px}
.ps-button{border:1px solid #c8d7d0;border-radius:10px;background:#f5f8f6;padding:10px 14px;color:#183c30;font:inherit;font-size:13px;cursor:pointer;line-height:1.35;white-space:normal}
.ps-button:hover{filter:brightness(.96)}.ps-button:focus-visible,.ps-input:focus-visible{outline:3px solid #4072dc;outline-offset:3px}.ps-button:disabled{opacity:.5;cursor:not-allowed}
.ps-main-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:16px 0}.ps-main-actions .ps-button{min-height:70px;font-size:15px;font-weight:800;letter-spacing:.025em}
.ps-arrival{background:#163f34;color:#fff;border-color:#163f34}.ps-emergency{background:#fff2f0;color:#a21d15;border:2px solid #d72b22}.ps-emergency-call{background:#b62018;color:white;border-color:#b62018}
.ps-muted{font-size:12px;line-height:1.5;color:#62736e;margin:8px 0}.ps-warning{background:#fff8e5;border:1px solid #ecdba0;padding:12px;border-radius:10px;font-size:13px;line-height:1.5}.ps-error{color:#ad211a;font-size:13px;line-height:1.5}.ps-status{font-size:12px;color:#62736e;min-height:18px;margin:8px 0}
.ps-input{font:inherit;font-size:14px;border:1px solid #c9d5d0;border-radius:9px;padding:10px;background:white;color:#17382d;min-width:0;max-width:100%}.ps-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;flex:1;min-width:160px}.ps-field textarea{resize:vertical;min-height:70px}.ps-controls{margin:8px 0}.ps-controls .ps-field{max-width:320px}
.ps-duty{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:11px;background:#f1f5f3;flex-wrap:wrap}.ps-duty-on{background:#e7f5e9}.ps-duty strong{font-size:13px}.ps-feed{display:grid;gap:10px;margin-top:14px}.ps-feed:empty{display:none}
.ps-card{border:1px solid #dde3df;border-left:6px solid #7b8c82;border-radius:12px;padding:14px;background:#fcfdfc;min-width:0;overflow-wrap:anywhere}.ps-card.ps-green{border-left-color:#34a65a}.ps-card.ps-yellow{border-left-color:#e3b52a;background:#fffdf5}.ps-card.ps-red{border-left-color:#d84038;background:#fff5f2}.ps-card.ps-emergency{border:2px solid #b82018;border-left-width:8px;background:#fff0ec}.ps-card-top{justify-content:space-between}.ps-card h3{font-size:15px;margin:0}.ps-card time{font-size:12px;color:#62736e}.ps-card p{font-size:13px;line-height:1.5;margin:7px 0}.ps-card .ps-actions{margin-top:10px;gap:8px}.ps-ack{font-weight:600;color:#236147}.ps-recipients{margin-top:9px;font-size:12px}.ps-recipients summary,.ps-details>summary{cursor:pointer;padding:6px 0;font-weight:600}.ps-recipients ul{margin:8px 0;padding-left:18px}.ps-recipients li{margin:4px 0}.ps-details{margin-top:16px;border-top:1px solid #e1e8e4;padding-top:8px;font-size:13px}.ps-config-form{display:grid;gap:12px;padding:14px 0}.ps-member-list{max-height:200px;overflow:auto;display:grid;gap:7px;padding:10px;border:1px solid #d9e3dd;border-radius:10px}.ps-check{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:400}.ps-check input{margin-top:2px;flex:0 0 auto}.ps-roster{display:grid;gap:6px;margin:8px 0}.ps-roster-row{display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid #edf1ee;padding:8px 0}.ps-roster-row span{font-size:12px}.ps-pill{border-radius:999px;padding:3px 9px;white-space:nowrap;background:#eef0ef;font-size:11px!important;font-weight:700;align-self:start}.ps-pill-on{background:#e1f5e8;color:#21643b}
.ps-dialog{border:1px solid #d7e3dc;border-radius:22px;padding:24px;width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;color:#183a2e;background:#fff;box-shadow:0 20px 90px #09291e55}.ps-dialog::backdrop{background:#0d261f99;backdrop-filter:blur(3px)}.ps-dialog h2{font-size:22px;margin:0 0 12px}.ps-dialog .ps-actions{margin-top:18px}.ps-dialog .ps-field{margin:12px 0}.ps-category-list{display:grid;gap:10px;margin:18px 0}.ps-category{font-weight:700;text-align:left;padding:16px;border-width:2px}.ps-category.ps-green{background:#edf8ec;border-color:#75b66b;color:#24551e}.ps-category.ps-yellow{background:#fff7d6;border-color:#dfbd48;color:#71550a}.ps-category.ps-red{background:#ffefed;border-color:#d97972;color:#97271f}.ps-category[aria-pressed=true]{outline:3px solid #173e34;outline-offset:2px}
.ps-notice{position:fixed;right:20px;bottom:20px;z-index:1400;width:min(390px,calc(100vw - 32px));border:2px solid #bd2b22;background:#fff8f2;border-radius:16px;padding:16px;box-shadow:0 8px 32px #34180e33;color:#4b271b}.ps-notice strong{display:block;margin-bottom:7px}.ps-notice p{font-size:13px;margin:7px 0}.ps-notice[hidden]{display:none}.ps-notice .ps-actions{margin-top:10px}.ps-journal-list{max-height:560px;overflow:auto;display:grid;gap:8px;margin:10px 0}
.ps-signal-lamp{position:fixed;right:max(96px,calc(env(safe-area-inset-right) + 78px));bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));z-index:1395;display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 5px 18px #0f172a38;cursor:pointer;color:#0f172a}.ps-signal-lamp:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.ps-signal-lamp-light{width:24px;height:24px;border-radius:50%;background:#34a65a;box-shadow:0 0 0 6px #34a65a2b}.ps-signal-lamp[data-category=YELLOW] .ps-signal-lamp-light{background:#e3b52a;box-shadow:0 0 0 6px #e3b52a2b}.ps-signal-lamp[data-category=RED] .ps-signal-lamp-light,.ps-signal-lamp[data-category=EMERGENCY] .ps-signal-lamp-light{background:#d84038;box-shadow:0 0 0 6px #d840382b}.ps-signal-lamp-count{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#132238;color:#fff;font-size:11px;font-weight:800;line-height:1}.ps-signal-lamp-unseen{animation:ps-lamp-pulse 1.35s ease-in-out infinite}@keyframes ps-lamp-pulse{50%{box-shadow:0 5px 18px #0f172a38,0 0 0 9px #00b4db24}}
@media(max-width:650px){.patient-signal{padding:14px;border-radius:15px}.ps-main-actions{grid-template-columns:1fr}.ps-main-actions .ps-button{min-height:58px}.ps-heading{align-items:flex-start}.ps-controls{align-items:stretch}.ps-controls .ps-field{max-width:none}.ps-dialog{padding:18px}.ps-card{padding:12px}.ps-actions .ps-button{flex:1}.ps-heading h2{font-size:18px}.ps-notice{right:16px;bottom:16px}}
@media print{.patient-signal,.ps-notice,.ps-dialog,.ps-signal-lamp{display:none!important}}
.ps-arrival-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 20px));max-height:calc(100dvh - 20px);padding:18px;border-radius:16px}.ps-arrival-dialog h2{font-size:20px;line-height:1.2;margin:0 0 8px}.ps-arrival-dialog>.ps-muted{margin:6px 0;line-height:1.35}.ps-arrival-dialog .ps-category-list{gap:9px;margin:12px 0}.ps-arrival-dialog .ps-category{display:flex;align-items:center;gap:14px;min-height:86px;padding:11px 13px;border-width:1.5px;border-radius:12px;box-shadow:none;white-space:normal}.ps-category-copy{display:grid;gap:4px;min-width:0}.ps-category-title{font-size:18px;line-height:1.2;font-weight:800;color:#101b30}.ps-category-description{font-size:13px;line-height:1.35;font-weight:400;color:#47566d}.ps-category-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%}.ps-category-icon svg{width:28px;height:28px}.ps-arrival-dialog .ps-green{background:#eff9f3;border-color:#54b887;color:#07592e}.ps-green .ps-category-icon{background:#cff0dd}.ps-arrival-dialog .ps-yellow{background:#fffae9;border-color:#edce6c;color:#203a3a}.ps-yellow .ps-category-icon{background:#ffedb0}.ps-arrival-dialog .ps-red{background:#fff0f1;border-color:#eb757c;color:#b01b25}.ps-red .ps-category-icon{background:#ffd1d4}.ps-red .ps-category-title{color:#8e1520}.ps-arrival-dialog .ps-category[aria-pressed=true]{outline:3px solid currentColor;outline-offset:2px}
.ps-arrival-extra{margin:4px 0;font-size:12px;line-height:1.4}.ps-arrival-extra>summary{cursor:pointer;padding:6px 0;font-weight:600}.ps-arrival-extra>summary:focus-visible{outline:3px solid #4072dc;outline-offset:2px}.ps-category-help p{margin:6px 0}.ps-arrival-extra .ps-field{min-width:0;margin:8px 0}.ps-arrival-extra textarea{min-height:56px}.ps-arrival-dialog>.ps-error:empty{display:none}.ps-arrival-dialog .ps-actions{position:sticky;bottom:-18px;z-index:1;background:#fff;flex-wrap:nowrap;gap:8px;margin-top:8px;padding:8px 0 2px}.ps-arrival-dialog .ps-actions .ps-button{min-height:44px;min-width:0;padding:9px 11px;flex:0 0 auto}.ps-arrival-dialog .ps-actions .ps-arrival{flex:1}
@media(max-width:550px),(max-height:700px){.ps-arrival-dialog{padding:14px}.ps-arrival-dialog h2{font-size:18px}.ps-arrival-dialog .ps-category{gap:10px;padding:8px 10px;min-height:64px}.ps-category-icon{flex-basis:36px;width:36px;height:36px}.ps-category-icon svg{width:24px;height:24px}.ps-category-title{font-size:16px}.ps-arrival-dialog .ps-category-description{display:none}.ps-arrival-dialog .ps-category-list{gap:8px;margin:10px 0}.ps-arrival-dialog .ps-actions{bottom:-14px}}
@media(max-width:350px){.ps-arrival-dialog{padding:12px}.ps-arrival-dialog h2{font-size:17px}.ps-category-title{font-size:15px}.ps-arrival-dialog .ps-actions{bottom:-12px}.ps-arrival-dialog .ps-actions .ps-button{font-size:12px;padding:9px 8px}}
@media(max-width:650px){.ps-signal-lamp{right:max(62px,calc(env(safe-area-inset-right) + 58px));bottom:max(88px,calc(env(safe-area-inset-bottom) + 78px));width:44px;height:44px;min-width:44px}.ps-signal-lamp-light{width:21px;height:21px}body:has(.neo-chat) .ps-signal-lamp{top:calc(76px + env(safe-area-inset-top));right:max(58px,calc(env(safe-area-inset-right) + 54px));bottom:auto}}
@media(prefers-reduced-motion:reduce){.ps-signal-lamp-unseen{animation:none}}
