/* Home dock entry: 5th dock button (pink — mint read as Inventory's green). With it the dock runs edge to edge (27px gutters on the 941 stage) so all 5 keep the normal icon size (user 10-05). */.home-dock-button.home-restaurant-entry{background:linear-gradient(115deg,#ffe3eeef,#f7a9c6ea)}.home-dock-button.home-restaurant-entry[hidden]{display:none}.home-dock:has(.home-restaurant-entry:not([hidden])){width:887px;box-sizing:border-box;padding-left:9px;padding-right:9px;gap:5px}.home-dock:has(.home-restaurant-entry:not([hidden])) .home-dock-button{font-size:28px} /* 31 → 28 on all five so 'Restaurant' clears the rounded corners (user 10-05) */
#modal-layer:has(.restaurant-screen){padding:0;background:#163e50;backdrop-filter:none}
.restaurant-screen{position:relative;width:min(100%,520px);height:100dvh;max-height:980px;overflow:hidden;box-sizing:border-box;color:#214e61;background:#8fbf3a url('/dino/restaurant/backdrop-meadow-v2.webp') center/cover no-repeat;font:14px Sarabun,sans-serif}
.restaurant-screen *{box-sizing:border-box}.restaurant-screen button{font:inherit;color:#214e61;cursor:pointer;min-width:44px;min-height:44px;border:0;background:transparent}.restaurant-screen button:disabled{filter:grayscale(.6);opacity:.5;cursor:default}.restaurant-screen button:focus-visible{outline:3px solid #2584bd;outline-offset:2px}
.restaurant-hud{position:absolute;z-index:5;inset:0 0 auto;pointer-events:none;padding:calc(env(safe-area-inset-top) + 5px) 9px 0;background:linear-gradient(#0d3b5a33,transparent)}.restaurant-hud button{pointer-events:auto}.restaurant-top{height:50px;display:grid;grid-template-columns:46px minmax(150px,1fr) 68px;align-items:center;gap:5px}.restaurant-back{padding:1px}.restaurant-back img{width:44px;height:44px;object-fit:contain}.restaurant-title{position:relative;justify-self:start;width:158px;height:46px;display:grid;place-items:center}.restaurant-title>img{position:absolute;width:100%;height:auto;max-height:46px;object-fit:contain}.restaurant-title strong{position:relative;font-size:18px;color:#235b58;text-shadow:0 1px #fff}.restaurant-chef-cap{height:36px;display:flex;align-items:center;justify-content:center;gap:1px;background:url('/dino/restaurant/ui/stat-pill.png') center/contain no-repeat}.restaurant-chef-cap img{width:24px;height:24px;object-fit:contain}.restaurant-chef-cap b{font-size:12px}
.restaurant-stats{height:38px;display:grid;grid-template-columns:1.1fr 1fr 1.15fr;gap:6px;padding:0 4px}.restaurant-stat{min-width:0;display:flex;align-items:center;justify-content:center;gap:1px;padding:2px 6px;background:url('/dino/restaurant/ui/stat-pill.png') center/100% auto no-repeat;white-space:nowrap}.restaurant-stat img{width:22px;height:22px;object-fit:contain}.restaurant-stat b{overflow:hidden;font-size:13px;font-weight:800;color:#163f5c;text-overflow:ellipsis}.restaurant-stat img{width:24px;height:24px}.restaurant-stat em{margin-left:4px;padding:1px 5px;border-radius:9px;background:#ff6fa8;color:#fff;font:800 10px Sarabun,sans-serif;font-style:normal;box-shadow:inset 0 1px #ffffff80}.restaurant-stat em:empty{display:none}.restaurant-scene{position:absolute;z-index:1;inset:0;width:100%;height:100%;touch-action:none;overflow:hidden}
.restaurant-message{position:absolute;z-index:5;left:50%;bottom:208px;width:min(72%,350px);min-height:30px;padding:7px 25px 6px;transform:translateX(-50%);display:grid;place-items:center;text-align:center;background:url('/dino/restaurant/ui/toast-panel.png') center/100% auto no-repeat;font-size:10px;pointer-events:none}.restaurant-screen .restaurant-tray{position:absolute;z-index:4;left:50%;bottom:104px;width:250px;height:100px;transform:translateX(-50%);padding:13px 30px 17px;background:url('/dino/restaurant/ui/serving-tray.png') center/contain no-repeat;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.restaurant-tray-slot{position:relative;display:grid;place-items:center;min-width:0;border:1px dashed #8bd8d6;border-radius:11px;background:#d9ffff26}.restaurant-tray-slot img{width:48px;height:47px;object-fit:contain}.restaurant-tray-slot b{position:absolute;right:-4px;bottom:-4px;min-width:24px;padding:1px 5px;border-radius:10px;color:#fff;background:#1b6b72;font-size:12px;font-weight:800;border:1.5px solid #fff}.restaurant-tray-slot.empty{opacity:.55}.restaurant-tray-slot.empty img{display:none}
.restaurant-message:empty{display:none}
.restaurant-nav{position:absolute;z-index:5;inset:auto 8px calc(env(safe-area-inset-bottom) + 6px);height:94px;padding:6px 6px;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;border:2px solid #e9ffffd9;border-radius:24px;background:linear-gradient(#c8f7ffb3,#5cc9dcb3);box-shadow:0 0 14px #8ee9ff99,inset 0 2px 3px #ffffffa0}.restaurant-nav button{position:relative;min-height:78px;padding:3px 2px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;background-position:center;background-size:contain;background-repeat:no-repeat}.restaurant-nav button:nth-child(1){background-image:url('/dino/restaurant/ui/nav-mint.png')}.restaurant-nav button:nth-child(2){background-image:url('/dino/restaurant/ui/nav-yellow.png')}.restaurant-nav button:nth-child(3){background-image:url('/dino/restaurant/ui/nav-cyan.png')}.restaurant-nav button:nth-child(4){background-image:url('/dino/restaurant/ui/nav-lilac.png')}.restaurant-nav img{width:38px;height:38px;object-fit:contain;margin-bottom:-2px}.restaurant-nav span{font-size:15px;font-weight:800;line-height:1.15;color:#1f4f52;text-shadow:0 1px #fff}.restaurant-nav small{margin-top:1px;min-width:30px;padding:0 6px;border-radius:8px;background:#ffffffb8;color:#2b5d60;font-size:10px;font-weight:800;line-height:15px}.restaurant-nav small[hidden]{display:none}
.restaurant-sheet{position:absolute;z-index:8;left:50%;bottom:8px;width:min(calc(100% - 16px),470px);max-height:78%;overflow:auto;padding:36px 22px 24px;transform:translateX(-50%);background:#effbf7 url('/dino/restaurant/ui/modal-panel.png') center/100% 100% no-repeat;border:0;border-radius:28px;box-shadow:0 10px 28px #17455944}.restaurant-sheet[hidden]{display:none}.restaurant-sheet h3{margin:0 48px 14px;text-align:center;font-size:19px;color:#285b59}.restaurant-sheet>.restaurant-close{position:absolute;right:13px;top:10px;width:46px;height:46px;background:url('/dino/restaurant/ui/action-close.png') center/contain no-repeat}.restaurant-card{min-height:86px;padding:13px 15px;margin:8px 0;display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:url('/dino/restaurant/ui/recipe-card.png') center/100% 100% no-repeat}.restaurant-sheet.chefs .restaurant-card{background-image:url('/dino/restaurant/ui/chef-card.png')}.restaurant-card>img{width:52px;height:52px;object-fit:contain}.restaurant-card .copy{flex:1;min-width:115px}.restaurant-card small{display:block;font-size:11px;line-height:1.55}.restaurant-card button,.restaurant-sheet>button:not(.restaurant-close){min-width:86px;padding:8px 13px;background:url('/dino/restaurant/ui/action-mint.png') center/100% 100% no-repeat;font-weight:700}.restaurant-card button.danger,.restaurant-sheet>button.danger{background-image:url('/dino/restaurant/ui/action-red.png')}.restaurant-card button.hire,.restaurant-sheet>button.hire{background-image:url('/dino/restaurant/ui/action-yellow.png')}
.restaurant-edit{position:absolute;z-index:7;left:8px;right:8px;bottom:108px;display:flex;justify-content:center;gap:4px;padding:5px;border-radius:18px;background:#eafff1e8}.restaurant-edit[hidden]{display:none}.restaurant-screen:has(.restaurant-edit:not([hidden])) .restaurant-tray{display:none}.restaurant-edit button{width:58px;height:58px;padding:27px 2px 2px;background-position:center 3px;background-size:31px 31px;background-repeat:no-repeat;font-size:9px;font-weight:700}.restaurant-edit button:nth-child(1){background-image:url('/dino/restaurant/ui/action-storage.png')}.restaurant-edit button:nth-child(2){background-image:url('/dino/restaurant/ui/action-flip.png')}.restaurant-edit button:nth-child(3){background-image:url('/dino/restaurant/ui/action-trash.png')}.restaurant-edit button:nth-child(4){background-image:url('/dino/restaurant/ui/action-confirm.png')}.restaurant-edit button:nth-child(5){background-image:url('/dino/restaurant/ui/action-close.png')}.restaurant-inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.restaurant-inventory button{min-height:88px;padding:6px;background:url('/dino/restaurant/ui/recipe-card.png') center/100% 100% no-repeat;font-size:10px}.restaurant-inventory img{display:block;height:48px;width:100%;object-fit:contain}.restaurant-float{position:absolute;z-index:9;left:45%;top:38%;font-size:26px;color:#9e6700;font-weight:bold;pointer-events:none;text-shadow:0 1px #fff8dc;animation:restaurant-coin 1.3s forwards}@keyframes restaurant-coin{to{transform:translateY(-70px);opacity:0}}
@media(max-height:690px){.restaurant-message{bottom:170px}.restaurant-screen .restaurant-tray{bottom:82px;width:215px;height:86px;padding:11px 26px 15px}.restaurant-nav{height:76px;padding:4px}.restaurant-nav button{min-height:64px}.restaurant-nav img{width:30px;height:30px}.restaurant-nav span{font-size:13px}.restaurant-edit{bottom:86px}}@media(prefers-reduced-motion:reduce){.home-restaurant-entry{animation:none}}
/* HUD sized/placed like the approved design (user 10-03): compact back + title on the left, chef pill right,
   stat pills left-aligned at their own width instead of stretched across the screen. */
.restaurant-hud{padding:calc(env(safe-area-inset-top) + 6px) 8px 0}
.restaurant-top{height:42px;display:flex;align-items:center;gap:2px}
.restaurant-back{width:44px;height:44px;padding:0;display:grid;place-items:center}.restaurant-back img{width:36px;height:36px}
.restaurant-title{width:150px;height:34px}.restaurant-title>img{width:100%;height:100%;max-height:none;object-fit:fill}.restaurant-title strong{font-size:15px;font-weight:800}
.restaurant-chef-cap{margin-left:auto;width:78px;height:32px;gap:3px;background-size:100% 100%}.restaurant-chef-cap img{width:22px;height:22px}.restaurant-chef-cap b{font-size:13px;font-weight:800}
.restaurant-stats{display:flex;gap:5px;height:30px;margin-top:3px;padding:0 2px}
.restaurant-stat{flex:0 0 auto;min-width:94px;height:30px;padding:0 11px 0 3px;gap:4px;justify-content:flex-start;background-size:100% 100%}
.restaurant-stat img{width:24px;height:24px}.restaurant-stat b{font-size:13px}
.restaurant-back img{width:40px;height:40px}.restaurant-title strong{font-size:16px;color:#1d4a4f;text-shadow:0 1px #ffffffb0}
.restaurant-stat em{background:#d9fff1;color:#1b8a68;border:1px solid #9fe8cf;box-shadow:none;font-size:9.5px}
/* Frame + header like the gacha screen (user 10-03): the screen is the game's 941×1672 stage, contain-fit by
   frameFit() in restaurant.js; the HUD is laid out in stage px and scaled by --u, using gacha's header metrics
   (top 53 · left 44 · back 110 · title 74/38px · wallet 56/29px). */
#modal-layer:has(.restaurant-screen){padding:0;background:rgba(5,19,32,.82);backdrop-filter:blur(2px)}
.restaurant-screen{position:fixed;max-height:none}
@media(min-width:520px){.restaurant-screen{border-radius:29px;box-shadow:0 0 0 2px rgba(220,255,255,.72),0 22px 65px rgba(0,0,0,.58)}}
.restaurant-hud{inset:auto;left:0;top:0;width:941px;height:270px;padding:0;background:none;transform:scale(var(--u,.4));transform-origin:0 0}
.restaurant-top{position:absolute;left:44px;right:26px;top:53px;height:110px;gap:14px}
.restaurant-screen .restaurant-back{flex:0 0 110px;width:110px;height:110px}.restaurant-back img{width:110px;height:110px}
.restaurant-title{width:390px;height:84px}.restaurant-title strong{font-size:38px}
.restaurant-chef-cap{width:190px;height:66px;gap:8px}.restaurant-chef-cap img{width:52px;height:52px}.restaurant-chef-cap b{font-size:30px}
.restaurant-stats{position:absolute;left:44px;top:178px;height:70px;gap:14px;margin:0;padding:0}
.restaurant-stat{min-width:228px;height:70px;padding:0 26px 0 8px;gap:10px}.restaurant-stat img{width:58px;height:58px}.restaurant-stat b{font-size:31px}
.restaurant-stat em{margin-left:8px;padding:2px 12px;border-radius:20px;font-size:22px;border-width:2px}
/* Nav like the design (user 10-03): frames fill their cell edge to edge with small gaps. The square frame PNGs
   are 9-slice stretched (corners kept) instead of "contain", which left wide empty sides. */
.restaurant-nav{height:88px;padding:5px;gap:5px}
.restaurant-nav button{min-height:0;height:100%;background:none!important;border:0;border-image-slice:90 fill;border-image-width:24px;border-image-repeat:stretch;justify-content:center;padding:2px 2px 4px}
.restaurant-nav button:nth-child(1){border-image-source:url('/dino/restaurant/ui/nav-mint.png')}
.restaurant-nav button:nth-child(2){border-image-source:url('/dino/restaurant/ui/nav-yellow.png')}
.restaurant-nav button:nth-child(3){border-image-source:url('/dino/restaurant/ui/nav-cyan.png')}
.restaurant-nav button:nth-child(4){border-image-source:url('/dino/restaurant/ui/nav-lilac.png')}
.restaurant-nav img{width:36px;height:36px}
@media(max-height:690px){.restaurant-nav{height:74px;padding:4px;gap:4px}.restaurant-nav img{width:30px;height:30px}}
.restaurant-nav{padding:6px;gap:4px;border:2px solid #c8fbffe6;background:linear-gradient(#8ee8f7d9,#38bcd8d9);box-shadow:0 0 16px #7fe6ffcc,inset 0 2px 4px #ffffffb0}
.restaurant-nav button:nth-child(2) small{background:#f6c84a;color:#5a3a00}
.restaurant-nav button:nth-child(3) small{background:#5ab8f2;color:#0d3557}
.restaurant-nav small{min-width:46px;border-radius:9px}
.restaurant-nav{background:linear-gradient(#62d9f0f0,#1fa6c8f0);border-color:#bff8ff}
/* Ready-food tray like the design (user 10-03 "ดูบีบ"): a flat bar sitting just above the nav; each slot shows the
   dish with its "×N" beside it instead of a badge over the corner. 9-slice so the frame keeps its corners. */
.restaurant-screen .restaurant-tray{bottom:102px;width:262px;height:66px;padding:7px 12px;gap:6px;background:none;border-image:url('/dino/restaurant/ui/serving-tray.png') 70 fill/24px stretch}
.restaurant-tray-slot{display:flex;align-items:center;justify-content:center;gap:2px;border-radius:12px}
.restaurant-tray-slot img{width:42px;height:38px}
.restaurant-tray-slot b{position:static;min-width:0;padding:0;border:0;background:none;color:#174a5c;font-size:15px;font-weight:800;text-shadow:0 1px #ffffffb0}
.restaurant-message{bottom:176px}
@media(max-height:690px){.restaurant-screen .restaurant-tray{bottom:84px;width:236px;height:58px}.restaurant-message{bottom:148px}}

/* No status bar in the design (user 10-03): errors use the game's toast, hints live in the edit panel. */
.restaurant-message{display:none!important}
/* Edit mode like the prototype's edit-room: top panel (selection, hint, actions) + inventory grid at the bottom. */
.restaurant-screen:has(.restaurant-edit:not([hidden])) .restaurant-nav,.restaurant-screen:has(.restaurant-edit:not([hidden])) .restaurant-tray{display:none}
.restaurant-screen .restaurant-edit{position:absolute;z-index:7;left:10px;right:10px;top:calc(var(--u,.45)*262px);bottom:auto;display:block;padding:9px 11px;background:#ffffffc4;border:2px solid #fff;border-radius:18px;box-shadow:0 4px 14px #1745591f}
.restaurant-edit b{display:block;font-size:14px;color:#234859}.restaurant-edit p{margin:3px 0 7px;min-height:17px;font-size:12px;color:#3c6370}
.restaurant-edit nav{display:flex;flex-wrap:wrap;gap:5px}
.restaurant-screen .restaurant-edit button{width:auto;height:auto;min-width:0;min-height:38px;padding:6px 10px;background:#c4eee3!important;border:2px solid #fff;border-radius:12px;font-size:12px;font-weight:700;color:#254e57}
.restaurant-screen .restaurant-edit button.primary{background:#9fe3c6!important}.restaurant-screen .restaurant-edit button.ghost{background:#ffffffb0!important}
.restaurant-inv{position:absolute;z-index:7;left:10px;right:10px;bottom:calc(env(safe-area-inset-bottom) + 8px);max-height:36%;overflow:auto;padding:9px 11px;background:#ffffffc4;border:2px solid #fff;border-radius:18px;box-shadow:0 4px 14px #1745591f}
.restaurant-inv[hidden]{display:none}.restaurant-inv>b{display:block;font-size:14px;color:#234859}.restaurant-inv>small{display:block;margin:2px 0 7px;font-size:11px;line-height:1.5;color:#3c6370}
.restaurant-inv .restaurant-inventory{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.restaurant-screen .restaurant-inv .restaurant-inventory button{min-height:78px;padding:5px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#c4eee3;border:2px solid #fff;border-radius:12px;font-size:11px;font-weight:700;color:#254e57}
.restaurant-inv .restaurant-inventory button.active{background:#ffe0a0}.restaurant-inv .restaurant-inventory img{width:40px;height:38px;object-fit:contain}
.restaurant-inv .restaurant-inventory em{font-style:normal;font-size:10px;color:#3c6370}
.restaurant-screen .restaurant-edit[hidden],.restaurant-screen .restaurant-inv[hidden]{display:none}

/* compact edit panels so the room stays visible between them */
.restaurant-screen .restaurant-edit{padding:7px 9px}.restaurant-edit b{font-size:13px}.restaurant-edit p{margin:1px 0 5px;min-height:15px;font-size:11px}
.restaurant-screen .restaurant-edit button{min-height:34px;padding:4px 8px;font-size:11.5px}
.restaurant-inv{max-height:none;overflow:visible;padding:7px 9px}.restaurant-inv>b{font-size:13px}.restaurant-inv>b small{font-weight:400;font-size:10px;color:#3c6370}
.restaurant-inv .restaurant-inventory{display:flex;gap:6px;overflow-x:auto;margin-top:5px;padding-bottom:2px;scrollbar-width:thin}
.restaurant-screen .restaurant-inv .restaurant-inventory button{flex:0 0 74px;min-height:76px}
/* no browser focus box on scene items (user 10-04); the selection ring/yellow cell shows what is picked */
.restaurant-scene [tabindex]:focus,.restaurant-scene [tabindex]:focus-visible{outline:none}
/* ── จัดการร้าน panel (Codex manage-shop-ui-design-v1, user 10-04) ── */
.restaurant-screen .restaurant-inv{left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom) + 6px);top:auto;height:57%;max-height:none;overflow:hidden;display:flex;flex-direction:column;gap:6px;padding:26px 10px 10px;border:2px solid #d9fbff;border-radius:22px;background:linear-gradient(#bff0f7f2,#8fdcebf2);box-shadow:0 0 18px #8ee9ffaa,inset 0 2px 4px #ffffffb0}
.rm-plaque{position:absolute;top:-16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:4px 18px;border:2px solid #e6fdff;border-radius:16px;background:linear-gradient(#9ff0f5,#5fd0e0);box-shadow:0 2px 6px #1f6e7d55;white-space:nowrap}
.rm-plaque img{width:22px;height:22px;object-fit:contain}.rm-plaque b{font-size:16px;color:#1d4a5c}
.rm-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.restaurant-screen .rm-tabs button{min-height:34px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 4px;border:2px solid #e8fdff;border-radius:12px;background:#9fdff0;font-size:12px;font-weight:800;color:#1d4a5c}
.restaurant-screen .rm-tabs button.on{background:linear-gradient(#ffe98a,#ffd24d);border-color:#fff6c8}
.rm-tabs svg,.rm-tabs img{width:16px;height:16px;object-fit:contain}
.rm-note{padding:3px 8px;border-radius:8px;background:#ffe1a6;color:#7a4b00;font-size:11px;font-weight:700}.rm-note[hidden]{display:none}
.rm-sellall[hidden]{display:none}.restaurant-screen .rm-sellall button{width:100%;min-height:32px;border-radius:10px;background:linear-gradient(#e7cdff,#c79bf4);border:2px solid #fff;font-size:12px;font-weight:800;color:#4a2a6a}
.rm-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:96px;gap:6px;padding:2px}
.restaurant-screen .rm-card{position:relative;padding:16px 6px 5px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto auto;align-items:end;border:2px solid #f0feff;border-radius:14px;background:linear-gradient(#f3fdff,#d9f5fa);text-align:left;font-size:11px;color:#1d4a5c}
.restaurant-screen .rm-card.on{border-color:#3fd5ea;box-shadow:0 0 0 2px #8cf1ff,0 0 12px #6fe7ff}
.rm-card .rar{position:absolute;left:5px;top:4px;padding:0 6px;border-radius:7px;background:#a8c9d6;color:#fff;font:700 9px Sarabun,sans-serif;font-style:normal}
.rm-card .rar.rare{background:#5a8de0}.rm-card .rar.legend{background:#b56be0}
.rm-card .in{position:absolute;right:5px;top:4px;padding:0 5px;border-radius:7px;background:#2fae86;color:#fff;font:700 9px Sarabun,sans-serif;font-style:normal}
.rm-card img{grid-column:1/3;grid-row:1;justify-self:center;width:58px;height:46px;object-fit:contain}
.rm-card .h{grid-column:1/3;grid-row:2;font-weight:800;font-size:11px}
.rm-card .bar,.rm-detail .bar{display:block;height:7px;border-radius:5px;background:#b9dfe8;overflow:hidden}.rm-card .bar{grid-column:1;grid-row:3;width:56px;margin-top:2px}
.rm-card .bar i,.rm-detail .bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(#7ee88a,#37c25a)}
.rm-card .pct{grid-column:2;grid-row:3;justify-self:end;font-weight:800;font-size:10px}
.rm-card.broken{filter:saturate(.45)}.rm-card.broken .bar i{background:#e98a8a}
.rm-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#3c6370;font-weight:700}.rm-empty img{width:64px;height:64px;object-fit:contain}
.rm-detail{min-height:58px;display:flex;align-items:center;gap:10px;padding:5px 10px;border:2px solid #f0feff;border-radius:14px;background:linear-gradient(#f3fdff,#dcf6fb)}
.rm-detail img{width:48px;height:48px;object-fit:contain;padding:2px;border-radius:10px;background:#c9eef7}.rm-detail>div{flex:1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:2px 8px}
.rm-detail b{grid-column:1/-1;font-size:14px;color:#1d4a5c}.rm-detail .h{font-weight:800;font-size:12px}.rm-detail .pct{font-weight:800;font-size:11px}.rm-hint{color:#3c6370;font-size:12px;font-weight:700}
.rm-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.restaurant-screen .rm-actions button{min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:2px solid #f6ffff;border-radius:14px;font-size:13px;font-weight:800;color:#1d4a5c}
.rm-actions svg,.rm-actions img{width:22px;height:22px;object-fit:contain}
.restaurant-screen .rm-actions .rm-place{background:linear-gradient(#b9f5d2,#7fe0a8);color:#14603e}.restaurant-screen .rm-actions .rm-flip{background:linear-gradient(#bfe9ff,#86ccf6);color:#155a8a}
.restaurant-screen .rm-actions .rm-store{background:linear-gradient(#ffd0d6,#f6a3ae);color:#8a2c3a}.restaurant-screen .rm-actions .rm-sell{background:linear-gradient(#e7cdff,#c79bf4);color:#4a2a6a}
.rm-commit{display:grid;grid-template-columns:1.7fr 1fr;gap:8px}
.restaurant-screen .rm-commit button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid #fff;border-radius:16px;font-size:16px;font-weight:800}
.restaurant-screen .rm-commit .rm-save{background:linear-gradient(#ffeb8f,#ffc93d);color:#5a3b00}.restaurant-screen .rm-commit .rm-cancel{background:linear-gradient(#c9f5ff,#8fdcef);color:#1d4a5c}
.rm-commit img{width:22px;height:22px;object-fit:contain}
.rm-msg{margin:0;min-height:14px;text-align:center;font-size:11px;font-weight:700;color:#2b5d60}
.restaurant-confirm-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.restaurant-screen .restaurant-confirm-row button{min-height:44px;border-radius:14px;border:2px solid #fff;font-weight:800;background:#c4eee3}
.restaurant-screen .restaurant-confirm-row button.primary{background:linear-gradient(#ffeb8f,#ffc93d)}.restaurant-screen .restaurant-confirm-row button.danger{background:linear-gradient(#ffd0d6,#f6a3ae)}
@media(max-height:690px){.restaurant-screen .restaurant-inv{height:62%}.rm-grid{grid-auto-rows:86px}.restaurant-screen .rm-actions button{min-height:44px}}
.restaurant-screen .restaurant-inv{overflow:visible}
.restaurant-screen:has(.restaurant-inv:not([hidden])) .restaurant-nav,.restaurant-screen:has(.restaurant-inv:not([hidden])) .restaurant-tray{display:none}
/* Manager HUD like manage-shop-ui-design-v1: coin top-right; second row = hearts (+%) and storage used/max only. */
.restaurant-stat.storage{display:none}
.restaurant-screen.managing .restaurant-chef-cap,.restaurant-screen.managing .restaurant-stat:nth-child(2){display:none}
.restaurant-screen.managing .restaurant-stat.storage{display:flex}
.restaurant-screen.managing .restaurant-stats{right:26px}
.restaurant-screen.managing .restaurant-stat:first-child{position:absolute;right:0;top:-110px;min-width:250px}
.restaurant-stat.storage img{width:52px;height:52px}
/* title plaque at its art's own ratio (443x143 ≈ 3.1:1) — it looked stretched at 390x84 (user 10-04) */
.restaurant-title{width:300px;height:97px}.restaurant-title>img{object-fit:contain}.restaurant-title strong{font-size:34px}
/* Manager panel with Codex's art (assets/ui-screens, resized): glass panel frame with leaf corners, glowing selected card,
   gold save + pink store buttons; cards with a bigger picture like the design (user 10-04). */
.restaurant-screen .restaurant-inv{background:none;border:0;box-shadow:none;border-image:url('/dino/restaurant/ui-screens/management-panel.png') 90 fill/34px stretch;padding:28px 14px 12px}
.restaurant-screen .rm-card{grid-template-columns:1fr auto;padding:20px 8px 6px;background:linear-gradient(#f6feff,#dff6fa);border:2px solid #fff;box-shadow:inset 0 0 6px #ffffffb0}
.restaurant-screen .rm-card.on{border:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-screens/card-selected.png') 60 fill/18px stretch}
.rm-card img{grid-column:1/3;width:66px;height:52px;justify-self:end;margin-right:6px}
.rm-card .h{font-size:12px}.rm-card .bar{grid-column:1;width:100%;max-width:80px;height:8px}.rm-card .pct{font-size:11px}
.restaurant-screen .rm-detail{background:linear-gradient(90deg,#f4feff,#cfeff7);border:2px solid #fff}
.rm-detail img{width:56px;height:56px;background:linear-gradient(#bfe9f7,#8fd3ea)}.rm-detail b{font-size:16px}
.restaurant-screen .rm-actions button{min-height:56px;font-size:14px}
.restaurant-screen .rm-actions .rm-store{background:none;border:0;border-image:url('/dino/restaurant/ui-screens/button-dismiss.png') 60 fill/22px stretch}
.restaurant-screen .rm-commit .rm-save{background:none;border:0;border-image:url('/dino/restaurant/ui-screens/button-primary-wide.png') 70 fill/24px stretch;font-size:19px}
.restaurant-screen .rm-commit .rm-cancel{background:linear-gradient(#d6fbff,#9fe2f2);border:2px solid #fff}
.rm-plaque{background:linear-gradient(#bff6fa,#7bdbe8);padding:5px 22px}.rm-plaque::before,.rm-plaque::after{content:'';width:18px;height:18px;background:url('/dino/restaurant/ui/icon-decorate.png') center/contain no-repeat;opacity:0}
/* fix: keep the pill buttons' rounded ends (slice = half the art height) and lay cards out absolutely like the design */
.restaurant-screen .rm-commit .rm-save{border-image:url('/dino/restaurant/ui-screens/button-primary-wide.png') 92 150 fill/24px 38px stretch;min-height:50px}
.restaurant-screen .rm-actions .rm-store{border-image:url('/dino/restaurant/ui-screens/button-dismiss.png') 89 130 fill/28px 40px stretch}
.restaurant-screen .rm-actions .rm-store:disabled{filter:grayscale(.5);opacity:.55}
.restaurant-screen .rm-card{display:block;position:relative;padding:0;overflow:hidden}
.restaurant-screen .rm-card.on{border-image:url('/dino/restaurant/ui-screens/card-selected.png') 56 fill/16px stretch;overflow:visible}
.rm-card .rar{left:7px;top:6px;z-index:1}.rm-card .in{right:7px;top:6px;z-index:1}
.rm-card img{position:absolute;right:10px;top:16px;width:62px;height:50px;margin:0}
.rm-card .h{position:absolute;left:9px;bottom:20px}
.rm-card .bar{position:absolute;left:9px;right:40px;bottom:9px;width:auto;max-width:none;margin:0}
.rm-card .pct{position:absolute;right:8px;bottom:5px}
/* closer to manage-shop-ui-design-v1 (user 10-04 "ต่างเยอะ") */
.rm-plaque{top:-26px;height:52px;padding:0 34px;gap:8px;background:none;border:0;box-shadow:none}
.rm-plaque .pl{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-1}
.rm-plaque img:not(.pl){width:26px;height:26px}.rm-plaque b{font-size:18px}
.restaurant-screen .restaurant-inv{padding-top:34px;gap:8px}
.rm-grid{grid-auto-rows:calc((100% - 6px) / 2);scrollbar-width:none}.rm-grid::-webkit-scrollbar{display:none}
.restaurant-screen .rm-card{border-radius:16px}
.rm-card .rar{font-size:10px;padding:1px 7px}
.rm-card img{right:8px;top:10px;width:78px;height:66px}
.rm-card .in{right:6px;top:6px;width:20px;height:20px;padding:2px;border-radius:50%;background:#2fae86;color:#fff;display:grid;place-items:center}
.rm-card .in svg{width:13px;height:13px}
.rm-card .h{bottom:24px;font-size:13px}.rm-card .bar{height:9px;bottom:10px}.rm-card .pct{font-size:12px;bottom:6px}
.restaurant-screen .rm-detail{min-height:74px;padding:7px 12px;gap:12px;background:linear-gradient(90deg,#f6feff,#d2f1f8)}
.rm-detail img{width:64px;height:64px;padding:4px;border-radius:12px;background:linear-gradient(#a8e3f5,#6fc8e6)}
.rm-detail b{font-size:19px}.rm-detail .h{font-size:14px}.rm-detail .bar{height:10px}
.restaurant-screen .rm-actions button{min-height:62px;font-size:16px}.rm-actions svg,.rm-actions img{width:28px;height:28px}
.restaurant-screen .rm-commit button{min-height:56px;font-size:20px}.rm-commit img{width:28px;height:28px}
.rm-msg{display:none}
/* fix: fixed card rows (two visible like the design) and pill slices that leave a middle band */
.restaurant-screen .restaurant-inv{height:60%}
.rm-grid{grid-auto-rows:104px;flex:0 0 214px}
.restaurant-screen .rm-actions .rm-store{border-image:url('/dino/restaurant/ui-screens/button-dismiss.png') 78 120 fill/26px 38px stretch}
.restaurant-screen .rm-commit .rm-save{border-image:url('/dino/restaurant/ui-screens/button-primary-wide.png') 80 140 fill/26px 40px stretch}
@media(max-height:690px){.restaurant-screen .restaurant-inv{height:64%}.rm-grid{grid-auto-rows:92px;flex-basis:190px}}
/* fit everything inside the panel on a 444x789 phone */
.restaurant-screen .restaurant-inv{height:61%;gap:6px;padding-bottom:10px}
.rm-grid{grid-auto-rows:94px;flex-basis:194px}
.rm-card img{width:70px;height:58px;top:12px}
.restaurant-screen .rm-detail{min-height:62px;padding:5px 10px}.rm-detail img{width:52px;height:52px}.rm-detail b{font-size:17px}
.restaurant-screen .rm-actions button{min-height:52px;font-size:15px}.rm-actions svg,.rm-actions img{width:24px;height:24px}
.restaurant-screen .rm-commit button{min-height:50px;font-size:19px}
/* selected card: same box as the others (art as a background, glow allowed to spill) so nothing inside moves */
.restaurant-screen .rm-card.on{border:2px solid transparent;border-image:none;background:url('/dino/restaurant/ui-screens/card-selected.png') center/calc(100% + 10px) calc(100% + 10px) no-repeat;box-shadow:0 0 10px #6fe7ffaa}
.rm-card .bar{right:52px}.rm-card .pct{right:9px;bottom:6px;font-size:11px}
.rm-detail .pct{min-width:44px;text-align:right}
/* Manager HUD measured on manage-shop-ui-design-v1 (941 canvas): back 90 @ (28,15); title from x148; coin pill 264x62 @ right 29, y28;
   row 2 at y105: hearts 210x57 from x155, storage 174x57, gap 13; icons 46, numbers 28px (user 10-04: height/proportion/spacing). */
.restaurant-screen.managing .restaurant-top{top:15px;left:28px;height:90px;gap:30px}
.restaurant-screen.managing .restaurant-back{flex:0 0 90px;width:90px;height:90px}.restaurant-screen.managing .restaurant-back img{width:90px;height:90px}
.restaurant-screen.managing .restaurant-stats{left:155px;top:105px;right:29px;height:57px;gap:13px}
.restaurant-screen.managing .restaurant-stat{height:57px;min-width:0;padding:0 18px 0 8px;gap:12px}
.restaurant-screen.managing .restaurant-stat:nth-child(3){width:210px}.restaurant-screen.managing .restaurant-stat.storage{width:174px}
.restaurant-screen.managing .restaurant-stat img{width:46px;height:46px}.restaurant-screen.managing .restaurant-stat b{font-size:28px}
.restaurant-screen.managing .restaurant-stat em{font-size:19px;padding:2px 10px;margin-left:4px}
.restaurant-screen.managing .restaurant-stat:first-child{top:-77px;right:0;width:264px;height:62px;justify-content:space-between;padding:0 30px 0 10px}
.restaurant-screen.managing .restaurant-stat:first-child img{width:52px;height:52px}
.restaurant-screen.managing .restaurant-stat:nth-child(3),.restaurant-screen.managing .restaurant-stat.storage{width:auto}
.restaurant-screen.managing .restaurant-stat:nth-child(3){min-width:210px}.restaurant-screen.managing .restaurant-stat.storage{min-width:174px}
.restaurant-screen.managing .restaurant-stat b{overflow:visible;text-overflow:clip}
/* Screen titles are English-only in this game (SHOP, MYSTERY EGG…), never translated (user 10-04) */
.restaurant-title strong{font-family:Rajdhani,Sarabun,sans-serif;font-weight:700;letter-spacing:.04em;font-size:36px}
.restaurant-title{width:330px;height:106px}.restaurant-title strong{font-size:30px;letter-spacing:.02em;padding:0 46px;white-space:nowrap}
.restaurant-title strong{font-size:26px;padding:0}
.restaurant-title strong{font-size:40px;letter-spacing:.03em}
/* ── HIRE CHEF screen (hire-chef-ui-design-v1) ── full-stage overlay under the HUD; HUD shows coin top-right only */
.restaurant-hire{position:absolute;z-index:6;left:0;right:0;top:calc(var(--u,.45)*178px);bottom:0;display:flex;flex-direction:column;gap:8px;padding:0 10px calc(env(safe-area-inset-bottom) + 8px);background:linear-gradient(#0000,#0000)}
.restaurant-hire[hidden]{display:none}
.restaurant-screen.hiring .restaurant-scene,.restaurant-screen.hiring .restaurant-nav,.restaurant-screen.hiring .restaurant-tray{visibility:hidden}
.restaurant-screen.hiring .restaurant-chef-cap,.restaurant-screen.hiring .restaurant-stat:not(:first-child){display:none}
.restaurant-screen.hiring .restaurant-stats{right:29px}
.restaurant-screen.hiring .restaurant-stat:first-child{position:absolute;right:0;top:-77px;width:264px;height:62px;justify-content:space-between;padding:0 30px 0 10px}
.restaurant-screen.hiring .restaurant-stat:first-child img{width:52px;height:52px}
.rh-info{display:grid;grid-template-columns:1.25fr 1.15fr 1fr;gap:6px}
.rh-info>span{display:flex;align-items:center;justify-content:center;gap:4px;min-height:34px;padding:0 6px;border:2px solid #e9fdff;border-radius:18px;background:linear-gradient(#c9f6fde6,#8edcecdd);font:700 11.5px Sarabun,sans-serif;color:#1d4a5c;white-space:nowrap;box-shadow:0 0 8px #7fe6ff88}
.rh-info img{width:18px;height:18px}.rh-info em{font-style:normal;font-weight:800;font-size:13px}
.rh-grid{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(150px,auto);gap:8px;scrollbar-width:none}
.rh-card{position:relative;padding:8px 8px 8px;border-radius:18px;background:url('/dino/restaurant/ui-screens/chef-card-common.png') center/100% 100% no-repeat;display:grid;grid-template-columns:44% 1fr;grid-template-rows:auto 1fr auto auto;column-gap:4px;cursor:pointer;min-height:150px}
.rh-card.rare{background-image:url('/dino/restaurant/ui-screens/chef-card-rare.png')}.rh-card.legend{background-image:url('/dino/restaurant/ui-screens/chef-card-legend.png')}
.rh-card.on{box-shadow:0 0 0 3px #4fe0ff,0 0 14px #6fe7ff}
.rh-card.hired{filter:grayscale(.55);opacity:.7}
.rh-card .rar,.rh-summary .rar{justify-self:start;align-self:start;padding:1px 9px;border-radius:9px;background:#7aa8b4;color:#fff;font:700 10px Sarabun,sans-serif;font-style:normal}
.rh-card .rar.rare,.rh-summary .rar.rare{background:#4c7fd9}.rh-card .rar.legend,.rh-summary .rar.legend{background:#b0548a}
.rh-card .nm{grid-column:2;grid-row:1;justify-self:center;font:800 13px Sarabun,sans-serif;color:#1d4a5c;text-align:center;line-height:1.2}
.rh-card .ck{position:absolute;right:6px;top:4px;width:22px;height:22px;border-radius:50%;background:#2f8fe8;color:#fff;font-style:normal;font-weight:900;display:grid;place-items:center;border:2px solid #fff}
.rh-card .mon{grid-column:1;grid-row:2;width:100%;height:70px;object-fit:contain;align-self:center}
.rh-card .menus{grid-column:2;grid-row:2;display:flex;gap:3px;align-items:center;justify-content:center}
.rh-card .menus span,.rh-summary .menus span{display:flex;flex-direction:column;align-items:center;min-width:0;padding:3px 2px;border-radius:10px;background:#ffffffaa}
.rh-card .menus img{width:34px;height:28px;object-fit:contain}.rh-card .menus small{font:700 8.5px Sarabun,sans-serif;color:#1d4a5c;max-width:48px;text-align:center;line-height:1.1}
.rh-card .q{grid-column:1/3;grid-row:3;margin-top:3px;font:700 10.5px Sarabun,sans-serif;color:#1d4a5c}
.rh-card .w{grid-column:1;grid-row:4;display:flex;align-items:center;gap:3px;font:800 13px Rajdhani,Sarabun,sans-serif;color:#1d4a5c}.rh-card .w img{width:20px;height:20px}
.restaurant-screen .rh-card .pick{grid-column:2;grid-row:4;justify-self:end;min-width:70px;min-height:32px;padding:0 12px;border-radius:16px;border:2px solid #fff6c8;background:linear-gradient(#ffeb8f,#ffc93d);font:800 13px Sarabun,sans-serif;color:#5a3b00}
.rh-summary{display:flex;align-items:center;gap:8px;min-height:62px;padding:6px 10px;border:2px solid #f0feff;border-radius:16px;background:linear-gradient(90deg,#f4feff,#cfeff7)}
.rh-summary .mon{width:50px;height:50px;object-fit:contain}.rh-summary>div:first-of-type{display:flex;flex-direction:column;gap:3px}
.rh-summary b{font:800 14px Sarabun,sans-serif;color:#1d4a5c}.rh-summary .menus{display:flex;gap:4px;flex:1;justify-content:center}.rh-summary .menus img{width:34px;height:26px;object-fit:contain}.rh-summary .menus small{font:700 8.5px Sarabun,sans-serif}
.rh-summary .q{display:flex;align-items:center;gap:4px;font:700 10px Sarabun,sans-serif;color:#1d4a5c;border-left:2px solid #b9dfe8;padding-left:8px}.rh-summary .q span{display:flex;flex-direction:column}.rh-summary .q b{font-size:13px}
.rh-summary .none{flex:1;text-align:center;font:700 13px Sarabun,sans-serif;color:#3c6370}
.restaurant-screen .rh-hire-btn{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-image:url('/dino/restaurant/ui-screens/button-primary-wide.png') 80 140 fill/26px 40px stretch;font:800 20px Sarabun,sans-serif;color:#5a3b00}
.rh-hire-btn img{width:28px;height:28px}
.rh-left{text-align:center;font:700 11.5px Sarabun,sans-serif;color:#1d4a5c}.rh-left .warn{color:#b0302a}
.rh-grid .rm-empty{grid-column:1/-1}.rh-grid .rm-empty small{color:#3c6370}
.rh-left>span{display:inline-block;padding:3px 12px;border-radius:12px;background:#ffffffd9;box-shadow:0 1px 4px #0002}.rh-left .warn{background:#fff0ee;color:#b0302a}
/* HIRE CHEF closer to the design (user 10-04 side-by-side): everything inside one glowing glass frame, tighter bigger cards */
.restaurant-hire{left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom) + 6px);padding:10px 9px 8px;gap:7px;border:0;border-image:url('/dino/restaurant/ui-screens/management-panel.png') 90 fill/30px stretch;filter:drop-shadow(0 0 8px #7fe6ffaa)}
.rh-info>span{background:linear-gradient(#e6fcff,#a9e8f4);border-color:#fff;font-size:12px}.rh-info em{font-size:14px}
.rh-grid{gap:6px;grid-auto-rows:minmax(158px,auto)}
.rh-card{padding:7px 7px 7px;border-radius:16px;grid-template-columns:48% 1fr}
.rh-card .nm{font-size:14px}
.rh-card .mon{height:84px;transform:scale(1.08)}
.rh-card .menus img{width:38px;height:32px}
.rh-card .q{font-size:10.5px}
.rh-card.hired{filter:none;opacity:1}
.rh-card.hired::after{content:'';position:absolute;inset:0;border-radius:16px;background:#ffffff8c;pointer-events:none}
.rh-card.hired .pick{position:relative;z-index:1;background:#c9d6da;border-color:#fff;color:#4c6670}
.rh-summary{background:linear-gradient(90deg,#ffffff,#d7f3fa);border-color:#fff}
.rh-left>span{background:none;box-shadow:none}.rh-left .warn{background:#fff0ee;box-shadow:0 1px 4px #0002}
/* scale the whole HIRE panel with the 941 stage (tuned at 444 px wide = --u .4718), like the HUD */
.restaurant-hire{zoom:calc(var(--u,.4718) / .4718);top:84px;align-content:start}
.rh-grid{grid-auto-rows:158px;align-content:start}
.rh-grid{grid-auto-rows:146px}.rh-card .mon{height:74px}.rh-card{min-height:0}
/* MY CHEFS (Codex chef-assignment-ui-design-v1): shares the HIRE page panel; slots on top, roster, selected detail, swap / dismiss */
.restaurant-hire[data-page=chefs]{gap:5px}
.rc-info{display:flex;align-items:center;min-height:36px;border:2px solid #fff;border-radius:18px;background:linear-gradient(#e6fcff,#a9e8f4);box-shadow:0 0 8px #7fe6ff88;font:700 12.5px Sarabun,sans-serif;color:#1d4a5c}
.rc-info>span{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.rc-info>i{width:2px;height:20px;background:#9fcfdc}
.rc-info img{width:20px;height:20px}.rc-info b{font-size:16px}.rc-info em{font-style:normal;font-weight:800;font-size:14px;margin-left:4px}
.rc-h{margin:2px 0 0;padding-left:4px;font:800 15px Sarabun,sans-serif;color:#1d4a5c}.rc-h::before,.rc-h::after{content:'🌿';font-size:11px;margin:0 5px}.rc-h.small{font-size:12.5px}
.rc-slots{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.rc-slot{position:relative;display:grid;grid-template-columns:46% 1fr;grid-template-rows:auto auto 1fr auto auto;column-gap:3px;padding:6px 6px 7px;border:2px solid #f2feff;border-radius:16px;background:linear-gradient(#f4feffee,#cdeff6ee);min-height:160px}
.rc-slot.target{box-shadow:0 0 0 3px #4fe0ff,0 0 12px #6fe7ff}
.rc-slot .no{position:absolute;left:5px;top:5px;width:22px;height:22px;border-radius:50%;background:#1f5d8c;color:#fff;font:800 13px Rajdhani,sans-serif;font-style:normal;display:grid;place-items:center;border:2px solid #fff;z-index:1}
.rc-slot .mon{grid-column:1;grid-row:1/4;width:100%;height:86px;object-fit:contain;align-self:center}
.rc-slot .nm{grid-column:2;grid-row:1;justify-self:center;font:800 13px Sarabun,sans-serif;color:#1d4a5c;text-align:center;line-height:1.15}
.rc-slot .rar{grid-column:2;grid-row:2;justify-self:center}
.rc-slot .menus{grid-column:2;grid-row:3;display:flex;gap:3px;justify-content:center;align-items:center}
.rc-slot .st{grid-column:1/3;grid-row:4;margin-top:4px;display:flex;align-items:center;gap:4px;min-height:22px;font:700 10.5px Sarabun,sans-serif;color:#1d4a5c}
.rc-slot .st.idle{justify-self:end;padding:0 12px;border-radius:11px;background:linear-gradient(#7fe08a,#3fb85a);color:#fff}
.rc-slot .st.wait{justify-self:end;padding:0 10px;border-radius:11px;background:#ffe9b8;color:#7a5200}
.rc-slot .st.cook i{flex:1;height:9px;border-radius:5px;background:#e3f3f8;border:1px solid #a8d4e2;overflow:hidden}.rc-slot .st.cook i b{display:block;height:100%;background:linear-gradient(#5fb7ff,#2a78e0)}
.rc-slot .st.cook em{font:700 11px Rajdhani,sans-serif;font-style:normal}
.rc-slot .emptytxt{grid-column:1/3;grid-row:1/4;align-self:center;justify-self:center;font:700 13px Sarabun,sans-serif;color:#6a8f99}
.restaurant-screen .rc-slot .swap{grid-column:1/3;grid-row:5;margin-top:5px;min-height:32px;border-radius:16px;border:2px solid #fff6c8;background:linear-gradient(#ffeb8f,#ffc93d);font:800 14px Sarabun,sans-serif;color:#5a3b00}
.restaurant-screen .rc-slot .swap:disabled{background:linear-gradient(#e4eef1,#c3d3d8);border-color:#fff;color:#8aa1a8}
.rc-slot .menus span,.rc-row .menus span,.rc-detail .menus span{display:flex;flex-direction:column;align-items:center;padding:2px 2px;border-radius:9px;background:#ffffffb8}
.rc-slot .menus img{width:36px;height:28px;object-fit:contain}.rc-slot .menus small,.rc-detail .menus small{font:700 8.5px Sarabun,sans-serif;color:#1d4a5c;max-width:50px;text-align:center;line-height:1.1}
.rc-list{flex:1;min-height:60px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;scrollbar-width:none}
.rc-row{flex:none;display:grid;grid-template-columns:52px 74px 1fr auto auto;align-items:center;gap:5px;min-height:46px;padding:2px 6px 2px 2px;border:2px solid #f2feff;border-radius:13px;background:linear-gradient(90deg,#f4feff,#d3f0f7);cursor:pointer}
.rc-row.on{background:linear-gradient(90deg,#fbf6ff,#e6f6ff);box-shadow:0 0 0 2px #7fe6ff,0 0 10px #8fe9ff}
.rc-row .mon{width:52px;height:42px;object-fit:contain}
.rc-row .who,.rc-detail .who{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}.rc-row .who b,.rc-detail .who b{font:800 12px Sarabun,sans-serif;color:#1d4a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.rc-row .menus,.rc-detail .menus{display:flex;gap:3px}.rc-row .menus img{width:30px;height:24px;object-fit:contain}.rc-row .menus small{display:none}
.rc-row .left{font:700 10.5px Sarabun,sans-serif;color:#1d4a5c;white-space:nowrap}
.rc-row .inshop,.rc-row .pickb{min-width:62px;text-align:center;padding:5px 8px;border-radius:14px;font:800 12px Sarabun,sans-serif;border:2px solid #fff}
.rc-row .inshop{background:linear-gradient(#c8f7b0,#7fdc6a);color:#1f5a2a}.rc-row .pickb{background:linear-gradient(#ffeb8f,#ffc93d);color:#5a3b00;border-color:#fff6c8}
.rc-row .ck{width:26px;height:26px;margin:0 18px;border-radius:50%;background:#2f8fe8;color:#fff;font-style:normal;font-weight:900;display:grid;place-items:center;border:2px solid #fff}
.rc-slot .rar,.rc-row .rar,.rc-detail .rar{padding:0 9px;border-radius:8px;background:#7aa8b4;color:#fff;font:700 10px Sarabun,sans-serif;font-style:normal}
.rc-slot .rar.rare,.rc-row .rar.rare,.rc-detail .rar.rare{background:#4c7fd9}.rc-slot .rar.legend,.rc-row .rar.legend,.rc-detail .rar.legend{background:#b0548a}
.rc-detail{display:grid;grid-template-columns:62px 70px 1fr 66px;align-items:center;gap:5px;min-height:62px;padding:4px 6px;border:2px solid #fff;border-radius:14px;background:linear-gradient(90deg,#ffffff,#d7f3fa)}
.rc-detail .mon{width:62px;height:56px;object-fit:contain}.rc-detail .menus{justify-content:center;border-left:2px solid #b9dfe8;padding-left:5px}.rc-detail .menus img{width:34px;height:26px;object-fit:contain}
.rc-detail .slot{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 2px;border-radius:10px;background:#ffffffc0;font:700 10px Sarabun,sans-serif;color:#1d4a5c;text-align:center}
.rc-detail .slot b{width:22px;height:22px;border-radius:50%;background:#1f5d8c;color:#fff;display:grid;place-items:center;font:800 13px Rajdhani,sans-serif}
.rc-detail .none{grid-column:1/-1;text-align:center;font:700 13px Sarabun,sans-serif;color:#3c6370}
.rc-actions{display:grid;grid-template-columns:1fr 92px;gap:6px}
.restaurant-screen .rc-swap{min-height:50px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-image:url('/dino/restaurant/ui-screens/button-primary-wide.png') 80 140 fill/26px 40px stretch;font:800 18px Sarabun,sans-serif;color:#5a3b00}
.restaurant-screen .rc-dismiss{min-height:42px;align-self:center;border-radius:14px;border:2px solid #fff;background:linear-gradient(#ffeef0,#ffd3da);font:800 13px Sarabun,sans-serif;color:#b0302a}
.restaurant-screen .rc-swap:disabled,.restaurant-screen .rc-dismiss:disabled{filter:grayscale(.7);opacity:.6}
.rc-note{margin:0;text-align:center;font:700 11px Sarabun,sans-serif;color:#1d4a5c}
.rc-row{grid-template-columns:52px 96px auto 1fr auto}.rc-row .left{justify-self:start;padding-left:6px}
/* MY CHEFS pass 2 (user side-by-side 10-04): one glass box per section instead of one outer frame, bigger monsters, list fits 5 rows */
.restaurant-hire[data-page=chefs]{border-image:none;filter:none;padding:0 2px;gap:6px;top:76px}
.rc-box{display:flex;flex-direction:column;gap:4px;padding:3px 6px 7px;border:2px solid #f2feffcc;border-radius:18px;background:linear-gradient(#d9f8fde0,#aee6f0d8);box-shadow:0 0 10px #7fe6ff88}
.rc-box.grow{flex:1;min-height:0}
.rc-h{font-size:16.5px;margin:0}.rc-h.small{font-size:13px}.rc-h::before,.rc-h::after{font-size:13px}
.rc-slot{grid-template-columns:50% 1fr;min-height:0;padding:5px 5px 6px;background:linear-gradient(#f6ffffee,#d6f3f9ee)}
.rc-slot .mon{height:104px;transform:scale(1.12);transform-origin:50% 60%}
.rc-slot .nm{font-size:13.5px}
.rc-slot .menus img{width:40px;height:32px}
.rc-slot .st{grid-row:4}.rc-slot .st.idle,.rc-slot .st.wait{grid-column:2;justify-self:center;min-width:72%;justify-content:center;margin-top:2px}
.rc-slot .st.cook{grid-column:1/3}
.restaurant-screen .rc-slot .swap{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;font-size:15px}
.rc-slot .swap .sw{width:20px;height:20px;color:#7a3a00}.rc-slot .swap:disabled .sw{color:#8aa1a8}
.rc-list{gap:3px}
.rc-row{grid-template-columns:70px 92px auto 1fr auto;min-height:44px;padding:0 6px 0 0;overflow:hidden}
.rc-row .mon{width:70px;height:46px;transform:scale(1.25);transform-origin:50% 70%}
.rc-row .who b{font-size:12.5px}
.rc-row .menus img{width:34px;height:27px}.rc-row .menus span{padding:1px 2px}
.rc-row .inshop,.rc-row .pickb{min-width:76px;padding:6px 8px;font-size:13px}
.rc-row .ck{width:28px;height:28px;margin:0 24px}
.rc-slot .rar,.rc-row .rar,.rc-detail .rar{padding:0 12px;font-size:10.5px}
.rc-detail{grid-template-columns:78px 72px 1fr 70px;min-height:70px;padding:2px 6px 2px 2px}
.rc-detail .mon{width:78px;height:66px;transform:scale(1.15)}
.rc-detail .menus img{width:40px;height:30px}
.rc-detail .slot{font-size:10.5px}.rc-detail .slot span{display:flex;align-items:center;gap:4px}.rc-detail .slot .sw{width:22px;height:22px;color:#2a78c8}
.restaurant-screen .rc-swap{min-height:54px;font-size:20px}.rc-swap .sw{width:28px;height:28px;color:#7a3a00}
.rc-actions{grid-template-columns:1fr 96px;padding:0 2px}
.rc-note{padding-bottom:2px}
.rc-row{min-height:42px;overflow:visible}.rc-row .mon{height:40px;transform:scale(1.15)}
.rc-row .inshop,.rc-row .pickb{white-space:nowrap;padding:4px 8px}
.rc-slot .mon{height:90px}.restaurant-screen .rc-slot .swap{min-height:30px;margin-top:4px}
.rc-box{padding:2px 6px 6px;gap:3px}.restaurant-hire[data-page=chefs]{gap:5px}
.rc-detail{min-height:62px}.rc-detail .mon{height:58px}
.restaurant-screen .rc-swap{min-height:50px}
.rc-note{justify-self:center;align-self:center;padding:2px 12px;border-radius:12px;background:#ffffffc8}
.rc-row{grid-template-columns:62px 88px auto 1fr 80px;gap:4px}.rc-row .inshop,.rc-row .pickb{min-width:0}.rc-row .ck{justify-self:center;margin:0}
/* Codex ui-manage art (10-04): baked TH/EN images for titles, DECORATE tabs/actions/save/cancel/sell-all, card + detail frames */
.restaurant-title>img{object-fit:contain}
.restaurant-title strong{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.restaurant-screen .rm-plaque{top:-24px;width:230px;height:46px;padding:0;background:none;border:0;box-shadow:none;filter:drop-shadow(0 2px 4px #1f6e7a55)}
.rm-plaque .pl{position:static;display:block;width:100%;height:100%;object-fit:contain;z-index:auto}
.rm-tabs{gap:3px}
.restaurant-screen .rm-tabs button,.restaurant-screen .rm-tabs button.on,.restaurant-screen .rm-actions button,.restaurant-screen .rm-commit button,.restaurant-screen .rm-sellall button{min-height:0;padding:0;border:0;border-image:none;border-radius:0;background:none;box-shadow:none;display:block}
.restaurant-screen .rm-tabs img,.restaurant-screen .rm-actions img,.restaurant-screen .rm-commit img,.restaurant-screen .rm-sellall img{display:block;width:100%;height:auto;object-fit:contain}
.restaurant-screen .rm-actions{gap:4px}
.restaurant-screen .rm-actions button:disabled{filter:grayscale(.8);opacity:.55}
.restaurant-screen .rm-actions button:not(:disabled):active,.restaurant-screen .rm-commit button:active,.restaurant-screen .rm-tabs button:active,.restaurant-screen .rm-sellall button:active{transform:scale(.96)}
.rm-commit{grid-template-columns:760fr 420fr;gap:6px;align-items:center}
.restaurant-screen .rm-sellall button{position:relative;width:100%}
.rm-sellall b{position:absolute;right:6%;top:50%;transform:translateY(-50%);min-width:22px;padding:0 6px;border-radius:11px;background:#fff;color:#5a2f8a;font:800 13px Rajdhani,sans-serif;text-align:center}
.restaurant-screen .rm-card{border:0;border-radius:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-manage/card-furniture.webp') 60 fill/15px stretch}
.restaurant-screen .rm-card.on{border:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-manage/card-selected.webp') 60 fill/15px stretch}
.rm-card .rar,.rm-detail .rar{padding:1px 9px;border-radius:0;background:url('/dino/restaurant/ui-manage/tag-rarity-common.webp') center/100% 100% no-repeat;color:#1d4a5c;font:700 10px Rajdhani,Sarabun,sans-serif;font-style:normal}
.rm-card .rar.rare{background-image:url('/dino/restaurant/ui-manage/tag-rarity-rare.webp')}.rm-card .rar.legend{background-image:url('/dino/restaurant/ui-manage/tag-rarity-legend.webp')}
.rm-card img.in{position:absolute;left:auto;right:6px;top:5px;width:22px;height:22px;padding:0;background:none;z-index:1}
.rm-card .bar,.rm-detail .bar{border-radius:0;background:none;border-image:url('/dino/restaurant/ui-manage/durability-bar-frame.webp') 12 fill/5px stretch;padding:2px}
.rm-card .bar i,.rm-detail .bar i{border-radius:0;background:none;border-image:url('/dino/restaurant/ui-manage/durability-bar-fill.webp') 12 fill/4px stretch;min-width:8px}
.rm-card.broken .bar i{filter:hue-rotate(250deg) saturate(1.3)}
.restaurant-screen .rm-detail{border:0;border-radius:0;background:none;border-image:url('/dino/restaurant/ui-manage/detail-row.webp') 60 fill/16px stretch}
.restaurant-screen .rm-detail>img{border-radius:0;background:url('/dino/restaurant/ui-manage/detail-thumb-frame.webp') center/100% 100% no-repeat;padding:6px}
.restaurant-screen .restaurant-inv .rm-actions>button,.restaurant-screen .restaurant-inv .rm-commit>button,.restaurant-screen .restaurant-inv .rm-tabs>button{padding:0;border:0;border-image:none;border-radius:0;background:none;box-shadow:none;outline:0}
.rm-card .bar,.rm-detail .bar{height:12px;padding:0;border-image-width:6px;display:flex;align-items:stretch}
.rm-card .bar i,.rm-detail .bar i{height:auto;border-image-width:6px}
.restaurant-screen .rm-sellall{display:flex;justify-content:center}.restaurant-screen .restaurant-inv .rm-sellall button{width:auto}.restaurant-screen .rm-sellall img{width:auto;height:36px}
.rm-sellall:not([hidden])~.rm-grid{flex-basis:150px}
/* HIRE CHEF cleanup (user 10-04 "ยังดูเละ"): no outer glass frame (cards sit on the backdrop like the design), cards fill the
   height, solid card bodies, hired = dimmed not white-washed, name clear of the check, clean disabled hire button */
.restaurant-hire[data-page=hire]{border-image:none;filter:none;padding:0 2px;gap:6px;top:76px}
.restaurant-hire[data-page=hire] .rh-grid{flex:1;min-height:0;grid-auto-rows:minmax(140px,1fr);gap:7px}
.restaurant-screen .rh-card{background-color:#f2fdffeb;border-radius:16px;box-shadow:0 2px 8px #0e4a5a33;grid-template-rows:auto 1fr auto auto;padding:7px 8px}
.rh-card.rare{background-color:#eaf3ffeb}.rh-card.legend{background-color:#fff4f6eb}
.rh-card .nm{padding:0 22px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:14px}
.rh-card .ck{right:5px;top:5px}
.rh-card .mon{height:100%;max-height:96px;min-height:62px;transform:scale(1.15)}
.rh-card .menus small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rh-card.hired::after{display:none}
.rh-card.hired{filter:grayscale(.6);opacity:.62}
.rh-card.on{box-shadow:0 0 0 3px #4fe0ff,0 0 14px #6fe7ff}
.rh-summary{background:#f6feff;box-shadow:0 2px 8px #0e4a5a33}
.restaurant-screen .rh-hire-btn:disabled{filter:grayscale(1) brightness(1.08);opacity:.85;color:#5c6b70}
.rh-left>span{background:#ffffffd9;box-shadow:0 1px 4px #0002}
/* durability bar: Codex's 320x36 bar art smeared when stretched to card/detail widths (user: "หลอดคงทนเละ") → crisp CSS bar */
.rm-card .bar,.rm-detail .bar{border-image:none;height:9px;padding:1px;border-radius:6px;background:#d5eef4;box-shadow:inset 0 1px 2px #0e4a5a40,0 0 0 1px #ffffff;display:block}
.rm-card .bar i,.rm-detail .bar i{border-image:none;height:100%;min-width:0;border-radius:5px;background:linear-gradient(#8ef09a,#3cc760)}
.rm-card.broken .bar i{filter:none;background:linear-gradient(#ff9a9a,#e05a5a)}
.rm-detail .bar{height:11px}
/* hired applicant cards: card stays solid, only its contents fade (opacity on the card let the backdrop bleed through) */
.rh-card.hired{filter:none;opacity:1}
.rh-card.hired>:not(.pick){filter:grayscale(.8);opacity:.45}
.rh-card .nm{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.15}
/* ===== DECORATE panel, Codex revision 2 (UI-MANAGE-FIX-HANDOFF): fixed 900x950 box in 941-stage units, placed at the
   reference coordinates and scaled with --u, so every image shows at its natural aspect. Coords = reference minus (20,690). */
.restaurant-screen .restaurant-inv{left:calc(var(--u,.4718)*20px);top:calc(var(--u,.4718)*690px);right:auto;bottom:auto;width:calc(var(--u,.4718)*900px);height:calc(var(--u,.4718)*950px);max-height:none;padding:0;border:0;border-image:none;background:none;box-shadow:none;display:block;overflow:visible}
.rm-stage{position:absolute;left:0;top:0;width:900px;height:950px;zoom:var(--u,.4718);background:url('/dino/restaurant/ui-manage/management-panel-v2.webp') 0 0/100% 100% no-repeat;font-family:Sarabun,sans-serif;color:#18356c}
.restaurant-screen .rm-stage .rm-plaque{position:absolute;left:210px;top:-2px;width:480px;height:75px;transform:none;padding:0;margin:0;background:none;border:0;box-shadow:none;filter:none}
.rm-stage .rm-plaque .pl{position:static;display:block;width:100%;height:100%}
.rm-stage .rm-tabs{position:absolute;left:41px;top:83px;width:821px;height:58px;display:grid;grid-template-columns:repeat(4,200px);gap:7px}
.restaurant-screen .rm-stage .rm-tabs img{width:200px;height:58px}
.rm-stage .rm-grid{position:absolute;left:41px;top:156px;width:834px;height:399px;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,268px);grid-auto-rows:194px;gap:11px 10px;flex:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.rm-stage .rm-sellall:not([hidden]){position:absolute;left:245px;top:150px;width:410px;height:50px;display:block;z-index:2}
.restaurant-screen .rm-stage .rm-sellall img{width:410px;height:50px}
.rm-stage .rm-sellall b{font-size:26px;min-width:40px;border-radius:20px}
.rm-stage .rm-sellall:not([hidden])~.rm-grid{top:212px;height:343px}
.rm-stage .rm-note{position:absolute;left:50%;top:520px;transform:translateX(-50%);z-index:2;padding:4px 18px;border-radius:20px;background:#fff0eef0;color:#b0302a;font:700 22px Sarabun,sans-serif;white-space:nowrap}
.rm-stage .rm-note[hidden]{display:none}
.restaurant-screen .rm-stage .rm-card,.restaurant-screen .rm-stage .rm-card.on{position:relative;display:block;width:268px;height:194px;padding:0;border:0;border-radius:0;border-image:none;box-shadow:none;overflow:visible;background:url('/dino/restaurant/ui-manage/card-furniture.webp') 0 0/100% 100% no-repeat;filter:none}
.restaurant-screen .rm-stage .rm-card.on{background-image:url('/dino/restaurant/ui-manage/card-selected.webp')}
.rm-stage .rm-card img.rar{position:absolute;left:17px;top:10px;width:90px;height:28px;padding:0;background:none;z-index:1}
.rm-stage .rm-card img.in{position:absolute;left:auto;right:14px;top:10px;width:40px;height:40px;z-index:1}
.rm-stage .rm-card>img:not(.rar):not(.in){position:absolute;left:53px;top:28px;right:auto;width:161px;height:139px;margin:0;object-fit:contain}
.rm-stage .rm-card .h,.rm-stage .rm-detail .h{position:absolute;display:flex;align-items:center;gap:6px;font:700 24px Sarabun,sans-serif;color:#18356c;bottom:auto}
.rm-stage .rm-card .h{left:18px;top:120px}
.rm-stage .h img{width:29px;height:29px}
.rm-stage .rm-card .bar,.rm-stage .rm-detail .bar{position:absolute;display:block;box-sizing:border-box;height:19px;padding:1px;border:2px solid #fff;border-radius:10px;border-image:none;background:#8bbecb;box-shadow:none;margin:0;max-width:none}
.rm-stage .rm-card .bar{left:18px;top:164px;width:160px;right:auto;bottom:auto}
.rm-stage .bar i{display:block;height:100%;min-width:0;border-radius:7px;border-image:none;background:linear-gradient(#5cf58a,#20d855);filter:none}
.rm-stage .broken .bar i{background:linear-gradient(#ff9a9a,#e05a5a)}
.rm-stage .rm-card .pct{position:absolute;left:186px;top:157px;right:auto;bottom:auto;font:700 24px Sarabun,sans-serif;color:#18356c}
.rm-stage .rm-card.broken{filter:none}.rm-stage .rm-card.broken>img:not(.rar):not(.in){filter:saturate(.4)}
.rm-stage .rm-empty{grid-column:1/-1;align-self:center;font-size:26px}.rm-stage .rm-empty img{width:120px;height:120px}
.restaurant-screen .rm-stage .rm-detail{position:absolute;left:38px;top:567px;width:825px;height:122px;min-height:0;padding:0;border:0;border-radius:0;border-image:none;background:url('/dino/restaurant/ui-manage/detail-row.webp') 0 0/100% 100% no-repeat;display:block}
.restaurant-screen .rm-stage .rm-detail>img{position:absolute;left:24px;top:9px;width:126px;height:104px;padding:0;border-radius:0;background:none;object-fit:contain}
.rm-stage .rm-detail>div{position:absolute;inset:0;display:block}
.rm-stage .rm-detail b{position:absolute;left:186px;top:12px;font:700 38px Sarabun,sans-serif;color:#18356c;white-space:nowrap}
.rm-stage .rm-detail .h{left:186px;top:74px;font-size:25px}
.rm-stage .rm-detail .bar{left:277px;top:83px;width:137px;height:20px}
.rm-stage .rm-detail .pct{position:absolute;left:424px;top:73px;font:700 25px Sarabun,sans-serif;color:#18356c;min-width:0;text-align:left;white-space:nowrap}
.rm-stage .rm-hint{position:absolute;inset:0;display:grid;place-items:center;font:700 28px Sarabun,sans-serif;color:#3c6370}
.rm-stage .rm-actions{position:absolute;left:38px;top:709px;width:827px;height:113px;display:grid;grid-template-columns:repeat(4,197px);gap:13px;padding:0}
.restaurant-screen .rm-stage .rm-actions img{width:197px;height:113px}
.rm-stage .rm-commit{position:absolute;left:118px;top:842px;width:705px;height:85px;display:grid;grid-template-columns:470px 217px;gap:18px}
.restaurant-screen .rm-stage .rm-commit img{width:auto;height:85px}
.rm-stage .rm-commit .rm-save img{width:470px}.rm-stage .rm-commit .rm-cancel img{width:217px}
.rm-stage .rm-card img.rar{right:auto}.rm-stage .h img{position:static;inset:auto;margin:0}
/* money pill per the design (220x70 at x690,y30): taller, bigger coin, amount centred — DECORATE / HIRE / MY CHEFS */
.restaurant-screen.managing .restaurant-stat:first-child,.restaurant-screen.hiring .restaurant-stat:first-child{top:-80px;width:236px;height:70px;justify-content:flex-start;gap:6px;padding:0 14px 0 6px}
.restaurant-screen.managing .restaurant-stat:first-child img,.restaurant-screen.hiring .restaurant-stat:first-child img{width:60px;height:60px}
.restaurant-screen.managing .restaurant-stat:first-child b,.restaurant-screen.hiring .restaurant-stat:first-child b{flex:1;text-align:center;font-size:33px}
/* title overlay centred on the panel bump (bump inner pill x220-680, y5-88 → centre 450,46), 1.2x so the group fills it like the design */
.restaurant-screen .rm-stage .rm-plaque{left:162px;top:1px;width:576px;height:90px}
.rm-stage .rm-detail>.rm-hint{display:grid;place-items:center;font:700 28px Sarabun,sans-serif;color:#3c6370}
.rm-stage .rm-detail>.rm-hint{display:flex;align-items:center;justify-content:center;text-align:center}
/* main screen vs the design (user 10-04): taller bottom bar + buttons, bigger stat pills, tray = white dish tile + bold xN, dashed empty slots */
.restaurant-nav{height:118px;padding:9px 8px;gap:7px;bottom:calc(env(safe-area-inset-bottom) + 4px)}
.restaurant-nav img{width:44px;height:44px}
.restaurant-nav span{font-size:16px;font-weight:800}
.restaurant-nav small{min-width:52px;font-size:12px;padding:1px 6px}
.restaurant-screen .restaurant-tray{bottom:calc(env(safe-area-inset-bottom) + 132px);width:303px;height:70px;padding:7px 11px;display:flex;gap:6px}
.restaurant-tray-slot{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:4px;padding:0 3px;border-radius:12px}
.restaurant-tray-slot img{width:52px;height:52px;padding:4px;box-sizing:border-box;object-fit:contain;border-radius:12px;background:#fff;box-shadow:0 1px 3px #0e4a5a40}
.restaurant-tray-slot b{align-self:flex-end;margin-bottom:8px;font:800 18px Rajdhani,Sarabun,sans-serif;color:#1d3a5c;text-shadow:none}
.restaurant-tray-slot.empty{border:2px dashed #ffffffb8;background:#ffffff26}
.restaurant-tray-slot.empty img{display:none}
.restaurant-message{bottom:212px}
/* HUD is in 941-stage units: design pills ≈ 80 tall (38 css px at 444 wide) */
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stats{height:80px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat{height:80px;min-width:254px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat img{width:64px;height:64px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat b{font-size:33px}
.restaurant-chef-cap{width:204px;height:80px}.restaurant-chef-cap img{width:58px;height:58px}.restaurant-chef-cap b{font-size:33px}
@media(max-height:690px){.restaurant-nav{height:92px}.restaurant-nav img{width:34px;height:34px}.restaurant-screen .restaurant-tray{bottom:104px;height:60px}.restaurant-tray-slot img{width:44px;height:44px}.restaurant-message{bottom:172px}}
.restaurant-screen .restaurant-tray-slot:not(.empty){background:none;border:0;box-shadow:none;border-image:none}
.restaurant-screen .restaurant-tray{border:2px solid #f2ffff;border-image:none;border-radius:20px;background:linear-gradient(#c9f6fde8,#86d9eae8);box-shadow:0 0 12px #7fe6ffaa,inset 0 2px 3px #ffffffb0}
/* 3 equal cells: same box for filled and empty (border-box, same 2px border), content centred */
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty){box-sizing:border-box;flex:1 1 0;justify-content:center;gap:5px;padding:0;border:2px solid #ffffff80;border-radius:14px;background:#ffffff38}
.restaurant-screen .restaurant-tray-slot.empty{border:2px dashed #ffffffc8;background:#ffffff26}
.restaurant-screen .restaurant-tray-slot img{width:42px;height:42px;padding:3px}
/* bottom bar on Codex's nav art (UI-WIDE-HANDOFF, 10-04 03:00): glass bar panel + pastel wide button frames, 9-slice */
.restaurant-nav{border:0;border-radius:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui/nav-bar-panel.webp') 110 fill/34px stretch;padding:12px 12px}
.restaurant-nav button{border-image-slice:105 fill;border-image-width:26px}
.restaurant-nav button:nth-child(1){border-image-source:url('/dino/restaurant/ui/nav-wide-mint.webp')}
.restaurant-nav button:nth-child(2){border-image-source:url('/dino/restaurant/ui/nav-wide-yellow.webp')}
.restaurant-nav button:nth-child(3){border-image-source:url('/dino/restaurant/ui/nav-wide-cyan.webp')}
.restaurant-nav button:nth-child(4){border-image-source:url('/dino/restaurant/ui/nav-wide-lilac.webp')}
/* room style (wallpaper / floor) button + picker — DECORATE only (user 10-04) */
.restaurant-style-btn{display:none}
.restaurant-screen.managing .restaurant-style-btn{display:flex;position:absolute;z-index:6;left:12px;top:calc(var(--u,.4718)*330px);align-items:center;gap:4px;padding:5px 12px 5px 8px;border:2px solid #fff;border-radius:18px;background:linear-gradient(#ffeef4,#ffd0e0);box-shadow:0 2px 8px #0e4a5a40;font:800 13px Sarabun,sans-serif;color:#6a2c48;cursor:pointer}
.restaurant-style-btn span{font-size:18px;line-height:1}
.restaurant-sheet.styles .rs-h{margin:6px 0 4px;font:800 14px Sarabun,sans-serif;color:#1d4a5c}
.restaurant-sheet.styles .rs-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.restaurant-sheet.styles .rs-opt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border:2px solid #e3f6fa;border-radius:12px;background:#f6feff;cursor:pointer}
.restaurant-sheet.styles .rs-opt.on{border-color:#3fd5ea;box-shadow:0 0 0 2px #8cf1ff}
.restaurant-sheet.styles .rs-opt>img{width:64px;height:52px;object-fit:contain}
.restaurant-sheet.styles .rs-opt b{font:700 11px Sarabun,sans-serif;color:#1d4a5c;text-align:center;line-height:1.15}
.restaurant-sheet.styles .rs-opt small{display:flex;align-items:center;gap:2px;font:700 10.5px Sarabun,sans-serif;color:#2f7d5a}
.restaurant-sheet.styles .rs-opt.locked small{color:#7a5200}.restaurant-sheet.styles .rs-opt small img{width:14px;height:14px}
/* ===== MY CHEFS on Codex ui-my-chefs art (10-04). Images are 2x of the 941 canvas → at the 444 baseline 1 image px = .236 css px.
   Frames are 9-slice with Codex's capInsets; baked labels/buttons are sized by height so they keep their aspect. */
.restaurant-hire[data-page=chefs] .rc-info{border:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-my-chefs/info-bar.webp') 40 fill/9.5px stretch;min-height:36px}
.rc-info>span{gap:8px}.rc-info>span:first-child{border-right:2px solid #9fcfdc}.rc-info img.lbl{height:17px;width:auto}.rc-info em{font:800 15px Rajdhani,Sarabun,sans-serif}
.restaurant-hire[data-page=chefs] .rc-box{border:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-my-chefs/section-box.webp') 70 fill/16px stretch;padding:4px 7px 8px}
.rc-h{display:flex;justify-content:flex-start;padding-left:2px}.rc-h::before,.rc-h::after{content:none}
.rc-h img{height:17px;width:auto}.rc-h.small img{height:14px}
.restaurant-hire[data-page=chefs] .rc-slot{border:0;border-radius:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-my-chefs/slot-card.webp') 70 fill/16px stretch}
.restaurant-hire[data-page=chefs] .rc-slot.target{box-shadow:none;border-image-source:url('/dino/restaurant/ui-my-chefs/slot-card-target.webp')}
.rc-slot .no{background:url('/dino/restaurant/ui-my-chefs/slot-number-badge.webp') center/100% 100%;border:0;width:22px;height:22px}
.rc-slot img.rar,.rc-row img.rar,.rc-detail img.rar{height:14px;width:auto;padding:0;background:none;border-radius:0}
.rc-slot img.rar{grid-column:2;grid-row:2;justify-self:center}
.rc-slot .st{min-height:0}.rc-slot .st img{height:16px;width:auto}
.rc-slot .st.idle,.rc-slot .st.wait{padding:0;background:none;border-radius:0;min-width:0}
.rc-slot .st.cook{gap:5px}.rc-slot .st.cook>img{height:13px}
.rc-slot .st.cook i{flex:1;height:9px;border:0;border-radius:0;background:url('/dino/restaurant/ui-my-chefs/progress-frame.webp') 0 0/100% 100%;overflow:hidden}
.rc-slot .st.cook i b{background:url('/dino/restaurant/ui-my-chefs/progress-fill.webp') 0 0/auto 100% no-repeat;height:100%}
.restaurant-screen .restaurant-hire[data-page=chefs] .rc-slot .swap,.restaurant-screen .restaurant-hire[data-page=chefs] .rc-slot .swap:disabled{min-height:0;padding:0;border:0;border-radius:0;background:none;display:block;margin-top:5px}
.rc-slot .swap img{display:block;width:100%;height:auto}
.restaurant-hire[data-page=chefs] .rc-row,.restaurant-hire[data-page=chefs] .rc-row.on{border:0;border-radius:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-my-chefs/roster-row.webp') 50 fill/12px stretch}
.restaurant-hire[data-page=chefs] .rc-row.on{border-image-source:url('/dino/restaurant/ui-my-chefs/roster-row-selected.webp')}
.rc-row img.inshop,.rc-row img.pickb{height:28px;width:auto;min-width:0;padding:0;border:0;border-radius:0;background:none;justify-self:center}
.rc-row img.ck{width:24px;height:24px;margin:0;border:0;background:none;justify-self:center}
.restaurant-hire[data-page=chefs] .rc-detail{border:0;border-radius:0;box-shadow:none;background:none;border-image:url('/dino/restaurant/ui-my-chefs/detail-row.webp') 60 fill/14px stretch}
.rc-detail .slot{padding:5px 2px;border-radius:0;background:url('/dino/restaurant/ui-my-chefs/slot-target-box.webp') center/100% 100% no-repeat}
.rc-detail .slot img.lbl{height:12px;width:auto}.rc-detail .slot small{font:700 10px Sarabun,sans-serif}
.rc-detail .slot b{background:url('/dino/restaurant/ui-my-chefs/slot-number-badge.webp') center/100% 100%}
.restaurant-screen .restaurant-hire[data-page=chefs] .rc-swap,.restaurant-screen .restaurant-hire[data-page=chefs] .rc-swap:disabled,.restaurant-screen .restaurant-hire[data-page=chefs] .rc-dismiss,.restaurant-screen .restaurant-hire[data-page=chefs] .rc-dismiss:disabled{min-height:0;padding:0;border:0;border-image:none;border-radius:0;background:none;filter:none;opacity:1;display:block;align-self:center}
.restaurant-screen .restaurant-hire[data-page=chefs] .rc-dismiss:disabled{filter:grayscale(.8);opacity:.55}
.rc-actions{grid-template-columns:1100fr 420fr;gap:6px;align-items:center}
.rc-actions img{display:block;width:100%;height:auto}
.rc-note{padding:0;background:none;border-radius:0}.rc-note img{display:block;height:14px;width:auto;margin:0 auto}
.restaurant-screen .restaurant-hire[data-page=chefs] .rc-dismiss:disabled{filter:grayscale(1) brightness(1.05);opacity:1}
.rc-note{justify-self:center;align-self:center;padding:3px 12px;border-radius:12px;background:#ffffffd9}.rc-note img{height:16px}
/* ===== ready-food tray on Codex ui-tray (941 canvas: panel 650x150, slots 190x120 at x25/230/435 y15) → ×.4718 at 444 */
.restaurant-screen .restaurant-tray{width:307px;height:71px;padding:7px 12px;gap:7px;border:0;border-radius:0;border-image:none;box-shadow:none;background:url('/dino/restaurant/ui-tray/tray-panel.webp') 0 0/100% 100% no-repeat}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{position:relative;flex:0 0 90px;height:57px;padding:0;border:0;border-radius:0;box-shadow:none;background:url('/dino/restaurant/ui-tray/tray-slot-filled.webp') 0 0/100% 100% no-repeat;justify-content:flex-start;align-items:flex-start}
.restaurant-screen .restaurant-tray-slot.empty{background-image:url('/dino/restaurant/ui-tray/tray-slot-empty.webp')}
.restaurant-screen .restaurant-tray-slot img{position:absolute;left:5px;top:3px;width:46px;height:42px;padding:0;border-radius:0;background:none;box-shadow:none;object-fit:contain}
.restaurant-screen .restaurant-tray-slot b{position:absolute;right:8px;bottom:5px;margin:0;font:800 15px Rajdhani,Sarabun,sans-serif;color:#1d3a5c}
/* room theme button + picker on Codex ui-theme */
.restaurant-screen.managing .restaurant-style-btn{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.restaurant-style-btn img{display:block;height:36px;width:auto}
.restaurant-sheet.styles h3{display:flex;justify-content:center}.restaurant-sheet.styles .rs-title{height:42px;width:auto}
.restaurant-sheet.styles .rs-h img{height:20px;width:auto}
.restaurant-sheet.styles .rs-opt,.restaurant-sheet.styles .rs-opt.on{padding:10px 6px 9px;border:0;border-radius:0;box-shadow:none;background:url('/dino/restaurant/ui-theme/card-theme.webp') 0 0/100% 100% no-repeat;aspect-ratio:260/240}
.restaurant-sheet.styles .rs-opt.on{background-image:url('/dino/restaurant/ui-theme/card-theme-selected.webp')}
.restaurant-sheet.styles .rs-opt.locked{background-image:url('/dino/restaurant/ui-theme/card-theme-locked.webp')}
.restaurant-sheet.styles .rs-opt small img.inuse{width:auto;height:17px}
/* Codex round 3 overlay already has leaves + bigger text: use its reference size, centred on the bump (450,46) */
.restaurant-screen .rm-stage .rm-plaque{left:210px;top:9px;width:480px;height:75px}
.restaurant-sheet.styles{background:none;border:0;border-image:url('/dino/restaurant/ui-my-chefs/section-box.webp') 70 fill/24px stretch;padding:12px 18px 18px;box-shadow:none;filter:drop-shadow(0 4px 10px #0e4a5a55)}
.restaurant-sheet.styles h3{margin:0 44px 6px}.restaurant-sheet.styles .rs-title{height:46px}
.restaurant-sheet.styles{background:#e9fafcf7;border-radius:26px;background-clip:padding-box}
/* tray closer to the design (user 10-04 "ไม่เห็นเหมือน"): see-through pale glass, shallow light slots, big dish + bold count.
   Codex's art is too opaque/saturated, so the frames sit on ::before layers we can fade without fading the dish. */
.restaurant-screen .restaurant-tray{position:absolute;background:none;isolation:isolate}
.restaurant-screen .restaurant-tray::before{content:'';position:absolute;inset:0;z-index:-1;background:url('/dino/restaurant/ui-tray/tray-panel.webp') 0 0/100% 100% no-repeat;opacity:.72;filter:saturate(.55) brightness(1.12)}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{background:none;isolation:isolate}
.restaurant-screen .restaurant-tray-slot::before{content:'';position:absolute;inset:0;z-index:-1;background:url('/dino/restaurant/ui-tray/tray-slot-filled.webp') 0 0/100% 100% no-repeat;opacity:.9;filter:saturate(.5) brightness(1.18)}
.restaurant-screen .restaurant-tray-slot.empty::before{background-image:url('/dino/restaurant/ui-tray/tray-slot-empty.webp');opacity:.55;filter:saturate(.45) brightness(1.25)}
.restaurant-screen .restaurant-tray-slot img{left:4px;top:3px;width:54px;height:50px}
.restaurant-screen .restaurant-tray-slot b{right:7px;bottom:6px;font:800 19px Rajdhani,Sarabun,sans-serif;color:#162f5a}
.restaurant-screen .restaurant-tray::before{opacity:.86;filter:saturate(.8) brightness(1.06)}
.restaurant-screen .restaurant-tray-slot::before{opacity:.92;filter:saturate(.7) brightness(1.08)}
.restaurant-screen .restaurant-tray-slot.empty::before{opacity:.78;filter:saturate(.7) brightness(1.1)}
.restaurant-screen .restaurant-tray-slot[data-len="2"] img{width:47px;height:46px}.restaurant-screen .restaurant-tray-slot[data-len="2"] b{font-size:17px}
.restaurant-screen .restaurant-tray-slot[data-len="3"] img,.restaurant-screen .restaurant-tray-slot[data-len="4"] img{width:40px;height:40px;top:6px}
.restaurant-screen .restaurant-tray-slot[data-len="3"] b,.restaurant-screen .restaurant-tray-slot[data-len="4"] b{font-size:15px;right:5px}
/* per the design: bowl sits inside the slot with a margin all round (~60% of the slot height), modest count beside it */
.restaurant-screen .restaurant-tray-slot img,.restaurant-screen .restaurant-tray-slot[data-len] img{left:9px;top:11px;width:36px;height:34px}
.restaurant-screen .restaurant-tray-slot b,.restaurant-screen .restaurant-tray-slot[data-len] b{right:9px;bottom:10px;font-size:15px}
.restaurant-screen .restaurant-tray-slot[data-len="3"] b,.restaurant-screen .restaurant-tray-slot[data-len="4"] b{font-size:13px;right:7px}
/* symmetry (user 10-05): every slot uses the SAME frame (Codex's empty slot); a filled slot just gets a light tile inside
   the frame's recess, so filled and empty slots look the same size */
.restaurant-screen .restaurant-tray-slot::before,.restaurant-screen .restaurant-tray-slot.empty::before{background-image:url('/dino/restaurant/ui-tray/tray-slot-empty.webp');opacity:.78;filter:saturate(.7) brightness(1.1)}
.restaurant-screen .restaurant-tray-slot:not(.empty)::after{content:'';position:absolute;z-index:-1;inset:5px 6px;border-radius:9px;background:linear-gradient(#d8f6fb,#a8e3ef);box-shadow:inset 0 1px 0 #ffffffcc}
/* ===== ready-food tray drawn to the design itself (user 10-05: Codex's tray art is a different style — thick pill rim,
   bevelled double-frame slots). Design: thin glassy rounded rect, soft white rim, recessed translucent slots with a
   dashed inner line; the filled slot is a light glass tile; big bowl left, bold count bottom-right. */
.restaurant-screen .restaurant-tray{width:310px;height:72px;padding:8px 10px;gap:8px;border-radius:16px;border:1.5px solid #ffffffd9;
  background:linear-gradient(#c9f3f9b8,#9fe1eeb0);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  box-shadow:0 0 0 1px #7fd6e680,0 0 10px #8ce9ff99,inset 0 1px 2px #ffffffb0,inset 0 -2px 4px #3fa9c040}
.restaurant-screen .restaurant-tray::before{content:none}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{flex:1 1 0;height:auto;border-radius:12px;border:0;background:#4fb3c84d;box-shadow:inset 0 2px 5px #0b5a6e55,inset 0 0 0 1px #ffffff40}
.restaurant-screen .restaurant-tray-slot::before{content:none}
.restaurant-screen .restaurant-tray-slot.empty::after,.restaurant-screen .restaurant-tray-slot:not(.empty)::after{content:'';position:absolute;inset:5px;border-radius:9px;border:1.5px dashed #ffffffb3;background:none;box-shadow:none;z-index:0}
.restaurant-screen .restaurant-tray-slot:not(.empty){background:linear-gradient(#f0fdff,#c4eef6);box-shadow:0 1px 3px #0b5a6e40,inset 0 1px 0 #fff,inset 0 0 0 1px #ffffffcc}
.restaurant-screen .restaurant-tray-slot:not(.empty)::after{content:none}
.restaurant-screen .restaurant-tray-slot img,.restaurant-screen .restaurant-tray-slot[data-len] img{left:5px;top:6px;width:44px;height:44px;z-index:1}
.restaurant-screen .restaurant-tray-slot b,.restaurant-screen .restaurant-tray-slot[data-len] b{right:7px;bottom:6px;z-index:1;font:800 17px Rajdhani,Sarabun,sans-serif;color:#13294f}
.restaurant-screen .restaurant-tray-slot[data-len="3"] img,.restaurant-screen .restaurant-tray-slot[data-len="4"] img{width:38px;height:38px;top:9px}
.restaurant-screen .restaurant-tray-slot[data-len="3"] b,.restaurant-screen .restaurant-tray-slot[data-len="4"] b{font-size:14px;right:5px}
.restaurant-screen .restaurant-tray{background:linear-gradient(#b4ecf6e6,#7fd3e6e0);border-color:#ffffffe6;box-shadow:0 0 0 1px #5cc7dc99,0 0 12px #7fe6ffcc,inset 0 1px 2px #ffffffc0,inset 0 -3px 6px #2a97b055}
.restaurant-screen .restaurant-tray-slot.empty{background:#2f9db885;box-shadow:inset 0 2px 6px #06485c66,inset 0 0 0 1px #ffffff55}
.restaurant-screen .restaurant-tray-slot:not(.empty){background:linear-gradient(#f2fdff,#bdeaf3);box-shadow:0 1px 4px #0b5a6e55,inset 0 1px 0 #fff,inset 0 0 0 1.5px #ffffffe6}

/* Reference HUD: measurements in the shared 941 × 1672 stage. Header row (back/title) stays the game-wide one (user 10-05).
   Keep secondary screens' independent header layout and all live game values. */
.restaurant-screen:not(.managing):not(.hiring) .restaurant-chef-cap{width:160px;height:58px;gap:7px;color:#fff}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-chef-cap img{width:46px;height:46px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-chef-cap b{font-size:31px;text-shadow:0 2px 2px #229abc}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stats{left:44px;top:178px;height:58px;gap:8px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat{min-width:0;width:218px;height:54px;gap:7px;padding:0 12px 0 4px;border:2px solid #d9ffff;border-radius:30px;background:radial-gradient(ellipse at 90% 48%,#f0ffffc9,transparent 34%),linear-gradient(180deg,#b7f6ff 0%,#7bdced 29%,#4bc3e0 54%,#90e6f2 84%,#d4ffff 100%);box-shadow:inset 0 2px 5px #fff,inset 0 -2px 5px #7ce4ff,0 0 8px #96ffffa6}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:nth-child(2){width:205px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:nth-child(3){width:216px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat img{width:44px;height:44px;filter:saturate(.85) drop-shadow(0 1px 2px #ffffff80)}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat b{font-size:29px;flex:1;text-align:center;color:#163d65;text-shadow:0 1px #d5fbff80}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat em{margin-left:0;padding:1px 5px;font-size:18px;background:#bcf4f1a6;color:#237f87;box-shadow:none}
.restaurant-screen .restaurant-nav{left:calc(14px * var(--u));right:auto;bottom:calc(18px * var(--u));width:913px;height:204px;transform:scale(var(--u));transform-origin:bottom left;display:grid;gap:13px;padding:17px 19px 16px;border:3px solid #d6ffff;border-image:none;border-radius:48px;background:linear-gradient(115deg,#8bfff1cc,#33d9eadb 50%,#76c9ffd9);box-shadow:inset 0 2px 9px #fff,0 0 16px #8cfff5}
.restaurant-screen .restaurant-nav button{border:3px solid #d9fff6;border-image:none;border-radius:34px;padding:8px 2px 7px;gap:0;box-shadow:inset 0 3px 10px #fff,0 0 8px #fff9;background:linear-gradient(#a0ffe6,#42e7c1)!important}
.restaurant-screen .restaurant-nav button:nth-child(2){border-color:#fff8b4;background:linear-gradient(#fff5aa,#ffda4d)!important}
.restaurant-screen .restaurant-nav button:nth-child(3){border-color:#c2f9ff;background:linear-gradient(#91eeff,#39ccf5)!important}
.restaurant-screen .restaurant-nav button:nth-child(4){border-color:#f4d8ff;background:linear-gradient(#f0c5ff,#c398f1)!important}
.restaurant-screen .restaurant-nav img{width:80px;height:80px;margin:0 0 2px;filter:drop-shadow(0 2px 2px #54898040)}
.restaurant-screen .restaurant-nav span{font-size:30px;line-height:35px;text-shadow:0 1px #ffffff90}
.restaurant-screen .restaurant-nav small{min-width:106px;height:27px;line-height:27px;margin-top:2px;padding:0 10px;font-size:25px;border-radius:15px}
.restaurant-screen .restaurant-tray{left:50%;bottom:calc(242px * var(--u));width:560px;height:142px;min-height:0;transform:translateX(-50%) scale(var(--u));transform-origin:bottom center;padding:22px 32px;gap:19px;border:3px solid #d5ffff;border-radius:43px;background:linear-gradient(110deg,#85e7eeeF,#45bfd2ed 58%,#62d4e3ef);box-shadow:inset 0 2px 8px #f0ffff,inset 0 -4px 10px #279fb655,0 0 15px #75efff;border-image:none}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{flex:1 1 0;height:96px;border:2px solid #b8f3fa99;border-radius:23px;background:linear-gradient(#359db4a6,#4bb7c9b3);box-shadow:inset 0 2px 6px #176b8555;opacity:1}
.restaurant-screen .restaurant-tray-slot.empty::after{inset:6px;border:2px dashed #c8f6ff99;border-radius:18px}
.restaurant-screen .restaurant-tray-slot img,.restaurant-screen .restaurant-tray-slot[data-len] img{left:0;top:1px;width:96px;height:88px;padding:0}
.restaurant-screen .restaurant-tray-slot b,.restaurant-screen .restaurant-tray-slot[data-len] b{right:5px;bottom:0;font:800 34px Rajdhani,Sarabun,sans-serif}
.restaurant-screen .restaurant-tray-slot[data-len="3"] img,.restaurant-screen .restaurant-tray-slot[data-len="4"] img{width:76px;height:76px}
.restaurant-screen .restaurant-tray-slot[data-len="3"] b,.restaurant-screen .restaurant-tray-slot[data-len="4"] b{font-size:27px}

/* Pale blue glass under the ready dish, matching the reference tray. */
.restaurant-screen .restaurant-tray-slot:not(.empty){background:linear-gradient(#9ddfe9,#75cbdc);box-shadow:inset 0 1px 4px #dcffff80,inset 0 -2px 4px #399bb633}

/* Room themes share the furniture inventory's glass panel and card artwork. */
.restaurant-screen .restaurant-sheet.styles{width:calc(900px * var(--u));height:calc(955px * var(--u));max-height:85%;bottom:calc(18px * var(--u));padding:calc(95px * var(--u)) calc(38px * var(--u)) calc(35px * var(--u));overflow:hidden;border:0;border-image:none;border-radius:calc(55px * var(--u));background:url('/dino/restaurant/ui-manage/management-panel-v2.webp') center/100% 100% no-repeat;box-shadow:0 6px 24px #174b5b55;filter:none}
.restaurant-screen .restaurant-sheet.styles h3{position:absolute;top:calc(10px * var(--u));left:calc(180px * var(--u));right:calc(180px * var(--u));height:calc(75px * var(--u));margin:0;align-items:center}
.restaurant-screen .restaurant-sheet.styles .rs-title{height:calc(75px * var(--u));max-width:100%;object-fit:contain}
.restaurant-screen .restaurant-sheet.styles>.restaurant-close{top:calc(28px * var(--u));right:calc(30px * var(--u));width:calc(65px * var(--u));height:calc(65px * var(--u));min-width:32px;min-height:32px;z-index:1}
.restaurant-sheet.styles .rs-content{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 calc(4px * var(--u)) calc(10px * var(--u))}
.restaurant-screen .restaurant-sheet.styles .rs-h{margin:calc(15px * var(--u)) 0 calc(12px * var(--u));padding:calc(8px * var(--u)) calc(20px * var(--u));border-radius:calc(22px * var(--u));background:linear-gradient(#e0fffaad,#83dceaa8);box-shadow:inset 0 1px 2px #fff9}
.restaurant-screen .restaurant-sheet.styles .rs-h img{display:block;height:calc(38px * var(--u));width:auto}
.restaurant-screen .restaurant-sheet.styles .rs-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(14px * var(--u));margin-bottom:calc(20px * var(--u))}
.restaurant-screen .restaurant-sheet.styles .rs-opt{min-width:0;min-height:0;aspect-ratio:260/260;padding:calc(14px * var(--u)) calc(8px * var(--u));gap:calc(5px * var(--u));background:url('/dino/restaurant/ui-manage/card-furniture.webp') center/100% 100% no-repeat;border:0;box-shadow:none;border-radius:calc(22px * var(--u))}
.restaurant-screen .restaurant-sheet.styles .rs-opt.on{background-image:url('/dino/restaurant/ui-manage/card-selected.webp')}
.restaurant-screen .restaurant-sheet.styles .rs-opt>img{width:90%;height:calc(140px * var(--u));object-fit:contain;filter:drop-shadow(0 2px 2px #377b8540)}
.restaurant-screen .restaurant-sheet.styles .rs-opt b{font-size:calc(24px * var(--u));line-height:1.25;color:#234d69}
.restaurant-screen .restaurant-sheet.styles .rs-opt small{font-size:calc(22px * var(--u));line-height:1.3;color:#246b75;min-height:calc(32px * var(--u));justify-content:center}
.restaurant-screen .restaurant-sheet.styles .rs-opt small img{width:calc(28px * var(--u));height:calc(28px * var(--u))}
.restaurant-screen .restaurant-sheet.styles .rs-opt small img.inuse{width:auto;height:calc(32px * var(--u))}
.restaurant-screen .restaurant-sheet.styles .rs-opt.locked small{color:#795323;background:#fff1b2c9;border-radius:20px;padding:0 calc(10px * var(--u))}

/* Theme shortcut belongs to the inventory header, with a fixed English label. */
.restaurant-screen.managing .restaurant-style-btn{left:calc(650px * var(--u));top:calc(610px * var(--u));width:calc(248px * var(--u));height:calc(60px * var(--u));min-width:0;min-height:0;padding:calc(8px * var(--u)) calc(18px * var(--u));gap:calc(10px * var(--u));justify-content:center;border:calc(2px * var(--u)) solid #e5ffff;border-radius:calc(26px * var(--u));background:linear-gradient(#c5fff4,#62dce2);box-shadow:inset 0 1px 3px #fff,0 1px 4px #218c9b55;color:#20516c}
.restaurant-screen.managing .restaurant-style-btn img{width:calc(34px * var(--u));height:calc(34px * var(--u));object-fit:contain}
.restaurant-screen.managing .restaurant-style-btn span{font:800 calc(22px * var(--u)) Arial,sans-serif;white-space:nowrap;line-height:1}
.restaurant-screen.managing .restaurant-style-btn{z-index:7}

.restaurant-screen.managing .restaurant-style-btn{overflow:hidden;box-sizing:border-box}
.restaurant-screen.managing .restaurant-style-btn img{flex:0 0 calc(32px * var(--u));width:calc(32px * var(--u));height:calc(32px * var(--u))}
.restaurant-screen.managing .restaurant-style-btn span{flex:0 1 auto;min-width:0;font-size:calc(23px * var(--u));letter-spacing:0}
/* ===== header = the game-wide nav (SHOP / INVENTORY, user 10-05): same 941-stage coordinates as inventory.css ===== */
.restaurant-screen .restaurant-top.game-nav{position:absolute;inset:0 0 auto;display:block;height:181px;margin:0;padding:0;gap:0}
.restaurant-screen .game-nav .restaurant-back{position:absolute;left:27px;top:40px;width:114px;height:114px;margin:0;padding:0;border:3px solid #d7ffff;border-radius:50%;background:linear-gradient(135deg,#1b708cae,#125374e9);box-shadow:inset 0 0 0 5px #ffffff20,0 0 14px #bbffff;flex:none}
.restaurant-screen .game-nav .restaurant-back img{display:block;width:52%;height:52%;margin:auto;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px rgba(0,39,69,.42))}
.restaurant-screen .game-nav .restaurant-title{position:absolute;left:155px;top:53px;width:344px;height:86px;margin:0;padding:0 20px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:2px solid #98eff1;border-radius:42px;background:linear-gradient(110deg,#17655edb,#166585c9);box-shadow:inset 0 0 0 4px #8ce8dc28}
.restaurant-screen .game-nav .restaurant-title strong{position:static;width:auto;height:auto;overflow:visible;opacity:1;padding:0;color:#fff;font:700 38px/45px Arial,sans-serif;letter-spacing:1px;white-space:nowrap;text-shadow:none}
.restaurant-screen .game-nav .restaurant-counters{position:absolute;left:532px;top:48px;width:248px;height:111px}
.restaurant-screen .game-nav .restaurant-counters>div{position:relative;height:52px;margin-bottom:5px;padding:8px 17px 6px 87px;box-sizing:border-box;border-radius:30px;background:linear-gradient(#174f78e8,#174969c7);border:1px solid #94cbe77a;color:#fff;text-align:center;font:600 31px/36px Arial,sans-serif;white-space:nowrap}
.restaurant-screen .game-nav .restaurant-counters img{position:absolute;left:13px;top:-8px;width:58px;height:58px;object-fit:contain}
.restaurant-screen .game-nav .restaurant-counters>div+div img{left:20px;top:-2px;width:48px;height:48px}
.restaurant-screen .game-nav .restaurant-menu{position:absolute;left:800px;top:40px;width:114px;height:114px;padding:27px;box-sizing:border-box;border:3px solid #a4edff;border-radius:32px;background:linear-gradient(135deg,#287b96c7,#20557fe0);box-shadow:inset 0 0 0 5px #ffffff15,0 0 12px #b6eeff9c;display:flex;flex-direction:column;justify-content:center;gap:10px;cursor:pointer;pointer-events:auto}
.restaurant-screen .game-nav .restaurant-menu i{display:block;height:9px;border-radius:9px;background:#fff}
.restaurant-screen .game-nav .restaurant-chef-cap{display:none}
/* money + storage + chef counts live in the nav now: hide their old pills (the energy / hearts row stays) */
.restaurant-screen .restaurant-stat:first-child,.restaurant-screen.managing .restaurant-stat:first-child,.restaurant-screen.hiring .restaurant-stat:first-child,.restaurant-screen.managing .restaurant-stat.storage{display:none}
/* confirm dialog = Settings' .dialog.confirm-dialog (game.css / settings.css), on its own dimmer inside the restaurant */
.restaurant-confirm-layer{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.55)}
.restaurant-confirm-layer .dlg-row button{flex:1}
/* MANAGE SHOP: hearts row sits under the game-wide nav (nav band = 181) */
.restaurant-screen.managing .restaurant-stats{left:27px;top:190px;right:auto}
.restaurant-screen .restaurant-confirm-layer .btn-primary{border:2px solid #fff2a4;border-radius:16px;padding:14px;background:linear-gradient(#ffd96c,#f5a51d);color:#5d3400;font-weight:700;box-shadow:inset 0 2px 4px #fff,0 4px 9px rgba(130,79,0,.28)}
.restaurant-screen .restaurant-confirm-layer .btn-ghost{border:2px solid #eaffff;border-radius:16px;padding:13px;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font-weight:700;box-shadow:inset 0 2px 4px #fff,0 3px 7px rgba(13,79,105,.18)}
.restaurant-confirm-layer .dialog{width:min(100%,380px);box-sizing:border-box}
/* per-menu quota under each dish (quota is per menu, never summed — user 10-05) */
.rh-card .menus em.qn,.rh-summary .menus em.qn{display:block;font:800 9.5px Rajdhani,Sarabun,sans-serif;font-style:normal;color:#1d4a5c;line-height:1.1}
.rc-row .menus small{display:block;font:700 9px Sarabun,sans-serif;color:#1d4a5c;text-align:center;line-height:1.1}
.rc-row .left{display:none}
/* ===== order-food flow (mockups-v3: CHOOSE CHEF / COOK FOOD / WAITING / COOKING), 941-stage units, UI-THEME.md ===== */
.rf-layer{position:absolute;inset:0;z-index:28}
.rf-dim{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.rf-stage{position:absolute;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);pointer-events:none;font-family:Sarabun,Arial,sans-serif;color:#245473}
.rf-dialog{position:absolute;left:45px;top:250px;width:851px;max-height:1380px;overflow-y:auto;scrollbar-width:none;box-sizing:border-box;padding:30px 32px;pointer-events:auto;border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#d9fdf8f2,#b4e9efed);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px)}
.rf-dialog h3{margin:0;font:700 31px Sarabun,Arial,sans-serif;color:#245473}
.rf-dialog .rf-title{font:700 38px Rajdhani,Arial,sans-serif;letter-spacing:1px;text-align:center;margin:0 0 24px}
.restaurant-screen .rf-dialog .rf-close{position:absolute;right:24px;top:20px;width:58px;height:58px;padding:0;border:3px solid #eaffff;border-radius:50%;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font:700 38px/1 Arial,sans-serif;cursor:pointer}
.rf-sub{text-align:center;margin:14px 0 22px;line-height:1.5;font-size:27px}
.rf-small{font-size:26px}
.rf-h{margin:6px 0 16px!important}
.rf-chef{display:flex;align-items:center;gap:20px;padding:10px 20px;margin-bottom:22px;border-radius:22px;background:#fff4}
.rf-chef>img{width:125px;height:125px;object-fit:contain}
.rf-chef h3{margin:0 0 7px}.rf-chef p{margin:0}
.rf-badge{display:inline-block;padding:5px 14px;border-radius:20px;background:#245473cf;color:#fff;font-size:26px}
.restaurant-screen .rf-dialog .rf-slot{position:relative;width:100%;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433;color:#245473;text-align:left;cursor:pointer;font-family:Sarabun,Arial,sans-serif}
.restaurant-screen .rf-dialog .rf-slot.on{border-color:#25fff0;box-shadow:inset 0 0 0 5px #21e3e07a,0 0 17px #1afff0}
.restaurant-screen .rf-dialog .rf-slot:disabled{filter:grayscale(.7);opacity:.48;cursor:default}
.rf-recipes{display:flex;flex-direction:column;gap:13px}
.rf-recipe{display:flex;align-items:center;gap:23px;min-height:141px;padding:15px 20px}
.rf-recipe img{width:106px;height:106px;object-fit:contain;flex:none}
.rf-recipe b{display:block;font-size:29px;margin-bottom:9px}.rf-recipe span{display:block;font-size:26px}
.rf-recipe strong{margin-left:auto;width:35px;font-size:35px}
.rf-facts{display:flex;justify-content:space-between;margin:22px 0;padding:19px 0;border-top:2px solid #fff9;border-bottom:2px solid #fff9}
.rf-facts>div{flex:1;text-align:center}.rf-facts span{display:block;font-size:26px;margin-bottom:12px}.rf-facts b{font-size:32px}
.rf-reason{padding:18px 22px;margin:17px 0 23px;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font-size:27px;line-height:1.45;text-align:center}
.rf-row{display:flex;align-items:center;gap:24px}.rf-between{justify-content:space-between;font-size:28px}.rf-center{justify-content:center}
.rf-actions{justify-content:space-between;margin-top:6px}
.restaurant-screen .rf-dialog .rf-btn{flex:1;height:88px;min-width:200px;padding:0 25px;border:5px solid #fff1a8;border-radius:56px;background:linear-gradient(#ffd45a,#ffae21);color:#623703;box-shadow:inset 0 0 0 5px #fff4,0 4px 9px #c3751544;font:700 30px Sarabun,Arial,sans-serif;cursor:pointer}
.restaurant-screen .rf-dialog .rf-btn.ghost{background:linear-gradient(#f3ffff,#c7e8f0);border-color:#eaffff;color:#245473}
.restaurant-screen .rf-dialog .rf-btn.danger{background:linear-gradient(#ff8b75,#e94343);border-color:#ffd5d5;color:#fff}
.restaurant-screen .rf-dialog .rf-btn:disabled{filter:grayscale(.7);opacity:.48;cursor:default}.rf-btn:not(:disabled):active{transform:scale(.96)}
.rf-center .rf-btn{flex:0 0 auto}
.rf-pick{display:flex;flex-direction:column;gap:18px}
/* CHOOSE CHEF refined (mockups-v3 17:08): showcase portrait · name/status/action · framed menu box (numbers only) · arrow */
.rf-pickchef{display:grid;grid-template-columns:142px minmax(0,1fr) 234px 24px;align-items:center;gap:13px;min-height:220px;padding:20px 18px;box-sizing:border-box}
.mh-show.rp-show{width:142px;height:167px}.rp-show .mh-portrait{width:142px;height:167px}.rp-show .mh-hat{width:53px;height:53px}
.rp-copy{min-width:0}.rf-pickchef h3{margin:0 0 13px;font-size:29px;line-height:1.3}
.rp-status{display:block;font-size:23px;line-height:1.35;color:#17655e}.rp-status:before{content:'';display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:#268c7c;vertical-align:middle}.rp-status.busy{color:#245473}.rp-status.busy:before{background:#245473}
.rp-action{display:block;margin-top:17px;font-size:22px}
.rp-menus{display:flex;flex-direction:column;justify-content:center;min-height:150px;box-sizing:border-box;padding:12px 8px;border:1px solid #eaffffb0;border-radius:19px;background:#efffff50}.rp-menus .mh-label{margin-bottom:6px;letter-spacing:.5px}
.rp-menus .mc-foods{flex:none;justify-content:center;gap:6px;margin-top:3px}.rp-menus .mc-foods>div{flex:1;min-width:0}.rp-menus .mc-foods img{width:65px;height:66px;max-width:100%}.rp-menus .mc-foods>div:only-child img{width:86px;height:76px}.rp-menus .mc-foods b{font-size:25px;margin-top:6px}
.rf-arrow{font-size:42px;text-align:right}.rp-note{margin:22px 0 0;padding-top:18px;border-top:1px solid #eaffffb0}
.rf-foods{display:flex;gap:14px;margin-top:13px}.rf-foods>div{text-align:center}
.rf-foods img{display:block;width:66px;height:57px;margin:0 auto;object-fit:contain}.rf-foods b{display:block;font-size:25px}
.rf-dish{text-align:center;padding:10px 0}.rf-dish img{display:block;width:230px;height:210px;margin:auto;object-fit:contain}.rf-dish p{font-size:28px;margin:6px 0}
.rf-progress{height:24px;margin:20px 0;border:2px solid #eaffff;border-radius:20px;background:#6092a8;overflow:hidden}
.rf-progress i{display:block;height:100%;width:0;border-radius:20px;background:#53c4ad}
.rf-ic{width:34px;height:34px;object-fit:contain;vertical-align:-6px;margin-right:4px}
.rf-ck{width:46px;height:46px;object-fit:contain}
.restaurant-screen .rf-recipe strong{flex:0 0 56px;width:56px;display:grid;place-items:center}.restaurant-screen .rf-recipe img.rf-ck{width:50px;height:50px;max-width:50px}
/* ===== MY CHEFS (mockups-v3) — full 941 stage under the nav ===== */
.restaurant-screen .restaurant-hire[data-page=chefs]{position:absolute;inset:0;top:0;left:0;right:0;bottom:0;zoom:1;padding:0;border:0;border-image:none;background:none;filter:none;display:block;overflow:visible}
.mc-stage{position:absolute;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);font-family:Sarabun,Arial,sans-serif;color:#245473}
.mc-col{position:absolute;left:24px;right:24px;top:200px;bottom:28px;display:flex;flex-direction:column;gap:20px}
.mc-board{flex:none;box-sizing:border-box;padding:24px 26px;border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px)}
.mc-board.light{background:linear-gradient(145deg,#d9fdf8df,#b4e9efcb)}
.mc-board.grow{flex:1;min-height:0;display:flex;flex-direction:column}
.mc-board h3{margin:0 0 18px;font:700 31px Sarabun,Arial,sans-serif;color:#245473}
.mc-slots{display:grid;grid-template-columns:repeat(var(--n,3),1fr);gap:16px}
.mc-slot{position:relative;min-height:260px;padding:12px;text-align:center;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433;cursor:pointer;display:flex;flex-direction:column;align-items:center}
.mc-slot.target{border-color:#25fff0;box-shadow:inset 0 0 0 5px #21e3e07a,0 0 17px #1afff0}
.mc-slot>img{width:105px;height:105px;object-fit:contain}
.mc-slot>b{display:block;font-size:27px;line-height:1.2}
.mc-st{display:block;font-size:24px;margin:5px 0 10px}
.mc-no{position:absolute;left:10px;top:10px;width:40px;height:40px;border-radius:50%;background:#245473cf;color:#fff;font:700 24px/40px Rajdhani,Arial,sans-serif;font-style:normal}
.mc-empty{margin:auto;font-size:26px;opacity:.7}
.restaurant-screen .mc-btn{min-width:0;height:79px;padding:0 25px;border:5px solid #fff1a8;border-radius:56px;background:linear-gradient(#ffd45a,#ffae21);color:#623703;box-shadow:inset 0 0 0 5px #fff4,0 4px 9px #c3751544;font:700 28px Sarabun,Arial,sans-serif;cursor:pointer}
.restaurant-screen .mc-slot .mc-btn{margin-top:auto;width:100%;height:49px;font-size:26px;border-width:3px;padding:0}
.restaurant-screen .mc-btn.ghost{background:linear-gradient(#f3ffff,#c7e8f0);border-color:#eaffff;color:#245473}
.restaurant-screen .mc-btn.danger{background:linear-gradient(#ff8b75,#e94343);border-color:#ffd5d5;color:#fff}
.restaurant-screen .mc-btn:disabled{filter:grayscale(.7);opacity:.48;cursor:default}
.mc-roster{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:12px}
.restaurant-screen .mc-row{flex:none;width:100%;min-height:115px;display:flex;align-items:center;gap:12px;padding:8px 12px;text-align:left;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433;color:#245473;cursor:pointer}
.restaurant-screen .mc-row.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.restaurant-screen .mc-row.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}
.restaurant-screen .mc-row.on{border-color:#25fff0;box-shadow:inset 0 0 0 5px #21e3e07a,0 0 17px #1afff0}
.mc-portrait{width:76px;height:86px;object-fit:contain;flex:none}
.mc-name{width:205px;flex-shrink:0}.mc-name b{display:block;font-size:27px;line-height:1.2}.mc-name>span{display:block;font-size:24px;margin-top:7px}
.mc-foods{display:flex;gap:10px;justify-content:flex-end;flex:1;min-width:0}
.mc-foods>div{min-width:0;text-align:center}
.mc-foods img{display:block;width:66px;height:46px;margin:0 auto;object-fit:contain}
.mc-foods span{display:block;font-size:22px;line-height:1.15;max-width:139px;white-space:nowrap}
.mc-foods b{display:block;font-size:24px;line-height:1.2;margin-top:3px}
.mc-detail .mc-drow{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mc-detail h3{margin:0 0 10px}.mc-sub{font-size:24px}.mc-center{text-align:center;margin:20px 0}
.mc-detail .mc-foods img{width:95px;height:84px}
.mc-acts{margin-top:18px}.mc-acts .mc-btn{min-width:253px}
.mc-none{display:flex;flex-direction:column;align-items:center;gap:8px;margin:auto;font-size:26px}.mc-none img{width:90px;height:90px}
/* MY CHEFS refined (mockups-v3 17:05): chef showcase in shop slots, framed menu box + slot tag in the roster, roster board fits its rows, detail pinned to the bottom */
.mc-prof{display:flex;flex-direction:column;align-items:center}.mh-show.mc-show{width:105px;height:105px;flex:0 0 105px}.mc-show .mh-portrait{width:105px;height:105px}.mc-show .mh-hat{width:40px;height:40px}
.mc-copy{min-width:0}.mc-copy b{display:block;font-size:27px;line-height:1.2}
.mc-slots.duo .mc-slot{min-height:280px;padding:20px;box-sizing:border-box;align-items:stretch;text-align:left}
.mc-slots.duo .mc-prof{flex-direction:row;gap:8px;height:174px}.mc-slots.duo .mc-show{width:153px;height:165px;flex:0 0 153px}.mc-slots.duo .mc-show .mh-portrait{width:153px;height:165px}.mc-slots.duo .mc-show .mh-hat{width:56px;height:56px}
.mc-slots.duo .mc-copy b{font-size:28px;line-height:1.3}.mc-slots.duo .mc-st{margin:10px 0 0;line-height:1.3}
.restaurant-screen .mc-slots.duo .mc-slot .mc-btn{height:57px;font-size:27px;margin-top:9px}
.mc-no{text-align:center}.mc-rhead{display:flex;justify-content:space-between;align-items:center}
.restaurant-hire[data-page=chefs] .mc-board.grow{flex:0 1 auto}.restaurant-hire[data-page=chefs] .mc-roster{flex:0 1 auto}.restaurant-hire[data-page=chefs] .mc-detail{margin-top:auto}
.restaurant-screen .mc-roster:not(.dense) .mc-row{min-height:158px;padding:12px 16px;gap:16px}
.mc-ava{position:relative;width:112px;height:124px;flex:0 0 112px;border-radius:50%;background:radial-gradient(ellipse at 50% 60%,#efffff99,transparent 70%)}.mc-ava:after{content:'';position:absolute;bottom:5px;left:15px;right:15px;height:13px;border-radius:50%;background:#eaffff66}
.mc-ava .mc-portrait{position:relative;z-index:1;width:112px;height:124px}
.mc-roster .mc-name{width:240px}.mc-roster .mc-name b{font-size:29px}.mc-roster .mc-name>span{font-size:22px;margin-top:3px}.mc-tag{color:#17655e}
.mc-roster .mc-foods{flex:0 1 auto;margin-left:auto;min-width:130px;box-sizing:border-box;padding:8px 12px;border:1px solid #eaffff80;border-radius:18px;background:#efffff40}
.mc-roster .mc-foods img{width:75px;height:60px}.mc-roster .mc-foods b{font-size:25px}
.mc-roster.dense .mc-row{min-height:104px;padding:7px 12px}.mc-roster.dense .mc-ava,.mc-roster.dense .mc-ava .mc-portrait{width:75px;height:87px;flex-basis:75px}
.mc-roster.dense .mc-name{width:205px}.mc-roster.dense .mc-name b{font-size:26px}.mc-roster.dense .mc-name>span{font-size:20px;margin-top:2px}
.mc-roster.dense .mc-foods{padding:2px 5px;gap:7px;min-width:0}.mc-roster.dense .mc-foods img{width:53px;height:39px}.mc-roster.dense .mc-foods b,.mc-roster.dense .mc-foods span{font-size:20px}
.mc-roster.dense .mc-name b{line-height:1.15}.mc-roster.dense .mc-name>span{line-height:1.15}.mc-roster .mc-foods>div{flex:none}.mc-roster .mc-foods span{max-width:none}.mc-detail .mc-foods>div{flex:none}.mc-detail .mc-foods span{max-width:none}
.mc-roster.dense{gap:9px}.mc-roster.dense .mc-foods img{height:35px}.mc-roster.dense .mc-foods b{margin-top:0;line-height:1.1}.mc-roster.dense .mc-foods span{line-height:1.2}.restaurant-screen .mc-roster.dense .mc-row{padding:5px 12px}
.mc-rfoot{display:flex;justify-content:space-between;align-items:center;flex:none;margin-top:18px;padding-top:17px;border-top:1px solid #eaffffb0;font-size:26px}
.restaurant-screen .mc-rfoot .mc-btn{height:60px;font-size:26px;border-width:3px}
.mc-dwho{display:flex;align-items:center;gap:16px;min-width:0}.mc-dava{width:117px;height:135px;flex:none;object-fit:contain;background:radial-gradient(ellipse,#f0ffffaa,transparent 70%)}
.mc-detail h3{font-size:30px}.mc-detail .mc-acts{margin-top:10px;padding-top:16px;border-top:1px solid #eaffffb0}
/* ===== HIRE CHEFS (mockups-v3) — reuses the MY CHEFS stage/boards ===== */
.restaurant-screen .restaurant-hire[data-page=hire]{position:absolute;inset:0;zoom:1;padding:0;border:0;border-image:none;background:none;filter:none;display:block;overflow:visible}
.mh-info{display:flex;justify-content:space-between;align-items:center;padding:22px 30px;font-size:28px}
.mh-info b{font-family:Rajdhani,Arial,sans-serif}
.mh-grid{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;display:grid;grid-template-columns:repeat(2,1fr);gap:18px;align-content:start}
.restaurant-screen .mh-card{display:flex;flex-direction:column;min-height:325px;padding:15px;text-align:left;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433;color:#245473;cursor:pointer;font-family:Sarabun,Arial,sans-serif}
.restaurant-screen .mh-card.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.restaurant-screen .mh-card.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}
.restaurant-screen .mh-card.on{border-color:#25fff0;box-shadow:inset 0 0 0 5px #21e3e07a,0 0 17px #1afff0}
.restaurant-screen .mh-card.hired{filter:none;opacity:1}.restaurant-screen .mh-card.hired>*{opacity:.5}.restaurant-screen .mh-card.hired .mh-foot{opacity:1}
.restaurant-screen .mh-card{min-height:325px;padding:13px 15px;overflow:hidden}
.mh-head{display:flex;align-items:center;justify-content:space-between;height:27px}
.mh-tier{font-size:21px;letter-spacing:.6px}.mh-check{width:27px;height:27px;color:#17655e;font-size:25px;line-height:27px;text-align:center}
.mh-card h3{display:flex;align-items:center;height:40px;margin:3px 0 7px;font:700 29px/1.1 Sarabun,Arial,sans-serif;white-space:nowrap}
.mh-mid{display:flex;align-items:center;gap:9px;flex:1;min-height:145px}
.mh-show{position:relative;width:153px;height:145px;flex:0 0 153px;border-radius:50%;background:radial-gradient(ellipse at 50% 61%,#f2ffffae,transparent 69%)}
.mh-show:after{content:'';position:absolute;bottom:8px;left:15px;right:15px;height:22px;border-radius:50%;background:radial-gradient(ellipse,#24547338,#eaffff66 60%,transparent 72%);z-index:0}
.mh-hat{position:absolute;right:0;top:0;width:56px;height:56px;opacity:.12;transform:rotate(12deg)}
.mh-portrait{position:relative;z-index:1;width:153px;height:145px;object-fit:contain;filter:drop-shadow(0 5px 3px #24547320)}
.mh-menu{flex:1;min-width:0;min-height:125px;box-sizing:border-box;padding:10px 7px 8px;border:1px solid #eaffff9e;border-radius:18px;background:#efffff4d}.mh-card.legend .mh-menu{background:#fffaf055}
.mh-label{display:block;text-align:center;font-size:21px;letter-spacing:.3px;margin-bottom:9px}
/* the menu box on a hire card is a button: it opens the dish list (user 10-06) */
.mh-menu[data-menus]{cursor:pointer;border-color:#bdf6ff}.mh-menu[data-menus]:active{background:#ffffff8c}
.mh-more{display:inline-block;width:22px;height:22px;margin-left:7px;border-radius:50%;background:#245473cc;color:#fff;font:italic 700 16px/22px Georgia,serif;text-align:center;vertical-align:1px}
.rf-recipe.rf-dishrow{cursor:default;min-height:124px}.rf-recipe.rf-dishrow strong{width:auto;min-width:70px;text-align:right;font:700 34px Rajdhani,Arial,sans-serif}
.rf-inl{display:inline-block!important;width:24px!important;height:24px!important;vertical-align:-4px;margin-right:2px}
.mh-card .mc-foods{justify-content:center;gap:4px}.mh-card .mc-foods>div{flex:1}.mh-card .mc-foods img{width:60px;height:58px;max-width:100%}.mh-card .mc-foods b{font-size:24px;line-height:1.15;white-space:nowrap}
.mh-foot{display:flex;justify-content:space-between;align-items:center;height:48px;margin-top:8px;padding-top:8px;border-top:1px solid #eaffffbd;font-size:26px}
.mh-price{display:flex;align-items:center;gap:6px}.mh-price img{width:34px;height:34px;object-fit:contain}
.mh-pick{padding:5px 22px;font-size:25px;border:2px solid #fff1a8;border-radius:25px;background:linear-gradient(#ffd45a,#ffae21);color:#623703;font-weight:700}
.mh-card.hired .mh-pick{background:linear-gradient(#e4eef1,#c3d3d8);border-color:#fff;color:#5c6b70}
.mh-sum{display:flex;align-items:center;gap:20px;min-height:180px}
.mh-sumart{width:110px;height:120px;object-fit:contain}
.mh-sumtx{flex:1}.mh-sumtx h3{margin:0 0 8px}.mh-warn{color:#b0302a}
.mh-sum .mc-btn{min-width:253px}
/* ===== MANAGE SHOP (mockups-v3) — caption at y874, info at y924, inventory board at y1015 (941 stage) ===== */
.restaurant-screen .restaurant-inv{left:0;top:0;width:100%;height:100%;right:auto;bottom:auto;pointer-events:none;background:none;border:0;border-image:none;box-shadow:none;padding:0;overflow:visible;display:block}
.restaurant-screen .restaurant-inv[hidden]{display:none}
.ms-stage{position:absolute;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);font-family:Sarabun,Arial,sans-serif;color:#245473;pointer-events:none}
.ms-stage>*{pointer-events:auto}
.ms-caption{position:absolute;top:874px;left:24px;width:893px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:9px 16px;border-radius:20px;background:#174f78e8;color:#fff;font-size:24px}
.restaurant-screen .ms-caption button{min-height:0;padding:4px 16px;border:1px solid #eaffff;border-radius:16px;background:#eaffff;color:#245473;font:700 24px Sarabun,Arial,sans-serif}
.ms-cap-btns{display:flex;gap:10px;align-items:center}
.restaurant-screen .ms-caption button[data-expand]{border-color:#fff2a4;background:linear-gradient(#ffd96c,#f5a51d);color:#5d3400} /* shop expansion (user 12-02) */
.restaurant-confirm-layer .confirm-msg{white-space:pre-line}
.ms-info{position:absolute;top:924px;left:24px;width:893px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px);font-size:28px;font-weight:700}
.ms-hearts{display:flex;align-items:center;gap:8px}.ms-hearts img{width:36px;height:36px}.ms-hearts small{font-size:24px;color:#237f87}
.restaurant-screen .ms-theme{min-height:0;height:52px;padding:0 25px;border:5px solid #eaffff;border-radius:56px;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font:700 26px Rajdhani,Arial,sans-serif}
.ms-board{position:absolute;top:1015px;left:24px;width:893px;bottom:24px;box-sizing:border-box;padding:21px 24px;display:flex;flex-direction:column;border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px)}
.ms-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ms-head h3{margin:0;font:700 31px Sarabun,Arial,sans-serif}.ms-count{font:700 26px Rajdhani,Arial,sans-serif}.ms-count.warn{color:#b0302a}
.ms-tabs{display:flex;gap:6px;margin-bottom:8px}
/* category chips under the tabs (user 10-06); the detail row and the save rule gave up the height they take */
.ms-cats{display:flex;gap:7px;margin-bottom:8px;overflow-x:auto;scrollbar-width:none;flex:none}.ms-cats::-webkit-scrollbar{display:none}
.ms-cats+.g-scroll{display:none!important} /* chips drag-scroll (gameScroll) but show no track (user 10-12) */
.restaurant-screen .ms-cats button{flex:0 0 auto;min-height:0;height:44px;padding:0 11px;display:flex;align-items:center;gap:5px;border:2px solid #eaffff;border-radius:22px;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font:700 22px Sarabun,Arial,sans-serif;white-space:nowrap}
.restaurant-screen .ms-cats button.active{background:linear-gradient(#ffd96c,#f5a51d);border-color:#fff2a4;color:#5d3400}
.ms-cats small{font:700 19px Rajdhani,Arial,sans-serif;opacity:.7}
.restaurant-screen .ms-tabs button{flex:1;min-height:0;height:48px;border:2px solid #a8ecff;border-bottom:0;border-radius:18px 18px 0 0;background:linear-gradient(#257994e8,#1b5e7fe8);color:#fff;font:700 24px Sarabun,Arial,sans-serif}
.restaurant-screen .ms-tabs button.active{background:linear-gradient(#0ebcc5,#087ca4);border-color:#82ffff;box-shadow:0 -4px 12px rgba(36,250,235,.4)}
.restaurant-screen .ms-sellall{min-height:0;height:56px;margin:-4px 0 10px;border:3px solid #ffd5d5;border-radius:30px;background:linear-gradient(#ff8b75,#e94343);color:#fff;font:700 24px Sarabun,Arial,sans-serif}
.ms-strip{display:flex;gap:12px;overflow-x:auto;padding:4px 3px 12px;scrollbar-width:thin;flex:none}
.restaurant-screen .ms-card{position:relative;flex:0 0 128px;min-height:0;height:146px;padding:8px 4px;display:flex;flex-direction:column;align-items:center;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433;color:#245473;font:600 22px Sarabun,Arial,sans-serif}
.restaurant-screen .ms-card.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.restaurant-screen .ms-card.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}
.restaurant-screen .ms-card.on{border-color:#25fff0;box-shadow:inset 0 0 0 5px #21e3e07a,0 0 17px #1afff0}
.ms-card .ms-art{width:100%;height:92px;object-fit:contain}.ms-card.nosell{opacity:.4}.ms-card.picked::after{content:'✓';position:absolute;left:6px;top:6px;width:32px;height:32px;border-radius:50%;background:#e94343;color:#fff;font:700 22px/32px Arial,sans-serif;text-align:center;box-shadow:0 0 0 3px #fff}.ms-card.broken .ms-art{filter:grayscale(.7);opacity:.6}
.ms-meta{display:flex;align-items:center;gap:3px;margin-top:7px;white-space:nowrap}.ms-meta img{width:22px;height:22px}
.ms-in{position:absolute;right:6px;top:6px;width:30px;height:30px}
.ms-empty{margin:30px auto;font-size:26px;opacity:.75}
.ms-detail{display:flex;align-items:center;gap:20px;height:84px;margin:6px 0;flex:none}
.ms-detail>img{width:80px;height:80px;object-fit:contain}.ms-detail b{font-size:30px}
.ms-sub{margin:3px 0;font-size:24px;display:flex;align-items:center;gap:4px}.ms-sub img{width:24px;height:24px}.ms-hint{margin:auto;justify-content:center}
.ms-tools{display:flex;gap:13px}
.restaurant-screen .ms-btn{flex:1;min-width:0;min-height:0;height:72px;padding:0 15px;border:5px solid #fff1a8;border-radius:56px;background:linear-gradient(#ffd45a,#ffae21);color:#623703;box-shadow:inset 0 0 0 5px #fff4,0 4px 9px #c3751544;font:700 28px Sarabun,Arial,sans-serif}
.restaurant-screen .ms-btn.ghost{background:linear-gradient(#f3ffff,#c7e8f0);border-color:#eaffff;color:#245473}
.restaurant-screen .ms-btn.danger{background:linear-gradient(#ff8b75,#e94343);border-color:#ffd5d5;color:#fff}
.restaurant-screen .ms-btn:disabled{filter:grayscale(.7);opacity:.48}
.ms-save{display:flex;justify-content:flex-end;gap:20px;margin-top:auto;padding-top:12px;border-top:2px solid #ffffff99}
.restaurant-screen .ms-save .ms-btn{flex:0 0 253px;height:79px}
.restaurant-screen.managing .restaurant-stats,.restaurant-screen.managing .restaurant-style-btn{display:none}
/* ===== main RESTAURANT screen (mockups-v3): info bar (hearts · energy · open), tray board with label, first-time hint ===== */
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stats{left:24px;right:auto;top:200px;width:893px;height:96px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:0;padding:0 30px;border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px)}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat{width:auto;min-width:0;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:8px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:nth-child(3){order:1}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:nth-child(2){order:2}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat img{width:40px;height:40px}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat b{flex:none;font:700 30px Rajdhani,Arial,sans-serif;color:#245473}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat em{font-size:24px}
.restaurant-open{order:3;font:700 28px Sarabun,Arial,sans-serif;color:#245473}
.restaurant-screen.managing .restaurant-open,.restaurant-screen.hiring .restaurant-open{display:none}
.restaurant-hint{position:absolute;z-index:5;left:calc(24px * var(--u,.4718));width:calc(893px * var(--u,.4718));top:calc(1123px * var(--u,.4718));margin:0;box-sizing:border-box;padding:calc(13px * var(--u,.4718));border-radius:calc(22px * var(--u,.4718));background:#174f78e0;color:#fff;text-align:center;font:600 calc(26px * var(--u,.4718)) Sarabun,Arial,sans-serif;pointer-events:none}
.restaurant-hint[hidden],.restaurant-screen.managing .restaurant-hint,.restaurant-screen.hiring .restaurant-hint{display:none}
.restaurant-screen .restaurant-tray{left:calc(24px * var(--u)) !important;width:893px;height:182px;bottom:calc(257px * var(--u));transform:scale(var(--u));transform-origin:bottom left;padding:26px;gap:20px;align-items:center;border-radius:42px}
.rt-label{flex:1;display:flex;flex-direction:column;gap:6px;color:#245473}.rt-label b{font:700 31px Sarabun,Arial,sans-serif}.rt-label span{font-size:26px}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{flex:0 0 140px;width:140px;height:120px}
.restaurant-screen .restaurant-tray-slot img,.restaurant-screen .restaurant-tray-slot[data-len] img{left:50%;top:50%;width:88px;height:88px;transform:translate(-50%,-50%)}
.restaurant-screen .restaurant-tray-slot b,.restaurant-screen .restaurant-tray-slot[data-len] b{right:10px;bottom:6px;padding:2px 12px;border-radius:20px;background:#245473cf;color:#fff;font:700 24px Rajdhani,Arial,sans-serif}
.rt-label{align-items:flex-start;text-align:left}
/* game scrollbar (Monster Data style; UI-THEME: never the browser's) */
.ms-strip,.mc-roster,.mh-grid,.rf-dialog{scrollbar-width:none}.ms-strip::-webkit-scrollbar,.mc-roster::-webkit-scrollbar,.mh-grid::-webkit-scrollbar,.rf-dialog::-webkit-scrollbar{display:none}
.g-scroll{position:relative;flex:none;border-radius:14px;background:rgba(5,70,112,.65)}
.g-scroll[hidden]{display:none}
.g-scroll i{position:absolute;left:2px;top:2px;border-radius:14px;background:#e6ffff;box-shadow:0 0 8px #fff;cursor:grab;touch-action:none}
.g-scroll-x{height:18px;margin:0 6px 4px}.g-scroll-x i{height:14px}
.g-scroll-y{position:absolute;right:8px;top:80px;bottom:24px;width:18px}.g-scroll-y i{width:14px}
.mc-board.grow,.ms-board{position:relative}
.mc-board.grow .mc-roster,.mc-board.grow .mh-grid{margin-right:22px}
.ms-strip,.mc-roster,.mh-grid{cursor:grab}.ms-strip.dragging,.mc-roster.dragging,.mh-grid.dragging{cursor:grabbing;user-select:none}.ms-strip img,.mc-roster img,.mh-grid img{-webkit-user-drag:none;user-select:none}
/* ROOM THEME picker (v3 dialog family) */
.rs2-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}
.restaurant-screen .rf-dialog .rs2-opt{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px 14px;text-align:center}
.rs2-opt>img{width:150px;height:125px;object-fit:contain}
.rs2-opt b{font-size:24px;line-height:1.2}
.rs2-tag{display:inline-flex;align-items:center;gap:4px;padding:3px 14px;border-radius:20px;background:#ffffffb0;font:700 22px Sarabun,Arial,sans-serif;color:#245473}
.rs2-tag.in{background:linear-gradient(#7fe08a,#3fb85a);color:#fff}.rs2-tag.buy{background:#fff1b2c9;color:#795323}.rs2-tag img{width:26px;height:26px}
/* one glass colour for every restaurant panel + dialog (user 10-05: dialog and storage looked different — the panels were
   too see-through, so the grass tinted them green while the dialog sat on the dark dimmer). Same tone everywhere now. */
/* user 10-05: keep the original see-through glass on panels (prettier); dialogs use the SAME glass and a light blurred
   dimmer instead of a dark one, so they read as the same mint tone as the panels */
.restaurant-screen .rf-dialog{background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);backdrop-filter:blur(10px)}
.rf-dim{background:rgba(10,40,30,.18);backdrop-filter:blur(3px)}
.restaurant-screen .ms-theme.on{background:linear-gradient(#ffd45a,#ffae21);border-color:#fff1a8;color:#623703}
.restaurant-screen .ms-tcard{flex-basis:150px}.ms-tcard .ms-art{height:96px}
.ms-tools{margin-bottom:24px}.ms-save{padding-top:20px;border-top-color:#ffffff66}
/* ready-to-serve tray is display only (user 10-05) */
.restaurant-screen .restaurant-tray{pointer-events:none;cursor:default}
/* MY CHEFS / HIRE CHEFS: the full-screen stage must not swallow taps on the HUD (back / menu) above the boards */
.restaurant-screen .restaurant-hire[data-page],.mc-stage,.mc-col{pointer-events:none}.mc-col>*{pointer-events:auto}
/* closing MY CHEFS / HIRE CHEFS: the v3 [data-page] rules force display:block, which beat the plain [hidden] rule and left the boards on screen */
.restaurant-screen .restaurant-hire[hidden]{display:none!important}
/* no menu button on the sub-screens (MANAGE SHOP / MY CHEFS / HIRE CHEFS) — back is the only way out; the counters take its place at the right edge (user 10-05) */
.restaurant-screen.managing .restaurant-menu,.restaurant-screen.hiring .restaurant-menu{display:none}.restaurant-screen.managing .game-nav .restaurant-counters,.restaurant-screen.hiring .game-nav .restaurant-counters{left:666px} /* right edge 914 = where the menu button ended */
/* main RESTAURANT stats: no glass bar — hearts and energy are dark pills like the money counter, left aligned; the open/closed word is gone (user 10-05) */
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stats{left:27px;width:auto;height:auto;padding:0;gap:8px;flex-direction:column;align-items:flex-start;justify-content:flex-start;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat{display:flex;align-items:center;gap:10px;height:52px;box-sizing:border-box;padding:0 16px 0 14px;width:auto;min-width:0;border:1px solid #94cbe77a;border-radius:30px;background:linear-gradient(#174f78e8,#174969c7)}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:first-child,.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat.storage{display:none} /* money is in the header; storage belongs to MANAGE SHOP */
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat:nth-child(n){width:auto;flex:none}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat img{width:42px;height:42px;filter:none}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat b{font:600 31px/36px Arial,sans-serif;color:#fff;text-shadow:none}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat em{margin:0;padding:0 9px;border:0;border-radius:13px;background:#ffffff38;color:#fff;font:600 22px/28px Arial,sans-serif;font-style:normal;white-space:nowrap}
/* ===== GACHA (mockups-v3 gacha.js) — reuses the MY CHEFS stage/boards; 941 stage units ===== */
.restaurant-screen .restaurant-hire[data-page=gacha]{position:absolute;inset:0;zoom:1;padding:0;border:0;border-image:none;background:none;filter:none;display:block;overflow:visible}
.gc-heading{display:flex;align-items:center;gap:20px;margin-bottom:22px;flex:none}.gc-heading>img{width:110px;height:110px;object-fit:contain}.gc-heading h3{margin:0 0 8px;font:700 36px Sarabun,Arial,sans-serif}.gc-heading p{margin:0;font-size:26px}
.gc-pool,.gc-results{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-content:start}.gc-pool::-webkit-scrollbar,.gc-results::-webkit-scrollbar{display:none}
.mc-board.grow .gc-pool,.mc-board.grow .gc-results{margin-right:22px}
.gc-card{position:relative;display:flex;flex-direction:column;align-items:center;overflow:hidden;isolation:isolate;height:218px;text-align:center;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#d4f5f3df,#93c9d4dd);box-shadow:inset 0 0 0 5px #ffffff26,inset 0 2px 10px #fff8,0 4px 8px #0b496433}
.gc-card.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.gc-card.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}
/* one card for a design that comes out as Rare or Legend: blue running into gold (user 10-06: no duplicate cards) */
.gc-card.multi{background:linear-gradient(145deg,#bbdff1 0%,#a9cfe9 34%,#efdfae 66%,#ddc788 100%)}.gc-pool .gc-card.multi .gc-meta{gap:4px}.gc-pool .gc-card.multi .gc-rarity{font-size:19px;padding:2px 6px;white-space:nowrap;flex:none}.gc-pool .gc-card.multi .gc-heart{font-size:22px;white-space:nowrap;flex:none;gap:2px}.gc-pool .gc-card.multi .gc-heart img{width:22px;height:22px}
.gc-artwell{position:relative;width:100%;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 48%,#f4fffedb 0%,#eaffff60 42%,transparent 72%)}
.gc-artwell:before{content:'';position:absolute;inset:9px 9px 5px;border:1px solid #eaffff8c;border-bottom:0;border-radius:15px 15px 45% 45%;pointer-events:none}
.gc-artwell:after{content:'';position:absolute;width:65%;height:18%;bottom:10%;border-radius:50%;background:radial-gradient(ellipse,#417d8c38,#dfffff8a 60%,transparent 72%);z-index:-1}
.gc-orbit{position:absolute;width:114px;height:114px;border:1px solid #fff8;border-radius:50%;box-shadow:0 0 0 9px #ffffff12;transform:scaleY(.84)}
.gc-art{position:relative;z-index:1;width:90%;height:100%;max-height:126px;object-fit:contain;filter:drop-shadow(0 4px 2px #24547320)}
.gc-info{width:100%;box-sizing:border-box;padding:8px 12px 9px;background:linear-gradient(145deg,#edffffad,#bce6eca6);border-top:2px solid #eaffffb0}
.gc-info>b{display:block;min-height:33px;font-size:24px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:4px}
.gc-rarity{padding:2px 10px;border:1px solid #eaffff9c;border-radius:12px;background:#24547317;font:700 24px/1.2 Rajdhani,Arial,sans-serif}
.gc-heart{display:flex;align-items:center;gap:4px;font:700 26px/1.2 Rajdhani,Arial,sans-serif}.gc-heart img{width:26px;height:26px;object-fit:contain}
.gc-results .gc-card{height:370px}.gc-results .gc-art{max-height:245px}.gc-results .gc-info{padding:14px 17px}.gc-results .gc-orbit{width:180px;height:180px}
.gc-results.gc-single{display:flex;justify-content:center;align-items:flex-start}.gc-single .gc-card{width:610px;height:795px;max-height:100%}.gc-single .gc-art{max-height:545px}.gc-single .gc-info{padding:22px 40px}.gc-single .gc-info>b{font-size:34px}.gc-single .gc-orbit{width:370px;height:370px}.gc-single .gc-rarity{font-size:30px}.gc-single .gc-heart{font-size:40px}.gc-single .gc-heart img{width:40px;height:40px}
.gc-fresh .gc-card{animation:gc-pop .45s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(var(--i,0) * 90ms)}@keyframes gc-pop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
.gc-note{flex:none;margin:20px 0 0;text-align:center;font-size:26px}.gc-buy .gc-note{margin:0 0 24px}
.gc-rate-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.gc-rate-heading h3{margin:0}
.restaurant-screen .gc-rate-button{display:flex;align-items:center;gap:8px;min-height:0;padding:7px 16px;border:2px solid #eaffff;border-radius:22px;background:linear-gradient(#f3ffff,#c7e8f0);color:#245473;font:600 24px Sarabun,Arial,sans-serif;cursor:pointer}.gc-rate-button img{width:30px;height:30px;object-fit:contain}
.gc-odds{display:flex;gap:15px}.gc-odd{flex:1;display:flex;justify-content:space-between;padding:14px 20px;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50;font-size:27px}.gc-odd.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.gc-odd.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}.gc-odd b{font-family:Rajdhani,Arial,sans-serif}
.gc-pity{margin:0 0 24px;padding:16px 26px 20px;border:3px solid #ffffffe6;border-radius:24px;background:#ffffff8c;text-align:center}.gc-pity p{margin:0 0 12px;font:700 30px Sarabun,Arial,sans-serif}.gc-bar{position:relative;height:46px;box-sizing:border-box;border:3px solid #0c4a70;border-radius:23px;background:#0f4f78;overflow:hidden;box-shadow:inset 0 2px 4px #00000059}.gc-bar i{position:absolute;inset:0 auto 0 0;border-radius:22px;background:linear-gradient(180deg,#63e3ff,#1590e0);box-shadow:inset 0 2px 3px #ffffff99}.gc-bar span{position:relative;display:block;line-height:40px;color:#fff;font:700 28px/40px Rajdhani,Arial,sans-serif;text-shadow:0 1px 2px #00000080}
.gc-pulls,.gc-row{display:flex;gap:20px;align-items:center}
.restaurant-screen .gc-pull{flex:1;height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:29px}.gc-pull strong{font:700 38px Rajdhani,Arial,sans-serif}
.gc-bonus{width:fit-content;margin:20px auto 0;padding:10px 20px;border:2px solid #eaffff99;border-radius:20px;background:#efffff50;font-size:24px}
.gc-reason{margin:20px 0 0;padding:16px 20px;border:2px solid #eaffff;border-radius:22px;background:linear-gradient(#f3ffff,#d4eef4);text-align:center;font-size:26px}
.gc-exits{display:flex;gap:15px;margin-top:16px}.restaurant-screen .gc-exits .mc-btn{height:65px;font-size:26px}
.gc-storage-footer{display:flex;align-items:center;gap:18px;margin-top:26px;padding:22px 18px;border-top:2px solid #ffffff99;border-radius:0 0 24px 24px;background:linear-gradient(145deg,#d9fdf86b,#b4e9ef55)}
.gc-storage-footer>img{width:76px;height:76px;object-fit:contain}.gc-storage-footer>div{flex:1}.gc-storage-footer b{display:block;font-size:28px}.gc-storage-footer span{display:block;margin-top:7px;font-size:24px}
.restaurant-screen .gc-storage-footer .mc-btn{min-width:175px;height:72px;padding:0 20px;font-size:27px}
.restaurant-screen .gc-row .gc-pull{font-size:27px}.restaurant-screen .gc-row .mc-btn.ghost{min-width:200px}.gc-center{display:flex;justify-content:center;margin-top:16px}.restaurant-screen .gc-center .mc-btn{height:65px;font-size:26px}
/* rates dialog (inside the shared rf-dialog) */
.gc-rate-groups{display:grid;gap:18px}.gc-rate-group{padding:22px;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);color:#245473}.gc-rate-group.rare{background:linear-gradient(145deg,#bbdff1,#8bbce1)}.gc-rate-group.legend{background:linear-gradient(145deg,#f5e6b6,#ddc788)}
.gc-rate-group>div{display:flex;justify-content:space-between;font-size:34px}.gc-rate-group strong{font-family:Rajdhani,Arial,sans-serif}.gc-rate-group p{margin:12px 0 0;font-size:25px;line-height:1.5}
.gc-rate-note{margin-top:23px;padding:20px;border:2px solid #eaffff;border-radius:22px;background:#efffff66;font-size:27px;color:#245473}.gc-rate-note p{margin:6px 0 0;font-size:25px;line-height:1.55}
/* opening beat */
.gc-open{position:absolute;inset:0;z-index:40;display:grid;place-items:center;background:rgba(10,40,30,.28);backdrop-filter:blur(8px);cursor:pointer}
.gc-open-stage{position:relative;width:941px;height:700px;zoom:var(--u,.4718);display:grid;place-items:center;font-family:Sarabun,Arial,sans-serif;color:#fff}
.gc-crate{position:relative;z-index:2;width:560px;height:560px}.gc-crate>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gc-c-closed{filter:drop-shadow(0 16px 14px #0b496455);transform-origin:50% 70%;animation:gc-shake .38s ease-in-out infinite}
.gc-c-base,.gc-c-lid,.gc-c-glow{opacity:0}.gc-crate>img.gc-c-spark{inset:auto;width:54px;height:86px;opacity:0;z-index:4}
.gc-open[data-phase=open] .gc-c-closed,.gc-open[data-phase=burst] .gc-c-closed{display:none}
.gc-open[data-phase=open] .gc-c-base,.gc-open[data-phase=burst] .gc-c-base{opacity:1;filter:drop-shadow(0 16px 14px #0b496455)}
.gc-open[data-phase=open] .gc-c-lid,.gc-open[data-phase=burst] .gc-c-lid{z-index:3;animation:gc-lid .7s cubic-bezier(.2,.9,.3,1) forwards}
.gc-open[data-phase=open] .gc-c-glow,.gc-open[data-phase=burst] .gc-c-glow{z-index:2;transform-origin:50% 55%;animation:gc-glow .7s ease-out forwards}
.gc-open[data-phase=open] .gc-c-spark,.gc-open[data-phase=burst] .gc-c-spark{animation:gc-spark .7s ease-out both}
.gc-open-rays{position:absolute;width:640px;height:640px;border-radius:50%;background:repeating-conic-gradient(#fffbd255 0 9deg,transparent 9deg 22deg);-webkit-mask:radial-gradient(circle,#000 20%,transparent 68%);mask:radial-gradient(circle,#000 20%,transparent 68%);animation:gc-spin 6s linear infinite;opacity:.75}
.gc-open-flash{position:absolute;z-index:5;width:900px;height:900px;border-radius:50%;background:radial-gradient(circle,#fff 0,#fff8 38%,transparent 68%);opacity:0;pointer-events:none}
.gc-open p{position:absolute;bottom:40px;margin:0;font:700 34px Sarabun,Arial,sans-serif;text-shadow:0 2px 6px #0b4964aa}
.gc-open[data-phase=burst] .gc-open-flash{animation:gc-flash .45s ease-out forwards}
@keyframes gc-shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-5deg) translateY(-6px)}40%{transform:rotate(4deg)}60%{transform:rotate(-3deg) translateY(-4px)}80%{transform:rotate(2deg)}}
@keyframes gc-lid{0%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0;transform:translate(60px,-260px) rotate(16deg)}}
@keyframes gc-glow{0%{opacity:0;transform:translateY(-40px) scale(.5)}40%{opacity:1}100%{opacity:1;transform:translateY(-85px) scale(1.25)}} /* light rises out of the open top, not across the front (user 10-05) */
@keyframes gc-spark{0%{opacity:0;transform:scale(.2)}45%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(.7) translateY(-30px)}}
@keyframes gc-flash{0%{opacity:0}40%{opacity:1}100%{opacity:1}}@keyframes gc-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gc-c-closed,.gc-open-rays,.gc-fresh .gc-card{animation:none}}
/* Rare / Legend pieces have 2-3 digit hearts: tighter meta line so '❤ 110 · 100%' stays inside the card */
.ms-card.rare .ms-meta,.ms-card.legend .ms-meta{font-size:19px;gap:2px}.ms-card.rare .ms-meta img,.ms-card.legend .ms-meta img{width:19px;height:19px}
/* MANAGE SHOP footer: ล้างร้าน sits at the left, away from ยกเลิก / บันทึก */
.restaurant-screen .ms-save .ms-btn.ms-clear{flex:0 0 auto;min-width:190px;margin-right:auto;font-size:26px}.restaurant-screen .ms-save .ms-btn:not(.ms-clear){flex:0 1 253px}
/* gacha card names may take two lines (English names are longer): no ellipsis */
.gc-pool .gc-info>b,.gc-results:not(.gc-single) .gc-info>b{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.15;font-size:22px;min-height:51px}.gc-pool .gc-card{height:236px}
/* ===== side rail + MENU / TODAY'S SALES / HOW TO PLAY (user 10-06, restaurant/mockups-menu/), 941-stage units ===== */
/* rail buttons are centred under the ☰ button: (800 + 114/2) - 95/2 = 810 (user 10-06) */
.restaurant-rail{position:absolute;z-index:6;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);pointer-events:none}
.restaurant-screen.managing .restaurant-rail,.restaurant-screen.hiring .restaurant-rail{display:none}
.restaurant-rail button{position:absolute;left:810px;width:95px;height:113px;padding:6px 0 0;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid #a8ecff;border-radius:25px;background:linear-gradient(#257994e8,#1b5e7fe8);box-shadow:inset 0 0 0 4px #ffffff18,0 0 12px #b6eeff9c,0 4px 8px #0b496455;color:#fff;font:700 19px Sarabun,Arial,sans-serif;white-space:nowrap;cursor:pointer;pointer-events:auto}
.restaurant-rail [data-rail=menu]{top:215px}.restaurant-rail [data-rail=help]{top:346px}
/* TODAY sits bottom-left, just above the Ready-to-serve tray (top 1233), centred under the back button (user 10-06) */
.restaurant-rail [data-rail=sales]{left:37px;top:1100px}
.restaurant-rail button:active{transform:scale(.96)}
.restaurant-rail img{width:62px;height:56px;object-fit:contain;filter:drop-shadow(0 2px 2px #0005)}
.restaurant-rail b{position:absolute;top:-10px;right:-10px;min-width:38px;height:34px;padding:0 8px;box-sizing:border-box;border:2px solid #fff1a8;border-radius:17px;background:linear-gradient(#ffd45a,#ffae21);color:#623703;font:700 20px Rajdhani,Arial,sans-serif;display:grid;place-items:center}
.restaurant-rail b[hidden]{display:none}
.rf-dialog.rb-dialog{top:215px;height:1400px;max-height:none;overflow:hidden;display:flex;flex-direction:column}
.rb-dialog .rf-title{margin-bottom:14px}
.rs-ic{width:26px;height:26px;object-fit:contain;vertical-align:-5px}
.rb-tabs{display:flex;gap:6px}
.restaurant-screen .rb-tabs button{flex:1;height:52px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0;border:2px solid #a8ecff;border-radius:18px 18px 0 0;background:linear-gradient(#257994e8,#1b5e7fe8);color:#fff;font:700 23px Sarabun,Arial,sans-serif;cursor:pointer}
.rb-tabs small{font:700 20px Rajdhani,Arial,sans-serif;opacity:.75}
.restaurant-screen .rb-tabs button.on{background:linear-gradient(#0ebcc5,#087ca4);border-color:#82ffff;box-shadow:0 -4px 12px rgba(36,250,235,.4)}
.rb-strip{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-radius:0 0 20px 20px;background:#174f78e8;color:#fff;font:600 22px Sarabun,Arial,sans-serif}
.rb-strip b{font-family:Rajdhani,Arial,sans-serif}.rb-pill{padding:5px 14px;border-radius:16px;background:#eaffff;color:#245473;font-weight:700;font-size:21px}
.rb-wrap{position:relative;flex:1;min-height:0;display:flex;margin-top:14px}
.rb-list{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;padding-right:28px;overflow-y:auto;scrollbar-width:none}.rb-list::-webkit-scrollbar{display:none}
.rb-wrap>.g-scroll-y{top:0;bottom:0;right:0}
.rb-card,.rs-row,.rh-step{flex:none;display:flex;align-items:center;gap:16px;padding:10px 16px 10px 10px;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433}
.rb-card.off{filter:grayscale(.55);opacity:.72}
.rb-dish{position:relative;flex:none;width:112px;height:104px;display:grid;place-items:center;border-radius:18px;background:#ffffff55}
.rb-dish img{width:100px;height:88px;object-fit:contain}
.rb-mid{flex:1;min-width:0}
.rb-mid>b{display:block;overflow:hidden;font:700 28px Sarabun,Arial,sans-serif;color:#1d4a5c;white-space:nowrap;text-overflow:ellipsis}
.rb-sub{display:block;margin-top:-4px;font:600 19px Rajdhani,Sarabun,Arial,sans-serif;color:#245473;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rb-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.rb-chips span{display:flex;align-items:center;gap:4px;padding:3px 10px 3px 6px;border-radius:14px;background:#174f78d0;color:#fff;font:700 20px Rajdhani,Sarabun,Arial,sans-serif}
.rb-chips .rs-ic{width:24px;height:24px;vertical-align:0}
.rb-right{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.rb-price{font:700 34px Rajdhani,Arial,sans-serif;color:#1d4a5c}.rb-price small{font-size:20px;opacity:.7}
.rb-eff{font:700 19px Rajdhani,Arial,sans-serif;color:#245473;opacity:.85}.rb-eff .rs-ic{width:20px;height:20px;vertical-align:-3px}
.rb-tag{padding:3px 12px;border:2px solid #ffffffa0;border-radius:14px;background:#ffffff70;color:#245473;font:700 18px Sarabun,Arial,sans-serif}
.rb-tag.yes{border-color:#fff1a8;background:linear-gradient(#ffd45a,#ffae21);color:#623703}
.rs-days{display:flex;justify-content:center;gap:8px}
.restaurant-screen .rs-days button{padding:5px 18px;border:0;border-radius:16px;background:#ffffff70;color:#245473;font:700 22px Sarabun,Arial,sans-serif;cursor:pointer}
.restaurant-screen .rs-days button.on{background:linear-gradient(#0ebcc5,#087ca4);color:#fff}
.rs-date{margin:10px 0 0;text-align:center;font:700 22px Sarabun,Arial,sans-serif;color:#245473}
.rs-tiles{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px;margin-top:14px}
.rs-tile{min-width:0;min-height:146px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#d9fdf8df,#b4e9efcb)}
.rs-tile span{font:700 20px Sarabun,Arial,sans-serif;color:#245473;opacity:.8}
.rs-tile strong{display:flex;align-items:center;gap:8px;font:700 46px/1.05 Rajdhani,Arial,sans-serif;color:#1d4a5c}.rs-tile strong img{width:40px;height:40px;object-fit:contain}
.rs-tile em{font:700 19px Rajdhani,Sarabun,Arial,sans-serif;font-style:normal;color:#1b8a5a}.rs-tile em.down{color:#c4453a}.rs-tile em.plain{color:#245473}
.rs-tile.best{flex-direction:row;align-items:center;gap:8px}.rs-tile.best>img{flex:none;width:76px;height:68px;object-fit:contain}.rs-tile.best>div{min-width:0}
.rs-tile.best b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:700 23px/1.15 Sarabun,Arial,sans-serif;color:#1d4a5c}
.rs-sec{display:flex;justify-content:space-between;align-items:baseline;margin:18px 4px 0;font:700 28px Sarabun,Arial,sans-serif;color:#245473}.rs-sec span{font:700 22px Rajdhani,Sarabun,Arial,sans-serif}
.rs-dialog .rb-wrap{flex:0 1 auto;margin-top:8px}.rs-list{gap:10px}
.rs-row{gap:14px;padding:8px 16px 8px 8px}
.rs-row>i{flex:none;width:34px;text-align:center;font:700 28px Rajdhani,Arial,sans-serif;font-style:normal;color:#245473}
.rs-row .rb-dish{width:86px;height:78px}.rs-row .rb-dish img{width:76px;height:66px}.rs-row .rb-mid>b{font-size:25px}
.rs-qty{font:700 22px Rajdhani,Sarabun,Arial,sans-serif;color:#245473;opacity:.85}
.rs-bar{height:16px;margin-top:6px;overflow:hidden;border-radius:8px;background:#ffffff66}.rs-bar i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ffd45a,#ffae21)}
.rs-row>strong{flex:none;min-width:120px;text-align:right;font:700 32px Rajdhani,Arial,sans-serif;color:#1d4a5c}
.rs-sum{flex:none;display:grid;grid-template-columns:1fr auto;row-gap:4px;margin-top:12px;padding:12px 20px;border-radius:20px;background:#174f78e8;color:#fff;font:600 22px Sarabun,Arial,sans-serif}
.rs-sum b{font-family:Rajdhani,Arial,sans-serif;text-align:right}.rs-sum .t{margin-top:4px;padding-top:6px;border-top:2px solid #ffffff55;font-weight:700;font-size:26px}
.rs-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;color:#245473}
.rs-empty>img{width:170px;opacity:.85}.rs-empty>b{font:700 32px Sarabun,Arial,sans-serif}.rs-empty>span{font:600 24px Sarabun,Arial,sans-serif;opacity:.8}
.rh-step{align-items:flex-start;padding:14px 18px 14px 12px}
.rh-step .rb-dish{width:96px;height:96px}.rh-step .rb-dish img{width:76px;height:70px}
.rh-step .rb-dish i{position:absolute;top:-8px;left:-8px;width:40px;height:40px;display:grid;place-items:center;border:2px solid #82ffff;border-radius:50%;background:linear-gradient(#0ebcc5,#087ca4);color:#fff;font:700 24px Rajdhani,Arial,sans-serif;font-style:normal}
.rh-step p{margin:2px 0 0;font:600 22px/1.4 Sarabun,Arial,sans-serif;color:#245473}
.rh-ok{flex:none;margin-top:16px}
.restaurant-screen .rf-dialog .rh-ok .rf-btn{flex:0 0 auto;min-width:300px}
.mh-check img{width:100%;height:100%;object-fit:contain} /* selected applicant: image tick, not the ✓ glyph (UI-THEME §6) */
.rs-qty .rs-coin{width:24px;height:24px;margin-left:4px;vertical-align:-4px} /* price per dish = number + coin (user 10-06) */
/* Ready-to-serve tray + bottom dock panel = the signature mint glass (UI-THEME 4a), not the old electric cyan (user 10-06).
   The four dock buttons keep their own colours. Tray slots = the theme's card/slot look. */
.restaurant-screen .restaurant-tray,.restaurant-screen .restaurant-nav{border:3px solid #e5ffff;border-image:none;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px)}
.restaurant-screen .restaurant-tray-slot,.restaurant-screen .restaurant-tray-slot:not(.empty),.restaurant-screen .restaurant-tray-slot.empty{border:3px solid #eaffff;border-radius:22px;background:linear-gradient(145deg,#b6dbe4d9,#8bc2cdbb);box-shadow:inset 0 0 8px #ffffff50,0 3px 6px #0b496433}
.restaurant-screen .restaurant-tray-slot:not(.empty){background:linear-gradient(145deg,#c6eef4e8,#8fc6d4db)}
.restaurant-screen .restaurant-tray-slot.empty::after{inset:8px;border:2px dashed #ffffffb3;border-radius:16px}

/* ── Visit a friend's shop (new-ui/restaurant-friends-v1, user 10-10). Stage px on the 941×1672 frame. ── */
.restaurant-rail [data-rail=friends]{left:148px;top:1100px} /* next to TODAY (sales), user 10-10 */
.restaurant-rail [data-rail=shop]{left:370px;top:1100px} /* next to CHAT (was next to FRIENDS, user 12-01) */
.restaurant-visit{position:absolute;z-index:8;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);pointer-events:none;font-family:Sarabun,Arial,sans-serif;color:#245473}
.restaurant-visit[hidden]{display:none}
.restaurant-screen.visiting .restaurant-nav,.restaurant-screen.visiting .restaurant-rail,.restaurant-screen.visiting .restaurant-tray,
.restaurant-screen.visiting .restaurant-stats,.restaurant-screen.visiting .restaurant-counters,.restaurant-screen.visiting .restaurant-hint,
.restaurant-screen.visiting .restaurant-style-btn,.restaurant-screen.visiting [data-menu]{display:none!important}
.rv-card{position:absolute;left:24px;top:200px;width:893px;height:180px;box-sizing:border-box;display:flex;align-items:center;gap:28px;padding:0 42px 0 34px;
  border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#d9fdf8ee,#b4e9efe6);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;pointer-events:auto}
.rv-card>img{width:126px;height:126px;object-fit:contain;padding:6px;box-sizing:border-box;border:3px solid #eaffff;border-radius:28px;background:linear-gradient(145deg,#f4ffe9,#d6f4c4)}
.rv-card>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.rv-card b{font:700 44px/1.15 Sarabun,Arial,sans-serif;color:#1d4a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-card small{font:600 28px Sarabun,Arial,sans-serif;color:#4d7896}
.rv-hearts{display:flex;align-items:center;gap:8px;font:700 36px Rajdhani,Arial,sans-serif;color:#c2465f}
.rv-hearts img{width:44px;height:44px;object-fit:contain}
.rv-hearts b{font:700 38px Rajdhani,Arial,sans-serif;color:#c2465f}
.rv-note{position:absolute;left:50%;bottom:262px;transform:translateX(-50%);margin:0;padding:16px 40px;border-radius:40px;background:#174f78e8;color:#fff;font:700 30px Sarabun,Arial,sans-serif;white-space:nowrap}
.rv-bar{position:absolute;left:24px;bottom:30px;width:893px;height:204px;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:22px;
  border:3px solid #e5ffff;border-radius:42px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);box-shadow:inset 0 0 0 6px #fff2,0 0 18px #c0fdff99;backdrop-filter:blur(8px);pointer-events:auto}
.rv-bar button{display:flex;align-items:center;justify-content:center;gap:14px;border-radius:56px;font:700 36px Sarabun,Arial,sans-serif;cursor:pointer;box-shadow:inset 0 0 0 5px #fff4,0 4px 9px #0b496455}
.rv-bar button:active{transform:scale(.96)}
.rv-bar img{width:92px;height:92px;object-fit:contain}
.rv-home{border:5px solid #fff1a8;background:linear-gradient(#ffd45a,#ffae21);color:#623703}
.rv-list{border:5px solid #eaffff;background:linear-gradient(#bff6ff,#6fd3ec);color:#174f78}
.rv-head{font-size:28px;margin:0 6px 6px}
.rv-friends{display:flex;flex-direction:column;gap:18px}
.rv-friend{display:flex;align-items:center;gap:24px;padding:18px 22px;box-sizing:border-box;background:linear-gradient(145deg,#f6ffe9,#d8f3ec)}
.rv-friend>img{width:120px;height:120px;object-fit:contain;padding:6px;box-sizing:border-box;border:3px solid #eaffff;border-radius:24px;background:#f4ffe6}
.rv-friend>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.rv-friend b{font:700 36px Sarabun,Arial,sans-serif;color:#1d4a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-friend small{font:600 26px Sarabun,Arial,sans-serif;color:#4d7896}
.rv-friend .rf-btn{height:84px;min-width:200px}
.rv-friend .rf-btn.ghost{border-color:#eaffff;background:linear-gradient(#f3ffff,#c7e8f0);color:#7d97a8;filter:grayscale(.4)}
/* Add friends from this popup (user 10-19): search row, results and incoming requests reuse the friend row look */
.rv-add{margin-top:22px;gap:16px}.rv-add .rf-btn{flex:0 0 auto;min-width:170px;height:84px}
.rv-search{flex:1;min-width:0;height:84px;padding:0 28px;box-sizing:border-box;border:4px solid #eaffff;border-radius:44px;background:#fbfffe;color:#1d4a5c;font:600 30px Sarabun,Arial,sans-serif;outline:none}
.rv-search:focus{border-color:#7fd8e6}
.rv-results,.rv-requests{display:flex;flex-direction:column;gap:18px}.rv-results{margin-top:18px}.rv-requests:not(:empty){margin-bottom:18px}
.rv-reqhead{margin:0 6px;font-weight:700;color:#1d4a5c}
.rv-acts{display:flex;gap:10px}.rv-acts .rf-btn{min-width:140px;padding:0 18px}
.rv-tag{flex:0 0 auto;padding:12px 22px;border-radius:30px;background:#e2f3f6;color:#4d7896;font:700 26px Sarabun,Arial,sans-serif}

/* Smoothness (user 10-10 "กระตุกนิดๆ"): a backdrop blur over the restaurant scene, which animates every frame,
   has to be re-blurred every frame — the costliest thing on this screen on phones. The always-on panels over the
   scene (tray, nav, visit bar) drop the blur and get a slightly more opaque fill instead; same look at a glance.
   Pop-up dialogs keep their blur (short-lived). */
#modal-layer:has(.restaurant-screen){backdrop-filter:none;-webkit-backdrop-filter:none}
.restaurant-screen .restaurant-tray,.restaurant-screen .restaurant-nav,.rv-bar{backdrop-filter:none;-webkit-backdrop-filter:none;background:linear-gradient(145deg,#c8f7f0dd,#9ed9ecd6)}
/* Furniture row under ❤️ / Energy (user 10-15): placed pieces + broken count. Main screen only. */
.restaurant-stat.furni{display:none}
.restaurant-screen:not(.managing):not(.hiring):not(.visiting) .restaurant-stat.furni{display:flex;order:3}
.restaurant-screen:not(.managing):not(.hiring) .restaurant-stat.furni em.bad{background:#ff5d7ad9}
.restaurant-weather{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
/* MY CHEFS as HIRE-style cards (user 10-23): "in the shop" (one card per slot, empty = dashed) + "bench" groups in one scroll grid */
.restaurant-hire[data-page=chefs] .mc-board.grow{flex:1}
.mc-ghead{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;margin-top:4px}.mc-ghead h3{margin:0}.mc-ghead .mc-sub{font:700 28px Rajdhani,Arial,sans-serif}
.mc-ghead~.mc-ghead{margin-top:18px;padding-top:16px;border-top:1px solid #eaffffb0}
.mc-swapnote{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border:2px solid #ffd45a;border-radius:18px;background:#fff6d6d9;font-size:24px}
.restaurant-screen .mc-swapnote .mc-btn{flex:none;height:56px;font-size:24px;border-width:3px}
.restaurant-screen .mh-card.mc-card{cursor:default}.restaurant-screen .mh-card.swap{border-color:#ffd45a}
.mc-card .mh-foot{height:auto;flex-direction:column;align-items:stretch;gap:8px}
.mc-card .mc-st{margin:0;font-size:22px;line-height:1.2}
.mc-acts2{display:flex;gap:8px}.restaurant-screen .mc-acts2 .mc-btn{flex:1;height:54px;padding:0 6px;font-size:24px;border-width:3px}
.mc-slotno{padding:2px 14px;border-radius:16px;background:#245473cf;color:#fff;font:700 20px/1.3 Sarabun,Arial,sans-serif}
.mc-empty-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:325px;box-sizing:border-box;padding:15px;border:3px dashed #eaffff;border-radius:22px;background:#efffff30;text-align:center}
.mc-empty-card b{font-size:29px;opacity:.75}.mc-empty-card .mc-sub{font-size:21px;opacity:.75}
.mc-ghint{grid-column:1/-1;padding:20px;text-align:center;font-size:24px;opacity:.7}
.mc-card>*{flex-shrink:0}.restaurant-screen .mh-card.mc-card{overflow:visible}
.restaurant-screen .mc-acts2 .mc-btn{font-size:22px;padding:0 4px;white-space:nowrap}
/* grid rows under the stage zoom are sized short of the content (cards clipped), so MY CHEFS wraps with flex: rows follow real layout */
.mh-grid.mc-grid{display:flex;flex-wrap:wrap;align-content:flex-start}.mc-grid>*{box-sizing:border-box;width:100%}.mc-grid>.mc-card{width:calc(50% - 9px)}
.restaurant-screen .mh-card.mc-card{min-height:0}.mc-empty-card{min-height:300px}
/* in-the-shop chefs share the list with the bench but wear their own colour (user 10-23) */
.restaurant-screen .mh-card.inshop{background:linear-gradient(145deg,#ffe0d3,#f6ad98);border-color:#fff0e8;box-shadow:inset 0 0 0 4px #ff8f6f55,0 3px 6px #8a2f1a33}
.restaurant-screen .mh-card.inshop.swap{border-color:#ffd45a}
.mh-card.inshop .mh-menu{background:#fff6f166;border-color:#fff0e8}.mh-card.inshop .mh-foot{border-top-color:#fff0e8}
.mh-card.inshop .mc-slotno{background:#c4482f}.mh-card.inshop .mc-st{color:#8a2f1a}
/* HIRE screen CHEFS / WAITERS tabs + waiter card (user 10-26): same board look; the selected tab is the yellow button colour */
.mh-tabs{flex:none;display:flex;gap:14px}
.restaurant-screen .mh-tabs button{flex:1;height:66px;border:4px solid #e5ffff;border-radius:40px;background:linear-gradient(145deg,#c8f7f0aa,#9ed9ec9e);color:#245473;font:700 28px Rajdhani,Sarabun,Arial,sans-serif;letter-spacing:1px;cursor:pointer;box-shadow:inset 0 0 0 4px #fff2}
.restaurant-screen .mh-tabs button.on{border-color:#fff1a8;background:linear-gradient(#ffd45a,#ffae21);color:#623703;box-shadow:inset 0 0 0 4px #fff4,0 3px 8px #c3751544}
.mh-waiter{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.mh-waiter .mh-label{margin-bottom:0}
.mh-speed{font:700 46px/1 Rajdhani,Arial,sans-serif;color:#245473}
.mh-stay{font-size:21px;opacity:.85}
.mh-staff{margin-top:6px;font-size:20px;line-height:1.3}

/* CHAT rail button (user 12-04): Real World chat panel borrowed into the restaurant, world tab only.
   Same 941x1672 frame + zoom as the rail; styles copied from real-world.css #screen-openworld. */
.restaurant-rail [data-rail=chat]{left:259px;top:1100px} /* between FRIENDS and SHOP */
.restaurant-chat{position:absolute;z-index:30;left:0;top:0;width:941px;height:1672px;zoom:var(--u,.4718);pointer-events:none;color:#173e66;font-family:Arial,'Sarabun',sans-serif}
.restaurant-chat #chat-panel{pointer-events:auto}
#chat-panel.world-only .chat-tab[data-ct=system]{display:none}
.restaurant-chat #chat-panel{left:38px;right:38px;top:420px;bottom:170px;border:5px solid #b8ffff;border-radius:38px;background:linear-gradient(145deg,#efffffd9,#b9e9f2c7);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);box-shadow:inset 0 0 0 6px #ffffff55,inset 0 30px 60px #ffffff38,0 0 18px #4fefff,0 18px 40px #17365366}
.restaurant-chat .chat-head{gap:14px;padding:22px 24px 0}
.restaurant-chat .chat-tabs{gap:14px}
.restaurant-chat .chat-tab{height:66px;padding:0;border:3px solid #ffffffb8;border-radius:23px;background:#e8f5f8c9;color:#34516c;font-size:25px;font-weight:800;box-shadow:0 4px 9px #1c647a29}
.restaurant-chat .chat-tab.active{border-color:#d9c5ff;background:linear-gradient(135deg,#a16bff,#7946e8);box-shadow:inset 0 0 0 4px #ffffff24,0 4px 11px #6237ba52;color:#fff}
.restaurant-chat #chat-close{width:58px;height:58px;border:3px solid #fff;border-radius:50%;background:#e9f8fbd9;color:#31536f;font-size:24px;box-shadow:0 4px 10px #17495e36}
.restaurant-chat #chat-messages{padding:25px 27px}
.restaurant-chat .chat-row{gap:15px;margin-bottom:20px}
.restaurant-chat .chat-row .cm-avatar{width:66px;height:66px;padding:5px;border:3px solid #fff;background:#d9f5f0;border-radius:50%;box-shadow:0 4px 9px #1b617b38}
.restaurant-chat .chat-row .cm-bubble{padding:14px 19px;border:3px solid #ffffffc9;border-radius:25px;background:#f5ffffd9;box-shadow:0 4px 11px #1b617b2e;font-size:23px;line-height:1.4}
.restaurant-chat .chat-row.me .cm-bubble{background:#dff6fbd9}
.restaurant-chat .chat-row .cm-name{font-size:23px}.restaurant-chat .chat-row .cm-time{font-size:17px;margin-left:10px}
.restaurant-chat .chat-row .cm-report,.restaurant-chat .chat-row .cm-block{padding-left:9px;font-size:20px}
.restaurant-chat .chat-row .cm-body{margin-top:5px}
.restaurant-chat .chat-row.sys .cm-bubble{background:#e3f4f8d1}
.restaurant-chat .chat-empty{padding:60px 20px;color:#496881;font-size:23px;font-weight:700}
.restaurant-chat .chat-input-row{gap:14px;padding:18px 24px 25px;border-top:2px solid #ffffff8a;background:linear-gradient(#d9f5fa00,#d9f5fad6)}
.restaurant-chat #chat-input{height:66px;padding:0 23px;border:3px solid #fff;border-radius:27px;background:#f5ffffe6;color:#183e61;font-size:23px;box-shadow:inset 0 2px 7px #23677d1f,0 3px 8px #17495e26}
.restaurant-chat #chat-input::placeholder{color:#7891a7}
.restaurant-chat #chat-emoji-btn,.restaurant-chat #chat-send-btn{width:66px;height:66px;box-shadow:0 4px 10px #243b6a42}
.restaurant-chat #chat-send-btn{border:3px solid #fff2a4;background:linear-gradient(#ffd96c,#f5a51d)}.restaurant-chat #chat-send-btn svg{fill:#5d3400}
.restaurant-chat #chat-send-btn svg{width:31px;height:31px}
.restaurant-chat .chat-emoji-pop{left:24px;bottom:91px;padding:15px;grid-template-columns:repeat(6,58px);gap:7px;border:3px solid #b8ffff;border-radius:24px;background:#effffff2;box-shadow:0 10px 28px #17365366}
.restaurant-chat .chat-emoji-pop button{font-size:32px;padding:8px;border-radius:13px}
