/* Phone screens for calls, chats, articles and banners. Palette from the key art: peach, brick, dusk violet, cream, indigo text. */
.phoneScreen{border:0;padding:0;background:transparent;max-width:none;max-height:none;overflow:visible;color:#22304a;font-family:'PingFang SC','Noto Sans CJK SC',system-ui,sans-serif}
.phoneScreen::backdrop{background:#1b2236b8;backdrop-filter:blur(3px)}
.phoneScreen[open]{display:grid;place-items:center;position:fixed;inset:0;width:100vw;height:100dvh;animation:psUp .32s ease-out}
@keyframes psUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.psDevice{position:relative;width:min(360px,92vw);height:min(720px,90dvh);border-radius:44px;padding:14px;background:#22283a;box-shadow:0 30px 90px #0b0f1c88,inset 0 0 0 2px #4a5068}
.psNotch{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:96px;height:22px;border-radius:12px;background:#11141f;z-index:2}
.psStatus{position:absolute;top:22px;left:38px;right:38px;display:flex;justify-content:space-between;font-size:12px;font-weight:600;z-index:3;color:#fff8ec}
.psScreen{position:relative;height:100%;border-radius:32px;overflow:hidden;display:flex;flex-direction:column;padding:62px 22px 26px;background:linear-gradient(170deg,#f7c79b 0%,#e9a07f 34%,#9b88b4 72%,#4f5b8a 100%)}
.psCaller{text-align:center;color:#fffaf0;margin-top:28px}.psCaller h2{font-size:28px;font-weight:500;margin:14px 0 4px;letter-spacing:.04em}.psCaller p{margin:0;font-size:14px;opacity:.85}
.psCaller.small{margin-top:4px}.psCaller.small h2{font-size:20px;margin:8px 0 2px}
.psAvatar{width:84px;height:84px;border-radius:50%;object-fit:cover;border:2px solid #fff8ec88;display:inline-grid;place-items:center;font-size:34px;background:#ffffff33;color:#fffaf0}
.psCaller.small .psAvatar{width:56px;height:56px;font-size:24px}
.psRing{flex:1}
.ringing .psAvatar{animation:psPulse 1.2s ease-in-out infinite}
@keyframes psPulse{50%{box-shadow:0 0 0 14px #fff8ec22}}
.psCallActions{display:flex;justify-content:space-around;margin-bottom:22px}
.psRound{display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:0;color:#fffaf0;font:13px inherit;cursor:pointer}
.psRound .psRoundIcon{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;font-size:28px;color:#fff;box-shadow:0 8px 20px #1b223655}
.psRound.answer .psRoundIcon{background:#5aa36f}.psRound.decline .psRoundIcon{background:#c85d4a}
.psRound:focus-visible .psRoundIcon{outline:3px solid #fff8ec;outline-offset:3px}
.ringing .psRound.answer .psRoundIcon{animation:psShake 1.1s ease-in-out infinite}
@keyframes psShake{0%,60%,100%{transform:none}70%{transform:rotate(-12deg)}80%{transform:rotate(12deg)}90%{transform:rotate(-8deg)}}
.psMeta{font-variant-numeric:tabular-nums}
.psWave{display:flex;justify-content:center;align-items:center;gap:4px;height:46px;margin:18px 0}
.psWave span{width:4px;height:12px;border-radius:2px;background:#fff8ecd0;animation:psWave .9s ease-in-out infinite alternate}
@keyframes psWave{to{height:40px}}
.phoneScreen.still .psWave span{animation:none;height:20px}
.psPlayback{height:5px;border-radius:3px;background:#ffffff40;margin:24px 8px;overflow:hidden}.psPlayback span{display:block;height:100%;width:0;background:#fff8ec;transition:width 1s linear}
.psSubs{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:4px 2px}
.psLine{margin:0;padding:12px 14px;border-radius:16px;background:#fffaf0e8;color:#22304a;line-height:1.7;font-size:15px;white-space:pre-line;animation:psUp .25s ease-out}
.psLine b{color:#b4573c;font-weight:600}
.psTap{text-align:center;color:#fffaf0cc;font-size:12px;margin-top:8px}
.psChoices{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.psChoice,.psDone{font:15px inherit;border:0;border-radius:14px;padding:12px 14px;background:#fffaf0;color:#22304a;cursor:pointer;box-shadow:0 4px 14px #1b223633}
.psChoice:hover,.psChoice:focus-visible,.psDone:focus-visible{outline:3px solid #22304a55}
.psDone{margin-top:12px;background:#22304a;color:#fffaf0}
.psScreen > .psRound.decline:not([hidden]){align-self:center;margin-top:10px}
.phoneScreen.chat .psScreen,.phoneScreen.article .psScreen{background:#fbf3e4;padding:58px 0 18px}
.psChatHead{padding:4px 18px 12px;border-bottom:1px solid #e6d8bf;text-align:center}.psChatHead h2{font-size:17px;margin:4px 0 0}.psChatHead small{color:#7d7a86}
.psBubbles{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px 16px 8px}
.psBubble{max-width:78%;padding:10px 13px;border-radius:18px;line-height:1.6;font-size:15px;white-space:pre-line;animation:psUp .25s ease-out}
.psBubble.in{align-self:flex-start;background:#fff;color:#22304a;border-bottom-left-radius:6px;box-shadow:0 2px 6px #22304a14}
.psBubble.out{align-self:flex-end;background:#d98a6a;color:#fff;border-bottom-right-radius:6px}
.psBubble.location{display:flex;gap:8px;align-items:center}.psPin{font-size:20px}
.phoneScreen.chat .psChoices,.phoneScreen.chat .psDone{margin:8px 16px 0}
.psArticle{flex:1;overflow:auto;padding:12px 22px}.psArticle h2{font:600 21px/1.5 'Songti SC','Noto Serif CJK SC',serif;margin:10px 0 14px;color:#22304a}.psArticle p{line-height:1.9;color:#33405a;white-space:pre-line}
.psSource{color:#b4573c;letter-spacing:.08em}.psNote{display:block;margin-top:14px;color:#8a8794;font-size:12px}
.phoneScreen.article .psDone{margin:8px 22px 0}
.psBanner{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:2147483000;width:min(420px,calc(100vw - 24px));display:flex;gap:6px;align-items:stretch;padding:6px;border-radius:20px;background:#fffaf0f2;box-shadow:0 14px 40px #1b223655;animation:psDrop .35s ease-out;font-family:'PingFang SC','Noto Sans CJK SC',system-ui,sans-serif}
@keyframes psDrop{from{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%,0)}}
.psBannerBody{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:0;background:none;padding:8px 10px;color:#22304a;font:14px/1.5 inherit;cursor:pointer}.psBannerBody b{font-size:13px;color:#b4573c}
.psBannerLater{border:0;background:#22304a12;color:#22304a;border-radius:14px;padding:0 12px;font:12px inherit;cursor:pointer}
@media(prefers-reduced-motion:reduce){.phoneScreen[open],.psBanner,.psLine,.psBubble{animation:none}.ringing .psAvatar,.ringing .psRound.answer .psRoundIcon,.psWave span{animation:none}}
body.still .phoneScreen[open],body.still .psBanner{animation:none}

.phoneScreen.app .psScreen{background:#fbf3e4;padding:58px 0 18px}
.psAppHead{display:flex;justify-content:space-between;align-items:baseline;padding:4px 20px 12px;border-bottom:1px solid #e6d8bf}.psAppHead b{color:#b4573c;font-size:17px}.psAppHead small{color:#7d7a86}
.psJobTags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.psJobTags span{font-size:12px;padding:3px 9px;border-radius:999px;background:#f1dcc6;color:#7a3f2c}
.psField{display:flex;gap:10px;align-items:center;padding:12px 14px;margin-top:12px;border-radius:12px;background:#fff;border:1px solid #e6d8bf}.psField.disabled{opacity:.55}
.psNote.warn{color:#b4573c}.psAfter{margin-top:16px;color:#33405a}
.phoneScreen.app .psDone,.phoneScreen.app .psChoice{margin:8px 22px 0}.psDone:disabled{opacity:.4;cursor:not-allowed}
.phoneScreen.chat .psStatus,.phoneScreen.article .psStatus,.phoneScreen.app .psStatus{color:#22304a}
/* Lock-screen push, cert row, contacts list and card */
.psLock{display:flex;flex-direction:column;align-items:center;gap:14px;padding:34px 12px}
.psLockTime{font:300 54px/1 system-ui;letter-spacing:2px}
.psLockNote{width:100%;text-align:left;display:grid;gap:4px;padding:12px 14px;border:0;border-radius:16px;background:#ffffffe6;color:#22304a;font:13px/1.45 system-ui;cursor:pointer;box-shadow:0 8px 20px #0003}
.psLockHint{opacity:.7;font:12px system-ui}
.psField{display:flex;justify-content:space-between;gap:10px;width:100%;padding:10px 4px;border:0;border-bottom:1px solid #0001;background:none;font:14px system-ui;color:inherit;text-align:left}
.psCert{cursor:pointer}.psCert b{color:#b5543a}.psCert:disabled{opacity:.6;cursor:default}
.psContacts{flex:1;overflow-y:auto;max-height:62vh;display:flex;flex-direction:column}
.psLetter{position:sticky;top:0;font:600 12px system-ui;padding:4px 8px;background:#efe6d8;color:#7a3f2c}
.psContact{border:0;border-bottom:1px solid #0001;background:none;padding:11px 10px;text-align:left;font:15px system-ui;color:inherit;cursor:pointer}
.psContact.nope{background:#0000000d}
.psCard{display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 12px;text-align:center}
.psCard .psAvatar{width:76px;height:76px;font-size:30px}
.phoneScreen.contacts .psScreen{background:#fbf3e4;padding:58px 0 18px;color:#22304a;display:flex;flex-direction:column}
.phoneScreen.contacts .psStatus{color:#22304a}
.phoneScreen.contacts .psDone{margin:8px 22px 0}
.phoneScreen.app .psLock{color:#22304a}
.psCard .psAvatar,.psLockNote{color:#22304a}.psCard .psAvatar{background:#f1dcc6;border-color:#d9b99a}
.psAfter{margin:10px 0 0;line-height:1.6}
.psContacts:focus{outline:none}

.psTyping{opacity:.55;letter-spacing:3px;font-weight:700;animation:psTypingPulse 1s ease-in-out infinite}@keyframes psTypingPulse{50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){.psTyping{animation:none}}

/* shared link card (sister's documentary) */
.psLink{display:flex;align-items:center;gap:10px;text-align:left;font:inherit;cursor:pointer;border:1px solid #f3b7c8;background:#fff;max-width:86%;padding:9px 11px;animation:psLinkPulse 1.6s ease-in-out infinite}.psLink.opened{animation:none;opacity:.75}
.psLinkPlay{flex:none;display:grid;place-items:center;width:44px;height:30px;border-radius:6px;background:#fb7299;color:#fff;font-size:13px}.psLinkText{display:flex;flex-direction:column;gap:2px}.psLinkText b{font-size:13px;font-weight:600;color:#2b2b2b}.psLinkText small{font-size:11px;color:#8a7f86}
@keyframes psLinkPulse{50%{box-shadow:0 0 0 4px #fb729933}}
@media (prefers-reduced-motion:reduce){.psLink{animation:none}}
