/* Compact resource instruments. Relationship diagrams live in the comparison. */
.mission-symbols{position:absolute;inline-size:0;block-size:0;overflow:hidden;pointer-events:none}
.mission-update{width:320px;padding:9px 12px 10px}
.mission-update .update-kicker{padding-right:82px;margin-bottom:3px}
.mission-update h3{font-size:15px;line-height:1.4;margin-bottom:5px;min-height:21px}
.resource-compare-open{position:absolute;right:6px;top:0;display:flex;gap:5px;align-items:center;justify-content:center;width:80px;height:38px;padding:6px;color:#bacbc3;background:transparent;border:0;font:inherit;font-size:11px;pointer-events:auto;border-radius:2px}
.resource-compare-open svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.resource-compare-open:hover{color:#f0dfc3;background:#b8c7b20d}.resource-compare-open:focus-visible{outline:1px solid #c9cbb6;outline-offset:0}
.resource-gauges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-width:0;margin:3px 0 0;height:86px}
.resource-gauge{--gauge-color:#a9d7d0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;min-width:0;color:var(--gauge-color);font-variant-numeric:tabular-nums}
.resource-gauge[data-resource="food"]{--gauge-color:#c3ce9e}.resource-gauge[data-resource="energy"]{--gauge-color:#e3c99b}.resource-gauge[data-resource="temperature"]{--gauge-color:#b4d1c5}
.resource-gauge[data-tone="limited"],.resource-gauge[data-tone="pending"]{--gauge-color:#efb583}
.gauge-chart{position:relative;width:54px;height:54px;flex:none}.gauge-chart svg{display:block;width:100%;height:100%;overflow:visible}
.gauge-track,.gauge-fill{fill:none;stroke-width:2.7}.gauge-track{stroke:#d6dfc921}.gauge-fill{stroke:var(--gauge-color);stroke-linecap:round;transition:stroke-dashoffset .4s ease,stroke .4s ease}.gauge-end{fill:#f1ebd5;stroke:var(--gauge-color);stroke-width:1;transition:cx .4s ease,cy .4s ease}
.gauge-number{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:1px;color:#f0ebdd;font-family:Inter,MiSans,sans-serif;font-size:16px;font-weight:400;letter-spacing:-.04em;line-height:1;white-space:nowrap}.gauge-number small{margin-top:4px;color:#c4cbbc;font:inherit;font-size:8px;letter-spacing:0}
.gauge-label{font-size:11px;line-height:1.4;color:#e1e4d7}.gauge-status{font-size:10px;line-height:1.4;white-space:nowrap;color:var(--gauge-color);opacity:.87}
.gauge-temp-ticks{stroke:#c8d3bd73;stroke-width:.8;fill:none}.gauge-temp-track{stroke:#d6dfc92e;stroke-width:3;stroke-linecap:round;fill:none}.gauge-temp-target{stroke:#abcfc0b3;stroke-width:6;stroke-linecap:butt;fill:none}.gauge-temp-marker{stroke:var(--gauge-color);stroke-width:2;stroke-linecap:round;fill:none}.resource-gauge[data-resource="temperature"] .gauge-number{left:18px;font-size:14px;gap:1px}.resource-gauge[data-resource="temperature"] .gauge-number small{font-size:8px;margin-top:3px}
.gauge-mini-bar{display:none}
.resource-gauge[data-tone="idle"]{--gauge-color:#83918a}.resource-gauge[data-available="false"] .gauge-chart{opacity:.4}
.gauge-band{fill:none;stroke:#d6dfc921;stroke-width:2.7;stroke-linecap:round;transition:stroke .4s ease}.gauge-band[data-filled="true"]{stroke:var(--gauge-color)}
.gauge-temp-warm,.gauge-temp-neutral,.gauge-temp-cool{fill:none;stroke-width:4;stroke-linecap:butt}.gauge-temp-warm{stroke:#c69a7166}.gauge-temp-neutral{stroke:#abcfc080}.gauge-temp-cool{stroke:#86b3bd66}
.resource-gauges[data-representation="categorical"] .gauge-number{font-family:MiSans,Inter,sans-serif;font-size:13px;letter-spacing:0}.resource-gauges[data-representation="categorical"] [data-resource="temperature"] .gauge-number{font-size:12px}.gauge-number small:empty{display:none}
.gauge-status{max-width:100%;overflow:hidden;text-overflow:ellipsis}.mission-update .update-kicker>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Keep the instruments distinct while softening the overlaid text. */
.mission-update :is(h3,.update-kicker>span,.resource-compare-open>span,.gauge-number,.gauge-label,.mission-decision,li){opacity:.85}
.mission-update .gauge-status{opacity:.74}
.resource-network{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;column-gap:65px;row-gap:7px;height:116px;margin:0;min-width:0}
.resource-node{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:0;text-align:center}
.resource-icon{position:relative;display:flex;align-items:center;justify-content:center;width:27px;height:26px;color:#a3c9c0;flex:none}
.resource-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.resource-node[data-tone="heat"] .resource-icon{color:#e3bc8f}.resource-node[data-tone="limited"] .resource-icon{color:#dcae7f}.resource-node[data-tone="idle"] .resource-icon{color:#91a092}.resource-node[data-tone="pending"] .resource-icon{color:#d4b68f}
.resource-node[data-pending="true"] .resource-icon::after{content:"";position:absolute;top:1px;right:-1px;width:4px;height:4px;border:1px solid #d8bd92;border-radius:50%}
.resource-label,.resource-state{font-size:11px;font-weight:400;line-height:1.25;white-space:nowrap}.resource-label{color:#deded2}.resource-state{color:#aebfb4;min-height:14px}
.resource-edges{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.resource-edge{fill:none;stroke:#a0b09e;stroke-width:1;stroke-linecap:round;opacity:.15}
.resource-edge[data-state="flow"]{stroke:#a1cec4;stroke-width:1.6;opacity:.8}.resource-edge[data-state="flow"][data-kind="heat"]{stroke:#ddb489}.resource-edge[data-state="pending"]{stroke:#d2b58e;stroke-width:1.4;stroke-dasharray:3 4;opacity:.65}
.mission-update .mission-decision{margin:5px 0 7px;padding-bottom:7px;border-bottom:1px solid #a6b5a01c;font-size:11px;line-height:1.35;min-height:22px;color:#ccbca1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-shot="thermal"] .mission-update{top:102px;bottom:auto;right:var(--scene-gutter);left:auto}
[data-comparing="true"] .mission-update{visibility:hidden}
.resource-comparison{position:fixed;inset:0;margin:auto;width:min(370px,calc(100vw - 32px));max-height:calc(100dvh - 36px);padding:19px 20px 15px;color:#e5e3d6;background:#101716ed;backdrop-filter:blur(10px);border:1px solid #96a68e66;border-radius:4px;overflow:auto;overscroll-behavior:contain;font-size:13px;font-weight:400;box-shadow:0 22px 70px #0005}
.resource-comparison::backdrop{background:#03060862;backdrop-filter:blur(3px)}
.resource-comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 17px}.resource-comparison-heading p{margin:0 0 4px;color:#adc1b7;font-size:10px;letter-spacing:.1em}.resource-comparison-heading h3{margin:0;color:#ece9db;font-size:21px;font-weight:450;line-height:1.3}
.resource-comparison-close{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:10px;color:#c1cbbb;background:transparent;border:0}.resource-comparison-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.resource-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.resource-choices button{min-height:44px;padding:8px 5px;color:#b9c7ba;background:transparent;border:1px solid #92a08b29;border-radius:2px;font:inherit;font-size:12px;white-space:nowrap}
.resource-choices button[aria-pressed="true"]{color:#f0e8d7;background:#98b09c20;border-color:#a6baa06b}
.resource-comparison .resource-network{height:166px;column-gap:80px;row-gap:13px;margin:9px 0 5px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.resource-comparison .resource-icon{width:34px;height:32px}.resource-comparison .resource-icon svg{width:25px;height:25px}.resource-comparison .resource-label{font-size:12px;line-height:1.4}.resource-comparison .resource-state{font-size:11px;line-height:1.4}.resource-comparison .resource-edges{display:block}
.resource-comparison-summary{min-height:30px;margin:2px 0 11px;color:#d0c0a2;font-size:11px;line-height:1.6}
.resource-comparison-footer{margin:0;padding-top:9px;border-top:1px solid #9dab9626}.resource-comparison-footer button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:44px;padding:6px 2px;color:#d8ded0;background:transparent;font:inherit;font-size:12px;border:0}.resource-comparison-footer svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.resource-comparison button:focus-visible{outline:1px solid #d5c5a3;outline-offset:3px}
@media(min-width:1800px){.mission-update{width:340px;padding:10px 14px}.mission-update h3{font-size:17px}.resource-gauges{height:92px}.gauge-chart{width:58px;height:58px}.gauge-number{font-size:17px}.gauge-status{font-size:11px}.resource-network{height:122px}.resource-icon svg{width:24px;height:24px}}
@media(max-width:1199px) and (min-width:901px){.mission-update{width:304px;padding:8px 10px}}
@media(max-width:900px){
  .mission-update{width:300px;padding:8px 10px}.mission-update h3{font-size:15px;margin-bottom:3px}.resource-network{height:108px;column-gap:52px;row-gap:5px}.resource-icon{height:24px}.resource-icon svg{width:21px;height:21px}.mission-update .mission-decision{font-size:11px;margin-top:4px;margin-bottom:5px;min-height:20px;padding-bottom:5px}
  .resource-gauges{height:80px;gap:3px}.gauge-chart{width:48px;height:48px}.gauge-number{font-size:15px}.gauge-status{font-size:9px}
  [data-shot="thermal"] .mission-update{top:auto;bottom:calc(var(--mission-dock-height,46px) + 21px);left:var(--scene-gutter);right:auto}
}
@media(max-width:760px){
  .mission-update{width:286px}.resource-gauges{height:76px;gap:2px}.gauge-chart{width:46px;height:46px}.gauge-label{font-size:11px}.gauge-status{font-size:9px}.mission-update .mission-decision{font-size:10px}.mission-update .update-kicker{font-size:9px;letter-spacing:.03em}
  .resource-comparison{padding:16px 16px 12px}
}
@media(max-height:700px) and (max-width:760px),(max-height:520px){
  .mission-update{width:270px;padding:7px 9px}.mission-update h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-height:0;margin:0}.resource-gauges{height:46px;margin-top:5px;gap:9px}.resource-gauge{position:relative;gap:3px;flex-direction:column-reverse;justify-content:flex-end;padding-bottom:7px}.gauge-chart{height:17px;width:100%}.gauge-chart svg,.gauge-status{display:none}.gauge-number,.resource-gauge[data-resource="temperature"] .gauge-number{position:static;font-size:15px;gap:2px}.gauge-number small,.resource-gauge[data-resource="temperature"] .gauge-number small{font-size:8px;margin-top:3px}.gauge-label{font-size:10px;line-height:1.2;color:#cdd5c5}.gauge-mini-bar{display:block;position:absolute;bottom:2px;left:2px;right:2px;height:3px;background:#d6dfc921;border-radius:1px}.gauge-mini-bar::before{content:"";display:block;width:calc(var(--gauge-level) * 100%);height:100%;background:var(--gauge-color);border-radius:inherit}.resource-gauge[data-resource="temperature"] .gauge-mini-bar::before{position:absolute;left:45%;width:10%;background:#abcfc0b3}.resource-gauge[data-resource="temperature"] .gauge-mini-bar::after{content:"";position:absolute;left:clamp(0px,calc(var(--gauge-level) * 100%),calc(100% - 2px));top:-2px;width:2px;height:7px;background:var(--gauge-color)}.mission-update .mission-decision{margin-top:2px;margin-bottom:4px;padding-bottom:4px;min-height:18px}.mission-update .update-kicker{line-height:1.5;min-height:14px;margin-bottom:0}.resource-compare-open{top:-4px}
}
@media(max-height:600px) and (max-width:760px){.mission-update{width:264px}.resource-gauges{height:43px;margin-top:2px}.mission-update .mission-decision{font-size:10px;min-height:16px;margin-top:1px;margin-bottom:3px;padding-bottom:3px}}
@media(max-height:520px){
  .mission-update{width:252px;padding:7px 9px}.mission-update h3{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-height:0;margin:0}.resource-gauges{height:43px}.mission-update .mission-decision{font-size:10px;min-height:17px;margin-top:2px;margin-bottom:4px;padding-bottom:4px}
  [data-shot="thermal"] .mission-update{top:auto;left:auto;right:var(--scene-gutter);bottom:calc(var(--mission-dock-height,46px) + 18px)}
}
@media(pointer:coarse){.resource-compare-open{height:44px;top:-6px}}
@media(prefers-reduced-motion:reduce){.resource-comparison{backdrop-filter:none}.gauge-fill,.gauge-end,.gauge-band{transition:none}}

@media (max-width:760px) and (orientation:portrait),
       (max-width:950px) and (max-height:520px) and (orientation:landscape) and (pointer:coarse) {
  .mission-update:not([data-hud="route"]) {
    background:linear-gradient(120deg,#18222dbd,#0d151ace);
    border-color:#a7c3c22c;
    text-shadow:none;
  }
  #mission-resource-state .update-kicker,
  #mission-updates,
  .resource-gauges :is(.gauge-status,.gauge-mini-bar) { display:none; }
  .mission-update #mission-event-title {
    position:static;
    width:auto;
    height:auto;
    min-height:0;
    clip-path:none;
    margin:0 78px 5px 0;
    overflow:visible;
    white-space:normal;
    opacity:1;
    font-size:13px;
    line-height:1.35;
  }
  .mission-update:not([data-hud="route"]) .resource-compare-open {
    top:0;
    right:5px;
    height:29px;
    font-size:10px;
  }
  .resource-gauges { --mobile-gauge-size:39px; height:auto; gap:3px; margin:0; background:none; }
  .resource-gauge {
    justify-content:flex-start;
    flex-direction:column;
    gap:1px;
    padding:0 1px 1px;
  }
  .resource-gauge .gauge-chart { width:var(--mobile-gauge-size); height:var(--mobile-gauge-size); }
  .resource-gauge .gauge-chart svg { display:block; }
  .resource-gauge[data-resource="temperature"] .gauge-chart { width:calc(var(--mobile-gauge-size) + 9px); }
  .resource-gauge .gauge-label { font-size:10px; opacity:1; color:#c4d1cd; }
  .resource-gauges[data-representation="categorical"] .gauge-number {
    position:absolute;
    font-size:11px;
    line-height:1.2;
    opacity:1;
    color:var(--gauge-color);
  }
  .resource-gauges[data-representation="categorical"] [data-resource="temperature"] .gauge-number {
    left:12px;
    font-size:10.5px;
  }
  .mission-update .mission-decision {
    min-height:0;
    margin:5px 0 0;
    padding:0;
    border:0;
    white-space:normal;
    overflow:visible;
    color:#d3c9b5;
    opacity:1;
    font-size:10.5px;
    line-height:1.4;
  }
}
@media (max-width:760px) and (max-height:640px) and (orientation:portrait),
       (max-width:950px) and (max-height:520px) and (orientation:landscape) and (pointer:coarse) {
  .resource-gauges { --mobile-gauge-size:35px; }
}
