#management-button{display:none}.toolbar #upgrade-button{display:none}.career-hud{position:absolute;bottom:calc(113px + env(safe-area-inset-bottom,0px));right:20px;z-index:4;background:#244632d6;color:#fff4d4;padding:8px 12px;border:1px solid #ccdbab4d;border-radius:12px;font-size:12px;font-weight:600;pointer-events:none}.bench-open .career-hud,.view-closed .career-hud{display:none}.company-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.company-summary>div{background:#e8edda;border:1px solid #dde3cd;padding:13px 10px;border-radius:13px}.company-summary small{font-size:11px;color:#748568;display:block}.company-summary b{font-size:20px;display:block;margin-top:5px;font-variant-numeric:tabular-nums}.company-note{font-size:12px!important;line-height:1.8!important;margin:12px 0;color:#708364}.staff-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin:15px 0}.staff-card{background:#fffdf2;border:2px solid #dde2ca;padding:15px;border-radius:17px}.staff-title{display:flex;gap:11px;align-items:center}.staff-title>span{font-size:29px;width:42px;height:42px;display:grid;place-items:center;background:#efedd8;border-radius:12px}.staff-title h3{font-size:16px;margin:0 0 3px}.staff-title small{font-size:11px;color:#7a896e}.staff-card p{font-size:12px!important;line-height:1.8!important;min-height:65px;margin:11px 0}.staff-cost{font-size:11px;color:#768663;margin:0 0 10px}.staff-card .button{font-size:13px;min-height:44px}.company-toggle{display:flex;gap:14px;flex-wrap:wrap;padding:12px;background:#edf0df;border-radius:12px}.company-toggle label{display:flex;align-items:center;gap:7px;font-size:12px;min-height:30px}.company-toggle input{width:20px;height:20px;accent-color:#49724c}.company-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:5px;background:#e6ebd8;border-radius:13px;margin-bottom:17px}.company-tabs button{border:0;border-radius:9px;background:transparent;min-height:42px;font-size:14px;font-weight:600}.company-tabs button[aria-selected=true]{background:#315b42;color:#fff3d0;box-shadow:0 3px 0 #1e3a2b2b}.career-track{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0}.career-track span{font-size:11px;color:#7e8e73;border:1px solid #d5dec7;padding:6px 9px;border-radius:20px}.career-track .active{background:#e0b85b;border-color:#e0b85b;color:#4c4022;font-weight:700}.brand-contract{background:#fffdf2;border:2px solid #dde2ca;padding:17px;border-radius:16px;margin:14px 0}.brand-contract h3{font-size:16px;margin:0}.brand-contract p{font-size:12px!important;line-height:1.8!important}.brand-contract>small{font-size:11px;color:#8a9179;display:block;margin-top:9px;line-height:1.6}.store-list{display:grid;gap:7px}.store-row{display:flex;gap:10px;align-items:center;background:#f0f1e3;border-radius:11px;padding:11px}.store-row>span{font-size:24px}.store-row div{flex:1}.store-row b{font-size:13px;display:block}.store-row small{font-size:10px;display:block;margin-top:4px;color:#7a886c}.store-row strong{font-size:11px;color:#658456;font-weight:500}.store-row button{border:1px solid #bfcdac;background:#e5eccf;border-radius:8px;min-height:39px;padding:6px 9px;font-size:11px;white-space:nowrap}.ipo-banner{text-align:center;padding:15px 10px}.ipo-banner>span{font-size:38px}.ipo-banner h3{font-family:'Noto Serif SC',serif;font-size:24px;margin:12px 0 8px}.ipo-banner p{font-size:13px!important;line-height:1.7!important}.ipo-banner>b{font-size:26px}.listing-checklist{display:grid;gap:8px;margin:15px 0 20px}.listing-item{display:flex;align-items:center;gap:10px;border:1px solid #dee4ce;border-radius:10px;padding:12px;background:#f0f2e5}.listing-item>span{font-size:20px;color:#88967c}.listing-item b{font-size:13px;font-weight:500;flex:1}.listing-item small{font-size:11px;color:#859276;white-space:nowrap}.listing-item.done>span,.listing-item.done small{color:#547c42}.listing-item.done{background:#eaf2df}.market-news{background:#e9edde;border:1px solid #dce2ca;padding:11px 13px;border-radius:12px;font-size:12px!important}.own-stock,.stock-card{border:2px solid #dde3ca;background:#fffdf3;border-radius:15px;padding:15px}.own-stock{margin:17px 0}.stock-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.stock-heading h3{font-size:15px;margin:0 0 5px}.stock-heading h3 small{font-family:system-ui;font-size:11px;color:#8c987f}.stock-heading span{font-size:10px;color:#8a947d}.stock-heading>b{font-size:23px;text-align:right}.stock-heading>b small{font-size:11px;display:block;margin-top:3px}.stock-chart{display:block;width:100%;height:90px;margin:9px 0}.up{color:#487d4e}.down{color:#bb684c}.capital-actions{display:flex;gap:7px}.capital-actions button,.stock-trades button{min-height:44px;border:1px solid #c6d4b4;border-radius:10px;background:#eaf0dc;font-size:12px;padding:8px 10px;flex:1}.market-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.stock-position{font-size:11px;color:#738769;margin:10px 0}.stock-quantity{font-size:11px;color:#78866c;display:flex;justify-content:space-between;align-items:center;gap:10px}.stock-quantity input{width:85px;min-height:40px;text-align:center;padding:7px;font-size:16px}.stock-trades{display:flex;gap:7px;margin-top:10px}.stock-trades button:first-child{background:#375e43;color:#fff5d1;border-color:#375e43}.management-launcher{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.management-launcher button{display:flex;flex-direction:column;align-items:center;border:2px solid #dae1c7;background:#f2f2e2;border-radius:16px;padding:18px 10px;font-size:31px;gap:5px}.management-launcher button b{font-size:15px}.management-launcher button span{font-size:11px;color:#7b8a71}.view-summary #company-button{display:flex}.company-content .modal-actions{margin-top:16px}
@media(max-width:649px) and (orientation:portrait){.topbar{top:calc(9px + var(--safe-top));left:10px;right:10px;gap:6px}.metrics{height:43px;gap:5px}.metrics>div{padding:5px 8px;border-radius:13px;gap:5px}.metrics b{font-size:17px}.metrics>div:first-child:before{font-size:18px}.topbar .icon-button{width:42px;height:42px;min-width:42px;font-size:21px}.day-chip{top:53px;left:10px;transform:none;min-width:148px;height:44px;border-radius:12px;justify-content:flex-start;padding:5px 10px}.day-chip .sun{font-size:21px}.day-chip b{font-size:12px}.day-chip small{font-size:10px}.day-progress{top:calc(113px + var(--safe-top));left:16px;width:134px}.scene-top{top:calc(63px + var(--safe-top));right:10px}.scene-controls{flex-direction:row;gap:6px}.scene-controls button{height:44px;min-height:44px;padding:5px 10px;font-size:11px}.orders-panel{top:calc(134px + var(--safe-top));left:0;width:100%;max-height:151px;pointer-events:none}.panel-heading{display:none}.orders-list{display:flex;flex-direction:row;width:100%;max-height:143px;overflow-x:auto;overflow-y:hidden;padding:8px 10px 10px;gap:8px;pointer-events:auto}.order{flex:0 0 168px;width:168px;min-height:105px;max-height:119px;padding:10px;border-width:2px;border-radius:13px}.order.selected{padding:10px;border-width:2px;transform:none}.order-top{gap:6px}.avatar{font-size:24px;width:30px;height:30px}.order-name{font-size:13px}.order-group{font-size:10px}.order-price{font-size:14px}.order-recipe{font-size:11px;margin:10px 0 7px}.order-recipe>b{max-width:116px}.empty-orders{font-size:12px;width:190px;padding:9px}.empty-orders>span,.empty-orders p{display:none}.career-hud{left:10px;right:auto;bottom:calc(86px + var(--safe-bottom));font-size:10px;padding:7px 9px;border-radius:9px}.neighborhood{top:calc(108px + var(--safe-top));bottom:auto;right:10px;width:142px;border-width:2px;border-radius:11px;z-index:5}#event-toggle{font-size:11px;min-height:40px;padding:7px 9px}.neighborhood.expanded{width:200px}.bench-toggle{bottom:calc(94px + var(--safe-bottom));left:auto;right:10px;min-width:142px;min-height:46px;height:46px;font-size:13px;border-radius:14px}.bench-toggle:not(:disabled):active{transform:translateY(1px)}.toolbar{left:10px;right:10px;bottom:calc(12px + var(--safe-bottom));height:60px}.toolbar nav{gap:8px}.toolbar nav>button{display:none}.toolbar nav>#management-button,.toolbar nav>#company-button{display:flex;width:64px;height:58px;min-height:48px}.footer-right .text-button{width:60px;min-width:60px;height:57px}.workbench{width:calc(100% - 16px);bottom:calc(8px + var(--safe-bottom));padding:15px 12px;grid-template-columns:1fr 95px;gap:10px;border-radius:18px;max-height:calc(100dvh - 130px);overflow-y:auto;overflow-x:hidden}.bench-close{position:sticky;top:0;grid-column:1/-1;grid-row:1;justify-self:end;right:auto;height:33px;width:49px;z-index:2;margin-top:-8px;margin-bottom:-30px;border-width:2px;font-size:21px}.bench-summary{grid-row:2;padding-top:0}.bench-summary h2{font-size:17px;margin:0 0 4px}.bench-summary p{font-size:11px;line-height:1.6;margin:0 0 3px}.recipe-badges{font-size:11px}.bench-summary .text-button{min-height:30px;font-size:11px}.pizza-preview{grid-row:2;height:93px}.ingredients-area{grid-row:3}.ingredient-heading{font-size:12px;margin:0 0 7px}.ingredient-heading>span{font-size:10px}.ingredients{grid-template-columns:repeat(3,1fr);gap:6px}.ingredient{min-height:55px;padding:7px 3px;border-radius:10px}.ingredient>span{font-size:23px;display:inline;margin:0 4px 0 0}.ingredient b{font-size:11px;display:inline}.ingredient small{font-size:10px;display:block}.cooking-actions{grid-row:4;gap:7px}.cooking-actions .button{min-height:47px;font-size:13px}.bench-open .orders-panel{max-height:130px}.bench-open .orders-list{max-height:126px}.start-callout{bottom:calc(123px + var(--safe-bottom));width:290px}.start-callout h2{font-size:31px}.start-callout .button{min-height:54px}.station-tag{min-height:40px;font-size:10px;padding:8px 9px}.toast{top:calc(59px + var(--safe-top));max-width:calc(100% - 22px);padding:9px 12px;font-size:12px}dialog{width:calc(100% - 16px);padding:17px 13px;max-height:calc(100dvh - 24px);border-width:3px;border-radius:19px}.modal-head{margin-bottom:13px}.modal-head h2{font-size:21px;margin:0}.modal-head .icon-button{height:42px;width:42px;min-width:42px}.modal-head .eyebrow{display:none}.company-summary{gap:6px;margin:10px 0}.company-summary>div{padding:10px 7px;border-radius:11px}.company-summary small{font-size:10px}.company-summary b{font-size:17px}.staff-grid{gap:8px;margin:12px 0}.staff-card{padding:12px 9px;border-radius:13px}.staff-title{gap:7px}.staff-title>span{font-size:24px;width:34px;height:34px;border-radius:9px}.staff-title h3{font-size:14px}.staff-title small{font-size:10px}.staff-card p{font-size:11px!important;min-height:85px}.staff-card .button{font-size:12px;padding:8px 5px}.company-toggle{gap:8px;padding:10px}.company-toggle label{font-size:11px}.company-tabs button{min-height:43px;font-size:13px}.company-note{font-size:11px!important}.ipo-banner h3{font-size:21px}.listing-item{padding:10px 8px;gap:7px}.listing-item b{font-size:12px}.listing-item small{font-size:10px}.brand-contract{padding:14px}.brand-contract h3{font-size:15px}.market-grid{grid-template-columns:1fr}.stock-heading h3{font-size:15px}.own-stock{padding:12px}.capital-actions{flex-wrap:wrap}.capital-actions button{flex:1 1 30%;font-size:11px;padding:7px 5px}.store-row{padding:10px 8px;gap:8px}.store-row b{font-size:12px}.store-row small{font-size:10px}.store-row button{min-height:42px;font-size:10px;padding:6px}.modal-actions{gap:7px}.modal-actions .button{font-size:12px;padding:8px 7px}.management-launcher{gap:9px}.management-launcher button{min-height:110px}.management-grid .button{min-height:45px}.menu-toppings button{min-height:44px}.stock-quantity input{min-height:44px}}
@media(max-width:800px) and (orientation:landscape){.toolbar nav>#menu-button,.toolbar nav>#supply-button,.toolbar nav>#staff-button{display:none}.toolbar nav>#management-button,.toolbar nav>#company-button{display:flex}.workbench{max-height:calc(100dvh - 90px);overflow:auto}.career-hud{bottom:78px;font-size:10px;right:15px}dialog{max-height:calc(100dvh - 20px);padding:16px}.modal-head h2{font-size:22px}}
@media(max-width:359px) and (orientation:portrait){.metrics b{font-size:15px}.metrics>div{padding:5px 6px}.topbar .icon-button{width:40px;height:40px;min-width:40px}.company-summary b{font-size:15px}.stock-heading h3{font-size:14px}.staff-grid{grid-template-columns:1fr}.staff-card p{min-height:0!important}}
#event-toggle .news-label{font-size:inherit;font-weight:700}
/* Compact phone HUD: shared edges, two top rows and one bottom action row. */
@media(max-width:649px) and (orientation:portrait){
 :root{--phone-edge:12px;--phone-slot:calc((100vw - 48px)/4)}
 .topbar{left:var(--phone-edge);right:var(--phone-edge);top:calc(12px + var(--safe-top));height:44px;gap:6px}
 .metrics{height:44px;gap:6px;min-width:0;flex-shrink:1}
 .metrics>div,.metrics>div:last-child{padding:6px 8px;gap:5px;border-radius:13px;box-shadow:0 3px 0 #233c3520}
 .metrics b{font-size:16px}.metrics>div:first-child:before{font-size:16px}
 .topbar .icon-button{width:44px;height:44px;min-width:44px;border-radius:13px;box-shadow:0 3px 0 #233c3520}
 .day-chip{top:54px;left:0;transform:none;min-width:0;width:calc(100% - 104px);height:44px;padding:5px 9px;gap:8px;border-radius:13px;box-shadow:0 3px 0 #233c3520}
 .day-chip .sun{font-size:21px}.day-chip b{font-size:12px}.day-chip small{font-size:10px;white-space:nowrap}
 .scene-top{top:calc(66px + var(--safe-top));right:64px;left:auto}
 .scene-controls{gap:0}.scene-controls button{width:44px;height:44px;min-height:44px;padding:0;font-size:0;border-radius:13px;box-shadow:0 3px 0 #233c3520}
 #pause-button:after{content:'Ⅱ';font-size:21px}.is-paused #pause-button:after{content:'▶';font-size:17px}#layout-button:after{content:'▦';font-size:23px}
 .neighborhood,.neighborhood.expanded{right:var(--phone-edge);top:calc(66px + var(--safe-top));width:44px;border:0;background:none;box-shadow:none;overflow:visible;z-index:7}
 #event-toggle{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;background:var(--hud);border:2px solid var(--hud-border);border-radius:13px;box-shadow:0 3px 0 #233c3520}
 #event-toggle .news-icon{font-size:21px}#event-toggle .news-label,#event-toggle .news-expand{display:none}
 .event-content{position:absolute;right:0;top:54px;width:min(270px,calc(100vw - 24px));padding:14px;background:var(--hud);border:2px solid var(--hud-border);border-radius:14px;box-shadow:var(--shadow)}
 .day-progress{top:calc(118px + var(--safe-top));left:var(--phone-edge);width:calc(100% - 24px);height:3px}
 .orders-panel{top:calc(130px + var(--safe-top));max-height:131px}.orders-list{padding:6px 12px 10px;max-height:131px;gap:8px}
 .order{flex-basis:158px;width:158px;min-height:100px;max-height:112px;padding:10px}.order.selected{padding:10px}
 .career-hud{left:var(--phone-edge);right:auto;bottom:calc(84px + var(--safe-bottom));max-width:calc(100% - 24px);padding:6px 9px;font-size:10px;white-space:nowrap;background:#284c3cce;border:1px solid #ecf1cd70}
 .toolbar{left:var(--phone-edge);right:var(--phone-edge);bottom:calc(12px + var(--safe-bottom));height:56px;gap:0;align-items:end}
 .toolbar nav{gap:8px;width:auto}.toolbar nav>#management-button,.toolbar nav>#company-button{width:var(--phone-slot);height:56px;min-height:56px;border-radius:14px;font-size:11px;box-shadow:0 3px 0 #233c3520}
 .toolbar nav button>span{font-size:22px}
 .footer-right{height:56px;width:var(--phone-slot);margin-left:auto;align-items:end;justify-content:stretch;flex-shrink:0}
 .footer-right .text-button{width:100%;min-width:0;height:56px;min-height:56px;padding:4px;font-size:12px;white-space:nowrap;border-radius:14px;box-shadow:0 3px 0 #233c3520}
 .bench-toggle{left:calc(12px + 2 * var(--phone-slot) + 16px);right:auto;bottom:calc(12px + var(--safe-bottom));transform:none;width:var(--phone-slot);min-width:0;height:56px;min-height:56px;padding:5px;font-size:12px;line-height:1.6;border-radius:14px;box-shadow:0 3px 0 #143629}
 .station-tag{font-size:10px;min-height:36px;padding:7px 8px;box-shadow:0 2px 0 #253b3527}
 .toast{top:calc(263px + var(--safe-top));font-size:11px;padding:8px 12px;pointer-events:none}
 .view-closed .career-hud,.view-summary .career-hud{display:none}
}
@media(max-width:359px) and (orientation:portrait){.metrics b{font-size:14px}.metrics>div,.metrics>div:last-child{padding:6px}.topbar .icon-button{width:40px;min-width:40px}.day-chip{width:calc(100% - 104px)}.footer-right .text-button,.bench-toggle{font-size:11px}}
