/* Isolated PhoneOrders UI. Load after the game's world.css. No external assets. */
dialog.po-dialog,.world-mode dialog.po-dialog{--po-forest:#294e40;--po-ink:#354936;--po-muted:#7e8066;--po-cream:#fff3d8;--po-bronze:#b18e55;box-sizing:border-box;width:426px;max-width:calc(100vw - 12px);max-height:calc(100dvh - 8px);padding:0;margin:auto;border:0;border-radius:0;overflow:visible;background:transparent;color:var(--po-ink);box-shadow:none;font-family:Manrope,'Avenir Next',Arial,sans-serif;font-size:13px;line-height:1.5;color-scheme:light}
dialog.po-dialog::backdrop{background:#102c25a3;backdrop-filter:blur(7px)}
.po-dialog *{box-sizing:border-box}.po-dialog [hidden],.po-incoming[hidden],.po-unread-badge[hidden]{display:none!important}
.po-dialog button,.po-dialog select,.po-dialog input{font:inherit}.po-dialog button,.po-dialog select{cursor:pointer}.po-dialog button{border:0;color:inherit;touch-action:manipulation}.po-dialog button:disabled{cursor:default;opacity:.43}.po-dialog button:focus-visible,.po-dialog select:focus-visible,.po-dialog input:focus-visible{outline:3px solid #b6813f;outline-offset:4px}.po-icon{display:block;width:22px;height:22px;flex:none}
.po-stage{position:relative;display:grid;place-items:center;padding:9px 28px 15px;isolation:isolate}
.po-phone{position:relative;z-index:2;width:350px;max-width:calc(100vw - 32px);height:min(692px,calc(100dvh - 40px));padding:9px;border-radius:44px;background:linear-gradient(115deg,#bba16c 0,#527363 2%,#1c382f 10%,#26463a 82%,#bda16b 99%);border:1px solid #c0a875;box-shadow:0 25px 80px #081f1b80,0 3px 3px #172e27b3,inset 0 0 0 2px #112d27,inset 0 0 0 5px #6c7555;transform:rotate(-1.2deg)}
.po-side-key{position:absolute;left:-4px;top:117px;width:4px;height:33px;border-radius:3px 0 0 3px;background:linear-gradient(#baa16a,#536e58,#8d8a60)}.po-key-two{top:161px;height:57px}
.po-screen{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden;border-radius:35px;background:#f7edd7;border:1px solid #253c30;box-shadow:inset 0 0 0 1px #fff6de}
.po-statusbar{height:39px;min-height:39px;display:flex;align-items:center;justify-content:space-between;padding:4px 20px 0;position:relative;color:#647a5c;font-size:6px;font-weight:800;letter-spacing:.9px;background:#fff5df}
.po-speaker{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:75px;height:16px;border-radius:20px;background:#213b32;box-shadow:inset 0 1px 3px #0007}.po-speaker:before{content:'';position:absolute;width:6px;height:6px;left:10px;top:5px;background:#4b6256;border-radius:50%;box-shadow:inset 0 0 0 1px #112c25}.po-speaker:after{content:'';position:absolute;left:26px;right:15px;height:3px;top:6px;background:#40584c;border-radius:4px}.po-status-icons{display:flex;gap:5px;align-items:center}.po-status-icons .po-icon{width:12px;height:12px}.po-status-icons .po-icon:last-child{width:17px}
.po-contact-header{display:flex;gap:8px;align-items:center;padding:10px 14px 14px 8px;background:#fff5df;border-bottom:1px solid #d9d3b8;box-shadow:0 2px 6px #8d855610;position:relative;z-index:2}.po-icon-button{width:34px;height:38px;display:grid;place-items:center;background:transparent;border-radius:12px;padding:0}.po-icon-button:hover{background:#ece7cb}.po-close .po-icon{width:21px;height:21px}.po-contact-avatar{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:15px;background:linear-gradient(135deg,#cad4a6,#a2b58b);border:1px solid #b1bc93;color:#3e624c;font-family:'Noto Serif',Georgia,serif;font-size:21px;font-weight:700;box-shadow:inset 0 0 0 3px #dfe4c64d}.po-contact-title{min-width:0;flex:1}.po-dialog .po-contact-title h2{font-family:'Noto Serif',Georgia,serif;margin:0;padding:0;font-size:19px;font-weight:700;line-height:1.3;letter-spacing:-.4px;color:#3b4e36;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.po-contact-title p{font-size:9px;letter-spacing:.2px;color:#849173;margin:3px 0 0}.po-header-mark{color:#81976d;padding:8px 0 0}.po-header-mark .po-icon{width:19px;height:19px}
.po-chat{flex:1;min-height:100px;overflow:auto;padding:20px 16px 23px;background:radial-gradient(ellipse at 13% 4%,#e5e8ce88,transparent 60%),radial-gradient(ellipse at 90% 73%,#e6d4a74f,transparent 55%),#f5edda;scrollbar-width:thin;scrollbar-color:#bdc4a5 transparent;overscroll-behavior:contain}.po-day-chip{display:block;width:max-content;margin:0 auto 25px;padding:4px 12px;border-radius:20px;border:1px solid #dbd4b8;color:#9b9477;font-size:8px;background:#fbf5e5b3;letter-spacing:.2px}.po-message-intro{display:flex;align-items:center;gap:6px;color:#9a967c;font-size:8px;margin:0 0 7px 1px}.po-small-avatar{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#c6d0ac;color:#657b58;font-size:9px;font-weight:700}
.po-message{position:relative;margin:0 0 13px 6px;background:linear-gradient(130deg,#e0e8ce,#e9edda);border:1px solid #c5d1ad;border-radius:3px 19px 19px 19px;padding:15px 13px 12px;box-shadow:0 3px 9px #6b724c0c}.po-message:before{content:'';position:absolute;top:-1px;left:-6px;width:10px;height:11px;clip-path:polygon(100% 0,0 0,100% 100%);background:#dfe7cc}.po-message-top{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:8px;margin-bottom:13px;color:#7a9066}.po-message-label{font-weight:750;letter-spacing:.2px}.po-message-order{font-size:8px;font-family:'Noto Serif',Georgia,serif;color:#8e967a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:105px}.po-audio-row{display:flex;gap:10px;align-items:center}.po-play{display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:50%;background:#315b46!important;color:#fff4d2!important;box-shadow:0 2px 5px #324b2926,inset 0 0 0 1px #d8e6b51f;transition:transform .15s,background .15s}.po-play:hover:not(:disabled){background:#244b39!important;transform:scale(1.04)}.po-play .po-icon{width:22px;height:22px}.po-play[aria-pressed=true]{background:#527047!important}.po-wave-wrap{min-width:0;flex:1;padding-top:3px}.po-waveform{height:33px;display:flex;align-items:center;justify-content:space-between;gap:3px;padding:0 1px}.po-waveform i{display:block;width:3px;max-width:4px;flex:1;min-width:1px;border-radius:3px;background:#b0bea0;transition:background .12s}.po-waveform i.po-bar-played{background:#4b7453}.po-waveform-neutral i{height:2px!important;opacity:.72}.po-seek{--po-progress:0%;appearance:none;-webkit-appearance:none;display:block;width:100%;height:12px;padding:0;margin:0;background:transparent;cursor:pointer;touch-action:pan-x}.po-seek::-webkit-slider-runnable-track{height:2px;border-radius:5px;background:linear-gradient(to right,#67895a var(--po-progress),#c3ceaf var(--po-progress))}.po-seek::-moz-range-track{height:2px;border-radius:5px;background:#c3ceaf}.po-seek::-moz-range-progress{height:2px;background:#67895a}.po-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:9px;height:9px;border-radius:50%;background:#517449;border:1px solid #eff2dc;margin-top:-3.5px}.po-seek::-moz-range-thumb{width:8px;height:8px;border:1px solid #eff2dc;border-radius:50%;background:#517449}.po-seek:disabled{cursor:default;opacity:.45}.po-time-row{display:flex;justify-content:space-between;margin-top:3px;font-size:8px;font-variant-numeric:tabular-nums;color:#82926e}.po-time-row span:last-child{color:#95a080}
.po-audio-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:13px;padding-top:10px;border-top:1px solid #cbd5ba}.po-repeat{display:flex;gap:4px;align-items:center;padding:4px 1px;background:transparent;font-size:8px!important;color:#748863!important;min-height:27px}.po-repeat:hover:not(:disabled){color:#315b46!important}.po-repeat .po-icon{width:13px;height:13px}.po-speed-label{display:flex;align-items:center;gap:5px;font-size:7px;color:#899574}.po-speed-label select{appearance:auto;border:1px solid #bdcba8;border-radius:6px;padding:4px 2px 4px 5px;background:#f3f5e6;color:#647c53;min-height:27px;font-size:9px;line-height:1.4}.po-audio-status{margin:10px 0 0;font-size:8px;line-height:1.7;color:#859575;min-height:13px}.po-dialog[data-audio-state=error] .po-audio-status,.po-dialog[data-audio-state=mismatch] .po-audio-status{color:#9e6845}.po-dialog[data-audio-state=loading] .po-audio-status:before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border:1px solid #8fa47d;border-top-color:transparent;border-radius:50%;animation:po-loading 1s linear infinite;vertical-align:middle}.po-retry{display:block;width:100%;margin-top:9px;min-height:32px;padding:5px 8px;border-radius:7px;background:#f3e4c2!important;border:1px solid #cdb98d!important;color:#8b7147!important;font-size:9px!important}.po-retry:hover{background:#fbefd6!important}
.po-reveal{display:flex;align-items:center;gap:5px;margin:2px 0 0 9px;padding:7px 8px;min-height:34px;border:1px solid #d2c9a8!important;border-radius:8px;background:#fbf4e2!important;color:#898166!important;font-size:9px!important}.po-reveal .po-icon{width:14px;height:14px}.po-reveal:hover:not(:disabled){background:#fff8e8!important;color:#5b704a!important}.po-reveal[aria-expanded=true]{border-color:#afbd96!important;color:#607c4f!important}.po-transcript{margin:12px 0 0 6px;padding:13px 14px;background:#fff7e5;border:1px solid #ded1aa;border-radius:3px 15px 15px 15px;box-shadow:0 2px 5px #96815c09}.po-transcript>span{font-size:7px;letter-spacing:.7px;text-transform:uppercase;color:#a59269}.po-transcript p{margin:7px 0 0;font-family:'Noto Serif',Georgia,serif;font-size:11px;line-height:1.85;color:#6e674b;white-space:pre-wrap;overflow-wrap:anywhere}.po-heard{display:flex;align-items:center;gap:4px;margin:10px 0 0 10px;font-size:8px;color:#8a9b78}.po-heard .po-icon{width:11px;height:11px}
.po-bottom{flex:none;padding:14px 22px 9px;background:linear-gradient(#f9f1df,#fff5df);border-top:1px solid #e2d9bd}.po-task-note{display:flex;align-items:center;justify-content:center;gap:10px;color:#96a17f}.po-task-note .po-icon{width:24px;height:24px;stroke-width:1.3}.po-task-note p{font-size:9px;line-height:1.7;margin:0;color:#8e967a}.po-task-note strong{font-weight:650;color:#7a8b65}.po-speech-notice{font-size:6px!important;line-height:1.65!important;letter-spacing:.1px;text-align:center;color:#b0a37f!important;margin:11px 0 0!important}.po-home-indicator{display:block;width:92px;height:4px;border-radius:10px;background:#425a45;margin:12px auto 0;opacity:.7}
.po-hand{position:absolute;inset:0;z-index:0;pointer-events:none;filter:drop-shadow(0 6px 8px #0a1d1640)}.po-finger{position:absolute;display:block;left:20px;width:33px;height:92px;border-radius:25px;background:linear-gradient(90deg,#c28a5f,#e4b184 50%,#ce976c);border:1px solid #b88156;transform:rotate(4deg)}.po-finger:after{content:'';position:absolute;left:8px;right:6px;top:12px;height:21px;border:1px solid #b97d4f55;border-radius:14px;background:#eac59c55}.po-finger-one{top:40%}.po-finger-two{top:55%;left:21px;height:83px}.po-palm{position:absolute;right:16px;bottom:9px;width:83px;height:180px;border-radius:35px 46px 12px 30px;background:linear-gradient(100deg,#c18a61,#d8a97d 65%,#e0b48b);transform:rotate(-15deg);border-right:1px solid #a97650}.po-cuff{position:absolute;right:-4px;bottom:-10px;width:104px;height:80px;border-radius:8px;background:repeating-linear-gradient(90deg,#365c4a 0,#365c4a 4px,#3d6450 4px,#3d6450 7px);border-top:6px solid #bdb993;transform:rotate(-15deg);box-shadow:inset 9px 0 #213e3244}
.po-trigger{position:relative}.po-unread-badge{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;width:17px;height:17px;border:2px solid #fff0d2;border-radius:50%;background:#b77b4d;color:#fff9e9;font:800 8px/1 Arial,sans-serif;box-shadow:0 2px 5px #314d3125}.po-trigger-unread{box-shadow:0 0 0 2px #c2a16d66}
.po-incoming{position:fixed;z-index:20;top:95px;right:24px;display:flex;align-items:center;gap:11px;width:276px;max-width:calc(100vw - 32px);padding:13px 15px;border:1px solid #ceb686;border-radius:13px;background:linear-gradient(125deg,#fff3d8,#efe6c8);color:#516346;box-shadow:0 7px 28px #142d2438;font-family:Manrope,'Avenir Next',Arial,sans-serif;text-align:left;cursor:pointer;touch-action:manipulation}.po-incoming:hover{background:#fff8e8}.po-incoming:focus-visible{outline:3px solid #b6813f;outline-offset:3px}.po-incoming-icon{display:grid;place-items:center;width:37px;height:39px;border-radius:11px;background:#dce4c6;color:#64815b;flex:none}.po-incoming-icon .po-icon{width:24px;height:24px}.po-incoming>span:nth-child(2){flex:1;min-width:0}.po-incoming small{display:block;font-size:6px;letter-spacing:1.1px;font-weight:750;color:#a18b61}.po-incoming strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font:700 15px/1.4 'Noto Serif',Georgia,serif;color:#4d5d3e}.po-incoming>span>span{display:block;font-size:8px;color:#8e9578;margin-top:2px}.po-incoming>b{font-size:16px;color:#9a9a73;font-weight:500}
@keyframes po-loading{to{transform:rotate(360deg)}}
@media(max-width:520px){dialog.po-dialog,.world-mode dialog.po-dialog{width:380px;max-width:calc(100vw - 6px);max-height:calc(100dvh - 4px)}.po-stage{padding:6px 16px 7px}.po-phone{width:342px;max-width:calc(100vw - 26px);height:min(700px,calc(100dvh - 27px));transform:rotate(-.7deg);border-radius:40px;padding:8px}.po-screen{border-radius:32px}.po-contact-header{padding-right:13px}.po-statusbar{padding-left:17px;padding-right:18px}.po-chat{padding:20px 14px}.po-contact-title h2{font-size:18px}.po-hand .po-finger{left:4px;width:31px}.po-hand .po-finger-two{left:5px}.po-palm{right:2px;width:62px}.po-cuff{right:-4px;width:85px;height:65px;bottom:-2px}.po-incoming{top:117px;right:12px;width:248px;padding:11px 13px}.po-incoming strong{font-size:14px}.po-incoming small{font-size:5px}.po-bottom{padding-top:11px}.po-transcript p{font-size:11px}}
@media(max-height:620px){.po-statusbar{height:32px;min-height:32px}.po-statusbar>span:first-child{font-size:5px}.po-contact-header{padding-top:6px;padding-bottom:9px}.po-contact-avatar{width:35px;height:35px;border-radius:12px;font-size:18px}.po-contact-title h2{font-size:17px!important}.po-contact-title p{font-size:8px}.po-chat{padding-top:13px;padding-bottom:15px}.po-day-chip{margin-bottom:14px}.po-bottom{padding:9px 15px 7px}.po-task-note p{font-size:8px}.po-task-note .po-icon{width:19px;height:19px}.po-speech-notice{margin-top:5px!important}.po-home-indicator{margin-top:7px}.po-incoming{top:90px}}
@media(prefers-reduced-motion:reduce){.po-phone{transform:none}.po-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.po-dialog::backdrop{backdrop-filter:none}}

.po-trigger-playing:after{content:"";position:absolute;left:4px;bottom:3px;width:6px;height:6px;border-radius:50%;background:#709857;box-shadow:0 0 0 2px #f6ecd5}
/* Readability and touch targets inside the compact message. */
.po-time-row{font-size:9px}.po-repeat{font-size:9px!important;min-height:32px}.po-speed-label{font-size:8px}.po-speed-label select{font-size:10px;min-height:32px}.po-audio-status{font-size:9px}.po-reveal{font-size:10px!important;min-height:38px}.po-transcript p{font-size:12px}.po-speech-notice{font-size:7px!important}.po-icon-button{min-height:40px}

/* Keep closing available while the message and transcript scroll. */
.po-statusbar,.po-contact-header{flex-shrink:0}
.po-contact-header{padding-left:14px;gap:10px}
.po-dialog .po-close{width:44px;height:44px;min-height:44px;flex:none;border:1px solid #d0c49f;background:#f5e8c9;color:#365b45}
.po-dialog .po-close:hover{background:#eadbb7}
.po-chat{min-height:0}
.po-dialog .po-dismiss{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin-top:11px;padding:10px 14px;border:1px solid #234d3c;border-radius:12px;background:#315b46;color:#fff5df;font-size:14px;font-weight:750;line-height:1.4;box-shadow:inset 0 1px 0 #ffffff20}
.po-dialog .po-dismiss:hover{background:#264b39}
.po-dismiss .po-icon{width:19px;height:19px}
.client-sms-open .po-dismiss{margin-top:0}
.client-sms-open .po-home-indicator{margin-top:8px}
@media(max-height:480px){.po-task-note{display:none}.po-dialog .po-dismiss{margin-top:0}.po-statusbar{height:27px;min-height:27px}.po-bottom{padding:8px 15px 7px}.po-speech-notice{margin-top:5px!important}}
