:root{--bg:#f5f7fa;--surface:#fff;--ink:#18263b;--muted:#738094;--line:#e6ebf1;--green:#19826b;--sidebar:#122237;--accent:#2b937c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #69bba9;outline-offset:3px}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);color:#d9e3ef;display:flex;flex-direction:column;padding:31px 20px 20px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:750;letter-spacing:2px;color:#fff;padding-left:5px}.brand-mark{display:flex;align-items:center;justify-content:center;width:39px;height:42px;border:1px solid #607188;border-radius:11px;font-size:27px;letter-spacing:-3px;font-weight:550}.brand-mark span{color:#62bea8;font-size:31px}.brand-second{display:block;font-size:8px;letter-spacing:1.6px;font-weight:500;color:#9caec4;margin-top:1px}.nav-caption{font-size:10px;letter-spacing:1.8px;color:#7e94ad;margin:45px 12px 14px}.nav-link{height:46px;padding:12px;border-radius:8px;display:flex;align-items:center;gap:12px;margin-bottom:5px;color:#a8b8cb;font-size:13px}.nav-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6}.nav-link.active{color:#fff;background:#263b51;box-shadow:inset 3px 0 #65c0a9}.nav-link:hover{background:#21364c;color:#fff}.nav-count{margin-left:auto;font-size:11px;border:1px solid #496078;padding:0 7px;border-radius:5px;color:#cfdfec}.host-panel{margin:35px 3px 0;padding:18px 13px;border:1px solid #30455b;border-radius:10px}.host-label{font-size:9px;letter-spacing:1.6px;color:#8198b0}.host-name{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;font-weight:600}.host-dot,.summary-dot,.tiny-dot{display:inline-block;border-radius:50%;width:7px;height:7px;background:#96a5b7}.host-dot.connected{background:#67c5aa;box-shadow:0 0 0 3px #67c5aa15}.host-local{margin-left:auto;font-size:8px;letter-spacing:.7px;color:#8aa1b9;border:1px solid #3c5269;border-radius:4px;padding:2px 5px}.host-panel p{font-size:11px;color:#8ea1b8;margin:7px 0 0}.sidebar-bottom{margin-top:auto;padding:18px 3px 0;display:flex;align-items:center;gap:9px;font-size:10px;color:#c8d5e3;border-top:1px solid #2b3d51}.sidebar-bottom small{display:block;font-size:9px;color:#8095ac;margin-top:2px}.private-icon{font-size:22px;color:#8ba4bf}.version{margin-left:auto;font-size:9px;color:#7e94ad}.main-shell{margin-left:232px}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:12px;color:#8894a5}.breadcrumb span{margin:0 13px;color:#c8d0dc}.breadcrumb strong{font-weight:500;color:#4e6077}.readonly{font-size:11px;display:flex;gap:7px;align-items:center;color:#6b7c8e}.readonly span{width:6px;height:6px;background:#87a19a;border-radius:50%}main{max-width:1540px;margin:auto;padding:34px 38px 22px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;letter-spacing:1.9px;color:#7b8b9d;font-weight:650;margin:0 0 8px}h1{font-size:29px;line-height:1.25;letter-spacing:-1.1px;font-weight:650;margin:0}.subtitle{color:#7b889a;font-size:13px;margin:9px 0 0}.button{border:1px solid #dbe3eb;background:#fff;border-radius:8px;padding:10px 15px;color:#42546b;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 1px 2px #13263b05}.button:hover{background:#f7fafc;border-color:#b8c9d3}.button svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.65;fill:none}.connection-notice{display:flex;align-items:center;gap:12px;padding:14px 17px;background:#edf3f8;border:1px solid #dce6ef;border-radius:9px;margin-bottom:24px}.notice-icon{border:1px solid #88a2bb;color:#6b88a4;border-radius:50%;width:21px;height:21px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;flex-shrink:0}.connection-notice strong{font-size:12px;font-weight:600}.connection-notice p{font-size:11px;color:#6e8297;margin:3px 0 0}.notice-tag{margin-left:auto;font-size:8px;letter-spacing:1px;border:1px solid #ccdae6;color:#718aa2;border-radius:4px;padding:4px 7px;white-space:nowrap}.live-notice{background:#eef7f4;border-color:#d8eae3}.live-notice .notice-icon{border-color:#72ab98;color:#31866d}.live-notice p{color:#638578}.error-notice{padding:12px 16px;background:#fff2ef;border:1px solid #efd6cd;color:#98523d;border-radius:8px;margin-bottom:20px;font-size:12px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:33px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 19px 14px;box-shadow:0 2px 3px #15263802}.summary-label{font-size:11px;color:#77869a;display:flex;align-items:center;justify-content:space-between}.summary-icon{color:#8194a9;font-size:17px;line-height:1}.summary-dot{width:6px;height:6px;box-shadow:0 0 0 4px #eef1f5}.summary-dot.green{background:#50a58b;box-shadow:0 0 0 4px #edf6f1}.summary-dot.amber{background:#b59a68;box-shadow:0 0 0 4px #f9f5ee}.summary-dot.gray{background:#91a0b3}.summary-card>strong{font-size:31px;line-height:1.2;display:block;font-weight:600;letter-spacing:-1px;margin-top:14px}.summary-card p{font-size:10px;color:#9ba7b6;margin:5px 0 0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:20px}h2{font-size:17px;font-weight:600;letter-spacing:-.4px;margin:0}.count-pill{font-size:10px;color:#7a8ba0;background:#e8edf3;border:1px solid #e0e6ef;display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:20px;vertical-align:middle;border-radius:6px;margin-left:7px}.section-heading p{font-size:11px;color:#8b98a9;margin:5px 0 0}.updated{display:flex;align-items:center;gap:6px;font-size:10px;color:#8e9bae;white-space:nowrap}.tiny-dot{width:5px;height:5px;background:#a5b2bf}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:19px}.program-tabs{display:flex;gap:3px;background:#eaf0f5;padding:4px;border-radius:8px}.tab{border:0;background:transparent;border-radius:6px;padding:7px 11px;color:#7c8c9e;font-size:10px;white-space:nowrap}.tab.selected{background:#fff;color:#344b60;box-shadow:0 1px 3px #102a3f10;font-weight:600}.tab:hover{color:#263e54}.search{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:8px 10px;width:205px}.search svg{width:14px;height:14px;stroke:#9aa8b8;stroke-width:1.7;fill:none;flex-shrink:0}.search input{border:0;outline:none;color:#43576e;width:100%;min-width:0;font-size:11px;background:transparent}.search input::placeholder{color:#a7b2bf}.instances-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.instance-card{border:1px solid #e1e8f0;background:#fff;border-radius:11px;padding:20px 19px 0;box-shadow:0 2px 4px #18334b02;min-width:0;transition:box-shadow .15s,border-color .15s}.instance-card:hover{border-color:#c3d4db;box-shadow:0 5px 16px #18334b06}.instance-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:6px}.program-icon{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:650;border:1px solid #e4eaf1;background:#eef3f8;color:#6c86a4}.program-icon.trap{background:#f2eff9;border-color:#eae3f2;color:#9a83b5}.program-icon.scanner{background:#eef7f4;border-color:#dfede7;color:#6d9d87}.program-icon.city{background:#faf4e9;border-color:#f1e9d9;color:#b29964}.status{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:500;border:1px solid #e7ecf1;background:#f7f9fb;color:#8c9bad;border-radius:5px;padding:4px 6px;white-space:nowrap}.status>span:first-child{width:5px;height:5px;border-radius:50%;background:#a3afbd}.status-running{background:#eff8f3;border-color:#dceee4;color:#3e8c6f}.status-running>span:first-child{background:#54a583}.status-stopped{background:#f4f5f7;color:#8b95a3}.status-missing{background:#fcf6e9;border-color:#f1e7d2;color:#a18b5c}.status-missing>span:first-child{background:#b9a36f}.program-label{font-size:9px;text-transform:uppercase;letter-spacing:1.2px;color:#94a1b2;margin:0 0 4px}h3{margin:0;font-size:16px;font-weight:600;letter-spacing:-.3px}.directory{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#9aa7b6;font-size:10px;margin:4px 0 17px}.instance-values{margin:0 0 17px}.instance-values>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin:9px 0;font-size:10px}.instance-values dt{color:#96a2b1}.instance-values dd{margin:0;color:#586c83;font-weight:500;text-align:right;overflow-wrap:anywhere}.card-footer{border-top:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px 0;color:#9ca8b5;font-size:9px}.uptime-symbol{font-size:12px;color:#9fabb9}.configuration-button{border:0;background:transparent;color:#6b8397;font-size:9px;padding:3px 0;font-weight:500;white-space:nowrap}.configuration-button:hover{color:#21826b}.configuration-button span{margin-left:3px}.empty-state{text-align:center;border:1px dashed #d7e2ea;background:#fff;padding:50px;border-radius:10px;color:#7c8fa2}.empty-state strong{font-weight:550;color:#536d83;font-size:16px}.empty-state p{font-size:12px}.page-footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#a4afbd;margin-top:27px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:1px solid #dee6ee;border-radius:15px;padding:0;color:var(--ink);width:min(480px,calc(100vw - 30px));box-shadow:0 30px 80px #10223733}dialog::backdrop{background:#10223860;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;padding:24px 25px 20px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:21px}.close-button{border:0;background:#f1f4f7;width:29px;height:29px;border-radius:7px;font-size:23px;line-height:1;color:#8594a5}.dialog-footer{padding:16px 25px;background:#f7f9fb;color:#8292a5;font-size:10px;border-top:1px solid var(--line)}#details-body{padding:6px 25px 22px}.details-group{margin:20px 0 0}.details-group h3{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#8698aa;margin-bottom:11px}.details-list{margin:0}.details-list>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #f0f3f6;font-size:11px}.details-list dt{color:#8694a6}.details-list dd{margin:0;text-align:right;overflow-wrap:anywhere;color:#415970;max-width:65%}.details-warning{padding:10px;background:#faf4e8;color:#9a8054;border-radius:6px;margin-top:20px;font-size:11px}@media(min-width:1600px){main{padding-top:43px}.page-heading{margin-bottom:31px}.instances-grid{gap:22px}.instance-card{padding:24px 24px 0}.instance-card h3{font-size:18px}.instance-values>div{font-size:12px}.card-footer,.configuration-button{font-size:11px}.directory{font-size:11px}}@media(max-width:1200px){.sidebar{width:202px;padding:26px 14px}.main-shell{margin-left:202px}main{padding:27px 26px}.topbar{padding:0 26px}.instances-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.program-tabs{width:max-content;max-width:100%;overflow:auto}.summary-grid{gap:11px}.summary-card{padding:15px}h1{font-size:26px}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:16px 20px;display:block}.brand{font-size:13px;gap:10px}.brand-mark{height:33px;width:32px;font-size:24px}.brand-second{font-size:7px}.sidebar nav,.nav-caption,.host-panel,.sidebar-bottom{display:none}.main-shell{margin:0}.topbar{height:48px;padding:0 20px}.readonly{font-size:9px}.breadcrumb{font-size:10px}main{padding:25px 20px}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px;max-width:250px}.subtitle{font-size:11px}.refresh-button{padding:9px}.refresh-button span{display:none}.connection-notice{padding:12px;align-items:flex-start}.connection-notice p{font-size:10px}.notice-tag{display:none}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:25px}.summary-label{font-size:10px}.summary-card>strong{font-size:29px}.section-heading{align-items:flex-start}.section-heading p{font-size:10px;max-width:235px}.updated{font-size:8px}.section-heading h2{font-size:16px}.program-tabs{gap:0;padding:3px}.tab{padding:7px 9px;font-size:9px}.instances-grid{gap:13px}.instance-card{padding:16px 15px 0}.card-footer{flex-wrap:wrap;gap:2px}.configuration-button{margin-left:auto}.page-footer{font-size:8px;flex-direction:column;gap:5px}.status{font-size:8px}.instance-card h3{font-size:14px}.program-label{font-size:8px}.directory{font-size:9px}}@media(max-width:460px){.instances-grid{grid-template-columns:1fr}.instance-card{padding:20px 21px 0}.instance-card h3{font-size:17px}.instance-values>div{font-size:12px}.card-footer,.configuration-button{font-size:10px}.updated{max-width:90px;white-space:normal;justify-content:flex-end;text-align:right}.program-tabs{width:100%}.tab{flex:1;padding:7px 5px;font-size:8px}}

/* Farm cards share process status with monitors; feed freshness is independent. */
.program-icon.farm{background:#eef5e8;border-color:#e0ead8;color:#7e995c}
.farm-feed{font-size:10px;padding:7px 9px;border-radius:6px;background:#f1f4f8;color:#8797aa;margin-bottom:12px}
.farm-feed.feed-fresh{background:#edf7f1;color:#478c6d}
.farm-feed.feed-stale,.farm-feed.feed-invalid{background:#fcf4e6;color:#a0844a}
/* Keep comparable resource balances together, even on narrow cards. */
.farm-resources{width:100%;table-layout:auto;border-collapse:collapse;font-size:10px;font-variant-numeric:tabular-nums;margin:0 0 8px}
.farm-resources caption{text-align:left;font-weight:600;color:var(--ink);font-size:11px;margin:0 0 8px}
.farm-resources th,.farm-resources td{padding:7px 3px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;vertical-align:middle}
.farm-resources th:first-child{text-align:left;width:28px;padding-left:0;padding-right:5px}
.farm-resources thead th{font-size:9px;color:var(--muted);font-weight:500}
.farm-resources tbody th{color:var(--muted);font-weight:500}
.farm-resources td{color:#526b80}
.farm-resources td:last-child{font-weight:650;color:var(--ink);background:#f5f9f7}
.farm-resource-note{font-size:9px;color:var(--muted);margin:0 0 15px}
#details .farm-resources{font-size:11px}
.instances-grid{align-items:start}

/* Start/stop buttons affect only the explicitly confirmed instance. */
.status[data-control]:not(:disabled){cursor:pointer}
.status[data-control]:not(:disabled):hover{box-shadow:0 0 0 3px #8aa99c20;filter:brightness(.97)}
.status[data-control]:disabled{cursor:default;opacity:1}
.action-notice{padding:12px 16px;border:1px solid #d2e8dc;background:#eef8f2;color:#35745a;border-radius:8px;margin-bottom:20px;font-size:12px}
.action-notice.action-error{border-color:#efd6cd;background:#fff2ef;color:#98523d}
.control-body{padding:10px 25px 20px;font-size:13px;color:#536a80}
.control-target{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;padding:10px;background:#f4f7fa;border-radius:6px}
.control-note{font-size:11px;color:#8b99a9;margin-top:18px}
.control-actions{padding:17px 25px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);background:#f8fafb}
.primary-button{background:#28856f;border-color:#28856f;color:#fff}
.primary-button:hover{background:#22765f;border-color:#22765f}
.stop-button{background:#a9604f;border-color:#a9604f}
.stop-button:hover{background:#985543;border-color:#985543}
.status[data-control]{min-height:28px;padding:5px 8px;touch-action:manipulation}

/* Farm city and zone editor. */
.farm-location-button{border:0;background:none;color:var(--ink);font:inherit;font-weight:600;cursor:pointer;padding:2px 0}.farm-location-button:not(:disabled):hover{color:var(--green)}.farm-location-button:disabled{cursor:default}.farm-location-button span[aria-hidden]{color:#8397b9;margin-left:5px}
.farm-location-fields{display:grid;gap:12px}.farm-location-fields>label{font-size:13px;font-weight:600}.farm-location-fields input,.farm-location-fields select{width:100%;min-width:0;padding:11px 9px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface);font:inherit;font-size:13px}.farm-zone-selects{display:grid;grid-template-columns:1.5fr 1fr .65fr;gap:8px}.farm-zone-selects[hidden],.farm-location-fields [hidden]{display:none}.farm-location-fields p{margin:2px 0}.action-notice{overflow-wrap:anywhere}

/* Registered host: load averages plus memory and account-filesystem capacity. */
.sidebar{overflow-y:auto}.host-metrics{margin:14px 0 0;border-top:1px solid #30455b;padding-top:4px}.host-metrics>div{margin-top:12px}.host-metrics dt{font-size:10px;color:#8ea5bc;margin-bottom:3px}.host-metrics dd{margin:0}.host-metrics strong{display:block;font-size:11px;font-weight:550;color:#e0eaf4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.host-metrics small{display:block;color:#8ea5bc;font-size:9px;margin-top:3px;line-height:1.5}.host-metrics meter{display:block;width:100%;height:7px;margin:6px 0;appearance:none;background:#30455b;border-radius:4px;border:0}.host-metrics meter::-webkit-meter-bar{background:#30455b;border:0;border-radius:4px}.host-metrics meter::-webkit-meter-optimum-value{background:#65b79e;border-radius:4px}.host-metrics meter::-moz-meter-bar{background:#65b79e;border-radius:4px}.sidebar-bottom{padding-bottom:4px;flex-shrink:0}

/* Program navigation mirrors the tabs, with independent readable icons. */
.sidebar>*{flex-shrink:0}.nav-link svg{flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}

/* Transparent resource cutouts; the original screenshots remain as provenance. */
.resource-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:5px}.resource-table-wrap:focus-visible{outline:2px solid #69bba9;outline-offset:2px}
.resource-icon{display:block;width:24px;height:24px;background-image:url('/static/resource-icons-transparent.png');background-size:72px 48px;background-repeat:no-repeat;background-color:transparent}
.resource-cash{background-position:0 0}.resource-ammo{background-position:-24px 0}.resource-cargo{background-position:-48px 0}.resource-metal{background-position:0 -24px}
.resource-diamonds{background-position:-24px -24px}.resource-oil{background-image:url('/static/oil.svg');background-size:24px 24px;background-position:center}

/* Separate instance information from validated farm settings. */
.card-footer{flex-wrap:wrap}.card-actions{display:flex;justify-content:space-between;width:100%;gap:12px;padding-top:5px}.card-actions .configuration-button{margin:0;white-space:normal;text-align:left}.card-actions .configuration-button:last-child{text-align:right}.card-actions .configuration-button:disabled{cursor:default}
#farm-location-dialog{width:min(560px,calc(100vw - 30px));max-height:calc(100dvh - 40px)}#farm-location-form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}#farm-location-form>.control-body{overflow-y:auto;min-height:0;padding-top:20px}#farm-location-form>.dialog-header,#farm-location-form>.control-actions{flex-shrink:0}.settings-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin:10px 0 2px}.farm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.farm-setting-field{display:flex;flex-direction:column;gap:7px;min-width:0}.farm-setting-field>label{font-size:12px;font-weight:550}.farm-setting-field.setting-boolean{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}.farm-setting-field:has(#farm-setting-robRssType){grid-column:1/-1}.switch-control{display:inline-flex;align-items:center;gap:8px;cursor:pointer;position:relative}.switch-input{position:absolute;opacity:0;width:1px!important;height:1px;padding:0!important}.switch-track{width:34px;height:20px;background:#c6ced7;border-radius:12px;position:relative;transition:background .15s}.switch-track:after{content:'';position:absolute;width:14px;height:14px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s}.switch-input:checked+.switch-track{background:var(--green)}.switch-input:checked+.switch-track:after{transform:translateX(14px)}.switch-input:focus-visible+.switch-track{outline:3px solid #69bba9;outline-offset:3px}.switch-state{font-size:11px;font-weight:500;min-width:47px}

/* The shield describes observed game protection, independently of process status. */
.bubble-status{display:flex;align-items:center;gap:7px;min-width:0;color:#8492a5}.bubble-status svg{width:23px;height:25px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.bubble-status strong{display:block;font-size:11px;font-weight:600;line-height:1.4}.bubble-status small{display:block;font-size:9px;line-height:1.5;color:#8797a9;font-variant-numeric:tabular-nums}.bubble-status .bubble-check,.bubble-status .bubble-off{display:none}.bubble-active{color:#22856c}.bubble-active .bubble-check{display:block}.bubble-active .bubble-question,.bubble-inactive .bubble-question{display:none}.bubble-inactive{color:#b16b50}.bubble-inactive .bubble-off{display:block}.bubble-stale{color:#a38a58}

/* Manual bubble requests and observed owned-item counts. */
.bubble-controls{display:flex;align-items:center;gap:5px;margin:-4px 0 4px}.bubble-controls>span{font-size:10px;color:var(--muted);margin-right:auto}.bubble-button{border:1px solid #d7e5e0;border-radius:6px;background:#f1f8f5;color:#397d6a;padding:6px 7px;font-size:10px;white-space:nowrap;cursor:pointer}.bubble-button:hover:not(:disabled){background:#e2f0ea;border-color:#89bbaa}.bubble-button:disabled{cursor:default;opacity:.55}.bubble-button span{font-variant-numeric:tabular-nums;color:#6c8790}.bubble-command-note{font-size:9px;color:#8b99a9;line-height:1.45;margin:4px 0 15px;overflow-wrap:anywhere}.bubble-command-note.command-error{color:#a56247}.bubble-command-note.command-confirmed{color:var(--green)}

/* Compact fronts keep actions visible; native details expands within each card. */
.compact-card{padding-top:17px}.compact-card .instance-card-top{margin-bottom:12px;align-items:center}.card-identity{min-width:0}.card-identity .program-label{margin:0 0 3px;font-size:8px}.card-identity h3{font-size:16px;line-height:1.25;overflow-wrap:anywhere}.compact-card>.bubble-status{padding:7px 8px;background:#f6f9f8;border:1px solid #edf2ef;border-radius:7px;margin-bottom:10px}.compact-card>.bubble-status>div{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0}.compact-card>.bubble-status svg{width:19px;height:22px}.compact-card>.bubble-status strong{font-size:10px}.compact-card>.bubble-status small{font-size:8px;text-align:right}.compact-card .bubble-controls{margin:0 0 9px}.compact-card .bubble-command-note{margin:0 0 10px}.compact-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:12px 0}.compact-values>div{display:block;margin:0;font-size:11px;min-width:0}.compact-values dt{font-size:9px;margin-bottom:2px}.compact-values dd{text-align:left;color:#405b71;line-height:1.4;font-weight:550}.compact-values [data-field=zones]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-values .farm-location-button{padding:0}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}.card-meta .farm-feed{margin:0;padding:3px 6px;font-size:8px;line-height:1.4}.card-uptime{color:#94a1b0;font-size:9px;white-space:nowrap}.card-expansion{border-top:1px solid var(--line)}.card-expansion>summary{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:10px 0;cursor:pointer;list-style:none;color:#658094;font-size:10px;font-weight:500}.card-expansion>summary::-webkit-details-marker{display:none}.card-expansion>summary:hover{color:var(--green)}.card-expansion>summary:focus-visible{outline:2px solid #69bba9;outline-offset:2px;border-radius:3px}.expand-hint{display:flex;align-items:center;gap:4px;color:#91a0ad;font-size:9px}.expand-hint svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}.card-expansion .when-open{display:none}.card-expansion[open] .when-open{display:inline}.card-expansion[open] .when-closed{display:none}.card-expansion[open] .expand-hint svg{transform:rotate(180deg)}.card-expansion-body{padding:7px 0 14px}.card-expansion-body>.directory{margin:0 0 13px;font-size:10px}.card-extra-values>div{font-size:10px;padding:7px 0}.card-extra-values dd{max-width:68%}.compact-card .card-footer{padding:9px 0 11px}.compact-card .card-actions{padding:0}.compact-card .configuration-button{font-size:9px}.compact-card .details-warning{margin:10px 0 0}.compact-card:has(.card-expansion[open]){border-color:#bcd4c9;box-shadow:0 4px 14px #18334b08}

/* History uses a wider panel while keeping the account cards compact. */
.history-open{margin:3px 0 10px;width:100%;font-size:11px}#history-dialog{width:min(1100px,calc(100vw - 28px));max-height:calc(100dvh - 32px)}#history-dialog[open]{display:flex;flex-direction:column}#history-dialog>.dialog-header,#history-dialog>.dialog-footer{flex-shrink:0}.history-body{padding:14px 24px 20px;overflow-y:auto;min-height:0}.history-subtitle{font-size:12px;color:var(--muted);margin:0 0 15px}.history-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.history-toolbar>label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}.history-toolbar select{border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);padding:9px;min-width:175px;font:inherit;font-size:12px}.history-presets{display:flex;gap:5px}.history-presets .selected{background:#edf7f2;border-color:#84baa7;color:#26785f}.history-resources{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.history-resource{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:6px;padding:5px 8px;color:#536a80;font-size:11px;cursor:pointer}.history-resource input{accent-color:var(--series-color);margin:0}.history-dot{width:7px;height:7px;background:var(--series-color);border-radius:50%}.history-resource[data-resource=cash],.history-total[data-resource=cash],.history-tooltip-row[data-resource=cash]{--series-color:#25866b}.history-resource[data-resource=ammo],.history-total[data-resource=ammo],.history-tooltip-row[data-resource=ammo]{--series-color:#bf8532}.history-resource[data-resource=cargo],.history-total[data-resource=cargo],.history-tooltip-row[data-resource=cargo]{--series-color:#9c6846}.history-resource[data-resource=metal],.history-total[data-resource=metal],.history-tooltip-row[data-resource=metal]{--series-color:#597bac}.history-resource[data-resource=diamonds],.history-total[data-resource=diamonds],.history-tooltip-row[data-resource=diamonds]{--series-color:#8d65bb}.history-resource[data-resource=oil],.history-total[data-resource=oil],.history-tooltip-row[data-resource=oil]{--series-color:#c35c69}.history-resource[data-resource=gold],.history-total[data-resource=gold],.history-tooltip-row[data-resource=gold]{--series-color:#a88b22}.history-resource[data-resource=freight],.history-total[data-resource=freight],.history-tooltip-row[data-resource=freight]{--series-color:#308d96}.history-navigation{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.history-navigation .button{padding:6px 10px;min-height:29px}.history-navigation>span{margin-left:auto;font-size:10px;color:var(--muted)}.history-status{font-size:11px;color:#708297;min-height:17px;margin:12px 0 7px}.history-warning{color:#a18145}.history-chart-wrap{position:relative;border:1px solid var(--line);border-radius:9px;min-height:240px;background:#fff}#history-chart{display:block;width:100%;height:320px;touch-action:pan-y pinch-zoom;cursor:grab}#history-chart[data-dragging=true]{cursor:grabbing}#history-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;margin:0;padding:30px;font-size:13px;color:#8796a7;pointer-events:none}.history-help{font-size:10px;color:var(--muted);margin:10px 0 13px;line-height:1.6}.history-tooltip{position:absolute;z-index:2;pointer-events:none;background:#fff;border:1px solid #d9e1ec;border-radius:9px;box-shadow:0 5px 20px #20334d26;padding:10px 12px;max-width:calc(100% - 16px);font-size:11px;line-height:1.5;color:var(--ink);font-variant-numeric:tabular-nums}.history-tooltip[hidden]{display:none}.history-tooltip-time{display:block;margin-bottom:6px;color:#536a80;font-size:10px}.history-tooltip-row{display:flex;align-items:center;gap:6px;white-space:nowrap}.history-tooltip-row>strong{margin-left:auto;padding-left:10px;font-weight:600}.history-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.history-total{padding:9px 11px;background:#f8fafb;border:1px solid var(--line);border-left:3px solid var(--series-color);border-radius:6px;min-width:0}.history-total>span{font-size:10px;color:var(--muted);display:block}.history-total>strong{font-size:13px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media(max-width:600px){.history-body{padding:12px 14px 16px}#history-dialog>.dialog-header{padding:18px 16px 14px}.history-toolbar{gap:8px}.history-toolbar select{min-width:140px}.history-toolbar .button{padding:8px 10px}.history-resources{gap:5px}.history-resource{font-size:10px;padding:5px 6px}.history-navigation>span{margin:6px 0 0;width:100%;font-size:9px}#history-chart{height:260px}.history-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.history-total>strong{font-size:12px}}

/* Summary totals are keyboard-accessible status filter shortcuts. */
button.summary-card{display:block;width:100%;text-align:left;color:var(--ink);font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}button.summary-card:hover{border-color:#a4c9bb;box-shadow:0 3px 10px #18334b0b}button.summary-card.summary-selected{border-color:#7fb6a3;box-shadow:0 0 0 1px #7fb6a322}.summary-card .summary-caption{display:block;font-size:10px;color:#9ba7b6;margin:5px 0 0}.status-filter-chip{display:inline-flex;vertical-align:middle;align-items:center;gap:5px;margin-left:8px;border:1px solid #d5e7df;background:#eef7f2;color:#397c65;border-radius:5px;padding:2px 5px;font-size:10px;font-weight:500;letter-spacing:0}.status-filter-chip button{border:0;background:transparent;color:inherit;font-size:15px;line-height:1;padding:1px 3px;min-width:20px;min-height:20px}.status-filter-chip button:hover{color:#214c3d}

/* Sign-in and ownership management. */
.account-menu{display:flex;align-items:center;gap:14px;font-size:13px;flex-wrap:wrap}.account-menu a{color:var(--accent,#3767dc);text-decoration:none}.account-menu button{font:inherit;border:0;background:none;color:var(--muted,#69758a);cursor:pointer}.owner-tag{font-size:11px;color:#68768b;display:block;margin-top:5px}.access-page{display:block;min-height:100vh;background:#f3f5fa;color:#202b40}.access-shell{width:min(440px,calc(100% - 32px));margin:8vh auto;padding:30px;background:white;border:1px solid #e1e6ef;border-radius:18px;box-shadow:0 12px 40px #24334e09}.access-shell h1{font-size:27px;margin:8px 0 14px}.access-shell p{color:#68768b;line-height:1.6}.access-shell a{color:#315fd4}.access-form{display:grid;gap:18px;margin:24px 0}.access-shell label{display:grid;gap:8px;font-size:13px;font-weight:600}.access-shell input:not([type=checkbox]),.access-shell select{width:100%;min-width:0;border:1px solid #d8deeb;border-radius:8px;padding:10px;background:#fff;color:#202b40;font:inherit}.access-shell .primary{background:#4267da;color:white;justify-content:center}.access-shell small,.access-help{font-size:12px}.access-shell #access-message{border-radius:8px;padding:12px;background:#eef2ff;color:#243e83;overflow-wrap:anywhere}.admin-shell{width:min(1050px,calc(100% - 32px));margin:30px auto}.access-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.access-panel{margin-top:25px;border-top:1px solid #e6eaf1;padding-top:20px}.access-panel h2{font-size:18px;margin:0 0 14px}.inline-form{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.access-shell .check-label{display:flex;align-items:center;gap:8px;padding:10px 0}.access-table{overflow-x:auto}.access-table table{width:100%;border-collapse:collapse;font-size:13px}.access-table td,.access-table th{padding:12px 8px;border-bottom:1px solid #e6eaf1;text-align:left}.user-actions{display:flex;gap:7px;flex-wrap:wrap}.user-actions .button{font-size:12px;padding:7px 9px}.access-panel #invite-link{margin:7px 0 12px;font-family:monospace}.access-shell [hidden]{display:none!important}@media(max-width:650px){.topbar{height:auto!important;min-height:70px;padding-top:12px;padding-bottom:12px;gap:12px;flex-wrap:wrap}.account-menu{font-size:12px;gap:10px}.access-heading{align-items:start;flex-direction:column}.access-shell{padding:22px}}

/* Farm RSS comparison keeps exact balances on one line and totals per type. */
.farm-report-page{max-width:1800px}.resource-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:12px}.resource-report-toolbar p,.resource-report-note{color:var(--muted);font-size:12px;line-height:1.6}.resource-report-wrap{overflow:auto;max-height:70vh;background:#fff;border:1px solid var(--line);border-radius:10px;margin:18px 0}.resource-report-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums}.resource-report-table th,.resource-report-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.resource-report-table thead th{position:sticky;top:0;z-index:2;background:#f4f7fa;color:#64788e;font-size:11px;font-weight:600}.resource-report-table th:first-child{text-align:left;min-width:135px}.resource-report-table tbody th{position:sticky;left:0;background:white;z-index:1}.resource-report-table td:nth-child(2),.resource-report-table td:nth-child(3){text-align:left}.resource-report-table small{display:block;font-size:10px;font-weight:400;color:#8b99aa;margin-top:5px;line-height:1.4}.resource-report-table tbody tr:hover td,.resource-report-table tbody tr:hover th{background:#f8fafc}.resource-report-table tfoot th,.resource-report-table tfoot td{background:#edf5f1;color:#2d6554;border-bottom:0;border-top:1px solid #d5e6de}.resource-report-table tfoot strong{font-weight:650}.resource-report-table .rss-column-heading{display:inline-flex;align-items:center;gap:7px}.resource-report-table .resource-feed.feed-stale,.resource-report-table .resource-feed.feed-invalid{color:#a17a30}.resource-report-table .resource-feed.feed-fresh{color:#3d8b6b}.resource-no-farms{text-align:center!important;padding:35px!important;color:var(--muted)}.farm-report-page .program-tabs{width:auto}.farm-report-page .page-heading .button{white-space:nowrap}.breadcrumb a{color:inherit;text-decoration:none}@media(max-width:760px){.resource-report-table th,.resource-report-table td{padding:9px 10px}.resource-report-table th:first-child{min-width:135px}.farm-report-page .page-heading{flex-wrap:wrap}.resource-report-toolbar{gap:7px}.resource-report-toolbar p{margin:4px 0}.resource-report-wrap{max-height:65vh}}

.resource-report-table .resource-feed{font-size:10px;margin-left:7px}.resource-report-table .resource-partial{font-size:10px;vertical-align:super;margin-left:2px;color:#a17a30}.resource-report-table tbody tr{height:38px}.resource-report-table tbody th,.resource-report-table tbody td{line-height:1.3}.resource-report-table .rss-column-heading .resource-icon{flex-shrink:0}

/* Operational farm summary: one row per account, live protection and feed age. */
.farm-summary-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.farm-summary-toolbar .search{width:260px}.farm-summary-toolbar>label:not(.search){display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.farm-summary-toolbar select{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:7px;padding:8px}.farm-summary-toolbar>p{font-size:11px;color:var(--muted);margin-left:auto}.farm-dashboard-table td{white-space:nowrap}.farm-dashboard-table td:nth-child(3),.farm-dashboard-table td:nth-child(6),.farm-dashboard-table td:nth-child(8){text-align:left}.farm-dashboard-table td:nth-child(4),.farm-dashboard-table td:nth-child(5),.farm-dashboard-table td:nth-child(7){text-align:center}.farm-dashboard-table thead th{text-align:left}.farm-dashboard-table tbody th{font-weight:600}.farm-shield{font-size:10px;border-radius:5px;padding:4px 6px;background:#eef1f5;color:#7b8797}.farm-shield.shield-active{background:#e9f5ef;color:#28775b}.farm-shield.shield-inactive{background:#fff0ed;color:#ac553e}.farm-shield.shield-stale{background:#fcf3e2;color:#9b772f}.farm-inline-detail{font-size:10px;color:var(--muted);margin-left:7px}.farm-inline-detail:empty{display:none}.farm-data{font-size:11px;color:#4e8a72}.farm-data.data-stale,.farm-data.data-invalid,.farm-data.data-waiting{color:#a17a30}@media(max-width:760px){.farm-summary-toolbar{gap:9px}.farm-summary-toolbar .search{width:100%}.farm-summary-toolbar>p{margin:3px 0;width:100%}.farm-summary-toolbar>label:not(.search){flex:1}.farm-summary-toolbar select{min-width:0;width:100%}}

/* Table rows open the same farm card and confirmed-action controls as Overview. */
[data-farm-link]{cursor:pointer}.farm-detail-link{display:inline-block;font-weight:600}.farm-detail-link:hover{text-decoration:underline}.resource-report-table tbody tr:focus-within td,.resource-report-table tbody tr:focus-within th{background:#eff7f3}.focused-farm-page .sidebar,.focused-farm-page .connection-notice,.focused-farm-page .summary-grid,.focused-farm-page #instances>.section-heading,.focused-farm-page #instances>.toolbar,.focused-farm-page .page-footer{display:none}.focused-farm-page .main-shell{margin-left:0}.focused-farm-page main{max-width:1020px}.focused-farm-page .instances-grid{grid-template-columns:minmax(0,1fr)}.focused-farm-page .page-heading{flex-wrap:wrap}.focused-farm-page .page-heading>div{margin-right:auto}.focused-farm-page .instance-card{padding:22px 26px 0}.focused-farm-page .instance-values>div{font-size:12px}.focused-farm-page .farm-resources{font-size:12px}.focused-farm-page .bubble-controls .bubble-button{font-size:12px}.focused-farm-page .card-footer .configuration-button{font-size:12px}@media(max-width:600px){.focused-farm-page .page-heading{gap:10px}.focused-farm-page .page-heading>div{width:100%}.focused-farm-page .instance-card{padding:18px 16px 0}.focused-farm-page .farm-resources{font-size:10px}}

#new-farm-form select{min-width:140px}#new-farm-form>label{flex:1;min-width:160px}#new-farm-form>button{flex-shrink:0}.access-panel #farm-added-link{margin:12px 0 0}

/* Grouped farm controls and in-game account identity. */
.farm-settings-section{border-top:1px solid var(--line,#e2e8ef);padding:12px 0}.farm-settings-section>summary{cursor:pointer;font-size:14px;font-weight:650}.farm-settings-section>.farm-setting-help{margin:9px 0 16px}.farm-setting-help{color:var(--muted);font-size:11px;line-height:1.5}.farm-setting-field.setting-text,.farm-setting-field.setting-ids,.farm-setting-field.setting-amounts{grid-column:1/-1}.farm-setting-field.setting-boolean:has(.farm-setting-help){flex-wrap:wrap}.farm-game-name{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 12px}.farm-inline-game-name{font-size:12px;font-weight:400;color:var(--muted)}

/* Map references stay compact in the editor; open full size on demand. */
.farm-location-fields .map-reference{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left;cursor:zoom-in}.map-reference:hover{border-color:var(--green)}.map-reference:focus-visible{outline:3px solid #69bba9;outline-offset:3px}.map-reference-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.map-reference-heading>span:first-child{display:flex;flex-direction:column;gap:4px}.map-reference-label{font-size:9px;letter-spacing:1px;color:var(--muted)}.map-reference-heading strong{font-size:14px}.map-enlarge{font-size:11px;color:var(--green);white-space:nowrap}.map-reference img{display:block;width:100%;height:230px;object-fit:contain;border-radius:6px;background:#202522}.map-reference-legend{display:flex;justify-content:center;gap:20px;margin-top:10px;font-size:11px;color:var(--muted)}.map-reference-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#42cf67}.map-reference-legend span:nth-child(2):before{background:#26a5df}.map-reference-legend span:nth-child(3):before{background:#ed363a}#farm-map-dialog{width:min(980px,calc(100vw - 30px));max-height:calc(100dvh - 30px);padding:0}#farm-map-dialog .dialog-header{padding:18px 22px}.map-full-body{padding:0 14px 14px}.map-full-body img{display:block;width:100%;height:auto;max-height:calc(100dvh - 185px);object-fit:contain;background:#202522;border-radius:8px}#farm-map-dialog .dialog-footer{font-size:12px}@media(max-width:480px){.map-reference img{height:210px}.map-reference-heading strong{font-size:13px}.map-enlarge{font-size:10px}.farm-zone-selects{grid-template-columns:1.5fr 1fr .6fr;gap:5px}.farm-zone-selects select{padding-left:5px;padding-right:5px;font-size:12px}}

.farm-location-fields .map-reference[hidden]{display:none}

/* Observed mansion position below the farm name. */
.farm-game-name{margin-bottom:4px}.farm-mansion-location{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}

/* Defense notifications use a nonmodal top-layer popover, including over editors. */
.defense-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:8px 28px;border-bottom:1px solid var(--line);background:var(--surface)}.defense-controls>span{font-size:11px;color:var(--muted);margin-right:auto}.defense-controls .button{padding:6px 10px;font-size:11px}.defense-controls [aria-pressed=true]{color:var(--green);border-color:var(--green)}.defense-popups{position:fixed;inset:auto 18px 18px auto;margin:0;padding:0;border:0;background:transparent;color:var(--ink);width:min(360px,calc(100vw - 30px));max-height:calc(100dvh - 100px);overflow-y:auto;z-index:10000}.defense-popups[hidden]{display:none!important}.defense-popups::backdrop{background:transparent}.defense-popup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin-bottom:8px;box-shadow:0 4px 20px #14243620;font-size:12px}.defense-popup-toolbar .button{padding:4px 7px;font-size:11px}.defense-popup{padding:12px 14px;margin-bottom:8px;border:1px solid #edc68a;border-left:4px solid #d89b2a;border-radius:10px;background:#fffaf0;box-shadow:0 5px 24px #14243625;overflow-wrap:anywhere}.defense-popup.defense-attack{border-color:#e8a5a5;border-left-color:#c83d3d;background:#fff5f5}.defense-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}.defense-popup-heading>.close-button{width:25px;height:25px;font-size:18px}.defense-popup p{margin:5px 0;font-size:12px}.defense-popup .defense-player{font-weight:650;font-size:14px}.defense-popup-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-top:9px}.defense-popup-footer a{color:var(--green)}@media(max-width:600px){.defense-controls{padding:8px 20px}.defense-controls>span{width:100%}.defense-popups{inset:auto 15px 15px auto;max-height:60dvh}}



.farm-setting-field:has(#farm-setting-t1BikeCapacity1000){grid-column:1/-1}

/* Collapsed location controls and gold balance column. */
.farm-location-controls{display:grid;gap:12px;margin-top:16px}.farm-location-controls>label{font-size:13px;font-weight:600}.resource-icon.resource-gold{background-image:url("/static/gold.svg");background-size:contain;background-position:center;background-repeat:no-repeat}.resource-report-table [hidden]{display:none}

/* Keyboard-accessible sorting on farm names and exact resource balances. */
.resource-sort-button{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:2px 0;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;white-space:nowrap}.resource-sort-button:hover,.resource-sort-button.sorted{color:var(--green)}.resource-sort-button:focus-visible{outline:2px solid #69bba9;outline-offset:4px;border-radius:3px}.resource-sort-button [data-sort-arrow]{display:inline-block;min-width:10px;font-size:12px;opacity:.65}.resource-sort-button.sorted [data-sort-arrow]{opacity:1}

/* Overview: production and farm health, separate from account controls. */
.overview-page{max-width:1800px}.overview-status-link{display:block;text-decoration:none;color:inherit}.overview-timebar,.overview-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.overview-timebar{margin:25px 0 16px}.overview-timebar h2,.overview-panel h2{font-size:17px;margin:0}.overview-timebar p,.overview-panel-heading p,.overview-footnote{font-size:11px;color:var(--muted);line-height:1.6;margin:5px 0 0}.overview-ranges{display:flex;gap:5px}.overview-ranges .button{padding:7px 13px;font-size:12px}.overview-ranges .selected{background:#e5f3ed;color:#25755f;border-color:#9bcbbb}.overview-panels{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.overview-panel{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:20px}.overview-panel-heading{margin-bottom:17px}.overview-panel-heading>a{font-size:11px;color:var(--green);text-decoration:none;white-space:nowrap}.overview-badge{font-size:10px;color:var(--muted);padding:5px 8px;border-radius:7px;background:#f2f5f7;white-space:nowrap}.overview-production-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.overview-resource-card{min-width:0;background:#fbfcfd;border:1px solid #edf1f4;border-radius:9px;padding:10px 8px 4px}.overview-resource-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;padding:0 5px;font-size:11px;color:var(--muted)}.overview-resource-heading>span{display:flex;align-items:center;gap:6px}.overview-resource-heading strong{color:var(--ink);font-size:17px}.overview-resource-heading .resource-icon{width:22px;height:22px}.overview-chart-wrap{position:relative;height:112px;min-width:0}.overview-chart-wrap canvas{width:100%;height:100%;display:block;touch-action:pan-y}.overview-chart-tooltip{position:absolute;z-index:3;pointer-events:none;white-space:pre-line;background:#142b3e;color:white;border-radius:7px;padding:8px 10px;font-size:10px;line-height:1.6;box-shadow:0 4px 12px #142b3e30}.overview-chart-tooltip[hidden]{display:none}.overview-health{display:grid;gap:16px;align-content:start}.overview-segments{display:flex;gap:3px;height:11px;border-radius:8px;overflow:hidden;background:#edf1f3}.overview-segments>.overview-protection-bubbled{background:#41a889}.overview-segments>.overview-protection-unbubbled{background:#dc9b74}.overview-segments>.overview-protection-unknown{background:#bcc7d1}.overview-legend{display:flex;gap:8px 14px;flex-wrap:wrap;margin-top:12px;font-size:11px;color:var(--muted)}.overview-legend>.overview-protection-bubbled{color:#27846b}.overview-legend>.overview-protection-unbubbled{color:#a5653e}.overview-metric{display:flex;align-items:baseline;gap:10px;margin:8px 0 13px}.overview-metric strong{font-size:34px;letter-spacing:-1px}.overview-metric>span{font-size:12px;color:var(--muted)}#crew-progress{width:100%;height:7px;accent-color:#38a380;display:block;margin-bottom:10px}#crew-progress[hidden]{display:none}.overview-uptimes{display:flex;justify-content:space-between;gap:14px;margin:18px 0 8px}.overview-uptimes dt{font-size:11px;color:var(--muted)}.overview-uptimes dd{font-size:19px;margin:6px 0 0;font-weight:650}.availability-chart-wrap{height:210px}.overview-availability-legend{display:flex;gap:12px;font-size:10px;color:var(--muted)}.overview-availability-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:#2c9478}.overview-availability-legend .availability-stopped:before{background:#d88b68}.overview-attention-item{display:block;text-decoration:none;color:var(--ink);padding:10px 0;border-bottom:1px solid #edf1f4}.overview-attention-item strong{display:block;font-size:12px}.overview-attention-item span{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:4px}.overview-attention-item.severity-3 strong{color:#b95848}.overview-empty{font-size:11px;color:var(--muted);line-height:1.7}.overview-recent-title{font-size:11px;letter-spacing:.2px;margin:22px 0 5px}.attention-panel>a{font-size:11px;color:var(--green)}@media(max-width:1050px){.overview-panels{grid-template-columns:minmax(0,1fr)}.overview-health{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-panel-heading{align-items:flex-start;flex-wrap:wrap}}@media(max-width:680px){.overview-health{grid-template-columns:minmax(0,1fr)}.overview-panel{padding:16px}.overview-timebar{align-items:flex-start;flex-wrap:wrap}.overview-production-grid{gap:10px}.overview-resource-heading strong{font-size:15px}.overview-resource-heading{font-size:10px}.overview-resource-heading .resource-icon{width:18px;height:18px}.overview-chart-wrap{height:105px}.availability-chart-wrap{height:180px}.overview-panel-heading h2{font-size:16px}.overview-resource-heading>span{gap:3px}}

.availability-panel{align-self:start}
