/* Display geometry is independent of the selected internal render resolution. */
html body :is(.planet-globe-stage,.planet-country-stage,.biomatrix-world-stage,.r51-panel){box-sizing:border-box!important;width:min(100%,640px)!important;min-width:0!important;max-width:640px!important;min-height:0!important;max-height:640px!important;aspect-ratio:1;justify-self:center}
html body :is(.planet-globe-stage,.planet-country-stage){height:auto!important;overflow:hidden!important}
html body :is(#planetGlobeCanvas,#planetCountryCanvas){width:100%!important;max-width:640px!important;height:auto!important;max-height:640px!important;aspect-ratio:1;object-fit:contain}
html body .biomatrix-world-layout{grid-template-columns:minmax(0,640px) minmax(0,1fr)!important}
html body .r51-grid{grid-template-columns:repeat(2,minmax(0,640px))!important}
#r79-build-status,#r79-rights-status{display:block;padding:8px 0;color:#a9dcec;overflow-wrap:break-word}
#r79-plant-families{margin:14px 0 22px;min-width:0}
.r79-family-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.r79-family{min-width:0;padding:10px;border:1px solid #657787;border-radius:10px;background:linear-gradient(140deg,#142b3c,#08121d)}
.r79-family h4{margin:0 0 10px;min-height:36px;overflow-wrap:break-word}
html.r70-gui body button.r79-plant-preview{display:block;width:100%;padding:0!important;min-height:0!important;overflow:hidden;background:#0a131e!important;border:1px solid #456578!important;margin:8px 0;box-shadow:0 4px 14px #0005!important;cursor:zoom-in}
.r79-plant-preview img{display:block!important;width:100%!important;height:auto!important;max-width:640px!important;max-height:640px!important;aspect-ratio:16/9;object-fit:contain!important}
.r79-plant-preview span{display:block;padding:5px 7px;text-align:left;line-height:1.5;overflow-wrap:break-word}
[data-r79-locked=true]{opacity:.65;cursor:pointer!important}
#book59-special-r74 :is(.book59-presentation>div,.r75-documents){min-width:0;width:auto;max-width:100%;word-break:normal;overflow-wrap:break-word}
#r79-helium{margin:16px 0;padding:14px;border:1px solid #719dba;border-radius:10px;background:#0b1b29;min-width:0}
.r79-helium-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.r79-helium-fields label{display:grid;min-width:0;gap:4px}.r79-helium-fields input{width:100%;min-width:0}
#r79-helium output{display:block;padding:12px 0;white-space:pre-line;line-height:1.6;color:#9be4c0}
#r79-helium[data-margin=negative] output{color:#ffc189}
#r79-helium a{display:inline-block;margin:4px}
@media(max-width:1050px){.r79-family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body .r51-grid,html body .biomatrix-world-layout{grid-template-columns:minmax(0,640px)!important}}
@media(max-width:520px){.r79-family-grid{grid-template-columns:minmax(0,1fr)}}
