.hex-bar,.hex-tools { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap }
.hex-bar h2,.hex-bar p { margin:0 }
.hex-workspace { display:grid; grid-template-columns:minmax(0,2fr) minmax(15rem,1fr); gap:1rem }
.hex-chart,.hex-console { border:1px solid #39697d; border-radius:12px; background:#091b2b; overflow:hidden }
.hex-tools { justify-content:flex-start; padding:.5rem }
.hex-viewport { max-height:56vh; min-height:340px; overflow:auto; background:#060f20 url('hq-window-silent.webp') center/cover; cursor:grab }
.hex-grid { position:relative; width:560px; height:345px; margin:auto }
.hex-cell { position:absolute; left:var(--x); top:var(--y); width:94px; height:108px; padding:2px; border:0; color:#e7f8ff; background:#527a99; clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); cursor:pointer; font:inherit; font-size:.73rem }
.hex-cell > span { display:grid; align-content:center; justify-items:center; gap:4px; height:100%; padding:0 6px; background:radial-gradient(circle at 46% 37%,#285175,#08192b 65%); clip-path:inherit }
.hex-cell b { font-size:1.55rem; line-height:1; color:#99eaff; text-shadow:0 0 12px #25c6ff }
.hex-cell[data-visibility=fog] > span { background:linear-gradient(145deg,#17263e,#080d19); color:#aab8ca }
.hex-cell[data-visibility=charted] > span { background:#151e37 }
.hex-cell[data-visibility=test] > span { background:radial-gradient(circle,#553560,#1d1431 75%) }
.hex-cell:hover,.hex-cell:focus-visible,.hex-cell[aria-pressed=true] { background:#ffd388 }
.hex-cell[data-ship] b { color:#b5ffbd }
.hex-console { padding:1rem }
.hex-scene { min-height:125px; align-items:center; justify-content:space-evenly; gap:.5rem; border-radius:8px; background:#060e20 url('hq-window-silent.webp') center/cover }
.hex-scene:not([hidden]) { display:flex }
.hex-body { border:0; background:transparent; color:white; cursor:pointer; font:inherit; font-size:.72rem; text-shadow:0 1px 5px #000 }
.hex-body::before { content:''; display:block; width:48px; height:48px; margin:0 auto 6px; border-radius:50%; background:radial-gradient(circle at 30% 27%,#85e2ff,#2b6095 50%,#081121 81%); box-shadow:0 0 14px #4bbdff90 }
.hex-body[data-type=star]::before { background:radial-gradient(circle at 30% 27%,#fff8c0,#ff9828 60%,#ac350e); box-shadow:0 0 20px #ff9a49 }
.hex-body[data-type=singularity]::before { background:radial-gradient(circle,#000 38%,#ffb96a 45%,#7d38a8 52%,transparent 69%); box-shadow:none }
.hex-body[data-type=comet]::before,.hex-body[data-type=moon]::before { width:32px; height:32px; background:radial-gradient(circle at 28% 22%,white,#a9bdde 40%,#334260 79%) }
.hex-body[data-type=comet]::before { box-shadow:10px -8px 18px #98dcff }
.hex-body[aria-pressed=true] { color:#ffd388; text-decoration:underline }
.hex-console [data-hex-actions] { display:flex; flex-wrap:wrap; gap:.4rem }
@media(max-width:850px) { .hex-workspace { grid-template-columns:1fr } }
