/* v0.33.59 - Planetary Forces dashboard rebuild from zero. */
.ground-dashboard-v5 {
  --gd-bg: rgba(4, 15, 25, .97);
  --gd-bg-soft: rgba(8, 26, 40, .9);
  --gd-panel: rgba(7, 24, 37, .94);
  --gd-panel-2: rgba(8, 30, 46, .9);
  --gd-border: rgba(106, 188, 228, .18);
  --gd-border-strong: rgba(93, 211, 255, .46);
  --gd-cyan: #58d7ff;
  --gd-cyan-soft: #9bddf4;
  --gd-text: #edf7fb;
  --gd-muted: #8ea8b8;
  --gd-good: #63e4a7;
  --gd-warn: #e7c36d;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 0 14px;
}
.ground-dashboard-v5 .ground-command-header,
.ground-dashboard-v5 .ground-tabbar,
.ground-dashboard-v5 .ground-overview-command {
  display: none !important;
}
.ground-dashboard-v5 .ground-mobile-switcher {
  display: none !important;
}
.ground-dashboard-header {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  background: #07131f;
}
.ground-dashboard-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 13, 22, .98) 0%, rgba(3, 13, 22, .93) 42%, rgba(3, 13, 22, .4) 72%, rgba(3, 13, 22, .72) 100%),
    linear-gradient(180deg, transparent, rgba(2, 10, 17, .5));
}
.ground-dashboard-header-art {
  position: absolute;
  inset: 0;
  left: 36%;
  opacity: .9;
}
.ground-dashboard-header-art .ground-command-art {
  height: 100%;
  min-height: 126px;
}
.ground-dashboard-header-art .ground-command-picture,
.ground-dashboard-header-art .ground-command-picture img {
  width: 100%;
  height: 100%;
}
.ground-dashboard-header-art .ground-command-picture img {
  object-fit: cover;
  object-position: center 44%;
}
.ground-dashboard-header-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 60%);
  padding: 22px 24px 20px;
}
.ground-dashboard-header-copy h1 {
  margin: 4px 0 5px;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  line-height: 1.03;
  letter-spacing: -.025em;
}
.ground-dashboard-header-copy p {
  margin: 0;
  color: var(--gd-cyan-soft);
  font-size: .87rem;
}
.ground-dashboard-header-status {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 1px;
  border: 1px solid rgba(112, 198, 235, .14);
  background: rgba(3, 14, 23, .82);
  backdrop-filter: blur(7px);
}
.ground-dashboard-header-status > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 138px;
  padding: 10px 12px;
  border-right: 1px solid rgba(112, 198, 235, .11);
}
.ground-dashboard-header-status > span:last-child {
  border-right: 0;
}
.ground-dashboard-header-status svg {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  align-self: center;
  color: var(--gd-cyan);
  opacity: .82;
}
.ground-dashboard-header-status small {
  color: var(--gd-muted);
  font-size: .66rem;
}
.ground-dashboard-header-status strong {
  color: var(--gd-text);
  font-size: 1.05rem;
  line-height: 1.05;
}
.ground-facility-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.ground-facility-selector-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  height: 88px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  background: linear-gradient(180deg, rgba(8, 30, 46, .96), rgba(5, 20, 32, .96));
  color: var(--gd-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.ground-facility-selector-card:hover {
  border-color: rgba(88, 215, 255, .55);
  background: linear-gradient(180deg, rgba(10, 39, 58, .98), rgba(6, 24, 37, .98));
}
.ground-facility-selector-card.active {
  border-color: var(--gd-cyan);
  box-shadow: inset 0 -2px 0 var(--gd-cyan), 0 0 0 1px rgba(88, 215, 255, .08);
  background: linear-gradient(180deg, rgba(9, 44, 65, .98), rgba(5, 25, 39, .98));
}
.ground-facility-selector-card.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gd-cyan);
}
.ground-facility-selector-art {
  position: relative;
  width: 84px;
  height: 88px;
  overflow: hidden;
  border-right: 1px solid rgba(112, 198, 235, .12);
}
.ground-facility-selector-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 35%, rgba(4, 16, 26, .58));
}
.ground-facility-selector-art .ground-facility-art.compact {
  width: 100%;
  height: 100%;
}
.ground-facility-selector-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ground-facility-selector-copy {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
}
.ground-facility-selector-copy > span {
  color: var(--gd-cyan-soft);
}
.ground-facility-selector-copy svg {
  width: 22px;
  height: 22px;
}
.ground-facility-selector-copy div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.ground-facility-selector-copy strong {
  overflow: hidden;
  font-size: .91rem;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ground-facility-selector-copy small {
  overflow: hidden;
  color: var(--gd-muted);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ground-facility-selector-card > em {
  position: absolute;
  right: 9px;
  bottom: 6px;
  color: var(--gd-muted);
  font-size: .62rem;
  font-style: normal;
  letter-spacing: .03em;
}
.ground-facility-selector-card.active > em {
  color: var(--gd-cyan);
}
.ground-dashboard-workspace-v5 {
  display: grid !important;
  grid-template-columns: minmax(245px, .72fr) minmax(430px, 1.35fr) minmax(270px, .82fr) minmax(250px, .78fr) !important;
  grid-template-areas:
    "facility production queue garrison"
    "summary summary summary summary" !important;
  gap: 10px !important;
  min-width: 0;
  align-items: stretch;
}
.ground-dashboard-workspace-v5 > .ground-build-row {
  grid-area: facility !important;
}
.ground-dashboard-workspace-v5 > .ground-lower-left {
  grid-area: production !important;
}
.ground-dashboard-workspace-v5 > .ground-operations-row {
  display: contents !important;
}
.ground-dashboard-workspace-v5 > .ground-operations-row > .ground-production-rail {
  grid-area: queue !important;
}
.ground-dashboard-workspace-v5 > .ground-operations-row > .ground-garrison-panel {
  grid-area: garrison !important;
}
.ground-dashboard-workspace-v5 > .ground-dashboard-summary {
  grid-area: summary !important;
}
.ground-dashboard-panel {
  min-width: 0;
  border: 1px solid var(--gd-border);
  background: linear-gradient(180deg, var(--gd-panel), rgba(4, 17, 28, .98));
}
.ground-dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(112, 198, 235, .14);
  background: rgba(11, 34, 49, .56);
  color: #c9e6f2;
}
.ground-dashboard-panel-head > div {
  display: grid;
  gap: 1px;
}
.ground-dashboard-panel-head span,
.ground-dashboard-panel-head > div > span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .055em;
}
.ground-dashboard-panel-head small {
  color: var(--gd-muted);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: 0;
}
.ground-dashboard-panel-head strong {
  color: var(--gd-cyan);
  font-size: .7rem;
}
.ground-dashboard-v5 .ground-status {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.1);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ground-dashboard-v5 .ground-status.good {
  color: var(--gd-good);
  border-color: rgba(99, 228, 167, .25);
  background: rgba(38, 121, 83, .12);
}
.ground-dashboard-v5 .ground-status.warning {
  color: var(--gd-warn);
  border-color: rgba(231, 195, 109, .25);
  background: rgba(125, 92, 28, .12);
}
.ground-dashboard-v5 .ground-status.neutral {
  color: #a8bfcc;
  background: rgba(105, 130, 145, .08);
}
.ground-facility-console {
  display: flex;
  flex-direction: column;
  min-height: 485px;
}
.ground-facility-console-art {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 198, 235, .12);
}
.ground-facility-console-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(4, 16, 26, .78));
}
.ground-facility-console-art .ground-facility-art.hero {
  width: 100%;
  height: 150px;
  min-height: 150px;
}
.ground-facility-console-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ground-facility-console-level {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(88, 215, 255, .22);
  background: rgba(3, 15, 25, .86);
}
.ground-facility-console-level small {
  margin-right: 3px;
  color: var(--gd-muted);
  font-size: .55rem;
}
.ground-facility-console-level strong {
  color: var(--gd-cyan);
  font-size: 1.25rem;
}
.ground-facility-console-level span {
  color: var(--gd-muted);
  font-size: .72rem;
}
.ground-facility-console-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}
.ground-facility-console-title h2 {
  margin: 1px 0 0;
  font-size: 1.2rem;
  line-height: 1.05;
}
.ground-dashboard-v5 .ref-eyebrow {
  color: #70cce9;
  font-size: .58rem;
  letter-spacing: .12em;
}
.ground-dashboard-v5 .ground-level-progress {
  height: 4px;
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.ground-dashboard-v5 .ground-level-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #39bcea, #64e1ff);
}
.ground-facility-console-body > p {
  margin: 0;
  color: var(--gd-muted);
  font-size: .72rem;
  line-height: 1.42;
}
.ground-console-bonuses {
  display: grid;
  gap: 4px;
}
.ground-console-bonuses span {
  display: flex;
  gap: 6px;
  padding: 5px 7px;
  border-left: 2px solid rgba(99, 228, 167, .48);
  background: rgba(255,255,255,.018);
  color: #bdd1dc;
  font-size: .67rem;
}
.ground-console-bonuses i {
  color: var(--gd-good);
  font-style: normal;
  font-weight: 700;
}
.ground-console-upgrade {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ground-console-upgrade > small {
  color: var(--gd-muted);
  font-size: .58rem;
  letter-spacing: .05em;
}
.ground-dashboard-v5 .ground-facility-cost,
.ground-dashboard-v5 .ground-unit-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ground-dashboard-v5 .ground-facility-cost > span,
.ground-dashboard-v5 .ground-unit-cost > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid rgba(112, 198, 235, .1);
  background: rgba(255,255,255,.025);
  color: #c4d8e3;
}
.ground-dashboard-v5 .ground-facility-cost small,
.ground-dashboard-v5 .ground-unit-cost small {
  color: var(--gd-muted);
  font-size: .55rem;
}
.ground-dashboard-v5 .ground-facility-cost strong,
.ground-dashboard-v5 .ground-unit-cost strong {
  font-size: .65rem;
}
.ground-dashboard-v5 .ground-button,
.ground-dashboard-v5 .ground-unit-build {
  min-height: 34px;
  border: 1px solid rgba(75, 186, 232, .42);
  background: linear-gradient(180deg, rgba(15, 88, 124, .86), rgba(7, 55, 83, .92));
  color: #ecf9ff;
  font-size: .67rem;
  font-weight: 700;
  cursor: pointer;
}
.ground-dashboard-v5 .ground-button:hover,
.ground-dashboard-v5 .ground-unit-build:hover:not(:disabled) {
  border-color: var(--gd-cyan);
  background: linear-gradient(180deg, rgba(19, 112, 155, .92), rgba(8, 67, 99, .96));
}
.ground-dashboard-v5 .ground-button.secondary,
.ground-dashboard-v5 .ground-unit-build.locked {
  background: rgba(8, 31, 46, .74);
  border-color: rgba(112, 198, 235, .18);
}
.ground-dashboard-v5 .ground-button:disabled,
.ground-dashboard-v5 .ground-unit-build:disabled {
  opacity: .42;
  cursor: default;
}
.ground-production-catalog {
  min-height: 485px;
  padding: 0 !important;
}
.ground-production-unit-list {
  display: grid;
  align-content: start;
}
.ground-production-unit-row {
  display: grid !important;
  grid-template-columns: 82px minmax(0, 1fr) 104px !important;
  align-items: center;
  min-height: 116px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(112, 198, 235, .1) !important;
  background: transparent !important;
}
.ground-production-unit-row:last-child {
  border-bottom: 0 !important;
}
.ground-production-unit-row.locked {
  opacity: .62;
}
.ground-production-unit-art {
  width: 82px;
  height: 116px;
  overflow: hidden;
  border-right: 1px solid rgba(112, 198, 235, .1);
}
.ground-production-unit-art .ground-unit-art.compact {
  width: 100%;
  height: 100%;
  border: 0;
}
.ground-production-unit-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ground-production-unit-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 9px 12px;
}
.ground-production-unit-copy > div:first-child {
  display: grid;
  gap: 2px;
}
.ground-production-unit-copy > div:first-child strong {
  font-size: .79rem;
}
.ground-production-unit-copy > div:first-child small,
.ground-production-unit-copy > span {
  overflow: hidden;
  color: var(--gd-muted);
  font-size: .61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ground-production-unit-row > .ground-unit-build {
  width: 94px;
  min-width: 0 !important;
  margin-right: 10px;
}
.ground-production-rail,
.ground-garrison-panel {
  min-height: 485px !important;
  padding: 0 !important;
}
.ground-queue-list,
.ground-garrison-list {
  display: grid;
  align-content: start;
  margin: 0 !important;
}
.ground-queue-row {
  display: grid;
  grid-template-columns: 18px 58px minmax(0, 1fr) 24px;
  align-items: center;
  min-height: 92px;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid rgba(112, 198, 235, .1);
}
.ground-queue-row > b {
  color: var(--gd-cyan);
  font-size: .65rem;
}
.ground-queue-art {
  width: 58px;
  height: 72px;
  overflow: hidden;
  background: #07111a;
}
.ground-queue-art .ground-unit-art.compact,
.ground-queue-art .ground-facility-art.compact {
  width: 100%;
  height: 100%;
  border: 0;
}
.ground-queue-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ground-queue-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.ground-queue-copy strong {
  overflow: hidden;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ground-queue-copy small {
  color: var(--gd-muted);
  font-size: .58rem;
}
.ground-dashboard-v5 .ground-progress {
  height: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}
.ground-dashboard-v5 .ground-progress i {
  display: block;
  height: 100%;
  background: var(--gd-cyan);
}
.ground-dashboard-v5 .ground-icon-button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(112, 198, 235, .12);
  background: rgba(255,255,255,.02);
  color: #99adba;
  cursor: pointer;
}
.ground-dashboard-v5 .ground-icon-button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.ground-production-empty,
.ground-garrison-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 230px !important;
  gap: 7px;
  padding: 18px;
  color: var(--gd-muted);
  text-align: center;
}
.ground-production-empty > span svg,
.ground-garrison-empty > span svg {
  width: 34px;
  height: 34px;
  opacity: .45;
}
.ground-production-empty strong,
.ground-garrison-empty strong {
  color: #b9ccd7;
  font-size: .76rem;
}
.ground-production-empty small,
.ground-garrison-empty small {
  max-width: 220px;
  font-size: .62rem;
  line-height: 1.45;
}
.ground-dashboard-v5 .ground-garrison-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(112, 198, 235, .1);
}
.ground-dashboard-v5 .ground-garrison-row:last-child {
  border-bottom: 0;
}
.ground-dashboard-v5 .ground-garrison-emblem {
  width: 54px;
  height: 58px;
  overflow: hidden;
  border: 0;
}
.ground-dashboard-v5 .ground-garrison-emblem .ground-unit-art.compact {
  width: 100%;
  height: 100%;
  border: 0;
}
.ground-dashboard-v5 .ground-garrison-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ground-dashboard-v5 .ground-garrison-row > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.ground-dashboard-v5 .ground-garrison-row strong {
  overflow: hidden;
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ground-dashboard-v5 .ground-garrison-row small {
  color: var(--gd-muted);
  font-size: .58rem;
}
.ground-dashboard-v5 .ground-garrison-row > span {
  color: #d8edf6;
  font-size: .75rem;
  font-weight: 700;
}
.ground-dashboard-v5 .ground-garrison-row > i {
  display: none;
}
