/* Shared illustrated interface finish. Layout and game state remain owned by each panel. */
body[data-ui-version="3"] :is(.player-sheet:not([data-scene-panel="quests"]),.gear-template-dialog,.pet-template-dialog,dialog.city-location-supply,dialog.company-map,dialog.district-map,.mail-dlg,.social-dialog){
 --tp-surface:#fffdf5;--tp-edge:#b6d5e8;--tp-ink:#193b59;--tp-navy:#173e65;--tp-muted:#526a7b;
 --tp-primary:linear-gradient(180deg,#61d2ff,#1599e7);--tp-gold:linear-gradient(180deg,#fff2a3,#ffd34f);
 --tp-gold-ink:#503610;--tp-shadow:0 2px 5px #214f6e16;--tp-disabled:#e1e9ef;
 --finish-card:linear-gradient(125deg,#fffef8,#fff5dc);--finish-blue:linear-gradient(145deg,#f6fcff,#e3f3ff);
}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]){background:linear-gradient(145deg,#f2fbff,#dfefff)!important;border-color:#c4dfef!important;color:#193b59!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"])>.sheet-head{background:linear-gradient(110deg,#fff 25%,#e4f5ff)!important;border-color:#bad9ed!important;box-shadow:0 2px 7px #284f731a!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"])>.sheet-head :is(h2,#sheet-title){color:#173e65!important;text-shadow:0 1px #fff!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.sheet-resource-hud>span,.uk-resource,.gear-template-hud,.pet-template-hud){background:#fff!important;border-color:#c0d8e7!important;box-shadow:inset 0 1px #fff,0 2px 4px #23476812!important;color:#193b59!important}
/* Navigation: pale blue at rest, gold only for the current destination. */
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.gear-template-nav,.pet-template-nav,.staff-v4-tabs,.staff-quick-nav,.inv-tabs,.ops-board-nav,.ops-report-pages,.warehouse-tabs,.training-tabs,.miner-tabs,.settings-tabs,.character-live-links){background:linear-gradient(180deg,#eef9ff,#deeffc)!important;border-color:#bad7e9!important;box-shadow:inset 0 1px #fff!important;border-radius:12px}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(button[role="tab"],.uk-nav-item,.staff-v4-tabs>button,.ops-board-nav>button,.ops-report-pages>button,.character-live-links>button){background:linear-gradient(#fff,#edf7ff)!important;color:#173e65!important;border-color:#b5d5e9!important;box-shadow:inset 0 1px #fff,0 2px 3px #315e8010!important;border-radius:10px!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) button:is([aria-selected="true"],[aria-current="page"],[aria-current="true"],[aria-checked="true"],[aria-pressed="true"],.is-on,.active,.selected):not(.inv-slot):not(.cave-zone-card):not([data-rarity]){background:linear-gradient(180deg,#fff2a3,#ffd34f)!important;color:#503610!important;border-color:#d4a52b!important;box-shadow:inset 0 1px 2px #fff,0 2px 5px #b47e2422!important}
/* Content surfaces preserve rarity, danger and running/done status indicators. */
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.training-program,.emp-card,.employee-tile,.dispatch-zone,.offline-column,.analytics-kpis article,.analytics-charts>section,.capacity-grid article,.warehouse-template-v2 .uk-card,.line-dock-item,.production-line-card,.factory-card,.welfare-card,.hosp-item,.hosp-stat,.gear-selected-panel,.gear-effect-summary,.gear-template-sets,.pet-center-info,.pet-center-side,.pet-evolution,.inventory-detail,.inv-equipped,.recruit-card,.recruit-copy,.miner-card,.offline-cat,.settings-controls,.settings-avatar,.settings-save,.settings-audio,.bank-card,.loan-card,.channel-price-list label,.character-management-section){background:linear-gradient(125deg,#fffef9,#fff4dc)!important;border-color:#dfcfaa!important;box-shadow:0 2px 5px #755b2012,inset 0 1px #fff!important;border-radius:12px!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.gear-slot,.pet-card,.pet-skill-card){border-color:#bbd6e8!important;box-shadow:0 3px 6px #1a48681a,inset 0 1px #fff!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) .gear-slot.gear-on{background:linear-gradient(#fff4b4,#ffe17b)!important;border-color:#d8ac42!important;color:#503610!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.gear-board-heading,.training-details>h3,.offline-cat>h4,.warehouse-template-v2 aside>h3){background:linear-gradient(#368fc9,#226795)!important;color:#fff!important;border-color:#76b7df!important;text-shadow:0 1px #174468!important}
/* Primary actions remain distinct from navigation and secondary controls. */
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(button.primary,button.template-primary,.offline-collect,.training-action button,.inventory-detail-use,[data-dispatch-confirm],.ex-enter,[data-warehouse-explore]){background:linear-gradient(#63d3ff,#1598e8)!important;color:#103953!important;border-color:#138bc5!important;box-shadow:inset 0 1px #c7efff,0 2px 4px #13649524!important;border-radius:10px!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is([data-emp-recruit],[data-emp-replace],[data-buy],.template-purchase,button.claim){background:linear-gradient(#fff2a3,#ffd34f)!important;color:#503610!important;border-color:#d0a337!important;box-shadow:inset 0 1px #fff,0 2px 4px #aa762020!important;border-radius:10px!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) button:disabled{background:linear-gradient(#ecf2f6,#dbe5ed)!important;color:#596f80!important;border-color:#bccbd5!important;box-shadow:inset 0 1px #fff!important;opacity:1!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) button :is(b,strong,span,small){color:inherit}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(button,input,select,summary):focus-visible{outline:3px solid #246ca9!important;outline-offset:2px!important}
@media(hover:hover){html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) button:not(:disabled):hover{filter:brightness(1.04);border-color:#539fce!important}}
/* Scene art stays visible; the supporting HUD matches the new task center. */
html body.home-v4 :is(.v4-top,.quick-bar){border-color:#bedbef;background:linear-gradient(#ffffffed,#e8f6fff2);box-shadow:0 3px 10px #244e751c}
html body.home-v4 :is(.v4-res-cell,.v4-bottom button,.quick-bar button){border-color:#bbd8e9;box-shadow:inset 0 1px #fff,0 2px 5px #244e7518}
html body[data-ui-version="3"] :is(dialog.company-map,dialog.district-map,.mail-dlg,.social-dialog,dialog.city-location-supply):not(#app#app#app) {border-color:#b6d5e8!important;box-shadow:0 12px 40px #173b5d38!important}
html body[data-ui-version="3"] :is(dialog.company-map,dialog.district-map,.mail-dlg,.social-dialog,dialog.city-location-supply):not(#app#app#app) :is(.company-map-head,.company-map-foot,.district-detail-body,.district-quick-list,.hq-lift,.supply-item,.mail-card,.social-conversation){background:linear-gradient(125deg,#fffef9,#fff4dc)!important;border-color:#dfcfaa!important;color:#193b59!important}
html body[data-ui-version="3"] :is(dialog.company-map,dialog.district-map,.mail-dlg,.social-dialog,dialog.city-location-supply):not(#app#app#app) button:is([aria-selected="true"],[aria-pressed="true"],[aria-current="page"],.active){background:linear-gradient(#fff2a3,#ffd34f)!important;color:#503610!important;border-color:#d4a52b!important}
@media(prefers-reduced-motion:reduce){html body[data-ui-version="3"] .player-sheet button{transition:none!important}}
/* Lists keep their full content width when the shared viewport pager is active. */
html body[data-ui-version="3"] #app#app#app .staff-board>[data-staff-section]>.emp-grid{grid-column:1/-1!important;min-width:0!important}
html body[data-ui-version="3"] #app#app#app .player-sheet:not([data-scene-panel="quests"]) :is(.line-card,.miner-dispatch-zone,.inventory-item-detail){background:linear-gradient(125deg,#fffef9,#fff4dc)!important;border-color:#dfcfaa!important;box-shadow:0 2px 5px #755b2012!important}
@media(max-height:560px){
 html body[data-ui-version="3"] #app#app#app .welfare-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-event-card{grid-template-columns:92px minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;gap:3px 7px!important;padding:6px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-event-card>.welfare-art{width:92px!important;max-height:140px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-event-card :is(h4,p,label){font-size:11px!important;line-height:1.3!important;overflow-wrap:normal!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-event-card select{width:100%!important;min-width:0!important;font-size:11px!important;padding:3px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-event-card .btn{font-size:11px!important;min-height:28px!important;padding:3px 5px!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 7px!important;padding:7px!important;align-content:start!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card>img{width:56px!important;height:56px!important;grid-column:1;grid-row:1}
 html body[data-ui-version="3"] #app#app#app .cadre-card>.emp-head{grid-column:2;grid-row:1;min-width:0}
 html body[data-ui-version="3"] #app#app#app .cadre-card>:not(img):not(.emp-head){grid-column:1/-1;margin:0!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card :is(p,small,label,span){font-size:11px!important;line-height:1.3!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card button{font-size:12px!important;min-height:28px!important;padding:3px 6px!important}
}
html body[data-ui-version="3"] #app#app#app .inventory-selection-layout{grid-template-rows:minmax(0,1fr) auto!important}
html body[data-ui-version="3"] #app#app#app .inventory-selection-layout>.inv-grid{grid-row:1!important;grid-column:1!important;box-sizing:border-box!important;overflow:hidden!important}
html body[data-ui-version="3"] #app#app#app .inventory-selection-layout>.inventory-item-detail{grid-column:2!important;grid-row:1/3!important}
html body[data-ui-version="3"] #app#app#app .inv-grid>.inv-slot[hidden]{display:none!important}
html body[data-ui-version="3"] #app#app#app .inventory-pager{grid-column:1!important;grid-row:2!important;display:flex;align-items:center;justify-content:center;gap:12px;min-height:26px;color:#193b59;font-size:12px}
html body[data-ui-version="3"] #app#app#app .inventory-pager button{min-height:26px!important;padding:2px 12px!important;background:linear-gradient(#fff,#e4f3ff)!important;color:#193b59!important;border:1px solid #a9cde4!important;border-radius:8px}
html body[data-ui-version="3"] #app#app#app .dispatch-materials{left:3px!important;right:3px!important;gap:2px!important}
@media(max-width:700px) and (max-height:560px){
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .line-grid{grid-template-columns:minmax(0,1fr)!important}
 html body[data-ui-version="3"] #app#app#app .line-card>.machine-stage{height:130px!important;min-height:130px!important}
 html body[data-ui-version="3"] #app#app#app .line-card>.machine-slots{display:flex!important;gap:4px!important}
 html body[data-ui-version="3"] #app#app#app .line-card .machine-slot{flex:1;min-width:0!important}
 html body[data-ui-version="3"] #app#app#app .line-card .production-metrics{font-size:11px!important}
}
@media(max-height:560px){
 html body[data-ui-version="3"] #app#app#app article.welfare-card{grid-template-columns:92px minmax(0,1fr)!important;gap:3px 7px!important;grid-template-rows:auto auto auto auto!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-card>.welfare-art{width:92px!important;max-height:128px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-card :is(h4,.emp-head b,.welfare-benefit,p,label,summary){font-size:11px!important;line-height:1.3!important;min-height:0!important;overflow-wrap:normal!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-card :is(select,.btn){font-size:11px!important;line-height:1.25!important;min-height:26px!important;height:auto!important;padding:3px 5px!important}
 html body[data-ui-version="3"] #app#app#app article.welfare-card details{min-height:0!important;padding:2px!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card>.emp-portrait{grid-column:1!important;grid-row:1!important;width:56px!important;height:64px!important;max-height:64px!important;margin:0!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card>.emp-head{grid-column:2!important;grid-row:1!important;display:block!important;margin:0!important;padding:0!important}
 html body[data-ui-version="3"] #app#app#app .cadre-card>.emp-head>*{margin:2px 0!important}
}
@media(max-width:700px) and (max-height:560px){
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .ops-board-nav{min-height:26px!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .ops-board-nav button{padding:2px!important;min-height:26px!important;font-size:11px!important}
 html body[data-ui-version="3"] #app#app#app .line-card{padding:5px!important;gap:3px!important}
 html body[data-ui-version="3"] #app#app#app .line-card>.machine-stage{height:112px!important;min-height:112px!important}
}
@media(max-width:700px) and (max-height:560px){html body[data-ui-version="3"] #app#app#app .line-card{gap:2px!important;padding:4px!important}}
@media(max-width:700px) and (max-height:560px){
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"]>.sheet-head{flex-wrap:nowrap!important;gap:3px!important;padding:4px 6px!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-resource-hud{flex-wrap:nowrap!important;gap:3px!important;min-width:0!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-resource-hud>span{padding:3px!important;font-size:10px!important;flex-shrink:1!important;min-width:0!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-head h2{font-size:14px!important;padding:2px!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-head button{font-size:11px!important;padding:3px 5px!important;flex-shrink:0!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-hud-level{width:90px!important;flex:none!important}
 html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="lines"] .sheet-hud-level meter{width:36px!important}
}
/* Shared dialogs: cancel on the left, confirm on the right, long copy stays readable. */
html body dialog.pwa-dialog[open]:is(.action-confirm,.game-message),html body dialog.seven-info-dialog[open]{box-sizing:border-box;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 24px);padding:18px;border:2px solid #b4d4e7;border-radius:18px;background:linear-gradient(135deg,#fffef6,#eaf7ff);color:#193b59;box-shadow:0 14px 50px #173b5d55;gap:10px}
html body dialog.pwa-dialog[open]:is(.action-confirm,.game-message){display:grid;grid-template-columns:1fr 1fr;overflow:auto}
html body dialog.pwa-dialog:is(.action-confirm,.game-message)>:not(button){grid-column:1/-1;min-width:0}
html body dialog.pwa-dialog:is(.action-confirm,.game-message)>h2{font-size:21px;margin:0;color:#173e65}
html body dialog.pwa-dialog:is(.action-confirm,.game-message)>p{margin:0;line-height:1.55;overflow-wrap:anywhere;white-space:pre-line}
html body dialog.pwa-dialog:is(.action-confirm,.game-message)>footer{display:flex;justify-content:flex-end;gap:10px}
html body dialog.pwa-dialog:is(.action-confirm,.game-message) :is([data-action-confirm],[data-message-confirm],[data-pwa-confirm]){background:linear-gradient(#fff2a3,#ffd34f)!important;color:#503610!important;border:1px solid #c5a03b!important;border-radius:10px;min-height:38px;padding:7px 16px;grid-column:2;grid-row:auto}
html body dialog.pwa-dialog:is(.action-confirm,.game-message) :is([data-action-cancel],[data-message-close]){background:linear-gradient(#fff,#e6f4ff)!important;color:#193b59!important;border:1px solid #a9cde4!important;border-radius:10px;min-height:38px;padding:7px 16px}
html body dialog.action-confirm>[data-action-cancel]{grid-column:1;grid-row:auto;order:9}
html body dialog.action-confirm>[data-action-confirm]{order:10}
html body dialog.pwa-dialog::backdrop,html body dialog.seven-info-dialog::backdrop{background:#16344e80;backdrop-filter:blur(2px)}
html body dialog.pwa-dialog button:focus-visible{outline:3px solid #246ca9;outline-offset:2px}
html body .update-notice{position:fixed;z-index:12000;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(580px,calc(100vw - 32px));box-sizing:border-box;display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:12px;border:1px solid #9bbfd7;border-radius:14px;background:#f1faff;color:#193b59;box-shadow:0 5px 25px #173b5d38;font-size:14px}
html body .update-notice[hidden]{display:none}
html body .update-notice p{margin:0;line-height:1.4}
html body .update-notice button{min-height:36px;border:1px solid #bf9d40;border-radius:9px;padding:6px 10px;background:#ffdf73;color:#503610;white-space:nowrap}
html body .update-notice [data-update-later]{background:#fff;color:#193b59;border-color:#bad3e4}
/* 10-24 更新下載進度條（頂端，不擋操作）與換版時的全畫面「遊戲更新中」 */
html body .update-progress{position:fixed;z-index:12001;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(460px,calc(100vw - 32px));box-sizing:border-box;padding:8px 12px;border:1px solid #9bbfd7;border-radius:12px;background:#f1fafff2;color:#193b59;box-shadow:0 4px 18px #173b5d30;font-size:13px;cursor:pointer}
html body .update-progress[hidden],html body .update-cover[hidden]{display:none}
html body .update-progress p{margin:0 0 5px;line-height:1.35;white-space:pre-line}
html body .update-progress progress,html body .update-cover progress{display:block;width:100%;height:8px;accent-color:#f0b429}
html body .update-cover{position:fixed;inset:0;z-index:13000;display:grid;place-items:center;background:#0b1a2b}
/* 大圖改成 dialog（showModal），蓋掉瀏覽器與共用主題的 dialog 預設框線、留白與尺寸 */
html body dialog#update-cover.update-cover{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#0b1a2b!important;color:#fff!important;box-shadow:none!important;overflow:hidden!important}
html body dialog#update-cover.update-cover:not([open]),html body dialog#update-cover.update-cover[hidden]{display:none!important}
html body dialog#update-cover.update-cover[open]{display:grid!important}
html body dialog#update-cover.update-cover::backdrop{background:#0b1a2b}
/* 圖片原尺寸 1671x941，整張完整放進畫面（不裁切），進度條位置用百分比對準圖上那條 */
html body .update-stage{position:relative;width:min(100vw,calc(100vh * 1671 / 941));aspect-ratio:1671/941;background:url('../img/ui-kit-v2/update-workshop.webp') center/100% 100% no-repeat}
html body .update-track{position:absolute;left:23.4%;top:77.6%;width:53.8%;height:4.6%;border-radius:999px;background:#0d1117;box-shadow:inset 0 2px 6px #000c;overflow:hidden}
html body .update-track i{position:absolute;inset:0 auto 0 0;width:8%;border-radius:inherit;background:linear-gradient(180deg,#9fe6ff,#2e8bff 55%,#1557d6);box-shadow:0 0 12px #4fb6ff;animation:update-fill 6s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes update-fill{to{width:96%}}
/* 10-25 進度文字放進進度條裡（置中、白字黑邊，藍色跑過去也看得清楚）；下方說明框沒字就不顯示 */
html body .update-track .update-track-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 12px;color:#fff;font-weight:800;font-size:clamp(10px,1.35vw,16px);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 3px #000,0 1px 2px #000,0 0 6px #000c;pointer-events:none}
html body .update-caption p:empty{display:none}
html body .update-caption{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);display:grid;justify-items:center;gap:6px;width:min(92%,520px);padding:8px 16px;border-radius:14px;background:#0b1a2bcc;color:#fff;text-align:center}
html body .update-cover h2{margin:0;font-size:clamp(18px,3.2vw,30px);letter-spacing:.12em;color:#ffd65a;text-shadow:0 2px 6px #000}
html body .update-cover p{white-space:pre-line;margin:0;line-height:1.45;font-size:clamp(12px,1.6vw,15px)}
html body .update-cover button{min-height:38px;padding:6px 18px;border:1px solid #bf9d40;border-radius:10px;background:#ffdf73;color:#503610;font-size:15px}
@media (prefers-reduced-motion:reduce){html body .update-track i{animation:none;width:96%}}
html body #app#app#app .qc-design button.qd-state-help{display:inline-grid;place-items:center;vertical-align:middle;min-width:22px!important;min-height:22px!important;width:22px;height:22px;padding:0!important;margin-left:4px;border:1px solid #ad8c38!important;border-radius:50%;background:#fff8d9!important;color:#634514!important;font-size:15px!important;line-height:1}
@media(max-height:500px){html body dialog.pwa-dialog[open]:is(.action-confirm,.game-message){padding:12px;gap:7px}html body dialog.pwa-dialog:is(.action-confirm,.game-message)>h2{font-size:17px}html body dialog.pwa-dialog:is(.action-confirm,.game-message)>p{font-size:13px}html body .update-notice{font-size:12px;padding:8px}}
/* v650: readable quest actions and a real portrait layout. */
html body #app#app#app .qc-design :is(h2,h3,h4,b,strong,button){font-style:normal;writing-mode:horizontal-tb;text-align:start}
html body #app#app#app .qc-design button.qd-button{font-size:15px!important;line-height:1.25!important;white-space:nowrap!important;text-align:center;min-height:34px!important;align-self:center;width:100%}
html body #app#app#app .qc-design .qd-copy h3{line-height:1.35!important;word-break:normal;overflow-wrap:break-word}
html body #app#app#app .qc-design .qd-row{grid-template-columns:40px minmax(0,1fr) auto 76px}
html body #app#app#app .qc-design .qd-row:not(:has(.qd-loot)){grid-template-columns:40px minmax(0,1fr) 76px}
html body #app#app#app .qc-design .qd-stage-list button.qd-button{min-height:30px!important;font-size:12px!important}
@media(max-height:500px) and (min-width:601px){html body #app#app#app .qc-design .qd-row{grid-template-columns:30px minmax(0,1fr) auto 65px}html body #app#app#app .qc-design .qd-row:not(:has(.qd-loot)){grid-template-columns:30px minmax(0,1fr) 65px}html body #app#app#app .qc-design button.qd-button{font-size:13px!important;min-height:30px!important}}
@media(max-width:600px) and (min-height:501px){
 html body #app#app#app .player-sheet[data-scene-panel="quests"] .sheet-head{flex-wrap:wrap!important;height:auto!important;min-height:76px!important;gap:4px!important}
 html body #app#app#app .player-sheet[data-scene-panel="quests"] .sheet-resource-hud{order:3;flex-basis:100%!important;justify-content:center}
 html body #app#app#app .quest-template-v2.qc-design-active{display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important;padding:4px!important}
 html body #app#app#app .quest-template-v2.qc-design-active>.qc-tabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;flex:0 0 58px!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding:3px!important;border-radius:12px!important}
 html body #app#app#app .quest-template-v2.qc-design-active>.qc-tabs button{flex:0 0 92px!important;min-width:92px!important;font-size:13px!important;gap:4px!important;padding:5px!important}
 html body #app#app#app .quest-template-v2 .qt-art{width:24px;height:24px}
 html body #app#app#app .quest-template-v2>.qc-design{flex:1;min-height:0;overflow-y:auto!important;display:block!important;border-radius:12px}
 html body #app#app#app .qc-design .qd-hero{min-height:100px;max-height:none;padding:10px;gap:4px}
 html body #app#app#app .qc-design .qd-hero-icon{width:48px;height:48px}
 html body #app#app#app .qc-design .qd-hero h2{font-size:25px!important}
 html body #app#app#app .qc-design .qd-hero p{font-size:12px!important}
 html body #app#app#app .qc-design .qd-hero-actions{max-width:34%}
 html body #app#app#app .qc-design .qd-content{display:block;padding:7px}
 html body #app#app#app .qc-design .qd-columns{display:flex;flex-direction:column;gap:12px}
 html body #app#app#app .qc-design .qd-list{display:flex;flex-direction:column;gap:6px}
 html body #app#app#app .qc-design .qd-row{grid-template-columns:32px minmax(0,1fr) 78px;gap:6px;min-height:94px;padding:9px}
 html body #app#app#app .qc-design .qd-row:not(:has(.qd-loot)){grid-template-columns:32px minmax(0,1fr) 78px}
 html body #app#app#app .qc-design .qd-icon{width:32px;height:32px;grid-row:1/3}
 html body #app#app#app .qc-design .qd-copy{grid-column:2;grid-row:1}
 html body #app#app#app .qc-design .qd-copy h3{font-size:15px!important;margin-bottom:5px!important}
 html body #app#app#app .qc-design .qd-copy small{font-size:12px}
 html body #app#app#app .qc-design .qd-row>.qd-loot{grid-column:2;grid-row:2;justify-content:flex-start}
 html body #app#app#app .qc-design .qd-row>.qd-loot span{flex-direction:row;font-size:12px;padding:1px 5px;min-width:0}
 html body #app#app#app .qc-design .qd-row>.qd-loot img{width:22px;height:22px}
 html body #app#app#app .qc-design .qd-row>.qd-button{grid-column:3;grid-row:1/3;min-height:44px!important;height:auto;font-size:16px!important}
 html body #app#app#app .qc-design .qd-track{min-height:106px;margin-bottom:10px;gap:4px;padding:5px;flex-wrap:wrap}
 html body #app#app#app .qc-design .qd-activity{flex-basis:100%;display:flex;gap:8px;align-items:center}
 html body #app#app#app .qc-design .qd-activity strong{margin:0;padding:4px;font-size:12px}
 html body #app#app#app .qc-design .qd-milestones{width:100%;min-height:65px}
 html body #app#app#app .qc-design .qd-milestone .qd-chest{width:38px;height:38px}
 html body #app#app#app .qc-design .qd-reward-art{flex:none;height:130px;min-height:130px}
 html body #app#app#app .qc-design .qd-reward-art img{height:125px}
 html body #app#app#app .qc-design :is(.qd-reward-card,.qd-stage-card){flex:none;margin-top:8px;padding:12px;overflow:visible}
 html body #app#app#app .qc-design .qd-filters{overflow-x:auto;flex-wrap:nowrap;margin-bottom:8px;min-height:36px}
 html body #app#app#app .qc-design .qd-filters button{flex:none;min-width:65px;min-height:34px!important;font-size:13px!important}
 html body #app#app#app .qc-design .seven-panel{display:block!important;height:auto!important;overflow:visible!important}
 html body #app#app#app .qc-design .seven-days{display:flex!important;overflow-x:auto!important;margin-bottom:8px}
 html body #app#app#app .qc-design .seven-days button{flex:0 0 70px;min-height:38px!important}
 html body #app#app#app .qc-design .seven-row{min-height:96px!important;height:auto!important;grid-template-columns:32px minmax(0,1fr) 78px!important}
 html body #app#app#app .qc-design .seven-row button{min-height:38px!important;font-size:14px!important}
}
/* Sea and air share clear operational sections, outside automatic list pagination. */
html body dialog.logistics-panel[data-layout="overseas"]{width:min(1120px,96vw);height:92dvh;max-height:92dvh;padding:18px;background:#eaf6ff;color:#173b5b;border:2px solid #bddaea;border-radius:22px;overflow:auto;box-shadow:0 14px 60px #123b5b55}
html body dialog.logistics-panel>header{position:sticky;top:-18px;z-index:2;background:#eaf6ff;padding:10px 0;border-bottom:1px solid #bfd9ea}
html body dialog.logistics-panel>header h2{font-size:23px;color:#173b5b}
html body dialog.logistics-panel>nav{display:flex;gap:8px;margin:12px 0}
html body dialog.logistics-panel>nav button{min-width:130px;font-size:17px;font-weight:800;border-color:#aacbdd;background:white;color:#164c78}
html body dialog.logistics-panel>nav button[aria-selected="true"]{background:linear-gradient(#fff0a2,#ffd457);border-color:#cca541;color:#533b14}
html body dialog.logistics-panel .oversea-summary{gap:8px;margin-bottom:12px}
html body dialog.logistics-panel .oversea-summary span{background:#fff;border-color:#bddaea;color:#224762;padding:10px;font-weight:700}
html body dialog.logistics-panel .oversea-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:10px}
html body dialog.logistics-panel .oversea-column>.oversea-scene{grid-column:1/-1;grid-row:auto;width:100%;height:180px;max-height:180px;object-position:center 55%;border-radius:16px}
html body dialog.logistics-panel .oversea-column>h4{display:block;grid-column:1/-1;margin:0;font-size:23px;color:#174d76}
html body dialog.logistics-panel .oversea-column>p{grid-column:1/-1;grid-row:auto;color:#476477;margin-bottom:4px}
html body dialog.logistics-panel :is(article,label){border:1px solid #ccdeea;background:#fffdf4;border-radius:13px;padding:13px;gap:8px;align-content:start}
html body dialog.logistics-panel article.is-owned{border-color:#74bca6;background:#f1fff8}
html body dialog.logistics-panel article b{font-size:17px;color:#183f5e}
html body dialog.logistics-panel :is(small,p,span,h3,h4){color:#28475f;line-height:1.5}
html body dialog.logistics-panel button,html body dialog.logistics-panel select{min-height:40px;font-size:14px;border-color:#a7c6db;border-radius:9px}
html body dialog.logistics-panel button.primary{background:linear-gradient(#2ac2ff,#0785db);border-color:#1480bd;color:white;font-weight:700}
html body dialog.logistics-panel button:disabled{background:#e3eaf0;color:#607486;opacity:1;border-color:#bdcbd6}
html body dialog.logistics-panel .oversea-board{display:none}
html body dialog.logistics-panel .oversea-events{grid-template-columns:repeat(2,minmax(0,1fr))}
html body dialog.logistics-panel .oversea-assign{grid-template-columns:repeat(2,minmax(0,1fr))}
html body dialog.logistics-panel>p[role="status"]:empty{display:none}
html body dialog.logistics-panel[data-mode="air"] .oversea-column>.oversea-scene{object-position:center 45%}
html body .wc-grid:has(>.wc-sign:nth-last-child(2)){grid-template-columns:1.4fr 1fr}
html body .wc-grid:has(>.wc-sign:nth-last-child(2))>.wc-sign{grid-column:1;grid-row:auto}
@media(max-width:650px){html body dialog.logistics-panel[data-layout="overseas"]{padding:12px;width:96vw}html body dialog.logistics-panel .oversea-column,html body dialog.logistics-panel .oversea-assign,html body dialog.logistics-panel .oversea-events{grid-template-columns:1fr}html body dialog.logistics-panel .oversea-summary{grid-template-columns:repeat(2,minmax(0,1fr))}html body dialog.logistics-panel .oversea-column>.oversea-scene{height:150px}html body .wc-grid:has(>.wc-sign:nth-last-child(2)){grid-template-columns:1fr}}
html body #app#app#app .qc-design .qd-pager{gap:8px;white-space:nowrap;min-height:34px}
html body #app#app#app .qc-design .qd-pager button.qd-button{width:44px;flex:none;min-height:30px!important}
html body #app#app#app .qc-design .qd-pager span{white-space:nowrap;flex:none;min-width:42px;text-align:center}
html body #app#app#app .qc-design .qd-copy h3{font-size:15px!important}
@media(max-height:500px){html body #app#app#app .qc-design .qd-copy h3{font-size:13px!important}}
html body[data-ui-version="3"] dialog.logistics-panel[data-layout="overseas"] .oversea-column{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body[data-ui-version="3"] dialog.logistics-panel[data-layout="overseas"] .oversea-column>:is(h4,p,.oversea-scene){grid-column:1/-1!important;grid-row:auto!important}
@media(max-width:650px){html body[data-ui-version="3"] dialog.logistics-panel[data-layout="overseas"] .oversea-column{grid-template-columns:1fr!important}}
@media(max-width:600px) and (min-height:501px){
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-head{inset:6px 6px auto!important;height:100px!important;min-height:100px!important;padding:6px!important;align-content:center;box-sizing:border-box}
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-scroll{inset:112px 6px 6px!important}
 html body #app#app#app .player-sheet[data-scene-panel="quests"] .sheet-head h2{padding:4px 8px!important;font-size:17px!important}
 html body #app#app#app .player-sheet[data-scene-panel="quests"] .sheet-resource-hud{margin:0!important}
}
@media(max-width:600px) and (min-height:501px){
 html body #app#app#app .qc-design .qd-row>.qd-loot{display:flex!important}
 html body #app#app#app .qc-design .qd-activity strong{white-space:nowrap}
 html body #app#app#app .qc-design .seven-layout{display:flex!important;flex-direction:column!important}
 html body #app#app#app .qc-design .seven-list{display:flex!important;flex-direction:column!important;margin:0!important;padding:0!important}
 html body #app#app#app .qc-design .seven-row{width:100%;padding:10px!important}
 html body #app#app#app .qc-design .seven-row h3{font-size:15px!important}
 html body #app#app#app .qc-design .seven-task-icon{width:32px;height:32px}
 html body #app#app#app .qc-design .seven-row button.seven-perfect{min-height:24px!important;font-size:11px!important;max-width:100%;white-space:normal!important}
 html body #app#app#app .qc-design .seven-rewards{display:flex!important;flex-direction:column;gap:10px}
 html body #app#app#app .qc-design :is(.seven-footer,.seven-perfect-card){min-height:155px!important;font-size:14px}
 html body #app#app#app .qc-design :is(.seven-footer,.seven-perfect-card)>button{font-size:15px!important;min-height:40px!important}
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-head{display:grid!important;grid-template-columns:90px 1fr 70px;grid-template-rows:40px 38px;justify-content:stretch;gap:5px!important}
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-head .sheet-resource-hud{grid-column:1/-1;grid-row:2;width:100%!important;min-width:0!important;overflow:hidden}
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-head h2{grid-column:2;grid-row:1}
 html body #app#app#app .player-sheet[data-scene-panel="quests"]>.sheet-head>button:last-child{grid-column:3;grid-row:1}
}

/* Settings use named categories; never split individual controls into numbered pages. */
html body #app#app#app .player-sheet[data-scene-panel="settings"]>.sheet-scroll{display:block!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:10px!important}
html body #app#app#app [data-home-panel="settings"]:not([hidden]){display:block;min-width:0!important;height:auto!important}
html body #app#app#app .settings-controls.settings-v3{display:block!important;padding:12px!important;max-width:900px;margin:0 auto!important;height:auto!important;overflow:visible!important;font-size:16px;line-height:1.5}
html body #app#app#app .settings-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:2;padding:6px;margin-bottom:12px}
html body #app#app#app .settings-tabs button{margin:0!important;padding:8px!important;min-height:44px!important;font-size:15px!important;line-height:1.3!important;white-space:normal!important}
html body #app#app#app [data-settings-section]{padding:4px!important;border:0!important;min-width:0;overflow:visible!important}
html body #app#app#app [data-settings-section][hidden]{display:none!important}
html body #app#app#app [data-settings-section] h3{font-size:19px!important;line-height:1.4!important;margin:10px 0!important}
html body #app#app#app [data-settings-section] label{font-size:16px!important;line-height:1.4!important}
html body #app#app#app .settings-controls label.settings-switch{display:flex!important;align-items:center;gap:12px;min-height:54px;padding:12px!important;cursor:pointer}
html body #app#app#app .settings-switch input{width:24px!important;height:24px!important;min-width:24px;accent-color:#148750}
html body #app#app#app .settings-switch-status{margin-left:auto;white-space:nowrap;font-size:15px!important}
html body #app#app#app [data-settings-section] select{max-width:100%;min-height:44px;font-size:16px}
html body #app#app#app [data-settings-section] input[type="range"]{min-height:32px}
@media(max-width:600px){html body #app#app#app .settings-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}html body #app#app#app .settings-controls.settings-v3{padding:8px!important}}

/* Named chat entry stays on the home map, above the bottom navigation. */
html body.home-v4 #app#app#app .v4-chat-entry{position:absolute;left:12px;bottom:90px;z-index:22;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 16px;border:1px solid #a9cde4;border-radius:18px;background:linear-gradient(#fff,#e5f5ff);color:#173e65;font-size:16px;font-weight:800;box-shadow:0 3px 9px #173e6526;cursor:pointer;pointer-events:auto}
html body.home-v4.v4-photo #app#app#app .v4-chat-entry{display:none}
@media(max-height:500px){html body.home-v4 #app#app#app .v4-chat-entry{left:auto;right:62px;bottom:76px;min-height:40px;padding:6px 12px;font-size:14px}}

/* Portrait home: every primary entry remains inside the viewport. */
@media(max-width:600px) and (min-height:501px){
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell>.topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;max-width:100%!important;box-sizing:border-box;padding:6px 10px!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .topbar>.game-hud{grid-column:1;grid-row:1;width:max-content!important;max-width:100%!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .game-hud .hud-main{width:134px!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .topbar>.top-actions{display:contents!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .top-actions .game-clock{grid-column:2;grid-row:1;justify-self:end;white-space:nowrap}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-top{grid-column:1/-1;grid-row:2;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;justify-items:center}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-top .v4-round{width:100%!important;min-height:44px!important;border-radius:14px!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-res{grid-column:1/-1;grid-row:3;display:flex!important;width:100%;overflow-x:auto;justify-content:flex-start!important;padding:2px;box-sizing:border-box}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-res-cell{flex:0 0 100px!important;min-width:100px!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-rail{top:178px!important}
 html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-map-crumbs{top:178px!important}
}

/* Keep the Gordon atlas discoverable without stacking the old home map. */
body.home-v4 .panel-home .character-home-hero{background-image:none!important;background-color:#cfe6f7!important}
body.home-v4 .v4-map-layer-menu{max-height:calc(100% - 100px);overflow-y:auto;overscroll-behavior:contain}
body.home-v4 .v4-map-district{display:flex;align-items:center;gap:10px;width:100%;min-height:72px;margin:0 0 10px;padding:8px;border:2px solid #e8ae28!important;border-radius:12px;background:#fff1bf!important;color:#173551!important;text-align:left;font:inherit;cursor:pointer}
body.home-v4 .v4-map-district>img{width:76px;height:52px;object-fit:cover;border-radius:7px}
body.home-v4 .v4-map-district>span{flex:1;min-width:0}
body.home-v4 .v4-map-district b{display:block;font-size:17px}
body.home-v4 .v4-map-district small{display:block;margin-top:3px;font-size:12px;line-height:1.4}
body.home-v4 .v4-map-district>i{font-size:24px;font-style:normal}
@media(max-height:520px){body.home-v4 .v4-map-layer-menu{top:72px;max-height:calc(100% - 150px)}}

/* Dispatch owns stable pages; ticking progress never remeasures the board. */
body[data-ui-version="3"] #app .miner-template-v2 .miner-dispatch-grid>.miner-dispatch-zone[hidden]{display:none!important}
body[data-ui-version="3"] #app .miner-template-v2 .dispatch-pager{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}
body[data-ui-version="3"] #app .miner-template-v2 .dispatch-pager[hidden]{display:none!important}
body[data-ui-version="3"] #app .miner-template-v2 .dispatch-pager button{min-width:32px;min-height:32px;padding:4px}
body[data-ui-version="3"] #app .miner-template-v2 .dispatch-pager span{white-space:nowrap;font-size:13px}

body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .miner-section-head{flex-wrap:wrap!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .miner-dispatch-zone{overflow-y:auto!important;min-height:0!important;max-height:100%!important}
@media(max-width:600px){
body[data-ui-version="3"] #app .player-sheet[data-ui-view="workforce-miner-dispatch"]>.sheet-head h2{font-size:14px!important;padding:2px!important;white-space:nowrap!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"]>.miner-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .miner-quick-nav{grid-column:1!important;grid-row:2!important;flex-direction:row!important;gap:3px!important;padding:3px!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .miner-quick-nav button{font-size:12px!important;padding:5px 3px!important;min-height:38px!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .miner-dispatch-section:not([hidden]){grid-column:1!important;grid-row:3!important;padding:8px!important;min-width:0!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .dispatch-title{display:none!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .dispatch-headcount{flex:1 1 160px!important;min-width:0!important;white-space:normal!important;text-align:left!important;padding:2px!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .dispatch-total{white-space:normal!important;overflow-wrap:anywhere!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .dispatch-footer{flex-wrap:wrap!important;gap:4px!important}
body[data-ui-version="3"] #app .miner-template-v2[data-ui-view="workforce-miner-dispatch"] .dispatch-footer button{min-width:0!important;font-size:12px!important;padding:5px 8px!important;flex:1 1 auto!important}
}

@media(max-width:600px) and (min-height:501px){
html body[data-ui-version="3"] #app#app#app .player-sheet[data-scene-panel="miners"]>.sheet-scroll{top:104px!important}
}

/* Capacity: totals, unlock condition, slot cards, then explicit actions. */
html body #app#app .miner-template-v2 .miner-capacity .miner-section-head{justify-content:space-between!important}
html body #app#app .slot-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}
html body #app#app .slot-summary>div{padding:8px 12px;border:1px solid #c6dfed;border-radius:12px;background:#edf7ff}
html body #app#app .slot-summary b{display:block;font-size:24px;color:#18496d}
html body #app#app .slot-summary small{font-size:12px}
html body #app#app .slot-summary b small{display:inline;font-weight:400}
html body #app#app .slot-unlock{margin:0;padding:6px 10px;border-radius:8px;background:#fff3cb;font-size:13px;flex:none}
html body #app#app .miner-capacity .miner-slot{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;border-radius:12px!important;background:#fff!important;border:1px solid #cadde8!important}
html body #app#app .miner-capacity .miner-slot.is-filled{background:#eaf6ff!important;border-color:#78b3d6!important;cursor:pointer}
html body #app#app .miner-capacity .miner-slot[hidden]{display:none!important}
html body #app#app .miner-capacity .miner-slot .miner-portrait{width:42px!important;height:42px!important;flex:none}
html body #app#app .miner-capacity .emp-head{min-width:0;flex:1}
html body #app#app .miner-capacity .emp-head small{display:block!important;line-height:1.5!important}
html body #app#app .slot-recruit{width:100%;min-height:32px;border:1px solid #b7d7e9;border-radius:8px;background:#e9f6ff;color:#17476c;cursor:pointer}
html body #app#app .slot-details{flex:none;font-size:12px;max-height:130px;overflow:auto}
html body #app#app .slot-details summary{cursor:pointer;padding:5px}
html body #app#app .slot-station{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding-top:6px;border-top:1px solid #d3e1e9;font-size:12px}
html body #app#app .slot-station button{font-size:12px!important;min-height:34px!important;white-space:normal!important}
@media(max-width:600px){
html body #app#app .miner-template-v2[data-ui-view="workforce-miner-slots"]>.miner-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr)!important}
html body #app#app .miner-template-v2[data-ui-view="workforce-miner-slots"] .miner-quick-nav{grid-column:1!important;grid-row:2!important;flex-direction:row!important;padding:3px!important;gap:3px!important}
html body #app#app .miner-template-v2[data-ui-view="workforce-miner-slots"] .miner-quick-nav button{font-size:12px!important;min-height:38px!important;padding:4px!important}
html body #app#app .miner-template-v2 .miner-capacity:not([hidden]){grid-column:1!important;grid-row:3!important;padding:8px!important}
html body #app#app .miner-capacity>.miner-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #app#app .miner-capacity .miner-slot{padding:6px!important}
html body #app#app .miner-capacity .miner-slot .miner-portrait{width:30px!important;height:30px!important}
html body #app#app .slot-summary>div{padding:6px 8px}
html body #app#app .player-sheet[data-ui-view="workforce-miner-slots"]>.sheet-head h2{font-size:14px!important;white-space:nowrap!important;padding:2px!important}
}
@media(max-height:500px){html body #app#app .slot-summary>div{padding:3px 8px}html body #app#app .slot-summary b{font-size:18px}html body #app#app .miner-capacity .slot-unlock{padding:3px 6px}}

html body #app#app .miner-capacity .miner-pager span{white-space:nowrap!important;flex:none!important;min-width:48px;text-align:center}
html body #app#app .miner-capacity .miner-pager button{flex:0 0 64px!important}
html body #app#app .miner-capacity .miner-slot-actions{display:flex!important;flex-direction:row!important;gap:6px!important;flex:none!important}
html body #app#app .miner-capacity .miner-slot-actions button{flex:1!important;font-size:12px!important;padding:5px!important;min-height:32px!important}
@media(max-height:500px){
html body #app#app .miner-capacity:not([hidden]){gap:3px!important;overflow-y:auto!important}
html body #app#app .miner-capacity>.miner-section-head{display:none!important}
html body #app#app .miner-capacity .slot-summary>div{display:flex;align-items:center;justify-content:space-between;padding:3px 8px}
html body #app#app .miner-capacity .slot-summary b{font-size:16px}
html body #app#app .miner-capacity>.miner-slot-grid{min-height:82px!important}
html body #app#app .miner-capacity .miner-slot{gap:3px!important;padding:4px!important}
html body #app#app .miner-capacity .slot-recruit{min-height:24px!important;font-size:11px!important}
html body #app#app .miner-capacity .slot-station{padding-top:2px}
html body #app#app .miner-capacity .slot-station button{min-height:28px!important}
}

/* Left: Gordon city entrance. Right: named map selector and map tools. */
html body.home-v4 .v4-rail [data-v4-go="guild"],html body.home-v4 .v4-rail [data-v4-go="gordon"],html body.home-v4 .v4-rail [data-v4-go="terrain"]{position:relative!important;overflow:visible!important;margin-bottom:16px!important}
html body.home-v4 .v4-map-caption{position:absolute;top:calc(100% - 2px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;line-height:18px;padding:0 5px;border-radius:8px;background:#fffdf4;color:#173c58;box-shadow:0 1px 4px #16395833;pointer-events:none}
html body.home-v4 dialog.v4-map-layer-menu{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(680px,calc(100vw - 24px))!important;max-width:none!important;height:fit-content!important;max-height:calc(100dvh - 24px)!important;padding:20px!important;border:1px solid #bed7e7!important;border-radius:20px!important;overflow:auto!important;box-sizing:border-box!important}
html body.home-v4 dialog.v4-map-layer-menu::backdrop{background:#102e4c99}
html body.home-v4 dialog.v4-map-layer-menu header{font-size:20px;margin-bottom:14px}
html body.home-v4 dialog.v4-map-layer-menu .v4-map-layer-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body.home-v4 dialog.v4-map-layer-menu .v4-map-layer{min-height:116px;padding:12px 6px}
html body.home-v4 .v4-map-label-setting{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding:12px;border-radius:12px;background:#edf5fb;font-size:15px;color:#173c58}
html body.home-v4 .v4-map-label-setting input{width:24px;height:24px;accent-color:#1685d3;cursor:pointer}
@media(max-width:600px){html body.home-v4 dialog.v4-map-layer-menu{padding:14px!important}html body.home-v4 dialog.v4-map-layer-menu .v4-map-layer-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:500px){html body.home-v4 dialog.v4-map-layer-menu{padding:12px!important}html body.home-v4 dialog.v4-map-layer-menu .v4-map-layer{min-height:80px;padding:6px}html body.home-v4 dialog.v4-map-layer-menu .v4-map-district{min-height:54px;margin-bottom:6px}html body.home-v4 dialog.v4-map-layer-menu header{margin-bottom:6px}html body.home-v4 .v4-map-label-setting{padding:6px;margin-top:6px}}

html body.home-v4 .v4-rail .v4-round>.v4-map-caption{font-size:11px!important;line-height:18px!important;width:auto!important;height:auto!important;min-width:0!important;display:block!important}
html body.home-v4 dialog.v4-map-layer-menu{background:#f8fcff!important}
@media(max-height:500px){
html body.home-v4 dialog.v4-map-layer-menu .v4-map-district>img{height:36px!important}
html body.home-v4 dialog.v4-map-layer-menu .v4-map-layer{min-height:70px!important}
html body.home-v4 dialog.v4-map-layer-menu .v4-map-label-setting{margin-top:4px!important;padding:4px 8px!important;min-height:32px!important}
html body.home-v4 dialog.v4-map-layer-menu .v4-map-legacy{margin-top:4px!important;padding:5px!important}
}

html body #app#app .factory-planning-entry{display:flex!important;width:100%!important;align-items:center!important;gap:10px!important;padding:10px 14px!important;border:1px solid #b9d6e7!important;border-radius:14px!important;background:#edf7ff!important;color:#173f5c!important;text-align:left!important;margin-bottom:8px!important;cursor:pointer}
html body #app#app .factory-planning-entry>span:nth-child(2){flex:1!important}
html body #app#app .factory-planning-entry b,html body #app#app .factory-planning-entry small{display:block!important;line-height:1.5!important}
html body #app#app .factory-planning-entry b{font-size:16px!important}
html body #app#app .factory-planning-entry small{font-size:12px!important}
html body dialog.factory-planning{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;width:min(860px,calc(100vw - 20px))!important;max-width:none!important;max-height:calc(100dvh - 20px)!important;padding:18px!important;border:1px solid #b9d6e7!important;border-radius:18px!important;background:#f8fcff!important;color:#173f5c!important;overflow:auto!important;box-sizing:border-box!important}
html body dialog.factory-planning::backdrop{background:#163249aa}
html body .factory-planning>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
html body .factory-planning h2{font-size:20px;margin:0}
html body .factory-planning [data-planning-close]{padding:8px;border:1px solid #bad2e2;border-radius:10px;background:white;color:#173f5c;cursor:pointer}
html body .factory-planning .planning-intro,html body .factory-planning .planning-notice{font-size:13px;line-height:1.5}
html body .factory-planning .factory-space{display:block!important;margin:0!important;max-height:none!important;overflow:visible!important;padding:10px!important;background:#fff!important;border-radius:12px!important}
html body .factory-planning .fs-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important}
html body .factory-planning .fs-tabs button{white-space:normal!important;font-size:13px!important;padding:6px!important}
html body .factory-planning .fs-yard>div{display:flex;flex-direction:column;gap:10px;min-width:0}
html body .factory-planning .btn{white-space:normal!important;min-height:40px!important}
@media(max-width:600px){html body .factory-planning .fs-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body .factory-planning .fs-yard{flex-direction:column!important;align-items:stretch!important}html body .factory-planning .fs-pic{width:100%!important}html body .factory-planning h2{font-size:17px}html body .factory-planning .fs-buys{grid-template-columns:minmax(0,1fr)!important}}

html body #app .settings-sfx-preview{padding:12px;border:1px solid #c5dcec;border-radius:12px;background:#f1f8ff;margin-top:10px}
html body #app .settings-sfx-preview>div{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
html body #app .settings-sfx-preview button{padding:8px 14px;min-height:38px;cursor:pointer}
html body #app .settings-sfx-preview small{display:block;font-size:12px;line-height:1.5}

/* Keep the furnace tabs and synthesis controls together instead of generic pages. */
html body #app#app#app .player-sheet[data-scene-panel="furnace"]>.sheet-scroll{display:block!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important}
html body #app#app#app .furnace-v3 .furnace-scene{height:150px!important;aspect-ratio:auto!important;width:100%!important}
html body #app#app#app .furnace-v3 .furnace-npc{display:none!important}
html body #app#app#app .furnace-v3 .furnace-tabs{display:flex!important;flex-wrap:wrap;gap:6px;margin:10px 0}
html body #app#app#app .furnace-v3 .furnace-workbench[hidden]{display:none!important}
/* Show both employee count and capacity without an ellipsis on portrait HUD. */
html body.home-v4:not(#portrait1):not(#portrait2):not(#portrait3) .app-shell .v4-res-cell[data-v4-go="staff"]{flex:0 0 132px!important;min-width:132px!important}
html body.home-v4 .v4-res-cell[data-v4-go="staff"] b{overflow:visible;text-overflow:clip;white-space:nowrap}
/* Full planning workspace: stable navigation and independently scrolling page content. */
html body dialog.factory-planning{width:min(1120px,calc(100vw - 24px))!important;height:min(760px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;padding:18px!important;background:linear-gradient(145deg,#e2f3ff,#f9fcff)!important}
html body dialog.factory-planning[open]{display:flex!important;flex-direction:column;gap:10px}
html body .factory-planning>header{flex:none;padding:8px 12px;border-radius:13px;background:#fffdf8;color:#24361c;border:1px solid #d6e6c6;box-shadow:0 4px 12px rgba(30,65,40,.10)}
html body .factory-planning>header h2{color:#24361c!important;font-size:22px}
html body .factory-planning .planning-intro{display:none}
html body .factory-planning .planning-body{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
html body .factory-planning .planning-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:none}
html body .factory-planning .planning-summary>div{display:flex;flex-direction:column;gap:4px;padding:10px 14px;background:#fff;border:1px solid #c4dceb;border-radius:12px;min-width:0}
html body .factory-planning .planning-summary span{font-size:12px;color:#58758e}
html body .factory-planning .planning-summary strong{font-size:20px;color:#123f65;overflow-wrap:anywhere}
html body .factory-planning .factory-space{display:grid!important;grid-template-columns:185px minmax(0,1fr)!important;gap:14px;flex:1;min-height:0;padding:0!important;background:transparent!important;overflow:hidden!important}
html body .factory-planning .fs-tabs{display:flex!important;flex-direction:column;gap:8px;overflow:auto;align-self:stretch;padding:4px}
html body .factory-planning .fs-tabs button{flex:none;min-height:52px!important;text-align:left;font-size:15px!important;padding:12px!important;border-radius:12px;border:1px solid #bbd5e7;background:#f8fcff;color:#244560;cursor:pointer}
html body .factory-planning .fs-tabs button[aria-selected=true]{background:linear-gradient(#fff08b,#ffd34e)!important;border-color:#e4b532;box-shadow:0 3px 9px #b9911830;font-weight:800;color:#203650}
html body .factory-planning button:focus-visible{outline:3px solid #2196f3;outline-offset:2px}
html body .factory-planning .planning-page{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #bdd7e8;border-radius:16px;padding:20px}
html body .factory-planning .planning-page h3{margin:0;color:#153c60;font-size:24px}
html body .factory-planning .planning-page-description{margin:8px 0 18px;font-size:14px;line-height:1.6;color:#62798d}
html body .factory-planning .fs-yard{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:center}
html body .factory-planning .fs-pic{width:100%!important;margin:0!important;border-radius:14px;overflow:hidden}
html body .factory-planning .fs-pic img{width:100%;height:auto;max-height:300px;object-fit:contain}
html body .factory-planning .btn{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:14px!important;font-size:16px;border-radius:12px;min-height:64px!important;line-height:1.45}
html body .factory-planning .btn small{font-size:13px;font-weight:400;line-height:1.5}
html body .factory-planning .btn.primary{background:linear-gradient(#24afff,#0875db);color:white;border:1px solid #0872c6}
html body .factory-planning button:disabled{opacity:.58;cursor:not-allowed}
html body .factory-planning .fs-buys,html body .factory-planning .fs-sol{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body .factory-planning .fs-cost>p,html body .factory-planning .fs-slots>p{padding:15px;background:#edf6fc;border-radius:12px;line-height:1.8}
html body .factory-planning small{display:block}
html body .factory-planning .fs-max{display:block;padding:16px;background:#e8f7ef;border:1px solid #a8d8bd;border-radius:12px;font-style:normal;color:#246847}
html body .factory-planning .fs-park{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body .factory-planning .fs-park article{padding:14px;background:#eff7fc;border:1px solid #c4dbe9;border-radius:14px;min-width:0}
html body .factory-planning .fs-sol-h{display:block;margin:20px 0 12px}
html body .factory-planning .fs-sol button{padding:14px;min-height:70px;border:1px solid #bdd8e9;border-radius:12px;background:#f3faff;color:#234765}
html body .factory-planning .fs-sol [aria-pressed=true]{border-color:#e9b93a;background:#fff4cb}
html body .factory-planning .planning-notice{flex:none;margin:0;padding:8px 12px;border-radius:10px;background:#fff1c7}
html body .factory-planning .planning-notice:empty{display:none}
@media(max-width:700px){html body dialog.factory-planning{padding:10px!important;gap:8px}html body .factory-planning .factory-space{display:flex!important;flex-direction:column;gap:8px}html body .factory-planning .fs-tabs{flex:none;flex-direction:row;max-height:54px;padding:2px}html body .factory-planning .fs-tabs button{min-height:44px!important;white-space:nowrap!important;padding:8px 12px!important;font-size:14px!important}html body .factory-planning .planning-page{flex:1;padding:14px}html body .factory-planning .planning-summary{gap:5px}html body .factory-planning .planning-summary>div{padding:8px}html body .factory-planning .planning-summary strong{font-size:16px}html body .factory-planning .planning-summary span{font-size:11px}html body .factory-planning .fs-yard,html body .factory-planning .fs-park{grid-template-columns:minmax(0,1fr)}html body .factory-planning .fs-buys,html body .factory-planning .fs-sol{grid-template-columns:minmax(0,1fr)!important}html body .factory-planning>header h2{font-size:17px}html body .factory-planning .planning-page h3{font-size:20px}}
@media(max-height:500px){html body dialog.factory-planning{padding:8px!important;gap:5px}html body .factory-planning>header{padding:4px 10px}html body .factory-planning>header h2{font-size:18px}html body .factory-planning .planning-summary>div{padding:4px 10px}html body .factory-planning .planning-summary strong{font-size:16px}html body .factory-planning .planning-body{gap:6px}html body .factory-planning .fs-tabs button{min-height:42px!important;padding:8px!important}html body .factory-planning .planning-page{padding:12px}html body .factory-planning .planning-page-description{margin:5px 0 10px}}
html body dialog.factory-planning.factory-planning .fs-tabs button[aria-selected="true"]{background:linear-gradient(#fff08b,#ffd34e)!important;border-color:#ddb132!important;color:#203650!important;box-shadow:0 3px 9px #b9911830!important}
html body dialog.factory-planning.factory-planning .planning-page .btn.primary{background:linear-gradient(#24afff,#0875db)!important;color:#fff!important;border-color:#0872c6!important;font-weight:700}
html body dialog.factory-planning.factory-planning .planning-page .btn.primary small{color:#fff!important}
html body #factory-planning#factory-planning#factory-planning .fs-tabs button[aria-selected="true"]{background:linear-gradient(#fff08b,#ffd34e)!important;color:#203650!important;border-color:#ddb132!important}
html body #factory-planning#factory-planning#factory-planning .planning-page .btn.primary{background:linear-gradient(#199ce9,#0870c9)!important;color:white!important;border-color:#0872c6!important}
html body #factory-planning#factory-planning#factory-planning .planning-page .btn.primary small{background:transparent!important;color:white!important}
/* Larger factory showcase, with upgrade controls below on narrow screens. */
html body #factory-planning#factory-planning#factory-planning .fs-yard{grid-template-columns:minmax(0,2fr) minmax(210px,1fr)!important;align-items:start!important}
html body #factory-planning#factory-planning#factory-planning .fs-pic{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;flex:none!important;background:#fff6df;border-radius:16px}
html body #factory-planning#factory-planning#factory-planning .fs-pic img{display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;object-fit:contain!important}
@media(max-width:700px){html body #factory-planning#factory-planning#factory-planning .fs-yard{grid-template-columns:minmax(0,1fr)!important}html body #factory-planning#factory-planning#factory-planning .fs-yard .fs-pic{width:calc(100% + 16px)!important;margin-left:-8px!important}}
@media(min-width:701px) and (max-height:500px){html body #factory-planning#factory-planning#factory-planning .fs-yard{grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr)!important}}
.gear-room-actions{position:absolute;z-index:15;right:16px;top:76px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(360px,calc(100% - 32px))}
.gear-room-actions button{min-height:46px;padding:10px 24px;border:2px solid #d7a42b;border-radius:12px;background:linear-gradient(#fff18a,#ffd244);color:#193653;font-size:18px;font-weight:800;cursor:pointer}
.gear-room-actions p{margin:0;padding:12px;border-radius:12px;background:#fff5d8;color:#50391a;line-height:1.6;box-shadow:0 3px 14px #0003}
.gear-room-actions p:empty{display:none}
@media(max-height:500px){.gear-room-actions{top:64px;right:10px}.gear-room-actions button{min-height:38px;padding:6px 18px;font-size:16px}}

/* 10-24 九張過場圖（js/scene-loader.js）：圖鋪滿畫面，進度條疊在下方，載完淡出 */
html body .scene-loader{position:fixed;inset:0;z-index:12500;background:#0b1a2b;opacity:1;transition:opacity .4s ease;animation:scene-loader-in .2s ease}
html body .scene-loader.leaving{opacity:0;pointer-events:none}
@keyframes scene-loader-in{from{opacity:0}}
html body .scene-loader-stage{position:absolute;inset:0;background:#0b1a2b center/cover no-repeat}
html body .scene-loader-bar{position:absolute;left:50%;bottom:max(6%,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(560px,calc(100% - 32px));box-sizing:border-box;padding:10px 16px;border-radius:14px;background:#0b1a2bcc;color:#fff;text-align:center;font-size:14px}
html body .scene-loader-bar progress{-webkit-appearance:none;appearance:none;display:block;width:100%;height:12px;margin-bottom:6px;border:1px solid #ffffff55;border-radius:6px;background:#ffffff22;overflow:hidden;color:#3ea0ff}
html body .scene-loader-bar progress::-webkit-progress-bar{background:#ffffff22}
html body .scene-loader-bar progress::-webkit-progress-value{background:linear-gradient(90deg,#2e8bff,#7fd0ff);transition:width .25s}
html body .scene-loader-bar progress::-moz-progress-bar{background:linear-gradient(90deg,#2e8bff,#7fd0ff)}
@media (prefers-reduced-motion:reduce){html body .scene-loader{transition:none;animation:none}}

/* 10-24 天賦面板（js/talent-panel.js）：全螢幕、背景圖、三欄分支；手機改橫向捲動 */
html body dialog.talent-panel{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#0b1a2b var(--talent-bg) center/cover no-repeat;color:#fff}
html body dialog.talent-panel::backdrop{background:#000a}
html body .talent-shell{display:flex;flex-direction:column;gap:10px;height:100%;box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));background:linear-gradient(#0b1a2bcc,#0b1a2b66 30%,#0b1a2bcc);overflow:auto}
html body .talent-head{display:flex;align-items:center;gap:12px}
html body .talent-head h2{margin:0;font-size:22px}
html body .talent-head nav{display:flex;gap:6px;flex:1}
html body .talent-head nav button{padding:6px 14px;border-radius:999px;border:1px solid #ffffff55;background:#ffffff1a;color:#fff;font-size:15px}
html body .talent-head nav button[aria-selected="true"]{background:#2e8bff;border-color:#7fd0ff}
html body .talent-close{width:40px;height:40px;border-radius:50%;border:1px solid #ffffff55;background:#0008;color:#fff;font-size:18px}
html body .talent-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;font-size:15px}
html body .talent-bar img{width:28px;height:28px;vertical-align:middle;margin-right:4px}
html body .talent-points b{color:#ffd76a;font-size:18px}
html body .talent-tree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:1}
html body .talent-branch{background:#0b1a2b99;border:1px solid #ffffff2a;border-radius:14px;padding:8px}
html body .talent-branch header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
html body .talent-branch header img{width:40px;height:40px}
html body .talent-branch h3{margin:0;font-size:16px}
html body .talent-nodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
html body .talent-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border-radius:12px;border:1px solid #ffffff33;background:#ffffff12;color:#fff;font-size:12px;line-height:1.2}
html body .talent-node>img:first-child{width:64px;height:64px}
html body .talent-node .talent-state{position:absolute;top:2px;right:2px;width:22px;height:22px}
html body .talent-node small{color:#ffd76a}
html body .talent-node.is-locked>img:first-child{filter:grayscale(1) brightness(.6)}
html body .talent-node.is-locked{color:#ffffff99}
html body .talent-node.is-maxed{border-color:#ffd76a}
html body .talent-node.is-picked{outline:2px solid #7fd0ff;background:#2e8bff33}
html body .talent-detail{display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;background:#0b1a2bdd;border:1px solid #ffffff33}
html body .talent-detail>img{width:56px;height:56px}
html body .talent-detail>div{flex:1}
html body .talent-learn-row{display:flex;gap:6px;flex:none}
html body .talent-learn-row .btn{width:auto;min-width:56px}
html body .talent-detail h4{margin:0 0 4px;font-size:16px}
html body .talent-detail p{margin:0;font-size:14px}
html body .talent-why{color:#ffb0a0}
html body .talent-hint{margin:0;text-align:center;color:#ffffffaa}
html body .sk-talent{display:inline-flex;align-items:center;gap:6px}
html body .sk-talent img{width:28px;height:28px;object-fit:cover;border-radius:6px}
@media (max-width:760px){html body .talent-tree{grid-template-columns:repeat(3,82vw);overflow-x:auto;scroll-snap-type:x mandatory}html body .talent-branch{scroll-snap-align:start}}
/* 天賦面板配合 v654 淺色面板：背景圖要壓過全域 dialog 底色；分支欄改半透明白底＋深藍字 */
body[data-ui-version] dialog.talent-panel{background:#0b1a2b var(--talent-bg) center/cover no-repeat!important;color:#21334b!important}
html body .talent-shell{background:linear-gradient(#0b1a2b55,#0b1a2b22 40%,#0b1a2b66)}
html body .talent-head,html body .talent-bar{padding:6px 12px;border-radius:14px;background:#ffffffe6;color:#21334b}
html body .talent-head nav button[aria-selected="true"]{background:#2e8bff!important;color:#fff!important}
html body .talent-branch{background:#ffffffd0;border-color:#ffffff;color:#21334b}
html body .talent-points b{color:#c27a00}
html body .talent-node small{color:#c27a00}
html body .talent-node.is-locked{color:#21334b88!important}
html body .talent-node.is-maxed{border-color:#e0a400!important;box-shadow:0 0 0 2px #ffd76a!important}
html body .talent-node.is-picked{outline:3px solid #2e8bff;outline-offset:1px}
html body .talent-detail{background:#ffffffee;color:#21334b}
html body .talent-why{color:#c0392b}
html body .talent-hint{padding:6px;border-radius:10px;background:#ffffffcc;color:#21334b}
html body .talent-bar .btn,html body .talent-detail .btn{width:auto;flex:none;padding:6px 16px}
html body .talent-tree{align-items:start}

/* 10-24 老闆：首頁左側直排圖示（公會／單人副本／貨車／報表／礦工）改到下排，橫向排成同一排，接在聊天頻道右邊 */
html body.home-v4:not(#r1):not(#r2):not(#r3):not(#r4) .app-shell .v4-rail-left{top:auto!important;left:132px!important;bottom:100px!important;flex-direction:row!important;align-items:flex-start!important;gap:22px!important}
html body.home-v4:not(#r1):not(#r2):not(#r3):not(#r4) .app-shell .v4-rail-left .v4-round{margin-bottom:0!important}
@media(max-height:500px){html body.home-v4:not(#r1):not(#r2):not(#r3):not(#r4) .app-shell .v4-rail-left{left:12px!important;bottom:92px!important}}

/* 廠房周邊擺設：實際廠房外觀、道路與固定景觀格 */
html body[data-ui-version] dialog#yard-build.yard-build{width:min(900px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:14px;border:0;border-radius:18px;background:#f3f7f2;color:#24361c;box-sizing:border-box;overflow:auto}
html body[data-ui-version] dialog#yard-build.yard-build::backdrop{background:rgba(20,30,15,.55)}
dialog.yard-florist-order{width:min(650px,calc(100vw - 20px));max-height:calc(100dvh - 20px);box-sizing:border-box;overflow:auto;border:2px solid #b78948;border-radius:18px;padding:18px;background:#fffaf0;color:#352719;box-shadow:0 18px 50px #1e251d66;font:16px system-ui,"Microsoft JhengHei",sans-serif}
dialog.yard-florist-order::backdrop{background:#171b16a8}
dialog.yard-florist-order header,dialog.yard-florist-order footer{display:flex;align-items:center;gap:10px}
dialog.yard-florist-order header h2{flex:1;margin:0;font-size:20px}
dialog.yard-florist-order button{font:inherit;cursor:pointer;border:1px solid #c8a779;border-radius:10px;padding:8px 12px;background:#fff;color:#352719}
dialog.yard-florist-order button:disabled{opacity:.5;cursor:default}
dialog.yard-florist-order .yfo-intro{display:flex;align-items:center;gap:12px;margin:12px 0;padding:8px 12px;background:#f4ead6;border-radius:12px}
dialog.yard-florist-order .yfo-intro img{width:76px;height:76px;object-fit:contain}
dialog.yard-florist-order .yfo-intro p{display:grid;gap:4px;margin:0}
dialog.yard-florist-order .yfo-preview{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:16px;margin:10px 0;padding:10px;background:#e6ecd7;border:1px solid #c3d1a5;border-radius:14px}
dialog.yard-florist-order .yfo-preview-ground{display:grid;place-items:center;min-height:150px;border-radius:10px;background:linear-gradient(160deg,#c5df92,#91b864 65%,#79a353);box-shadow:inset 0 0 0 5px #fff9,inset 0 -12px 0 #8a8e6a55}
dialog.yard-florist-order .yfo-preview-ground img{display:block;width:140px;height:140px;object-fit:contain;filter:drop-shadow(0 8px 5px #28402166)}
dialog.yard-florist-order .yfo-preview figcaption{display:grid;gap:8px}
dialog.yard-florist-order .yfo-preview figcaption b{font-size:20px}
dialog.yard-florist-order .yfo-preview figcaption span{font-size:13px;color:#546046}
dialog.yard-florist-order .yfo-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
dialog.yard-florist-order .yfo-products button{display:grid;justify-items:center;gap:4px;min-width:0}
dialog.yard-florist-order .yfo-products button[aria-pressed="true"]{border:2px solid #9b6b18;background:#fff1c8}
dialog.yard-florist-order .yfo-products img{width:54px;height:54px;object-fit:contain}
dialog.yard-florist-order .yfo-quantity{display:flex;align-items:center;gap:12px;margin:16px 0 8px;font-weight:700}
dialog.yard-florist-order .yfo-quantity input{width:85px;padding:8px;border:1px solid #b69a72;border-radius:8px;font:inherit}
dialog.yard-florist-order .yfo-total{font-weight:700;line-height:1.5}
dialog.yard-florist-order .yfo-status{min-height:1.3em;color:#a33720}
dialog.yard-florist-order footer{justify-content:flex-end}
dialog.yard-florist-order footer [data-buy]{background:#f4c75b;font-weight:700}
@media(max-width:520px){dialog.yard-florist-order .yfo-products{grid-template-columns:repeat(3,minmax(0,1fr))}dialog.yard-florist-order .yfo-products img{width:44px;height:44px}dialog.yard-florist-order .yfo-preview{grid-template-columns:120px 1fr;gap:10px}dialog.yard-florist-order .yfo-preview-ground{min-height:115px}dialog.yard-florist-order .yfo-preview-ground img{width:105px;height:105px}}
html body[data-ui-version] dialog#yard-build.yard-build header{display:flex;align-items:center;gap:8px}
html body[data-ui-version] dialog#yard-build.yard-build header h2{flex:1;margin:0;font-size:18px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist{display:flex;align-items:center;gap:12px;width:100%;margin:10px 0;padding:8px 14px;text-align:left;background:#fff6db!important;border:2px solid #d8aa57;border-radius:14px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist img{width:74px;height:74px;object-fit:contain;flex:none}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist span{display:grid;gap:4px;flex:1}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist span b{font-size:16px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist span small{font-size:13px;line-height:1.4}
html body[data-ui-version] dialog#yard-build.yard-build .yb-florist strong{white-space:nowrap;color:#765016}
@media(max-width:520px){html body[data-ui-version] dialog#yard-build.yard-build .yb-florist strong{font-size:12px}html body[data-ui-version] dialog#yard-build.yard-build .yb-florist img{width:58px;height:58px}}
html body[data-ui-version] dialog#yard-build.yard-build button{font:inherit;cursor:pointer;border-radius:10px;border:1px solid #b9d39f;background:#fff!important;color:#24361c;padding:6px 10px}
html body[data-ui-version] dialog#yard-build.yard-build button:disabled{opacity:.5;cursor:default}
html body[data-ui-version] dialog#yard-build.yard-build .yb-hint,html body[data-ui-version] dialog#yard-build.yard-build .yb-note{margin:6px 0;font-size:13px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-note{min-height:1.2em;font-weight:700;color:#3d6b1f}
html body[data-ui-version] dialog#yard-build.yard-build .yb-stats{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-stats span{background:#e3f1d3;border-radius:999px;padding:3px 10px;font-size:13px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button{flex:0 0 auto;display:grid;justify-items:center;min-width:68px;padding:4px 6px;line-height:1.2}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button i{font-style:normal;font-size:22px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button img{display:block;width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 2px 2px #263b2a55)}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button b{font-size:12px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button small{font-size:11px;color:#6a7d5c}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button[aria-pressed="true"]{background:#7cb342!important;border-color:#5a8f2a;color:#fff}
html body[data-ui-version] dialog#yard-build.yard-build .yb-tools button[aria-pressed="true"] small{color:#eef7e4}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene{overflow:hidden;border:2px solid #7c9c66;border-radius:16px;background:#c8df9d;box-shadow:0 8px 22px #344e2933}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 14px;background:#f9f8e9;color:#254328}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-head div{display:grid;gap:1px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-head small{font-size:10px;letter-spacing:.12em;color:#718065}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-head strong{font-size:16px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-head>span{white-space:nowrap;padding:4px 9px;border-radius:999px;background:#e7efd9;font-size:12px;font-weight:700}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid-caption{margin:0;padding:7px 12px;background:#dce9c7;color:#38533a;font-size:12px;font-weight:700}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid{display:grid;grid-template-columns:repeat(var(--yb-w),minmax(0,1fr));gap:3px;margin:0;padding:8px;background:radial-gradient(circle at 18% 24%,#e2efb169 0 2px,transparent 4px),radial-gradient(circle at 76% 70%,#6ea34738 0 2px,transparent 5px),linear-gradient(160deg,#b8d87e,#8fbd5e 52%,#afd277);background-size:42px 40px,55px 50px,auto;border-top:1px solid #779952;box-shadow:inset 14px 0 0 #6f806355,inset -14px 0 0 #6f806355}
html body[data-ui-version] dialog#yard-build.yard-build .yb-factory-plot{position:relative;z-index:1;display:grid;place-items:center;overflow:hidden;border:2px solid #d7bb75;border-radius:9px;background:linear-gradient(145deg,#ddd9c6e8,#b5bcb1df);box-shadow:inset 0 0 0 4px #fff8d08c,0 5px 12px #39422f88}
html body[data-ui-version] dialog#yard-build.yard-build .yb-factory-plot img{position:absolute;left:0;top:0;width:100%;height:88%;object-fit:contain;filter:drop-shadow(0 5px 4px #26352e77)}
html body[data-ui-version] dialog#yard-build.yard-build .yb-factory-plot span{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 6px;border-radius:7px;background:#fff8dfeb;color:#244252;font-size:11px;font-weight:800}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell{position:relative;aspect-ratio:1;min-width:0;min-height:0!important;padding:0;border:1px solid #f8ffdd99;border-radius:5px;background:#f2ffd31c!important;box-shadow:inset 0 1px 1px #ffffff44!important;font-size:clamp(16px,3vw,29px);line-height:1}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell.has{border-color:#f9e7a6;background:#fff6cf80!important;box-shadow:inset 0 0 0 1px #866e37aa,0 2px 5px #38562d55!important}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell img{display:block;width:94%;height:94%;margin:auto;object-fit:contain;filter:drop-shadow(0 2px 2px #29462888);pointer-events:none}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell:hover,html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell:focus-visible{outline:2px solid #ffda61;outline-offset:-2px;background:#fff8ce77!important}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell:not(.has):hover::after,html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell:not(.has):focus-visible::after{content:'';position:absolute;inset:3px;background:var(--yb-preview) center/contain no-repeat;opacity:.72;pointer-events:none}
html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell.has[data-preview="×"]:hover::after,html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell.has[data-preview="×"]:focus-visible::after{content:'×';position:absolute;inset:0;display:grid;place-items:center;background:#fff8d0cc;color:#8b2f27;font-size:30px;font-weight:900;pointer-events:none}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-road{height:22px;background:#707b7d;border-top:2px solid #dfe6dc;display:grid;place-items:center}
html body[data-ui-version] dialog#yard-build.yard-build .yb-scene-road span{width:100%;border-top:2px dashed #f6e3a5}
@media(max-width:600px){html body[data-ui-version] dialog#yard-build.yard-build .yb-grid{gap:2px;padding:5px}html body[data-ui-version] dialog#yard-build.yard-build .yb-grid .yb-cell{font-size:16px}html body[data-ui-version] dialog#yard-build.yard-build .yb-factory-plot span{font-size:9px}}
html body[data-ui-version] dialog#yard-build.yard-build .yb-foot{display:flex;flex-wrap:wrap;gap:6px}
html body[data-ui-version] dialog#yard-build.yard-build .yb-foot button{display:grid;text-align:left}
html body[data-ui-version] dialog#yard-build.yard-build .yb-foot small{font-size:11px;color:#6a7d5c}
html body[data-ui-version] dialog#yard-build.yard-build .yb-expand:not(:disabled){background:#ffe082!important;border-color:#e0b84a}
html body dialog.factory-planning header [data-planning-yard]{margin-left:auto}

/* 10-24 職涯面板：選職涯按鈕加職業頭像 */
html body[data-ui-version] #app#app#app#app .career-v2 .cv2-targets [data-cv2-target]{display:inline-flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;min-width:84px}
html body .career-v2 .cv2-targets .cv2-art{display:block;width:72px;height:96px;object-fit:cover;border-radius:10px;background:#111}

/* 10-24 強化工坊（淺色介面，參考強化包概念圖） */
html body dialog#gear-forge{width:min(720px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:14px;border:0;border-radius:18px;background:#fbf7ef!important;color:#3a2a18;box-sizing:border-box;overflow:auto}
html body dialog#gear-forge::backdrop{background:rgba(30,20,10,.55)}
html body dialog#gear-forge header{display:flex;align-items:center;gap:8px}
html body dialog#gear-forge header h2{flex:1;margin:0;font-size:18px}
html body dialog#gear-forge button{font:inherit;cursor:pointer;border-radius:10px;border:1px solid #e0c99a;background:#fff;color:#3a2a18;padding:6px 10px}
html body dialog#gear-forge button:disabled{opacity:.45;cursor:default}
html body dialog#gear-forge img{width:28px;height:28px;object-fit:contain;vertical-align:middle}
html body dialog#gear-forge .gf-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}
/* 10-24 老闆重繪的強化工坊零件：分頁底圖、卡片外框、成功／失敗特效 */
html body dialog#gear-forge .gf-tabs button{border:0!important;background:transparent url(../img/forge/forge-tab-off.webp) center/100% 100% no-repeat!important;min-height:40px}
html body dialog#gear-forge .gf-tabs [aria-selected="true"]{background:transparent url(../img/forge/forge-tab-on.webp) center/100% 100% no-repeat!important;color:#5a3608!important;font-weight:700}
html body dialog#gear-forge .gf-weapons{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
html body dialog#gear-forge .gf-weapons button{flex:0 0 auto;display:grid;font-size:12px}
html body dialog#gear-forge .gf-weapons [aria-pressed="true"]{border:2px solid #f0a830;background:#fff4dc}
html body dialog#gear-forge .gf-card{position:relative;margin-top:8px;padding:6px;border:18px solid transparent;border-image:url(../img/forge/forge-frame.webp) 28 fill / 18px stretch;display:grid;gap:6px}
html body dialog#gear-forge .gf-card img.gf-fx{position:absolute;left:50%;top:40%;width:200px;height:200px;margin:-100px 0 0 -100px;pointer-events:none;animation:gf-fx 1.1s ease-out forwards}
@keyframes gf-fx{0%{transform:scale(.3);opacity:0}25%{transform:scale(1.05);opacity:1}100%{transform:scale(1.25);opacity:0}}
html body dialog#gear-forge .gf-big{display:flex;justify-content:center;align-items:center;gap:12px;font-size:28px;font-weight:800;color:#c8841a}
html body dialog#gear-forge .gf-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:14px}
html body dialog#gear-forge .gf-dl dd{margin:0;font-weight:700}
html body dialog#gear-forge .gf-warn,html body dialog#gear-forge .gf-hint{margin:4px 0;font-size:12px;color:#8a6a3a}
html body dialog#gear-forge label{display:flex;align-items:center;gap:6px;font-size:14px}
html body dialog#gear-forge .gf-go{padding:10px;font-size:16px;font-weight:800;background:linear-gradient(#ffcf5a,#f0a830);border-color:#c8841a}
html body dialog#gear-forge .gf-why{color:#b0442a}
html body dialog#gear-forge .gf-rows{display:grid;gap:6px}
html body dialog#gear-forge .gf-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;border-radius:12px;background:#fff;border:1px solid #f0dfbd;font-size:13px}
html body dialog#gear-forge .gf-row small{margin-left:auto;color:#8a6a3a}
html body dialog#gear-forge .gf-codex{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
html body dialog#gear-forge .gf-codex article{display:grid;justify-items:center;text-align:center;gap:2px;padding:8px;border-radius:12px;background:#fff;border:1px solid #f0dfbd;font-size:12px}
html body dialog#gear-forge .gf-codex article img{width:56px;height:56px}
html body dialog#gear-forge .gf-note{min-height:1.2em;font-weight:700;color:#7a4e10}
html body dialog#gear-forge label input[type="checkbox"]{flex:0 0 auto;width:20px!important;height:20px!important;min-width:0!important;margin:0;appearance:auto;accent-color:#f0a830}

/* 10-24 公會面板：我的公會／公會總表切換＋總表清單 */
html body dialog#social-panel .guild-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 8px}
html body dialog#social-panel .guild-view-tabs [aria-selected="true"]{font-weight:800;outline:2px solid currentColor}
html body dialog#social-panel .guild-dir-search{display:flex;gap:6px}
html body dialog#social-panel .guild-dir-head{margin:6px 0;font-size:12px;opacity:.75}
html body dialog#social-panel .guild-dir{display:grid;gap:6px}
html body dialog#social-panel .guild-dir-row{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:8px}
html body dialog#social-panel .guild-dir-row em{font-style:normal;font-size:12px;opacity:.8}

/* 10-25 老闆「轉場畫面左上角要顯示車界玩家」：過場圖（.scene-loader）與更新中畫面（.update-cover）共用 */
html body :is(.scene-loader-stage,.update-stage)>.game-brand{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));z-index:2;width:clamp(150px,24vw,340px);height:auto;filter:drop-shadow(0 3px 6px #000a);pointer-events:none;user-select:none}

/* Construction follows real build state; the visual loop never reports completion. */
.fs-construction{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #d6bd7b;border-radius:12px;background:#fff8e6;color:#30485a;margin-top:12px;text-align:left}
.fs-construction p{margin:4px 0}.fs-construction small{color:#665b43}.fs-site{width:136px;height:82px;flex:none;position:relative;overflow:hidden;border-radius:8px;background:linear-gradient(#def1fc 70%,#d8c7a5 70%)}
.fs-frame{position:absolute;bottom:20px;left:20px;width:65px;height:36px;border:4px solid #647d8e;background:repeating-linear-gradient(90deg,transparent 0 20px,#647d8e 20px 23px)}
.fs-crane{position:absolute;left:100px;top:8px;width:6px;height:65px;background:#d69824}.fs-crane:before{content:'';position:absolute;right:-8px;top:0;width:93px;height:5px;background:#d69824}
.fs-load{position:absolute;left:34px;top:12px;width:22px;height:9px;background:#a77949;animation:fs-hoist 4s ease-in-out infinite}.fs-load:before{content:'';position:absolute;bottom:9px;left:10px;width:1px;height:24px;background:#526571}
.fs-worker{position:absolute;bottom:15px;left:80px;width:9px;height:17px;background:#2b6486;border-radius:4px;transform-origin:bottom;animation:fs-work 1.3s ease-in-out infinite}.fs-worker:before{content:'';position:absolute;top:-5px;left:-2px;width:13px;height:6px;border-radius:8px 8px 0 0;background:#e8b23f}
.fs-sparks{position:absolute;left:75px;bottom:29px;width:4px;height:4px;background:#ffe06d;box-shadow:-5px -4px #ffc843,3px -6px #fff3a0;animation:fs-spark 1.3s steps(2) infinite}
.fs-barrier{position:absolute;bottom:7px;left:7px;right:7px;height:7px;background:repeating-linear-gradient(125deg,#e2b33d 0 9px,#4f5360 9px 18px)}
@keyframes fs-hoist{0%,100%{transform:translate(0,0)}50%{transform:translate(30px,15px)}}@keyframes fs-work{50%{transform:rotate(-12deg)}}@keyframes fs-spark{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.fs-site *{animation:none!important}}
.fs-construction{gap:8px;padding:6px;margin-top:6px}.fs-construction .fs-site{zoom:.7}.fs-construction strong{font-size:12px;line-height:1.35;display:block}.fs-construction .fs-build{font-size:11px!important;padding:2px!important;margin:3px 0!important}.fs-construction small{font-size:10px;line-height:1.3;display:block}
