/* One compact row language, both themes. Icon *glyphs inside buttons* stay centered. */
html body .retired4883{display:none!important}
:root #game-shell #profile-initial .profile-portrait{image-rendering:auto!important;object-fit:contain!important;filter:none!important;transform:none!important;width:100%!important;height:100%!important}
:root #game-shell .explorer-portrait{image-rendering:auto!important}
:root #game-shell .pda-identity-grid .pda-face{filter:none!important;image-rendering:auto!important;background:var(--pda-bg)!important}
:root #game-shell .pda-portrait-binary img{filter:url(#portrait-binary4883)!important;image-rendering:auto!important;object-fit:contain!important}
:root body #toast{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 14px)!important;left:14px!important;right:auto!important;bottom:auto!important;max-width:min(420px,calc(100vw - 28px));box-sizing:border-box;z-index:1100}
:root #game-shell .terminal-dock-physical{padding-top:12px!important}
:root #game-shell .scene-module{align-items:flex-start!important}
:root #game-shell :is(.inventory-row4871,.service-card4882){grid-template-rows:auto!important;align-items:start!important;gap:4px 8px!important;padding:9px!important}
:root #game-shell :is(.inventory-row4871,.service-card4882)>.action-icon484,:root #game-shell .pixel4871{align-self:start!important;grid-row:1!important;margin-top:2px}
:root #game-shell .service-copy4882,:root #game-shell .card-copy4883{min-width:0}
:root #game-shell .card-tail4883{display:flex!important;align-items:flex-end!important;gap:4px 8px;min-width:0}
:root #game-shell .card-tail4883>:first-child:not(.card-controls4883){flex:1 1 auto;min-width:0;margin-bottom:0!important}
:root #game-shell .card-tail4883>.card-controls4883{flex:0 0 auto;display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;min-height:0!important;grid-column:auto!important;align-self:flex-end}
:root #game-shell .card-tail4883>.service-material4882{margin:0!important}
:root #game-shell .card-controls4883:empty{display:none!important}
:root #game-shell .item-action4871{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:4px!important}
:root #game-shell .card-controls4883 .action-icon484{width:16px;height:16px;align-self:center!important;margin:0}
:root #game-shell .base-project4871{padding:9px!important;min-height:0!important}
:root #game-shell .service-material4882 small{margin:0!important}
:root #game-shell #vault-expansion4882{margin:0 0 10px!important}
:root #game-shell #vault-capacity{margin-bottom:4px!important}
:root #game-shell .vault-controls{align-items:flex-end!important;margin:6px 0!important}
:root #game-shell .vault-controls .row-actions{flex:none}
:root #game-shell .person-row{align-items:flex-start!important;position:relative;gap:8px}
:root #game-shell .person-meta{min-width:0;flex:1}
:root #game-shell .person-actions{display:inline-flex!important;gap:4px!important;margin:4px 0 0!important;padding:0!important;min-height:0!important}
:root #game-shell .person-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;padding:3px!important;font-size:0!important;border-radius:4px!important}
:root #game-shell .person-actions .action-icon484{width:17px;height:17px;margin:0}
:root #game-shell #creature-search4883{margin:12px 0 8px}
:root #game-shell #creature-search4883 h4{margin:0 0 7px!important}
:root #game-shell #creature-query4883{width:100%;box-sizing:border-box;min-width:0;height:32px;padding:6px 8px;font-size:11px;background:var(--pda-bg);color:var(--pda-fg);border:1px solid var(--pda-trim);border-radius:3px}
:root #game-shell #creature-count4883{display:block;margin:4px 0;color:var(--pda-muted);font-size:9px}
:root #game-shell #fauna-atlas-v37{padding:0!important;border:0!important}
:root #game-shell .creature-entry4883{background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-border)!important;border-radius:0!important;margin:0!important;padding:6px 0!important}
:root #game-shell .creature-entry4883 summary{display:flex;align-items:flex-start;gap:8px;cursor:pointer;list-style:none;padding:3px 20px 3px 0;position:relative}
:root #game-shell .creature-entry4883 summary::-webkit-details-marker{display:none}
:root #game-shell .creature-entry4883 summary:after{content:'+';position:absolute;right:3px;top:4px;font-size:14px}
:root #game-shell .creature-entry4883[open] summary:after{content:'−'}
:root #game-shell .creature-entry4883 summary>.action-icon484{width:22px;height:22px;flex:none;margin-top:2px}
:root #game-shell .creature-entry4883 summary strong{font-size:11px;color:var(--pda-fg)}
:root #game-shell .creature-entry4883 summary small{display:block;font-size:9px;color:var(--pda-muted);margin-top:3px}
:root #game-shell .creature-copy4883{padding:2px 0 3px 30px}
:root #game-shell .creature-copy4883 p{font-size:10px;line-height:1.65;margin:5px 0;word-break:keep-all;overflow-wrap:anywhere}
:root #game-shell .creature-copy4883>small{font-size:9px;color:var(--pda-muted)}
@media(pointer:coarse){:root #game-shell .person-actions button{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}}

:root #game-shell .production-inline4882>.card-controls4883{display:inline-flex!important;gap:4px;margin:0!important;padding:0!important;min-height:0!important}
:root #game-shell .production-order4882 .card-tail4883{margin:4px 0}
/* Menu glyphs are top-aligned with the title; only button glyphs are centered. */
:root #game-shell .scene-module>.action-icon484{align-self:start!important;margin-top:1px!important}

:root #game-shell .compact-panel4883{border:0!important;background:none!important;padding:10px 0!important;margin:8px 0!important}
:root #game-shell .compact-panel4883 .section-header{margin:0 0 7px!important;padding:0!important}
