/* One shell for every sidebar section, loaded after the legacy device rules. */
#app #gamePanel .machine-selector{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;align-items:center}
#app #gamePanel .machine-selector>button{min-width:32px;padding:0;font-size:22px}
#app #gamePanel .machine-selector>div{min-width:0}
/* Footer summaries share the same three-row body on every device. */
/* O card do rodapé fica na coluna do grid (que já exclui a barra lateral), e
   não em posição absoluta como as outras folhas: descontar a barra de novo o
   deixava 64 px mais estreito que o espaço — 249 px num iPhone de 393, com o
   "Ver depósito" cortado. */
#app .interface #hudDetail:not(.is-minimized){width:min(330px,100%);height:auto;max-height:none}
#app .interface #hudDetail:not(.is-minimized) .panel-body{position:relative;padding:8px 10px;overflow:clip;flex:none}
#app #hudDetail article{display:grid;grid-template-rows:38px 66px auto;gap:6px}
#app #hudDetail article header{height:38px;align-items:center;overflow-wrap:anywhere}
#app #hudDetail article dl{height:66px;min-height:66px;margin:0;align-content:start;grid-auto-rows:20px;row-gap:3px;font-size:14px;line-height:20px}
#app #hudDetail .hud-detail-actions{margin:0;padding:0;align-items:center}
#app #hudDetail .panel-body button{height:40px;min-height:40px}
#app #hudDetail[data-group=storage] .panel-body{grid-template-rows:38px 66px 40px;row-gap:6px}
#app #hudDetail[data-group=storage] article{display:contents}
#app #hudDetail .hud-data-pager{display:flex;align-items:center;gap:4px;font-size:14px}
#app #hudDetail .hud-data-pager button{min-width:28px;width:28px;padding:0}
#app #hudDetail .panel-head{min-height:52px;box-sizing:border-box}
#app .interface #gamePanel.compact-panel,
#app .interface #buildPanel.compact-panel,
#app .interface #gamePanel.compact-panel:has(.storage-compact){
 position:absolute;inset:auto 0 var(--sheet-bottom,90px) auto;grid-area:auto;
 width:min(360px,calc(100% - var(--rail-width,56px) - 8px));
 height:auto;
 max-height:none;min-height:0;padding:0;display:flex;flex-direction:column;
 border-radius:16px;background:#fff8e9;color:#584b37;box-shadow:none;overflow:clip;
}
#app .compact-panel>.panel-head{padding:6px 10px!important;margin:0;min-height:44px;flex:0 0 auto}
#app .compact-panel>.panel-head strong{font-size:16px!important;line-height:1.2}
#app .compact-panel>.panel-head small,#app .compact-panel>.panel-hint{display:none}
#app .compact-panel>.panel-head button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex-basis:36px!important}
/* O visor do paginador era `overflow:clip`: sem rolagem, nunca. Enquanto
   cada página coubesse no orçamento, tudo bem — mas `partitionPanelUnits`
   tem um caso em que ela não cabe: um bloco indivisível (`[data-atomic]`)
   mais alto que a página entra assim mesmo (a última linha da função), e
   aí o que passa do fim é cortado e fica inalcançável. Foi o que aconteceu
   com o card de um poço em Gestão → Água: 293px num visor de 236px, com o
   botão de comprar a melhoria cortado ao meio. Agora essa página rola.
   As que cabem continuam sem barra nenhuma — nada muda para elas. */
