.dev-shell{--gold:#e5bf78;--cyan:#76d9d5;border:1px solid #344d51;background:#091a21;color:#dce9e5}.dev-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2rem;background:radial-gradient(ellipse at 90% 0,#c39b4926,transparent 60%),linear-gradient(130deg,#18333a,#0c1c23)}.dev-heading h2{font-size:clamp(1.8rem,3.5vw,3.2rem);margin:.5rem 0;font-weight:500}.dev-heading em{font-family:Georgia,serif;color:var(--gold)}.dev-heading p:last-child{color:#a6bdbb;font-size:.85rem}.dev-total{border:1px solid #887448;padding:1rem;color:var(--gold);white-space:nowrap;font-size:.8rem}.dev-tabs{display:flex;flex-wrap:wrap;border-bottom:1px solid #385255;background:#10272d;padding:0 1rem;gap:.35rem}.dev-tabs button{border:0!important;border-radius:0!important;background:transparent!important;color:#9fb7b8!important;display:flex;gap:.6rem;align-items:center;padding:1rem!important;font-size:.85rem}.dev-tabs button[aria-pressed=true]{color:var(--gold)!important;box-shadow:inset 0 -3px var(--gold)}.dev-toolbar{padding:.7rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;border-bottom:1px solid #293f45}.dev-toolbar p{font-size:.7rem;color:#9ab4b7;margin:0}.dev-toolbar button{padding:.35rem .65rem!important;font-size:.7rem}.dev-message{padding:.5rem 1rem;margin:0;color:#a7c5c4;font-size:.75rem;min-height:2rem}.dev-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start}.dev-scroll{max-height:680px;min-height:440px;overflow:auto;scrollbar-color:#6b755c #0c2028;background:radial-gradient(ellipse at 20% 50%,#28545a33,transparent 65%),radial-gradient(circle,#91bdb61b 1px,transparent 1.5px);background-size:auto,22px 22px;overscroll-behavior:contain}.dev-canvas{position:relative;width:var(--dev-width);height:var(--dev-height)}.dev-edges{position:absolute;inset:0;pointer-events:none;overflow:visible}.dev-edges path{fill:none;stroke:#37565d;stroke-width:1.5}.dev-edges path.done{stroke:#bda368;stroke-width:2}.dev-stage{position:absolute;top:12px;color:#cbb98d;font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}.dev-stage small{display:block;color:#627b7e;font-size:.65rem;margin-bottom:.4rem}.dev-lane{position:absolute;left:14px;letter-spacing:.12em;text-transform:uppercase;font-size:.58rem;color:#6b999c;max-width:110px}.dev-node{position:absolute;transform:translate(-50%,-28px);width:145px!important;height:100px;border:0!important;padding:0!important;background:none!important;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;color:#8da8ab!important;border-radius:0!important}.dev-orb{width:56px;height:56px;display:grid;place-items:center;border:1px solid #476069;border-radius:50%;background:radial-gradient(circle at 40% 30%,#1b3840,#091920);position:relative;box-shadow:0 0 0 5px #3d5c5c18,0 8px 20px #0006;flex-shrink:0}.dev-orb small{position:absolute;bottom:-5px;right:-4px;background:#13282e;border:1px solid currentColor;border-radius:8px;min-width:17px;font-size:.55rem;padding:1px 3px}.dev-node-name{margin-top:10px;font-size:.66rem;line-height:1.4;max-width:135px;text-align:center;white-space:normal}.dev-node.complete{color:var(--gold)!important}.dev-node.available{color:var(--cyan)!important}.dev-node.active{color:#edb66b!important}.dev-node.available .dev-orb,.dev-node.complete .dev-orb,.dev-node.active .dev-orb{border-color:currentColor}.dev-node.available .dev-orb{box-shadow:0 0 0 5px #76d9d511,0 0 25px #76d9d51c}.dev-node[aria-pressed=true] .dev-orb,.dev-node:hover .dev-orb,.dev-node:focus-visible .dev-orb{outline:2px solid #f4dfb4;outline-offset:5px}.dev-node:focus-visible{outline:0}.dev-detail{padding:1.5rem;border-left:1px solid #344d51;position:sticky;top:1rem;background:linear-gradient(150deg,#183239,#0a1d25);min-height:480px}.dev-detail .eyebrow{font-size:.55rem;line-height:1.6}.dev-detail-icon{color:var(--gold);margin:1rem 0}.dev-detail h3{font-family:Georgia,serif;font-size:1.6rem;font-weight:400;margin:.7rem 0;color:#f1e6ce}.dev-detail p,.dev-detail li{font-size:.75rem;line-height:1.65}.dev-detail ul{padding-left:1rem}.dev-detail h4{font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;margin:1.3rem 0 .5rem;color:#c9b98f}.dev-tier{color:#93b5b9;letter-spacing:.12em;font-size:.6rem!important}.dev-state{text-transform:uppercase;letter-spacing:.1em;font-size:.55rem;border:1px solid #456168;padding:.3rem .5rem}.dev-state.complete{color:var(--gold)}.dev-state.available{color:var(--cyan)}.dev-reasons{border-left:2px solid #80634a;padding-left:.8rem;color:#d5bda7}.dev-action{width:100%;margin-top:.7rem;color:#0a2026!important;background:var(--gold)!important;border-color:var(--gold)!important}.dev-legend{display:flex;flex-wrap:wrap;gap:1.5rem;padding:1rem;border-top:1px solid #344d51;color:#879fa1;font-size:.65rem}.dev-legend span:nth-child(1){color:var(--gold)}.dev-legend span:nth-child(2){color:var(--cyan)}.dev-legend span:nth-child(3){color:#edb66b}.dev-operations{padding:1.2rem;border-top:1px solid #344d51}.dev-operations summary{cursor:pointer;color:var(--gold);font-size:.85rem}.dev-operations[open]>div{margin-top:1rem}.dev-operations #military-root,.dev-operations #government-root{display:block}.dev-node.active .dev-orb{animation:dev-pulse 2s ease-in-out infinite}@keyframes dev-pulse{50%{box-shadow:0 0 0 8px #edb66b18}}@media(prefers-reduced-motion:reduce){.dev-node.active .dev-orb{animation:none}}@media(max-width:850px){.dev-workspace{grid-template-columns:1fr}.dev-detail{border-left:0;border-top:1px solid #344d51;position:static;min-height:0}.dev-scroll{max-height:480px}.dev-heading{padding:1.25rem;flex-wrap:wrap}.dev-toolbar{align-items:flex-start;flex-direction:column}.dev-tabs{padding:0}.dev-tabs button{padding:.8rem!important;font-size:.7rem}}

.dev-shell{padding:0;border-radius:0}.dev-shell svg.waz-icon{width:24px;height:24px;border:0;background:none;touch-action:auto}.dev-shell .dev-orb svg{width:27px;height:27px}.dev-shell .dev-detail-icon svg{width:40px;height:40px}.dev-shell .dev-edges{width:100%;height:100%;background:none;border:0;touch-action:auto}.dev-shell button.dev-node:active{transform:translate(-50%,-28px)}

.dev-unpin{display:block;margin:.7rem 0 0;font-size:.6rem;padding:.25rem .5rem;opacity:.8}

/* Civilization strategy tree tab (2026-11-05): strategic content uses the same tree design, no card grid. */
.dev-effects { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.dev-effects li { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px dashed #2c464b; padding: .3rem 0; }
.dev-effects strong { color: var(--gold); font-weight: 600; white-space: nowrap; }
.dev-duration { color: #93b5b9; font-size: .65rem !important; letter-spacing: .08em; text-transform: uppercase; }
.dev-confirm { margin-top: .9rem; border: 1px solid #8a6d3b; background: #241d10; padding: .9rem; }
.dev-confirm h4 { margin: 0 0 .5rem; color: var(--gold); font-size: .72rem !important; letter-spacing: .12em; }
.dev-confirm p { color: #e2d4b8; }
.dev-confirm-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.dev-confirm-actions .dev-action { width: auto; flex: 1 1 8rem; margin: 0; }
.dev-cancel { flex: 1 1 6rem; min-height: 44px; background: transparent !important; color: #cfe2dc !important; border: 1px solid #456168 !important; }


/* Technology views (2026-11-06): Available Now is the primary tab; counts come from real node statuses. */
.dev-views { display: flex; gap: .25rem; overflow-x: auto; padding: .55rem 1rem; border-bottom: 1px solid #344d51; background: #0b2027; scrollbar-width: thin; }
.dev-views button { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; white-space: nowrap; border: 1px solid #35545a !important; border-radius: 2px !important; background: #10272d !important; color: #b7cbc7 !important; padding: .5rem .8rem !important; font-size: .72rem; letter-spacing: .03em; }
.dev-views button[aria-selected="true"] { border-color: var(--gold) !important; color: #f2e4c4 !important; background: #1c302f !important; box-shadow: inset 0 -2px var(--gold); }
.dev-view-count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.15rem; border-radius: 999px; background: #2a4647; color: #d9e7e1; font-size: .6rem; padding: 0 .25rem; }
.dev-views button[aria-selected="true"] .dev-view-count { background: var(--gold); color: #10272d; font-weight: 700; }
@media (max-width: 850px) { .dev-views { padding: .45rem .5rem; } .dev-views button { font-size: .66rem; padding: .45rem .55rem !important; } }

/* Unaffordable research: prerequisites met, resources short. */
.dev-node.unaffordable{color:#edb66b!important;opacity:.92}
.dev-node.unaffordable .dev-orb{border-color:currentColor}
.dev-state.unaffordable{color:#edb66b}

/* 2026-11-07 — "Reconstruction Archive": command interface palette. */
.dev-shell {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(198,157,83,.20), transparent 65%),
    radial-gradient(700px 380px at 0% 25%, rgba(67,126,116,.12), transparent 70%),
    #0c2028 !important;
  color: #e8f0eb !important;
  border-color: #34545d !important;
}
.dev-shell .dev-heading {
  background:
    linear-gradient(115deg, rgba(20,48,56,.96), rgba(10,29,37,.92)),
    radial-gradient(500px 200px at 90% 0, rgba(184,132,45,.20), transparent 70%) !important;
  border-bottom: 1px solid #34545d !important;
  color: #e8f0eb !important;
  padding: clamp(1.5rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2.4rem) !important;
}
.dev-shell .dev-heading .eyebrow { color: #f1c882 !important; letter-spacing: .16em !important; font-weight: 700 !important; }
.dev-shell .dev-heading h2 { color: #e8f0eb !important; letter-spacing: -.02em !important; font-size: clamp(2.3rem, 5vw, 4.3rem) !important; }
.dev-shell .dev-heading h2 em { color: #f1c882 !important; font-style: italic !important; }
.dev-shell .dev-heading p:last-child { color: #acc4c4 !important; font-size: 1rem !important; max-width: 46rem; }
.dev-shell .dev-total {
  background: #112b33 !important;
  border: 1px solid #34545d !important;
  color: #e8f0eb !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(53,41,23,.08);
  padding: .7rem 1rem !important;
  font-size: .95rem !important;
}
.dev-shell .dev-tabs {
  background: rgba(17,43,51,.82) !important;
  border-top: 1px solid #34545d !important;
  border-bottom: 1px solid #34545d !important;
  padding: .55rem clamp(.75rem, 2.5vw, 2rem) !important;
  gap: .35rem !important;
  backdrop-filter: blur(8px);
}
.dev-shell .dev-tabs button {
  color: #acc4c4 !important;
  border-radius: 999px !important;
  padding: .5rem .85rem !important;
  font-size: .86rem !important;
  font-weight: 600 !important;
}
.dev-shell .dev-tabs button[aria-selected="true"], .dev-shell .dev-tabs .active {
  color: #e8f0eb !important;
  background: #112b33 !important;
  box-shadow: inset 0 -2px 0 #f1c882, 0 3px 10px rgba(70,54,29,.08);
}
.dev-shell .dev-views {
  background: #0c2028 !important;
  border-bottom: 1px solid #34545d !important;
  padding: .7rem clamp(.75rem, 2.5vw, 2rem) !important;
  gap: .4rem !important;
}
.dev-shell .dev-views button {
  background: #112b33 !important;
  border: 1px solid #34545d !important;
  color: #acc4c4 !important;
  border-radius: 8px !important;
  padding: .55rem .8rem !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
}
.dev-shell .dev-views button[aria-selected="true"] {
  background: #1f5d55 !important;
  border-color: #1f5d55 !important;
  color: #112b33 !important;
  box-shadow: 0 6px 16px rgba(31,93,85,.22);
}
.dev-shell .dev-view-count { color: #f1c882 !important; font-weight: 800 !important; }
.dev-shell .dev-views button[aria-selected="true"] .dev-view-count { color: #ffe3ae !important; }
.dev-shell .dev-toolbar {
  background: #112b33 !important;
  border-bottom: 1px solid #34545d !important;
  color: #acc4c4 !important;
  font-size: .84rem !important;
  padding: .6rem clamp(.75rem, 2.5vw, 2rem) !important;
}
.dev-shell .dev-toolbar button, .dev-shell .dev-operations button, .dev-shell .dev-unpin {
  background: #112b33 !important;
  border: 1px solid #34545d !important;
  color: #e8f0eb !important;
  border-radius: 8px !important;
  min-height: 2.4rem !important;
  font-weight: 600 !important;
}
.dev-shell .dev-workspace {
  background: #112b33 !important;
  border-top: 0 !important;
  gap: 0 !important;
}
.dev-shell .dev-scroll { background: #0c2028 !important; }
.dev-shell .dev-canvas {
  background-color: #0c2028 !important;
  background-image: radial-gradient(rgba(65,82,73,.17) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}
.dev-shell .dev-stage { color: #acc4c4 !important; font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .12em !important; }
.dev-shell .dev-stage small { color: #a08b6c !important; }
.dev-shell .dev-lane { color: #acc4c4 !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .12em !important; }
.dev-shell .dev-edges path { stroke: #94a89d !important; opacity: .7 !important; }
.dev-shell .dev-edges path.done { stroke: #f1c882 !important; opacity: .9 !important; }
.dev-shell .dev-node {
  color: #e8f0eb !important;
  background: #142f38 !important;
  border: 1px solid #142f38 !important;
  border-radius: 14px !important;
  padding: .55rem .7rem .6rem !important;
  box-shadow: 0 8px 18px rgba(60,49,31,.10) !important;
  min-width: 138px !important;
  min-height: 74px !important;
  justify-content: center !important;
  gap: .3rem !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
.dev-shell .dev-node:hover, .dev-shell .dev-node:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(60,49,31,.17) !important;
  border-color: #f1c882 !important;
}
.dev-shell .dev-node .dev-orb {
  width: 3.1rem !important;
  height: 3.1rem !important;
  background: #0c2028 !important;
  border: 1px solid #34545d !important;
  border-radius: 50% !important;
  color: #1f5d55 !important;
}
.dev-shell .dev-node.available { color: #87d8c3 !important; border-color: #6aa597 !important; background: #142f38 !important; }
.dev-shell .dev-node.available .dev-orb { background: #173a38 !important; border-color: #4a9182 !important; color: #87d8c3 !important; }
.dev-shell .dev-node.unaffordable { color: #f1c882 !important; border-color: #d3ae6e !important; background: #112b33 !important; opacity: 1 !important; }
.dev-shell .dev-node.unaffordable .dev-orb { background: #352d21 !important; border-color: #c3933e !important; color: #f1c882 !important; }
.dev-shell .dev-node.complete { color: #f1c882 !important; background: #0c2028 !important; border-color: #34545d !important; }
.dev-shell .dev-node.active { color: #87d8c3 !important; border-color: #4a9182 !important; }
.dev-shell .dev-node.locked { opacity: .55 !important; background: #0c2028 !important; color: #acc4c4 !important; }
.dev-shell .dev-node-name { color: inherit !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .01em !important; }
.dev-shell .dev-detail {
  background: #142f38 !important;
  border-left: 1px solid #34545d !important;
  color: #e8f0eb !important;
  box-shadow: -16px 0 40px rgba(60,49,31,.06);
}
.dev-shell .dev-detail .eyebrow { color: #f1c882 !important; font-weight: 700 !important; letter-spacing: .12em !important; }
.dev-shell .dev-detail h3 { color: #e8f0eb !important; font-size: clamp(1.45rem, 2vw, 2rem) !important; }
.dev-shell .dev-detail p { color: #acc4c4 !important; line-height: 1.55 !important; font-size: .92rem !important; }
.dev-shell .dev-detail h4 { color: #acc4c4 !important; font-size: .78rem !important; letter-spacing: .1em !important; }
.dev-shell .dev-detail-icon { color: #1f5d55 !important; background: #112b33 !important; border: 1px solid #34545d !important; }
.dev-shell .dev-state { border-radius: 999px !important; padding: .25rem .55rem !important; font-weight: 800 !important; font-size: .66rem !important; letter-spacing: .1em !important; }
.dev-shell .dev-state.available { background: #173a38 !important; color: #87d8c3 !important; }
.dev-shell .dev-state.unaffordable { background: #352d21 !important; color: #f1c882 !important; }
.dev-shell .dev-state.locked { background: #0c2028 !important; color: #acc4c4 !important; }
.dev-shell .dev-state.complete { background: #352d21 !important; color: #f1c882 !important; }
.dev-shell .dev-state.active { background: #142f38 !important; color: #87d8c3 !important; }
.dev-shell .dev-tier { color: #8a7a62 !important; font-size: .7rem !important; letter-spacing: .1em !important; }
.dev-shell .dev-checklist li, .dev-shell .dev-cost-row, .dev-shell .dev-effects li { color: #acc4c4 !important; }
.dev-shell .dev-checklist li.met span:first-child { color: #87d8c3 !important; }
.dev-shell .dev-checklist li.unmet span:first-child { color: #f1c882 !important; }
.dev-shell .dev-cost-row.short { background: #352d21 !important; border: 1px solid #e4c891 !important; }
.dev-shell .dev-action, .dev-shell .dev-confirm-actions .dev-action {
  background: #1f5d55 !important;
  border-color: #1f5d55 !important;
  color: #112b33 !important;
  border-radius: 8px !important;
  min-height: 2.7rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 14px rgba(31,93,85,.18) !important;
}
.dev-shell .dev-action:hover { background: #174a43 !important; }
.dev-shell .dev-cancel { background: #112b33 !important; color: #acc4c4 !important; border-color: #34545d !important; border-radius: 8px !important; }
.dev-shell .dev-message, .dev-shell .dev-reasons { border-left-color: #c3933e !important; color: #f1c882 !important; background: #142f38 !important; }
.dev-shell .dev-legend { color: #acc4c4 !important; border-top-color: #34545d !important; font-size: .78rem !important; }
.dev-shell .dev-legend span::before { border-color: #f1c882 !important; }
.dev-shell .dev-duration { color: #f1c882 !important; font-weight: 600 !important; }
.dev-shell .dev-pinned, .dev-shell .dev-detail button:focus-visible { outline-color: #f1c882 !important; }
@media (max-width: 900px) {
  .dev-shell .dev-node { min-width: 118px !important; min-height: 68px !important; }
  .dev-shell .dev-detail { box-shadow: none; }
}
@media (forced-colors: active) {
  .dev-shell .dev-node, .dev-shell .dev-detail, .dev-shell .dev-views button { border: 1px solid CanvasText !important; }
}

/* Available Now: compact research cards instead of a sparse stage canvas. */
.dev-shell .dev-available-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 1rem !important;
  padding: clamp(1rem, 2.5vw, 1.6rem) !important;
  background: transparent !important;
}
.dev-shell .dev-tech-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: .85rem !important;
  text-align: left !important;
  background: #142f38 !important;
  border: 1px solid #142f38 !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  color: #e8f0eb !important;
  box-shadow: 0 8px 20px rgba(60,49,31,.08) !important;
  cursor: pointer !important;
  min-height: 9rem !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
.dev-shell .dev-tech-card:hover, .dev-shell .dev-tech-card:focus-visible {
  transform: translateY(-3px) !important;
  border-color: #f1c882 !important;
  box-shadow: 0 16px 30px rgba(60,49,31,.15) !important;
  outline: none !important;
}
.dev-shell .dev-tech-card[aria-pressed="true"] {
  border-color: #1f5d55 !important;
  box-shadow: 0 0 0 3px rgba(31,93,85,.18), 0 16px 30px rgba(60,49,31,.12) !important;
}
.dev-shell .dev-tech-card.unaffordable { border-color: #d3ae6e !important; background: #112b33 !important; }
.dev-shell .dev-tech-card__icon {
  flex: 0 0 auto !important;
  width: 2.7rem !important;
  height: 2.7rem !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #173a38 !important;
  color: #87d8c3 !important;
  border: 1px solid #34545d !important;
}
.dev-shell .dev-tech-card.unaffordable .dev-tech-card__icon { background: #352d21 !important; color: #f1c882 !important; border-color: #d3ae6e !important; }
.dev-shell .dev-tech-card__body { display: grid !important; gap: .28rem !important; min-width: 0 !important; }
.dev-shell .dev-tech-card__state { color: #87d8c3 !important; font-size: .64rem !important; font-weight: 800 !important; letter-spacing: .12em !important; text-transform: uppercase !important; }
.dev-shell .dev-tech-card.unaffordable .dev-tech-card__state { color: #f1c882 !important; }
.dev-shell .dev-tech-card strong { color: #e8f0eb !important; font-size: 1rem !important; line-height: 1.25 !important; }
.dev-shell .dev-tech-card small { color: #acc4c4 !important; font-size: .8rem !important; line-height: 1.45 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dev-shell .dev-tech-card__cost { color: #f1c882 !important; font-size: .76rem !important; font-weight: 700 !important; }
.dev-shell .dev-tech-card__need { color: #f1c882 !important; font-size: .74rem !important; font-weight: 600 !important; }
.dev-shell .dev-tech-card.available .dev-tech-card__need { color: #87d8c3 !important; }
.dev-shell .dev-cost-row {
  background: #112b33 !important;
  border: 1px solid #34545d !important;
  border-radius: 8px !important;
  color: #e8f0eb !important;
}
.dev-shell .dev-cost-row.short { background: #352d21 !important; border-color: #34545d !important; }
.dev-shell .dev-cost-row small { color: #acc4c4 !important; }
.dev-shell .dev-cost-row.short small { color: #f1c882 !important; }
.dev-shell .dev-cost-row svg { color: #1f5d55 !important; }
.dev-shell .dev-detail { background: #142f38 !important; }
.dev-shell .dev-detail .dev-tier { color: #f1c882 !important; }
.dev-shell .dev-message { background: #112b33 !important; color: #acc4c4 !important; border: 1px solid #34545d !important; border-left: 3px solid #f1c882 !important; border-radius: 8px !important; padding: .55rem .75rem !important; }
@media (max-width: 700px) {
  .dev-shell .dev-available-grid { grid-template-columns: 1fr !important; padding: .8rem !important; }
  .dev-shell .dev-tech-card { min-height: 0 !important; }
}

/* Radial research constellation (2026-11-07) — original branch-coloured skill wheel. */
.dev-shell .dev-research-branches {
  display: flex !important;
  gap: .4rem !important;
  overflow-x: auto !important;
  padding: .65rem clamp(.75rem, 2.5vw, 2rem) !important;
  background: #112b33 !important;
  border-bottom: 1px solid #34545d !important;
  scrollbar-width: thin;
}
.dev-shell .dev-research-branches[hidden] { display: none !important; }
.dev-shell .dev-research-branch {
  flex: 0 0 auto; min-height: 2.35rem; padding: .35rem .7rem; border: 1px solid #34545d; border-radius: 999px;
  background: #112b33; color: #acc4c4; font-size: .72rem; font-weight: 700; cursor: pointer;
}
.dev-shell .dev-research-branch span { margin-left: .35rem; color: #f1c882; font-variant-numeric: tabular-nums; }
.dev-shell .dev-research-branch[aria-pressed="true"] { background: #1f5d55; border-color: #5f9d92; color: #e8f0eb; }
.dev-shell .dev-research-branch[aria-pressed="true"] span { color: #ffe3ae; }
.dev-shell .dev-scroll { background: radial-gradient(circle at 50% 50%, #112b33 0, #0c2028 55%, #0c2028 100%) !important; }
.dev-shell .dev-radial {
  position: relative; width: 1320px; height: 1320px; max-width: none; margin: 0 auto;
  background: radial-gradient(circle at 50% 50%, rgba(20,48,56,.94) 0 12%, rgba(38,72,82,.55) 12.2% 36%, transparent 36.2%), radial-gradient(rgba(74,91,80,.10) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  border-radius: 50%;
}
.dev-shell .dev-radial-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dev-shell .dev-radial-edges path { fill: none; stroke: #a8b5a9; stroke-width: 2.4; opacity: .75; }
.dev-shell .dev-radial-edges path.done { stroke: #f1c882; opacity: .95; }
.dev-shell .dev-radial-center {
  position: absolute; z-index: 3; width: 11.5rem; height: 11.5rem; transform: translate(-50%,-50%);
  display: grid; place-content: center; justify-items: center; gap: .1rem; text-align: center;
  border: 2px solid #f1c882; border-radius: 50%; color: #112b33;
  background: radial-gradient(circle at 40% 30%, #2d7468, #123f3a 70%);
  box-shadow: 0 0 0 10px rgba(31,93,85,.10), 0 16px 36px rgba(40,55,45,.22);
}
.dev-shell .dev-radial-center span { font-size: .58rem; letter-spacing: .16em; font-weight: 800; color: #ffe3ae; }
.dev-shell .dev-radial-center strong { font-family: Georgia, serif; font-size: 2.2rem; line-height: 1; }
.dev-shell .dev-radial-center small { font-size: .64rem; color: #142f38; }
.dev-shell .dev-branch-label {
  position: absolute; z-index: 2; transform: translate(-50%,-50%); padding: .3rem .55rem; border-radius: 999px;
  background: #112b33; border: 1px solid #34545d; color: #f1c882; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.dev-shell .dev-node--radial {
  position: absolute !important; z-index: 4; width: 7.6rem; min-width: 0 !important; min-height: 6.4rem !important;
  transform: translate(-50%,-50%) !important; padding: .45rem .4rem !important; gap: .22rem !important;
  border-radius: 16px !important; background: #142f38 !important;
}
.dev-shell .dev-node--radial .dev-orb { width: 2.8rem !important; height: 2.8rem !important; border-width: 2px !important; }
.dev-shell .dev-node--radial .dev-node-name { font-size: .7rem !important; line-height: 1.15 !important; }
.dev-shell .dev-node--radial[data-branch="Survival"] { --branch: #3f8d63; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Science"] { --branch: #2e8497; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Industry"] { --branch: #b36b2d; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Commerce"] { --branch: #a17d25; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Military"] { --branch: #a94b43; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Administration"] { --branch: #526f9d; --branch-soft: #173a38; }
.dev-shell .dev-node--radial[data-branch="Governance"] { --branch: #76559b; --branch-soft: #173a38; }
.dev-shell .dev-node--radial .dev-orb { background: var(--branch-soft, #112b33) !important; border-color: var(--branch, #4a9182) !important; color: var(--branch, #87d8c3) !important; }
.dev-shell .dev-node--radial.available { border-color: var(--branch, #4a9182) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--branch, #4a9182) 16%, transparent), 0 10px 22px rgba(60,49,31,.12) !important; }
.dev-shell .dev-node--radial.available .dev-orb { box-shadow: 0 0 0 6px color-mix(in srgb, var(--branch, #4a9182) 12%, transparent); }
.dev-shell .dev-node--radial.unaffordable { border-color: #d3ae6e !important; }
.dev-shell .dev-node--radial.locked { opacity: .48 !important; filter: grayscale(.35); }
.dev-shell .dev-node--radial.complete { opacity: .9; }
@media (max-width: 768px) {
  .dev-shell .dev-research-branches { padding: .5rem .65rem !important; }
  .dev-shell .dev-research-branch { min-height: 2.5rem; font-size: .68rem; }
  .dev-shell .dev-radial { transform-origin: top left; }
}

/* Radial constellation refinement — icon-first nodes, labels only on focus/selection. */
.dev-shell .dev-graph { background: transparent !important; }
.dev-shell .dev-scroll { background: #0c2028 !important; }
.dev-shell .dev-node--radial {
  width: 3.55rem !important; height: 3.55rem !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 50% !important;
}
.dev-shell .dev-node--radial .dev-orb {
  width: 3.55rem !important; height: 3.55rem !important; border: 2px solid var(--branch, #4a9182) !important; border-radius: 50% !important;
  background: var(--branch-soft, #112b33) !important; color: var(--branch, #87d8c3) !important;
  box-shadow: 0 5px 12px rgba(60,49,31,.20), inset 0 0 0 4px rgba(31,63,72,.55) !important;
}
.dev-shell .dev-node--radial .dev-orb small {
  position: absolute; right: -.25rem; bottom: -.25rem; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #142f38; border: 1px solid var(--branch, #4a9182); color: var(--branch, #87d8c3); font-size: .54rem; font-weight: 800;
}
.dev-shell .dev-node--radial .dev-node-name {
  position: absolute; top: calc(100% + .3rem); left: 50%; transform: translateX(-50%);
  display: none; width: max-content; max-width: 9rem; padding: .18rem .4rem; border-radius: 5px;
  background: #112b33; border: 1px solid #34545d; color: #e8f0eb; font-size: .64rem; line-height: 1.2;
  box-shadow: 0 4px 10px rgba(60,49,31,.16); white-space: normal; text-align: center; z-index: 10;
}
.dev-shell .dev-node--radial:hover .dev-node-name,
.dev-shell .dev-node--radial:focus-visible .dev-node-name,
.dev-shell .dev-node--radial[aria-pressed="true"] .dev-node-name { display: block; }
.dev-shell .dev-node--radial:hover, .dev-shell .dev-node--radial:focus-visible { transform: translate(-50%,-50%) scale(1.08) !important; z-index: 12; }
.dev-shell .dev-node--radial.available .dev-orb { box-shadow: 0 0 0 6px color-mix(in srgb, var(--branch, #4a9182) 20%, transparent), 0 6px 16px rgba(60,49,31,.22) !important; }
.dev-shell .dev-node--radial.locked { opacity: .5 !important; filter: grayscale(.4); }
.dev-shell .dev-node--radial.locked .dev-node-name { display: none; }
.dev-shell .dev-node--radial.complete .dev-orb::after { content: ""; position: absolute; inset: -4px; border: 2px solid #f1c882; border-radius: 50%; }
.dev-shell .dev-branch-label { font-size: .58rem !important; padding: .22rem .45rem !important; background: rgba(13,32,40,.92) !important; }
@media (max-width: 768px) {
  .dev-shell .dev-node--radial, .dev-shell .dev-node--radial .dev-orb { width: 3.1rem !important; height: 3.1rem !important; }
}

.dev-shell .dev-node--radial .dev-orb { position: relative !important; display: grid; place-items: center; }

.dev-shell .dev-radial { background-color: #0c2028 !important; background-image: radial-gradient(rgba(74,91,80,.12) 1px, transparent 1px) !important; background-size: 26px 26px !important; }

/* Mobile research directory: readable cards instead of a panned radial map. */
.dev-shell .dev-research-list {
  display: grid !important; grid-template-columns: 1fr !important; gap: .7rem !important; padding: .8rem !important; background: #0c2028 !important;
}
.dev-shell .dev-research-card { width: 100% !important; min-height: 0 !important; }
.dev-shell .dev-research-card .dev-tech-card__state { letter-spacing: .08em !important; }
@media (max-width: 768px) {
  .dev-shell .dev-heading { padding: .9rem 1rem !important; }
  .dev-shell .dev-heading h2 { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
  .dev-shell .dev-heading p:last-child { font-size: .82rem !important; }
  .dev-shell .dev-total { padding: .45rem .65rem !important; font-size: .78rem !important; }
  .dev-shell .dev-tabs { padding: .35rem .5rem !important; }
  .dev-shell .dev-views { padding: .45rem .5rem !important; }
}

.dev-shell .dev-radial-edges { background: transparent !important; border: 0 !important; }
.dev-shell .dev-radial .dev-radial-edges { background-image: none !important; }

.dev-shell .dev-research-card[data-branch="Survival"] { --branch: #3f8d63; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Science"] { --branch: #2e8497; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Industry"] { --branch: #b36b2d; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Commerce"] { --branch: #a17d25; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Military"] { --branch: #a94b43; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Administration"] { --branch: #526f9d; --branch-soft: #173a38; }
.dev-shell .dev-research-card[data-branch="Governance"] { --branch: #76559b; --branch-soft: #173a38; }
.dev-shell .dev-research-card .dev-tech-card__icon { background: var(--branch-soft, #173a38) !important; color: var(--branch, #87d8c3) !important; border-color: var(--branch, #34545d) !important; }
.dev-shell .dev-research-card { border-left: 4px solid var(--branch, #6aa597) !important; }

/* Development uses the same paper, sage and ink as the game header. */
.game-shell .dev-shell { background: var(--rf-stone) !important; color: var(--rf-ink) !important; border-color: var(--rf-line) !important; }
.game-shell .dev-shell :is(.dev-workspace,.dev-scroll,.dev-legend,.dev-operations) {
  background: var(--rf-stone) !important;
  color: var(--rf-ink) !important;
  border-color: var(--rf-line) !important;
}
.game-shell .dev-shell .dev-scroll { max-height: none !important; min-height: 0; overflow: visible; }
.game-shell .dev-shell .dev-stage-group { padding: .8rem clamp(.75rem, 2vw, 1.5rem); }
.game-shell .dev-shell .dev-stage-group h3 { margin: .25rem 0 .65rem; font-size: 1rem; color: var(--rf-ink); }
.game-shell .dev-shell .dev-available-grid {
  padding: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
  gap: .65rem !important;
}
.game-shell .dev-shell :is(.dev-tech-card,.dev-detail,.dev-cost-row,.dev-message) {
  background: var(--rf-paper) !important;
  border-color: var(--rf-line) !important;
  color: var(--rf-ink) !important;
}
.game-shell .dev-shell .dev-tech-card { min-height: 6rem !important; box-shadow: none !important; border-radius: 8px !important; }
.game-shell .dev-shell .dev-detail { min-height: 0 !important; scroll-margin-top: calc(var(--game-header-height, 80px) + 1rem); }
.game-shell .dev-shell :is(.dev-tech-card strong,.dev-tech-card small,.dev-detail h3,.dev-detail p,.dev-detail h4,.dev-detail li,.dev-cost-row small,.dev-legend span) {
  color: var(--rf-ink) !important;
}
.game-shell .dev-shell :is(.dev-tech-card__icon,.dev-detail-icon,.dev-state) {
  background: var(--rf-sage) !important;
  border-color: var(--rf-line) !important;
  color: var(--rf-teal) !important;
}
.game-shell .dev-shell :is(.dev-tech-card__state,.dev-detail .eyebrow,.dev-detail .dev-tier,.dev-operations summary) { color: var(--rf-teal) !important; }
.game-shell .dev-shell .dev-tech-card:is(.locked,.unaffordable) .dev-tech-card__state { color: #85501e !important; }
.game-shell .dev-shell .dev-tech-card:is([aria-pressed="true"],:focus-visible) { outline: 2px solid var(--rf-teal) !important; outline-offset: 2px; }

.game-shell .dev-shell :is(.dev-heading,.dev-tabs,.dev-views,.dev-toolbar,.dev-total,.dev-toolbar button,.dev-views button) {
  background: var(--rf-paper) !important;
  color: var(--rf-ink) !important;
  border-color: var(--rf-line) !important;
}
.game-shell .dev-shell :is(.dev-heading h2,.dev-heading p,.dev-toolbar p,.dev-tabs button) {
  color: var(--rf-ink) !important;
}
.game-shell .dev-shell :is(.dev-heading h2 em,.dev-heading .eyebrow) { color: #85501e !important; }
.game-shell .dev-shell :is(.dev-tabs button[aria-pressed="true"],.dev-views button[aria-selected="true"]) {
  background: var(--rf-sage) !important;
  color: var(--rf-ink) !important;
  box-shadow: inset 0 -2px var(--rf-teal);
}
.game-shell .dev-shell .dev-view-count {
  background: var(--rf-sage) !important;
  color: var(--rf-ink) !important;
}
/* Technology artwork gets room to read, including locked discoveries. */
.game-shell .dev-shell .dev-tech-card:has(.waz-research-art){display:grid!important;grid-template-columns:80px minmax(0,1fr);gap:14px!important;min-height:128px!important;padding:16px!important;background:radial-gradient(ellipse at left,#31526655,transparent 70%),#102737!important;border:1px solid #486778!important;border-radius:12px!important;color:#e7edf1!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art) .dev-tech-card__icon{display:grid!important;place-items:center;width:80px!important;height:86px!important;flex:0 0 80px!important;background:transparent!important;border:0!important;border-radius:0!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art) strong{color:#f1e3c5!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art) small{color:#bfd3de!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art).locked{opacity:1!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art).locked .waz-research-art{filter:saturate(.55) drop-shadow(0 3px 5px #0006)}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art).active{border-color:#ad966b!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art)[aria-pressed=true]{border-color:#e2c489!important;outline:2px solid #d3bb7f!important;outline-offset:2px!important}.game-shell .dev-shell .dev-detail-icon:has(.waz-research-art){display:grid;place-items:center;width:100%!important;height:166px!important;border:0!important;border-radius:14px!important;background:radial-gradient(ellipse,#31566b88,transparent 70%)!important}.dev-detail-icon .waz-research-art{width:144px;height:144px}.dev-tech-card__icon .waz-research-art{width:76px;height:76px}
@media(max-width:600px){.game-shell .dev-shell .dev-tech-card:has(.waz-research-art){grid-template-columns:64px minmax(0,1fr);padding:12px!important;gap:12px!important}.game-shell .dev-shell .dev-tech-card:has(.waz-research-art) .dev-tech-card__icon{width:64px!important;height:72px!important}.dev-tech-card__icon .waz-research-art{width:64px;height:64px}}
.game-shell .dev-shell .dev-detail-icon .waz-research-art{width:144px!important;height:144px!important;border:0!important;background:transparent!important}.game-shell .dev-shell .dev-available-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))!important}

/* Development command: compact illustrated header and specialty selectors. */
body.game-shell .dev-shell .dev-heading{padding:22px 26px!important;min-height:140px;background:linear-gradient(90deg,#0a2235f5,#102a3b9c),url('/art/factions/eclipse_order.png') center 46%/cover!important;border:0!important;border-radius:14px 14px 0 0!important}
body.game-shell .dev-shell .dev-heading h2{font-family:inherit;font-size:clamp(25px,3vw,36px)!important;font-weight:650;line-height:1.2;margin:8px 0!important}
body.game-shell .dev-shell .dev-heading .eyebrow{font-size:10px!important;color:#e2c794!important;letter-spacing:.12em!important}
body.game-shell .dev-shell .dev-heading p:last-child{font-size:13px!important;color:#c1d9e5!important;margin:6px 0!important}
body.game-shell .dev-shell .dev-total{position:relative;overflow:hidden;min-width:140px;background:#102a3bdb!important;border-color:#7a8b87!important;padding:15px 18px 20px!important;font-size:13px!important;text-align:center}
.dev-total:after{content:'';position:absolute;bottom:0;left:0;width:var(--dev-progress,0%);height:5px;background:linear-gradient(90deg,#87c4b8,#e5c48c)}
body.game-shell .dev-shell .dev-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px!important;padding:14px!important;border:0!important;background:#0a2030!important}
body.game-shell .dev-shell .dev-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:66px;padding:12px!important;border:1px solid #37596e!important;border-radius:10px!important;background:linear-gradient(130deg,#19394d,#102939)!important;color:#c2d9e6!important;font-size:12px!important}
body.game-shell .dev-shell .dev-tabs button[aria-pressed=true]{background:linear-gradient(130deg,#344d4e,#173447)!important;border-color:#c3aa79!important;box-shadow:none;color:#ffe4b3!important}
body.game-shell .dev-shell .dev-views{background:#0a2030!important;border:0!important;padding:0 14px 14px!important;gap:7px!important}
body.game-shell .dev-shell .dev-views button{padding:7px 12px!important;font-size:11px!important;min-height:40px;border-radius:7px!important;background:#153448!important;color:#bad2df!important;border-color:#385d74!important}
body.game-shell .dev-shell .dev-views button[aria-selected=true]{background:#305252!important;border-color:#8faaa2!important;color:#f0e1bd!important;box-shadow:none}
body.game-shell .dev-shell .dev-toolbar{border:0!important;padding:0 16px 12px!important;background:#0a2030!important}.dev-shell .dev-toolbar p{font-size:11px!important}
body.game-shell .dev-shell .dev-message{font-size:11px!important;line-height:1.5;margin:0 14px 12px!important;padding:8px 12px!important;border-radius:7px!important}
body.game-shell .dev-shell .dev-stage-group{margin:0 14px 18px;border:0;border-radius:12px;padding:14px!important;background:#102a3b!important}
body.game-shell .dev-shell .dev-stage-group h3{font-family:inherit;font-size:12px!important;font-weight:600;margin:0 0 14px!important;color:#cfbea0!important}
body.game-shell .dev-shell .dev-workspace{padding-top:4px;grid-template-columns:minmax(0,1fr) 320px}
body.game-shell .dev-shell .dev-detail{margin-right:14px;border:1px solid #446277!important;border-radius:12px;padding:18px!important;top:calc(var(--game-header-height,80px) + 12px)}
body.game-shell .dev-shell .dev-detail h3{font-family:inherit;font-size:23px!important;font-weight:650}
body.game-shell .dev-shell .dev-detail p{font-size:12px!important}
.dev-workspace.is-empty{grid-template-columns:1fr!important}.dev-empty-branch{padding:40px;text-align:center;color:#bfd8e5}.dev-empty-branch h3{font-size:18px}.dev-empty-branch p{font-size:13px}
body.game-shell .dev-shell .dev-legend{font-size:10px!important;gap:14px;padding:12px 18px}.dev-shell .dev-detail[hidden]{display:none!important}
@media(max-width:850px){body.game-shell .dev-shell .dev-workspace{grid-template-columns:1fr}body.game-shell .dev-shell .dev-detail{margin:0 14px 14px}body.game-shell .dev-shell .dev-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap}body.game-shell .dev-shell .dev-tabs button{flex:0 0 135px;min-height:60px}body.game-shell .dev-shell .dev-heading{padding:18px!important;gap:10px}body.game-shell .dev-shell .dev-total{padding:10px 12px 16px!important;min-width:130px}body.game-shell .dev-shell .dev-toolbar{flex-direction:row;align-items:center}}
