.space-dock{position:absolute;left:18px;top:90px;width:360px;max-height:calc(100vh - 195px);overflow:auto;padding:14px;pointer-events:auto;z-index:4}.space-dock summary{cursor:pointer;font-weight:700}.space-dock p{font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.5}.space-dock:not([open]){top:calc(100vh - 155px);width:340px}.space-heading{position:absolute;top:20px;left:20px;right:20px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:auto}.space-heading h2{margin:4px 0;font-size:calc(26px * var(--ui-text-scale, 1))}.space-instruments,.space-navigation{position:absolute;top:135px;width:240px;padding:18px;pointer-events:auto;max-height:calc(100vh - 255px);overflow:auto}.space-instruments{left:20px}.space-navigation{right:20px;max-height:calc(100vh - 315px)}.space-navigation button{width:100%;margin:6px 0}.space-instruments p,.space-navigation p{font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.7}.space-controls{position:absolute;bottom:20px;left:20px;right:20px;display:flex;justify-content:space-around;gap:12px;padding:18px;font-size:calc(13px * var(--ui-text-scale, 1));pointer-events:auto}.space-notice{position:absolute;bottom:85px;left:50%;transform:translate(-50%);max-width:520px;width:60%;padding:12px 16px;background:#102b3aee;border:1px solid #659b9d;border-radius:12px;font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.5;text-align:center}.ship-offer{margin-top:16px;border-top:1px solid #527976;padding-top:12px}.ship-swatch{color:var(--ship-color);font-size:48px;text-align:center;background:#142d3c;border-radius:12px}#ship-viewport{position:absolute;inset:100px 16px 180px 340px;pointer-events:auto;outline:none}@media(max-width:740px){.space-heading h2{font-size:calc(18px * var(--ui-text-scale, 1))}.space-instruments,.space-navigation{width:190px;padding:12px}.space-heading{flex-wrap:wrap}.space-notice{width:80%}.space-controls{font-size:calc(11px * var(--ui-text-scale, 1));flex-wrap:wrap}#ship-viewport{left:285px}.space-dock{width:290px}}.space-star-map{position:absolute;left:50%;top:125px;transform:translate(-50%);width:min(620px,90vw);max-height:calc(100vh - 235px);overflow:auto;padding:15px;pointer-events:auto;z-index:6}.space-star-map summary,.space-biology summary{cursor:pointer;font-weight:700}.space-star-map:not([open]){inset:auto 20px 91px auto;transform:none;width:240px}.space-star-map svg{width:46%;float:left;position:sticky;top:0}.space-star-list{margin-left:48%}.space-star-list section,.space-cargo section,.space-specimen{border-top:1px solid #44616b;padding:9px 0}.space-star-list button,.space-biology button{width:100%;margin-top:6px}.space-biology{border-top:1px solid #44616b;padding-top:12px}.space-biology select{width:100%;font-size:calc(12px * var(--ui-text-scale, 1));margin:8px 0;padding:7px;background:#193744;color:#edf6e9;border:1px solid #678990;border-radius:5px}.space-biology .tiny{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.55}.space-notice{max-width:470px;width:47%}.space-cargo{margin-top:12px}@media(max-width:740px){.space-star-map:not([open]){width:190px}.space-star-map svg{width:100%;float:none;position:static;max-height:150px}.space-star-list{margin-left:0}.space-notice{bottom:135px;width:75%}}.space-climate{border-top:1px solid #ffffff25;margin-top:14px;padding-top:12px}.space-climate summary{cursor:pointer;font-weight:700;font-size:calc(13px * var(--ui-text-scale, 1))}.space-climate svg{width:100%;max-height:190px;margin-top:8px}.space-climate svg text{fill:#daeeee;font-size:calc(9px * var(--ui-text-scale, 1))}.space-climate-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px}.space-climate-tools button{font-size:calc(11px * var(--ui-text-scale, 1));padding:8px 5px;min-width:0;min-height:40px}.space-climate-tools button:last-child{grid-column:1/-1}.space-climate-tools .selected{border-color:#e5d7a4;background:#33595a}.space-habitats section{border-top:1px solid #ffffff1b;padding:7px 0;font-size:calc(12px * var(--ui-text-scale, 1))}.space-habitats p{margin:4px 0}.space-habitats .locked{opacity:.65}.ecology-stable{color:#b5e6b0}.space-life-events{border-top:1px solid #ffffff25;margin-top:8px}.space-economy{border-top:1px solid #ffffff25;margin-top:14px;padding-top:12px}.space-economy summary{cursor:pointer;font-size:calc(13px * var(--ui-text-scale, 1));font-weight:700}.space-economy .tiny{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.55}.space-economy h4{font-size:calc(12px * var(--ui-text-scale, 1));margin:15px 0 5px}.space-economy button{width:100%;font-size:calc(12px * var(--ui-text-scale, 1));margin:5px 0;min-height:36px}.space-economy button:disabled{opacity:.48}.space-product{color:var(--product-color)}.space-product-cargo{border-top:1px solid #ffffff20;padding:8px 0;font-size:calc(12px * var(--ui-text-scale, 1))}.space-diplomacy{border-top:1px solid #a2c5c333;margin-top:12px;padding-top:12px}.space-diplomacy summary{cursor:pointer;font-weight:700}.space-diplomacy h4{margin:12px 0 6px}.space-diplomacy button{width:100%;margin:4px 0}.space-empire-overview{border-top:1px solid #a2c5c333;margin-top:12px}#space-inheritance{margin-top:12px}.space-outfit{border-top:1px solid #d9ece229;margin-top:12px;padding-top:10px}.space-outfit summary{cursor:pointer;font-weight:700}.space-equipment{border-top:1px solid #d9ece21c;padding-top:6px;margin-top:8px}.space-equipment h4{margin:6px 0;color:#cfe7b5}.space-equipment button{width:100%;white-space:normal}#space-events{border-top:1px solid #e3ba7140;margin-top:12px;padding-top:10px}#space-events summary{cursor:pointer;font-weight:700}#space-events h3,#space-events h4{margin:7px 0}.space-quarantine,.space-event-alert{border-left:3px solid #ffc978;padding-left:10px;margin:10px 0}.space-quarantine-target{color:#ffcf8b}.space-discoveries section{margin-top:.8rem;padding-top:.6rem;border-top:1px solid #95cfc52a}.space-discovery-mark{color:#b6e3ed}.space-core{border-top:1px solid #e6cf8240;padding-top:8px;margin-top:8px}.space-core summary{color:#e6cf82}.space-core .tiny{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.55}.space-core button{font-size:calc(12px * var(--ui-text-scale, 1));min-height:36px;margin:4px 0}.space-core #space-core-history{margin-top:8px;font-size:calc(11px * var(--ui-text-scale, 1))}.building-library{position:absolute;inset:24px;overflow:auto;padding:24px;pointer-events:auto;background:#142e36f5}.building-library header,.building-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.building-library input[type=file]{display:block;font-size:calc(11px * var(--ui-text-scale, 1));max-width:210px}.building-library h2,.building-heading h2{margin:4px 0}.building-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px}.building-cards article{border:1px solid #91b6b744;border-radius:12px;padding:14px;background:#22434a}.building-cards svg{height:150px;width:100%;background:#bed4d5;border-radius:8px}.building-cards h3{margin-bottom:4px}.building-editor{position:absolute;inset:0;display:grid;grid-template-columns:310px 1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;padding:14px;pointer-events:none}.building-heading{grid-column:1/-1;padding:10px 16px;pointer-events:auto;background:#142e36}.building-controls{grid-column:1;overflow:auto;padding:16px;pointer-events:auto;background:#142e36f5}.building-controls input,.building-controls select{width:100%;margin-top:4px;padding:6px;min-width:0}.building-controls label{display:block;font-size:calc(12px * var(--ui-text-scale, 1))}.building-controls h3{margin:16px 0 8px}.building-add,.building-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.building-parts{display:flex;flex-wrap:wrap;gap:4px;margin-top:12px}.building-parts button{font-size:calc(11px * var(--ui-text-scale, 1));padding:6px;background:#2d4e56}.building-parts [aria-pressed=true]{outline:2px solid #f3d18e}.building-controls input[type=color]{height:32px;padding:2px}.building-footer{grid-column:1/-1;pointer-events:auto;padding:10px 16px;background:#142e36}.building-footer p{margin:6px 0}.building-notice{min-height:18px;color:#f3d18e;font-size:calc(13px * var(--ui-text-scale, 1))}#building-viewport{grid-column:2;grid-row:2;pointer-events:auto;touch-action:none;min-height:80px;outline-offset:-3px}.building-editor button{font-size:calc(12px * var(--ui-text-scale, 1));padding:8px 12px}.building-editor .row,.building-library .row{flex-wrap:wrap;gap:6px}@media(max-width:1050px){.building-editor{grid-template-columns:270px 1fr;padding:8px;gap:8px}.building-heading{padding:7px 12px}.building-heading h2{font-size:calc(22px * var(--ui-text-scale, 1))}.building-footer{padding:6px 12px}.building-footer .tiny{font-size:calc(10px * var(--ui-text-scale, 1))}.building-controls{padding:12px}.building-library{inset:12px;padding:16px}}@media(max-height:640px){.building-footer p{line-height:1.35}.building-controls h3{margin-top:10px}.building-heading h2{font-size:calc(20px * var(--ui-text-scale, 1))}}.travel-atlas{position:absolute;inset:0;background:#102a31;color:#eef6df;padding:24px 32px;overflow:auto;pointer-events:auto}.travel-atlas header{display:flex;justify-content:space-between;align-items:center;gap:16px}.travel-atlas h1{font-size:calc(30px * var(--ui-text-scale, 1));margin:6px 0}.travel-atlas p{line-height:1.5}.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.atlas-layout aside{position:static;padding:20px}.atlas-layout aside button{width:100%;margin-top:8px}.atlas-layout input{display:block;width:100%;margin-top:8px}.atlas-layout label{font-size:calc(12px * var(--ui-text-scale, 1))}.atlas-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}#travel-map{width:100%;height:auto;aspect-ratio:2;background:#183a48;border:1px solid #668b88;border-radius:8px;cursor:crosshair}#travel-map rect[data-cell]:hover{filter:brightness(1.4)}.travel-availability{min-height:76px;color:#ffdfa0}.field-panel{position:absolute;left:24px;top:115px;width:285px;padding:20px;pointer-events:auto}.field-panel h2{margin:6px 0}.field-panel p,.field-panel li{font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.6}.field-panel ol{padding-left:18px}.field-notice{position:absolute;bottom:28px;left:50%;transform:translate(-50%);max-width:560px;width:max-content;padding:14px 20px;background:#102a31ed;border:1px solid #7bb0a0;border-radius:10px;line-height:1.5;font-size:calc(14px * var(--ui-text-scale, 1))}.travel-shortcut{pointer-events:auto}.travel-return-notice{position:absolute;bottom:100px;left:50%;transform:translate(-50%);max-width:440px;padding:10px;background:#12332bea;border-radius:8px;pointer-events:none}@media(max-width:1050px){.travel-atlas{padding:16px}.atlas-layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.travel-atlas h1{font-size:calc(24px * var(--ui-text-scale, 1))}.atlas-layout aside{padding:14px}.field-panel{left:16px;width:245px}.field-notice{max-width:460px;bottom:16px}.travel-atlas header .row{flex-wrap:wrap}}@media(max-width:740px){.atlas-layout{grid-template-columns:1fr}.travel-atlas header{align-items:flex-start}.field-panel{top:130px}.field-notice{max-width:90%;width:90%}}.field-topbar .toolbar button{background:#173d46;color:#edf8e5;border-color:#568478}.field-radar{width:105px;height:105px;float:right;margin:0 0 8px 8px;border:1px solid #5d8480;border-radius:7px}.field-panel{max-height:calc(100vh - 185px);overflow:auto}.field-panel ol{clear:both}.atlas-layout h2{font-size:calc(28px * var(--ui-text-scale, 1));margin:12px 0}.atlas-layout h3{margin:4px 0}.atlas-layout p{margin:10px 0}.travel-availability{min-height:65px}.field-radar{width:80px;height:80px}.field-panel{padding:16px}.field-panel p{margin:10px 0}.city-panel{position:absolute;right:24px;top:115px;width:300px;max-height:calc(100vh - 210px);overflow:auto;padding:18px;pointer-events:auto}.city-panel h2{font-size:calc(24px * var(--ui-text-scale, 1));margin:8px 0}.city-panel p{font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.55;margin:10px 0}.city-panel input{width:100%;margin-top:6px}.city-panel label{font-size:calc(13px * var(--ui-text-scale, 1))}.city-panel button{width:100%;margin-top:8px}.city-condition{color:#ffdfa0;min-height:60px}.city-identity{overflow-wrap:anywhere;font-size:calc(12px * var(--ui-text-scale, 1))!important}.city-list{padding:12px 0}.city-list ul{list-style:none;padding:0;display:flex;gap:8px;flex-wrap:wrap;max-height:180px;overflow:auto}.city-list [aria-pressed=true]{border-color:#ffda80;background:#34574e}.city-selected{padding:16px;background:#1c3b40;border:1px solid #648b80;border-radius:10px}.city-selected p{font-size:calc(13px * var(--ui-text-scale, 1))}.city-panel summary{cursor:pointer;font-size:calc(13px * var(--ui-text-scale, 1))}.city-panel .tiny{font-size:calc(12px * var(--ui-text-scale, 1))}@media(max-width:1050px){.city-panel{right:16px;width:260px;padding:14px}.field-notice{bottom:12px;max-width:600px;padding:10px 16px;font-size:calc(13px * var(--ui-text-scale, 1))}}@media(max-width:740px){.city-panel{top:auto;bottom:80px;max-height:35vh;width:245px}.field-panel{max-height:35vh}}.city-panel:has(#city-economy){width:350px;max-height:calc(100vh - 200px)}.city-economy-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:calc(13px * var(--ui-text-scale, 1));padding:10px;background:#254b4a;border-radius:8px}.city-panel h3{font-size:calc(18px * var(--ui-text-scale, 1));margin:14px 0 8px}.city-panel details{margin:10px 0}.city-panel details>summary{padding:5px 0}.city-panel .city-last{border-left:3px solid #9bd6aa;padding-left:10px}.city-warning{color:#ffdfa0}.city-economy-actions,.city-kind{display:grid;grid-template-columns:1fr 1fr;gap:5px}.city-panel .city-kind button,.city-panel .city-economy-actions button{font-size:calc(12px * var(--ui-text-scale, 1));padding:8px 5px}.city-kind [aria-pressed=true],.city-lots [aria-pressed=true]{outline:2px solid #ffe39d;outline-offset:-2px}.city-lots{display:grid;grid-template-columns:repeat(11,1fr);grid-template-rows:repeat(11,24px);gap:2px;background:#153b40;padding:5px;border-radius:8px}.city-panel .city-lot{font-size:calc(10px * var(--ui-text-scale, 1));min-width:0;min-height:0;padding:0;margin:0;background:#34615d;color:#edebd3;border:1px solid #638b7e;border-radius:3px}.city-lots>span{display:grid;place-items:center;font-size:calc(11px * var(--ui-text-scale, 1));color:#ffe39d;pointer-events:none}.city-lots>span[title=Radnice]{background:#34615d;z-index:1}.city-confirm{padding:10px;border:2px solid #ffe39d;border-radius:8px;background:#234447}.city-confirm[hidden]{display:none}.city-buildings{padding:0;list-style:none}.city-buildings li{font-size:calc(13px * var(--ui-text-scale, 1));margin:8px 0;padding:8px;border-bottom:1px solid #567474}.city-panel .city-buildings button{font-size:calc(12px * var(--ui-text-scale, 1));padding:6px}@media(max-width:1050px){.city-panel:has(#city-economy){right:12px;width:320px;padding:12px}.city-lots{grid-template-rows:repeat(11,23px)}.field-panel:has(+.city-panel #city-economy){width:210px}}@media(max-width:740px){.city-panel:has(#city-economy){width:300px;max-height:45vh;bottom:80px}}.field-panel h2{font-size:calc(24px * var(--ui-text-scale, 1));line-height:1.2}.state-card{border-left:4px solid;padding:0 0 8px 12px;margin:16px 0}.state-card h4{margin:0}.state-card small{overflow-wrap:anywhere}.state-card ul,.state-card ol{padding-left:20px}.city-owner{font-weight:700}.incoming-home{position:fixed;left:50%;transform:translate(-50%);top:82px;width:min(310px,30vw);max-height:170px;overflow:auto;z-index:6;padding:12px}.incoming-raid{border-left:3px solid #ef827e;padding-left:10px}.incoming-raid p{margin:6px 0}#military-panel small{display:block;margin:2px 0 7px}.campaign-heading{display:flex;flex-direction:column;align-items:center;gap:3px}.campaign-heading .chapter-pill{padding:5px 18px;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.25}.planet-location{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 12px;border-radius:6px;background:#0d2937f2;color:#e6f1e8;border:1px solid #bbdbcf65;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.3}.planet-location strong{color:#f4d9a3;font-weight:600}.planet-location:hover{background:#234856}.planet-location:focus-visible{outline:2px solid #f4d9a3;outline-offset:3px}.home-planet{padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid var(--line)}.home-planet li{font-size:calc(14px * var(--ui-text-scale, 1));line-height:1.8}.home-planet [aria-current]{color:#f4d9a3;font-weight:600}@media(max-width:760px){.planet-location{flex-wrap:wrap;gap:3px 8px;max-width:260px}}.culture-editor{position:absolute;inset:0;pointer-events:none;color:var(--cream)}.culture-header{position:absolute;left:28px;right:28px;top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:auto}.culture-header h1{font-size:calc(30px * var(--ui-text-scale, 1));margin:0}.culture-header p{font-size:calc(12px * var(--ui-text-scale, 1));margin:6px 0;color:var(--mint)}.culture-left,.culture-right{position:absolute;top:108px;bottom:62px;padding:18px;pointer-events:auto;overflow:auto;scrollbar-width:thin;background:#142e39ee}.culture-left{left:28px;width:290px;display:flex;flex-direction:column;overflow:hidden}.culture-left>label,.culture-left>input,.culture-left>.row,.culture-left>p{flex-shrink:0}.culture-options{min-height:0;overflow:auto;scrollbar-width:thin}.culture-right{right:28px;width:320px}.culture-editor h2{font-size:calc(18px * var(--ui-text-scale, 1));margin:8px 0 12px}.culture-editor small{font-size:calc(11px * var(--ui-text-scale, 1));font-weight:400}.culture-editor p{line-height:1.55}.culture-left label,.culture-editor legend{font-size:calc(13px * var(--ui-text-scale, 1));font-weight:600}.culture-left input{display:block;width:100%;box-sizing:border-box;margin:8px 0 16px;padding:10px;border:1px solid #8cbcbf70;background:#122a33;color:var(--cream);border-radius:6px}.culture-editor fieldset{border:0;border-top:1px solid #a3cebb38;margin:14px 0 0;padding:10px 0 0}.culture-editor legend{padding-right:10px}.culture-editor legend small{opacity:.7;margin-left:4px}.culture-editor button{font-size:calc(12px * var(--ui-text-scale, 1));letter-spacing:0}.culture-editor .secondary{padding:9px 10px}.culture-editor .active{border-color:#aee6c5;background:#4c827c55;box-shadow:inset 3px 0 #aee6c5}.culture-part{display:block;width:100%;text-align:left;background:#193b48;border:1px solid #aacfb04a;border-radius:6px;padding:11px 10px;margin:7px 0}.culture-part strong{display:flex;justify-content:space-between;gap:6px;font-size:calc(12px * var(--ui-text-scale, 1))}.culture-part strong span{font-weight:400;white-space:nowrap;color:#f0ce85}.culture-part small{display:block;line-height:1.5;color:#c4d6d4;margin-top:6px}.culture-colors{display:flex;gap:6px}.culture-colors button{flex:1;background:#193743;border:1px solid #aecdc34a;border-bottom:4px solid var(--dye);border-radius:5px;padding:9px 3px;font-size:calc(11px * var(--ui-text-scale, 1))}.culture-preview-label{position:absolute;top:112px;left:338px;right:368px;text-align:center;text-shadow:0 2px 6px #001a22}.culture-preview-label h2{font-size:calc(23px * var(--ui-text-scale, 1))}.culture-preview-label p{font-size:calc(12px * var(--ui-text-scale, 1));margin:6px 0}.culture-preview-label .row{justify-content:center;pointer-events:auto}.culture-library{display:grid;gap:5px;max-height:120px;overflow:auto}.culture-library button{display:flex;justify-content:space-between;gap:10px;text-align:left}.culture-right .spread h2{margin:0}.culture-file-row{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 20px}.culture-file-row .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:7px}.culture-import{cursor:pointer;position:relative;overflow:hidden}.culture-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.culture-import:focus-within{outline:2px solid #e5efbd}.culture-members{display:grid;gap:5px;max-height:150px;overflow:auto}.culture-member{background:#183743;border:1px solid #afcfb33b;border-radius:5px;padding:8px 10px;text-align:left}.culture-member span{display:block;font-size:calc(10px * var(--ui-text-scale, 1));margin-top:4px;line-height:1.5;color:#c1d1c9}.culture-price{border-top:1px solid #a4cbb33d;margin-top:16px;padding-top:14px}.culture-price>strong{font-size:calc(22px * var(--ui-text-scale, 1));color:#f0ce85}.culture-price>p{font-size:calc(12px * var(--ui-text-scale, 1))}.culture-price .tiny{font-size:calc(10px * var(--ui-text-scale, 1))}.culture-price button{margin:3px 4px 0 0}.culture-feedback{position:absolute;bottom:18px;left:28px;right:28px;text-align:center;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5;color:#d0e6cb;pointer-events:auto}.worn-culture{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5;margin:10px 0;padding:7px 9px;border-left:2px solid #d6c589;background:#25474780}.worn-culture span{display:block;font-size:calc(10px * var(--ui-text-scale, 1));color:#c0d6c7}@media(max-height:780px){.culture-header{top:12px}.culture-header h1{font-size:calc(25px * var(--ui-text-scale, 1))}.culture-header p{margin:4px 0}.culture-left,.culture-right{top:83px;bottom:51px;padding:14px}.culture-preview-label{top:89px}.culture-part{padding:8px;margin:5px 0}.culture-part small{font-size:calc(10px * var(--ui-text-scale, 1))}.culture-editor fieldset{margin-top:10px;padding-top:7px}.culture-left input{margin:5px 0 10px;padding:8px}.culture-file-row{margin:8px 0 12px}.culture-price{margin-top:10px;padding-top:10px}.culture-feedback{bottom:12px}.culture-members{max-height:123px}}@media(max-width:1000px){.culture-left{left:12px;width:240px}.culture-right{right:12px;width:265px}.culture-preview-label{left:272px;right:297px}.culture-header{left:12px;right:12px}.culture-header p{max-width:55vw}.culture-feedback{left:12px;right:12px}}.culture-left>.culture-color-options{flex-shrink:0}.culture-options fieldset:first-child{margin-top:0}.creature-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:18px}.creature-library-card{padding:18px;border:1px solid #cbe8d12b;border-radius:14px;background:#17362ee8;min-width:0}.creature-library-card h3,.creature-library-card p{overflow-wrap:anywhere}.creature-library-card .row{flex-wrap:wrap;gap:7px;margin-top:14px}.creature-library-card button{font-size:calc(11px * var(--ui-text-scale, 1));padding:9px 12px}.creature-thumbnail{display:block;width:100%;height:115px;padding:8px;background:#0f2627;border-radius:9px}.library-toolbar{flex-wrap:wrap;gap:12px}.library-import{position:relative;cursor:pointer;padding:12px 18px;border:1px solid #cbe8d14a;border-radius:8px}.library-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.library-empty{padding:24px;border:1px dashed #cbe8d14a;border-radius:10px}.library-description{display:block;margin-top:12px}.library-description input{width:100%}.library-footer-label{font-size:calc(18px * var(--ui-text-scale, 1));color:var(--mint)}.planet-status{gap:24px}.planet-vehicle,.planet-community{position:absolute;top:218px;bottom:136px;width:290px;padding:20px;overflow:auto;pointer-events:auto}.planet-vehicle{left:30px}.planet-community{right:30px;top:108px;width:310px}.planet-vehicle h3,.planet-community h3{font-size:calc(23px * var(--ui-text-scale, 1));margin:12px 0}.planet-vehicle .tiny,.planet-community .tiny,.planet-map .tiny{line-height:1.6}.planet-vehicle>.secondary{width:100%;margin:8px 0}.planet-atlas{width:160px;height:160px;display:block;margin:14px auto}.planet-atlas rect{fill:#254d49;stroke:#8abb9c55}.planet-atlas circle{fill:#d8b77e;stroke:#e3f2d0}.planet-atlas circle.alive{fill:#aaddac}.planet-atlas text{font:10px sans-serif;fill:#dce8bf}.planet-position{fill:#fff}.planet-base-actions,.planet-nursery-actions{display:grid;gap:5px}.planet-base-actions .secondary,.planet-nursery-actions .secondary{padding:8px;font-size:calc(10px * var(--ui-text-scale, 1))}.planet-biome-tabs{display:grid;gap:6px}.planet-biome-tabs>button{padding:8px;text-align:left;font-size:calc(11px * var(--ui-text-scale, 1));background:#24433f;border:1px solid #80948055}.planet-biome-tabs>button.active{border-color:var(--mint)}.planet-trophic{margin-top:17px;padding-top:14px;border-top:1px solid #bacdaf33}.planet-trophic>.secondary,.planet-community>.secondary{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.5;padding:8px;margin-top:6px;width:100%;text-align:left}.planet-life-row{display:flex;justify-content:space-between;gap:8px;font-size:calc(11px * var(--ui-text-scale, 1));margin:8px 0}.planet-life-row small,.planet-catalog small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));opacity:.7;margin-top:4px}.planet-life-row>button{padding:0 7px;align-self:start;background:none}.planet-controls{display:flex;align-items:center;justify-content:space-around;gap:12px;font-size:calc(12px * var(--ui-text-scale, 1))}.planet-controls .secondary{padding:11px}.planet-map{position:absolute;inset:218px 370px 136px 350px;display:grid;grid-template-columns:minmax(190px,1fr) minmax(180px,1fr);gap:22px;padding:24px;pointer-events:auto;overflow:auto;background:#14343bee}.planet-map h2{margin:14px 0 0;font-size:calc(29px * var(--ui-text-scale, 1))}.planet-map h3{font-size:calc(24px * var(--ui-text-scale, 1));line-height:1.2}.planet-climate{width:100%;max-width:350px;margin:20px auto;display:block}.planet-climate circle{fill:#8eb88c0d;stroke:#8fb59b88;stroke-width:1}.planet-climate path{stroke:#9fae8855;stroke-width:1;fill:none}.planet-climate text{font:9px sans-serif;fill:#d4deba}.planet-climate circle.planet-climate-point{fill:#f5d990;stroke:#ffffd0;stroke-width:2}.planet-catalog{max-height:340px;overflow:auto}.planet-catalog p{padding:10px 0;border-bottom:1px solid #9dab8b33;margin:0;font-size:calc(11px * var(--ui-text-scale, 1))}@media(max-width:1250px){.planet-vehicle{width:240px;left:18px;padding:15px}.planet-community{right:18px;width:270px;padding:15px}.planet-map{left:280px;right:307px;display:block;padding:18px}.planet-map>.planet-catalog{max-height:160px}.planet-climate{max-width:230px}.planet-controls{gap:5px}.planet-controls .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px}.planet-status{gap:15px}}@media(max-height:780px){.planet-vehicle{top:180px;bottom:110px}.planet-community{top:88px;bottom:110px}.planet-map{top:180px;bottom:110px}.planet-atlas{width:110px;height:110px}.planet-vehicle h3,.planet-community h3{font-size:calc(20px * var(--ui-text-scale, 1))}.planet-map h2{font-size:calc(24px * var(--ui-text-scale, 1))}.planet-map{padding:18px}.planet-climate{margin:8px auto}}:root{--sans:Inter,"Avenir Next","Segoe UI",sans-serif;--serif:Georgia,"Times New Roman",serif;--ink:#e6f1e4;--muted:#adc8c1;--mint:#c4eacc;--gold:#efcea0;--panel:#102f3cdc;--line:#c6e4d029}.journey-source-label{position:absolute;transform:translate(-50%,-100%);pointer-events:none;padding:7px 11px;background:#12323be8;border:1px solid #e1cda27a;border-radius:6px;text-align:center;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.45;color:#f0dec0;max-width:190px;box-shadow:0 3px 14px #061d2940}.journey-source-label:after{content:"";position:absolute;top:100%;left:50%;height:18px;border-left:1px solid #e1cda2ad}.journey-source-label small{display:block;font-size:calc(10px * var(--ui-text-scale, 1));color:#dcebdc;margin-top:2px}.journey-source-label.ready{border-color:#c8eabb;color:#d9f4ca}.secondary-care{display:block;border-top:1px solid #c4dfd532;padding-top:7px;margin-top:9px;max-width:350px;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.6;color:#e4d4af}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:var(--sans);background:#102c36;color:var(--ink);font-size:calc(14px * var(--ui-text-scale, 1))}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{opacity:.37;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button,input,select{accent-color:var(--mint)}input,select{background:#ffffff09;color:var(--ink);border:1px solid #ceeade35;border-radius:7px;padding:10px}select option{background:#17353e}input[type=range]{padding:0;width:100%;height:18px}input[type=checkbox]{width:17px;height:17px}button{transition:background .16s,transform .16s}button:hover:not(:disabled){filter:brightness(1.1)}#world{position:absolute;inset:0;width:100%;height:100%;outline:none}#ui{position:absolute;inset:0;pointer-events:none}#ui button,#ui input,#ui select,#ui label,#ui .panel,#ui a{pointer-events:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--serif);font-weight:400}h1{font-size:clamp(60px,8vw,130px);letter-spacing:-.055em;line-height:.9}h2{font-size:calc(40px * var(--ui-text-scale, 1));letter-spacing:-.035em;line-height:1.1}h3{font-size:calc(25px * var(--ui-text-scale, 1));margin-bottom:12px}.eyebrow{text-transform:uppercase;font-size:calc(10px * var(--ui-text-scale, 1));letter-spacing:.22em;color:var(--mint);font-weight:650}.muted{color:var(--muted)}.tiny{font-size:calc(11px * var(--ui-text-scale, 1));color:var(--muted)}.brand{font-size:calc(18px * var(--ui-text-scale, 1));letter-spacing:.24em;font-weight:600;display:flex;align-items:center;gap:12px}.sigil{width:24px;height:34px;border:1px solid var(--mint);border-radius:80% 20%;transform:rotate(-15deg);display:inline-grid;place-items:center;color:var(--mint);font-size:calc(18px * var(--ui-text-scale, 1))}.topbar{position:absolute;left:34px;right:34px;top:26px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar small{display:block;letter-spacing:.2em;font-size:calc(8px * var(--ui-text-scale, 1));font-weight:400;color:#d7e7df99;margin-top:6px}.chapter-pill{border:1px solid #bbdbcf38;border-radius:30px;display:flex;gap:16px;align-items:center;padding:11px 22px;background:#0a283557;backdrop-filter:blur(12px)}.chapter-pill b{font-weight:400;color:var(--gold);font-size:calc(12px * var(--ui-text-scale, 1))}.chapter-pill span{font-size:calc(11px * var(--ui-text-scale, 1));letter-spacing:.12em}.toolbar{display:flex;gap:8px}.icon-btn{width:38px;height:38px;border-radius:50%;border:1px solid #bbdbcf38;background:#0a283566;font-size:calc(16px * var(--ui-text-scale, 1));display:grid;place-items:center}.primary,.secondary{border-radius:7px;padding:14px 24px;display:inline-flex;gap:20px;align-items:center;justify-content:space-between;font-size:calc(12px * var(--ui-text-scale, 1));letter-spacing:.055em;font-weight:650}.primary{background:var(--mint);color:#153c40}.secondary{background:#c0e0cf0a;border:1px solid #c4e5d336}.danger{border-color:#e9978870;color:#f5b0a0}.wide{width:100%}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;gap:12px;align-items:center}.spread{justify-content:space-between}.panel{background:var(--panel);backdrop-filter:blur(20px);border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 80px #00101820}.menu-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0b283bee,#103344af 36%,#13354405 75%),linear-gradient(0deg,#071d30c9,transparent 38%)}.menu-copy{position:absolute;left:8vw;top:26%;width:430px;max-width:42vw}.menu-copy h1{margin:27px 0 25px}.menu-copy .intro{font-family:var(--serif);font-size:calc(25px * var(--ui-text-scale, 1));line-height:1.35;color:#ddede3;margin-bottom:25px;max-width:360px}.menu-copy .description{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.8;color:var(--muted);max-width:350px;margin-bottom:28px}.menu-seed{display:flex;align-items:center;gap:12px;margin-top:18px}.menu-seed input{width:138px;font-size:calc(11px * var(--ui-text-scale, 1))}.menu-footer{position:absolute;bottom:25px;left:34px;right:34px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px 24px;font-size:calc(9px * var(--ui-text-scale, 1));letter-spacing:.15em;color:#d5e3dc88;text-transform:uppercase}.hero-caption{position:absolute;right:8vw;bottom:17%;text-align:right;max-width:220px}.hero-caption .line{width:40px;height:1px;background:var(--gold);margin:0 0 12px auto}.hero-caption h3{font-size:calc(21px * var(--ui-text-scale, 1));margin:8px 0}.hud-vignette{position:absolute;inset:0;box-shadow:inset 0 0 150px #031b2a45;pointer-events:none}.biome-title{position:absolute;top:100px;left:35px}.biome-title h3{font-size:calc(27px * var(--ui-text-scale, 1));margin:6px 0}.biome-title .sub{font-size:calc(11px * var(--ui-text-scale, 1));letter-spacing:.045em;color:#d1e4dfad}.vitals{position:absolute;left:30px;bottom:95px;width:236px;padding:18px 20px}.vitals-name{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.vitals-name strong{font-family:var(--serif);font-size:calc(25px * var(--ui-text-scale, 1));font-weight:400}.vitals-name span{font-size:calc(9px * var(--ui-text-scale, 1));color:var(--muted)}.meter-label{display:flex;justify-content:space-between;font-size:calc(9px * var(--ui-text-scale, 1));margin:9px 0 5px;letter-spacing:.06em;color:#d1ded8}.meter{height:4px;background:#b4ddcf18;border-radius:5px;overflow:hidden}.meter i{display:block;height:100%;background:var(--mint);transition:width .2s;border-radius:5px}.meter.health i{background:#eab09e}.meter.energy i{background:#e8d09b}.dna-number{font-size:calc(19px * var(--ui-text-scale, 1));color:var(--gold)}.objective{position:absolute;right:30px;top:112px;width:257px;padding:18px 20px}.objective-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.objective h3{font-size:calc(22px * var(--ui-text-scale, 1));margin-bottom:12px}.objective p{line-height:1.6;font-size:calc(11px * var(--ui-text-scale, 1));color:var(--muted)}.requirement{display:flex;align-items:center;gap:8px;font-size:calc(11px * var(--ui-text-scale, 1));padding:8px 0;border-top:1px solid #c8e7d512}.requirement .check{color:var(--gold);font-size:calc(13px * var(--ui-text-scale, 1))}.requirement .req-value{margin-left:auto;color:var(--muted);font-size:calc(10px * var(--ui-text-scale, 1))}.requirement.met .check{color:var(--mint)}.actions{position:absolute;bottom:22px;left:50%;transform:translate(-50%);display:flex;gap:7px;padding:8px;background:#0e2e36cc;border:1px solid #b3d9ce25;border-radius:10px;backdrop-filter:blur(18px)}.action{min-width:75px;padding:9px 12px;background:transparent;border-right:1px solid #c2decd1a;display:flex;align-items:center;gap:9px;color:#d3e6da;font-size:calc(10px * var(--ui-text-scale, 1))}.action:last-child{border:0}.action kbd,kbd{border:1px solid #d0e9d63a;border-radius:4px;padding:3px 5px;min-width:22px;text-align:center;font:10px var(--sans);color:var(--gold)}.compass{position:absolute;bottom:108px;right:31px;width:167px;height:167px;border-radius:50%;background:#0e2e36c4;border:1px solid #b3d9ce36;backdrop-filter:blur(12px)}.compass svg{width:100%;height:100%}.compass .caption{position:absolute;bottom:-22px;left:0;right:0;text-align:center;font-size:calc(9px * var(--ui-text-scale, 1));color:#dbecdf99;letter-spacing:.1em}.toast{position:absolute;left:50%;bottom:112px;transform:translate(-50%);max-width:500px;width:max-content;padding:12px 20px;background:#12353eef;border:1px solid #b6dcc537;border-radius:8px;text-align:center;font-size:calc(12px * var(--ui-text-scale, 1));color:#d9ebe0;line-height:1.5}.interaction-hint{position:absolute;left:50%;top:65%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;max-width:400px;text-shadow:0 2px 12px #031d28;font-size:calc(12px * var(--ui-text-scale, 1))}.interaction-hint b{display:block;font-family:var(--serif);font-size:calc(22px * var(--ui-text-scale, 1));font-weight:400;margin-bottom:8px}.modal-backdrop{position:absolute;inset:0;background:#031722a8;backdrop-filter:blur(9px);display:grid;place-items:center;pointer-events:auto;padding:25px}.modal{max-height:90vh;overflow:auto;width:560px;max-width:95vw;padding:32px}.pause-actions{flex-wrap:wrap}.pause-actions>button{flex:1 0 130px}.modal h2{margin:12px 0 18px}.modal p{line-height:1.7;color:var(--muted);font-size:calc(13px * var(--ui-text-scale, 1))}.modal .settings-row{margin:18px 0;display:grid;grid-template-columns:1fr 180px;align-items:center;gap:16px;font-size:calc(12px * var(--ui-text-scale, 1))}.controls-grid{display:grid;grid-template-columns:90px 1fr;gap:12px;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5;margin-bottom:24px}.save-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.save-row>div{flex:1}.save-row button{padding:9px 12px}.save-row strong{display:block;margin-bottom:5px;font-family:var(--serif);font-size:calc(20px * var(--ui-text-scale, 1));font-weight:400}.error{background:#ac5b4930;border:1px solid #edac8660;border-radius:6px;color:#ffd3b0;font-size:calc(12px * var(--ui-text-scale, 1));padding:10px;line-height:1.5}.editor-heading{position:absolute;left:30px;top:24px}.editor-heading h2{font-size:calc(30px * var(--ui-text-scale, 1));margin:8px 0}.editor-left{position:absolute;left:26px;top:115px;bottom:102px;width:268px;padding:17px;overflow:auto}.editor-right{position:absolute;right:26px;top:115px;bottom:102px;width:265px;padding:18px;overflow:auto}.editor-tools{position:absolute;right:28px;top:28px;display:flex;gap:10px}.editor-center-caption{position:absolute;left:310px;right:310px;top:100px;text-align:center;font-size:calc(10px * var(--ui-text-scale, 1));letter-spacing:.06em;color:var(--muted);line-height:1.8}.category-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:13px 0}.category-tabs button{padding:7px 8px;border-radius:5px;background:#bfd9cf0c;font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted)}.category-tabs .active{background:#b9decf26;color:var(--mint)}.part-card{width:100%;padding:11px 9px;text-align:left;background:#b2d5c706;border:1px solid #b7dacf17;border-radius:7px;margin-bottom:7px;display:grid;grid-template-columns:27px 1fr 28px;gap:6px;align-items:center}.part-card .glyph{font-size:calc(22px * var(--ui-text-scale, 1));color:var(--mint)}.part-card strong{display:block;font-size:calc(11px * var(--ui-text-scale, 1));font-weight:500;line-height:1.35}.part-card small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));color:var(--muted);line-height:1.35;margin-top:4px}.part-card em{font-style:normal;font-size:calc(11px * var(--ui-text-scale, 1));color:var(--gold)}.part-list{margin:12px 0;display:flex;flex-wrap:wrap;gap:5px}.part-chip{background:#b8dcca13;border:1px solid #bbdccc2b;padding:6px 8px;border-radius:5px;font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted)}.part-chip.active{border-color:var(--mint);color:var(--mint)}.editor-right label{display:block;font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted);margin:13px 0}.editor-right label .row{margin-bottom:6px}.editor-right h3{font-size:calc(22px * var(--ui-text-scale, 1));margin:15px 0 8px}.editor-right .part-detail{border-top:1px solid var(--line);margin-top:15px;padding-top:2px}.stat-row{display:flex;justify-content:space-between;margin:9px 0;font-size:calc(11px * var(--ui-text-scale, 1));color:var(--muted)}.stat-row b{font-weight:400;color:var(--ink)}.stat-row em{font-style:normal;color:var(--mint);font-size:calc(10px * var(--ui-text-scale, 1));margin-left:8px}.editor-footer{position:absolute;bottom:20px;left:26px;right:26px;min-height:67px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.editor-footer .cost{font-size:calc(21px * var(--ui-text-scale, 1));color:var(--gold)}.editor-footer small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));color:var(--muted);margin-top:3px}.editor-validation{max-width:40%;font-size:calc(11px * var(--ui-text-scale, 1));color:#edb8a2}.editor-body-name{position:absolute;left:310px;right:310px;bottom:128px;text-align:center}.editor-body-name h3{font-size:calc(30px * var(--ui-text-scale, 1));margin-bottom:5px}.lineage{border-left:1px solid #b8d7c74a;margin:25px 0 25px 6px;padding-left:22px}.lineage-item{position:relative;padding:0 0 19px;font-size:calc(12px * var(--ui-text-scale, 1));color:var(--muted)}.lineage-item:before{content:"";position:absolute;left:-27px;top:4px;width:8px;height:8px;background:var(--gold);border-radius:50%}.lineage-item strong{color:var(--ink);font-weight:400;display:block;margin-bottom:5px}.journal-patch{padding:12px 0;border-top:1px solid var(--line)}.journal-patch h3{font-size:calc(20px * var(--ui-text-scale, 1));margin-bottom:5px}.journal-patch p{font-size:calc(11px * var(--ui-text-scale, 1));margin:5px 0}.species-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.species-card{background:#c0e4cf09;border-radius:7px;padding:13px}.species-card strong{font-size:calc(12px * var(--ui-text-scale, 1))}.species-card p{font-size:calc(11px * var(--ui-text-scale, 1));margin:7px 0 0}.modal.large{width:780px}.notice{font-size:calc(11px * var(--ui-text-scale, 1));color:var(--gold);line-height:1.6}.loading{display:grid;place-items:center;height:100%;color:var(--mint)}[hidden]{display:none!important}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background:#cee6d534;border-radius:5px}@media(max-width:1100px){.topbar{left:20px;right:20px}.brand{font-size:calc(15px * var(--ui-text-scale, 1))}.chapter-pill{padding:10px 14px}.objective{width:222px;right:20px}.vitals{left:20px;width:205px}.actions{gap:2px}.action{padding:8px;min-width:65px}.editor-left{width:225px;left:15px}.editor-right{width:225px;right:15px}.editor-center-caption,.editor-body-name{left:250px;right:250px}.editor-footer{left:15px;right:15px}.editor-validation{max-width:30%}}@media(max-height:730px){.menu-copy{top:22%}.menu-copy h1{font-size:80px;margin:17px 0}.menu-copy .intro{font-size:calc(22px * var(--ui-text-scale, 1));margin-bottom:16px}.menu-copy .description{margin-bottom:17px}.editor-heading{top:15px}.editor-left,.editor-right{top:93px;bottom:91px}.editor-footer{bottom:13px}.vitals{bottom:89px;padding:14px 17px}.objective{top:98px;padding:15px}.biome-title{top:91px}.compass{width:139px;height:139px;bottom:105px}.editor-right label{margin:9px 0}}@media(max-width:760px){.chapter-pill{display:none}.brand{font-size:calc(13px * var(--ui-text-scale, 1))}.topbar{top:16px}.objective{top:91px;width:195px}.biome-title{max-width:170px;left:20px}.biome-title h3{font-size:calc(23px * var(--ui-text-scale, 1))}.vitals{width:183px;bottom:84px}.compass{width:120px;height:120px;bottom:95px}.actions{bottom:12px;max-width:95vw}.action{min-width:0;padding:7px;font-size:calc(9px * var(--ui-text-scale, 1));gap:4px}.action kbd{font-size:calc(8px * var(--ui-text-scale, 1));min-width:17px;padding:2px}.editor-left,.editor-right{width:180px;padding:11px}.editor-center-caption,.editor-body-name{left:203px;right:203px}.editor-validation{display:none}.menu-copy{max-width:60vw;left:6vw}.menu-copy h1{font-size:72px}.menu-copy .intro{font-size:calc(21px * var(--ui-text-scale, 1))}.hero-caption{display:none}.toast{max-width:80vw;bottom:88px}.modal{padding:24px}}.editor-consequences{position:absolute;left:310px;right:310px;bottom:104px;display:flex;justify-content:center;gap:22px;padding:12px 16px;pointer-events:none}.editor-consequences span{font-size:calc(9px * var(--ui-text-scale, 1));color:var(--muted)}.editor-consequences b{display:block;font-size:calc(13px * var(--ui-text-scale, 1));font-weight:500;color:var(--ink);margin:4px 0}.editor-consequences small{color:var(--mint);font-size:calc(9px * var(--ui-text-scale, 1))}.editor-consequences .compact-diet{max-width:150px}.editor-consequences .compact-diet b{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.5}.editor-body-name{bottom:205px}@media(max-width:1100px){.editor-consequences{left:250px;right:250px;gap:12px;padding:10px}.compact-diet{display:none}}@media(max-width:760px){.editor-consequences{left:203px;right:203px;gap:5px;flex-wrap:wrap}.editor-consequences b{font-size:calc(10px * var(--ui-text-scale, 1))}.editor-body-name{bottom:220px}}.preview-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:13px}.preview-controls button{padding:8px 13px;border:1px solid var(--line);border-radius:20px;background:#112d38d9;font-size:calc(11px * var(--ui-text-scale, 1));color:var(--muted)}.preview-controls button[aria-pressed=true]{background:var(--mint);color:#173e43;border-color:var(--mint)}.action.unavailable{opacity:.5}.interaction-hint{padding:10px 16px;border-radius:10px;background:#102f3a85;backdrop-filter:blur(8px);font-size:calc(11px * var(--ui-text-scale, 1))}.interaction-hint:empty{display:none}.interaction-hint b{font-size:calc(19px * var(--ui-text-scale, 1));margin-bottom:6px}.journey-problem{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.65;margin:12px 0 16px;color:#dce5d7}.journey-choice{display:flex;gap:9px;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.6;color:#accac1;margin:12px 0}.journey-choice span{color:#e8c88e;font-size:calc(17px * var(--ui-text-scale, 1))}.journey-threads{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:17px;color:#6c9490}.journey-threads i{height:1px;width:29px;background:#4a6d6a}.journey-threads .alive{color:#c5edac}.journey-entry{border-top:1px solid #a6cbaa30;padding:23px 0 12px}.journey-entry h3{margin-top:8px}.journey-entry p{font-size:calc(14px * var(--ui-text-scale, 1))}.journey-entry .journey-choice{font-size:calc(13px * var(--ui-text-scale, 1))}.interaction-hint{max-width:470px}.objective h3{font-size:calc(25px * var(--ui-text-scale, 1))}.vertical-approach{display:block;margin-top:7px;font-size:calc(12px * var(--ui-text-scale, 1));color:#d9ecd8;letter-spacing:.02em}#bond-status{line-height:1.6}.objective{max-height:calc(100vh - 405px);overflow-y:auto;overscroll-behavior:contain}@media(max-height:730px){.objective{max-height:calc(100vh - 360px)}}@media(max-width:760px){.objective{max-height:calc(100vh - 324px)}}#ui:has(>.editor-heading){--editor-center-inset:310px;--editor-help-top:100px;display:grid;grid-template-columns:var(--editor-center-inset) minmax(0,1fr) var(--editor-center-inset);grid-template-rows:var(--editor-help-top) max-content max-content minmax(0,1fr)}.editor-center-caption{position:static;grid-column:2;grid-row:2;min-width:0}.editor-medium{position:static;grid-column:2;grid-row:3;align-self:start;min-width:0;margin-top:8px}@media(max-width:1100px){#ui:has(>.editor-heading){--editor-center-inset:250px}}@media(max-width:760px){#ui:has(>.editor-heading){--editor-center-inset:203px}}@media(max-height:730px){#ui:has(>.editor-heading){--editor-help-top:88px}.editor-body-name{bottom:188px}.editor-body-name h3{font-size:calc(24px * var(--ui-text-scale, 1))}}.body-shape{border-top:1px solid var(--line);margin-top:16px;padding-top:2px}.body-shape p{line-height:1.6;margin-bottom:8px}.body-shape>strong{display:block;margin-top:12px;color:var(--mint)}.spine-presets{display:flex;gap:4px;flex-wrap:wrap}.spine-presets button{background:#b8dcca13;border:1px solid var(--line);border-radius:5px;padding:5px 7px;font-size:calc(10px * var(--ui-text-scale, 1))}.spine-selector{display:flex;align-items:center;justify-content:space-between;height:82px;gap:2px;position:relative}.spine-selector:before{content:"";position:absolute;inset:50% 4px auto;border-top:1px dashed #bbdccc50}.spine-selector button{position:relative;flex:1;height:calc(32px * var(--node-height));max-width:30px;transform:translateY(calc(-22px * var(--node-bend)));border:1px solid #a7d6b67a;border-radius:45%;background:#8cd9ba22;color:var(--mint);padding:0;font-size:calc(10px * var(--ui-text-scale, 1))}.spine-selector button:before{content:"";position:absolute;inset:3px;transform:scaleX(calc(.6 * var(--node-width)));border-radius:50%;background:#bdeed129}.spine-selector button span{position:relative}.spine-selector button[aria-pressed=true]{background:#c3eac4;border-color:#e9f3bb;color:#163b3e;box-shadow:0 0 0 3px #c3eac420}.quest-next .eyebrow{letter-spacing:.08em;line-height:1.6}.quest-next p{color:var(--ink);font-size:calc(12px * var(--ui-text-scale, 1));margin:9px 0}.quest-location{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.6;color:var(--gold);padding:8px 0}.objective .quest-completion{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.6;margin:10px 0;padding:10px 0;border-top:1px solid var(--line)}.quest-completion strong{color:var(--mint);font-weight:500}.journey-checklist{border-top:1px solid var(--line);padding-top:9px}.journey-checklist>div{display:flex;gap:8px;font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted);padding:4px 0}.journey-checklist .alive{color:var(--mint)}.objective .quest-journal-hint{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4;margin:9px 0 0}.oxygen-help{line-height:1.5;margin-top:8px}.oxygen-help strong{color:var(--mint);font-weight:500}.low-oxygen .meter i{background:#f1a18c}.low-oxygen .meter-label{color:#ffc3ac}.body-selection-label{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.6;color:var(--muted);margin-bottom:6px}.body-selection-label.active{color:#ffdf91}.spine-selector button[aria-pressed=true]{background:#ffdf91;border-color:#fff0c8;color:#273d37;box-shadow:0 0 0 3px #ffdf912b}.creature-tabs{display:flex;gap:4px;position:sticky;top:-17px;background:#112d38;padding:10px 0;z-index:2}.creature-tabs button,.creature-node-list button{background:#b8dcca13;border:1px solid var(--line);border-radius:5px;padding:9px;font-size:calc(12px * var(--ui-text-scale, 1))}.creature-tabs button{flex:1}.creature-tabs [aria-pressed=true],.creature-node-list [aria-pressed=true],.creature-buttons [aria-pressed=true]{border-color:#ffdf91;color:#ffdf91;box-shadow:inset 3px 0 #ffdf91}.creature-node-list{display:grid;gap:7px;margin-top:15px}.creature-node-list button{text-align:left}.creature-panel h3{font-size:calc(23px * var(--ui-text-scale, 1));margin:13px 0}.creature-panel p{line-height:1.6}.creature-panel .creature-number{display:grid;grid-template-columns:1fr 85px;align-items:center;gap:9px;font-size:calc(12px * var(--ui-text-scale, 1));margin:12px 0}.creature-number input{width:85px;padding:8px}.creature-panel select{display:block;width:100%;margin-top:6px;padding:8px}.creature-panel input[data-genome=name]{width:100%;margin-top:6px}.creature-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.creature-buttons button{padding:8px;font-size:calc(11px * var(--ui-text-scale, 1))}.creature-slot{border:1px dashed var(--line);padding:10px;margin:15px 0}.creature-slot h3{font-size:calc(18px * var(--ui-text-scale, 1))}.creature-caption p{letter-spacing:0;font-size:calc(11px * var(--ui-text-scale, 1));margin:10px 0;line-height:1.6}.creature-caption~.editor-body-name{bottom:110px;pointer-events:none}.creature-panel button:focus-visible,.creature-panel input:focus-visible,.creature-panel select:focus-visible{outline:2px solid #ffdf91;outline-offset:3px}.editor-tools .secondary{padding:10px;font-size:calc(12px * var(--ui-text-scale, 1))}.creature-ability{margin:14px 0}.creature-ability .row{align-items:baseline;gap:8px}.creature-ability b{font-size:calc(12px * var(--ui-text-scale, 1));white-space:nowrap}.creature-ability em{font-style:normal;color:var(--mint);font-size:calc(10px * var(--ui-text-scale, 1))}.creature-ability p{margin:5px 0;color:var(--muted)}.species-progress,.species-mode{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:calc(11px * var(--ui-text-scale, 1))}.species-progress b{color:var(--gold)}.species-next{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5}.species-nests{display:grid;gap:4px}.species-nests button{display:flex;justify-content:space-between;text-align:left;padding:7px 8px;background:#b8dcca0d;font-size:calc(11px * var(--ui-text-scale, 1));border:1px solid var(--line)}.species-nests small{white-space:nowrap;color:var(--muted)}.species-target{display:grid;gap:4px;margin:13px 0;font-size:calc(13px * var(--ui-text-scale, 1))}.species-target small{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted)}.species-response{padding:10px;border:1px solid var(--gold);border-radius:5px;display:grid;gap:6px;font-size:calc(12px * var(--ui-text-scale, 1));background:#e8cb8710}.species-response small{color:var(--muted)}.species-response meter{width:100%;height:8px;accent-color:#b6e6b6}.species-mode{margin:10px 0}.species-mode button{font-size:calc(11px * var(--ui-text-scale, 1));padding:7px;background:#b8dcca15}.species-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.species-actions button{font-size:calc(11px * var(--ui-text-scale, 1));padding:9px 5px;border:1px solid var(--line);background:#b8dcca0b;text-align:left}.species-actions kbd{margin-right:5px;color:var(--gold)}.species-actions small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));margin-top:5px;color:var(--muted);line-height:1.35}.species-actions .requested{border-color:var(--gold);background:#eed79322}.species-help{line-height:1.5;margin:10px 0}.species-pack{display:grid;gap:4px}.species-pack button{padding:7px;font-size:calc(10px * var(--ui-text-scale, 1));text-align:left;background:#a4e4bd12}.species-actions button:focus-visible,.species-nests button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.species-controls:empty{display:none}.species-controls{position:absolute;left:50%;transform:translate(-50%);bottom:98px;width:min(460px,calc(100vw - 600px));padding:12px 16px}.species-controls .species-actions{grid-template-columns:repeat(4,1fr)}.species-controls .species-actions small{font-size:calc(8px * var(--ui-text-scale, 1))}.species-controls .species-mode{margin:6px 0}.species-controls>.wide{padding:7px;font-size:calc(11px * var(--ui-text-scale, 1))}.species-controls .species-response{padding:6px 9px;grid-template-columns:1fr auto}.species-controls meter{grid-column:1/-1}.species-controls .species-response small{font-size:calc(10px * var(--ui-text-scale, 1))}#ui:has(.species-controls:not(:empty)) .toast{bottom:290px}#ui:has(.species-controls:not(:empty)) .interaction-hint{bottom:290px}@media(max-width:1100px){.species-controls{width:calc(100vw - 520px);min-width:280px}}@media(max-width:900px){.species-controls .species-actions{grid-template-columns:repeat(2,1fr)}#ui:has(.species-controls:not(:empty)) .toast{bottom:330px}}.discovery{border-block:1px solid var(--line);padding:10px 0;margin:10px 0}.discovery .secondary{padding:7px 8px;margin:3px 0;font-size:calc(11px * var(--ui-text-scale, 1));gap:5px}.discovery .secondary small{font-size:calc(9px * var(--ui-text-scale, 1))}.discovery p{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5;margin:8px 0}.discovery-new{color:var(--gold)}.discovery summary{cursor:pointer;font-size:calc(11px * var(--ui-text-scale, 1));padding:8px 0;color:var(--mint)}.discovery .species-progress{flex-wrap:wrap}.home-atlas{margin:12px 0}.home-atlas>svg{display:block;width:100%;max-height:300px;background:#225572;border:1px solid #aecbbd55;border-radius:8px}.home-atlas figcaption{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5;margin-top:6px;color:var(--muted)}.atlas-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:calc(12px * var(--ui-text-scale, 1));margin:12px 0}.atlas-legend span{display:flex;align-items:center;gap:6px}.atlas-legend i{width:14px;height:14px;border:1px solid #ffffff66;border-radius:3px}.habitat-overview{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:center;margin:18px 0}.habitat-inset{display:block;width:180px;border:1px solid #aecbbd55;border-radius:8px}.habitat-list{margin:0;padding-left:22px;font-size:calc(13px * var(--ui-text-scale, 1))}.habitat-list li{padding:5px 8px;line-height:1.5}.habitat-list li[aria-current]{background:#bcd8a617;border-left:2px solid var(--gold);border-radius:3px}.habitat-list span{display:block;font-size:calc(12px * var(--ui-text-scale, 1));color:var(--muted)}.habitat-overview p{margin-bottom:4px}.atlas-details{font-size:calc(13px * var(--ui-text-scale, 1));border-top:1px solid var(--line);padding:12px 0}.atlas-details summary{cursor:pointer;color:var(--gold)}.atlas-details p{margin:10px 0}.home-planet .atlas-origin{margin-bottom:8px}@media(max-width:650px){.habitat-overview{grid-template-columns:1fr;gap:10px}.habitat-inset{width:160px}.atlas-legend{gap:8px}.home-planet h3{font-size:calc(22px * var(--ui-text-scale, 1))}}.sea-panel{position:absolute;left:18px;top:92px;bottom:66px;width:310px;overflow:auto;padding:20px;pointer-events:auto}.sea-map{width:100%;max-height:150px;display:block;border-radius:8px}.sea-route{overflow-wrap:anywhere;font-size:calc(12px * var(--ui-text-scale, 1))}.sea-confirm{padding:12px;border:1px solid #d6b86e;border-radius:10px;margin:12px 0}#sea-panel{margin-top:20px;border-top:1px solid #718c7d;padding-top:12px}#sea-panel button,.sea-panel button{margin:4px 4px 4px 0}.sea-panel progress{width:100%}@media(max-width:1100px){.sea-panel{width:285px;left:12px;top:85px;padding:15px}}.menu-footer .support-link{color:var(--muted);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;white-space:nowrap;transition:color .16s,text-decoration-color .16s}.menu-footer .support-link:hover{color:var(--mint);text-decoration-color:currentColor}.menu-footer .support-link:focus-visible{color:var(--mint);outline:2px solid var(--gold);outline-offset:4px;border-radius:2px}.commerce-panel .commerce-title{font-size:calc(28px * var(--ui-text-scale, 1));line-height:1.1;margin:0 0 12px}.commerce-panel p{margin:10px 0}.commerce-panel details{margin:10px 0}.civilization-progress h3{margin:0 0 12px;font-size:calc(25px * var(--ui-text-scale, 1))}.civilization-progress p,.civilization-progress li{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5}.civilization-progress ul{padding-left:16px}.civilization-progress button{width:100%;margin-bottom:8px}.civilization-regions{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.civilization-regions summary{cursor:pointer;font-size:calc(11px * var(--ui-text-scale, 1));margin-bottom:12px}.species-inheritance ol{padding-left:1.4em}.species-inheritance li{margin:.7em 0}.species-inheritance p{margin:.35em 0;font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.55}.lineage-details>summary{cursor:pointer;margin:16px 0}.tribe-status{position:absolute;top:108px;left:30px;display:flex;align-items:center;gap:23px;padding:14px 18px;pointer-events:auto}.tribe-status>div{display:grid;gap:4px}.tribe-status strong{font-size:calc(24px * var(--ui-text-scale, 1));color:var(--cream)}.tribe-status .secondary{padding:10px}.tribe-neighbours{position:absolute;right:30px;top:108px;width:290px;padding:22px;pointer-events:auto}.tribe-neighbours>p{line-height:1.6;margin:10px 0 14px}.tribe-neighbour{padding:12px 0;border-top:1px solid #bddebc25}.tribe-neighbour .row{gap:5px;margin-top:8px}.tribe-neighbour .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px;flex:1}.tribe-neighbour .meter{margin:8px 0}.tribe-focus{display:flex;justify-content:space-between;gap:10px;text-align:left;width:100%;background:none;padding:0 0 7px;font-size:calc(13px * var(--ui-text-scale, 1));line-height:1.5;color:var(--cream)}.tribe-selection{position:absolute;left:30px;bottom:153px;width:310px;padding:20px;pointer-events:auto}.tribe-selection h3{font-size:calc(23px * var(--ui-text-scale, 1));line-height:1.2;margin:12px 0 8px}.tribe-selection>.row>.secondary{padding:7px;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-selection .tiny{line-height:1.55}.tribe-member-stats{display:flex;gap:12px;font-size:calc(10px * var(--ui-text-scale, 1));margin:12px 0}.tribe-member-stats b{color:var(--mint)}.tribe-tools{display:grid;grid-template-columns:1fr 1fr;gap:5px}.tribe-tools button{font-size:calc(10px * var(--ui-text-scale, 1));text-align:left;padding:9px}.tribe-tools small,.tribe-building-options small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));font-weight:400;margin-top:5px;opacity:.7}.tribe-tools .active,.tribe-building-options .active{border-color:var(--mint);background:#aec7a826}.tribe-roster{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:14px}.tribe-unit{position:relative;overflow:hidden;background:#18383f;border:1px solid #78988d66;border-radius:5px;min-height:39px;padding:5px 3px;font-size:calc(10px * var(--ui-text-scale, 1))}.tribe-unit small{display:block;line-height:15px;color:var(--mint)}.tribe-unit i{position:absolute;bottom:0;left:0;height:2px;background:#bcdf9e}.tribe-unit.selected{outline:1px solid #d4f2a7;background:#4c6d59}.tribe-orders{position:absolute;bottom:20px;left:30px;right:30px;padding:12px 15px;pointer-events:auto}.tribe-building-options{display:flex;gap:8px;justify-content:center}.tribe-building-options>.secondary{flex:1;padding:11px 9px;font-size:calc(11px * var(--ui-text-scale, 1))}.tribe-command-hint{display:flex;justify-content:center;gap:20px;padding-top:10px;font-size:calc(10px * var(--ui-text-scale, 1));letter-spacing:.025em;color:#bed4c9}.tribe-command-hint button{background:none;text-decoration:underline;padding:0;font-size:calc(10px * var(--ui-text-scale, 1))}#command-selection{position:fixed;border:1px solid #e4f9b4;background:#cce8a822;pointer-events:none;z-index:8;display:none}body:has(.tribe-orders) .toast{bottom:148px;max-width:520px;left:50%;font-size:calc(12px * var(--ui-text-scale, 1))}@media(max-width:1200px){.tribe-status{left:18px;top:90px;gap:12px}.tribe-neighbours{right:18px;top:90px;width:245px;padding:16px}.tribe-selection{left:18px;width:264px;padding:15px}.tribe-orders{left:18px;right:18px}.tribe-building-options{gap:4px}.tribe-building-options>.secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:9px 5px}.tribe-building-options small{font-size:calc(8px * var(--ui-text-scale, 1))}.tribe-roster{grid-template-columns:repeat(6,1fr)}}@media(max-height:780px){.tribe-selection{bottom:139px}.tribe-neighbours{padding:14px}.tribe-neighbour{padding:8px 0}.tribe-neighbours>p{font-size:calc(10px * var(--ui-text-scale, 1));margin:8px 0}.tribe-tools button{padding:5px 7px}.tribe-tools small{display:none}.tribe-selection h3{font-size:calc(20px * var(--ui-text-scale, 1))}.tribe-status{top:88px}}.machine-springs{border-top:1px solid #bddebc25;padding-top:12px;margin-top:14px}.machine-springs>.row{gap:8px;margin:7px 0}.machine-springs .tribe-focus{font-size:calc(11px * var(--ui-text-scale, 1));margin:0;flex:1;padding:0}.machine-springs .secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:7px}.machine-selection h3{font-size:calc(21px * var(--ui-text-scale, 1))}.tribe-neighbours:has([data-inheritance]){max-height:calc(100vh - 250px);overflow:auto}.inheritance-link{background:none;color:var(--mint);padding:0;text-decoration:underline;font:inherit}.neighbour-economy{margin-top:6px;line-height:1.6;color:var(--mint)}.neighbour-warning{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5;border-left:2px solid #db9276;padding:6px 8px;margin-top:8px;background:#db927618;color:#f2c5a8}.tribe-alert{position:absolute;top:198px;left:30px;max-width:520px;text-align:left;font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.5;padding:12px 16px;color:#f2c5a8;border-color:#db9276;pointer-events:auto}@media(max-height:780px){.tribe-alert{top:172px;max-width:440px}}.music-plan{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.55;margin-top:10px}.music-plan summary{cursor:pointer;color:var(--mint)}.music-plan p{margin:8px 0}.music-plan>.secondary{width:100%}.music-encounter{position:absolute;left:30px;width:310px;bottom:153px;max-height:calc(100vh - 345px);overflow:auto;margin:auto;padding:18px 20px;pointer-events:auto;border-color:#bed99180;background:#112c32f5}.music-encounter h3{font-size:calc(18px * var(--ui-text-scale, 1));margin:8px 0 12px}.music-encounter p{line-height:1.5;margin:9px 0}.music-encounter .tiny{font-size:calc(10px * var(--ui-text-scale, 1))}.music-phase{font-size:calc(12px * var(--ui-text-scale, 1));color:var(--mint)}.music-request{font-size:calc(25px * var(--ui-text-scale, 1));color:var(--cream)}.music-request small{font-size:calc(11px * var(--ui-text-scale, 1));margin-left:8px}.music-answers{display:flex;gap:6px;margin:12px 0}.music-answers button{flex:1;flex-direction:column;gap:0;padding:10px 5px;font-size:calc(11px * var(--ui-text-scale, 1))}.music-answers small{display:block;font-size:calc(10px * var(--ui-text-scale, 1));margin-top:5px}.music-rounds{list-style:none;padding:0;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.8;margin:8px 0}.music-good{color:#c8edb1}.music-bad{color:#ffc1a4}.music-outcome{font-size:calc(17px * var(--ui-text-scale, 1));color:var(--cream)}.tribe-selection{max-height:calc(100vh - 345px);overflow:auto}@media(max-height:780px){.music-encounter{left:30px;bottom:143px;max-height:calc(100vh - 315px);padding:13px 16px}.music-encounter h3{font-size:calc(16px * var(--ui-text-scale, 1))}.music-encounter .tiny{font-size:calc(10px * var(--ui-text-scale, 1))}.music-request{font-size:calc(21px * var(--ui-text-scale, 1))}.tribe-selection{max-height:calc(100vh - 315px)}}body:has(.music-encounter) .tribe-selection{display:none}@media(max-width:1200px){.music-encounter{left:18px;width:264px;padding:12px}.music-answers{flex-wrap:wrap}}.domestication{position:absolute;left:30px;bottom:153px;width:330px;max-height:calc(100vh - 345px);overflow:auto;padding:18px;pointer-events:auto;background:#112c32f5;border-color:#c0d49b80}body:has(.domestication) .tribe-selection,body:has(.domestication) .music-encounter{display:none}.domestication h3{margin:10px 0;font-size:calc(21px * var(--ui-text-scale, 1))}.domestication .tiny{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.55}.domestication .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:7px 9px}.domestication .row{gap:6px}.domestication summary{cursor:pointer;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.6;color:var(--mint);padding:8px 0}.domestication details>.secondary{display:block;width:100%;text-align:left;margin:4px 0}.animal-caretakers{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:10px 0}.animal-caretakers .active{border-color:var(--mint);background:#aec7a826}.animal-card,.animal-candidate,.animal-acquisition{border-top:1px solid #bddebc30;padding:12px 0}.animal-card strong,.animal-candidate strong{font-size:calc(12px * var(--ui-text-scale, 1))}.animal-heading{color:#d4e8b7;font-size:calc(13px * var(--ui-text-scale, 1));margin:8px 0}.animal-result{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.6;border-left:2px solid #dec08b;padding:8px 10px;background:#dec08b0c}.animal-rules{border-top:1px solid #bddebc30}.tribe-status{gap:14px}.tribe-status .secondary{font-size:calc(11px * var(--ui-text-scale, 1))}@media(max-height:780px){.domestication{bottom:143px;max-height:calc(100vh - 315px);padding:13px 16px}}@media(max-width:1200px){.domestication{left:18px;width:284px}.tribe-status{gap:8px}.tribe-status .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px}}.chief-panel{position:absolute;left:30px;bottom:153px;width:330px;max-height:calc(100vh - 345px);overflow:auto;padding:18px;pointer-events:auto;background:#142d31f5;border-color:#e2bc78a0}body:has(.chief-panel) .tribe-selection{display:none}.chief-panel h3{font-size:calc(21px * var(--ui-text-scale, 1));margin:10px 0}.chief-panel .tiny{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5;margin:8px 0}.chief-panel .secondary{padding:7px 9px;font-size:calc(10px * var(--ui-text-scale, 1))}.chief-panel .row{gap:6px}.chief-panel summary{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5;padding:9px 0;cursor:pointer;color:#e8c88e}.chief-candidates{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.chief-candidates .active{border-color:#e8c88e;background:#e8c88e20}.chief-availability{color:#d3d9c2}.chief-rules,.chief-target,.chief-limits{border-top:1px solid #dec08b30;padding-top:7px}.chief-rules>strong,.chief-activity>strong,.chief-result>strong{font-size:calc(13px * var(--ui-text-scale, 1));color:#ffdb9c}.chief-activity,.chief-result{border-left:2px solid #e8c88e;padding:8px 10px;margin:10px 0;background:#e8c88e0c}.chief-cooldown{font-size:calc(12px * var(--ui-text-scale, 1));color:#e8c88e}.chief-target>.secondary{width:100%;margin-bottom:8px}@media(max-height:780px){.chief-panel{bottom:143px;max-height:calc(100vh - 315px);padding:13px 16px}.chief-panel .tiny{font-size:calc(10px * var(--ui-text-scale, 1))}.chief-panel h3{font-size:calc(18px * var(--ui-text-scale, 1))}}@media(max-width:1200px){.chief-panel{left:18px;width:284px}}.chief-panel:has(.chief-activity)>.tiny,.chief-panel:has(.chief-activity) .chief-candidates,.chief-panel:has(.chief-activity) .chief-rules,.chief-panel:has(.chief-activity) [data-action=tribe-chief-elect]{display:none}.chief-panel:has(.chief-result) .chief-rules{display:none}.neighbour-map{height:108px;position:relative;margin:10px 0;background:#0b2228;border:1px solid #bddebc25;border-radius:6px;overflow:hidden}.neighbour-map button{position:absolute;transform:translate(-50%,-50%);min-width:25px;height:23px;padding:3px 5px;font-size:calc(11px * var(--ui-text-scale, 1));background:#456259;border:1px solid #b3c996;border-radius:4px}.map-home{position:absolute;transform:translate(-50%,-50%);color:#f5e2b0;font-size:calc(18px * var(--ui-text-scale, 1))}.map-north{position:absolute;right:5px;top:3px;font-size:calc(9px * var(--ui-text-scale, 1));color:#c2d6c5}.neighbour-identity{line-height:1.5;margin:6px 0;color:#b6cbc3}.tribe-alert>button{display:block;background:none;text-align:left;color:inherit;font-size:calc(11px * var(--ui-text-scale, 1));padding:5px 0}#ui{font-size:calc(14px * var(--ui-text-scale, 1))}#ui summary{pointer-events:auto}.hud-panel{min-width:0;overflow-wrap:anywhere}.hud-panel>.hud-panel-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;padding:3px 0;margin:0;list-style:none;cursor:pointer;color:var(--mint);font:600 calc(12px * var(--ui-text-scale, 1))/1.4 var(--sans)}.hud-panel-toggle::-webkit-details-marker{display:none}.hud-panel-chevron{color:var(--gold);font-size:calc(18px * var(--ui-text-scale, 1));flex:0 0 auto}.hud-panel[open]>.hud-panel-toggle{margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:10px}.hud-panel[open]>.hud-panel-toggle .hud-panel-chevron{transform:rotate(180deg)}.hud-panel:not([open]){padding-block:8px;overflow:visible}.planet-vehicle.hud-panel:not([open]),.planet-community.hud-panel:not([open]),.sea-panel.hud-panel:not([open]){bottom:auto}.hud-panel.hud-goal-details{border-top:1px solid var(--line);margin-top:14px}.hud-goal-details>.hud-panel-toggle{color:var(--muted)}.hud-goal-details[open]>.hud-panel-toggle{border:0;margin-bottom:4px}#objective-next p{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.6;color:var(--ink);margin:8px 0}#objective-next .quest-location{font-size:calc(11px * var(--ui-text-scale, 1));margin-top:10px}.objective>.hud-panel-toggle{font:400 calc(20px * var(--ui-text-scale, 1))/1.2 var(--serif);color:var(--ink)}.objective .quest-next .eyebrow{text-transform:none;letter-spacing:0}.objective .hud-goal-details #requirements{margin-top:8px}.vitals{max-height:calc(100vh - 265px);overflow-y:auto;overscroll-behavior:contain}.vitals-name{gap:8px;flex-wrap:wrap}.vitals-name strong{overflow-wrap:anywhere}.settings-row{gap:16px}.settings-row select{min-width:0;width:100%;max-width:100%}.pause-actions,.tribe-building-options{flex-wrap:wrap}.tribe-status{max-width:calc(100vw - 370px);flex-wrap:wrap;row-gap:8px}.tribe-selection,.domestication,.chief-panel,.music-encounter{max-height:calc(100vh - 345px * var(--ui-text-scale, 1))}.tribe-alert{left:50%;transform:translate(-50%);width:min(330px,30vw);max-height:180px;overflow-y:auto}.tribe-building-options>.secondary{min-width:90px}.tribe-command-hint{flex-wrap:wrap;gap:8px}.tribe-member-stats,.tribe-tools{flex-wrap:wrap}.space-heading>.row,.field-topbar .toolbar{flex-wrap:wrap}.space-instruments.hud-panel,.space-navigation.hud-panel{width:260px}.hud-panel:where(.tribe-compact,.machine-compact,.space-compact)>.hud-panel-toggle{min-height:24px;gap:8px;font-size:calc(11px * var(--ui-text-scale, 1))}.hud-panel:where(.tribe-compact,.machine-compact,.space-compact)[open]>.hud-panel-toggle{margin-bottom:8px;padding-bottom:6px}@media(max-width:1200px){.tribe-status{max-width:calc(100vw - 299px)}}@media(max-height:780px){.tribe-selection,.domestication,.chief-panel,.music-encounter{max-height:calc(100vh - 315px * var(--ui-text-scale, 1))}.tribe-alert{top:calc(172px * var(--ui-text-scale, 1))}}@media(max-width:1100px){.chapter-pill span{letter-spacing:.03em}.objective{width:240px;right:18px}.vitals{width:225px;left:18px}.space-instruments.hud-panel,.space-navigation.hud-panel{width:240px}}@media(max-width:760px){.objective{width:210px;right:12px}.vitals{width:200px;left:12px}.space-instruments.hud-panel,.space-navigation.hud-panel{width:210px}}.menu-refined{top:clamp(105px,17vh,180px);left:7vw;width:460px;max-width:46vw;max-height:calc(100dvh - 190px);overflow:auto;padding:0 12px 8px 2px;overscroll-behavior:contain}.menu-refined h1{font-size:clamp(calc(66px * var(--ui-text-scale, 1)),calc(8vw * var(--ui-text-scale, 1)),calc(110px * var(--ui-text-scale, 1)));margin:18px 0 20px}.menu-refined .intro{font-size:calc(25px * var(--ui-text-scale, 1));margin-bottom:17px}.menu-refined .description{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.65;margin-bottom:20px}.menu-continue{width:100%;margin-bottom:10px;min-height:91px;text-align:left;padding:15px 19px;gap:14px}.menu-continue>span:first-child{min-width:0}.menu-continue strong{display:block;font:calc(23px * var(--ui-text-scale, 1)) var(--serif);margin:5px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-continue small{font-size:calc(10px * var(--ui-text-scale, 1));font-weight:400;opacity:.85}.menu-play-actions{display:flex;gap:9px}.menu-play-actions>.primary,.menu-play-actions>.secondary{flex:1;padding:12px 14px;font-size:calc(11px * var(--ui-text-scale, 1));gap:10px;line-height:1.4}.menu-refined:has(.menu-library[open]) .intro,.menu-refined:has(.menu-library[open]) .description{display:none}.planet-orders button:disabled,.planet-vehicle button:disabled,.planet-community button:disabled{opacity:.72}.planet-orders .action-reason,.planet-vehicle .action-reason,.planet-community .action-reason{display:block;font-size:calc(10px * var(--ui-text-scale, 1));font-weight:400;line-height:1.4;color:#e1d0ae;letter-spacing:0;margin-top:3px}.menu-library{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:16px;pointer-events:auto}.menu-library>summary{cursor:pointer;display:flex;justify-content:space-between;gap:15px;padding:13px 1px;font-size:calc(12px * var(--ui-text-scale, 1));color:var(--ink);list-style:none}.menu-library>summary::-webkit-details-marker{display:none}.menu-library>summary span{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--muted)}.menu-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-bottom:12px}.menu-library-grid .secondary{padding:11px 12px;justify-content:flex-start;gap:13px;min-width:0;font-size:calc(11px * var(--ui-text-scale, 1))}.menu-library-grid .secondary>span{font-size:calc(18px * var(--ui-text-scale, 1));color:var(--gold)}.menu-refined .menu-seed{margin-top:12px;gap:10px}.menu-refined .menu-seed input{width:128px;padding:8px}.menu-refined .menu-seed .icon-btn{height:32px;width:32px}.menu-import{background:none;font-size:calc(9px * var(--ui-text-scale, 1));letter-spacing:.1em}summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}.modal[role=dialog]:focus{outline:none}.modal[role=dialog]{overscroll-behavior:contain}.help-sections>section{margin:18px 0}.help-sections h3{font-size:calc(20px * var(--ui-text-scale, 1))}.help-sections .controls-grid{grid-template-columns:125px 1fr;gap:9px 15px}.help-details{border-top:1px solid var(--line);padding:12px 0;margin-top:15px}.help-details summary{cursor:pointer;color:var(--mint);font-size:calc(12px * var(--ui-text-scale, 1))}.help-details p{font-size:calc(12px * var(--ui-text-scale, 1))}.help-purpose{border-left:3px solid var(--mint);padding-left:14px}.help-purpose strong{color:var(--ink)}@media(max-height:730px){.menu-refined{top:95px;max-height:calc(100dvh - 158px)}.menu-refined h1{font-size:calc(76px * var(--ui-text-scale, 1));margin:13px 0}.menu-refined .intro{font-size:calc(21px * var(--ui-text-scale, 1));margin-bottom:10px}.menu-refined .description{font-size:calc(11px * var(--ui-text-scale, 1));margin-bottom:13px}.menu-continue{min-height:77px;padding:11px 14px}.menu-continue strong{font-size:calc(20px * var(--ui-text-scale, 1))}.menu-library{margin-top:11px}.menu-library>summary{padding:10px 1px}.menu-footer{bottom:17px;gap:8px 18px}.menu-refined .menu-seed{margin-top:9px}}@media(max-width:760px){.menu-refined{max-width:70vw;width:460px;left:6vw}.menu-play-actions{flex-wrap:wrap}.menu-refined h1{font-size:calc(68px * var(--ui-text-scale, 1))}.menu-refined .menu-seed{flex-wrap:wrap}.menu-footer{font-size:calc(8px * var(--ui-text-scale, 1))}.help-sections .controls-grid{grid-template-columns:92px 1fr}}.species-nests button{gap:8px;align-items:center;border-left-width:3px}.species-nests button>span:first-child{min-width:0}.species-nests .relation-label{display:block;margin-top:4px;white-space:normal;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4}.relation-friendly{--relation-color: #b5e8c4}.relation-neutral{--relation-color: #eed29a}.relation-hostile{--relation-color: #ffc0a9}.species-nests button[class*=relation-]{border-left-color:var(--relation-color)}.species-nests .relation-label,.tribe-relation{color:var(--relation-color)}.species-nests .nest-meta{flex-shrink:0;display:grid;gap:5px;text-align:right}.species-nests .nest-meta small:last-child{font-size:calc(9px * var(--ui-text-scale, 1))}.species-target .species-recruitment{margin:2px 0 0;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5}.species-target .species-recruitment.ready{color:#c7f1bd}.species-contact{display:flex;gap:6px}.species-contact .secondary{flex:1;justify-content:center;padding:7px 8px;font-size:calc(11px * var(--ui-text-scale, 1));gap:5px}.species-contact .ready{background:#b5e8c423;border-color:#b5e8c4}.species-contact-hint{margin:6px 0 0;color:var(--muted);font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4}.species-danger{margin:0 0 8px;border-left:3px solid #ffc0a9;padding:7px 9px;color:#ffdacb;background:#ba564c24;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.45}.species-mode button[aria-pressed=true]{color:#ffdacb;border:1px solid #ffb79a80;background:#ba564c24}#ui:has(.species-controls:not(:empty)) .toast{top:185px;bottom:auto;left:30px;transform:none;width:236px;max-width:236px;padding:10px 12px;font-size:calc(11px * var(--ui-text-scale, 1))}.species-reconcile{padding:8px;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.45}.species-pack>strong{margin-top:4px;font-size:calc(11px * var(--ui-text-scale, 1))}.species-pack button{display:flex;justify-content:space-between;gap:6px}.species-pack button>span{color:var(--muted)}.species-legacy{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.5}.species-legacy summary{cursor:pointer;color:var(--mint);padding:6px 0}.species-legacy p{margin:5px 0}.objective:has(.species-nests){max-height:calc(100vh - 395px);overflow:auto;overscroll-behavior:contain}.tribe-relation{font-size:calc(12px * var(--ui-text-scale, 1));font-weight:650;margin:3px 0 5px}.tribe-relations-summary{color:var(--cream)}.tribe-recruit-help{border-top:1px solid var(--line);margin:10px 0 0;padding-top:8px}@media(max-width:1100px){#ui:has(.species-controls:not(:empty)) .toast{left:20px;width:205px;max-width:205px;top:180px}}@media(max-height:730px){.objective:has(.species-nests){max-height:calc(100vh - 365px)}.species-target{margin:9px 0}.species-nests button{padding:6px}}#ui:has(.species-tray){--hud-edge: 18px}#ui:has(.species-tray) .topbar{top:16px;left:var(--hud-edge);right:var(--hud-edge)}#ui:has(.species-tray) .biome-title{top:85px;left:var(--hud-edge);max-width:225px}#ui:has(.species-tray) .biome-title h3{font-size:calc(22px * var(--ui-text-scale, 1))}#ui:has(.species-tray) .biome-title .sub{max-width:200px;line-height:1.5}#ui:has(.species-tray) .objective{right:var(--hud-edge);top:84px;width:244px;padding:13px 14px;max-height:calc(100vh - 280px);overflow-y:auto;overscroll-behavior:contain}#ui:has(.species-tray) .objective-title{margin-bottom:6px}#ui:has(.species-tray) .objective h3{font-size:calc(22px * var(--ui-text-scale, 1));margin-bottom:10px}#ui:has(.species-tray) .objective>[data-action=journal]{display:none}.species-guide{margin:10px 0}.objective .species-guide p{margin:5px 0;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.45;color:#dce7dd}.species-guide b{color:var(--gold);font-size:calc(10px * var(--ui-text-scale, 1))}.species-dossier{border-top:1px solid var(--line);font-size:calc(11px * var(--ui-text-scale, 1))}.species-dossier>summary{display:flex;justify-content:space-between;cursor:pointer;padding:10px 0;color:var(--mint);list-style:none}.species-dossier[open]{max-height:min(270px,calc(100vh - 375px));overflow-y:auto;overscroll-behavior:contain}.species-dossier>summary{position:sticky;top:0;background:#16353b;z-index:1}.species-dossier .species-nests button{width:100%}.objective .species-profile{margin:5px 2px 10px;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.5}.species-gift-reason{display:block;margin:5px 0 10px;line-height:1.4;color:var(--muted)}#species-target-slot{position:absolute;top:82px;left:50%;transform:translate(-50%);width:min(320px,calc(100vw - 540px))}#species-target-slot .species-target{margin:0;padding:10px 13px;gap:6px;border-color:var(--relation-color, var(--line));border-radius:18px 18px 10px 10px}.target-heading,.target-meta{display:flex;justify-content:space-between;gap:8px;align-items:center}.target-heading strong{font-size:calc(14px * var(--ui-text-scale, 1));color:var(--cream)}.target-heading button{background:transparent;color:var(--muted);font-size:calc(18px * var(--ui-text-scale, 1));padding:0 3px}.target-meta{font-size:calc(10px * var(--ui-text-scale, 1))}.target-meta b{color:#ffc0a9;white-space:nowrap}.species-target meter{width:100%;height:11px;accent-color:#e69e87}.species-target meter::-webkit-meter-bar{background:#ffffff20;border:0}.species-target meter::-webkit-meter-optimum-value{background:#e69e87}.species-target .target-warning{color:#ffd29d;line-height:1.4}.target-empty{opacity:.82;text-align:center}#ui:has(.species-tray) .vitals{left:var(--hud-edge);bottom:16px;width:218px;padding:12px 14px}#ui:has(.species-tray) .vitals-name{margin-bottom:5px}#ui:has(.species-tray) .vitals-name strong{font-size:calc(21px * var(--ui-text-scale, 1))}#ui:has(.species-tray) .vitals .dna-number{font-size:calc(14px * var(--ui-text-scale, 1))}#ui:has(.species-tray) #bond-status,#ui:has(.species-tray) #depth-status{display:none}#ui:has(.species-tray) .meter-label{margin-top:7px}#ui:has(.species-tray) .compass{width:135px;height:135px;right:var(--hud-edge);bottom:44px}#ui:has(.species-tray) .compass .caption{font-size:calc(8px * var(--ui-text-scale, 1));line-height:1.5}#ui:has(.species-tray) .species-controls{bottom:56px;width:min(560px,calc(100vw - 500px));min-width:0;padding:9px 12px;border-radius:20px 20px 9px 9px;background:#102e38ed}#ui:has(.species-tray) .species-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#ui:has(.species-tray) .species-actions button{padding:8px 6px;border-radius:9px;min-height:62px}.species-actions button:disabled{opacity:.65}.species-actions button>span{display:flex;align-items:center;font-size:calc(10px * var(--ui-text-scale, 1));gap:3px}.species-actions button kbd{margin:0;font-size:calc(9px * var(--ui-text-scale, 1));padding:2px;min-width:17px}#ui:has(.species-tray) .species-actions small{font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.35}.species-tray .species-mode{margin:0 0 7px;flex-wrap:wrap}.species-mode>button{display:flex;align-items:center;gap:12px;border-radius:12px}.species-mode>button small,.species-mode-hint{font-size:calc(9px * var(--ui-text-scale, 1));color:var(--muted)}.species-contact{margin-left:auto}.species-contact .secondary{padding:5px 6px;font-size:calc(10px * var(--ui-text-scale, 1));white-space:nowrap}.species-contact-hint{font-size:calc(10px * var(--ui-text-scale, 1));margin-top:6px}.species-tray[data-combat=true] .species-mode>button{color:#ffd6ba}.species-tray .species-danger{padding:4px 7px;font-size:calc(10px * var(--ui-text-scale, 1));margin-bottom:6px}.species-tray .species-response{margin-bottom:7px}#ui:has(.species-tray) .actions{bottom:8px;padding:4px;gap:2px}#ui:has(.species-tray) .actions .action{min-width:0;padding:5px 8px;font-size:calc(9px * var(--ui-text-scale, 1));gap:5px}#ui:has(.species-tray) .actions [data-action=bond],#ui:has(.species-tray) .actions [data-action=communicate],#ui:has(.species-tray) .actions [data-action=tend],#ui:has(.species-tray) .actions [data-action=offer]{display:none}#ui:has(.species-tray) .toast{top:170px;left:var(--hud-edge);bottom:auto;width:218px;max-width:218px;font-size:calc(10px * var(--ui-text-scale, 1));padding:8px 10px}#ui:has(.species-tray) .interaction-hint{top:auto;bottom:225px;max-width:350px;font-size:calc(10px * var(--ui-text-scale, 1))}@media(max-width:1100px){#ui:has(.species-tray) .objective{width:218px}#ui:has(.species-tray) .vitals{width:190px}#ui:has(.species-tray) .species-controls{width:calc(100vw - 430px)}.species-mode-hint{display:none}#species-target-slot{width:min(320px,calc(100vw - 500px))}}@media(max-height:730px){#ui:has(.species-tray) .objective{top:78px}#ui:has(.species-tray) .objective-title{display:none}#ui:has(.species-tray) .objective h3{font-size:calc(19px * var(--ui-text-scale, 1));margin-bottom:7px}.species-dossier[open]{max-height:calc(100vh - 380px)}}@media(max-width:800px){#ui:has(.species-tray){--hud-edge: 10px}#ui:has(.species-tray) .biome-title{display:none}#ui:has(.species-tray) .objective{width:200px}#species-target-slot{left:10px;transform:none;width:calc(100vw - 230px);max-width:310px}#ui:has(.species-tray) .species-controls{width:calc(100vw - 225px);left:10px;transform:none}#ui:has(.species-tray) .vitals{bottom:238px;width:176px}#ui:has(.species-tray) .actions{left:10px;transform:none}#ui:has(.species-tray) .toast{top:188px;width:175px}#ui:has(.species-tray) .compass{width:115px;height:115px}.species-contact .secondary{font-size:calc(9px * var(--ui-text-scale, 1))}}.tribe-status.tribe-compact{top:104px;left:22px;padding:10px 13px;gap:15px;max-width:340px;border-radius:16px}.tribe-status.tribe-compact strong{font-size:calc(21px * var(--ui-text-scale, 1))}.tribe-status.tribe-compact .eyebrow{font-size:calc(8px * var(--ui-text-scale, 1))}.tribe-status.tribe-compact .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px}.tribe-compact summary{cursor:pointer;list-style:none}.tribe-compact summary::-webkit-details-marker{display:none}.tribe-compact summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px;border-radius:4px}.tribe-camp-menu>summary,.tribe-map-details>summary{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--mint);white-space:nowrap;padding:7px 0}.tribe-popover{position:absolute;z-index:12;width:320px;max-height:calc(100dvh - 330px);overflow:auto;overscroll-behavior:contain;padding:16px;background:#102c32f7;border:1px solid #b7d6ad60;border-radius:14px;box-shadow:0 12px 40px #03181b80;pointer-events:auto;font-size:calc(11px * var(--ui-text-scale, 1));text-align:left}.tribe-popover>.tiny{line-height:1.55}.tribe-popover>strong{color:var(--cream);font-size:calc(13px * var(--ui-text-scale, 1))}.tribe-popover .row{gap:6px}.tribe-popover summary{padding:8px 0;color:var(--mint);font-size:calc(11px * var(--ui-text-scale, 1))}.tribe-camp-menu>.tribe-popover{left:0;top:calc(100% + 8px);width:240px;display:grid;gap:7px}.tribe-camp-menu>.tribe-popover>.secondary{width:100%;text-align:left}.tribe-alert.tribe-compact{left:22px;transform:none;width:auto;top:176px;padding:10px 13px;max-width:310px;font-size:calc(11px * var(--ui-text-scale, 1));border-radius:13px}.tribe-alert.tribe-compact[hidden]{display:none}.tribe-neighbours.tribe-compact,.tribe-neighbours.tribe-compact:has([data-inheritance]){top:104px;right:22px;width:min(650px,calc(100vw - 395px));padding:11px 13px;max-height:none;overflow:visible;border-radius:16px}.tribe-neighbours-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.tribe-neighbours-heading>.eyebrow{font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-map-details>.tribe-popover{right:0;top:calc(100% + 8px);width:330px}.tribe-map-details .neighbour-map{height:145px}.tribe-neighbours.tribe-compact>.tribe-relations-summary{font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.3;margin:3px 0 8px;color:#c6d8c8}.tribe-neighbour-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.tribe-neighbour-strip>.tribe-neighbour{border:0;padding:0;margin:0;min-width:0}.tribe-neighbour-strip>.tribe-neighbour>summary{display:flex;flex-direction:column;justify-content:space-between;gap:5px;min-height:52px;padding:8px;background:#45635929;border:1px solid #94b99d30;border-radius:9px;line-height:1.3}.tribe-neighbour-strip>.tribe-neighbour[open]>summary{border-color:#d2eaa4;background:#73927038}.neighbour-summary-name{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--cream)}.tribe-neighbour-strip>details>summary .tribe-relation{font-size:calc(8px * var(--ui-text-scale, 1));white-space:nowrap}.neighbour-summary-alert{color:#ffbe98;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-neighbour-content{top:calc(100% + 8px);right:0}.tribe-neighbour-content .tribe-focus{font-size:calc(14px * var(--ui-text-scale, 1));line-height:1.35;margin-bottom:3px}.tribe-neighbour-content .tribe-relation{font-size:calc(11px * var(--ui-text-scale, 1))}.tribe-neighbour-content .neighbour-benefit{color:#d5e4b8}.tribe-neighbour-content>.tiny{margin:8px 0}.tribe-neighbour-content .action-reason{display:block;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.4;margin-top:5px;font-weight:400}.tribe-economy{margin-top:8px;border-top:1px solid #bddebc25}body:has(.tribe-orders.tribe-compact) .tribe-selection.tribe-compact{display:block;left:22px;bottom:18px;width:294px;max-height:none;overflow:visible;padding:13px;border-radius:18px}.tribe-selection.tribe-compact>.row{gap:7px}.tribe-selection.tribe-compact .eyebrow{font-size:calc(8px * var(--ui-text-scale, 1));letter-spacing:.07em}.tribe-selection.tribe-compact>.row>.secondary{padding:6px 8px;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-selection.tribe-compact h3{font-size:calc(17px * var(--ui-text-scale, 1));margin:8px 0;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribe-selection.tribe-compact .tribe-member-stats{margin:5px 0;gap:13px;font-size:calc(10px * var(--ui-text-scale, 1))}.tribe-selection-health{height:4px;margin:8px 0}.tribe-selection-summary>.tiny{margin:7px 0;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4}.tribe-selection.tribe-compact .tribe-roster{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:10px}.tribe-selection.tribe-compact .tribe-unit{min-height:33px;font-size:calc(9px * var(--ui-text-scale, 1));padding:4px 2px}.tribe-selection.tribe-compact .tribe-unit small{line-height:1.45}.tribe-selection-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.tribe-selection-actions>.secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:6px 8px}.tribe-equipment>summary{color:var(--mint);font-size:calc(11px * var(--ui-text-scale, 1));padding:6px 8px}.tribe-equipment>.tribe-popover{bottom:calc(100% + 8px);left:0;width:320px}.tribe-equipment .tribe-tools{display:grid;grid-template-columns:1fr;margin-top:10px;gap:0}.tribe-equipment .tribe-tools>button{margin-top:8px;font-size:calc(11px * var(--ui-text-scale, 1));padding:9px}.tribe-equipment .tribe-tools small{display:block;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.4}.tribe-tool-description{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4;color:#b7c9c1;padding:4px 7px}.tribe-orders.tribe-compact{left:330px;right:22px;bottom:18px;padding:12px 14px;border-radius:18px}.tribe-orders.tribe-compact .tribe-building-options{justify-content:stretch;align-items:stretch;gap:6px}.tribe-orders.tribe-compact .tribe-building-options>.secondary,.tribe-workshops>summary{padding:9px 8px;font-size:calc(11px * var(--ui-text-scale, 1));min-height:57px;text-align:center;line-height:1.35}.tribe-orders.tribe-compact .tribe-building-options>.secondary{flex:1;min-width:0}.tribe-orders.tribe-compact .tribe-building-options small{font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.35;opacity:.85;display:block;margin-top:5px;font-weight:400}.tribe-orders.tribe-compact button:disabled .action-reason{color:#f0c49f;opacity:1}.tribe-workshops{flex:1;min-width:0}.tribe-workshops>summary{height:100%;border:1px solid #a4c0ac50;background:#263f4055;border-radius:8px;color:var(--cream);box-sizing:border-box}.tribe-workshops[open]>summary{border-color:var(--mint);background:#73927038}.tribe-workshops>.tribe-popover{bottom:calc(100% + 8px);left:0;width:360px}.tribe-workshop-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.tribe-workshop-grid>.secondary{padding:10px;font-size:calc(11px * var(--ui-text-scale, 1))}.tribe-workshop-grid .action-reason{display:block;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.4;margin-top:5px}.tribe-guidance{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:13px;border-bottom:1px solid #bddebc25;margin:0 0 10px;padding:0 0 10px;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4;color:#c8d9cc}.tribe-guidance>div{min-width:0}.tribe-guidance span{display:block;color:#a4bcae;font-size:calc(8px * var(--ui-text-scale, 1));text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px}.tribe-guidance strong{color:#e7efd2;font-weight:600}.tribe-orders.tribe-compact .tribe-command-hint{font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.4;padding-top:8px;gap:10px;justify-content:space-between}body:has(.tribe-orders.tribe-compact) .music-encounter,body:has(.tribe-orders.tribe-compact) .domestication,body:has(.tribe-orders.tribe-compact) .chief-panel{left:330px;bottom:calc(210px * var(--ui-text-scale, 1));width:335px;max-height:calc(100dvh - 110px - 210px * var(--ui-text-scale, 1));z-index:11;border-radius:16px}body:has(.tribe-orders.tribe-compact) .toast{bottom:215px;max-width:430px}@media(max-width:1100px){.tribe-status.tribe-compact{left:15px;gap:9px}.tribe-neighbours.tribe-compact,.tribe-neighbours.tribe-compact:has([data-inheritance]){right:15px;width:calc(100vw - 360px)}.neighbour-summary-name{font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-neighbour-strip>.tribe-neighbour>summary{padding:7px 4px}.tribe-neighbour-strip>details>summary .tribe-relation{font-size:calc(7px * var(--ui-text-scale, 1))}body:has(.tribe-orders.tribe-compact) .tribe-selection.tribe-compact{left:15px;width:264px;padding:11px}.tribe-orders.tribe-compact{left:291px;right:15px;padding:11px}.tribe-orders.tribe-compact .tribe-building-options>.secondary,.tribe-workshops>summary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px 5px}.tribe-guidance{gap:9px;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-orders.tribe-compact .tribe-building-options small{font-size:calc(8px * var(--ui-text-scale, 1))}.tribe-alert.tribe-compact{left:15px}.tribe-popover{max-height:calc(100dvh - 330px)}}@media(max-height:760px){.tribe-status.tribe-compact,.tribe-neighbours.tribe-compact,.tribe-neighbours.tribe-compact:has([data-inheritance]){top:86px}.tribe-alert.tribe-compact{top:152px}.tribe-guidance{font-size:calc(9px * var(--ui-text-scale, 1));margin-bottom:8px;padding-bottom:8px}.tribe-orders.tribe-compact{bottom:12px}body:has(.tribe-orders.tribe-compact) .tribe-selection.tribe-compact{bottom:12px}body:has(.tribe-orders.tribe-compact) .music-encounter,body:has(.tribe-orders.tribe-compact) .domestication,body:has(.tribe-orders.tribe-compact) .chief-panel{bottom:calc(192px * var(--ui-text-scale, 1));max-height:calc(100dvh - 98px - 192px * var(--ui-text-scale, 1))}.tribe-popover{max-height:calc(100dvh - 300px)}}@media(max-width:760px){.tribe-status.tribe-compact{top:78px;padding:7px 9px;gap:8px}.tribe-status.tribe-compact strong{font-size:calc(17px * var(--ui-text-scale, 1))}.tribe-neighbours.tribe-compact,.tribe-neighbours.tribe-compact:has([data-inheritance]){top:144px;left:15px;right:15px;width:auto;padding:8px}.tribe-neighbour-strip>.tribe-neighbour>summary{min-height:42px}.tribe-neighbours.tribe-compact>.tribe-relations-summary{display:none}.tribe-neighbour-content{right:0;width:min(330px,calc(100vw - 48px));max-height:calc(100dvh - 450px)}body:has(.tribe-orders.tribe-compact) .tribe-selection.tribe-compact{width:210px}.tribe-orders.tribe-compact{left:237px}.tribe-guidance{display:block;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-guidance>div{margin-bottom:5px}.tribe-guidance span{display:inline;margin-right:5px}.tribe-guidance>div:nth-child(2){display:none}.tribe-orders.tribe-compact .tribe-building-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.tribe-orders.tribe-compact .tribe-building-options>.secondary,.tribe-workshops>summary{min-height:44px;font-size:calc(9px * var(--ui-text-scale, 1));padding:5px}.tribe-orders.tribe-compact .tribe-command-hint{display:none}.tribe-selection.tribe-compact .tribe-member-stats{gap:7px;font-size:calc(9px * var(--ui-text-scale, 1))}.tribe-selection.tribe-compact .eyebrow{font-size:calc(7px * var(--ui-text-scale, 1))}.tribe-alert.tribe-compact{top:244px;max-width:230px}.tribe-workshops>.tribe-popover{left:auto;right:0;width:min(340px,calc(100vw - 45px));max-height:calc(100dvh - 430px)}body:has(.tribe-orders.tribe-compact) .music-encounter,body:has(.tribe-orders.tribe-compact) .domestication,body:has(.tribe-orders.tribe-compact) .chief-panel{left:auto;right:15px;bottom:270px;width:min(335px,calc(100vw - 30px));max-height:calc(100dvh - 415px)}}.tribe-compact button:disabled{opacity:.7}.tribe-orders.tribe-compact .tribe-building-options>.secondary,.tribe-workshop-grid>.secondary{display:flex;flex-direction:column;justify-content:center;gap:2px;letter-spacing:.015em}.tribe-equipment .tribe-tools>button{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.tribe-neighbour-content .row>.secondary{display:flex;flex-direction:column;gap:2px;justify-content:center;letter-spacing:.015em}.tribe-neighbour-content.tribe-popover{max-height:calc(100dvh - 425px)}.machine-compact summary{cursor:pointer;list-style:none}.machine-compact summary::-webkit-details-marker{display:none}.machine-compact summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}.machine-compact button:disabled{opacity:.7}.machine-compact .secondary{letter-spacing:.02em}.machine-compact .secondary small{display:block;font-weight:400;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.35;color:#c4d5c7}.machine-compact .secondary:disabled small{color:#e9c8a7}.tribe-status.machine-status{top:104px;left:22px;max-width:395px;padding:11px 13px;gap:14px;border-radius:16px}.machine-status strong{font-size:calc(21px * var(--ui-text-scale, 1))}.machine-status .eyebrow{font-size:calc(8px * var(--ui-text-scale, 1))}.machine-status .secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:8px}.machine-springs-menu>summary{font-size:calc(11px * var(--ui-text-scale, 1));color:var(--gold);padding:8px 0;white-space:nowrap}.machine-popover{position:absolute;z-index:12;width:320px;max-height:calc(100dvh - 425px);overflow:auto;overscroll-behavior:contain;padding:16px;background:#122f34f7;border:1px solid #dfc78770;border-radius:14px;box-shadow:0 12px 40px #03181b70;pointer-events:auto;text-align:left;font-size:calc(11px * var(--ui-text-scale, 1))}.machine-popover>strong{font-size:calc(13px * var(--ui-text-scale, 1));color:var(--cream)}.machine-popover>.tiny{line-height:1.6;margin:9px 0}.machine-popover .secondary{display:flex;flex-direction:column;justify-content:center;gap:5px;width:100%;padding:9px;font-size:calc(11px * var(--ui-text-scale, 1))}.machine-popover .tribe-focus{font-size:calc(12px * var(--ui-text-scale, 1));line-height:1.45}.machine-springs-menu>.machine-popover{top:calc(100% + 8px);left:0}.machine-spring{border-top:1px solid #bddebc30;padding-top:12px;margin-top:12px}.machine-spring .meter{margin:5px 0 9px}.machine-spring .tribe-focus span{white-space:nowrap}.tribe-neighbours.machine-regions,.tribe-neighbours.machine-regions:has([data-inheritance]){right:22px;top:104px;width:min(620px,calc(100vw - 435px));padding:12px 13px;max-height:none;overflow:visible;border-radius:16px}.machine-regions-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}.machine-regions-heading .eyebrow,.machine-regions-heading .tiny{font-size:calc(9px * var(--ui-text-scale, 1))}.machine-region-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.machine-region{min-width:0}.machine-region>summary{display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-height:77px;padding:9px 8px;background:#566b5526;border:1px solid #d2c28b35;border-radius:9px;line-height:1.4}.machine-region>summary>strong{font-size:calc(11px * var(--ui-text-scale, 1));color:var(--cream);font-weight:500}.machine-region>summary>span{font-size:calc(9px * var(--ui-text-scale, 1));color:#d6dfc6}.machine-region>summary>.machine-region-terrain{font-size:calc(8px * var(--ui-text-scale, 1));color:#b4c9bf}.machine-region>summary>.meter{width:100%;height:3px}.machine-region[open]>summary{border-color:#e4ca8d;background:#b79a5126}.machine-region-content{right:0;top:calc(100% + 8px)}.machine-region-content .machine-resolved{font-size:calc(12px * var(--ui-text-scale, 1));color:var(--mint)}.machine-campaign>summary{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--mint);padding-top:10px}.machine-campaign>.machine-popover{right:0;top:calc(100% + 8px)}.machine-campaign .civilization-progress h3{font-size:calc(18px * var(--ui-text-scale, 1));margin:12px 0 8px}.machine-campaign .civilization-progress li,.machine-campaign .civilization-progress p{font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.5}.machine-campaign .civilization-progress ul{padding-left:17px}.tribe-selection.machine-selection.machine-compact{left:22px;bottom:18px;width:294px;padding:13px;max-height:none;overflow:visible;border-radius:18px}.machine-selection.machine-compact .eyebrow{font-size:calc(8px * var(--ui-text-scale, 1));letter-spacing:.065em}.machine-selection.machine-compact>.row>.secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:6px 7px}.machine-selection.machine-compact h3{font-size:calc(18px * var(--ui-text-scale, 1));line-height:1.3;margin:9px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.machine-vitals{display:flex;justify-content:space-between;gap:9px;font-size:calc(10px * var(--ui-text-scale, 1));margin:7px 0}.machine-vitals b{color:var(--mint)}.machine-selection-summary>.meter{height:4px;margin-bottom:8px}.machine-current-order{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4;color:#c9d9c6;margin:0 0 8px;min-height:14px}.machine-selection-summary>.tiny{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.5;margin:8px 0}.machine-selection .machine-roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:9px}.machine-selection .machine-roster .tribe-unit{min-height:28px;font-size:calc(10px * var(--ui-text-scale, 1));padding:6px 4px}.machine-selection-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:9px}.machine-selection-actions>.secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:6px 8px}.machine-selection-actions summary{font-size:calc(10px * var(--ui-text-scale, 1));color:var(--mint);padding:6px 0}.machine-selection-actions .machine-popover{bottom:calc(100% + 8px);left:0;max-height:calc(100dvh - 345px)}.tribe-orders.machine-orders{left:330px;right:22px;bottom:18px;padding:12px 14px;border-radius:18px}.machine-guidance{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:13px;border-bottom:1px solid #bddebc25;margin-bottom:10px;padding-bottom:10px;font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.4;color:#c8d9cc}.machine-guidance>div{min-width:0}.machine-guidance span{display:block;color:#a6bbad;font-size:calc(8px * var(--ui-text-scale, 1));text-transform:uppercase;letter-spacing:.1em;margin-bottom:3px}.machine-guidance strong{color:#ece8c7;font-weight:600}.machine-orders .tribe-building-options{gap:6px;align-items:stretch}.machine-orders .tribe-building-options>.secondary{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:61px;padding:8px 7px;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.4}.machine-orders .tribe-building-options>.secondary small{font-size:calc(9px * var(--ui-text-scale, 1));margin:0;opacity:1}.machine-orders .tribe-command-hint{justify-content:space-between;gap:12px;padding-top:8px;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.4}.machine-recovery{margin-bottom:9px}.machine-recovery>.secondary{width:100%;font-size:calc(11px * var(--ui-text-scale, 1));padding:8px}body:has(.machine-orders) .toast{bottom:210px;max-width:430px}@media(max-width:1100px){.tribe-status.machine-status{left:15px;gap:10px;padding:10px;max-width:370px}.tribe-neighbours.machine-regions,.tribe-neighbours.machine-regions:has([data-inheritance]){right:15px;width:calc(100vw - 405px)}.machine-region>summary{padding:7px}.machine-region>summary>strong{font-size:calc(10px * var(--ui-text-scale, 1))}.machine-region>summary>span{font-size:calc(8px * var(--ui-text-scale, 1))}.tribe-selection.machine-selection.machine-compact{left:15px;width:264px;padding:11px}.tribe-orders.machine-orders{left:291px;right:15px;padding:11px}.machine-guidance{font-size:calc(9px * var(--ui-text-scale, 1));gap:9px}.machine-orders .tribe-building-options>.secondary{font-size:calc(10px * var(--ui-text-scale, 1));padding:7px 5px}.machine-orders .tribe-building-options>.secondary small{font-size:calc(8px * var(--ui-text-scale, 1))}.machine-status .eyebrow{font-size:calc(7px * var(--ui-text-scale, 1))}}@media(max-height:760px){.tribe-status.machine-status,.tribe-neighbours.machine-regions,.tribe-neighbours.machine-regions:has([data-inheritance]){top:86px}.tribe-selection.machine-selection.machine-compact,.tribe-orders.machine-orders{bottom:12px}.machine-region>summary{min-height:70px;gap:4px}.machine-guidance{font-size:calc(9px * var(--ui-text-scale, 1));margin-bottom:8px;padding-bottom:8px}.machine-popover{max-height:calc(100dvh - 405px)}}@media(max-width:760px){.tribe-status.machine-status{top:78px}.tribe-neighbours.machine-regions,.tribe-neighbours.machine-regions:has([data-inheritance]){top:145px;left:15px;right:15px;width:auto}.machine-campaign>summary{padding-top:7px}.tribe-selection.machine-selection.machine-compact{width:210px}.tribe-orders.machine-orders{left:237px}.machine-guidance{display:block;font-size:calc(9px * var(--ui-text-scale, 1))}.machine-guidance>div{margin-bottom:4px}.machine-guidance span{display:inline;margin-right:5px}.machine-guidance>div:nth-child(2){display:none}.machine-orders .tribe-building-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.machine-orders .tribe-building-options>.secondary{min-height:47px;font-size:calc(9px * var(--ui-text-scale, 1));padding:6px}.machine-orders .tribe-command-hint{display:none}.machine-popover{max-height:calc(100dvh - 440px);width:min(320px,calc(100vw - 45px))}.machine-selection.machine-compact .eyebrow{font-size:calc(7px * var(--ui-text-scale, 1))}.machine-vitals{font-size:calc(9px * var(--ui-text-scale, 1))}.machine-selection-actions{gap:7px}.machine-selection-actions>.secondary{font-size:calc(8px * var(--ui-text-scale, 1))}.machine-selection-actions summary{font-size:calc(9px * var(--ui-text-scale, 1))}}.space-heading{top:16px;left:16px;right:16px;padding:11px 16px;min-height:66px}.space-heading h2{font-size:calc(22px * var(--ui-text-scale, 1));margin:3px 0}.space-heading .secondary{font-size:calc(11px * var(--ui-text-scale, 1));padding:9px 12px}.space-instruments.space-compact:not(:has(.space-tool-list details[open])){bottom:auto;max-height:calc(100dvh - 166px)}.space-instruments.space-compact,.space-navigation.space-compact{top:102px;bottom:143px;max-height:none;width:252px;padding:13px;display:flex;flex-direction:column;overflow:visible;gap:10px}.space-instruments.space-compact{left:16px;bottom:80px}.space-navigation.space-compact{right:16px;width:274px}.space-compact.hud-panel[open]{gap:0}.space-compact.hud-panel>.hud-panel-toggle{flex:0 0 auto}.space-compact.hud-panel[open]::details-content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;gap:10px}.space-compact.hud-panel:not([open]){display:block;bottom:auto;height:auto;max-height:calc(100dvh - 166px);padding-block:8px}.space-vitals,.space-flight,.space-guidance{flex:0 0 auto;min-width:0}.space-vitals p,.space-guidance p{margin:7px 0!important;font-size:calc(11px * var(--ui-text-scale, 1))!important;line-height:1.45!important}.space-gauge{margin-bottom:7px}.space-gauge>span{display:flex;justify-content:space-between;gap:10px;font-size:calc(9px * var(--ui-text-scale, 1));letter-spacing:.06em;color:#bbd2cf}.space-gauge b{font-size:calc(12px * var(--ui-text-scale, 1));letter-spacing:0;color:#f1edcd}.space-gauge meter{display:block;width:100%;height:8px;margin-top:3px}.space-gauge meter::-webkit-meter-bar{border:0;background:#172f39;border-radius:4px}.space-gauge meter::-webkit-meter-optimum-value{background:#b2ce91}.space-gauge.energy meter::-webkit-meter-optimum-value{background:#83c5da}.space-telemetry{display:flex;justify-content:space-between;gap:7px;font-size:calc(10px * var(--ui-text-scale, 1));color:#b7cdca}.space-telemetry b{display:block;color:#f1edcd;font-size:calc(13px * var(--ui-text-scale, 1));margin-top:3px}.space-guidance{border-top:1px solid #91b0ae35;padding-top:5px}.space-guidance b{font-size:calc(9px * var(--ui-text-scale, 1));text-transform:uppercase;letter-spacing:.05em;color:#dbc782;margin-right:4px}.space-guidance.urgent{border-color:#d99b6955}.space-guidance.urgent p:first-child{color:#ffd3a5}.space-tool-list,.space-system-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#537878 transparent;padding-right:3px}.space-tool-list{flex:1 1 auto;min-height:40px}.space-system-list{flex:1 1 auto;min-height:36px;border-top:1px solid #91b0ae35;padding-top:2px}.space-system-list>details,.space-system-list>section{border:0!important;border-bottom:1px solid #91b0ae25!important;margin:0!important;padding:9px 0!important}.space-system-list summary{font-size:calc(11px * var(--ui-text-scale, 1))!important;line-height:1.45;font-weight:600}.space-system-list p,.space-system-list .tiny{font-size:calc(10px * var(--ui-text-scale, 1))!important;line-height:1.5!important}.space-system-list h3,.space-system-list h4{font-size:calc(12px * var(--ui-text-scale, 1))}.space-system-list button{font-size:calc(11px * var(--ui-text-scale, 1));min-height:34px;padding:7px 9px}.space-tool-list .space-biology{padding-top:8px}.space-tool-list .space-biology summary{font-size:calc(11px * var(--ui-text-scale, 1))}.space-flight h3{font-size:calc(17px * var(--ui-text-scale, 1));line-height:1.2;margin:5px 0 10px;color:#f1edcd}.space-flight .eyebrow{font-size:calc(8px * var(--ui-text-scale, 1))}.space-flight-action{margin-bottom:8px}.space-flight-action button{font-size:calc(11px * var(--ui-text-scale, 1));padding:8px 10px;min-height:35px;margin:0!important;line-height:1.25}.space-action-reason{display:block;font-size:calc(9px * var(--ui-text-scale, 1));line-height:1.35;margin-top:4px;color:#c6d4cf}.space-flight-action button:disabled{opacity:.6}.space-flight-progress{font-size:calc(10px * var(--ui-text-scale, 1))!important;margin:5px 0!important}.space-flight-help,.space-flight summary{font-size:calc(10px * var(--ui-text-scale, 1));color:#b5ccca;cursor:pointer}.space-flight details p{font-size:calc(10px * var(--ui-text-scale, 1));line-height:1.45}.space-urgent{border-top:1px solid #ce916c55;margin-top:8px;padding-top:6px}.space-urgent h3{font-size:calc(13px * var(--ui-text-scale, 1));margin:4px 0}.space-urgent p{font-size:calc(10px * var(--ui-text-scale, 1))!important;line-height:1.4!important;margin:6px 0}.space-urgent button{font-size:calc(11px * var(--ui-text-scale, 1));padding:8px;margin:4px 0;min-height:35px}.space-controls{bottom:16px;left:16px;right:16px;padding:11px 16px;min-height:43px;font-size:calc(11px * var(--ui-text-scale, 1))}.space-star-map:not([open]){right:16px;bottom:80px;width:274px;padding:12px 13px;min-height:45px;font-size:calc(12px * var(--ui-text-scale, 1))}.space-notice{bottom:79px;font-size:calc(11px * var(--ui-text-scale, 1));line-height:1.45;padding:9px 12px;width:calc(100vw - 608px);max-width:490px;max-height:110px;overflow:auto;pointer-events:auto}.space-notice:empty{display:none}.space-dock .space-guidance{margin-bottom:12px}.space-dock .space-flight-action{width:100%}#space-flight-help{position:relative}#space-flight-help[open]>p{position:absolute;top:17px;right:0;z-index:8;width:100%;padding:11px;margin:0;background:#16323ff5;border:1px solid #759c9955;border-radius:8px;box-shadow:0 9px 22px #0007}@media(max-height:720px){.space-heading{top:10px;min-height:58px;padding:9px 13px}.space-heading h2{font-size:calc(19px * var(--ui-text-scale, 1))}.space-instruments.space-compact,.space-navigation.space-compact{top:86px;gap:7px;padding:11px}.space-vitals p,.space-guidance p{font-size:calc(10px * var(--ui-text-scale, 1))!important;line-height:1.35!important;margin:5px 0!important}.space-urgent p{font-size:calc(9px * var(--ui-text-scale, 1))!important;line-height:1.3!important}.space-urgent h3{font-size:calc(12px * var(--ui-text-scale, 1))}.space-flight h3{font-size:calc(15px * var(--ui-text-scale, 1))}.space-flight-action button{min-height:32px;padding:7px 8px}.space-flight-action{margin-bottom:6px}}@media(max-width:1100px){.space-instruments.space-compact{width:230px}.space-navigation.space-compact,.space-star-map:not([open]){width:252px}.space-notice{width:calc(100vw - 552px)}.space-controls{font-size:calc(10px * var(--ui-text-scale, 1));gap:8px}}@media(max-width:760px){.space-heading{left:10px;right:10px;gap:8px}.space-heading h2{font-size:calc(16px * var(--ui-text-scale, 1))}.space-heading .secondary{font-size:calc(9px * var(--ui-text-scale, 1));padding:7px}.space-instruments.space-compact{left:10px;width:190px;padding:9px}.space-navigation.space-compact{right:10px;width:210px;padding:9px}.space-star-map:not([open]){right:10px;width:210px}.space-gauge>span{font-size:calc(8px * var(--ui-text-scale, 1))}.space-telemetry{font-size:calc(9px * var(--ui-text-scale, 1))}.space-telemetry b{font-size:calc(11px * var(--ui-text-scale, 1))}.space-guidance p{font-size:calc(9px * var(--ui-text-scale, 1))!important}.space-notice{bottom:66px;width:calc(100vw - 40px);max-height:66px;font-size:calc(10px * var(--ui-text-scale, 1));z-index:7}.space-controls{left:10px;right:10px;bottom:10px;font-size:calc(9px * var(--ui-text-scale, 1));padding:8px;gap:7px}.space-star-map[open]{top:90px;width:calc(100vw - 20px)}}@media(max-height:720px){.space-compact.hud-panel[open]{gap:0}.space-compact.hud-panel[open]::details-content{gap:7px}}@supports not selector(::details-content){.space-compact.hud-panel[open]{display:block;bottom:auto;max-height:calc(100dvh - 230px);overflow-y:auto;overscroll-behavior:contain}.space-compact.hud-panel[open] .space-tool-list,.space-compact.hud-panel[open] .space-system-list{overflow:visible;margin-top:10px}}.space-navigation.hud-panel .space-flight>.eyebrow,.space-navigation.hud-panel .space-flight>h3{display:none}#space-combat-help{position:relative}#space-combat-help>summary{font-size:calc(10px * var(--ui-text-scale, 1));color:#b5ccca;cursor:pointer}#space-combat-help[open]>p{position:absolute;bottom:20px;right:0;z-index:8;width:100%;max-height:180px;overflow:auto;padding:11px;margin:0;background:#16323ff5;border:1px solid #759c9955;border-radius:8px;box-shadow:0 9px 22px #0007}.space-flight-action[data-ready=true] .space-action-reason{display:none}.space-navigation.hud-panel .space-flight{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.space-navigation.hud-panel .space-system-list{flex-basis:0}.space-navigation.hud-panel .space-flight:has(details[open]){overflow:visible}.space-flight summary{line-height:1.3}.space-urgent p{margin:4px 0}.space-navigation.hud-panel[open]>.hud-panel-toggle{min-height:20px;margin-bottom:3px;padding-bottom:3px}
