:root {
  color-scheme: dark;
  --bg: #050817;
  --bg-2: #090f25;
  --panel: rgba(11, 18, 42, 0.82);
  --panel-2: rgba(18, 28, 60, 0.72);
  --panel-3: rgba(255, 255, 255, 0.055);
  --text: #eef6ff;
  --muted: #9fb0ca;
  --faint: #6d7c9a;
  --line: rgba(168, 201, 255, 0.15);
  --strong-line: rgba(166, 243, 255, 0.28);
  --gold: #f1c66b;
  --gold-2: #ffe5a0;
  --blue: #70e3ff;
  --blue-2: #6a7dff;
  --green: #7cffbc;
  --red: #ff6f91;
  --orange: #ffb66d;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 14% -4%, rgba(112, 227, 255, 0.16), transparent 35%),
    radial-gradient(circle at 84% 3%, rgba(241, 198, 107, 0.12), transparent 31%),
    radial-gradient(circle at 50% 110%, rgba(106, 125, 255, 0.14), transparent 42%),
    linear-gradient(145deg, #030615 0%, #081125 55%, #050817 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.82) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(112,227,255,.55) 0 1px, transparent 1.4px);
  background-size: 90px 90px, 140px 140px;
  background-position: 10px 20px, 40px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
.app-shell { position: relative; min-height: 100vh; }
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  width: min(1760px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}
.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 20, 46, .92), rgba(7, 12, 31, .84));
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 16px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 30%, #dfffff 0 6%, #81e9ff 7% 26%, #445dff 44%, #121b4d 68%, #070b21 100%);
  position: relative;
  box-shadow: 0 0 28px rgba(112, 227, 255, .32);
  overflow: hidden;
}
.logo::after {
  content: "";
  position: absolute;
  left: -18%; right: -18%; top: 54%; height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), #fff1b9, var(--gold), transparent);
  transform: rotate(-11deg);
  opacity: .92;
}
.brand h1 { margin: 0; font-size: 22px; letter-spacing: .04em; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 8px; padding: 16px 0; }
.nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 13px;
  text-align: left;
  transition: .18s ease;
}
.nav button:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.nav button.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(112,227,255,.13), rgba(241,198,107,.10));
  border-color: var(--strong-line);
  box-shadow: inset 0 0 30px rgba(112,227,255,.06);
}
.nav .badge {
  color: #061124;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
}
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 13px;
  margin-top: auto;
}
.sidebar-card h3 { margin: 0 0 8px; font-size: 14px; }
.sidebar-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 8, 23, .92), rgba(5, 8, 23, .68));
  padding: 4px 0 14px;
}
.hero {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(12, 24, 62, .88), rgba(8, 12, 31, .86)),
    radial-gradient(circle at 86% 22%, rgba(241,198,107,.16), transparent 28%);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112,227,255,.22), transparent 62%);
  pointer-events: none;
}
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.hero h2 { margin: 5px 0 6px; font-size: clamp(25px, 3.2vw, 42px); line-height: 1.02; }
.hero p { margin: 0; color: var(--muted); max-width: 780px; line-height: 1.45; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  transition: .16s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: var(--strong-line); background: rgba(112,227,255,.10); }
.btn.primary {
  color: #08101d;
  background: linear-gradient(135deg, #fff0b9, #f1c66b 55%, #d99b34);
  border-color: rgba(255,239,186,.55);
  font-weight: 850;
  box-shadow: 0 10px 35px rgba(241,198,107,.18);
}
.btn.warn { border-color: rgba(255,111,145,.35); color: #ffd0da; }
.btn.ghost { background: transparent; }
.resource-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}
.resource-pill {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  padding: 10px 12px;
  min-width: 0;
}
.resource-pill .label { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resource-pill .value { font-size: 17px; font-weight: 850; margin-top: 3px; }
.resource-pill .rate { color: var(--green); font-size: 11px; margin-top: 2px; }
.content {
  padding-top: 16px;
  display: grid;
  gap: 16px;
}
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 44px rgba(0,0,0,.18);
  padding: 16px;
  min-width: 0;
}
.panel.soft { background: var(--panel-2); }
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-title h3 { margin: 0; font-size: 18px; }
.panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.kpi {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.04);
}
.kpi b { font-size: 24px; }
.kpi span { color: var(--muted); font-size: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.042);
  min-width: 0;
}
.card.highlight { border-color: rgba(241,198,107,.34); background: linear-gradient(135deg, rgba(241,198,107,.11), rgba(255,255,255,.045)); }
.card h4 { margin: 0 0 7px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); line-height: 1.42; font-size: 13px; }
.meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.tag {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  background: rgba(255,255,255,.035);
}
.tag.good { color: #baffda; border-color: rgba(124,255,188,.28); }
.tag.warn { color: #ffd8af; border-color: rgba(255,182,109,.30); }
.tag.blue { color: #b9f4ff; border-color: rgba(112,227,255,.3); }
.cost { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cost.missing { color: #ffc0cc; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 11px 8px; vertical-align: top; }
.table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table td { color: var(--text); font-size: 13px; }
.progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: inherit; transition: width .2s linear; }
.queue-list { display: grid; gap: 10px; }
.queue-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.04); }
.queue-head { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; }
.queue-head b { font-size: 13px; }
.queue-head span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.planet-visual {
  min-height: 330px;
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(112,227,255,.22), transparent 28%),
    radial-gradient(circle at 47% 42%, #f3fbff 0 2%, #5be2ff 3% 14%, #3752f0 30%, #151f55 49%, #070b21 71%, transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.planet-visual::before {
  content:"";
  position:absolute;
  left:12%; right:12%; top:48%; height:14px;
  background:linear-gradient(90deg, transparent, rgba(241,198,107,.85), rgba(255,255,255,.95), rgba(241,198,107,.85), transparent);
  transform:rotate(-9deg);
  filter:blur(.2px);
}
.planet-visual::after {
  content:"Solaryn-Heimatwelt · sicherer Startcluster";
  position:absolute;
  left:18px; bottom:18px;
  color:rgba(238,246,255,.88);
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 11px;
  background:rgba(5,8,23,.55);
  backdrop-filter: blur(10px);
  font-size:12px;
}
.signal-visual {
  height: 156px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: radial-gradient(circle at 45% 48%, rgba(112,227,255,.2), transparent 34%), linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  position: relative;
  overflow: hidden;
}
.signal-visual::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 1.3px); background-size:34px 34px; opacity:.14; }
.signal-visual.asteroid { background: radial-gradient(circle at 30% 48%, #d6d1bd 0 5px, transparent 6px), radial-gradient(circle at 55% 42%, #8e8a80 0 9px, transparent 10px), radial-gradient(circle at 70% 60%, #b6a986 0 6px, transparent 7px), linear-gradient(135deg, rgba(112,227,255,.12), rgba(255,255,255,.02)); }
.signal-visual.station { background: radial-gradient(circle at 50% 50%, rgba(241,198,107,.9) 0 5px, transparent 6px), linear-gradient(90deg, transparent 41%, rgba(112,227,255,.26) 42% 58%, transparent 59%), linear-gradient(135deg, rgba(112,227,255,.12), rgba(255,255,255,.02)); }
.signal-visual.pirate { background: radial-gradient(circle at 50% 50%, rgba(255,111,145,.35), transparent 30%), linear-gradient(135deg, rgba(255,111,145,.10), rgba(255,255,255,.02)); }
.signal-visual.planet { background: radial-gradient(circle at 50% 50%, rgba(241,198,107,.24) 0 18%, rgba(106,125,255,.18) 28%, transparent 38%), linear-gradient(135deg, rgba(112,227,255,.08), rgba(255,255,255,.02)); }
.report { border-left: 3px solid var(--blue); }
.report.build { border-left-color: var(--gold); }
.report.mining { border-left-color: var(--green); }
.report.warn { border-left-color: var(--orange); }
.empty { color: var(--muted); text-align:center; padding:28px 14px; border:1px dashed var(--line); border-radius:18px; background: rgba(255,255,255,.025); }
.toast-wrap { position: fixed; right: 18px; bottom: 18px; display:grid; gap:10px; z-index:50; width:min(390px, calc(100vw - 36px)); }
.toast { border:1px solid var(--strong-line); border-radius:18px; background:rgba(7,12,31,.94); box-shadow:var(--shadow); padding:13px; animation: toastIn .25s ease both; }
.toast b { display:block; margin-bottom:4px; }
.toast span { color: var(--muted); font-size:13px; }
@keyframes toastIn { from { transform: translateY(10px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.footer-note { color: var(--faint); font-size: 12px; line-height: 1.5; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; height: auto; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar-card { margin-top: 0; }
  .resource-strip { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .layout { width: min(100% - 16px, 1760px); padding-top: 8px; }
  .sidebar { padding: 10px; border-radius: 22px; }
  .brand { grid-template-columns: 40px 1fr; }
  .logo { width:40px; height:40px; border-radius: 13px; }
  .nav { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .nav button { padding: 10px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding: 16px; border-radius: 24px; }
  .hero-actions { justify-content: flex-start; }
  .resource-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .topbar { position: relative; }
  .table { display:block; overflow-x:auto; }
}


/* v0.1.1 Sternkarte / Forschung / Handel */
.starmap {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(112,227,255,.16), transparent 13%),
    radial-gradient(circle at 30% 30%, rgba(241,198,107,.12), transparent 16%),
    radial-gradient(circle at 70% 68%, rgba(106,125,255,.16), transparent 22%),
    linear-gradient(135deg, rgba(4,8,22,.72), rgba(12,18,45,.72));
}
.starmap::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(168,201,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 74px rgba(112,227,255,.025), 0 0 0 148px rgba(241,198,107,.018);
  pointer-events: none;
}
.home-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(241,198,107,.42);
  border-radius: 18px;
  background: rgba(5,8,23,.78);
  box-shadow: 0 0 38px rgba(241,198,107,.13);
  z-index: 2;
}
.home-node span { color: var(--muted); font-size: 12px; }
.map-dot {
  --x: 50%;
  --y: 50%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 9px 11px;
  display: grid;
  gap: 2px;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
}
.map-dot.known { border-color: var(--strong-line); background: rgba(112,227,255,.12); }
.map-dot b { font-size: 13px; }
.map-dot span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.good-text { color: var(--green); }
.card.research { border-color: rgba(112,227,255,.24); }
@media (max-width: 760px) {
  .starmap { min-height: 440px; }
  .map-dot { min-width: 78px; padding: 8px; }
}


/* v0.1.3/v0.1.4 visual pass */
.art-hero-panel { display:grid; gap:14px; }
.art-frame { border:1px solid var(--line); border-radius:22px; background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); overflow:hidden; min-height:280px; }
.planet-frame { min-height:360px; }
.art-hero-image { width:100%; height:100%; object-fit:cover; display:block; }
.planet-caption h3 { margin:0 0 8px; font-size:18px; }
.planet-caption p { margin:0; color:var(--muted); line-height:1.5; }
.art-strip { margin:-2px -2px 12px; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.08); background:radial-gradient(circle at 20% 10%, rgba(112,227,255,.16), transparent 35%), linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.signal-art { background:radial-gradient(circle at 80% 20%, rgba(241,198,107,.16), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.card-art { width:100%; height:140px; object-fit:cover; display:block; }
.mini-art { width:100%; height:96px; object-fit:cover; display:block; margin:-2px -2px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.08); }
.district-card h4 { margin-top:0; }
.ship-card .card-art { height:130px; }
.fleet-inline-art { margin-top:16px; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.wide-art { width:100%; height:220px; object-fit:cover; display:block; }
.concept-gallery-card .card-art { height: 156px; }
@media (max-width: 760px) { .planet-frame { min-height:240px; } .card-art { height:120px; } .mini-art { height:82px; } .wide-art { height:180px; } }

/* v0.1.4 planet/building/shipyard expansion */
.progress-card .progress { margin-top: 12px; }
.blueprint-card { border-color: rgba(112,227,255,.22); }
.blueprint-card .card-art { filter: saturate(1.08) contrast(1.04); }
.art-frame .art-hero-image { min-height: 280px; }
@media (max-width: 760px) {
  .art-frame .art-hero-image { min-height: 210px; }
}


/* v0.1.6 exploration / starmap clarity */
.signal-card .signal-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px; }
.signal-card .signal-title-row h4 { margin:0; }
.signal-intel { margin:12px 0 8px; }
.signal-intel .queue-head { margin-bottom:7px; }
.starmap.v016 { min-height: 600px; }
.starmap.v016::before { box-shadow: 0 0 0 86px rgba(112,227,255,.025), 0 0 0 172px rgba(241,198,107,.018), 0 0 0 258px rgba(106,125,255,.014); }
.map-ring { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); border:1px solid rgba(168,201,255,.13); border-radius:50%; pointer-events:none; }
.map-ring.ring-a { width:210px; height:210px; }
.map-ring.ring-b { width:390px; height:390px; }
.map-ring.ring-c { width:560px; height:560px; border-style:dashed; opacity:.85; }
.sector-label { position:absolute; color:rgba(168,201,255,.66); font-size:11px; letter-spacing:.08em; text-transform:uppercase; border:1px solid rgba(168,201,255,.13); border-radius:999px; padding:5px 8px; background:rgba(5,8,23,.42); }
.sector-n { left:50%; top:42px; transform:translateX(-50%); }
.sector-e { right:34px; top:50%; transform:translateY(-50%); }
.sector-s { left:50%; bottom:42px; transform:translateX(-50%); }
.sector-w { left:34px; top:50%; transform:translateY(-50%); }
.map-dot small { color:var(--gold-2); font-size:10px; }
.map-dot.asteroid { border-color: rgba(112,227,255,.28); }
.map-dot.station { border-color: rgba(241,198,107,.42); }
.map-dot.pirate { border-color: rgba(255,111,145,.45); }
.map-dot.planet { border-color: rgba(124,255,188,.28); }
.map-legend { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; color:var(--muted); font-size:12px; }
.map-legend span { display:inline-flex; gap:7px; align-items:center; border:1px solid var(--line); border-radius:999px; padding:7px 9px; background:rgba(255,255,255,.035); }
.legend-dot { width:9px; height:9px; border-radius:50%; display:inline-block; background:var(--muted); }
.legend-dot.known { background:var(--blue); }
.legend-dot.raw { background:rgba(168,201,255,.5); }
.legend-dot.risk { background:var(--red); }
.legend-dot.trade { background:var(--gold); }
@media (max-width: 760px) {
  .starmap.v016 { min-height: 480px; }
  .map-ring.ring-c { width:420px; height:420px; }
  .sector-label { display:none; }
  .signal-card .signal-title-row { display:block; }
}


/* v0.1.7 colony surface / building zoning */
.district-overview-card .card-art { height: 118px; }
.district-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:7px; }
.district-card-head h4 { margin:0; }
.district-progress { margin:12px 0 8px; }
.surface-phase-card { background: linear-gradient(135deg, rgba(112,227,255,.055), rgba(255,255,255,.035)); }
.building-card-v017 .card-art { height: 132px; filter:saturate(1.05) contrast(1.03); }
@media (max-width: 1180px) {
  .district-overview-card .card-art { height: 132px; }
}
@media (max-width: 760px) {
  .district-card-head { display:block; }
  .district-overview-card .card-art, .building-card-v017 .card-art { height: 126px; }
}

/* v0.1.8 shipyard/fleet clean build */
.ship-role-section { display: grid; gap: 12px; margin: 14px 0 20px; }
.ship-role-section:last-child { margin-bottom: 0; }
.section-kicker { display:flex; align-items:center; gap:12px; color: var(--gold-2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.section-kicker i { flex:1; height:1px; background: linear-gradient(90deg, rgba(241,198,107,.45), transparent); }
.blueprint-card.highlight { background: linear-gradient(135deg, rgba(112,227,255,.10), rgba(241,198,107,.07)); }
.ship-card .meta-row .tag { max-width: 100%; }

/* v0.1.9 mining/trade/reports clean build */
.mining-op-card .progress { margin: 10px 0 4px; }
.report-timeline { display: grid; gap: 12px; }
.report-type-card { min-height: 132px; }
.report.trade { border-left-color: var(--gold); }
.report.scan, .report.scout, .report.survey { border-left-color: var(--blue); }
.report.research { border-left-color: #b89cff; }
.mining-op-card.highlight { background: linear-gradient(135deg, rgba(124,255,188,.10), rgba(241,198,107,.06)); }

/* v0.1.10 audit milestone */
.review-check-card { border-color: rgba(112,227,255,.18); }
.review-check-card h4 { display:flex; align-items:center; gap:8px; }
.review-check-card h4::before { content:"✓"; color: var(--gold-2); font-weight:900; }

/* v0.1.11 layout cleanup */
.tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.tab-btn.primary { box-shadow: 0 8px 24px rgba(241,198,107,.14); }
.small-btn { min-height: 32px; padding: 7px 10px; font-size: 12px; border-radius: 11px; }
.compact-table td, .compact-table th { padding: 9px 8px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.35; }
.missing-text { color: #ffc0cc; }
.row-hint { color: #ffc0cc; font-size: 11px; margin-top: 5px; max-width: 220px; }
.compact-hero .art-frame { min-height: 260px; }
.compact-hero .art-hero-image { min-height: 260px; }
@media (max-width: 760px) {
  .tabbar { gap: 6px; }
  .tabbar .btn { flex: 1 1 calc(50% - 6px); padding: 9px 8px; }
  .compact-hero .art-frame,
  .compact-hero .art-hero-image { min-height: 190px; }
}

/* v0.1.15 ordered sprint */
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.cols-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .grid.cols-5 { grid-template-columns: 1fr; } }
.card .tag.good { font-weight: 800; }

/* v0.1.19 economy expansion sprint */
.card h4 code { font-size: 12px; }
.table.compact-table td:nth-child(4) { color: var(--muted); }

/* v0.1.23 planning sprint */
.card .progress { margin: 10px 0 4px; }
.compact-table td:first-child { min-width: 150px; }

/* v0.1.27 pre backend */
code {
  color: #c7f6ff;
  background: rgba(112,227,255,.08);
  border: 1px solid rgba(112,227,255,.16);
  border-radius: 8px;
  padding: 1px 5px;
}
.compact-table code { white-space: nowrap; }

/* v0.1.31 broad systems */
.card .cost br { margin-bottom: 4px; }

/* v0.1.35 alliance market colonization */
.compact-table td:nth-child(3) { color: var(--muted); }
.grid.cols-5 .card h4 { font-size: 14px; }

/* v0.1.39 communication contracts missions */
.compact-table td code { font-size: 11px; }

/* v0.1.43 real modules */
.nav button span { line-height: 1.15; }
.grid.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 1180px) {
  .nav { max-height: none; }
}

/* v0.1.47 visual asset sprint */
.rename-safe-frame { position: relative; overflow: hidden; }
.rename-safe-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(112,227,255,.22);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(5,10,20,.82), rgba(5,10,20,.38));
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}
.rename-safe-overlay b {
  display: block;
  font-size: clamp(18px, 2.2vw, 32px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.rename-safe-overlay span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.rename-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.rename-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.rename-form input {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3,9,18,.68);
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}
.rename-form input:focus { border-color: rgba(112,227,255,.55); box-shadow: 0 0 0 3px rgba(112,227,255,.08); }
.visual-asset-card .visual-art-strip { min-height: 170px; }
.visual-asset-card .card-art { object-fit: cover; }
@media (max-width: 980px) {
  .rename-form { grid-template-columns: 1fr; }
}
