@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  color-scheme: dark;
  --bg: #101311;
  --panel: #191d19;
  --panel2: #20251f;
  --border: #30372e;
  --text: #f1f2e9;
  --muted: #a0aa9a;
  --gold: #ebbe68;
  --green: #9fca97;
  --red: #f39386;
  --violet: #c3b1eb;
  --font: 'DM Sans', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel2);
  padding: 10px 14px;
  min-height: 40px;
}
button:hover {
  border-color: #788068;
  background: #2a3027;
}
button.primary {
  background: var(--gold);
  color: #241d0f;
  border-color: var(--gold);
  font-weight: 700;
}
button.primary:hover {
  background: #f5ce85;
}
button.ghost {
  background: transparent;
}
button.small {
  font-size: 13px;
  padding: 6px 10px;
  min-height: 32px;
}
button.iconbtn {
  width: 40px;
  padding: 8px;
}
button.danger {
  color: var(--red);
}
a {
  color: var(--gold);
  text-decoration: none;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.smalltext {
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: #141814;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    800 24px 'Manrope',
    sans-serif;
  letter-spacing: -1px;
  padding: 0 12px 26px;
}
.brand .mark {
  color: var(--gold);
  font-size: 32px;
}
.brand sup {
  font: 500 11px var(--font);
  color: var(--gold);
  border: 1px solid #5d4a2a;
  padding: 2px 4px;
  border-radius: 4px;
  letter-spacing: 0;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  margin-bottom: 23px;
  background: #1d221c;
  padding: 11px;
}
.workspace .avatar {
  background: #333927;
  color: var(--gold);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #343b30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.navsection {
  font-size: 11px;
  color: #788472;
  letter-spacing: 1.6px;
  padding: 15px 12px 7px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  color: #a9b1a3;
  padding: 10px 13px;
  margin: 2px 0;
  font-size: 14px;
  min-height: 41px;
}
.nav.active {
  background: #303223;
  color: #f0ca80;
  box-shadow: inset 2px 0 var(--gold);
}
.nav .navicon {
  font-size: 19px;
  display: inline-block;
  width: 21px;
  text-align: center;
}
.count {
  margin-left: auto;
  font-size: 11px;
  background: #343c2f;
  border-radius: 5px;
  padding: 2px 6px;
  color: #cbd3c5;
}
.railbottom {
  margin-top: auto;
  padding-top: 20px;
}
.usage {
  padding: 15px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.bar {
  height: 5px;
  background: #353c31;
  border-radius: 9px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 9px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 19px 7px 0;
}
.mainwrap {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #121612;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.search {
  margin-left: auto;
  text-align: left;
  color: #9ca695;
  background: #1b201a;
  min-width: 240px;
  font-size: 13px;
}
.kbd {
  float: right;
  margin-left: 40px;
  font-size: 11px;
  border: 1px solid #394032;
  padding: 1px 5px;
  border-radius: 4px;
}
.demobadge {
  font-size: 12px;
  color: #c8cebc;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  display: inline-block;
  border-radius: 50%;
}
.main {
  padding: 28px 30px 24px;
  max-width: 1850px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.pagehead p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.stat .value {
  font:
    650 29px 'Manrope',
    sans-serif;
  letter-spacing: -1px;
  margin: 10px 0 6px;
}
.stat .value span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.stat .hint {
  font-size: 12px;
  color: var(--green);
}
.stat .hint.neutral {
  color: var(--muted);
}
.stat .hint.gold {
  color: var(--gold);
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
}
.panelhead {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.panelhead h2 {
  font-size: 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tabs button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 32px;
  padding: 7px 11px;
}
.tabs button.active {
  background: #343b2e;
  color: #f1ebda;
}
.hivecanvas {
  height: 450px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #463317 0, #1c2014 48%, #111710 80%);
}
.hiveart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  z-index: -2;
  filter: saturate(0.85);
}
.hivecanvas:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #141b13, transparent 25%, transparent 75%, #141b1344);
  z-index: -1;
}
.canvasmeta {
  position: absolute;
  top: 17px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #bac4ab;
}
.canvaslegend {
  position: absolute;
  bottom: 17px;
  left: 20px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #c2cabb;
}
.canvascontrols {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #182018e8;
  border: 1px solid #5b653d;
  border-radius: 12px;
  text-align: left;
  padding: 10px 13px;
  min-width: 147px;
  box-shadow: 0 6px 30px #0006;
  backdrop-filter: blur(8px);
}
.node .nodeicon {
  font-size: 21px;
  float: left;
  margin-right: 9px;
}
.node strong {
  display: block;
  font-size: 13px;
}
.node small {
  color: #c6c9b1;
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.node.queen {
  border-color: #d6a84a;
  background: #473719ed;
  min-width: 172px;
  padding: 14px;
}
.node.queen strong {
  color: #ffdda0;
}
.node.review {
  border-color: #8a779e;
}
.node.repair {
  border-color: #aa7263;
}
.node:hover {
  background: #39432d;
  box-shadow: 0 0 30px #dca43e24;
}
.hivecanvas.cinematic .node:not(.queen) {
  background: #182018bc;
  min-width: 130px;
}
.hivecanvas.focus .node:not(.queen):not(.focusnode) {
  opacity: 0.25;
}
.hivecaption {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.sidecol {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brief {
  padding: 19px;
}
.brief .date {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 13px;
}
.brief h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 10px 0;
}
.brief p {
  font-size: 14px;
  color: #bac3b0;
}
.brief .divider {
  margin: 19px 0;
}
.divider {
  height: 1px;
  background: var(--border);
}
.attention {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.attention:last-child {
  border: 0;
  padding-bottom: 0;
}
.attention p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 10px;
}
.gem {
  font-size: 11px;
  border-radius: 5px;
  padding: 4px 7px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #233d3e;
  color: #afe0e8;
}
.gem.Ruby {
  background: #452b31;
  color: #ffb0ba;
}
.gem.Sapphire {
  background: #26334b;
  color: #adcbff;
}
.gem.Emerald {
  background: #263e30;
  color: #b1dbab;
}
.gem.Standard {
  background: #33372f;
  color: #bfc6b7;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  background: #2c3c2c;
  color: #b1d7a7;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.pill.review {
  background: #372e45;
  color: #d0bce8;
}
.pill.failed {
  background: #442e27;
  color: #f1b098;
}
.pill.waiting {
  background: #413b25;
  color: #edd198;
}
.lower {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}
.missionrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 105px 65px;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.missionrow:last-child {
  border: 0;
}
.missionrow:hover {
  background: #242a20;
}
.missionrow strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.missionrow small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.gardenmini {
  padding: 18px 20px;
}
.gardenmini p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 15px;
}
.footerstrip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #87917f;
  font-size: 11px;
  margin-top: 22px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
}
.card .actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card .heroicon {
  height: 78px;
  background: linear-gradient(130deg, #353b28, #1d231c);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filterbar input {
  min-width: 230px;
  flex: 1;
}
.filterbar select {
  width: auto;
  min-width: 130px;
}
input,
textarea,
select {
  background: #111710;
  border: 1px solid #434b3b;
  color: var(--text);
  padding: 11px 12px;
  border-radius: 8px;
  width: 100%;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
label {
  display: block;
  color: #c6ccbf;
  font-size: 14px;
  margin-bottom: 7px;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}
.checklabel {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  line-height: 1.5;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: var(--panel);
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 14px 18px;
  background: #1e241d;
}
td {
  padding: 17px 18px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.clickrow {
  cursor: pointer;
}
.clickrow:hover {
  background: #252d22;
}
.empty {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contentpad {
  padding: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detailitem {
  padding: 15px;
  background: #20261d;
  border-radius: 9px;
}
.detailitem small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 25px;
  border-left: 1px solid #4a523c;
  margin-left: 5px;
  font-size: 14px;
}
.timeline li:before {
  content: '';
  width: 8px;
  height: 8px;
  position: absolute;
  left: -5px;
  top: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.notice {
  background: #35321f;
  border: 1px solid #5c522e;
  color: #e1d2a9;
  border-radius: 10px;
  padding: 14px 17px;
  font-size: 14px;
  line-height: 1.5;
}
.notice.purple {
  background: #30283a;
  border-color: #59476d;
  color: #d4c5e7;
}
.chart {
  display: flex;
  align-items: end;
  height: 180px;
  gap: 16px;
  padding: 20px 8px 0;
}
.chartcol {
  flex: 1;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.chartbar {
  background: linear-gradient(#ddbb78, #6b6c3e);
  min-height: 10px;
  border-radius: 5px 5px 0 0;
}
.scoreline {
  margin: 15px 0;
}
.scoreline .spread {
  font-size: 14px;
}
.settingsnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.settingrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.settingrow p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.settingrow input:not([type='checkbox']),
.settingrow select {
  max-width: 240px;
}
.settingrow:last-child {
  border-bottom: 0;
}
.landing {
  padding: 55px 30px;
  text-align: center;
  min-height: 520px;
  background:
    linear-gradient(#141b1588, #141b15),
    url('hive.png') center/cover;
}
.landing h1 {
  font-size: 48px;
  max-width: 720px;
  margin: 35px auto 20px;
}
.landing p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #c4cdbb;
}
.landing .row {
  justify-content: center;
}
.mobilemenu {
  display: none;
}
dialog {
  border: 1px solid #4d563f;
  border-radius: 18px;
  background: #191f18;
  color: var(--text);
  padding: 0;
  width: min(690px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 30px 120px #0009;
}
dialog::backdrop {
  background: #050a07bb;
  backdrop-filter: blur(5px);
}
.modalhead {
  padding: 22px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #191f18;
  z-index: 5;
}
.modalbody {
  padding: 25px;
}
.modalbody p {
  font-size: 14px;
  color: #bdc7b3;
}
.modalbody .field {
  margin-bottom: 18px;
}
.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.modalbody h3 {
  margin-bottom: 12px;
}
.modalbody .tabs {
  margin-bottom: 20px;
}
.resultbody {
  white-space: pre-wrap;
  background: #121811;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  line-height: 1.8;
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #ebbe68;
  color: #231e13;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 35px #0006;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  max-width: 90vw;
  font-size: 14px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip {
  position: fixed;
  top: -50px;
  z-index: 200;
  background: var(--gold);
  color: #000;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.activityitem {
  padding: 15px 0;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.activityitem p {
  font-size: 13px;
  color: var(--muted);
}
.beehover {
  display: inline-block;
  animation: hoverbee 5s ease-in-out infinite;
}
@keyframes hoverbee {
  50% {
    transform: translateY(-5px) rotate(4deg);
  }
}
body.reduced *,
body.hidden * {
  animation: none !important;
  transition: none !important;
}
.compact .card,
.compact .stat {
  padding: 15px;
}
.compact td {
  padding: 11px 18px;
}
body.light {
  --bg: #f1f3e9;
  --panel: #fff;
  --panel2: #e3e7d9;
  --border: #c7cebb;
  --text: #20281d;
  --muted: #57634c;
  color-scheme: light;
}
body.light .rail,
body.light .topbar {
  background: #e6ebdc;
}
body.light .nav {
  color: #4c5a41;
}
body.light .nav.active {
  color: #544016;
  background: #d7d6b8;
}
body.light .card p {
  color: #57634c;
}
body.light .modalbody p {
  color: #bdc7b3;
}
@media (min-width: 1600px) {
  .hivecanvas {
    height: 530px;
  }
  .dashboard,
  .lower {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .main {
    padding: 32px 40px;
  }
  .topbar {
    padding: 0 40px;
  }
  .stats {
    gap: 20px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 194px 1fr;
  }
  .rail {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    font-size: 21px;
    padding-left: 8px;
  }
  .main {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
    gap: 12px;
  }
  .dashboard,
  .lower {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .hivecanvas {
    height: 430px;
  }
  .node {
    min-width: 125px;
    padding: 9px;
  }
  .node strong {
    font-size: 12px;
  }
  .node small {
    font-size: 11px;
  }
  .search {
    min-width: 180px;
  }
  .kbd {
    margin-left: 15px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .missionrow {
    grid-template-columns: minmax(0, 1fr) 87px 80px;
  }
  .missionrow > :last-child {
    display: none;
  }
  .stat {
    padding: 16px;
  }
  .stat .value {
    font-size: 26px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 80px 1fr;
  }
  .rail {
    padding: 20px 10px;
  }
  .brand {
    padding: 0 10px 20px;
  }
  .brand .brandtext,
  .rail .navlabel,
  .rail .navsection,
  .rail .count,
  .rail .workspace,
  .rail .usage,
  .rail .profile .profiletext {
    display: none;
  }
  .nav {
    justify-content: center;
    padding: 10px;
  }
  .nav .navicon {
    width: auto;
  }
  .profile {
    justify-content: center;
    padding: 15px 0;
  }
  .dashboard,
  .lower {
    grid-template-columns: 1fr;
  }
  .sidecol {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hivecanvas {
    height: 480px;
  }
  .lower > .panel:last-child {
    display: none;
  }
  .topbar .demobadge {
    display: none;
  }
  .stat .value {
    font-size: 25px;
  }
  .node {
    min-width: 150px;
  }
  .missionrow {
    grid-template-columns: minmax(0, 1fr) 110px 100px 65px;
  }
  .missionrow > :last-child {
    display: block;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 230px;
    z-index: 20;
    transform: translateX(-100%);
    transition: 0.2s;
    background: #141814;
    box-shadow: 10px 0 40px #0008;
  }
  .rail.open {
    transform: none;
  }
  .rail.open .brandtext,
  .rail.open .navlabel,
  .rail.open .navsection,
  .rail.open .count,
  .rail.open .workspace {
    display: initial;
  }
  .rail.open .nav {
    justify-content: flex-start;
  }
  .rail.open .workspace {
    display: flex;
  }
  .mobilemenu {
    display: inline-block;
  }
  .topbar {
    height: 63px;
    padding: 0 14px;
    gap: 8px;
  }
  .topbar .breadcrumbs {
    display: none;
  }
  .search {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }
  .kbd {
    display: none;
  }
  .main {
    padding: 20px 14px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 25px;
  }
  .pagehead p {
    font-size: 13px;
    max-width: 230px;
  }
  .pagehead .row button.ghost {
    display: none;
  }
  .pagehead .primary {
    white-space: nowrap;
    font-size: 13px;
    padding: 9px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat .value {
    font-size: 26px;
  }
  .dashboard {
    gap: 14px;
  }
  .panelhead {
    padding: 14px;
    flex-wrap: wrap;
  }
  .hivecanvas {
    height: 390px;
  }
  .node {
    min-width: 113px;
    max-width: 130px;
    padding: 8px;
  }
  .node .nodeicon {
    font-size: 17px;
    margin-right: 4px;
  }
  .node strong {
    font-size: 11px;
  }
  .node small {
    font-size: 10px;
  }
  .node.queen {
    min-width: 145px;
    padding: 10px;
  }
  .canvasmeta {
    font-size: 10px;
    left: 12px;
  }
  .canvaslegend {
    font-size: 10px;
    gap: 8px;
    left: 10px;
  }
  .canvascontrols {
    bottom: 40px;
  }
  .hivecaption {
    font-size: 11px;
    padding: 10px;
  }
  .hivecaption > span:last-child {
    display: none;
  }
  .sidecol {
    grid-template-columns: 1fr;
  }
  .sidecol > .panel:last-child {
    display: none;
  }
  .missionrow {
    padding: 15px;
    grid-template-columns: 1fr 95px;
  }
  .missionrow > :nth-child(3),
  .missionrow > :last-child {
    display: none;
  }
  .cards,
  .twocol,
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .footerstrip {
    flex-wrap: wrap;
    line-height: 1.6;
  }
  .card {
    padding: 18px;
  }
  .modalbody {
    padding: 20px;
  }
  .modalhead {
    padding: 18px 20px;
  }
  .settingrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .settingrow input,
  .settingrow select {
    max-width: none !important;
  }
  .landing {
    padding: 30px 15px;
  }
  .landing h1 {
    font-size: 35px;
  }
  .filterbar input {
    min-width: 100%;
  }
  .filterbar select {
    flex: 1;
  }
  .tabs button {
    font-size: 12px;
    padding: 7px 8px;
  }
  .tablewrap table {
    min-width: 680px;
  }
  .topbar .iconbtn {
    width: 35px;
  }
  .hivecanvas.presentation .node small {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.hiveart {
  animation: hivebreath 24s ease-in-out infinite;
}
.hivecanvas.operational .hiveart,
.hivecanvas.focus .hiveart,
.hivecanvas.presentation .hiveart {
  animation: none;
}
@keyframes hivebreath {
  50% {
    transform: scale(1.04);
  }
}
body.light .detailitem,
body.light .workspace,
body.light .usage,
body.light th {
  background: #e6ebde;
}
body.light input,
body.light select,
body.light textarea {
  background: #fff;
  color: #25301e;
}
body.light .tabs button.active {
  background: #d1d8c3;
  color: #26301e;
}
body.light .clickrow:hover,
body.light .missionrow:hover {
  background: #e2e9d9;
}
body.light .search {
  background: #fff;
  color: #58634d;
}
body.light .breadcrumbs span {
  color: #46513d !important;
}
body.light .brandtext {
  color: #25301e;
}
body.light .node {
  color: #f1f2e9;
}
body.light .hivecaption {
  background: #e4e9db;
}
body.light dialog {
  background: #f1f3e9;
  color: #25301e;
}
body.light .modalhead {
  background: #e6ebde;
}
body.light .modalbody p {
  color: #526047;
}
body.light .resultbody {
  background: #fff;
  color: #25301e;
}
body.light .landing {
  color: #f1f2e9;
}
body.light .notice p {
  color: #e1d2a9;
}
body.light .nav:hover {
  background: #d4ddc9;
}
@media (max-width: 650px) {
  .node[data-action='goconnections'] {
    left: 17% !important;
    top: 57% !important;
  }
  .node[data-action='gohoney'] {
    left: 83% !important;
    top: 57% !important;
  }
  .node.queen {
    top: 42% !important;
  }
  .node[data-action='goconnections'],
  .node[data-action='gohoney'] {
    min-width: 107px;
    max-width: 107px;
  }
  .node[data-action='goconnections'] .nodeicon,
  .node[data-action='gohoney'] .nodeicon {
    display: none;
  }
}
.colony-head {
  margin-bottom: 16px;
}
.colony-head h1 {
  margin-top: 6px;
  font-size: 27px;
}
.colony-world {
  height: calc(100vh - 225px);
  min-height: 560px;
  max-height: 1000px;
  position: relative;
  border: 1px solid #465342;
  border-radius: 18px;
  overflow: hidden;
  background: #172a2c;
  isolation: isolate;
}
.colony-world > canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.colony-world:fullscreen {
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
}
.world-top {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 3;
}
.world-top-actions {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.world-badge {
  padding: 10px 14px;
  background: #132321db;
  border: 1px solid #66765b5c;
  border-radius: 8px;
  color: #e3e8cf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  backdrop-filter: blur(14px);
}
.world-badge .dot {
  margin-right: 8px;
}
.world-badge-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  color: #a9bca7;
  margin-top: 6px;
}
.world-quest {
  position: absolute;
  top: 104px;
  left: 22px;
  max-width: 245px;
  padding: 17px;
  background: #132421c9;
  border: 1px solid #7d956448;
  border-radius: 12px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  z-index: 2;
}
.world-quest strong {
  display: block;
  margin: 9px 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #f4eacb;
}
.world-resources {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #c8d6b8;
}
.world-resources b {
  color: #efc971;
}
.world-dock {
  position: absolute;
  bottom: 43px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px;
  background: #12201fe8;
  border: 1px solid #65715780;
  border-radius: 14px;
  box-shadow: 0 15px 50px #0005;
  backdrop-filter: blur(20px);
  z-index: 4;
}
.world-actions,
.world-playback {
  display: flex;
  gap: 6px;
}
.world-dock button {
  white-space: nowrap;
  font-size: 13px;
  background: #26392a;
  color: #dce6ce;
  border-color: #4f6245;
}
.world-dock button.primary {
  background: #edbf6f;
  color: #2b2316;
}
.world-playback {
  border-left: 1px solid #526347;
  padding-left: 12px;
}
.world-hint {
  position: absolute;
  bottom: 15px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 11px;
  color: #c0cdbc;
  pointer-events: none;
  text-shadow: 0 2px 6px #000;
}
.district-label {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 12px;
  padding: 7px 10px;
  min-height: 32px;
  background: #14231edb;
  border: 1px solid #aac78466;
  border-radius: 7px;
  color: #e8efd5;
  white-space: nowrap;
  box-shadow: 0 4px 20px #0004;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.district-label span {
  color: #f7d282;
}
.district-label:hover {
  border-color: #f5d783;
  background: #3c4a2e;
}
.world-inspector {
  position: absolute;
  right: 20px;
  top: 88px;
  width: 260px;
  background: #122420ee;
  border: 1px solid #7f936b80;
  border-radius: 14px;
  padding: 23px;
  z-index: 5;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px #0005;
  color: #eaf0dd;
}
.world-inspector h2 {
  margin: 15px 0 10px;
  font-size: 25px;
}
.world-inspector p {
  font-size: 14px;
  color: #bdcdb3;
  margin-bottom: 18px;
}
.world-inspector > button:not(.world-close) {
  width: 100%;
  margin-top: 9px;
}
.world-close {
  position: absolute;
  top: 7px;
  right: 7px;
  background: none;
  border: 0;
  font-size: 13px;
  padding: 5px;
  min-height: 25px;
}
.world-detail {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
}
.world-detail span {
  color: #a7b899;
}
.world-detail strong {
  font-size: 14px;
}
.world-tooltip {
  position: absolute;
  background: #111e18ed;
  color: #eedaa8;
  border: 1px solid #b5985677;
  border-radius: 7px;
  padding: 9px;
  font-size: 12px;
  z-index: 8;
  pointer-events: none;
  max-width: 220px;
}
.world-camera {
  position: absolute;
  right: 16px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.world-camera button,
.world-top-actions button {
  background: #142621cf;
  color: #dfead3;
  border-color: #7c90635c;
}
.world-message {
  position: absolute;
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
  background: #f1d398;
  color: #322617;
  box-shadow: 0 6px 35px #0005;
  padding: 12px 18px;
  max-width: 80%;
  width: max-content;
  border-radius: 9px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 6;
}
.world-message.show {
  opacity: 1;
}
.colony-under {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  margin: 16px 2px 23px;
  line-height: 1.6;
}
.colony-under strong {
  font-weight: 500;
  color: #d2d9c8;
}
.colony-missions {
  margin-top: 10px;
}
.worldfallback {
  max-width: 480px;
  text-align: center;
  padding: 80px 20px;
  margin: auto;
  color: #e1e8d8;
}
.worldfallback p {
  margin: 20px 0;
}
.planting > canvas {
  cursor: crosshair !important;
}
.main:has(.colony-world) {
  max-width: none;
}
.colony-world [hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  .world-dock {
    gap: 7px;
  }
  .world-dock button {
    font-size: 12px;
    padding: 9px;
  }
  .world-quest {
    max-width: 210px;
    top: 91px;
    padding: 13px;
  }
  .world-playback {
    padding-left: 7px;
    gap: 4px;
  }
  .world-inspector {
    width: 235px;
  }
  .world-actions {
    gap: 4px;
  }
}
@media (max-width: 800px) {
  .colony-world {
    min-height: 600px;
    height: calc(100vh - 180px);
  }
  .world-dock {
    flex-direction: column;
    gap: 7px;
    bottom: 35px;
  }
  .world-playback {
    border: 0;
    padding: 0;
  }
  .world-quest {
    top: 90px;
    left: 12px;
    max-width: 180px;
    padding: 11px;
  }
  .world-quest .eyebrow {
    font-size: 10px;
    letter-spacing: 0.7px;
  }
  .world-quest strong {
    font-size: 13px;
  }
  .world-resources {
    gap: 9px;
    font-size: 10px;
  }
  .world-inspector {
    right: 12px;
    top: 170px;
    max-width: 230px;
  }
  .colony-under {
    flex-direction: column;
    gap: 5px;
  }
  .district-label {
    font-size: 10px;
    padding: 5px 7px;
    min-height: 27px;
  }
  .world-top {
    left: 12px;
    right: 12px;
  }
  .world-hint {
    font-size: 10px;
    bottom: 10px;
  }
  .world-camera {
    bottom: 160px;
  }
  .world-message {
    bottom: 145px;
  }
}
@media (max-width: 480px) {
  .colony-head h1 {
    font-size: 23px;
  }
  .colony-head .eyebrow {
    font-size: 10px;
  }
  .colony-head .ghost {
    display: none;
  }
  .colony-world {
    border-radius: 12px;
    min-height: 610px;
  }
  .world-dock {
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
    padding: 8px;
  }
  .world-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
  }
  .world-actions button {
    font-size: 12px;
    min-height: 38px;
  }
  .world-playback button {
    min-height: 30px;
  }
  .world-inspector {
    top: 190px;
    width: 210px;
    padding: 18px;
  }
  .world-quest {
    pointer-events: none;
    max-width: 160px;
  }
  .world-camera {
    bottom: 205px;
  }
  .world-message {
    bottom: 180px;
  }
  .world-badge {
    font-size: 10px;
    padding: 8px 10px;
  }
  .world-top-actions button {
    padding: 5px 8px;
    font-size: 11px;
  }
  .world-hint {
    font-size: 9px;
  }
  .district-label {
    max-width: 150px;
  }
}
.world-tooltip {
  width: 270px;
  max-width: 270px;
  padding: 14px 16px;
  background: #11221af5;
  box-shadow: 0 8px 30px #0007;
}
.world-tooltip strong {
  display: block;
  font-size: 15px;
  color: #f7e4af;
  margin-bottom: 6px;
}
.hover-slow {
  display: block;
  font-size: 11px;
  color: #a9dfa5;
  margin-bottom: 11px;
}
.hover-task {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #f3efda;
  margin-bottom: 8px;
}
.hover-state {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #bfcfb2;
}
.world-tooltip small {
  display: block;
  font-size: 10px;
  color: #8eaa87;
  margin-top: 12px;
}
.colony-world:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      circle at 50% 35%,
      transparent 34%,
      rgba(6, 13, 12, 0.09) 68%,
      rgba(3, 8, 7, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 226, 168, 0.08),
      transparent 24%,
      transparent 72%,
      rgba(4, 12, 12, 0.2)
    );
  box-shadow: inset 0 0 90px rgba(3, 8, 7, 0.48);
}
.colony-world > canvas {
  filter: saturate(1.07) contrast(1.035);
}
.world-badge {
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.055);
}
.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #d9c38e;
  font:
    600 16px 'Manrope',
    'DM Sans',
    sans-serif;
  letter-spacing: 0.04em;
  background: radial-gradient(circle at 50% 42%, #253229, #101311 58%);
}
.world-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f0d89d;
  background: radial-gradient(circle at 50% 44%, #30483f, #142423 58%, #0c1514);
  font:
    600 16px 'Manrope',
    'DM Sans',
    sans-serif;
  letter-spacing: 0.03em;
  z-index: 1;
}
.world-loading small {
  color: #aebfb1;
  font:
    400 12px 'DM Sans',
    sans-serif;
  letter-spacing: 0;
}
.world-inspector,
.world-quest,
.world-dock {
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.045);
}

/* AgentBee 2.3 — five-world / underworld / design-approval controls */
.world23-commandbar {
  position: absolute;
  z-index: 12;
  left: 20px;
  right: 20px;
  top: 66px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  pointer-events: none;
}
.world23-commandbar > div,
.world23-commandbar button {
  pointer-events: auto;
}
.world23-worlds,
.world23-layers {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.world23-pill,
.world23-season {
  border: 1px solid rgba(255, 222, 150, 0.28) !important;
  background: rgba(10, 18, 17, 0.72) !important;
  color: #f4e6c3 !important;
  backdrop-filter: blur(11px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.world23-pill.active,
.world23-season.active {
  border-color: #f1c46d !important;
  background: rgba(92, 67, 28, 0.86) !important;
  color: #fff3ce !important;
  box-shadow:
    0 0 0 1px rgba(255, 211, 111, 0.16),
    0 0 24px rgba(236, 181, 74, 0.14);
}
.approval-pill {
  border-color: rgba(148, 203, 255, 0.48) !important;
}
.world23-seasonbar {
  position: absolute;
  z-index: 12;
  left: 20px;
  right: 20px;
  top: 110px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.world23-seasonbar > * {
  pointer-events: auto;
}
.world23-seasonbar > span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7cdae;
  background: #111a18b8;
  padding: 6px 8px;
  border-radius: 8px;
}
.world23-season {
  padding: 6px 9px !important;
  font-size: 11px !important;
}
.global-season {
  margin-left: 4px;
}
.world23-status {
  position: absolute;
  z-index: 11;
  top: 151px;
  left: 20px;
  max-width: min(570px, calc(100% - 40px));
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(9, 14, 13, 0.66);
  border: 1px solid rgba(255, 230, 178, 0.16);
  backdrop-filter: blur(9px);
  padding: 8px 11px;
  border-radius: 10px;
  color: #f7e9c6;
  font-size: 11px;
  pointer-events: none;
}
.world23-status strong {
  white-space: nowrap;
}
.world23-status span {
  color: #bfc7bd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.world23-discovery-on .world23-pill[data-world23-discovery] {
  border-color: #75ddff !important;
  box-shadow: 0 0 22px rgba(76, 203, 255, 0.35);
}
.world23-underworld .world-badge .dot {
  background: #ffd56c;
  box-shadow: 0 0 15px #ffbe3d;
}
.world23-underworld .world23-status {
  border-color: rgba(255, 190, 76, 0.36);
}
.design-card {
  padding: 14px;
  border: 1px solid rgba(255, 224, 164, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  margin: 10px 0;
}
.design-card strong {
  display: block;
  color: #ffe3a2;
}
.design-card small {
  color: #9faaa2;
}
.design-signatures {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.design-signatures span {
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 7px;
  color: #cdd4cf;
}
.biology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.biology-grid > div {
  padding: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 220, 153, 0.12);
}
.biology-grid strong {
  display: block;
  color: #ffd889;
}
.biology-grid small {
  color: #aeb8b1;
}
@media (max-width: 900px) {
  .world23-commandbar {
    top: 62px;
    align-items: flex-start;
    flex-direction: column;
  }
  .world23-seasonbar {
    top: 148px;
    overflow-x: auto;
  }
  .world23-status {
    top: 188px;
  }
  .world23-layers {
    max-width: 100%;
  }
  .world23-pill {
    font-size: 10px !important;
    padding: 6px 8px !important;
  }
}

.lifecycle-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 14px;
}
.lifecycle-stats span {
  font-size: 10px;
  color: #b9c3bb;
  padding: 6px 8px;
  border: 1px solid rgba(255, 216, 137, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}
.lifecycle-stats b {
  color: #ffe0a0;
  float: right;
}
.discovery-routes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.discovery-routes span {
  font-size: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(105, 214, 255, 0.28);
  border-radius: 999px;
  color: #b9ecff;
  background: rgba(40, 122, 153, 0.1);
}
.discovery-log {
  display: grid;
  gap: 7px;
  margin: 8px 0 14px;
}
.discovery-log > div {
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid rgba(113, 222, 255, 0.14);
  background: rgba(43, 125, 155, 0.08);
}
.discovery-log strong {
  display: block;
  color: #c8f1ff;
  font-size: 11px;
}
.discovery-log small {
  display: block;
  color: #aeb9b7;
  margin-top: 3px;
  line-height: 1.35;
}

.systemtest-pill {
  border-color: rgba(118, 226, 168, 0.48) !important;
}
.system-gpu {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  margin: 10px 0;
  border-radius: 10px;
  background: rgba(39, 111, 73, 0.12);
  border: 1px solid rgba(109, 220, 160, 0.18);
}
.system-gpu small {
  color: #9fb4a7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.system-gpu strong {
  color: #d8ffe9;
}
.system-gpu span {
  color: #aebbb3;
  font-size: 10px;
  word-break: break-word;
}
.system-checks {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}
.system-check-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}
.system-check-row > span {
  font-weight: 800;
}
.system-check-row.pass > span {
  color: #77e5a8;
}
.system-check-row.pending > span {
  color: #ffd27a;
}
.system-check-row strong {
  display: block;
  font-size: 11px;
  color: #e8eee8;
}
.system-check-row small {
  display: block;
  margin-top: 2px;
  color: #9eaaa3;
  font-size: 10px;
  line-height: 1.3;
}

/* AgentBee 2.4 cinematic transition + depth treatment */
.world-transition {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.42s ease,
    transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
  font:
    700 12px/1.2 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e9ffff;
  text-shadow:
    0 0 22px #a8efff,
    0 2px 10px #001014;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(142, 234, 255, 0.14),
    rgba(18, 40, 54, 0.36) 34%,
    rgba(4, 10, 18, 0.78) 78%
  );
  backdrop-filter: blur(0px) saturate(1.1);
}
.world-transition.show {
  opacity: 1;
  transform: scale(1);
  backdrop-filter: blur(7px) saturate(1.45);
}
.world23-discovery-on .world-badge .dot {
  box-shadow:
    0 0 0 4px rgba(141, 231, 255, 0.12),
    0 0 18px rgba(141, 231, 255, 0.75);
}
.world23-underworld canvas {
  filter: saturate(1.05) contrast(1.025);
}

/* AgentBee 3.7 cinematic lens grade: optical atmosphere only; UI remains above it. */
.colony-world:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      circle at 22% 13%,
      rgba(255, 229, 177, 0.12) 0 1.2%,
      rgba(255, 191, 103, 0.045) 3%,
      transparent 12%
    ),
    radial-gradient(
      ellipse at 51% 50%,
      transparent 48%,
      rgba(4, 8, 8, 0.08) 72%,
      rgba(2, 5, 5, 0.3) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.62;
}
.colony-world.night-world:after {
  background:
    radial-gradient(circle at 74% 17%, rgba(145, 201, 255, 0.085), transparent 11%),
    radial-gradient(
      ellipse at 50% 50%,
      transparent 42%,
      rgba(1, 4, 10, 0.18) 72%,
      rgba(0, 2, 7, 0.46) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.78;
}
.colony-world.night-world > canvas {
  filter: saturate(1.16) contrast(1.055) brightness(0.93);
}
.world23-underworld:after {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 180, 70, 0.12), transparent 22%),
    radial-gradient(
      ellipse at 50% 50%,
      transparent 40%,
      rgba(22, 8, 2, 0.16) 74%,
      rgba(8, 3, 1, 0.42) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.72;
}

/* AgentBee 4.2 FIXED4 — compact cinematic controls. Keep the world, not the chrome, on screen. */
.main:has(.colony-world) {
  padding: 10px 14px 14px;
  max-width: none;
}
.shell:has(.colony-world) {
  grid-template-columns: 74px minmax(0, 1fr);
}
.shell:has(.colony-world) .rail {
  padding: 10px 7px;
  overflow: hidden;
}
.shell:has(.colony-world) .brand {
  justify-content: center;
  padding: 0 0 12px;
}
.shell:has(.colony-world) .brandtext,
.shell:has(.colony-world) .navlabel,
.shell:has(.colony-world) .navsection,
.shell:has(.colony-world) .railbottom .usage,
.shell:has(.colony-world) .profiletext,
.shell:has(.colony-world) .workspace > span:not(.avatar) {
  display: none;
}
.shell:has(.colony-world) .workspace,
.shell:has(.colony-world) .nav {
  justify-content: center;
  padding: 8px;
  margin: 1px 0;
  min-height: 38px;
}
.shell:has(.colony-world) .workspace {
  margin-bottom: 8px;
}
.shell:has(.colony-world) .nav .navicon {
  width: auto;
}
.shell:has(.colony-world) .count {
  position: absolute;
  margin: 0;
  transform: translate(15px, -13px);
  font-size: 8px;
  padding: 1px 4px;
}
.shell:has(.colony-world) .profile {
  justify-content: center;
  padding-top: 8px;
}
.mainwrap:has(.colony-world) .topbar {
  height: 48px;
  padding: 0 14px;
  gap: 10px;
}
.mainwrap:has(.colony-world) .topbar .search {
  min-width: 170px;
  padding: 7px 9px;
  min-height: 32px;
}
.mainwrap:has(.colony-world) .topbar .demobadge {
  display: none;
}
.colony-head {
  margin-bottom: 8px;
}
.colony-head h1 {
  font-size: 22px;
}
.colony-head p {
  display: none;
}
.colony-head .eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
}
.colony-head .row button {
  padding: 6px 9px;
  min-height: 30px;
  font-size: 11px;
}
.colony-world {
  height: calc(100vh - 116px);
  min-height: 640px;
}
.world-top {
  top: 8px;
  left: 10px;
  right: 10px;
}
.world-badge {
  font-size: 10px;
  padding: 6px 9px;
}
.world-badge-sub {
  display: none;
}
.world-top-actions button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10px;
}
.world23-commandbar.compact-world-controls {
  top: 44px;
  left: 10px;
  right: 10px;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  background: rgba(7, 13, 12, 0.46);
  border: 1px solid rgba(255, 224, 166, 0.12);
  border-radius: 10px;
  padding: 5px 6px;
  width: max-content;
  max-width: calc(100% - 20px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.world23-select-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bea1;
  white-space: nowrap;
}
.world23-select {
  width: auto !important;
  min-width: 150px !important;
  min-height: 28px !important;
  padding: 3px 28px 3px 8px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  background: #101916e8 !important;
  border-color: rgba(255, 222, 150, 0.28) !important;
  color: #f5e7c5 !important;
}
.season-select-wrap .world23-select {
  min-width: 92px !important;
}
.compact-layer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.compact-layer-controls > .world23-pill {
  font-size: 10px !important;
  padding: 4px 7px !important;
  min-height: 28px !important;
}
.world23-more {
  position: relative;
  pointer-events: auto;
}
.world23-more summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 222, 150, 0.28);
  background: rgba(10, 18, 17, 0.82);
  color: #f4e6c3;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 10px;
  min-height: 28px;
}
.world23-more summary::-webkit-details-marker {
  display: none;
}
.world23-more > div {
  position: absolute;
  top: 34px;
  right: 0;
  display: grid;
  gap: 5px;
  min-width: 176px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(8, 14, 13, 0.96);
  border: 1px solid rgba(255, 222, 150, 0.2);
  box-shadow: 0 14px 36px #0008;
}
.world23-more > div button {
  font-size: 10px !important;
  padding: 5px 8px !important;
  min-height: 28px !important;
  text-align: left;
}
.world23-seasonbar {
  display: none !important;
}
.world23-status {
  top: 82px;
  left: 10px;
  max-width: min(520px, calc(100% - 20px));
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 9px;
  gap: 7px;
  opacity: 0.88;
}
.world23-status span {
  max-width: 350px;
}
.world-quest {
  top: 112px;
  left: 10px;
  max-width: 240px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(8, 14, 13, 0.58);
}
.world-quest .eyebrow {
  display: none;
}
.world-quest strong {
  font-size: 10px;
}
.world-resources {
  margin-top: 4px;
  gap: 8px;
  font-size: 9px;
}
.world-resources span {
  white-space: nowrap;
}
.world-dock {
  bottom: 18px;
  padding: 5px 6px;
  gap: 5px;
  border-radius: 9px;
  width: max-content;
  max-width: calc(100% - 90px);
}
.world-actions {
  gap: 4px;
}
.world-actions button,
.world-playback button {
  font-size: 10px !important;
  padding: 4px 7px !important;
  min-height: 28px !important;
}
.world-actions button:nth-child(1) {
  font-size: 0 !important;
}
.world-actions button:nth-child(1)::after {
  content: '❋ Plant';
  font-size: 10px;
}
.world-actions button:nth-child(2) {
  font-size: 0 !important;
}
.world-actions button:nth-child(2)::after {
  content: '↗ Scouts';
  font-size: 10px;
}
.world-actions button:nth-child(3) {
  font-size: 0 !important;
}
.world-actions button:nth-child(3)::after {
  content: '🐝 Bee Cam';
  font-size: 10px;
}
.world-actions button:nth-child(4) {
  font-size: 0 !important;
}
.world-actions button:nth-child(4)::after {
  content: '◎ Tour';
  font-size: 10px;
}
.world-playback {
  gap: 3px;
  padding-left: 4px;
}
.world-hint {
  bottom: 3px;
  font-size: 8px;
  opacity: 0.6;
}
.world-camera {
  right: 8px;
  bottom: 58px;
  gap: 3px;
}
.world-camera button {
  min-height: 27px;
  padding: 3px 7px;
}
.colony-under,
.colony-missions {
  display: none;
}
@media (max-width: 1000px) {
  .shell:has(.colony-world) {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .world23-commandbar.compact-world-controls {
    max-width: calc(100% - 12px);
    left: 6px;
    right: 6px;
    overflow: visible;
  }
  .world23-select-wrap > span {
    display: none;
  }
  .world23-select {
    min-width: 126px !important;
  }
  .season-select-wrap .world23-select {
    min-width: 82px !important;
  }
  .compact-layer-controls > .world23-pill {
    font-size: 0 !important;
  }
  .compact-layer-controls > .world23-pill::after {
    font-size: 10px;
  }
  .compact-layer-controls > .world23-pill[data-world23-layer='exterior']::after {
    content: 'Outside';
  }
  .compact-layer-controls > .world23-pill[data-world23-layer='underworld']::after {
    content: 'Hive';
  }
  .compact-layer-controls > .world23-pill[data-world23-discovery]::after {
    content: '✦';
  }
  .world23-status {
    max-width: calc(100% - 12px);
    left: 6px;
  }
  .world-quest {
    display: none;
  }
  .colony-world {
    height: calc(100vh - 102px);
    min-height: 580px;
  }
}
