/* The hall's enamel phone opens into one chapter-sized conversation. */
.foyer-page-phone{height:100dvh;min-height:0!important;display:flex;flex-direction:column;overflow:hidden}
.foyer-page-phone .daily-resource-strip{display:none}
.foyer-page-phone>.content{flex:1;min-height:0;overflow:hidden;width:100%;max-width:1450px;margin:0 auto;padding:16px 26px}
.foyer-identity{display:flex;align-items:center;gap:15px;flex:none}.foyer-phone-key{position:relative;display:grid;place-items:center;width:34px;height:34px;border:1px solid #bca27b;border-radius:10px;color:#754356;background:#fff6e6;flex:none}
.foyer-phone-key svg{width:18px;height:18px}.foyer-phone-key>b{position:absolute;right:-7px;top:-7px;border-radius:12px;background:#754356;color:#fff8eb;font:600 .58rem/1.3 'Avenir Next',Arial;padding:2px 4px;min-width:16px;text-align:center}
.foyer-phone-key:focus-visible,.phone-room button:focus-visible,.incoming-phone button:focus-visible{outline:2px solid #754356;outline-offset:3px}
.foyer-phone-key.is-ringing svg,.incoming-phone-icon{animation:phone-arrival 600ms cubic-bezier(.23,1,.32,1) 2}
.phone-room{display:flex;flex-direction:column;height:100%;min-height:0;gap:10px;color:#41323e}
.phone-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}.phone-heading h1{font:400 1.8rem/1.1 Georgia,serif;color:#754356;margin:0 0 5px}.phone-heading p{font-size:.77rem;line-height:1.4;color:#8b715e;margin:0}.phone-heading>a{font-size:.75rem;color:#754356;white-space:nowrap}
.phone-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:20px;min-height:0;flex:1}
.phone-contacts{min-height:0;overflow:auto;background:#ede1cb;border:1px solid #c5ac86;padding:7px;scrollbar-width:thin}
.phone-contacts>p{font-size:.79rem;line-height:1.6;color:#806955;padding:14px}
.phone-contacts>button{display:flex;align-items:center;gap:10px;width:100%;min-height:80px;text-align:left;border:1px solid transparent;border-bottom-color:#cfbda1;background:transparent;color:inherit;padding:12px 9px;border-radius:4px;transition:background-color 140ms ease-out}
.phone-contacts>button[aria-pressed=true]{background:#fff8eb;border-color:#bca27b}.phone-contacts>button>span:nth-child(2){min-width:0;flex:1}.phone-contacts b{display:block;font:400 1.02rem Georgia,serif;color:#754356}.phone-contacts small{display:block;font-size:.61rem;line-height:1.4;color:#8a705e;margin:4px 0}.phone-contacts em{display:block;font-size:.66rem;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:25ch;color:#775c53}.phone-contacts i{font-size:.62rem;font-style:normal;border-radius:50%;min-width:19px;height:19px;display:grid;place-items:center;background:#754356;color:#fff8eb;flex:none}
.phone-avatar{display:grid;place-items:center;overflow:hidden;flex:none;width:45px;height:45px;border-radius:50%;background:#302431;color:#fff8eb;font:1.2rem Georgia,serif;border:1px solid #bba175}.phone-avatar svg,.phone-avatar img,.phone-call-portrait svg,.phone-call-portrait img{width:100%;height:100%;object-fit:contain}
.phone-device{position:relative;min-width:0;min-height:0;overflow:hidden;background:#302431;border:3px solid #b6a17d;border-radius:28px;box-shadow:0 5px 15px #30243124;display:flex;flex-direction:column;padding:23px 10px 10px}
.phone-earpiece{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:45px;height:4px;border-radius:5px;background:#b9a991}
.phone-person{display:flex;align-items:center;gap:12px;background:#fff8eb;padding:11px 15px;border-bottom:1px solid #dac7ab;flex:none}.phone-person>div{flex:1;min-width:0}.phone-person h2{font:400 1.3rem/1.2 Georgia,serif;color:#754356;margin:0 0 4px}.phone-person div>span{display:block;font-size:.65rem;line-height:1.35;color:#8a705e}.phone-person>small{font-size:.65rem;color:#987b61;white-space:nowrap}
.phone-conversation{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;background:#faf3e9;padding:14px 18px;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain}
.phone-bubble{font-size:.86rem;line-height:1.5;max-width:84%;padding:10px 13px;border-radius:15px;margin:0;color:#453440;flex:none}.phone-bubble small{display:block;font-size:.57rem;font-weight:600;line-height:1.3;color:#8a6e5d;margin-bottom:3px}.phone-bubble.is-theirs{background:#fffdf6;border:1px solid #e0d1bb;align-self:flex-start;border-bottom-left-radius:3px}.phone-bubble.is-yours{background:#ead1dd;align-self:flex-end;border-bottom-right-radius:3px}
.phone-call-record{align-self:center;font-size:.63rem;line-height:1.4;color:#987b62;margin:0 0 5px;flex:none}
.phone-cause{font-size:.63rem;color:#92765d;flex:none;max-width:90%;margin:1px 0}.phone-cause summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.phone-cause p{font-size:.69rem;line-height:1.5;margin:6px 0 0}
.phone-date-plan{border-left:3px solid #6d7f63;background:#e8e9da;padding:9px 12px;max-width:90%;flex:none}.phone-date-plan b{display:block;font-size:.73rem;color:#53634a}.phone-date-plan>span{display:block;font-size:.78rem;line-height:1.4;margin:4px 0}.phone-date-plan small{font-size:.6rem;line-height:1.4;color:#7e765c}.phone-date-plan.is-canceled{border-color:#a47b84;background:#eee1dd}.phone-date-plan.is-canceled b{color:#754356}
.phone-closed{font-size:.68rem;line-height:1.5;color:#8a705e;margin:4px 0;flex:none}
.phone-replies{background:#fff8eb;display:flex;flex-wrap:wrap;gap:7px;padding:10px 14px;flex:none;border-top:1px solid #dfcfb7}.phone-replies>button{flex:1 1 28%;font:inherit;font-size:.74rem;line-height:1.4;padding:9px 10px;min-height:40px;border:1px solid #baa174;color:#754356;background:#f2e7d2;border-radius:6px;text-align:left;transition:background-color 140ms ease-out,transform 120ms cubic-bezier(.23,1,.32,1)}.phone-replies>button:hover{background:#eadbc1}.phone-replies>button:active{transform:scale(.98)}.phone-replies>button small{display:block;font-size:.57rem;line-height:1.35;color:#8b715e;margin-top:3px}.phone-replies>button[aria-disabled=true]{background:#ede6dc;color:#8b796e;border-style:dashed}.phone-replies>[data-action-status]{flex:1 1 100%;font-size:.66rem;color:#a14d5b;line-height:1.4}.phone-replies>[data-action-status]:empty{display:none}
.phone-history{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;background:#fff8eb;border-top:1px solid #dfcfb7;font-size:.63rem;color:#90715c;padding:5px 14px}.phone-history button{min-height:29px;background:none;border:0;color:#754356;font:inherit;text-decoration:underline;text-underline-offset:3px;padding:3px}.phone-history button:disabled{opacity:.4;text-decoration:none}
.phone-call-screen{background:#f9f0e2;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;padding:18px;text-align:center}.phone-call-portrait{display:grid;place-items:center;color:#fff8eb;font:2rem Georgia,serif;width:100px;height:100px;border-radius:50%;overflow:hidden;background:#302431;border:2px solid #baa174;flex:none}.phone-call-screen p{font:400 1.7rem Georgia,serif;margin:0;color:#754356}.phone-call-screen>small{font-size:.72rem;color:#90715e}.phone-call-screen>div{display:flex;gap:12px;margin-top:10px}.phone-call-screen button{min-height:43px;padding:10px 18px;border:1px solid #bca27b;background:#f0e0c4;border-radius:8px;color:#754356;font-size:.8rem}.phone-call-screen .phone-answer{background:#6d7f63;color:#fff8eb;border-color:#6d7f63}
.phone-empty{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;background:#fff8eb;text-align:center;gap:18px}.phone-empty>span{font-size:2.5rem;color:#b29a72}.phone-empty h2{font:400 1.7rem Georgia,serif;margin:0;color:#754356}.phone-empty p{font-size:.86rem;line-height:1.6;max-width:42ch;margin:0;color:#806955}.phone-empty small{font-size:.7rem;line-height:1.4;color:#90715e}.phone-empty .btn{font-size:.8rem}
.phone-footnote{font-size:.63rem;line-height:1.4;color:#90715e;margin:0;flex:none}
.incoming-phone{position:fixed;right:22px;top:207px;z-index:110;display:flex;align-items:center;gap:9px;padding:10px 12px;max-width:min(430px,calc(100vw - 24px));border:1px solid #baa174;border-left:4px solid #6d7f63;background:#fff8eb;box-shadow:0 5px 20px #30243129;border-radius:9px;color:#754356}.incoming-phone-icon{font-size:1.4rem;flex:none;color:#6d7f63}.incoming-phone>div{flex:1;min-width:0}.incoming-phone small{font-size:.57rem;display:block;color:#92765d}.incoming-phone b{font:400 1rem Georgia,serif;display:block;margin:2px 0}.incoming-phone div>span{display:block;max-width:24ch;font-size:.57rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#92765d}.incoming-phone button{min-height:34px;border:1px solid #bca27b;border-radius:6px;padding:6px 9px;font-size:.67rem;color:#754356;background:#efe2cb}.incoming-phone button[data-phone-answer]{background:#6d7f63;border-color:#6d7f63;color:#fff8eb}
.foyer-phone-screen .foyer-inbox-button{width:100%;padding:7px 4px;border-bottom:1px solid #bca27b;color:#754356;font-size:.63rem;text-align:left}.foyer-phone-screen .foyer-inbox-button b{float:right;border-radius:9px;background:#754356;color:#fff8eb;padding:1px 4px;font-size:.58rem}.foyer-phone.has-phone-news{filter:drop-shadow(0 0 8px #c59775)}
@keyframes phone-arrival{0%,100%{opacity:1;transform:rotate(0)}40%{opacity:.65;transform:rotate(-8deg)}70%{transform:rotate(8deg)}}
@media(max-width:700px){
 .foyer-identity{gap:7px}.foyer-phone-key{width:27px;height:27px;border-radius:8px}.foyer-phone-key svg{width:15px;height:15px}.foyer-phone-key>b{right:-5px;top:-6px;font-size:.5rem;min-width:14px;padding:1px 3px}
 .foyer-page-phone .foyer-keyrail{display:none}.foyer-page-phone>.content{padding:9px 10px}.phone-room{gap:7px}.phone-heading h1{font-size:1.35rem;margin-bottom:2px}.phone-heading p{font-size:.64rem}.phone-heading>a{font-size:.66rem}.phone-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px}.phone-contacts{display:flex;overflow-x:auto;overflow-y:hidden;gap:5px;padding:4px;border:0;background:transparent;scrollbar-width:thin}.phone-contacts>button{flex:0 0 165px;min-height:55px;padding:6px;border-color:#d6bd98;background:#eadfc9;gap:7px}.phone-contacts b{font-size:.83rem}.phone-contacts small{font-size:.51rem;max-width:17ch;margin:2px 0}.phone-contacts em{display:none}.phone-contacts>p{margin:0;padding:2px;font-size:.65rem}.phone-contacts .phone-avatar{width:32px;height:32px}.phone-contacts i{font-size:.53rem;min-width:16px;height:16px}
 .phone-device{border-radius:23px;padding:20px 6px 6px}.phone-earpiece{top:8px}.phone-person{padding:8px 10px;gap:8px}.phone-person>.phone-avatar{width:34px;height:34px}.phone-person h2{font-size:1.05rem;margin-bottom:2px}.phone-person div>span{font-size:.56rem}.phone-person>small{font-size:.56rem}.phone-conversation{padding:10px;gap:7px}.phone-bubble{font-size:.82rem;line-height:1.45;max-width:93%;padding:8px 10px}.phone-bubble small{font-size:.53rem}.phone-cause{font-size:.59rem}.phone-date-plan{padding:8px 10px;max-width:100%}.phone-date-plan b{font-size:.68rem}.phone-date-plan>span{font-size:.74rem}.phone-date-plan small{font-size:.57rem}.phone-replies{padding:8px;gap:5px;flex-direction:column}.phone-replies>button{flex:none;font-size:.73rem;line-height:1.3;padding:8px 10px;min-height:36px}.phone-replies>button small{font-size:.54rem;margin-top:2px}.phone-history{padding:3px 9px;font-size:.59rem}.phone-footnote{font-size:.55rem}.phone-call-screen{gap:14px;padding:14px}.phone-call-screen p{font-size:1.4rem}.phone-call-screen small{font-size:.68rem}.phone-call-screen button{font-size:.75rem;padding:9px 14px}.phone-call-portrait{width:80px;height:80px}.phone-empty{gap:13px;padding:18px}.phone-empty h2{font-size:1.4rem}.phone-empty p{font-size:.78rem}.phone-empty small{font-size:.63rem}.phone-empty .btn{font-size:.72rem}.incoming-phone{top:119px;right:10px;left:10px;max-width:none;padding:8px;gap:7px}.incoming-phone-icon{font-size:1.2rem}.incoming-phone b{font-size:.93rem}.incoming-phone div>span{max-width:19ch;font-size:.54rem}.incoming-phone button{font-size:.62rem;padding:6px;min-height:32px}
}
@media(max-height:700px) and (max-width:700px){.phone-heading p{display:none}.phone-contacts>button{min-height:43px;padding:4px}.phone-contacts .phone-avatar{width:27px;height:27px}.phone-person{padding:6px 8px}.phone-conversation{padding:8px}.phone-bubble{font-size:.75rem}.phone-replies>button{font-size:.67rem;min-height:31px;padding:6px 8px}.phone-call-portrait{width:60px;height:60px}.phone-call-screen{gap:10px}.phone-footnote{display:none}}
@media(prefers-reduced-motion:reduce){.foyer-phone-key.is-ringing svg,.incoming-phone-icon{animation:none}.phone-contacts>button,.phone-replies>button{transition:none}.phone-replies>button:active{transform:none}}

@media(min-width:701px){.foyer-keyrail{grid-template-columns:repeat(7,minmax(0,156px))}.phone-replies>button{flex-basis:17%}}