#app .compact-panel .compact-pages{flex:none;min-height:0;padding:8px 10px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#app .interface #gamePanel.compact-panel>#gamePanelTabs{flex:none;padding:5px 10px!important}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button{min-height:36px;padding:4px;font-size:13px;white-space:normal}
#app .compact-panel .compact-pages :where(div,section,article,nav,ul,ol,details){max-height:none!important;overflow:visible!important}
#app .compact-panel #gamePanelBody,#app .compact-panel #gamePanelActions,#app .compact-panel #catalog{height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;padding:0!important;margin:0!important;overflow:visible!important}
#app .compact-panel #gamePanelTabs{position:static!important;inset:auto!important;padding:0 0 6px!important;margin:0!important}
#app .compact-panel .compact-pages button{font:inherit;font-size:14px;min-height:36px;padding:6px 8px;white-space:normal;max-width:100%;text-shadow:none}
#app .compact-panel .compact-pages :where(p,li,dt,dd,label,select){font-size:14px;line-height:1.35}
#app .compact-panel .compact-pages :where(h3,h4){font-size:15px!important;margin:5px 0!important;line-height:1.3}
#app .compact-panel .compact-pages p{margin:5px 0}
#app .compact-panel .compact-pages :where(.field-card,.machine-detail,.machine-home,.equipment-card){padding:8px;gap:5px;margin:4px 0}
#app .compact-panel .compact-pages nav{flex-wrap:wrap;white-space:normal}
#app .compact-panel .compact-pages :where(.machine-art,.item-art){width:40px;height:40px;max-height:40px}
#app .compact-panel .compact-pages :where(.management-area-buttons,.build-groups){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#app .compact-panel .compact-pages :where(.build-help,.machine-intro>small){display:none}
#app .compact-panel .compact-pages table{width:100%;table-layout:fixed;font-size:14px}
#app .compact-panel .compact-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:0 0 auto;padding:6px 10px;border-top:1px solid #decba6;background:#fff8e9}
#app .compact-panel .compact-pagination button{min-height:36px;padding:6px 9px;font:inherit;font-size:14px;background:#f5e8cb;color:#58452c;border:1px solid #cfb786;box-shadow:none}
#app .compact-panel .compact-pagination button:disabled{opacity:.5}
#app .compact-panel .compact-pagination output{font-size:14px;white-space:nowrap}
#app .interface #gamePanel.compact-panel .compact-page-hidden,
#app .interface #buildPanel.compact-panel .compact-page-hidden{display:none!important}
#app .compact-panel.is-minimized{height:auto!important}
#app .compact-panel.is-minimized>.compact-pages,#app .compact-panel.is-minimized>.compact-pagination{display:none}
@media(pointer:coarse){#app .compact-panel .compact-pages button,#app .compact-panel .compact-pagination button{min-height:40px}}

/* Construction has persistent category navigation; only products are paged. */
#app .interface #buildPanel.construction-panel{position:absolute;inset:auto 0 var(--sheet-bottom,90px) auto;grid-area:auto;width:min(360px,calc(100% - var(--rail-width,56px) - 8px));height:auto;max-height:none;padding:0;border-radius:16px;background:#fff8e9;color:#584b37;box-shadow:none;overflow:visible}
#app #buildPanel.construction-panel .panel-head{padding:6px 10px;margin:0;min-height:44px}
#app #buildPanel.construction-panel .panel-head strong{font-size:16px}
#app #buildPanel.construction-panel .panel-head small{display:none}
#app #buildPanel.construction-panel .panel-head button{width:36px;min-width:36px;height:36px;min-height:36px;flex-basis:36px}
#app #buildPanel.construction-panel .edit-tools{display:none}
#app #buildPanel.construction-panel button{font:inherit;font-size:14px;min-height:36px;padding:5px 7px;white-space:normal}
#app #buildPanel.construction-panel #catalog{padding:5px 10px 8px;display:grid;gap:6px;overflow:visible;max-height:none}
#app #buildPanel.construction-panel .build-groups{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;margin:0;padding:0;background:none;border:0}
#app #buildPanel.construction-panel .build-groups button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:2px;font-size:23px;border-radius:8px}
#app #buildPanel.construction-panel .build-groups svg{display:none}
#app #buildPanel.construction-panel .catalog-content,#app #buildPanel.construction-panel .catalog-items{display:block;padding:0;margin:0;overflow:visible;max-height:none}
#app #buildPanel.construction-panel .catalog-items>button{width:100%;display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;padding:8px;text-align:left;border-radius:12px;min-height:88px}
#app #buildPanel.construction-panel .item-art{width:64px;height:56px;flex:0 0 64px}
#app #buildPanel.construction-panel .item-copy{display:grid;gap:3px;min-width:0}
#app #buildPanel.construction-panel .item-copy strong{font-size:15px;line-height:1.2}
#app #buildPanel.construction-panel .item-copy small{font-size:13px;line-height:1.25}
#app #buildPanel.construction-panel .catalog-price{font-size:15px}
#app #buildPanel.construction-panel .catalog-pagination{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #decca7;padding-top:6px;font-size:14px}
#app #buildPanel.construction-panel .catalog-pagination button{background:#f5e8cb;color:#58452c;box-shadow:none}
#app #buildPanel.construction-panel.is-minimized #catalog,#app #buildPanel.construction-panel.is-minimized .edit-tools{display:none}
@media(max-height:499px){#app #buildPanel.construction-panel .build-groups{grid-template-columns:repeat(3,minmax(0,1fr))}#app #buildPanel.construction-panel .edit-tools{padding-block:2px}#app #buildPanel.construction-panel .catalog-items>button{min-height:64px;padding:5px}#app #buildPanel.construction-panel .item-art{height:40px}}
@media(max-width:699px){#app #buildPanel.construction-panel .build-groups{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}#app #buildPanel.construction-panel .build-groups::-webkit-scrollbar{display:none}#app #buildPanel.construction-panel .build-groups button{flex:1 1 0;min-width:0;min-height:42px;padding-inline:0}}

/* Market follows the construction catalog: fixed icons, one complete item. */
#app #gamePanel[data-theme=market] .market-icon-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0;margin:0}
#app #gamePanel[data-theme=market] .market-icon-tabs button{padding:2px;min-width:0;min-height:40px;font-size:23px;border-radius:8px}
#app #gamePanel[data-theme=market] .market-icon-tabs [aria-pressed=true]{background:#e4edce;border-color:#82965a;color:#41572e}
#app #gamePanel[data-theme=market] :is(.market-facts,.summary-help,.market-note,.operation-list,.quantity-label,.market-product-head>div>small){display:none!important}
#app #gamePanel[data-theme=market] :is(.panel-body,.panel-actions){padding:5px 10px;display:grid;gap:6px;overflow:visible;max-height:none}
#app #gamePanel[data-theme=market] .market-card{padding:8px;margin:0;border:1px solid #decba6;border-radius:12px;display:grid;gap:6px}
#app #gamePanel[data-theme=market] .market-stock-line{font-size:13px;margin:0;padding:0}
#app #gamePanel[data-theme=market] .market-product-head{display:grid;grid-template-columns:48px minmax(0,1fr);gap:3px 8px;margin:0;padding:0}
#app #gamePanel[data-theme=market] .market-product-head>span{grid-row:1/3;width:48px;height:48px}
#app #gamePanel[data-theme=market] .market-product-head>b{grid-column:2;font-size:15px;display:flex;flex-wrap:wrap;gap:5px}
#app #gamePanel[data-theme=market] .market-product-head h3{font-size:15px;margin:0}
#app #gamePanel[data-theme=market] :is(.quantity-control,.quantity-row,.trade-units){margin:0;padding:0;gap:5px}
#app #gamePanel[data-theme=market] .quantity-row{display:flex;align-items:center;justify-content:space-between}
#app #gamePanel[data-theme=market] .quantity-stepper{display:flex;align-items:center;gap:3px}
#app #gamePanel[data-theme=market] .quantity-stepper input{width:48px;min-height:36px;padding:3px;text-align:center;font:inherit}
#app #gamePanel[data-theme=market] button{font-family:inherit;font-size:14px;min-height:36px;padding:5px 7px}
#app #gamePanel[data-theme=market] .market-icon-tabs button{font-size:23px}
#app #gamePanel[data-theme=market] .trade-equivalent{font-size:13px;margin:0}
#app #gamePanel[data-theme=market] .market-total-card{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px;padding:4px 0;margin:0;border:0;background:none}
#app #gamePanel[data-theme=market] .market-total-card small{flex-basis:100%;font-size:13px}
#app #gamePanel[data-theme=market] .market-total-card strong{font-size:16px}
#app #gamePanel[data-theme=market] .panel-actions>button{min-height:36px;margin:0}
#app #gamePanel[data-theme=market] .market-item-pages{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #decca7;padding-top:6px;font-size:14px;grid-column:1/-1}
#app #gamePanel[data-theme=market] .market-item-pages button{background:#f5e8cb;color:#58452c;box-shadow:none}
#app #gamePanel[data-theme=market] .market-item-pages button:disabled{opacity:.5}
#app #gamePanel[data-theme=market] .equipment-card{padding:8px;gap:5px 8px;margin:0;grid-template-columns:48px minmax(0,1fr)}
#app #gamePanel[data-theme=market] .equipment-card :is(p,small){font-size:13px;line-height:1.25;margin:3px 0}
#app #gamePanel[data-theme=market] .equipment-card h4{font-size:15px;margin:0}
#app #gamePanel[data-theme=market] .equipment-price{font-size:15px;margin:4px 0}
#app #gamePanel[data-theme=market] .market-destination{display:flex;align-items:center;gap:6px;font-size:14px}
#app #gamePanel[data-theme=market] .market-destination select{min-width:0;flex:1;font:inherit;padding:5px;background:#fff8e9;color:#58452c}
#app #gamePanel[data-theme=market] .coop-picker-trigger{padding:5px;min-height:36px}
#app #gamePanel[data-theme=market] .coop-picker-label{font-size:13px;margin:0}
#app #gamePanel[data-theme=market] .coop-picker-trigger small{display:none}

/* Explicit market scope overrides the older mobile action-column rules. */
#app .interface #gamePanel.compact-panel[data-theme=market]:not(.is-minimized){width:min(360px,calc(100% - var(--rail-width,56px) - 8px));height:390px;min-height:390px;max-height:none;display:flex;flex-direction:column}
#app #gamePanel[data-theme=market] .compact-pages{flex:1;display:flex;flex-direction:column;padding:4px 10px 8px;overflow:visible}
#app #gamePanel[data-theme=market] #gamePanelBody{display:grid;gap:4px;align-content:start;flex:1!important}
#app #gamePanel[data-theme=market] #gamePanelActions{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;flex:none!important}
#app #gamePanel[data-theme=market] #gamePanelActions .market-item-pages{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5px;flex-wrap:nowrap;width:100%;padding:5px 0 0;margin:0}
#app #gamePanel[data-theme=market] #gamePanelActions .market-item-pages>button{width:auto;min-width:0;min-height:34px;height:34px;margin:0;padding:3px 6px;font-size:14px;grid-column:auto}
#app #gamePanel[data-theme=market] #gamePanelActions .market-item-pages>span{text-align:center;white-space:nowrap;font-size:14px}
#app #gamePanel[data-theme=market] :is(#gamePanelTabs,#gamePanelBody,#gamePanelActions) button{background:#f5e8cb;color:#58452c;border:1px solid #cfb786;box-shadow:none;text-shadow:none;min-height:34px;font-size:14px;padding:4px 6px}
#app #gamePanel[data-theme=market] :is(#gamePanelTabs,#gamePanelBody,#gamePanelActions) button[aria-pressed=true]{background:#e4edce;color:#41572e;border-color:#82965a}
#app #gamePanel[data-theme=market] :is(#gamePanelTabs,#gamePanelBody,#gamePanelActions) button:disabled{background:#ebe4d3;color:#776c58;border-color:#c9bda2;opacity:1}
#app #gamePanel[data-theme=market] #gamePanelTabs .market-icon-tabs button{height:36px;min-height:36px;font-size:22px;padding:2px}
#app #gamePanel[data-theme=market] #gamePanelBody .market-stock-line{background:none;border:0;padding:0;margin:0;font-size:12px;line-height:16px}
#app #gamePanel[data-theme=market] #gamePanelBody .market-stock-line::before{display:none}
#app #gamePanel[data-theme=market] #gamePanelBody .market-card{padding:5px 7px;gap:4px;box-shadow:none;border:1px solid #decba6}
#app #gamePanel[data-theme=market] #gamePanelBody .market-card .field-actions{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0}
#app #gamePanel[data-theme=market] #gamePanelBody .market-destination{margin:0;padding:0;font-size:14px;line-height:1.2}
#app #gamePanel[data-theme=market] #gamePanelBody .market-destination select{height:30px;min-height:30px;padding:3px;font-size:13px}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-control{padding:0;border:0;background:none;box-shadow:none;margin:0}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0;margin:0}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-stepper{display:grid;grid-template-columns:34px minmax(32px,1fr) 34px;border:0;background:none;width:auto;gap:2px}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-stepper input{width:100%;height:34px;min-height:34px;font-size:15px}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-stepper button{width:34px;height:34px;min-height:34px;padding:0}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-presets{display:block;margin:0;padding:0}
#app #gamePanel[data-theme=market] #gamePanelActions .market-total-card{padding:0;margin:0;gap:2px;line-height:1.2}
#app #gamePanel[data-theme=market] #gamePanelActions .market-total-card :is(span,small){font-size:12px;letter-spacing:0}
#app #gamePanel[data-theme=market] #gamePanelActions>button{height:34px;min-height:34px}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card{margin:0;padding:6px;gap:4px;align-content:start}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card p{line-height:1.2;margin:3px 0;font-size:13px}

/* Tablets share the curved desktop dock in both orientations. */
@media (min-width:700px){
 #app.tablet-viewport .bottom-info .hud-camera{display:flex;gap:4px;margin-left:7px;padding-left:8px;border-left:1px solid #c98f52}
 #app.tablet-viewport .bottom-info .hud-camera button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border:1px solid #c79b5d;border-radius:8px;background:linear-gradient(#fff4d8,#ebc485);box-shadow:inset 0 1px #fff9,0 2px 0 #714923;color:#51351f;font-size:15px;line-height:1}
 #app.tablet-viewport .interface .bottom-info:not(.is-minimized){display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:stretch}
 #app.tablet-viewport .bottom-info .hud-control-band{grid-column:1;grid-row:1;border-bottom:0;border-right:1px solid #e2d1b1}
 /* The category strip is deliberately recessed: controls live on the upper
    deck, while farm summaries begin on a curved lower deck. */
 #app.tablet-viewport .bottom-info #stockSummary{grid-column:2;grid-row:1;align-self:end;margin:42px 0 0 0;padding:5px 6px 4px;border:1px solid #d9bc8d;border-right:0;border-bottom:0;border-radius:120px 0 0 0;background:linear-gradient(#fffdf3,#f8ebd2);box-shadow:inset 0 2px #fff, -3px -2px 6px #5b3a1c1c;overflow:hidden}
 #app.tablet-viewport .interface .bottom-info footer.tip-box{grid-column:1/-1;grid-row:2}
 #app.tablet-viewport .interface .bottom-info:not(.is-minimized){margin-top:6px;border-radius:14px 14px 0 0}
 #app.tablet-viewport .bottom-info .hud-control-band{padding:5px 8px 7px;gap:5px}
 #app.tablet-viewport .bottom-info .hud-quick-controls{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:5px}
 #app.tablet-viewport .bottom-info .hud-quick-controls::before{display:none}
 #app.tablet-viewport .bottom-info .speed button,#app.tablet-viewport .bottom-info #audioToggle{width:32px;height:32px;min-width:32px;min-height:32px;border-radius:9px;font-size:12px}
 #app.tablet-viewport .bottom-info #removeToggle{width:34px;height:32px;min-width:34px;min-height:32px;border-radius:9px}
 #app.tablet-viewport .bottom-info #hudMinimize{margin:0 0 0 auto;width:38px;height:36px;min-height:36px;border-radius:10px}
 #app.tablet-viewport .bottom-info .hud-calendar-map{margin:0 2px 1px;padding:3px 5px;border-radius:11px;gap:4px}
 #app.tablet-viewport .bottom-info .hud-clock,#app.tablet-viewport .bottom-info .hud-map-actions button{min-height:30px}
 #app.tablet-viewport .bottom-info #clockPeriod{font-size:18px}
 #app.tablet-viewport .bottom-info #stockSummary{grid-template-columns:repeat(4,minmax(0,1fr));padding:5px 7px 4px}
 #app.tablet-viewport .bottom-info #stockSummary .stock-summary-item{min-height:38px;padding:2px 6px;gap:5px}
 #app.tablet-viewport .bottom-info #stockSummary .resource-icon{width:20px;height:20px;min-width:20px}
 #app.tablet-viewport .bottom-info #stockSummary small{font-size:10px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box{min-height:24px;margin:2px 0 0;padding:1px 8px;border-radius:9px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box #tipAction{min-height:26px;gap:8px;padding:1px 3px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box .tip-label{font-size:12px;padding-right:8px;line-height:1.2}
 #app.tablet-viewport .interface .bottom-info footer.tip-box .tip-label::before{width:22px;height:22px;flex-basis:22px;font-size:18px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box #status{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Desktop follows the approved dock: one textured wooden frame, with a
   rounded shoulder descending from the controls to the category deck. */
#app.tablet-viewport .bottom-info .desktop-dock-frame{display:none}
@media (min-width:700px){

 #app.tablet-viewport .interface .bottom-info:not(.is-minimized){isolation:isolate;position:relative;display:grid;grid-template-columns:52% minmax(0,1fr);grid-template-rows:auto auto;gap:0;width:100%;max-width:1440px;justify-self:center;align-self:end;padding:8px 19px 8px;border:0;border-radius:0;background:none;box-shadow:none;margin-top:8px;overflow:visible}
 #app.tablet-viewport .interface .bottom-info:not(.is-minimized)::before,#app.tablet-viewport .interface .bottom-info:not(.is-minimized)::after{display:none}
 #app.tablet-viewport .bottom-info:not(.is-minimized)>.desktop-dock-frame{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;filter:drop-shadow(0 4px 3px #24190d66)}
 #app.tablet-viewport .bottom-info .hud-control-band,#app.tablet-viewport .bottom-info #stockSummary,#app.tablet-viewport .bottom-info footer.tip-box{position:relative;z-index:1}
 #app.tablet-viewport .bottom-info .hud-control-band{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:auto auto;column-gap:6px;row-gap:6px;border:0;padding:4px 14px 4px 6px;min-width:0;align-items:center}
 #app.tablet-viewport .bottom-info .hud-quick-controls,#app.tablet-viewport .bottom-info .speed,#app.tablet-viewport .bottom-info .hud-camera{display:contents}
 #app.tablet-viewport .bottom-info .hud-quick-controls::before,#app.tablet-viewport .bottom-info .hud-quick-controls::after{display:none}
 #app.tablet-viewport .bottom-info .speed button,#app.tablet-viewport .bottom-info #removeToggle,#app.tablet-viewport .bottom-info .hud-camera button,#app.tablet-viewport .bottom-info #hudMinimize{grid-row:1;justify-self:center;width:100%;max-width:30px;height:auto;aspect-ratio:1;min-width:0;min-height:0;margin:0;padding:0;display:grid;place-items:center;border:2px solid #b28550;border-radius:50%;background:linear-gradient(#fff9e6,#ead9b6);color:#493f26;box-shadow:inset 0 2px 1px #fffef7,inset 0 -2px 2px #c6a77488,0 0 0 2px #e9be7b,0 3px 3px #57371766;font-size:14px;font-weight:750;line-height:1}
 #app.tablet-viewport .bottom-info .hud-camera button{font-size:18px}
 #app.tablet-viewport .bottom-info #removeToggle svg{width:72%;height:65%}
 #app.tablet-viewport .bottom-info #hudMinimize{grid-column:10;align-self:center}
 #app.tablet-viewport .bottom-info .speed button.active,#app.tablet-viewport .bottom-info #hudMinimize,#app.tablet-viewport .bottom-info .hud-map-actions #center{background:linear-gradient(#739f45,#355824);border-color:#54732d;color:#fff9e1;box-shadow:inset 0 2px 2px #b6d785,inset 0 -2px 3px #223f24,0 0 0 2px #e5bb7a,0 3px 3px #57371766}
 #app.tablet-viewport .bottom-info .hud-calendar-map{grid-column:1/-1;grid-row:2;margin:0;padding:2px 7px;gap:6px;min-width:0;border:2px solid #c4985f;border-radius:34px;background:linear-gradient(#fffae9,#eee1c3);box-shadow:inset 0 2px 3px #fffdf2,0 0 0 2px #e8bd7e,0 3px 4px #633d2044}
 #app.tablet-viewport .bottom-info .hud-clock{min-width:0;min-height:28px;flex:1;gap:6px;padding:0 4px;justify-content:flex-start}
 #app.tablet-viewport .bottom-info .hud-clock strong{flex:1;padding:3px 8px;border:1px solid #fff4d5;border-radius:20px;background:linear-gradient(#ede3c7,#e5d5ae);box-shadow:inset 0 1px 3px #ac8c5540;font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:600;text-align:center;white-space:nowrap}
 #app.tablet-viewport .bottom-info #clockPeriod{font-size:22px;line-height:1}
 #app.tablet-viewport .bottom-info #audioToggle,#app.tablet-viewport .bottom-info .hud-map-actions button{flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:3px;border:2px solid #ccb084;border-radius:50%;box-shadow:inset 0 2px #fff9,0 2px 3px #68472555}
 #app.tablet-viewport .bottom-info #audioToggle{background:linear-gradient(#fffbed,#ecdfbf)}
 #app.tablet-viewport .bottom-info #audioToggle .nav-art{font-size:20px}
 #app.tablet-viewport .bottom-info .hud-map-actions .icon{width:18px;height:18px}
 #app.tablet-viewport .bottom-info #hudMinimize svg{width:18px;height:18px}
 #app.tablet-viewport .bottom-info .hud-map-actions{gap:6px}
 #app.tablet-viewport .bottom-info .hud-map-actions #center{width:28px;min-width:28px}
 #app.tablet-viewport .bottom-info .hud-map-actions #center .icon{color:#fff8db;stroke-width:2}
 #app.tablet-viewport .bottom-info .hud-map-actions #undo{background:linear-gradient(#e55348,#b72722);border-color:#a84431;color:#fff8ec;box-shadow:inset 0 2px 2px #ffb7a4,0 2px 3px #68472555}
 #app.tablet-viewport .bottom-info .hud-map-actions #undo:disabled{background:linear-gradient(#edd6c8,#ddc4b6);border-color:#c1a795;color:#947e6d;opacity:.75;box-shadow:inset 0 1px #fff9}
 #app.tablet-viewport .bottom-info #stockSummary{grid-column:2;grid-row:1;align-self:end;min-width:0;margin:26px 0 0 -5px;padding:3px 13px;border:2px solid #be955f;border-radius:38px 27px 20px 18px;background:linear-gradient(#fffbed,#efe3c6);box-shadow:inset 0 3px 4px #fffdf4,0 0 0 2px #e7b878,0 3px 3px #57371744;overflow:hidden}
 #app.tablet-viewport .bottom-info #stockSummary .stock-summary-item{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:0 5px;gap:2px;border-left:0;border-right:1px solid #cfb384}
 #app.tablet-viewport .bottom-info #stockSummary .stock-summary-item:last-child{border-right:0}
 #app.tablet-viewport .bottom-info #stockSummary .resource-icon{width:24px;min-width:24px;height:24px;filter:drop-shadow(0 2px 2px #77542c33)}
 #app.tablet-viewport .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.15;font-weight:600;color:#3f3b25}
 #app.tablet-viewport .bottom-info #stockSummary button[aria-expanded=true]{background:#dbe6bf;border-radius:15px}
 #app.tablet-viewport .interface .bottom-info:not(.is-minimized) footer.tip-box{grid-column:1/-1;grid-row:2;background:linear-gradient(#26381c,#344a26);border:2px solid #c29a5c;border-radius:24px;min-height:24px;margin:4px 2px 0;padding:0 11px;box-shadow:inset 0 2px 3px #17260e66,0 1px 1px #f7c17a}
 #app.tablet-viewport .interface .bottom-info footer.tip-box::before{display:none}
 #app.tablet-viewport .interface .bottom-info footer.tip-box #tipAction{padding:0 3px;gap:10px;min-height:20px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box .tip-label{font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:700}
 #app.tablet-viewport .interface .bottom-info footer.tip-box .tip-label::before{width:18px;height:18px;flex-basis:18px;font-size:15px}
 #app.tablet-viewport .interface .bottom-info footer.tip-box #status{font-size:14px;font-weight:400}
}


@media (min-width:700px){
 #app.tablet-viewport .bottom-info .hud-control-band{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding-right:16px}
 #app.tablet-viewport .bottom-info .hud-camera{display:none}
 #app.tablet-viewport .bottom-info .speed button,#app.tablet-viewport .bottom-info #removeToggle,#app.tablet-viewport .bottom-info #hudMinimize{width:44px;max-width:44px;height:44px;min-height:44px;font-size:16px}
 #app.tablet-viewport .bottom-info #hudMinimize{grid-column:6}
 #app.tablet-viewport .bottom-info #audioToggle,#app.tablet-viewport .bottom-info .hud-map-actions button,#app.tablet-viewport .bottom-info .hud-map-actions #center{width:40px;min-width:40px;height:40px;min-height:40px;flex-basis:40px}
 #app.tablet-viewport .bottom-info .hud-clock{min-height:40px}
 #app.tablet-viewport .bottom-info #stockSummary .stock-summary-item{min-height:60px}
 #app.tablet-viewport .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-size:16px}
 #app.tablet-viewport .bottom-info #stockSummary .resource-icon{width:28px;height:28px;min-width:28px}
}

/* Tablet footer remains expanded, in either orientation. */
#app.tablet-viewport .bottom-info #hudMinimize,#app.tablet-viewport .bottom-info #hudRestore{display:none!important}
@media(min-width:700px){
 #app.tablet-viewport .bottom-info .hud-control-band{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* The same compact body holds either thumbnails or one selected product. */
#app #buildPanel.construction-panel .catalog-browser{height:174px;min-height:174px;display:block}
#app #buildPanel.construction-panel .catalog-thumbnail-grid{height:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;box-sizing:border-box;overflow:hidden;padding:4px;border:1px solid #cfb786;border-radius:12px;background:#f5e8cb;color:#58452c;box-shadow:none}
#app #buildPanel.construction-panel .catalog-land-preview{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;margin:0 0 6px;padding:6px 10px;border:1px solid #8f7a49;border-radius:12px;background:linear-gradient(155deg,#fff2c6,#efd58f);color:#4c3a18;font-weight:700;font-size:14px;box-shadow:0 2px 0 #b89b5c}
#app #buildPanel.construction-panel .catalog-land-preview:active{transform:translateY(2px);box-shadow:none}
#app #buildPanel.construction-panel .catalog-land-preview+.catalog-thumbnail-grid{height:calc(100% - 48px)}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button:has(.catalog-thumb-caption){flex-direction:column;justify-content:space-between;gap:2px;padding:5px 4px 4px}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button:has(.catalog-thumb-caption) .item-art{flex:1 1 auto;height:auto;min-height:0}
/* Nomes longos ocupam duas linhas em vez de sumirem em reticências. */
#app #buildPanel.construction-panel .catalog-thumb-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;flex:0 0 auto;max-width:100%;overflow:hidden;font-size:11px;font-weight:700;line-height:1.15;text-align:center;color:#41562c;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
#app #buildPanel.construction-panel .catalog-thumbnail-grid .item-art{display:flex;align-items:center;justify-content:center;flex:0 1 auto;width:100%;height:68px;max-height:100%;min-width:0;min-height:0;line-height:1;overflow:hidden}
#app #buildPanel.construction-panel .item-art img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#app #buildPanel.construction-panel .catalog-product-detail{height:100%;display:grid;grid-template-columns:90px minmax(0,1fr);align-content:center;align-items:center;gap:8px;padding:6px;border:1px solid #decba6;border-radius:12px;box-sizing:border-box}
#app #buildPanel.construction-panel .catalog-product-detail .item-art{width:90px;height:80px}
#app #buildPanel.construction-panel .catalog-product-detail .road-mode-picker{grid-column:1/-1;display:grid;gap:4px}
#app #buildPanel.construction-panel .catalog-product-detail .road-mode-picker>small{font-size:11px;font-weight:700;color:#6b5a3e}
#app #buildPanel.construction-panel .catalog-product-detail .road-modes{display:flex;gap:4px;margin:0}
#app .road-mode-picker .road-modes button{display:flex;align-items:center;justify-content:center;gap:6px}
#app .road-mode-picker .road-modes button>span{font-size:18px;line-height:1}
#app #buildPanel.construction-panel .catalog-pagination button{min-height:40px}
#app #buildPanel.construction-panel .catalog-pagination [data-build-tool]{background:#e4edce;color:#41572e;border-color:#82965a}
@media(max-width:599px){#app #buildPanel.construction-panel .catalog-thumbnail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:700px) and (max-width:999px){
 #app.tablet-viewport .interface .bottom-info:not(.is-minimized){grid-template-columns:52% minmax(0,1fr);padding-inline:12px}
 #app.tablet-viewport .bottom-info .hud-control-band{padding:4px 9px 4px 2px;column-gap:5px}
 #app.tablet-viewport .bottom-info .hud-calendar-map{padding:2px 4px;gap:3px}
 #app.tablet-viewport .bottom-info .hud-clock{padding:0;gap:3px}
 #app.tablet-viewport .bottom-info .hud-clock strong{font-size:12px;padding:3px 2px;white-space:normal;line-height:1.2}
 #app.tablet-viewport .bottom-info .hud-map-actions{gap:3px}
 #app.tablet-viewport .bottom-info #clockPeriod{font-size:18px}
 #app.tablet-viewport .bottom-info #stockSummary{padding:3px 6px;margin-left:0}
 #app.tablet-viewport .bottom-info #stockSummary .stock-summary-item{padding:0 2px}
 #app.tablet-viewport .bottom-info #stockSummary .hud-resource-copy>small:first-child{font-size:14px}
}

/* A single soft green surface gives the model room and contrast. */
#app #buildPanel.construction-panel .catalog-thumbnail-grid button{background:radial-gradient(ellipse at 50% 38%,#f0f5d9 0%,#dce7ba 52%,#bdcf98 100%);border:1px solid #b59b5e;box-shadow:inset 0 1px 1px #fff9,0 2px 2px #6a653322;color:#465932}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button:is([data-build-tool=pedestrianPath],:has(.road-thumb-badge)){position:relative}
/* Selo do bicho no canto do azulejo: diz de quem é o cocho antes da compra. */
#app #buildPanel.construction-panel .catalog-thumbnail-grid button:has(.catalog-species-badge){position:relative}
#app #buildPanel.construction-panel .catalog-species-badge{position:absolute;left:4px;top:4px;display:flex;align-items:center;gap:1px;max-width:calc(100% - 8px);padding:1px 5px;border:1px solid #b59b5e;border-radius:999px;background:#fffaeedd;font-size:13px;line-height:1.3;letter-spacing:-1px;box-shadow:0 1px 2px #3d4a2c33}
#app #buildPanel.construction-panel .catalog-species-line{display:block;font-weight:700;color:#4c6331}
/* 811: no canto de baixo o selo cobria o nome ("Caminho de pedestres",
   "Trilho da fazenda"); em cima fica sobre a imagem, como o selo dos cochos. */
#app #buildPanel.construction-panel .road-thumb-badge{position:absolute;right:5px;top:4px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#52743eeb;border:1px solid #f7ebc9;color:#fff;font-size:17px;line-height:1;box-shadow:0 2px 3px #3d4a2c55}
#app #buildPanel.construction-panel :is(.catalog-thumbnail-grid,.catalog-product-detail) .item-art{background:none!important;border:0!important;border-radius:0;box-shadow:none!important}
#app #buildPanel.construction-panel :is(.catalog-thumbnail-grid,.catalog-product-detail) .item-art img{filter:drop-shadow(0 3px 2px #34432638)}
#app #buildPanel.construction-panel .catalog-product-detail{background:radial-gradient(ellipse at 25% 40%,#f0f5d9,#dce7ba 60%,#c7d7a7);border-color:#b59b5e;box-shadow:inset 0 1px #fff9}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button:is(:active,:focus-visible){background:radial-gradient(ellipse at 50% 38%,#eaf5ce,#b8d78a 65%,#98bc68);border-color:#63843e;outline:2px solid #63843e;outline-offset:-2px}
@media(hover:hover){#app #buildPanel.construction-panel .catalog-thumbnail-grid button:hover{background:radial-gradient(ellipse at 50% 38%,#f6f9e7,#d5e7ae 60%,#b0ca85);border-color:#8ba15e}}

/* Mercado: catálogo visual, com transação somente após selecionar um item. */
#app .interface #gamePanel.compact-panel[data-theme=market]:not(.is-minimized){height:auto;min-height:0;max-height:none}
#app #gamePanel[data-theme=market] #gamePanelTabs .market-icon-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#app #gamePanel[data-theme=market] #gamePanelTabs .market-icon-tabs button{height:44px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:24px}
#app #gamePanel[data-theme=market] #gamePanelTabs small{font:inherit;font-size:14px}
/* O azulejo do Mercado tem nome embaixo da arte, como o catálogo de Construir:
   sem o nome ninguém adivinha qual animal ou insumo está na miniatura. */
#app #gamePanel[data-theme=market] #gamePanelBody .market-thumbnail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,96px);gap:8px;height:200px}
#app #gamePanel[data-theme=market] #gamePanelBody .market-thumbnail-grid button{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:2px;box-sizing:border-box;overflow:hidden;width:100%;height:96px;padding:5px 4px 4px;min-width:0;background:radial-gradient(ellipse at 50% 38%,#f0f5d9 0%,#dce7ba 52%,#bdcf98 100%);border:1px solid #b59b5e;border-radius:14px;box-shadow:inset 0 1px 1px #fff9,0 2px 2px #6a653322}
/* Altura fixa: a imagem 3D preenche a moldura por inteiro (height:100% só
   resolve contra um pai de altura definida) e o sprite quadrado não estica. */
#app #gamePanel[data-theme=market] .market-thumbnail-art{display:flex;align-items:center;justify-content:center;flex:0 0 62px;width:100%;height:62px;overflow:hidden;background:none}
#app #gamePanel[data-theme=market] .market-thumbnail-art :is(img,svg){width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #34432638)}
#app #gamePanel[data-theme=market] .market-thumbnail-art .resource-icon{width:56px!important;height:56px!important;max-width:100%;filter:drop-shadow(0 3px 2px #34432638)}
#app #gamePanel[data-theme=market] .market-thumb-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;flex:0 0 auto;max-width:100%;overflow:hidden;font-size:11px;font-weight:700;line-height:1.15;text-align:center;color:#41562c;overflow-wrap:anywhere}
/* Miniatura 3D do animal; o emoji fica de reserva até a imagem ficar pronta. */
#app #gamePanel[data-theme=market] .market-thumbnail-art .market-thumbnail-model{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:38px;line-height:1}
#app #gamePanel[data-theme=market] #gamePanelBody .market-thumbnail-grid button:is(:active,:focus-visible){background:#c5d99b;outline:2px solid #748f43;outline-offset:-3px}
#app #gamePanel[data-theme=market] #gamePanelActions .market-back{min-height:34px;background:#f4e8cc;color:#59482f}
/* Esta linha é a única resposta do Mercado para "quanto eu tenho?": os três
   azulejos de fatos não cabem na folha compacta e ficam escondidos, então
   escondê-la também deixava o jogador vendendo às cegas — uma colheita inteira
   entregue e nenhum número na tela. Uma linha de 16px cabe. */
#app #gamePanel[data-theme=market] #gamePanelActions{padding-top:6px!important}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card{margin:0;gap:5px}
@media(max-width:599px){
 #app #gamePanel[data-theme=market] #gamePanelBody .market-thumbnail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Shared compact product details, independent of legacy device layouts. */
#app .interface #buildPanel.construction-panel:not(.is-minimized){height:auto!important;min-height:0!important;max-height:none}
#app #buildPanel.construction-panel #catalog{height:auto!important;min-height:0!important;flex:none;grid-template-rows:auto auto auto;align-content:start}
#app #buildPanel.construction-panel .catalog-browser{height:174px!important;min-height:174px!important;flex:none}
#app #gamePanel[data-theme=market] #gamePanelBody .market-product-head{grid-template-columns:44px minmax(0,1fr);gap:2px 8px;border:0;padding:0 0 6px;margin:0}
#app #gamePanel[data-theme=market] #gamePanelBody .market-product-head :is(h3,b){font-size:15px;line-height:1.25;font-weight:700;letter-spacing:0}
#app #gamePanel[data-theme=market] #gamePanelBody .market-product-head :is(.market-resource-art,.resource-icon){width:44px;height:44px;min-width:44px}
#app #gamePanel[data-theme=market] #gamePanelBody .market-card{background:transparent;border:0;border-radius:0;padding:0;display:grid;align-content:start;gap:8px}
#app #gamePanel[data-theme=market][data-market-view=detail] #gamePanelBody{min-height:192px!important;box-sizing:border-box;align-content:start}
#app #gamePanel[data-theme=market] #gamePanelBody .trade-units{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;padding:0}
#app #gamePanel[data-theme=market] #gamePanelBody .trade-units button{height:36px;min-height:36px;padding:3px 5px;font-size:13px;line-height:1.15;font-weight:600}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-row{display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;gap:6px!important;align-items:center}
#app #gamePanel #gamePanelBody .quantity-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;min-width:92px}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#app #gamePanel #gamePanelBody .quantity-presets button{min-width:0;padding:4px;font-size:14px;white-space:nowrap}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-stepper{display:grid!important;grid-template-columns:36px minmax(28px,1fr) 36px!important;gap:6px!important;min-width:0}
#app #gamePanel[data-theme=market] #gamePanelBody .quantity-stepper button,#app #gamePanel[data-theme=market] #gamePanelBody .quantity-presets button{height:36px;min-height:36px;width:100%;margin:0;padding:3px;font-size:14px;box-sizing:border-box}
#app #gamePanel[data-theme=market] #gamePanelBody .trade-equivalent{margin:0;padding:0;background:none;border:0;font-size:13px;line-height:18px;min-height:18px;color:#71654e}
/* 1017: "botão de comprar desconfigurado" — o rótulo quebrava em duas linhas
   dentro de uma altura fixa de 38px e o botão ficava mais alto que o Voltar ao
   lado. Os dois esticam juntos na linha e o texto pode quebrar sem estourar. */
#app #gamePanel[data-theme=market][data-market-view=detail] #gamePanelActions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;align-items:stretch;border-top:1px solid #ddcba7}
#app #gamePanel[data-theme=market] #gamePanelActions .market-total-card{grid-column:1/-1;min-height:36px;background:none;border:0;padding:0;box-shadow:none}
#app #gamePanel[data-theme=market] #gamePanelActions .market-total-card strong{font-size:16px;line-height:1.2}
#app #gamePanel[data-theme=market] #gamePanelActions>button{height:auto;min-height:38px;padding:4px 6px;font-size:14px;line-height:1.15;white-space:normal}
#app #gamePanel[data-theme=market] #gamePanelActions>button:not(.market-back){grid-column:2;background:#e4edce;color:#41572e;border-color:#82965a}
#app #gamePanel[data-theme=market] #gamePanelActions>.market-back{grid-column:1;grid-row:2}
/* Máquinas has no total-card row ahead of Comprar: sit it beside Voltar,
   in the same row, instead of leaving row 1 empty. */
#app #gamePanel[data-theme=market] #gamePanelActions>[data-action="machine-buy"],
#app #gamePanel[data-theme=market] #gamePanelActions>[data-action="utility-buy"]{grid-row:2}
#app #gamePanel[data-theme=market] #gamePanelActions>.field-actions,#app #gamePanel[data-theme=market] #gamePanelActions>.confirm-warning{grid-column:1/-1}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card{background:none;border:0;border-radius:0;padding:0;box-shadow:none}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card h4{font-size:15px;line-height:1.25;margin:0 0 4px}
#app #gamePanel[data-theme=market] #gamePanelBody .equipment-card button{min-height:36px;font-size:14px;margin:3px 0}
#app #gamePanel[data-theme=market] #gamePanelTabs .market-icon-tabs button{height:38px;min-height:38px;font-size:22px;gap:4px}
#app #gamePanel[data-theme=market] #gamePanelTabs .market-icon-tabs small{font-size:13px;font-weight:600}

/* Audio shares the compact sidebar shell. */
#app .interface #audioPanel{position:absolute;inset:auto 0 var(--sheet-bottom,90px) auto;grid-area:auto;width:min(360px,calc(100% - var(--rail-width,56px) - 8px));height:auto!important;min-height:0!important;max-height:none;padding:0;border-radius:16px;overflow:visible;background:#fff8e9}
#app #audioPanel .panel-head{min-height:44px;padding:6px 10px;margin:0}
#app #audioPanel .panel-head strong{font-size:16px}
#app #audioPanel .panel-head button{width:36px;height:36px;min-height:36px;min-width:36px}
#app #audioPanel .audio-scroll{padding:8px 10px;height:auto;max-height:none;overflow:visible}
#app #audioPanel .audio-section-tabs{display:flex;gap:6px;padding:6px 10px 0}
#app #audioPanel button{font:inherit;font-size:14px;min-height:36px;padding:4px 8px;background:#f4e8cc;color:#59482f;border:1px solid #c9b07a;border-radius:10px}
#app #audioPanel .audio-section-tabs button{flex:1}
#app #audioPanel button[aria-pressed=true]{background:#dce7ba;color:#41572e}
#app #audioPanel[data-audio-view=levels] .audio-library,#app #audioPanel[data-audio-view=music] .audio-settings{display:none!important}
#app #audioPanel .audio-settings{display:grid;gap:8px;padding:0}
#app #audioPanel .audio-settings>label{display:grid;grid-template-columns:1fr auto;gap:3px;padding:0;margin:0;min-height:40px;border:0;background:none;box-shadow:none}
#app #audioPanel .audio-settings :is(strong,output){font-size:14px;line-height:18px}
#app #audioPanel .audio-settings small,#app #audioPanel .panel-head small{display:none}
#app #audioPanel .audio-settings input[type=range]{grid-column:1/-1;width:100%;height:20px;margin:0;accent-color:#78984b}
#app #audioPanel .audio-master{display:flex;align-items:center;justify-content:space-between;padding:0;min-height:36px;border:0;background:none}
#app #audioPanel #audioStatus{font-size:12px;margin:0;line-height:16px}
#app #audioPanel .audio-library{display:grid!important;gap:6px;padding:0}
#app #audioPanel[data-audio-view=levels] .audio-library{display:none!important}
#app #audioPanel .vale-player{display:grid!important;grid-template-columns:1fr auto;align-items:center;text-align:left;padding:0;border:0;background:none;gap:4px}
#app #audioPanel #currentTrack{font-size:14px;min-height:0}
#app #audioPanel #playerState{display:none}
#app #audioPanel .player-controls{display:flex;gap:4px;margin:0}
#app #audioPanel .player-controls button,#app #audioPanel .player-controls #playTrack{width:36px;height:36px;min-height:36px;font-size:18px}
#app #audioPanel .music-modes{display:grid!important;gap:4px}
#app #audioPanel .music-modes button{font-size:12px}
#app #audioPanel .audio-library details{border:0;padding:0;background:none}
#app #audioPanel .audio-library details>summary{font-size:13px;padding:4px 0;min-height:28px}
#app #audioPanel .track-choice{display:flex;gap:4px;min-height:30px;margin:0;padding:0}
#app #audioPanel .track-choice label{font-size:13px}
#app #audioPanel .track-choice button{min-height:28px;height:28px;width:32px;flex-basis:32px}
/* Compact audio: stable content area and no explanatory footer. */
#app #audioPanel .audio-scroll{height:244px;box-sizing:border-box;overflow:hidden;padding:10px}
#app #audioPanel .audio-settings{height:100%;grid-template-columns:1fr 1fr;gap:10px;align-content:start}
#app #audioPanel .audio-master{grid-column:1/-1;min-height:36px}
#app #audioPanel .audio-settings>label{min-height:65px;padding:8px;border:1px solid #d3c39e;border-radius:10px;background:#faf5e6;align-content:center}
#app #audioPanel #audioStatus{display:none}
#app #audioPanel .panel-head>a{color:#fff4d8;text-decoration:none;font-size:18px;order:1;margin-left:6px}
#app #audioPanel .panel-head>#closeAudio{order:2}
#app #audioPanel .panel-head>div{flex:1}
#app #audioPanel .audio-library{gap:12px}
#app #audioPanel .vale-player{min-height:48px;grid-template-columns:minmax(0,1fr) auto}
#app #audioPanel #currentTrack{line-height:18px;overflow-wrap:anywhere}
#app #audioPanel .music-modes{grid-template-columns:repeat(3,1fr)}
#app #audioPanel .music-modes button{font-size:14px;padding:4px}
#app #audioPanel .audio-track-picker{display:grid;gap:7px;font-size:14px;padding:8px;border:1px solid #d3c39e;border-radius:10px;background:#faf5e6}
#app #audioPanel .audio-track-picker select{min-width:0;width:100%;height:36px;border-radius:8px;background:#fffaf0;border:1px solid #c9b07a;color:#59482f;font:inherit;padding:4px 8px}
#app #audioPanel .audio-track-actions{display:flex;align-items:center;justify-content:space-between;gap:5px}
#app #audioPanel .audio-track-actions label{display:flex;align-items:center;gap:4px;font-size:14px}
#app #audioPanel .audio-track-actions input{width:18px;height:18px;accent-color:#78984b}
/* Management categories match the compact construction/market icon rail. */
#app .interface #gamePanel.compact-panel[data-theme=production]:not(.is-minimized){height:auto;min-height:0;max-height:none}
#app #gamePanel[data-theme=production] #gamePanelTabs{padding:5px 10px!important}
#app #gamePanel[data-theme=production] .production-icon-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0}
#app #gamePanel[data-theme=production] .production-icon-tabs button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:40px;min-height:40px;padding:2px;border:1px solid #c9b07a;border-radius:8px;background:#f4e8cc;color:#58452c;box-shadow:none}
#app #gamePanel[data-theme=production] .production-icon-tabs button.active{background:#e4edce;border-color:#82965a;color:#41572e;box-shadow:inset 0 1px #fff9}
#app #gamePanel[data-theme=production] .production-tab-icon{font-size:23px;line-height:1}
#app #gamePanel[data-theme=production] .production-tab-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app #gamePanel[data-theme=production] .production-tab-count{position:absolute;top:2px;right:5px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#a85a2f;color:#fff;font:800 11px/1 system-ui}
#app #gamePanel[data-theme=production] .production-icon-tabs [data-mode=reports]{display:none!important}
#app #gamePanel[data-theme=production] .compact-pages{height:174px!important;min-height:174px!important;max-height:174px!important;padding:8px 10px;box-sizing:border-box}
/* A área da página já foi fixa em 228px, e o jogo tem uma cultura só: o painel
   abria um vão de creme do tamanho de duas fileiras que não existem, maior que
   o próprio conteúdo (foto do jogador, 19:33). Agora ela encolhe até o conteúdo
   e o número vira teto — três fileiras de 80px com os vãos, que é o bastante
   para as cinco espécies caberem sem cortar a última. */
#app #gamePanel[data-theme=production]>.compact-pages:is(:has(.production-catalog-grid),:has(.farm-tasks)){height:auto!important;min-height:0!important;max-height:264px!important}
/* Passando do teto a galeria rola: com `overflow:hidden` o quinto azulejo ficava
   cortado e não havia como alcançá-lo. */
#app #gamePanel[data-theme=production]>.compact-pages:has(.production-catalog-grid){padding:8px 0 0;overflow-y:auto!important;overscroll-behavior:contain}
#app #gamePanel[data-theme=production]>.compact-pages:has(.farm-tasks){height:256px!important;min-height:256px!important;max-height:256px!important;padding:8px 10px!important;overflow:hidden!important;box-sizing:border-box}
#app #gamePanel[data-theme=production]>.compact-pages:has(.farm-tasks) #gamePanelBody{display:block;height:100%!important;overflow:hidden!important}
#app #gamePanel[data-theme=production]>.compact-pages:has(.farm-tasks) #gamePanelActions:empty{display:none!important}
#app #gamePanel[data-theme=production]:has(.farm-tasks)>.compact-pagination{display:none!important}
#app #gamePanel[data-theme=production] .farm-tasks.task-dashboard,#app #gamePanel[data-theme=production] .farm-tasks :is(.task-request,.task-needs-view,.task-queue-view,.task-history-view,.task-carousel-card){overflow:hidden!important}
#app #gamePanel[data-theme=production] #gamePanelBody:has(.production-catalog-grid){padding:0 10px!important;box-sizing:border-box}
/* As fileiras nascem conforme os azulejos existirem, nunca reservadas. */
#app #gamePanel[data-theme=production] .production-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:80px;gap:8px;height:auto}
#app #gamePanel[data-theme=production] .production-catalog-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;height:80px;padding:5px;border:1px solid #b59b5e;border-radius:14px;background:radial-gradient(ellipse at 50% 38%,#f0f5d9 0%,#dce7ba 52%,#bdcf98 100%);color:#465932;box-shadow:inset 0 1px 1px #fff9,0 2px 2px #6a653322;text-align:center}
#app #gamePanel[data-theme=production] .production-catalog-grid button:is(:active,:focus-visible){background:#c5d99b;outline:2px solid #748f43;outline-offset:-3px}
#app #gamePanel[data-theme=production] .production-catalog-icon{font-size:48px;line-height:1;filter:drop-shadow(0 3px 2px #34432638)}
#app #gamePanel[data-theme=production] .production-catalog-grid :is(strong,small){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app #gamePanel[data-theme=production] .production-empty{display:grid;place-items:center;align-content:center;gap:5px;min-height:160px;padding:10px;text-align:center;border:1px solid #b59b5e;border-radius:14px;background:radial-gradient(ellipse at 50% 38%,#f4f7e7,#dfe9c2 64%,#cad7aa)}
#app #gamePanel[data-theme=production] .production-empty>span{font-size:48px;line-height:1}
#app #gamePanel[data-theme=production] .production-empty :is(h3,p){margin:0!important}
#app #gamePanel[data-theme=production] #gamePanelActions:has(.production-catalog-pagination){padding:6px 10px 8px!important;border-top:1px solid #decca7;background:#fff8e9}
#app #gamePanel[data-theme=production] .production-catalog-pagination{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px}
#app #gamePanel[data-theme=production] .production-catalog-pagination span{text-align:center;font-size:14px;color:#75664e}
#app #gamePanel[data-theme=production] .production-catalog-pagination button{display:grid;place-items:center;width:44px;height:40px;min-width:44px;min-height:40px;padding:0;border:1px solid #bcae91;border-radius:10px;background:#f3ead7;color:#776b56;font-size:26px}
#app #gamePanel[data-theme=production] .production-catalog-pagination button:last-child{justify-self:end}
#app #gamePanel[data-theme=production] .production-back{width:100%;min-height:36px;margin:0 0 7px;padding:5px 8px;border:1px solid #c9b07a;border-radius:9px;background:#f4e8cc;color:#59482f;font-size:14px;text-align:left}
#app #gamePanel[data-theme=production] .field-card{margin:0;background:radial-gradient(ellipse at 25% 35%,#f4f7e7,#dfe9c2 64%,#cad7aa);border-color:#b59b5e;box-shadow:inset 0 1px #fff9}
#app #gamePanel[data-theme=production] .production-item-nav{margin:0 0 7px;padding:0 0 7px;border-bottom:1px solid #cbb98e}
#app #gamePanel[data-theme=production] .compact-pagination{border-top:1px solid #decca7;background:#fff8e9}

/* Production 2.0: an intentional touch dashboard replaces the accidental 10-page split. */
#app #gamePanel[data-theme=production] .production-icon-tabs button{height:46px;min-height:46px;flex-direction:column;gap:1px;padding:3px 2px;box-sizing:border-box}
#app #gamePanel[data-theme=production] .production-icon-tabs button.active{border-width:2px}
#app #gamePanel[data-theme=production] .production-tab-icon{display:grid;place-items:center;height:26px;font-size:24px}
#app #gamePanel[data-theme=production] .production-tab-icon .resource-icon{width:27px;height:27px}
#app #gamePanel[data-theme=production] .production-tab-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:nowrap;font:800 11px/1.05 system-ui;color:inherit}
#app #gamePanel[data-theme=production] .production-catalog-grid button{gap:1px}
#app #gamePanel[data-theme=production] .production-catalog-icon{display:grid;place-items:center;height:43px;font-size:40px}
#app #gamePanel[data-theme=production] .production-catalog-icon .resource-icon{width:43px;height:43px}
#app #gamePanel[data-theme=production] .production-catalog-grid :is(strong,small){position:static;width:auto;height:auto;overflow:hidden;clip-path:none;white-space:nowrap;max-width:100%;text-overflow:ellipsis}
#app #gamePanel[data-theme=production] .production-catalog-grid strong{font-size:13px;line-height:1.1}
#app #gamePanel[data-theme=production] .production-catalog-grid small{font-size:11px;line-height:1.1;color:#657548}
/* 811: no cartão de 80 px o texto era espremido e cortava o pé das letras
   ("Morango", "Galinhas"). O texto fica com a altura dele; quem cede é o ícone. */
#app #gamePanel[data-theme=production] .production-catalog-grid :is(strong,small){flex-shrink:0}
#app #gamePanel[data-theme=production] .production-catalog-grid .production-catalog-icon{flex-shrink:1;min-height:0}
/* A tela de detalhe de um campo ou abrigo não é conteúdo curto: o cartão das
   galinhas passa de 1000px (situação, métricas, ações, venda e a lista dos
   bichos). Com a página presa em 228px sobrava uma janela de 160px — "o scroll
   desse card está ruim", texto cortado no meio e nenhum sinal de que rolava,
   enquanto metade da tela do telefone ficava sem uso. A altura agora vem da
   tela, com piso (telefone pequeno) e teto (o painel não vira a tela inteira);
   é a mesma conta do Banco. */
#app #gamePanel[data-theme=production]>.compact-pages:has(.production-field-shell){--field-page-height:clamp(228px,calc(var(--usable-height,100dvh) - var(--sheet-bottom,90px) - 300px),min(480px,58vh));height:var(--field-page-height)!important;min-height:var(--field-page-height)!important;max-height:var(--field-page-height)!important;padding:8px 10px!important;overflow:hidden!important;box-sizing:border-box}
#app #gamePanel[data-theme=production]>.compact-pages:has(.production-field-shell) #gamePanelBody{display:block;height:100%!important;overflow:hidden!important}
#app #gamePanel[data-theme=production]>.compact-pages:has(.production-field-shell) #gamePanelActions:empty{display:none!important}
#app #gamePanel:is([data-theme=production],[data-theme=management]):has(.production-field-shell)>.compact-pagination{display:none!important}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-shell{display:grid;grid-template-rows:46px minmax(0,1fr) auto;gap:6px;width:100%;height:100%;min-height:0;max-height:none!important;padding:0;margin:0;overflow:hidden!important;color:#4e3e29}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-toolbar{display:grid;grid-template-columns:44px 44px minmax(0,1fr) 44px;align-items:center;gap:4px;height:46px;min-height:46px;padding:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-field-toolbar,.production-field-detail-head)>button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #b79d69;border-radius:10px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;font-size:24px;line-height:1}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-toolbar>button:first-child{font-size:20px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-field-toolbar,.production-field-detail-head)>button:disabled{opacity:.42;box-shadow:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-field-toolbar,.production-field-detail-head)>button:not(:disabled):active{transform:translateY(2px);box-shadow:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-current{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;height:42px;padding:3px 6px;border:1px solid #c9b07a;border-radius:11px;background:#f8efd8;box-sizing:border-box}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-crop{font-size:27px;line-height:1;filter:drop-shadow(0 2px 1px #59451e2e)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-current>span:last-child{display:grid;min-width:0;text-align:left}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-current strong{font-size:13px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-current small{font-size:11px;line-height:1.15;color:#79684c;white-space:nowrap}
/* Os 160px travados deixavam metade do cartão vazia numa folha de 62% da
   tela — o "espaçamento muito grande embaixo" do relato. O painel passa a
   ocupar a faixa que sobra, com um piso para não achatar no modo baixinho. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,124px));align-content:space-evenly;gap:6px;min-height:150px;height:100%}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;min-width:0;height:100%;min-height:0;padding:4px 3px;border:1px solid #c8af79;border-radius:12px;background:linear-gradient(155deg,#fff7e5,#edddba);color:#58452d;box-shadow:inset 0 1px #fff,0 2px 0 #c0a46d;text-align:center;overflow:hidden;box-sizing:border-box}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile.needs-attention{border-color:#d49a41;background:linear-gradient(155deg,#fff5d2,#f1d793)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile.is-good{border-color:#8ba25f;background:linear-gradient(155deg,#f4f9df,#dce9b8)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile.is-machine{border-color:#77949b;background:linear-gradient(155deg,#eef6ee,#d4e5d8)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile:is(:active,:focus-visible){transform:translateY(2px);box-shadow:inset 0 0 0 2px #6e8f42;outline:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile-icon{display:grid;place-items:center;height:31px;font-size:28px;line-height:1;filter:drop-shadow(0 2px 1px #49351626)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile-icon .resource-icon{width:31px;height:31px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile strong{display:block;max-width:100%;font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-width:100%;font-size:11px;line-height:1.15;color:#78664b;white-space:normal;overflow-wrap:anywhere;overflow:hidden}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-head{display:grid;grid-template-columns:44px 36px minmax(0,1fr);align-items:center;gap:7px;height:46px;min-height:46px;padding:0 3px;border-bottom:1px solid #d5c39c}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-head>span{font-size:28px;line-height:1;text-align:center}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-head>div{display:grid;min-width:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-head strong{font-size:15px;line-height:1.15}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-head small{font-size:12px;color:#7a684b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A janela do cartão preenche a folha em vez de medir 160px fixos, e a barra de
   rolagem deixou de ser escondida: sem ela não havia como saber que havia mais
   coisa abaixo. Fina e discreta, some quando o conteúdo cabe. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body{height:100%;min-height:0;max-height:none!important;padding:0 2px 2px;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdab7e transparent;box-sizing:border-box}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body::-webkit-scrollbar{width:5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body::-webkit-scrollbar-thumb{border-radius:999px;background:#bdab7e99}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body::-webkit-scrollbar-track{background:transparent}
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-detail-card,.production-field-operation){display:grid;align-content:start;gap:6px;min-height:100%;padding:7px;border:1px solid #bdab7e;border-radius:12px;background:radial-gradient(ellipse at 30% 20%,#f7fae9,#e0eabf);box-sizing:border-box}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-metric-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-metric-head strong{font-size:14px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-metric-head b{font-size:16px;color:#5c7837}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-card progress{width:100%;height:10px;accent-color:#76964a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-grid>span{display:grid;gap:1px;min-width:0;padding:5px 6px;border:1px solid #d4c49d;border-radius:9px;background:#fff9ec;font-size:11px;line-height:1.15;color:#76644a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-grid b{font-size:12px;color:#4e3e29;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-card p{margin:0;font-size:12px;line-height:1.25;color:#6a583e}
/* Destino da coleta: botões no lugar do <select> nativo, que no iPad abria a
   lista cinza do sistema por cima do jogo. Mesmo vocabulário do galpão de
   destino das máquinas (.destination-options), na escala do painel compacto. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination{display:grid;gap:3px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination>small{font-size:11px;line-height:1.15;color:#76644a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination .destination-options{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:4px;padding:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination .destination-options button{gap:1px;min-height:42px;padding:5px 7px;border-radius:9px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination .destination-options button strong{font-size:12px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .harvest-destination .destination-options button small{font-size:11px;line-height:1.15}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-card p.harvest-destination.is-single{font-size:11px;color:#76644a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:7px;padding:6px;border:1px solid #cab27c;border-radius:10px;background:#fff8e8}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status>span{font-size:28px;line-height:1;text-align:center}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status>div{display:grid;min-width:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status strong{font-size:13px;line-height:1.15}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status small{font-size:11px;line-height:1.2;color:#75634a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status.needs-attention{border-color:#d49a41;background:#fff3cc}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status.is-good{border-color:#8ba25f;background:#edf5d8}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-status.is-working{border-color:#7d97a8;background:#e7f0ed}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-detail-actions button{min-width:0;min-height:42px;padding:5px;font-size:12px}
/* Venda do rebanho: separada das ações de cuidado, dentro do mesmo cartão. */
#app #gamePanel[data-theme=production] .production-detail-sale{display:grid;gap:4px;margin-top:6px;padding-top:6px;border-top:1px solid #0000001a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-yield-card>div:first-child{display:grid;grid-template-columns:1fr auto;align-items:end;gap:1px 8px;padding:2px 4px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-yield-card>div:first-child small{grid-column:1/-1;font-size:11px;color:#78664b}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-yield-card>div:first-child strong{font-size:21px;line-height:1;color:#496331}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-yield-card>div:first-child span{font-size:11px;color:#715c3f}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-operation-next{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:6px;padding:3px 7px;border:1px solid #cbb27a;border-radius:10px;background:#fff5dc}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-operation-next>span{font-size:26px;line-height:1;text-align:center}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-operation-next>div{display:grid}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-operation-next small{font-size:11px;color:#78664b}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-operation-next strong{font-size:14px;line-height:1.15}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-operation{gap:4px;padding:5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices{display:flex;gap:5px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices::-webkit-scrollbar{display:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices button{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:4px;flex:1 0 112px;min-width:112px;min-height:44px;padding:3px 5px;border:1px solid #c9ae75;border-radius:9px;background:#fff4da;color:#5b452b;text-align:left;box-shadow:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices button[aria-pressed=true]{border-color:#6f8e43;background:#deebbd;box-shadow:inset 0 0 0 2px #78974b}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices button:disabled{opacity:.48}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices button>span:first-child{font-size:23px;line-height:1;text-align:center}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices button>span:last-child{display:grid;min-width:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices strong{font-size:12px;line-height:1.1}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-executor-choices small{font-size:10px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-machine-need{min-height:44px;background:#fff0c8;border-color:#c59443}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-operation .field-action-help{display:none;margin:0;font-size:11px;line-height:1.2;color:#9a4929}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-operation .field-action-help.is-warning{display:block}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-primary-action{width:100%;min-height:44px;border-color:#607e35;background:linear-gradient(#86ad4d,#628b32);color:#fff;box-shadow:0 3px 0 #40631f;font-weight:850}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-primary-action:disabled{background:#ded7c8;color:#8c8374;border-color:#bfb6a4;box-shadow:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-area-card{text-align:center;place-items:center;align-content:center}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-area-number{display:flex;align-items:center;justify-content:center;gap:8px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-area-number span{font-size:30px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-area-number strong{font-size:23px;color:#4e6732}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-area-card button{width:100%;min-height:44px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-shell.production-empty{display:grid;grid-template-rows:auto auto auto auto;place-items:center;align-content:center;gap:7px;height:100%;min-height:0;padding:10px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-empty-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-empty-actions button{min-height:44px}
/* Action buttons inside production cards. Without an explicit light skin they
   fall back to the dark global button background over a light card. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-empty-actions,.production-area-card,.production-detail-actions) button{min-width:0;border:1px solid #b79d69;border-radius:10px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;text-shadow:none}
#app #gamePanel:is([data-theme=production],[data-theme=management]) :is(.production-empty-actions,.production-area-card,.production-detail-actions) button:not(:disabled):active{transform:translateY(2px);box-shadow:none}

/* Management categories match the compact construction/market icon rail. */
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:0;padding:0}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:40px;min-height:40px;padding:2px;font-size:23px;line-height:1;border:1px solid #c9b07a;border-radius:8px;background:#f4e8cc;color:#58452c;box-shadow:none}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button[aria-pressed=true]{background:#e4edce;border-color:#82965a;color:#41572e}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button:focus-visible{outline:2px solid #63843e;outline-offset:1px}
/* Audio body must contribute its height instead of shrinking to a zero flex basis. */
#app .interface #audioPanel:not(.is-panel-minimized):not([hidden]){display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-height:none!important;align-self:start!important}
#app .interface #audioPanel:not(.is-panel-minimized):not([hidden])>.audio-scroll{flex:0 0 auto!important;height:244px;min-height:244px;max-height:none;box-sizing:border-box;overflow:hidden;padding:10px}
#app .interface #audioPanel>.audio-section-tabs{flex:0 0 auto}
/* Anchor audio to the full interface, not the middle grid row. */
#app .interface #audioPanel{grid-area:auto!important;top:auto!important;right:0;bottom:var(--audio-bottom,var(--sheet-bottom,90px))!important;left:auto;transform:none;margin:0}


/* Music selection fits its content; arrows replace the native dropdown. */
#app .interface #audioPanel[data-audio-view=music]:not(.is-panel-minimized):not([hidden])>.audio-scroll{height:auto;min-height:0;overflow:visible}
#app #audioPanel .audio-library{gap:8px}
#app #audioPanel .audio-song-nav{display:flex;align-items:center;gap:6px;min-width:0}
#app #audioPanel .audio-song-nav>div{flex:1;min-width:0;text-align:center;display:grid;gap:3px}
#app #audioPanel .audio-song-nav strong{font-size:14px;line-height:18px;overflow-wrap:anywhere}
#app #audioPanel .audio-song-nav small{font-size:12px}
#app #audioPanel .audio-song-nav button{flex:0 0 34px;width:34px;min-width:34px;height:38px;min-height:38px;padding:0;font-size:24px}
#app #audioPanel .audio-track-actions{flex-wrap:wrap}
#app #audioPanel .audio-track-actions button{min-height:34px;padding:4px 6px;font-size:14px}
#app #audioPanel .music-modes button{min-width:0;line-height:17px}

#app #audioPanel .audio-credits{display:none}
#app #audioPanel[data-audio-view=credits] :is(.audio-library,.audio-settings){display:none!important}
#app #audioPanel[data-audio-view=credits] .audio-credits{display:grid;gap:8px;text-align:center}
#app #audioPanel .audio-credits :is(h3,p){margin:0;font-size:14px;line-height:1.4}
#app #audioPanel .audio-credits a{color:#577337}
#app #audioPanel .audio-credits nav{display:flex;align-items:center;justify-content:space-between;gap:8px}
#app #audioPanel .audio-credit-footer{display:flex;justify-content:flex-end;flex:none;padding:0 8px 5px}
#app #audioPanel .audio-credit-footer button{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:0;background:none;box-shadow:none;color:#756347;font-size:20px}
#app #audioPanel.is-panel-minimized .audio-credit-footer{display:none}

#app #audioPanel .music-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
#app #audioPanel .vale-player{grid-template-columns:minmax(0,1fr);text-align:center;padding:8px 0;gap:8px}
#app #audioPanel .vale-player .player-controls{grid-column:1;grid-row:auto;justify-content:center}
#app #audioPanel #currentTrack{grid-column:1;grid-row:auto}

/* Shared compact navigation with consistent arrow buttons. */
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav){align-items:center;gap:8px}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:not([data-build-tool]):not([data-catalog-back]){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px;padding:0!important;border:1px solid #b89b60!important;border-radius:12px!important;background:linear-gradient(#fff8e4,#ecd5a8)!important;color:#68502d!important;box-shadow:inset 0 1px #fff,0 2px 0 #b89b6050!important;font-size:0!important;line-height:1!important}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:not([data-build-tool]):not([data-catalog-back])::after{content:"›";font:600 26px/1 system-ui}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:first-child:not([data-build-tool]):not([data-catalog-back])::after{content:"‹"}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:not([data-build-tool]):not([data-catalog-back]):disabled{opacity:1!important;background:#e7dfce!important;color:#756b58!important;border-color:#a99b80!important;box-shadow:inset 0 1px #fff8!important;cursor:default}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:not([data-build-tool]):not([data-catalog-back]):not(:disabled){opacity:1!important;background:linear-gradient(#719c39,#476d25)!important;color:#fff!important;border-color:#3e6022!important;box-shadow:inset 0 1px #b4d27f,0 2px 0 #36541e!important}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 1px 3px #76562930!important}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:focus-visible{outline:2px solid #6b873e;outline-offset:2px}

#app #gamePanel .storage-unit-nav{display:flex;gap:6px;align-items:center}
#app #gamePanel .storage-unit-nav>div{flex:1;min-width:0;gap:5px}
#app #gamePanel .storage-unit-nav h3{font-size:14px;line-height:1.2;overflow-wrap:anywhere}
#app #gamePanel .storage-slot-page>strong{font-size:15px}
#app #gamePanel .storage-space-nav{display:flex;justify-content:space-between;gap:8px}
#app #gamePanel :is(.storage-space-nav button,.storage-page-open){display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;min-height:40px;padding:0;font-size:24px;border-radius:12px;background:linear-gradient(#fff8e4,#ecd5a8);color:#68502d}
#app #gamePanel:has(.silo-focus-page) .panel-head button{flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
#app #gamePanel:has(.silo-focus-page) .storage-page-open{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
/* One balanced five-part quantity control: Mín. · − · valor · + · Máx. */
#app #gamePanel[data-theme] #gamePanelBody .quantity-row.quantity-limits{display:grid!important;grid-template-columns:minmax(48px,54px) minmax(40px,44px) minmax(52px,72px) minmax(40px,44px) minmax(48px,54px)!important;justify-content:center;gap:5px!important;width:min(100%,290px);max-width:290px;margin:2px auto 0!important;align-items:center;box-sizing:border-box}
#app #gamePanel[data-theme] #gamePanelBody .quantity-limits>button{display:flex;align-items:center;justify-content:center;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0;padding:0!important;box-sizing:border-box;border:1px solid #caa96d;border-radius:11px;color:#553c17;line-height:1!important;box-shadow:none;white-space:nowrap;overflow:hidden}
#app #gamePanel[data-theme] #gamePanelBody .quantity-limits>.quantity-limit{padding-inline:6px!important;background:#fbefd5;font-size:13px!important;font-weight:800}
#app #gamePanel[data-theme] #gamePanelBody .quantity-limits>.quantity-change{background:#f2d58c;font-size:22px!important;font-weight:750}
#app #gamePanel[data-theme] #gamePanelBody .quantity-limits>input{display:block;width:100%!important;min-width:0;height:44px!important;min-height:44px!important;margin:0;padding:0 5px!important;box-sizing:border-box;border:1px solid #d7bd8c!important;border-radius:11px;background:#fffdf7!important;color:#3c3020;font-size:17px!important;font-weight:800;line-height:42px;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:-.02em;overflow:hidden}
@container game-panel (max-width:270px){
 #app #gamePanel[data-theme] #gamePanelBody .quantity-row.quantity-limits{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;width:100%}
 #app #gamePanel[data-theme] #gamePanelBody .quantity-limits>.quantity-limit{padding-inline:4px!important;font-size:12px!important}
 #app #gamePanel[data-theme] #gamePanelBody .quantity-limits>input{padding-inline:2px!important;font-size:13px!important}
}
#app #fieldCreationControls{display:grid;gap:5px;margin:5px 0 0;padding:6px;background:#f1dfba;border:1px solid #c7a56b;border-radius:11px;box-shadow:inset 0 1px 0 #fff8e7}
#app #fieldCreationControls[hidden],#app #fieldCreationControls .field-corners[hidden]{display:none}
#app #fieldCreationControls>div{display:grid;gap:4px}
#app #fieldCreationControls .field-create-modes{grid-template-columns:1fr 1fr}
#app #fieldCreationControls .field-size-presets{grid-template-columns:repeat(3,1fr)}
#app #fieldCreationControls .field-corners{grid-template-columns:minmax(0,1fr) 34px 34px;align-items:center}
#app #fieldCreationControls .field-point-buttons{display:grid;grid-auto-flow:column;grid-auto-columns:30px;gap:4px;overflow-x:auto;scrollbar-width:none;max-width:100%}
#app #fieldCreationControls button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;height:34px;min-height:34px;padding:4px 6px;font-size:12px;line-height:1;background:linear-gradient(#fff8e8,#efd7aa);color:#594326;border:1px solid #b79056;border-radius:9px;box-shadow:0 1px 0 #aa824d}
#app #fieldCreationControls .field-create-modes button>span{font-size:18px}
#app #fieldCreationControls .field-create-modes button>strong{font-size:12px}
#app #fieldCreationControls .field-point-buttons button{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;font-size:12px;box-shadow:none}
#app #fieldCreationControls .field-point-buttons button[data-complete=false]{background:#e6dcc8;color:#887a63;border-color:#c6b89e;box-shadow:none}
#app #fieldCreationControls .field-corners>button{width:34px;padding:0;font-size:20px;box-shadow:none}
#app #fieldCreationControls .field-size-presets button{height:30px;min-height:30px;padding:3px;font-size:11px;box-shadow:none}
#app #fieldCreationControls button[aria-pressed=true]{background:#dcebbb;border-color:#668938;color:#344e20;box-shadow:inset 0 0 0 1px #668938}
/* Fila de paisagismo: mesma moldura dos controles de campo, quatro botões. */
#app #natureRowControls{display:grid;gap:4px;margin:5px 0 0;padding:6px;background:#f1dfba;border:1px solid #c7a56b;border-radius:11px;box-shadow:inset 0 1px 0 #fff8e7}
#app #natureRowControls[hidden]{display:none}
#app #natureRowControls>small{font-size:11px;line-height:1.1;color:#6f5936}
#app #natureRowControls .nature-row-counts{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
#app #natureRowControls button{display:flex;align-items:center;justify-content:center;min-width:0;height:32px;min-height:32px;padding:0;font-size:13px;font-weight:700;line-height:1;background:linear-gradient(#fff8e8,#efd7aa);color:#594326;border:1px solid #b79056;border-radius:9px}
#app #natureRowControls button[aria-pressed=true]{background:#dcebbb;border-color:#668938;color:#344e20;box-shadow:inset 0 0 0 1px #668938}
#app .interface #context[data-field-create=true]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:5px;width:min(350px,calc(100% - 12px));max-width:350px;padding:8px 9px;border-radius:14px;border:2px solid #c7a56b;box-shadow:0 7px 20px #17220f40}
#context[data-field-create=true] .context-copy{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 6px;min-width:0;overflow:visible}
#context[data-field-create=true] #contextTitle{font-family:Georgia,serif;font-size:1rem;line-height:1.1;color:#49351f}
#context[data-field-create=true] #contextMeta{align-self:center;margin:0;padding:3px 6px;border-radius:999px;background:#e7d2a8;color:#705533;font-weight:700;font-size:.68rem;white-space:nowrap}
#context[data-field-create=true] #contextWarning{grid-column:1/-1;padding:4px 6px;border-left:3px solid #7e9b48;background:#fff7e5;border-radius:6px;color:#53672f!important;font-size:.7rem;line-height:1.18}
#context[data-field-create=true] #fieldCreationControls{grid-column:1}
#app #context[data-field-create=true] .context-actions{grid-column:2;display:grid;grid-template-columns:40px;gap:4px;width:auto;margin:5px 0 0}
#app #context[data-field-create=true] .context-actions>button:not([hidden]){display:flex;align-items:center;justify-content:center;flex:none;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:10px;font-size:19px;line-height:1}
#app .interface #context[data-road-create=true]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:7px;width:min(340px,calc(100% - 12px));padding:8px 9px;border:2px solid #c7a56b;border-radius:14px;box-shadow:0 7px 20px #17220f40;overflow:visible;position:relative}
#context[data-road-create=true] .context-copy{display:grid;gap:1px;min-width:0;overflow:visible}
#context[data-road-create=true] #contextTitle{font-family:Georgia,serif;font-size:1rem;line-height:1.1;color:#49351f}
#context[data-road-create=true] #contextMeta{font-size:.7rem;color:#735b3b;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#context[data-road-create=true] #contextWarning:empty{display:none}
#context[data-road-create=true] #contextWarning:not(:empty){max-width:218px;margin:1px 0 0;font-size:.67rem;line-height:1.15;color:#596b36!important}
#context[data-road-create=true] #roadModes{margin-top:4px}
#context[data-road-create=true] .road-mode-picker>small{display:none}
#context[data-road-create=true] .road-modes{display:grid;grid-template-columns:repeat(4,40px);gap:4px;margin:0}
#app #context[data-road-create=true] .road-modes button{display:flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:10px;font-size:0}
#app #context[data-road-create=true] .road-modes button>span{font-size:21px;line-height:1}
#app #context[data-road-create=true] .road-lighting-toggle[aria-pressed=true]{background:#f2c94c;color:#503900;border-color:#a97912;box-shadow:inset 0 0 0 1px #fff4a4}
#app #context[data-road-create=true] .context-actions{display:grid;grid-template-columns:repeat(2,40px);gap:4px;width:auto;margin:0}
#app #context[data-road-create=true] .context-actions>button:not([hidden]){display:flex;align-items:center;justify-content:center;flex:none;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:10px;font-size:20px;line-height:1}

/* Gestão shares the market shell: captioned tabs, one fixed card height on
   every area and page, a permanent pager row. --pages-budget is read by the
   compact pager (compact-panels.js). 44 head + 57 tabs + 16 padding + 220
   pages (border-box, 16px padding inside) + 53 pager = 390px, the market
   card height. */
/* Os 236px eram fixos em qualquer aparelho: a folha da Gestão media 396px num
   iPhone SE e os mesmos 396px num iPad de 1180 de altura. Numa rede de água
   com dezoito peças isso virava uma peça por página — e, como a página tem
   altura fixa, cada uma ainda mostrava 130px de nada embaixo do card.
   `--pages-budget` é o piso (e o sinal de "tema de cartão fixo");
   `--pages-budget-max` é o teto quando a tela permite. Os dois são
   comprimentos simples de propósito: quem lê é o `parseFloat` do
   compact-panels.js, e um `clamp()` numa propriedade personalizada não
   resolvida chega lá como texto — vira NaN, o tema perde o cartão fixo e a
   página encolhe até o conteúdo. O valor continua *fixo por aparelho*, que é o
   que a regra original protege: virar Anterior/Próximo nunca redimensiona o
   card. */
#app .interface #gamePanel.compact-panel[data-theme=management]{--pages-budget:236px;--pages-budget-max:420px}
/* A barrinha de puxar só aparece onde muda alguma coisa: nos temas de cartão
   fixo, onde o conteúdo é paginado e encolher a página devolve fazenda à vista.
   Nos outros o painel já é do tamanho do conteúdo — oferecer o gesto ali seria
   prometer um efeito que não existe. Quem criar outro tema de cartão fixo
   (--pages-budget) deve entrar nesta lista também. */
@media(max-width:699px){
 #app #gamePanel.compact-panel:is([data-theme=management],[data-theme=machines]) .sheet-grab{display:block}
}
/* Máquinas has no tab row: the same 390px card with a taller page. */
#app .interface #gamePanel.compact-panel[data-theme=machines]{--pages-budget:293px}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button{flex-direction:column;gap:1px;height:46px;min-height:46px;padding:3px 2px;font-size:inherit;box-sizing:border-box}
#app .interface #gamePanel.compact-panel>#gamePanelTabs .management-area-buttons button[aria-pressed=true]{border-width:2px;box-shadow:inset 0 1px #fff9}
#app #gamePanel .management-tab-icon{display:grid;place-items:center;height:24px;font-size:22px;line-height:1}
#app #gamePanel .management-tab-label{font:800 10.5px/1.05 system-ui;color:inherit;white-space:nowrap;letter-spacing:-.01em}
/* Storage: facility tiles like the market gallery, then one facility per page. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-overview{padding:0;gap:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-empty{margin:0;padding:10px;font-size:14px;line-height:1.35;text-align:center;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-width:0;height:104px;min-height:104px;padding:6px 8px;border:1px solid #b59b5e;border-radius:12px;background:radial-gradient(ellipse at 50% 38%,#f0f5d9,#dce7ba 52%,#bdcf98);color:#465932;box-shadow:none;text-shadow:none;box-sizing:border-box;font:inherit;overflow:hidden}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery button[aria-pressed=true]{border:2px solid #82965a}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery button:not(:disabled):active{transform:translateY(1px)}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-art{display:grid;place-items:center;width:44px;height:40px;flex:none}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-art .resource-icon{width:40px;height:40px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery strong{max-width:100%;font-size:13px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery small{font-size:12px;line-height:1.1;color:#5f6d45;white-space:nowrap}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery progress{width:100%;height:6px;margin-top:2px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-facility{gap:6px;padding:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-head{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-head small{display:block;font-size:12px;line-height:1.2;color:#7a6a4c}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-head h3{margin:0!important;font-size:16px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-fill{display:grid;gap:4px;padding:6px 9px;border:1px solid #decba6;border-radius:10px;background:#fffdf6}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-fill strong{font-size:16px;line-height:1.2}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-fill progress{width:100%;height:8px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.storage-products,.management-list){list-style:none;margin:0;padding:0;display:grid;gap:4px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.storage-products,.management-list) li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:6px;font-size:13px;line-height:1.2}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.storage-products,.management-list) .resource-icon{width:26px;height:26px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.storage-products,.management-list) span{display:block;font-size:12px;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.storage-note,.storage-receiving){margin:0;font-size:13px;line-height:1.3;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions{display:flex;flex-wrap:wrap;gap:5px;padding-top:6px}
/* Com quatro ações (Vender entrou na barra) nenhuma cabe inteira numa linha de
   390px: a partir da quarta a fileira quebra em duas, com metade cada. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions:has(>button:nth-child(4))>button{flex:1 1 calc(50% - 5px)}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions:has(>button:nth-child(4))>button:first-child{flex:1 1 calc(50% - 5px);width:auto}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions>button{flex:1 1 0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions>button:first-child{flex:0 0 auto;width:auto}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions button{width:100%;min-width:0;min-height:40px;padding:4px 6px;font-size:13px;font-weight:700;line-height:1.1;border:1px solid #b79d69;border-radius:10px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;text-shadow:none;white-space:normal;overflow:hidden}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions :is([data-action=storage-market],[data-action=staff-hire],[data-action=utility-buy],[data-action=staff-pay]){border-color:#3e6022;background:linear-gradient(#719c39,#476d25);color:#fff;box-shadow:0 2px 0 #36541e}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions button:not(:disabled):active{transform:translateY(2px);box-shadow:none}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row{display:grid;gap:4px;padding:0;border:0;background:none}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row .storage-space-nav{display:flex;align-items:center;gap:6px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row .storage-space-nav>div{flex:1;min-width:0;display:grid;gap:1px;padding:3px 8px;border:1px solid #decba6;border-radius:10px;background:#fffdf6;text-align:center}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row small{font-size:12px;color:#7a6a4c}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row strong{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-slot-row p{margin:0;font-size:13px;line-height:1.3;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-facility .storage-slot-page:not(.storage-slot-row){display:grid;gap:3px;padding:6px 9px;border:1px solid #decba6;border-radius:10px;background:#fffdf6}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-facility .storage-slot-page:not(.storage-slot-row) :is(p,small){margin:0;font-size:13px;line-height:1.3}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .storage-facility .storage-slot-page progress{width:100%;height:8px}
/* Shared Gestão pieces: emoji art, status line, fact grid, notes, alerts. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-art{font-size:30px;line-height:1}
/* Selo do ofício no canto do retrato: a pessoa é o retrato, a galinha só diz
   que ela é tratadora de animais. */
#app #gamePanel[data-theme=management] .management-art.has-role-badge{position:relative;overflow:visible}
#app #gamePanel[data-theme=management] .staff-role-badge{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #b59b5e;border-radius:50%;background:#fffaeeee;font-size:12px;line-height:1;box-shadow:0 1px 2px #3d4a2c40}
/* 🌾 e 🐔 viram sprite de recurso, e o sprite herda os 40px do retrato: sem
   este tamanho o selo cobria o nome do candidato. */
#app #gamePanel[data-theme=management] .staff-role-badge .resource-icon{width:15px!important;height:15px!important}
/* 810: o mesmo sprite na linha "Tratador de animais · 🐔" do cartão da equipe
   herdava o tamanho grande, quebrava a linha e escondia o nome atrás do
   retrato. Na linha de texto ele tem o tamanho de uma letra, como os outros
   bichos (🐄 🐑 🐐 🐖), que continuam emoji. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery small .resource-icon{display:inline-block;width:1.15em!important;height:1.15em!important;min-width:0;vertical-align:-.2em}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-art .machine-art{width:44px;height:36px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-gallery small+small{color:#6f7d55;font-size:11px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.management-page,.management-gallery-page){display:grid;gap:6px;padding:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status{display:grid;gap:2px;padding:6px 9px;border:1px solid #decba6;border-radius:10px;background:#fffdf6}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status strong{font-size:15px;line-height:1.2}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status span{font-size:13px;line-height:1.3;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status.is-alert{border-color:#c98b5a;background:#fff1e4}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;margin:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts div{display:grid;gap:1px;min-width:0;padding:4px 8px;border:1px solid #e6d7b6;border-radius:8px;background:#fffaf0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts dt{font-size:11px;font-weight:700;color:#7a6a4c;text-transform:uppercase;letter-spacing:.02em}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts dd{margin:0;font-size:13px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-note{margin:0;font-size:13px;line-height:1.3;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-alert{margin:0;padding:6px 9px;border:1px solid #c98b5a;border-radius:10px;background:#fff1e4;font-size:13px;line-height:1.3;color:#6b4a2a}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-panel details{margin:0;padding:0 8px;border:1px solid #e6d7b6;border-radius:10px;background:#fffaf0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-panel summary{min-height:34px;display:flex;align-items:center;font-size:14px;font-weight:700;cursor:pointer}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-panel details>:not(summary){margin:4px 0 8px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-setting{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;font-size:13px;margin:4px 0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-setting select{font:inherit;font-size:13px;padding:4px 6px;border:1px solid #cfb786;border-radius:8px;background:#fff8e9;color:#58452c}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-check{display:flex;align-items:center;gap:6px;font-size:13px;margin:4px 0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-payroll{list-style:none;margin:0;padding:0;display:grid;gap:3px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-payroll li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;font-size:13px;line-height:1.25;padding:4px 8px;border:1px solid #e6d7b6;border-radius:8px;background:#fffaf0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .staff-payroll small{grid-column:1/-1;font-size:12px;color:#6b5d44}
/* Calendário, Safras e Água. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts.is-three dd{font-size:12px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery button{height:auto;min-height:96px;padding:4px 3px 6px;gap:1px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery button>*{flex-shrink:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery .management-art{font-size:26px;height:30px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery strong{font-size:12px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-gallery small{font-size:10.5px;white-space:normal;line-height:1.1;text-align:center}
/* Nota de cada cultura na estação: o ícone num círculo com a cor da nota. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-fit{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;margin-top:2px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-fit>span{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1.5px solid}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-fit .resource-icon{width:12px!important;height:12px!important;min-width:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.calendar-fit .fit-ideal,.calendar-legend .fit-ideal){border-color:#4f9a3a;background:#dcefcf}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.calendar-fit .fit-acceptable,.calendar-legend .fit-acceptable){border-color:#d0a23c;background:#fbefcc}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) :is(.calendar-fit .fit-unfavorable,.calendar-legend .fit-unfavorable){border-color:#c4573c;background:#f7d9d0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-legend{display:flex;justify-content:center;gap:12px;margin:6px 0 0;font-size:12px;color:#6b6450}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-legend span{display:inline-flex;align-items:center;gap:4px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .calendar-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;border:1.5px solid}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status progress{width:100%;height:6px;margin-top:2px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-status button,#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-consumer button{justify-self:start;min-height:32px;margin-top:3px;padding:3px 10px;font-size:13px;font-weight:700;border:1px solid #b79d69;border-radius:8px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;text-shadow:none}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-consumer{display:grid;gap:2px;padding:6px 9px;border:1px solid #decba6;border-radius:10px;background:#fffdf6}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-consumer strong{font-size:14px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-consumer p{margin:0;font-size:13px;line-height:1.3;color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-alerts{display:grid;gap:4px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-alerts button{justify-self:start;min-height:30px;padding:2px 9px;font-size:12.5px;font-weight:700;border:1px solid #c98b5a;border-radius:8px;background:#fff8ef;color:#6b4a2a;box-shadow:none;text-shadow:none;text-align:left;white-space:normal}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .season-page details{margin:0;padding:0 8px;border:1px solid #e6d7b6;border-radius:10px;background:#fffaf0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .season-page summary{min-height:34px;display:flex;align-items:center;font-size:14px;font-weight:700;cursor:pointer}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .season-page details>:not(summary){margin:4px 0 8px;font-size:13px;line-height:1.35}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-list li.is-empty{grid-template-columns:minmax(0,1fr);color:#6b5d44}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-facts dd small{display:block;font-size:11px;font-weight:600;color:#7a6a4c}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-gallery .management-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-gallery .management-gallery button{height:96px;min-height:96px;padding:4px 3px;gap:1px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-gallery .management-art{font-size:26px;height:30px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-gallery strong{font-size:12px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-gallery small{font-size:10.5px;white-space:normal;line-height:1.1;text-align:center}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-alerts{padding:4px 8px;gap:2px;font-size:12.5px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .water-alerts strong{font-size:12.5px}
/* Máquinas: machine art in tiles and headers, inline map button. */
#app #gamePanel[data-theme=machines] .management-art .machine-art{width:56px;height:44px}
#app #gamePanel[data-theme=machines] .management-gallery .management-art{height:44px}
#app #gamePanel[data-theme=machines] .management-gallery small+small{color:#5a6b45}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-inline-button{justify-self:start;min-height:36px;padding:4px 12px;font-size:13px;font-weight:700;border:1px solid #b79d69;border-radius:10px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;text-shadow:none}
#app #gamePanel[data-theme=machines] .machine-panel details{margin:0;padding:0 8px;border:1px solid #e6d7b6;border-radius:10px;background:#fffaf0}
#app #gamePanel[data-theme=machines] .machine-panel summary{min-height:34px;display:flex;align-items:center;font-size:14px;font-weight:700;cursor:pointer}
#app #gamePanel[data-theme=machines] .machine-panel details>:not(summary){margin:4px 0 8px}
#app #gamePanel[data-theme=machines] .shed-equipment li{grid-template-columns:minmax(0,1fr)}
#app #gamePanel[data-theme=machines] .shed-equipment li span{display:block;font-size:12px;color:#6b5d44}
/* Venda de equipamento: o cartão usa a moldura de status que já existe; aqui
   só entram a fileira de confirmação e o botão curto da linha do implemento. */
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-sale-confirm{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-sale-confirm button{flex:1 1 auto;min-width:0}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) #gamePanelActions .management-actions .management-sale-go{background:linear-gradient(180deg,#8fb352,#5d8a30);border-color:#3e6022;color:#fdfbe9}
#app #gamePanel:is([data-theme=management],[data-theme=machines]) .management-sale button{margin-top:4px}
#app #gamePanel[data-theme=machines] .shed-equipment li .management-sale-ask{justify-self:start;min-height:30px;padding:3px 9px;margin-top:3px;font-size:12px}
#app #gamePanel[data-theme=machines] .shed-equipment li .management-sale-confirm button{min-height:30px;padding:3px 9px;font-size:12px}
#app #gamePanel[data-theme=machines] .shed-equipment li .management-sale-note{display:block;margin-top:2px;font-size:11px;line-height:1.25;color:#8a6a45}

/* Long footer notices scroll instead of ending in an ellipsis. Only layouts
   that already clip to one line scroll; where the tip wraps, nothing changes. */
/* game.css hides footer span:last-child; the carrier must opt back in. */
#app .interface .bottom-info footer.tip-box #status .tip-scroll{display:inline}
#app .interface .bottom-info footer.tip-box #status.is-scrolling{text-overflow:clip;white-space:nowrap}
#app .interface .bottom-info footer.tip-box #status.is-scrolling .tip-scroll{display:inline-block;white-space:nowrap;animation:tip-scroll var(--tip-scroll-duration,14s) linear infinite alternate}
@keyframes tip-scroll{0%,8%{transform:translateX(0)}92%,100%{transform:translateX(calc(var(--tip-scroll-distance,0px)*-1))}}
@media(prefers-reduced-motion:reduce){
 #app .interface .bottom-info footer.tip-box #status.is-scrolling{text-overflow:ellipsis}
 #app .interface .bottom-info footer.tip-box #status.is-scrolling .tip-scroll{display:inline;animation:none}
}

/* A galeria da Produção tem um azulejo por espécie criada. Com mais de quatro
   criações a grade cresce em linhas e rola dentro do painel, em vez de esconder
   o que não coubesse nas duas linhas fixas. */
#app #gamePanel[data-theme=production] .production-catalog-grid{grid-template-rows:none;grid-auto-rows:80px;height:auto;min-height:0;padding-bottom:8px}
/* A espécie que ainda não tem abrigo fica discreta e convida a construir. */
#app #gamePanel[data-theme=production] .production-catalog-grid button.is-missing{border-style:dashed;background:#f6f2e2;color:#7d7458}
#app #gamePanel[data-theme=production] .production-catalog-grid button.is-missing .production-catalog-icon{opacity:.55;filter:grayscale(.45) drop-shadow(0 3px 2px #34432622)}
#app #gamePanel[data-theme=production] .production-catalog-grid button.is-missing small{color:#8a7d5c}

/* A miniatura da espécie também encabeça o card de compra do animal. */
#app #gamePanel[data-theme=market] #gamePanelBody .market-product-head .market-thumbnail-model{display:grid;place-items:center;width:44px;height:44px;font-size:30px;line-height:1}
#app #gamePanel[data-theme=market] #gamePanelBody .market-product-head .market-thumbnail-model :is(img,svg){width:44px!important;height:44px!important;object-fit:contain}

/* O card de detalhe rola por dentro, e os botões ficavam abaixo do corte: o
   jogador via só o aviso e não achava "Abastecer" nem "Comprar". A linha de
   ações do card fica colada no rodapé dele, sempre à vista, com o conteúdo
   passando por baixo. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body .production-detail-card>.production-detail-actions{position:sticky;bottom:-2px;z-index:2;padding:5px 0 3px;margin-top:2px;background:linear-gradient(180deg,#f6eed699,#f6eed6 30%)}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-detail-body .production-detail-card>.production-detail-actions button{min-height:38px;padding:3px 5px;font-size:12px;line-height:1.05}

/* A escolha da lavoura, antes de semear: dois cartões lado a lado com o ciclo
   e como a estação de agora trata cada cultura. Mesma régua de toque dos
   escolhedores de executor logo abaixo dela. */
#app #gamePanel[data-theme=production] .production-crop-choice{display:flex;gap:6px;margin:0 0 6px;min-width:0}
#app #gamePanel[data-theme=production] .production-crop-choice button{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0 6px;flex:1 1 0;min-width:0;min-height:46px;padding:4px 7px;border:1px solid #c9ae75;border-radius:10px;background:#fff4da;color:#5a4730;text-align:left}
#app #gamePanel[data-theme=production] .production-crop-choice button>span{grid-row:1/3;font-size:23px;line-height:1;text-align:center}
#app #gamePanel[data-theme=production] .production-crop-choice button>span .resource-icon{width:26px;height:26px}
#app #gamePanel[data-theme=production] .production-crop-choice strong{font-size:13px;line-height:1.1}
#app #gamePanel[data-theme=production] .production-crop-choice small{font-size:10.5px;line-height:1.15;color:#7d6b4c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel[data-theme=production] .production-crop-choice button.is-active{border-color:#7f9a4f;border-width:2px;background:#eef5da;color:#3f5526}
#app #gamePanel[data-theme=production] .production-crop-choice button.is-active small{color:#5d7439}
/* Mesmo atalho no painel de Produção, na largura da fileira de culturas. */
#app #gamePanel[data-theme=production] .field-seed-shortcut{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:34px;margin:0 0 6px;padding:4px 8px;border:1px solid #d0a06f;border-radius:10px;background:linear-gradient(180deg,#fff4e2,#f4dcbd);color:#8a4b22;font-size:12px;font-weight:700;line-height:1.1}

/* O botão de avançar aparecia no meio do card, com um vão morto entre ele e a
   borda direita. A causa é a mistura de duas decisões certas: várias barras de
   paginação são uma grade `1fr auto 1fr` (para o contador ficar no centro
   exato, e não no centro do espaço que sobra), e a normalização acima fixa os
   botões em 40 × 40. Um item de largura fixa dentro de uma faixa `1fr` encosta
   no **começo** da faixa — então o botão da direita parava a 80 px da borda.
   `justify-self` resolve nas grades e é ignorado no flex, então serve às duas
   formas sem precisar saber qual barra usa qual. */
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:first-child:not([data-build-tool]):not([data-catalog-back]){justify-self:start}
#app :is(.compact-pagination,.catalog-pagination,.fleet-pagination,.market-item-pages,.staff-navigation,.field-nav,.storage-unit-nav,.audio-song-nav,.audio-credits nav) button:last-child:not([data-build-tool]):not([data-catalog-back]){justify-self:end}

/* A ação principal do campo, embaixo do painel: era um ladrilho com a mesma
   cara dos que só informam, e o jogador tinha de descobrir que "Operação"
   era tocável. Aqui ela é um botão de largura inteira, e é ela que ocupa o
   vazio do fim do cartão. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go-bar{display:grid;gap:5px;align-content:end;min-width:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go-bar .production-executor-choices{margin:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:8px 12px;border:1px solid #6d8a3d;border-radius:12px;background:linear-gradient(#8cae53,#5f7e33);color:#fffdf2;font-size:15px;font-weight:800;text-shadow:0 1px 1px #3d5320;box-shadow:inset 0 1px #ffffff5c,0 2px 0 #4d692a}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go span{font-size:19px;line-height:1}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go strong{min-width:0;font-size:15px;line-height:1.15;overflow-wrap:anywhere}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go:is(:active,:focus-visible){transform:translateY(2px);outline:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go[disabled]{background:linear-gradient(#efe3c4,#ddcba2);border-color:#c2a870;color:#7a6647;text-shadow:none;box-shadow:inset 0 1px #fff,0 2px 0 #c0a46d;opacity:1}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go-help{margin:0;font-size:11.5px;line-height:1.3;color:#7a6647;text-align:center}

/* iPhone SE: a folha inteira tem 568px, o ladrilho cai a 72px e o ícone de
   31px come a linha do valor ("Pronto para colher · 100%" ficava cortado).
   Em tela baixa o ícone encolhe e o texto fica. */
@media(max-height:620px){
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-dashboard{grid-template-rows:repeat(2,minmax(0,98px))}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile{padding:3px 2px;gap:0}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile-icon{height:21px;font-size:19px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile-icon .resource-icon{width:21px;height:21px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile strong{font-size:11.5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-tile small{font-size:10.5px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go{min-height:44px;font-size:14px}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-go strong{font-size:14px}
}

/* O resumo preenche a folha quando sobra espaço (era o vazio do relato) e
   rola quando falta — em vez de achatar os ladrilhos a 28px num iPhone SE.
   O detalhe de uma seção segue preso em 100% com rolagem própria. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-shell[data-field-section=overview]{height:auto;min-height:100%;overflow:visible!important}
/* 638: preço no azulejo — a ficha intermediária saiu. */
#app #buildPanel.construction-panel .catalog-thumb-price{display:block;margin-top:1px;font-size:10.5px;font-weight:800;line-height:1.1;color:#4f6b25}
#app #buildPanel.construction-panel .catalog-thumbnail-grid button[disabled]{opacity:.55}
/* 639: pincel de paisagismo */
#app #natureBrushControls{display:grid;gap:5px;margin:5px 0 0;padding:6px;background:#f1dfba;border:1px solid #c7a56b;border-radius:11px;box-shadow:inset 0 1px 0 #fff8e7}
#app #natureBrushControls[hidden]{display:none}
#app #natureBrushControls .nature-brush-row{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:6px}
#app #natureBrushControls small{font-size:11px;line-height:1.1;color:#6f5936}
#app #natureBrushControls [role=group]{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
#app #natureBrushControls button{display:flex;align-items:center;justify-content:center;min-width:0;height:30px;min-height:30px;padding:0 4px;font-size:12.5px;font-weight:700;line-height:1;background:linear-gradient(#fff8e8,#efd7aa);color:#594326;border:1px solid #b79056;border-radius:9px}
#app #natureBrushControls button[aria-pressed=true]{background:#dcebbb;border-color:#668938;color:#344e20;box-shadow:inset 0 0 0 1px #668938}
#app #natureBrushControls button:disabled{opacity:.45}
/* Tintas do pincel de chão (766): bolinhas de cor; a escolhida ganha o anel verde. */
#app #natureBrushControls .nature-brush-row[hidden]{display:none}
#app #natureBrushControls .nature-brush-paints button{padding:0}
#app #natureBrushControls .nature-brush-paints i{display:block;width:18px;height:18px;border-radius:50%;border:1px solid rgba(60,40,20,.45);box-shadow:inset 0 1px 2px rgba(255,255,255,.35)}
/* 775: verdes juntos, terras juntas; um respiro com risco fino entre os grupos. */
#app #natureBrushControls .nature-brush-paints .paint-group-start{margin-left:7px;position:relative}
#app #natureBrushControls .nature-brush-paints .paint-group-start::before{content:'';position:absolute;left:-6px;top:5px;bottom:5px;width:1px;background:rgba(111,89,54,.45)}
/* 640: em tela baixa (tablet deitado, janela pequena) a área do meio do card
   de campo/abrigo ficava cortada, sem rolagem: o bloco "Operação" e o botão
   "Recuperar animais" ficavam abaixo da borda, inalcançáveis. O meio agora
   rola, e os azulejos têm altura mínima para não virarem tiras. */
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-shell>:nth-child(2){min-height:0;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-dashboard{grid-template-rows:repeat(2,minmax(86px,124px));height:auto;min-height:0;align-content:start}
@media(max-height:620px){#app #gamePanel:is([data-theme=production],[data-theme=management]) .production-field-dashboard{grid-template-rows:repeat(2,minmax(72px,98px))}}
#app #fieldCreationControls .field-create-modes[hidden]{display:none}

/* 749 — Reserva para botão sem estilo próprio no corpo dos painéis claros.
   O botão padrão do jogo é escuro (var(--panel)) e herda a cor de texto do
   painel: no creme dos painéis, dava marrom sobre verde-escuro, quase
   ilegível (compra rápida do abrigo, "Abrir" do portão). :where() mantém a
   especificidade de um "button" simples: qualquer regra própria vence. */
:where(#app #gamePanel[data-theme] #gamePanelBody) button{border:1px solid #b79d69;border-radius:10px;background:linear-gradient(#fff3d8,#ebd5aa);color:#5b452b;box-shadow:0 2px 0 #b99a61;text-shadow:none}
:where(#app #gamePanel[data-theme] #gamePanelBody) button[aria-pressed=true]{background:#e3efc9;border-color:#6b843f;color:#2f4a1c;box-shadow:none}
:where(#app #gamePanel[data-theme] #gamePanelBody) button:disabled{background:#ebe4d3;color:#8a7f6a;border-color:#c9bda2;box-shadow:none}
:where(#app #gamePanel[data-theme] #gamePanelBody) button:not(:disabled):active{transform:translateY(2px);box-shadow:none}
/* 750 — Morrinho sob medida: o mesmo cartão do pincel, com − e + por medida. */
#app #moundControls{display:grid;gap:5px;margin:5px 0 0;padding:6px;background:#f1dfba;border:1px solid #c7a56b;border-radius:11px;box-shadow:inset 0 1px 0 #fff8e7}
#app #moundControls[hidden]{display:none}
#app #moundControls .nature-brush-row{display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:center;gap:6px}
#app #moundControls small{font-size:12px;line-height:1.1;font-weight:700;color:#6f5936;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #moundControls [role=group]{display:grid;grid-template-columns:1fr 1fr;gap:4px}
#app #moundControls button{display:flex;align-items:center;justify-content:center;height:30px;min-height:30px;padding:0;font-size:17px;font-weight:700;line-height:1;background:linear-gradient(#fff8e8,#efd7aa);color:#594326;border:1px solid #b79056;border-radius:9px}

/* Aba Gráficos das Configurações (782). */
/* Mais forte que "#app #audioPanel .audio-library{display:grid!important}": dois ids e dois seletores. */
:is(#app,#startAudio) #audioPanel[data-audio-view=graphics] :is(.audio-library,.audio-settings,.audio-credits){display:none!important}
#audioPanel:not([data-audio-view=graphics]) .graphics-settings{display:none!important}
#audioPanel .graphics-settings{display:grid;gap:8px;padding:0}
#audioPanel .graphics-diagnostic-box{display:grid;gap:8px}#audioPanel .graphics-diagnostic-box[hidden]{display:none}
#audioPanel .graphics-title{font-size:14px;color:#4f3f28}
#audioPanel .graphics-options{display:grid;gap:6px}
#audioPanel .graphics-option{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:48px!important;padding:6px 10px!important;text-align:left;line-height:1.2}
/* Se ainda faltar altura (iPhone pequeno, deitado), a aba rola. */
:is(#app,#startAudio) #audioPanel[data-audio-view=graphics] .audio-scroll{overflow-y:auto!important;-webkit-overflow-scrolling:touch}
#audioPanel .graphics-option strong{display:block;font-size:14px}
#audioPanel .graphics-option em{font-style:normal;font-weight:600;color:#5d7a35}
#audioPanel .graphics-option small{display:block!important;font-size:12px;color:#7a6647;margin-top:2px}
#audioPanel .graphics-option b{font-size:12px;color:#41572e;white-space:nowrap}
#audioPanel .graphics-note{margin:0;font-size:12px;line-height:16px;color:#6f5936}
#audioPanel .graphics-safe{color:#9a4b23}

/* Aba Conta das Configurações (786): a Fazenda na nuvem saiu da aba Volumes. */
:is(#app,#startAudio) #audioPanel[data-audio-view=account] :is(.audio-library,.audio-settings,.audio-credits,.graphics-settings){display:none!important}
#audioPanel:not([data-audio-view=account]) .account-settings{display:none!important}
#audioPanel .account-settings{display:grid;gap:10px;padding:0}
#audioPanel .account-note{margin:0;font-size:13px;line-height:18px;color:#6f5936}
/* 789: com um e-mail comprido a linha virava duas colunas espremidas e o
   texto passava por baixo do botão. Empilhada: título, e-mail e botão
   inteiro embaixo. Três ids para vencer as regras das linhas de volume. */
:is(#app,#startAudio) #audioPanel .account-settings #nuvemAjuste{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start;gap:8px;padding:12px!important;border:1px solid #d3c39e;border-radius:10px;background:#faf5e6;min-height:0!important;height:auto!important}
:is(#app,#startAudio) #audioPanel .account-settings #nuvemAjuste>span{display:grid;gap:2px;min-width:0}
:is(#app,#startAudio) #audioPanel .account-settings #nuvemAjuste strong{font-size:15px;color:#4f3f28}
:is(#app,#startAudio) #audioPanel .account-settings #nuvemAjuste small{display:block!important;font-size:13px;line-height:18px;color:#7a6647;overflow-wrap:anywhere}
:is(#app,#startAudio) #audioPanel .account-settings #nuvemAjuste .audio-switch{grid-column:1/-1!important;width:100%!important;min-width:0!important;min-height:44px}
:is(#app,#startAudio) #audioPanel[data-audio-view=account] .audio-scroll{overflow-y:auto!important;-webkit-overflow-scrolling:touch}

/* Troca de modelo do portão no card de inspeção (799). */
#gateStyles,#wellStyles{display:flex;gap:6px;margin-top:6px}
#gateStyles[hidden],#wellStyles[hidden]{display:none!important}
#gateStyles button,#wellStyles button{flex:1 1 0;display:grid;gap:1px;justify-items:center;min-height:44px;padding:5px 6px;border:1px solid #b79056;border-radius:10px;background:linear-gradient(#fff8e8,#efd7aa);color:#594326;font:inherit;line-height:1.15}
#gateStyles button strong,#wellStyles button strong{font-size:12.5px}
#gateStyles button small,#wellStyles button small{font-size:11px;color:#8a6516;font-weight:700}
#gateStyles button[aria-pressed=true],#wellStyles button[aria-pressed=true]{background:#dcebbb;border-color:#668938;color:#344e20}
#gateStyles button[aria-pressed=true] small,#wellStyles button[aria-pressed=true] small{color:#4f7a2c}

/* Saldo de água (876): barras no estilo escuro do painel, como as visões de
   informação do Cities: Skylines II. */
#app #buildPanel.construction-panel .water-balance{display:grid;gap:5px;margin:0 0 6px;padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.07);color:#f3ecd8;font-size:13px;line-height:1.25}
#app #buildPanel.construction-panel .wb-title{font-weight:800;font-size:13px;color:#f3ecd8}
#app #buildPanel.construction-panel .wb-row{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:8px}
#app #buildPanel.construction-panel .wb-label{font-size:12px;color:#c9bfa4}
#app #buildPanel.construction-panel .wb-num{font-size:12px;font-weight:700;color:#f3ecd8;font-variant-numeric:tabular-nums;white-space:nowrap}
#app #buildPanel.construction-panel .wb-bar{position:relative;height:8px;border-radius:4px;background:rgba(0,0,0,.35);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
#app #buildPanel.construction-panel .wb-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:#7cc356}
#app #buildPanel.construction-panel .water-balance-justo .wb-use i{background:#e0b53f}
#app #buildPanel.construction-panel .water-balance-falta .wb-use i{background:#e0574a}
#app #buildPanel.construction-panel .wb-tank i{background:#4fa6d6}
#app #buildPanel.construction-panel .wb-tip{font-size:12px;color:#c9bfa4}
#app #buildPanel.construction-panel .water-balance-falta{border-color:rgba(224,87,74,.55)}
#app #buildPanel.construction-panel .water-balance-falta .wb-tip{color:#f2b2a9}
#app #buildPanel.construction-panel .water-balance-justo .wb-tip{color:#ead18a}
#app #buildPanel.construction-panel .water-balance+.catalog-thumbnail-grid{height:auto!important}

/* Culturas em lista (880), no estilo da aba Produção do Cities: Skylines II. */
#app #gamePanel[data-theme=production] .production-catalog-grid.production-crop-list{display:flex;flex-direction:column;gap:6px;grid-auto-rows:auto}
#app #gamePanel[data-theme=production] .production-catalog-grid.production-crop-list button.production-crop-row{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:10px;height:auto;min-height:62px;padding:7px 10px;text-align:left;border-radius:12px;background:#fbf4e2;border:1px solid #d9c595;box-shadow:none}
#app #gamePanel[data-theme=production] .production-crop-list .pc-icon{font-size:32px;line-height:1;text-align:center;filter:drop-shadow(0 2px 1px #34432638)}
#app #gamePanel[data-theme=production] .production-crop-list :is(strong,small){position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
#app #gamePanel[data-theme=production] .production-crop-list .pc-main{display:grid;gap:4px;min-width:0}
#app #gamePanel[data-theme=production] .production-crop-list .pc-top,#app #gamePanel[data-theme=production] .production-crop-list .pc-sub{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
#app #gamePanel[data-theme=production] .production-crop-list strong{font-size:15px;color:#3d4d2a}
#app #gamePanel[data-theme=production] .production-crop-list small{font-size:12px;color:#6b5d40}
#app #gamePanel[data-theme=production] .production-crop-list b.pc-ready{color:#9a6b00}
#app #gamePanel[data-theme=production] .production-crop-list .pc-bar{display:flex;height:7px;border-radius:4px;overflow:hidden;background:#e6dcc3}
#app #gamePanel[data-theme=production] .production-crop-list .pc-bar i{display:block;height:100%}
#app #gamePanel[data-theme=production] .production-crop-list .pc-bar .pc-grow{background:#6fae4a}
#app #gamePanel[data-theme=production] .production-crop-list .pc-bar .pc-ready{background:#e0b030}
#app #gamePanel[data-theme=production] .production-crop-list .pc-bar .pc-idle{background:#b8ad95}
#app #gamePanel[data-theme=production] .production-catalog-grid.production-crop-list button.is-empty{min-height:44px;opacity:.72;background:#f4eedd}
#app #gamePanel[data-theme=production] .production-crop-list .is-empty .pc-icon{font-size:22px;filter:grayscale(.5)}
/* Melhoria do poço no card (943): largura inteira, preço em pílula à direita. */
#wellUpgrade,#buildingUpgrade{display:grid;grid-template-columns:1fr auto;grid-template-areas:'acao preco' 'ganho preco';align-items:center;gap:1px 8px;width:100%;margin-top:6px;min-height:48px;padding:6px 10px;border:1px solid #8fae62;border-radius:12px;background:linear-gradient(#f4f9e8,#dfebc4);color:#344e20;font:inherit;text-align:left}
#wellUpgrade[hidden],#buildingUpgrade[hidden]{display:none!important}
#wellUpgrade span,#buildingUpgrade span{grid-area:acao;font-weight:800;font-size:13.5px}
#wellUpgrade small,#buildingUpgrade small{grid-area:ganho;font-size:11.5px;color:#4f6b33}
#wellUpgrade b,#buildingUpgrade b{grid-area:preco;padding:3px 10px;border-radius:999px;background:#4f7f2a;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
#wellUpgrade:disabled,#buildingUpgrade:disabled{opacity:.6}
/* Quanto há para vender, no azulejo do Vender (952). */
#app #gamePanel[data-theme=market] .market-thumbnail-grid>button{position:relative}
#app #gamePanel[data-theme=market] .market-thumb-stock{position:absolute;top:6px;right:6px;padding:1px 8px;border-radius:999px;background:#4f7f2a;color:#fff;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#app #gamePanel[data-theme=market] .market-thumb-stock.is-empty{background:#5b584e;color:#e2ddd0}
/* Centro Logístico (1028): módulos no card do núcleo e "Incorporar ao centro" no silo avulso. */
#hubRow{display:grid;gap:6px;margin-top:6px}
#hubRow[hidden]{display:none!important}
#hubRow p{margin:0;font-size:12.5px;line-height:1.3;color:#4a5b33}
#hubRow button{display:grid;gap:1px;justify-items:center;min-height:44px;padding:5px 6px;border:1px solid #668938;border-radius:10px;background:linear-gradient(#f4f9e8,#dcebbb);color:#344e20;font:inherit;line-height:1.15}
#hubRow button strong{font-size:12.5px}
#hubRow button small{font-size:11px;color:#4f7a2c;font-weight:700}
/* 1031: detalhes do Centro Logístico, um módulo por linha, com rolagem. */
#hubRow .hub-modules{list-style:none;margin:0;padding:0;display:grid;gap:5px;max-height:38vh;overflow:auto;-webkit-overflow-scrolling:touch}
#hubRow .hub-modules li{display:grid;gap:1px;padding:5px 7px;border-radius:8px;background:rgba(255,255,255,.06)}
#hubRow .hub-modules strong{font-size:12.5px}
#hubRow .hub-modules span{font-size:12px;font-weight:700;color:#cfe3b5}
#hubRow .hub-modules small{font-size:11.5px;opacity:.85;line-height:1.3}
/* 1033: Espaço de Eventos — temas, dia e a conta do festival no card. */
#hubRow .festival-themes{display:grid;grid-template-columns:1fr 1fr;gap:5px}
#hubRow .festival-themes button{min-height:38px;border-color:#b79056;background:linear-gradient(#fff8e8,#efd7aa);color:#594326}
#hubRow .festival-themes button[aria-pressed=true]{background:#dcebbb;border-color:#668938;color:#344e20}
#hubRow .festival-day{display:flex;align-items:center;gap:6px;font-size:12.5px}
#hubRow .festival-day select{min-height:34px;font:inherit;border-radius:8px;padding:3px 6px}
#hubRow .festival-error{color:#e8a08f;font-weight:700}
/* 1043: card do Centro Logístico organizado — barra de ocupação e grade de produtos. */
#hubRow .hub-capacity{display:grid;gap:3px}
#hubRow .hub-bar{display:block;height:8px;border-radius:6px;background:rgba(255,255,255,.14);overflow:hidden}
#hubRow .hub-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#8fbf57,#d9b84a)}
#hubRow .hub-capacity small{font-size:12px;font-weight:700;color:#cfe3b5}
#hubRow .hub-stock{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px;max-height:30vh;overflow-y:auto}
#hubRow .hub-stock li{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto auto;column-gap:5px;align-items:center;padding:4px 6px;border-radius:8px;background:rgba(255,255,255,.06)}
#hubRow .hub-stock li>span{grid-row:1/3;font-size:17px;text-align:center}
#hubRow .hub-stock strong{font-size:11.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hubRow .hub-stock small{font-size:11px;font-weight:700;color:#cfe3b5;line-height:1.1}
#hubRow .hub-note{font-size:11.5px;opacity:.85}
