.npc-window{box-sizing:border-box;max-width:100%;margin:14px 0 20px;border:2px solid #373941;background:#e9e9e5;color:#202123;box-shadow:inset 1px 1px #fff,2px 2px 0 #8d8f90;font-family:Arial,"Microsoft YaHei",sans-serif}
.npc-window-title{display:flex;justify-content:space-between;align-items:center;min-height:29px;padding:2px 9px;background:#274157;color:#fff;font-size:13px;font-weight:700}
.npc-window-title span{font-size:15px;letter-spacing:3px}
.npc-window-body{display:flex;align-items:center;gap:14px;min-height:92px;padding:8px 12px}
.npc-window-body img{display:block;flex:none;object-fit:contain;object-position:center bottom;max-width:100%;height:auto}
.npc-window-body picture{display:block;flex:none}
.npc-window-body>div{min-width:0}
.npc-window-body small{display:block;color:#47515b;font-size:11px;line-height:1.4}
.npc-window-body p{margin:6px 0 0;font-size:14px;line-height:1.5}
.npc-image-fallback{font-size:12px;color:#47515b}.npc-window img[hidden]{display:none}
.npc-level-1{max-width:520px}
.npc-level-2{max-width:600px}
.npc-level-2 .npc-window-body{min-height:156px}
.npc-level-2 .npc-window-body img{width:96px;max-height:144px}
@media(max-width:600px){.npc-window{margin:10px 0 16px}.npc-window-body{gap:9px;padding:7px 9px;min-height:78px}.npc-window-body p{font-size:13px}.npc-level-1 .npc-window-body img{width:56px;height:56px}.npc-level-2 .npc-window-body{min-height:90px}.npc-level-2 .npc-window-body img{width:76px;max-height:114px}}
@media(max-width:360px){.npc-window-body small{font-size:11px}.npc-window-body p{font-size:12px}}
@media(max-width:600px){.retro-body .win-button,.retro-body button,.retro-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.retro-body select,.retro-body textarea{min-height:44px}.retro-body input[type=checkbox],.retro-body input[type=radio]{min-width:20px;min-height:20px}.retro-body label:has(input[type=checkbox]),.retro-body label:has(input[type=radio]){min-height:44px}.npc-window-body p{overflow-wrap:anywhere}}
@media(max-width:600px){.retro-body input:not([type=checkbox]):not([type=radio]),.retro-body select,.retro-body textarea{font-size:16px}.retro-body footer{padding-bottom:max(18px,env(safe-area-inset-bottom))}.share-window{padding-bottom:env(safe-area-inset-bottom)}.share-overlay{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}}
/* Shared mobile business layout also applies when the clerk is switched off. */
@media(max-width:600px){
 .food-head h1{font-size:22px}.food-result h2{font-size:22px}
 .food-time-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .food-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .food-form>.win-button,.food-home .food-form>.win-button{width:100%;justify-self:stretch}
 .food-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .food-actions>.primary,.food-actions>[data-food-share]{grid-column:1/-1}
 .food-actions>.win-button{width:100%;min-width:0}
 .archive-profile-table tr{display:grid;grid-template-columns:minmax(88px,32%) minmax(0,1fr)}
 .archive-profile-table th,.archive-profile-table td{display:block;width:auto;min-width:0;overflow-wrap:anywhere}
 .error-page{padding:24px 8px}.error-page h1{font-size:36px}.missing-window h1{font-size:42px}
 .error-page .win-button{width:100%}
 .office-nav summary,.personnel-tabs a,.office-menu a{min-height:44px;display:flex;align-items:center}
 .office-nav>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .office-nav .win-button{width:100%;font-size:14px;text-align:center}
 .office-nav .global-personnel-link{grid-column:1/-1}
 .office-nav .office-menu{left:auto;right:0;width:calc(100vw - 36px);max-width:calc(100vw - 36px);min-width:0}
 .retro-body :is(.food-time-quick button,.win-button):is(:active,:focus-visible){background:#d4d7c8}
 .share-window{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow-y:auto}
 .share-window>header{position:sticky;top:0;z-index:2}
 .share-preview img{max-height:50dvh}
 .share-actions{grid-template-columns:1fr;position:sticky;bottom:0;background:#c0c0c0;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .share-actions .win-button{flex-direction:row;gap:8px}
 .retro-body dialog{max-height:calc(100dvh - 24px);overflow-y:auto;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .retro-system-actions{position:sticky;bottom:0;background:#c0c0c0;padding:8px 0}
}
@media(max-width:374px){.food-modes{grid-template-columns:1fr}}
