/* Jamie investigation phone. Scoped so it never collides with old Yume phone/switchboard pages. */
.phone-companion,
.phone-companion *{box-sizing:border-box}
.phone-companion{position:fixed;left:14px;bottom:12px;z-index:2147483000;width:min(304px,calc(100vw - 24px));height:min(520px,calc(100dvh - 24px));max-width:none;max-height:none;margin:0;padding:0;font-family:Arial,Helvetica,sans-serif;color:#151515;text-align:left;line-height:normal;pointer-events:auto!important;isolation:isolate;filter:drop-shadow(0 12px 18px rgba(0,0,0,.28));transition:width .16s ease,height .16s ease,filter .16s ease}
.phone-companion button,.phone-companion a,.phone-companion select{pointer-events:auto!important;touch-action:manipulation}
.phone-hardware{position:relative;width:100%;height:100%;padding:16px 10px 13px;background:#171717;border:2px solid #050505;border-radius:31px;box-shadow:inset 0 0 0 1px #414141,inset 0 0 0 3px #0d0d0d;overflow:visible}
.phone-hardware:before{content:"";position:absolute;right:-4px;top:92px;width:4px;height:52px;background:#090909;border-radius:0 3px 3px 0}.phone-hardware:after{content:"";position:absolute;left:-4px;top:76px;width:4px;height:68px;background:#090909;border-radius:3px 0 0 3px}
.phone-speaker{position:absolute;z-index:5;top:8px;left:50%;width:54px;height:4px;margin-left:-27px;border-radius:4px;background:#3a3a3a;box-shadow:0 0 0 1px #080808;pointer-events:none}
.phone-home-line{position:absolute;bottom:6px;left:50%;width:76px;height:3px;margin-left:-38px;border-radius:4px;background:#6f6f6f;pointer-events:none}
.jamie-phone-screen{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#f5f2e7!important;color:#151515!important;border:1px solid #000!important;border-radius:21px!important;box-shadow:none!important;font-family:Arial,Helvetica,sans-serif!important;font-size:initial!important;line-height:normal!important}
.phone-status{flex:0 0 20px;height:20px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#f8f5eb;color:#111;font:700 8px/1 Arial;letter-spacing:.02em}.phone-status-right{font-size:7px;letter-spacing:.05em}
.phone-contact-bar{flex:0 0 52px;min-height:52px;display:grid;grid-template-columns:24px 32px minmax(0,1fr) auto;gap:7px;align-items:center;padding:6px 8px;background:#ffdf43;border-top:1px solid #111;border-bottom:1px solid #111}
.phone-back,.phone-icon-button{border:0;color:#111;cursor:pointer}.phone-back{width:24px;height:34px;background:transparent;font:400 27px/30px Arial;padding:0}.phone-icon-button{border:1px solid #191919;border-radius:9px;padding:5px 6px;background:#fff7c5;font:900 7px Arial;letter-spacing:.04em;white-space:nowrap}.phone-contact-avatar,.phone-contact-large{position:relative;display:grid;place-items:center;border-radius:50%;background:#171717;color:#ffdf43;font-weight:900;border:1px solid #000}.phone-contact-avatar{width:32px;height:32px;font-size:13px}.phone-contact-name{min-width:0;overflow:hidden}.phone-contact-name b{display:block;font-size:12px;line-height:1.1}.phone-contact-name span{display:block;margin-top:2px;color:#4d462f;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-content{position:relative;flex:1 1 auto;min-height:0;min-width:0;background:#ece9df;overflow:hidden}.phone-tab{display:none;height:100%;min-height:0;overflow:auto}.phone-tab.active{display:block}.phone-tab[data-phone-screen="chat"].active{position:relative;display:block;overflow:hidden}
.phone-chat{position:absolute;inset:0 0 111px 0;overflow-y:auto;overflow-x:hidden;padding:10px 8px 12px;background-color:#e7e4da;background-image:linear-gradient(rgba(0,0,0,.018) 1px,transparent 1px);background-size:100% 23px;scrollbar-width:thin}
.phone-message-row{display:flex;margin:5px 0}.phone-message-row.from-jamie{justify-content:flex-start}.phone-message-row.from-you{justify-content:flex-end}.phone-bubble{max-width:82%;border:1px solid #9b978b;border-radius:14px;padding:7px 9px;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.05)}.from-you .phone-bubble{background:#ffdf43;border-color:#b59c1b;border-bottom-right-radius:4px}.from-jamie .phone-bubble{border-bottom-left-radius:4px}.phone-bubble p{margin:0;font:500 11px/1.38 Arial;color:#191919}.phone-bubble small{display:block;margin-top:4px;font:700 7px Arial;color:#777064;text-align:right}.phone-chat-empty{padding:28px 16px;text-align:center;color:#6f6a5d}.phone-chat-empty b,.phone-chat-empty span{display:block}.phone-chat-empty b{font-size:12px}.phone-chat-empty span{font-size:9px;line-height:1.4;margin-top:5px}
.phone-pin{position:absolute;z-index:3;left:8px;right:8px;bottom:43px;min-height:55px;border:1px solid #8c8677;border-radius:9px;background:#fffdf5;padding:7px 8px;box-shadow:0 2px 7px rgba(0,0,0,.09)}.phone-pin small{display:block;color:#786f55;font:900 7px Arial;letter-spacing:.08em;margin-bottom:3px}.phone-pin>div{display:flex;align-items:center;gap:7px}.phone-pin b{flex:1;min-width:0;font-size:10px;line-height:1.15}.phone-pin a{flex:0 0 auto;border:1px solid #111;border-radius:7px;background:#ffdf43;color:#111;padding:4px 7px;text-decoration:none;font:900 8px Arial}
.phone-quick-replies{position:absolute;z-index:4;left:8px;right:8px;bottom:7px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.phone-quick-replies button{min-height:29px;border:1px solid #292929;border-radius:10px;background:#fff;color:#151515;font:800 9px Arial;cursor:pointer}.phone-quick-replies button:last-child{background:#fff6c4}
.phone-page-title{padding:13px 12px 9px;border-bottom:1px solid #bab5a8;background:#f7f4e9}.phone-page-title b,.phone-page-title span{display:block}.phone-page-title b{font-size:14px}.phone-page-title span{margin-top:3px;font-size:9px;line-height:1.35;color:#6d675b}.phone-notes-list{padding:7px 9px 14px}.phone-notes-list article{padding:8px 5px;border-bottom:1px solid #c9c4b7}.phone-notes-list article b{font-size:10px}.phone-notes-list article p{margin:3px 0 0;font-size:9px;line-height:1.35;color:#4d493f}.phone-empty-state{padding:24px 8px;text-align:center;font-size:10px;color:#766f62}
.phone-progress-card{margin:10px 10px 6px;padding:9px 10px;border:1px solid #9a9486;background:#fff;border-radius:9px;display:flex;justify-content:space-between;align-items:center}.phone-progress-card span{font-size:9px}.phone-progress-card b{font-size:18px}.phone-progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:0 10px 10px}.phone-progress-grid div{border:1px solid #aba598;background:#fff8d2;border-radius:8px;padding:7px 4px;text-align:center}.phone-progress-grid b,.phone-progress-grid span{display:block}.phone-progress-grid b{font-size:14px}.phone-progress-grid span{font-size:7px;margin-top:2px;color:#696352}.phone-field{display:block;margin:9px 10px}.phone-field>span{display:block;margin-bottom:4px;font:800 8px Arial;color:#625c50}.phone-field select{width:100%;min-height:31px;border:1px solid #5f5a51;border-radius:7px;background:#fff;padding:4px 7px;font:700 9px Arial}.phone-danger-zone{display:grid;gap:6px;margin:12px 10px}.phone-danger-zone button,.phone-preview{min-height:34px;border:1px solid #333;border-radius:8px;background:#fff;padding:6px;font:800 9px Arial;cursor:pointer}.phone-danger-zone .danger{background:#fff0eb;border-color:#8c4b3c}
.phone-setting{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin:0 10px;padding:9px 0;border-bottom:1px solid #c9c4b8}.phone-setting div b,.phone-setting div span{display:block}.phone-setting div b{font-size:10px}.phone-setting div span{font-size:8px;color:#716b5f;margin-top:2px}.phone-setting button{min-width:47px;min-height:28px;border:1px solid #333;border-radius:12px;background:#ffdf43;font:900 8px Arial;cursor:pointer}.phone-preview{width:calc(100% - 20px);margin:4px 10px;background:#fff6c7}.phone-setting-note{display:block;margin:6px 11px;font-size:7px;line-height:1.35;color:#766f62}
.phone-nav{flex:0 0 47px;height:47px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #1f1f1f;background:#faf8f0}.phone-nav button{min-width:0;border:0;border-right:1px solid #d5d0c4;background:transparent;color:#6b665c;padding:4px 2px 3px;font:800 7px Arial;cursor:pointer}.phone-nav button:last-child{border-right:0}.phone-nav button span{display:block;height:17px;font:900 12px/15px Arial;color:#36332d}.phone-nav button.active{background:#ffef92;color:#171717}.phone-nav button.active span{color:#111}
.phone-setup{height:100%;padding:34px 20px 18px;text-align:center;background:#f7f4e8}.phone-contact-large{width:62px;height:62px;margin:0 auto 10px;font-size:23px}.phone-setup h3{margin:0;font-size:17px}.phone-setup p{font-size:10px;line-height:1.45;margin:10px 0 14px;color:#474239}.phone-setup button{width:100%;min-height:36px;border:1px solid #111;border-radius:10px;background:#ffdf43;font:900 10px Arial;cursor:pointer}.phone-setup small{display:block;margin-top:9px;font-size:7px;line-height:1.4;color:#777063}
.phone-pocket-launcher{display:none}
.phone-companion.collapsed{width:54px;height:82px;filter:drop-shadow(0 5px 8px rgba(0,0,0,.25))}.phone-companion.collapsed .phone-hardware{display:none}.phone-companion.collapsed .phone-pocket-launcher{display:flex;width:54px;height:82px;border:2px solid #050505;border-radius:15px;background:#171717;box-shadow:inset 0 0 0 1px #474747;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:7px 5px;cursor:pointer;color:#fff}.phone-pocket-launcher span{position:relative;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#ffdf43;color:#111;border:1px solid #000;font:900 13px Arial}.phone-pocket-launcher span:after{content:"";position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border-radius:50%;background:#3dbb61;border:1px solid #111}.phone-pocket-launcher small{font:800 7px Arial;color:#e8e8e8;letter-spacing:.02em}
/* Keep the Investigation Desk extension simple. */
.assist-desk-addon{border-top:3px solid #171717!important}.assist-desk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.assist-desk-grid article{background:#fff8d5;border:1px solid #292929;padding:14px;box-shadow:3px 3px 0 #292929}.assist-desk-grid small{font:900 9px Arial;letter-spacing:.1em}.assist-desk-grid b{display:block;font:900 24px Arial;margin:6px 0}.assist-desk-grid p{font-size:12px}.assist-settings-page{background:#f7f2dd;color:#171717}.assist-settings-shell{width:min(540px,calc(100% - 30px));margin:40px auto}.assist-settings-top{display:flex;justify-content:space-between}.assist-settings-top a{color:#111;font-weight:700}
@media(max-width:760px){.phone-companion{left:8px;bottom:8px;width:min(292px,calc(100vw - 16px));height:min(500px,calc(100dvh - 16px))}.phone-companion.collapsed{width:52px;height:78px}.phone-companion.collapsed .phone-pocket-launcher{width:52px;height:78px}.assist-desk-grid{grid-template-columns:1fr}}
@media(max-height:560px) and (min-width:761px){.phone-companion{height:calc(100dvh - 16px);bottom:8px}}
