/* Planet verdicts, the map key and the planet panel (update 86). Tokens only (style.css / polish.css): the brand palette decides the colours. */

/* ---- the verdict chip: the same everywhere (map hover, selection card, planet panel) */
.hv { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; line-height: 18px; white-space: nowrap;
  border: 1px solid currentColor; border-radius: var(--r2, 3px); background: rgba(255,255,255,.05); background: color-mix(in srgb, currentColor 14%, transparent); }
.hv .hv-g { font-style: normal; font-size: 12px; line-height: 1; }
.hv.big { font-size: 12.5px; padding: 3px 12px 3px 9px; line-height: 22px; letter-spacing: .1em; }
.hv.sm { font-size: 9.5px; line-height: 15px; padding: 0 6px 0 4px; }
.t-mine { color: #fff; } .t-good { color: var(--green); } .t-tech { color: var(--warn); } .t-warn { color: var(--gold); }
.t-foe { color: var(--red); } .t-ally { color: var(--green); } .t-bad { color: #aeb9c6; } .t-muted { color: var(--muted); }
.pv-verdict { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 5px 0 2px; font-size: 11.5px; }
.pv-verdict .muted { flex: 1 1 220px; min-width: 0; }

/* ---- the minimap buttons and the map key */
#minimap .mmtools button.mm-hab { color: var(--muted, #7f93aa); } #minimap .mmtools button.mm-hab.on { color: var(--green); border-color: var(--green); }
#maplegend { position: fixed; left: calc(var(--rail, 56px) + 10px); bottom: calc(var(--hud, 200px) + 10px); z-index: 45; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - var(--hud, 200px) - 70px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 8px 30px rgba(0,0,0,.65); padding: 10px 12px; }
.hl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.hl-row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 12px; border-top: 1px solid var(--line); }
.hl-row .muted { font-size: 11px; line-height: 1.35; }
.hl-sw { flex: 0 0 34px; height: 34px; display: grid; place-items: center; }
.hl-ring { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--green); position: relative; } .hl-ring::after { content: ""; position: absolute; right: -7px; top: -7px; width: 11px; height: 11px; border-radius: 50%; background: #082418; border: 1px solid var(--green); }
.hl-dia { width: 15px; height: 15px; transform: rotate(45deg); border: 1px solid #98a8b8; background: #0e121a; }
.hl-own { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--cyan); } .hl-claim { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed #fff; }
.hl-fog { width: 28px; height: 22px; background: #01030a; border: 1px solid var(--line); box-shadow: inset 0 0 8px #000; }
.hl-foot { margin-top: 6px; font-size: 11px; }

/* ---- the planet panel */
.pdx { padding: 0 !important; }
.pd-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(79,209,255,.05), transparent); }
.pd-head canvas { flex: 0 0 auto; }
.pd-ht { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 17px; }
.pd-name b { color: var(--cyan); letter-spacing: .04em; }
.pd-own { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pd-verd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.pd-why { font-size: 12px; color: var(--text); flex: 1 1 220px; min-width: 0; }
.pd-tools { display: flex; flex-direction: column; gap: 4px; align-items: stretch; margin-left: auto; }
.pdx .tabs { padding: 6px 10px 0; flex-wrap: wrap; }
.pd-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pd-sec { padding: 6px 0 8px; border-bottom: 1px solid var(--line); } .pd-sec:last-child { border-bottom: 0; }
.pd-sec h4 { margin: 4px 0 6px; }
.pd-kv { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; font-size: 12px; } .pd-kv > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pd-note { font-size: 11.5px; margin: 3px 0; line-height: 1.4; }
.pd-bar { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 12px; } .pd-l { width: 78px; color: var(--muted); } .pd-v { min-width: 0; text-align: right; }
.pd-effects, .pd-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pd-need { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 12px; } .pd-need.no b { color: var(--red); } .pd-need.ok b { color: var(--green); }
.pd-res { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 12px; }
.pd-rsv { padding: 5px 0; } .pd-rsv.none { display: flex; gap: 8px; align-items: center; opacity: .6; } .pd-sub { font-size: 11px; margin-top: 2px; } .pd-fc { font-size: 11.5px; margin-top: 2px; }
.pd-bld { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.pd-b { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; font-size: 11.5px; } .pd-b .bar { grid-column: 1 / -1; height: 4px; } .pd-b.none { opacity: .5; }
.pd-up { font-size: 12px; margin-bottom: 4px; }
.pd-chk { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.pd-step { display: flex; gap: 8px; font-size: 12px; line-height: 1.35; } .pd-step b { width: 14px; flex: 0 0 auto; } .pd-step.ok b { color: var(--green); } .pd-step.no b { color: var(--red); }
.pd-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 4px 0; font-size: 12px; } .pd-act .btn { min-width: 170px; } .pd-act > span { flex: 1 1 200px; min-width: 0; }
.pd-empty { padding: 28px 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .pd-tools { flex-direction: row; flex-wrap: wrap; margin-left: 0; } .pd-act .btn { min-width: 0; width: 100%; } .pd-bar { flex-wrap: wrap; } }
