.homeland{--hp-line:var(--border,#324037);--hp-soft:#1b251f;--hp-accent:#b6d4a5;margin-block:24px 36px;font-size:14px;line-height:1.55}.homeland button,.homeland select,.homeland input:not([type=checkbox],[type=radio],[type=range]){font:inherit;border:1px solid var(--hp-line);color:var(--text,#edf2e9);background:#151d18;border-radius:8px;min-height:42px;padding:9px 12px}.homeland button{cursor:pointer;transition:background .15s,border-color .15s}.homeland button:hover{background:#28372c;border-color:#91b89a}.homeland button:disabled{opacity:.45;cursor:default}.homeland input:focus-visible,.homeland select:focus-visible,.homeland button:focus-visible,.homeland summary:focus-visible,.homeland [tabindex]:focus-visible{outline-offset:3px;outline:2px solid #bee5c5}.homeland [hidden]{display:none!important}.homeland input[type=checkbox],.homeland input[type=radio],.homeland input[type=range]{accent-color:#b6d4a5}.homeland input[type=search]{width:100%;margin-top:6px}.homeland input[type=number]{width:86px}.hp-toolbar,.hp-actions,.hp-view-tabs,.hp-stepper,.hp-layout-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hp-toolbar{justify-content:space-between;gap:12px;margin-bottom:10px}.hp-toolbar>p{color:#b3c1b5;margin:0;font-size:13px}.hp-actions button{min-height:38px;padding:7px 12px}.hp-feedback{color:#cfe7c0;min-height:20px;margin:6px 0}.hp-workspace{grid-template-columns:minmax(260px,300px) minmax(0,1fr);align-items:start;gap:22px;display:grid}.hp-settings.panel{scrollbar-width:thin;max-height:calc(100dvh - 96px);padding:20px;position:sticky;top:80px;overflow:auto}.hp-settings fieldset{border:0;margin:22px 0;padding:0}.hp-settings legend{letter-spacing:.06em;color:#c8d5c7;margin-bottom:10px;font-size:12px;font-weight:700}.hp-rv label{justify-content:space-between;margin:12px 0;font-size:20px;font-weight:700;display:flex}.hp-rv output{color:#d5ecc5;font-size:30px;line-height:1}.hp-rv-stepper{flex-wrap:nowrap}.hp-rv-stepper input{width:100%;min-width:0}.hp-rv-stepper button{min-width:38px;padding:6px;font-size:20px}.hp-range-labels{color:#9caf9e;justify-content:space-between;padding:4px 48px;font-size:11px;display:flex}.hp-muted{color:#adbdaf;font-size:12px;line-height:1.6}.hp-goals label{border:1px solid var(--hp-line);cursor:pointer;border-radius:9px;align-items:flex-start;gap:9px;margin-bottom:7px;padding:12px;display:flex}.hp-goals label:has(input:checked){background:#28382b;border-color:#89b995}.hp-goals input{flex:none;margin-top:5px}.hp-goals strong{font-size:13px;display:block}.hp-goals small{color:#b3c5b6;margin-top:4px;font-size:11px;display:block}.hp-more-settings>summary{cursor:pointer;border-block:1px solid var(--hp-line);color:#d6e2d1;padding:12px 0;font-weight:600}.hp-segmented{border:1px solid var(--hp-line);background:#111914;border-radius:8px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.hp-segmented label{cursor:pointer;flex:1;min-width:64px;position:relative}.hp-segmented input{opacity:0;width:1px;height:1px;position:absolute}.hp-segmented span{text-align:center;border:1px solid #0000;border-radius:5px;padding:8px 5px;font-size:12px;display:block}.hp-segmented input:checked+span{color:#e6f1df;background:#334a36;border-color:#819c7d}.hp-segmented input:focus-visible+span{outline:2px solid #bee5c5}.hp-full{text-align:left;width:100%;margin-top:10px}.hp-check{align-items:center;gap:10px;margin:12px 0;font-size:13px;display:flex}.hp-check input{flex:none;width:17px;height:17px}.hp-number-label{justify-content:space-between;align-items:center;gap:10px;margin:12px 0;font-size:12px;display:flex}.hp-primary{text-align:center;font-weight:700;color:#15201a!important;background:#c2dcb5!important;border-color:#c2dcb5!important}.hp-fac-row,.hp-module-row{grid-template-columns:minmax(0,1fr) 65px 74px;align-items:center;gap:6px;margin:10px 0;font-size:12px;display:grid}.hp-fac-row input,.hp-fac-row select,.hp-module-row select{min-width:0;width:100%!important;padding:6px!important}.hp-module-row{grid-template-columns:minmax(0,1fr) 74px}.hp-fac-row>span{overflow-wrap:anywhere}.hp-view-tabs{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;display:grid}.hp-view-tabs button{text-align:left;padding:14px 16px;font-weight:700}.hp-view-tabs small{color:#afc0b2;margin-top:3px;font-size:11px;font-weight:400;display:block}.hp-view-tabs button[aria-pressed=true]{background:#2b3b2e;border-color:#93b49a}.hp-progress{align-items:center;gap:12px;display:flex;padding:18px!important}.hp-progress button{margin-left:auto}.hp-spinner{border:2px solid #49614b;border-top-color:#d0eac2;border-radius:50%;flex:none;width:18px;height:18px;animation:1s linear infinite hp-spin}@keyframes hp-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.hp-spinner{animation:none}.homeland button{transition:none}}.hp-summary{grid-template-columns:1.25fr 1fr 1.15fr;gap:10px;margin:14px 0;display:grid}.hp-stat{border:1px solid var(--hp-line);background:#18231c;border-radius:10px;min-width:0;padding:18px!important}.hp-stat small{color:#b4c6b7;font-size:11px;display:block}.hp-stat strong{letter-spacing:-.04em;overflow-wrap:anywhere;margin:8px 0;font-family:inherit;font-size:27px;font-weight:700;display:block}.hp-stat p{color:#afc1b2;margin:5px 0;font-size:12px}.hp-stat:first-child{background:#263c2b;border-color:#577b5e}.hp-plan-head{justify-content:space-between;align-items:center;gap:10px;margin:20px 0 12px;display:flex}.hp-plan-head h2{margin:0;font-size:21px}.hp-badge{color:#c6dec0;white-space:nowrap;border:1px solid #476449;border-radius:20px;padding:4px 8px;font-size:11px}.hp-warning{color:#e5d4ae;background:#29251b;border:1px solid #987c4a;border-radius:8px;margin:12px 0;padding:12px 15px;font-size:13px}.hp-warning ul{margin:4px 0;padding-left:18px}.hp-section{border:1px solid var(--hp-line);background:#141c17;border-radius:10px;margin:14px 0;padding:18px;scroll-margin-top:85px}.hp-section h3{margin:0 0 12px;font-size:16px}.hp-section h4{margin:0 0 4px;font-size:14px}.hp-time{justify-content:space-between;align-items:center;gap:8px;margin:14px 0;display:flex}.hp-time label{color:#bdcdbf;font-size:12px}.hp-time select{margin-left:6px}.hp-anchor-nav{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.hp-anchor-nav a{border:1px solid var(--hp-line);color:#cfe3c8;background:#222e25;border-radius:20px;padding:6px 12px;font-size:12px}.hp-line{border-top:1px solid #2b392f;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:10px;padding:13px 0;display:grid}.hp-line:first-of-type{border-top:0}.hp-line .hp-count{background:#293c2e;border:1px solid #465c47;border-radius:6px;place-items:center;min-height:32px;font-size:14px;font-weight:700;display:grid}.hp-line p{color:#b0c2b4;margin:3px 0;font-size:12px}.hp-line strong{font-size:14px}.hp-line .hp-rate{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;font-size:13px}.hp-flow{color:#c2d6b9!important;font-size:11px!important}.hp-balance{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.hp-balance .hp-section{margin:0}.hp-ledger{border-bottom:1px solid #29382d;justify-content:space-between;align-items:start;gap:10px;padding:9px 0;font-size:12px;display:flex}.hp-ledger>span:first-child{min-width:0}.hp-ledger>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}.hp-upgrade-row{grid-template-columns:minmax(0,1fr) 105px;gap:8px;margin:10px 0;display:grid}.hp-upgrade-row strong,.hp-upgrade-row small{display:block}.hp-upgrade-row small{color:#b6c8b9;margin-top:3px;font-size:11px}.hp-upgrade-row>span:last-child{text-align:right;font-size:13px}.hp-stock{border-top:1px solid var(--hp-line);margin-top:12px;padding-top:10px}.hp-stock summary{cursor:pointer}.hp-worker-row{border-bottom:1px solid #314034;grid-template-columns:46px minmax(0,1fr) 70px;align-items:center;gap:10px;padding:10px 0;display:grid}.hp-worker-row img{object-fit:contain;width:44px;height:52px}.hp-worker-row strong{font-size:13px}.hp-worker-row small{color:#b5c6b6;font-size:11px;display:block}.hp-worker-row input{width:70px!important}.hp-roster .hp-worker-row{grid-template-columns:46px minmax(0,1fr) 32px}.hp-worker-list,.hp-recipe-list{max-height:55dvh;margin-top:12px;padding-right:4px;overflow:auto}.hp-dialog{color:#e3eee0;background:#17221b;border:1px solid #536e56;border-radius:14px;width:min(720px,100vw - 24px);max-height:90dvh;padding:22px;box-shadow:0 20px 80px #0008}.hp-dialog::backdrop{background:#000a}.hp-dialog header{z-index:1;background:#17221b;justify-content:space-between;align-items:center;gap:12px;padding-block:10px;display:flex;position:sticky;top:-22px}.hp-dialog h2{margin:3px 0;font-size:23px}.hp-recipe-row{border-bottom:1px solid #304035;grid-template-columns:minmax(0,1fr) 128px;align-items:center;gap:10px;padding:10px 0;display:grid}.hp-recipe-row strong{font-size:13px}.hp-recipe-row small{color:#adbead;font-size:11px;display:block}.hp-recipe-row select{width:100%;font-size:12px}.hp-layout-tools{justify-content:space-between;margin:14px 0}.hp-layout-tools>div{align-items:center;gap:6px;display:flex}.hp-layout-canvas{touch-action:none;background:#101b14;border:1px solid #4c6551;border-radius:10px;height:540px;position:relative;overflow:hidden}.hp-layout-canvas svg{width:100%;height:100%;display:block}.hp-layout-canvas [data-piece]{cursor:grab;outline:none}.hp-layout-canvas [data-piece]:focus rect,.hp-layout-canvas [data-piece][aria-pressed=true] rect{stroke:#fff6be;stroke-width:.3px}.hp-layout-canvas [data-piece]:active{cursor:grabbing}.hp-layout-canvas text{pointer-events:none;user-select:none}.hp-map-legend{color:#c3d2c5;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:11px;display:flex}.hp-map-legend i{border-radius:2px;width:10px;height:10px;margin-right:5px;display:inline-block}.hp-selection{background:#1e3023;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:10px 0;padding:12px;display:flex}.hp-selection label{margin-right:6px;font-size:12px}.hp-selection input{width:72px!important}.hp-reference{margin:24px 0!important}.hp-reference p{font-size:13px;line-height:1.7}.hp-table-scroll{max-height:420px;overflow:auto}.hp-table-scroll th,.hp-table-scroll td{text-align:left;border-bottom:1px solid #2c3c31;padding:11px 14px;font-size:13px}.hp-table-scroll thead{background:#27382b;position:sticky;top:0}.hp-empty{text-align:center;padding:30px}.hp-empty h3{font-size:20px}.hp-order-row{grid-template-columns:minmax(0,1fr) 80px;gap:8px;display:grid}.hp-results{min-width:0}.hp-result-note{color:#b9cbb6;font-size:12px}@media (width<=1200px){.hp-workspace{grid-template-columns:270px minmax(0,1fr);gap:16px}.hp-summary{grid-template-columns:1fr}.hp-stat strong{margin-right:10px;font-size:27px;display:inline-block}.hp-balance{grid-template-columns:1fr}.hp-stat{padding:14px 16px!important}.hp-stat p{font-size:12px;display:inline}.hp-stat small{margin-bottom:3px}}@media (width<=800px){.hp-workspace{grid-template-columns:1fr}.hp-settings.panel{max-height:none;padding:16px;position:static;overflow:visible}.hp-goals{grid-template-columns:1fr 1fr;gap:6px;display:grid}.hp-goals label{margin:0;padding:10px}.hp-goals small{font-size:10px}.hp-goals legend{grid-column:1/-1}.hp-toolbar{align-items:stretch}.hp-toolbar>p{width:100%}.hp-actions{grid-template-columns:repeat(3,1fr);width:100%;display:grid}.hp-actions button{padding:7px;font-size:12px}.hp-actions [data-action=save]{grid-column:1/-1}.hp-settings fieldset{margin:16px 0}.hp-view-tabs{z-index:2;background:#101612;padding:8px 0;position:sticky;top:58px}.hp-view-tabs button{padding:10px;font-size:14px}.hp-view-tabs small{font-size:10px}.hp-summary{grid-template-columns:1fr 1fr}.hp-stat:first-child{grid-column:1/-1}.hp-stat strong{font-size:23px}.hp-stat p{display:block}.hp-stat:last-child strong{font-size:19px}.hp-section{padding:14px}.hp-line{grid-template-columns:32px minmax(0,1fr);gap:8px}.hp-line .hp-rate{text-align:left;color:#c8e1bf;grid-column:2}.hp-layout-canvas{height:420px}.hp-layout-tools{gap:10px}.hp-layout-tools button{padding:6px 9px;font-size:12px}.hp-dialog{padding:16px}.hp-dialog header{top:-16px}.hp-dialog h2{font-size:20px}.hp-recipe-row{grid-template-columns:minmax(0,1fr) 100px}.hp-progress{font-size:12px;padding:12px!important}.hp-progress button{padding:6px 8px}.hp-upgrade-row{grid-template-columns:minmax(0,1fr) 85px}.hp-table-scroll th,.hp-table-scroll td{padding:9px;font-size:12px}.hp-reference .section-heading{align-items:flex-start;gap:10px}.hp-reference h2{font-size:21px}}.homeland .hp-goals input[type=radio]{flex:0 0 16px;width:16px;min-width:16px;height:16px;min-height:16px;margin:3px 0 0;padding:0}.hp-goals label>span{flex:1;min-width:0}.homeland .hp-segmented input[type=radio]{width:1px;min-width:1px;height:1px;min-height:1px;padding:0}
