:root {
  color-scheme: light;
  --bg-0: #f8fafc;
  --bg-1: #f2f5fa;
  --bg-2: #e9eef6;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(246, 248, 252, 0.92);
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --text: #0b1220;
  --text-soft: #475569;
  --brand: #c6a26a;
  --brand-soft: #8d6d43;
  --good: #0f766e;
  --warn: #b45309;
  --risk: #b4233a;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text) !important;
  background:
    radial-gradient(1000px 520px at 90% -10%, rgba(198, 162, 106, 0.18), transparent 68%),
    radial-gradient(820px 520px at 8% 6%, rgba(214, 163, 179, 0.14), transparent 72%),
    radial-gradient(1000px 520px at 52% 118%, rgba(188, 167, 255, 0.12), transparent 66%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2)) !important;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
}

html {
  overflow-y: scroll !important;
}

/* Keep internal dashboards calm and readable: no looping animations. */
body.du-surface *,
body.du-surface *::before,
body.du-surface *::after {
  animation: none !important;
}

body::before {
  opacity: 0.04 !important;
  background-size: 52px 52px !important;
}

.bg {
  display: none !important;
}

.page-shell,
.shell {
  width: min(1740px, 96vw) !important;
  gap: 12px !important;
}

.dashboard,
.main,
.content,
.quick {
  gap: 12px !important;
}

.card,
.panel,
.kpi,
.topbar,
.top,
.hero,
.footer,
.foot,
.control-panel,
.control-block,
.table-panel,
.feed-panel,
.side {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: none !important;
}

.topbar,
.top,
.hero,
.footer,
.foot {
  border-color: rgba(198, 162, 106, 0.42) !important;
  background:
    radial-gradient(620px 140px at 12% 0%, rgba(198, 162, 106, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.92)) !important;
}

.topbar,
.top,
.hero,
.footer,
.kpi,
.panel,
.table-panel,
.feed-panel {
  padding: 14px !important;
}

.brand h1,
.topbar h2,
.top h2,
.hero h3,
.panel h3,
.table-panel h3,
.feed-panel h3 {
  color: var(--text) !important;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text) !important;
}

.topbar p,
.top p,
.hero p,
.panel p,
.kpi span,
.feed p,
.link-list span,
.scenario-list li,
.scenario-list li span,
.city-insight p,
.city-services li,
.city-services li span,
.metric span,
.micro,
.ey,
label,
td {
  color: var(--text-soft) !important;
}

.kpi strong,
.metric strong,
.meta strong,
.city-kpis strong,
.city-mini strong {
  color: var(--text) !important;
}

.btn,
a.btn,
button.btn,
.open {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--text) !important;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:hover,
a.btn:hover,
button.btn:hover,
.open:hover {
  border-color: var(--line-strong) !important;
  background: rgba(241, 245, 249, 0.92) !important;
  transform: none !important;
}

.btn.primary,
.btn.p {
  border-color: rgba(198, 162, 106, 0.55) !important;
  background: linear-gradient(140deg, #c6a26a, #d6a3b3) !important;
  color: #1b140a !important;
}

.pill,
.chip,
.badge,
.state,
.tag,
.domain {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--text) !important;
}

.state.good {
  border-color: rgba(15, 118, 110, 0.22) !important;
  background: rgba(15, 118, 110, 0.1) !important;
  color: #0f766e !important;
}

.state.warn {
  border-color: rgba(180, 83, 9, 0.24) !important;
  background: rgba(180, 83, 9, 0.1) !important;
  color: #b45309 !important;
}

.state.risk {
  border-color: rgba(180, 35, 58, 0.22) !important;
  background: rgba(180, 35, 58, 0.1) !important;
  color: #b4233a !important;
}

.clock {
  border-color: var(--line-strong) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--text) !important;
}

.switch {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.block,
.box,
.templates {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.tbl {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.templates small {
  color: var(--text-soft) !important;
}

.table-wrap {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

table {
  color: var(--text) !important;
}

th {
  color: rgba(15, 23, 42, 0.72) !important;
  background: rgba(15, 23, 42, 0.06);
}

th,
td {
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

tbody tr:nth-child(even) {
  background: rgba(198, 162, 106, 0.06);
}

tbody tr:hover {
  background: rgba(198, 162, 106, 0.12) !important;
}

.feed li,
.link-list li,
.meta,
.metric,
.city-kpis article,
.city-mini article,
.stats article,
.mini-list li {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.group h3 {
  color: var(--brand-soft) !important;
}

.links a,
.quick a {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--text) !important;
  transform: none !important;
}

.links a:hover,
.quick a:hover {
  border-color: var(--line-strong) !important;
  background: rgba(241, 245, 249, 0.92) !important;
  transform: none !important;
}

.links a small,
.quick a span {
  color: var(--text-soft) !important;
}

input,
select,
textarea {
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--text) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(198, 162, 106, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(198, 162, 106, 0.14) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(198, 162, 106, 0.9);
  outline-offset: 2px;
}

.world-sphere {
  border-color: var(--line-strong) !important;
  background:
    radial-gradient(220px 140px at 34% 30%, rgba(15, 23, 42, 0.08), transparent 58%),
    radial-gradient(200px 160px at 70% 68%, rgba(15, 23, 42, 0.06), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.92)) !important;
  box-shadow: inset 0 0 18px rgba(15, 23, 42, 0.08), 0 10px 22px rgba(15, 23, 42, 0.12) !important;
}

.world-grid {
  opacity: 0.22 !important;
}

.dot {
  box-shadow: none !important;
}

.world-viewport,
.city-insight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 252, 0.9)) !important;
}

.continent {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  filter: none !important;
}

.city-node .dot {
  border-color: rgba(15, 23, 42, 0.26) !important;
  box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.06) !important;
}

.city-node em {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

.donut::after {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: var(--line) !important;
}

.tag.i {
  color: var(--text) !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: var(--line) !important;
}

.tag.w {
  color: #b45309 !important;
  background: rgba(180, 83, 9, 0.08) !important;
  border-color: rgba(180, 83, 9, 0.18) !important;
}

.tag.r {
  color: #b4233a !important;
  background: rgba(180, 35, 58, 0.08) !important;
  border-color: rgba(180, 35, 58, 0.18) !important;
}

.card.du-card-enhanced {
  --du-main: var(--brand);
  --du-accent: var(--brand-soft);
  --du-main-rgb: 198,162,106;
  --du-accent-rgb: 225,201,159;
  position: relative;
  overflow: visible;
}

.card.du-card-enhanced::before,
.card.du-card-enhanced::after,
.du-bot-lane,
.du-bot,
.du-signal-line,
.du-robot-banner {
  display: none !important;
  content: none !important;
}

.du-head-wrap {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
}

.du-head-wrap .du-block-head {
  margin: 0;
}

.du-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--du-main);
  border-radius: 10px;
  background:
    radial-gradient(520px 120px at 0 0, rgba(var(--du-main-rgb), 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.92));
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.du-block-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.du-block-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(var(--du-main-rgb), 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.du-block-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--du-main);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.du-block-copy {
  min-width: 0;
}

.du-block-title {
  display: block;
  color: var(--text);
  font: 700 0.72rem/1.2 "Oxanium", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.du-block-meta {
  display: block;
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 0.66rem;
  line-height: 1.28;
}

.du-block-tag {
  border: 1px solid rgba(var(--du-main-rgb), 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  font: 600 0.58rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.78);
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.du-block-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tiny robot avatar per block (premium, low-noise). */
.du-robot-chip {
  width: 34px;
  height: 34px;
  display: inline-block;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(var(--du-main-rgb), 0.18);
  background:
    radial-gradient(120px 46px at 30% 20%, rgba(var(--du-main-rgb), 0.22), transparent 58%),
    linear-gradient(180deg, rgba(var(--du-accent-rgb), 0.12), transparent 52%),
    rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(var(--du-main-rgb), 0.08);
  overflow: hidden;
}

.du-robot-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--du-accent-rgb), 0.18), transparent);
  transform: translateX(-140%);
  transition: transform 420ms ease;
}

.card.du-card-enhanced:hover .du-robot-chip::after {
  transform: translateX(140%);
}

.du-robot-chip .du-bot-head,
.du-robot-chip .du-bot-eye,
.du-robot-chip .du-bot-body,
.du-robot-chip .du-bot-core {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.du-robot-chip .du-bot-head {
  top: 6px;
  width: 18px;
  height: 10px;
  border-radius: 6px;
  border: 1px solid var(--du-main);
  background: rgba(255, 255, 255, 0.88);
}

.du-robot-chip .du-bot-eye {
  top: 10px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--du-accent);
  box-shadow: 0 0 0 6px rgba(var(--du-main-rgb), 0.1);
}

.du-robot-chip .du-bot-body {
  bottom: 6px;
  width: 22px;
  height: 16px;
  border-radius: 7px;
  border: 1px solid var(--du-main);
  background: rgba(255, 255, 255, 0.88);
}

.du-robot-chip .du-bot-core {
  bottom: 8px;
  opacity: 0.9;
}

.du-robot-chip .du-bot-core svg {
  width: 11px;
  height: 11px;
  stroke: var(--du-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.du-block-head + h1,
.du-block-head + h2,
.du-block-head + h3,
.du-block-head + h4,
.du-block-head + h5,
.du-block-head + h6 {
  margin-top: 2px !important;
}

.card.du-card-enhanced h1,
.card.du-card-enhanced h2,
.card.du-card-enhanced h3 {
  color: var(--text) !important;
}

.card.du-topic-security .du-block-head {
  border-left-color: #a0797f;
}

.card.du-topic-finance .du-block-head {
  border-left-color: #b29b72;
}

.card.du-topic-data .du-block-head {
  border-left-color: #9e8c6c;
}

.card.du-topic-ai .du-block-head {
  border-left-color: #b89e79;
}

.card.du-topic-operations .du-block-head,
.card.du-topic-robot .du-block-head,
.card.du-topic-management .du-block-head {
  border-left-color: #c6a26a;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1200px) {
  body {
    overflow: auto !important;
  }

  .shell {
    height: auto !important;
  }
}

@media (max-width: 980px) {
  .page-shell,
  .shell {
    width: min(98vw, 1600px) !important;
  }

  .du-block-head {
    padding: 8px 9px;
    margin-bottom: 8px;
  }

  .du-block-title {
    font-size: 0.66rem;
  }

  .du-block-meta {
    font-size: 0.62rem;
  }

  .du-block-tag {
    font-size: 0.55rem;
    padding: 3px 6px;
  }
}

/* Hub layout stability */
.du-hub .shell {
  height: auto !important;
  min-height: 0 !important;
  align-items: start;
}

.du-hub .main {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
}

.du-hub .content {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  flex: 0 0 auto;
  min-height: auto !important;
  align-items: start;
}

.du-hub .content > * {
  min-width: 0 !important;
}

.du-hub .table-panel,
.du-hub .feed-panel {
  min-height: 0 !important;
  min-width: 0 !important;
}

/* Dashboard Hub (dashboard-hub.html) - light skin overrides */
body.du-hub .hint,
body.du-hub .chipbtn,
body.du-hub .toggle,
body.du-hub .opts,
body.du-hub .pinned,
body.du-hub .pin-row a {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--text) !important;
}

body.du-hub .opts > summary,
body.du-hub .opts[open] > summary {
  color: var(--text) !important;
}

body.du-hub .toggle span {
  color: var(--text-soft) !important;
}

body.du-hub .pin-row a small {
  color: var(--text-soft) !important;
}

body.du-hub .fav {
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--brand-soft) !important;
}

body.du-hub .fav.on {
  color: rgba(141, 109, 67, 0.98) !important;
  border-color: rgba(198, 162, 106, 0.65) !important;
  background: rgba(198, 162, 106, 0.14) !important;
}

body.du-hub .chipbtn:hover,
body.du-hub .pin-row a:hover {
  border-color: var(--line-strong) !important;
  background: rgba(241, 245, 249, 0.92) !important;
}

body.du-hub .chipbtn[aria-pressed="true"] {
  border-color: rgba(198, 162, 106, 0.55) !important;
  background: rgba(198, 162, 106, 0.14) !important;
}

body.du-hub .pinned h3 {
  color: var(--brand-soft) !important;
}

body.du-hub .kbd {
  border: 1px solid var(--line) !important;
  border-bottom-color: var(--line-strong) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--text-soft) !important;
}

body.du-hub .cmdk-backdrop {
  background: rgba(15, 23, 42, 0.55) !important;
}

body.du-hub .cmdk-panel {
  border-color: var(--line) !important;
  background:
    radial-gradient(720px 220px at 0 0, rgba(198, 162, 106, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.92)) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22) !important;
}

body.du-hub .cmdk-top {
  border-bottom-color: var(--line) !important;
}

body.du-hub .cmdk-top input {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--text) !important;
}

body.du-hub .cmdk-hint {
  border-bottom-color: var(--line) !important;
  color: var(--text-soft) !important;
}

body.du-hub .cmdk-item {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.du-hub .cmdk-item[aria-selected="true"] {
  border-color: rgba(198, 162, 106, 0.65) !important;
  background: rgba(198, 162, 106, 0.12) !important;
}

body.du-hub .cmdk-item strong {
  color: var(--text) !important;
}

body.du-hub .cmdk-item small {
  color: var(--text-soft) !important;
}

/* Only expand rows when generated block headers actually exist */
.table-panel.card.du-card-enhanced:has(> .du-block-head),
.feed-panel.card.du-card-enhanced:has(> .du-block-head) {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.quick.card.du-card-enhanced:has(> .du-block-head) > .du-block-head {
  grid-column: 1 / -1;
}

@media (max-width: 1450px) {
  .du-hub .content {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
}

/* Global navigation (all dashboard pages) */
.du-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 10px 0;
}

.du-nav-inner {
  width: min(1740px, 96vw);
  margin: 0 auto;
  padding: 10px 12px !important;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.du-nav-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  color: var(--text) !important;
}

.du-nav-mark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(198, 162, 106, 0.18);
}

.du-nav-word {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.du-nav-word strong {
  display: block;
  font: 800 0.74rem/1 "Oxanium", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
}

.du-nav-word small {
  display: block;
  font: 500 0.62rem/1.1 "JetBrains Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.du-nav-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.du-nav-kicker {
  color: var(--brand-soft);
  font: 600 0.62rem/1.1 "JetBrains Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.du-nav-title {
  color: var(--text) !important;
  font: 800 1.02rem/1.1 "Oxanium", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.du-nav-desc {
  color: var(--text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.du-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.du-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.78) !important;
}

.du-switch span {
  color: var(--text-soft);
  font: 600 0.6rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.du-switch select {
  min-width: 240px;
  padding: 6px 8px;
  font: 600 0.72rem/1.2 "JetBrains Mono", "Consolas", monospace;
}

.du-kbd {
  border: 1px solid var(--line) !important;
  border-bottom-color: var(--line-strong) !important;
  border-radius: 8px;
  padding: 3px 6px;
  color: var(--text-soft) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  font: 700 0.6rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .du-nav-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .du-nav-actions {
    justify-content: flex-start;
  }
  .du-switch {
    width: 100%;
  }
  .du-switch select {
    min-width: 0;
    width: 100%;
  }
  .du-nav-desc {
    display: none;
  }
}

/* Global quick switch palette */
.du-cmdk {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.du-cmdk.on {
  display: block;
}

.du-cmdk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.du-cmdk-panel {
  position: relative;
  width: min(900px, 94vw);
  margin: 9vh auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(720px 220px at 0 0, rgba(198, 162, 106, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.92));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.du-cmdk-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.du-cmdk-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 10px 11px;
  font: 600 0.82rem/1 "JetBrains Mono", "Consolas", monospace;
  outline: 0;
}

.du-cmdk-input:focus {
  border-color: rgba(198, 162, 106, 0.6);
  box-shadow: 0 0 0 3px rgba(198, 162, 106, 0.14);
}

.du-cmdk-hint {
  padding: 8px 12px;
  color: var(--text-soft);
  font: 500 0.66rem/1 "JetBrains Mono", "Consolas", monospace;
  border-bottom: 1px solid var(--line);
}

.du-cmdk-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: min(62vh, 560px);
  overflow: auto;
  display: grid;
  gap: 8px;
}

.du-cmdk-empty {
  border: 1px dashed rgba(198, 162, 106, 0.28);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-soft);
  font: 500 0.8rem/1.3 "Manrope", sans-serif;
}

.du-cmdk-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.du-cmdk-item[aria-selected="true"] {
  border-color: rgba(198, 162, 106, 0.65);
  background: rgba(198, 162, 106, 0.12);
}

.du-cmdk-copy strong {
  display: block;
  font: 800 0.95rem/1.1 "Oxanium", "Segoe UI", sans-serif;
  color: var(--text);
}

.du-cmdk-copy small {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font: 500 0.68rem/1.2 "JetBrains Mono", "Consolas", monospace;
}

.du-cmdk-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.du-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font: 700 0.6rem/1 "JetBrains Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.74);
  background: rgba(15, 23, 42, 0.04);
}

.du-fav {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-soft);
  padding: 7px 9px;
  cursor: pointer;
  font: 800 0.78rem/1 "JetBrains Mono", "Consolas", monospace;
}

.du-fav.on {
  color: rgba(141, 109, 67, 0.98);
  border-color: rgba(198, 162, 106, 0.65);
  background: rgba(198, 162, 106, 0.14);
}

/* Sitemap (sitemap.html) */
body.du-sitemap section {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

body.du-sitemap li {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.du-sitemap a {
  color: var(--brand-soft) !important;
}

body.du-sitemap a:hover {
  color: var(--brand) !important;
}

body.du-sitemap span {
  color: var(--text-soft) !important;
}

/* Control center primitives (staffing / brain / employee pages) */
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.cc-actions .cc-action-group {
  flex: 1 1 260px;
  min-width: min(320px, 100%);
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.cc-actions .cc-action-label {
  font: 800 0.62rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cc-actions .cc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-actions .cc-action-row > * {
  flex: 1 1 160px;
}

.cc-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-strip .cc-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cc-context .cc-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.cc-chip strong {
  font: 800 0.62rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cc-chip span {
  font: 700 0.84rem/1.1 "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-wrap: anywhere;
}

.cc-strip .cc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.82);
}

.cc-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}

.cc-toggle label {
  margin: 0;
  font: 800 0.62rem/1 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.cc-subtle {
  color: var(--text-soft);
  font: 700 0.64rem/1.2 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

details.cc-disclosure {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 9px 10px;
}

details.cc-disclosure > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  font: 800 0.68rem/1.15 "JetBrains Mono", "Consolas", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

details.cc-disclosure > summary::-webkit-details-marker {
  display: none;
}

details.cc-disclosure > summary::after {
  content: "\25BE";
  color: var(--text-soft);
  transition: transform 140ms ease;
  transform: rotate(0deg);
}

details.cc-disclosure[open] > summary::after {
  transform: rotate(180deg);
}

.cc-disclosure-body {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

button[data-busy="true"] {
  cursor: progress !important;
  opacity: 0.78;
}

.cc-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
}

.cc-enterprise-shell {
  width: min(1840px, 94vw) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.cc-enterprise-sidebar {
  position: sticky !important;
  top: 16px !important;
  display: grid !important;
  gap: 12px !important;
  align-content: start !important;
  padding: 16px !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
}

.cc-enterprise-main {
  display: grid !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.cc-enterprise-hero {
  padding: 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 440px) !important;
  gap: 20px !important;
  align-items: start !important;
}

.cc-enterprise-copy,
.cc-enterprise-side,
.cc-enterprise-side-panel,
.cc-enterprise-panel,
.cc-enterprise-panel-stack,
.cc-enterprise-support-grid,
.cc-enterprise-focus-grid,
.cc-enterprise-status-grid {
  display: grid !important;
  gap: 12px !important;
}

.cc-enterprise-copy {
  align-content: start !important;
}

.cc-enterprise-focus-grid,
.cc-enterprise-status-grid,
.cc-enterprise-support-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

.cc-enterprise-panel,
.cc-enterprise-panel-stack,
.cc-enterprise-focus-card,
.cc-enterprise-kpi,
.cc-enterprise-status-card,
.cc-enterprise-support-card,
.cc-enterprise-subnote {
  min-width: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

.cc-enterprise-copy p,
.cc-enterprise-panel p,
.cc-enterprise-panel-head p,
.cc-enterprise-note {
  color: var(--text-soft) !important;
  line-height: 1.6 !important;
}

.cc-enterprise-copy h2,
.cc-enterprise-panel h3,
.cc-enterprise-panel-head h3 {
  margin: 0 !important;
  color: var(--text) !important;
}

.cc-enterprise-actions,
.cc-enterprise-nav-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.cc-enterprise-actions > *,
.cc-enterprise-nav-grid > * {
  flex: 1 1 180px !important;
}

.cc-enterprise-subnote,
.cc-enterprise-focus-card,
.cc-enterprise-kpi,
.cc-enterprise-status-card,
.cc-enterprise-support-card,
.cc-enterprise-panel {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  padding: 14px !important;
}

.cc-enterprise-live-head,
.cc-enterprise-panel-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.cc-enterprise-focus-card span,
.cc-enterprise-kpi span,
.cc-enterprise-status-card span,
.cc-enterprise-support-card span {
  display: block !important;
  font: 700 11px/1.2 "JetBrains Mono", "Consolas", monospace !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--text-soft) !important;
}

.cc-enterprise-focus-card strong,
.cc-enterprise-kpi strong,
.cc-enterprise-status-card strong,
.cc-enterprise-support-card strong {
  display: block !important;
  margin-top: 8px !important;
  font: 700 1.12rem/1.15 "Oxanium", "Sora", sans-serif !important;
  color: var(--text) !important;
  overflow-wrap: anywhere !important;
}

.cc-enterprise-focus-card p,
.cc-enterprise-status-card p,
.cc-enterprise-support-card p {
  margin-top: 6px !important;
  color: var(--text-soft) !important;
  line-height: 1.5 !important;
}

.cc-enterprise-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.cc-enterprise-command-grid,
.cc-enterprise-data-grid,
.cc-enterprise-runtime-grid {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.cc-enterprise-command-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr) !important;
  align-items: start !important;
}

.cc-enterprise-command-grid > :first-child {
  grid-column: 1 / -1 !important;
}

.cc-enterprise-data-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.cc-enterprise-runtime-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
}

.cc-enterprise-panel-stack {
  align-content: start !important;
}

.cc-enterprise-table-wrap {
  min-width: 0 !important;
  overflow: auto !important;
}

.cc-enterprise-table-wrap table {
  min-width: 760px !important;
}

.cc-enterprise-sidebar .brand {
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--line) !important;
}

.cc-enterprise-sidebar .micro,
.cc-enterprise-main .micro {
  color: var(--text-soft) !important;
}

.cc-enterprise-sidebar .grid,
.cc-enterprise-sidebar .btns,
.cc-enterprise-sidebar .actions {
  display: grid !important;
  gap: 8px !important;
}

.cc-enterprise-sidebar .btns {
  grid-template-columns: 1fr 1fr !important;
}

.cc-enterprise-sidebar .btns > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cc-enterprise-feed {
  max-height: 320px !important;
}

.cc-enterprise-chip-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 8px !important;
}

.cc-enterprise-chip-grid .chip {
  min-height: 100% !important;
}

tbody tr[data-job-id],
tbody tr[data-candidate-id],
tbody tr[data-mission-id],
tbody tr[data-employee-id],
tbody tr[data-team-id],
tbody tr[data-task-id] {
  cursor: pointer;
}

tbody tr[data-task-id] {
  cursor: pointer;
}

tbody tr.cc-selected {
  background: rgba(198, 162, 106, 0.16) !important;
}

tbody tr.cc-selected:hover {
  background: rgba(198, 162, 106, 0.2) !important;
}

tbody tr.cc-selected td {
  border-bottom-color: rgba(198, 162, 106, 0.22) !important;
}

tbody tr.cc-selected td:first-child {
  box-shadow: inset 3px 0 0 rgba(198, 162, 106, 0.78);
}

@media (max-width: 1320px) {
  .cc-enterprise-shell {
    grid-template-columns: 1fr !important;
  }

  .cc-enterprise-sidebar {
    position: static !important;
    max-height: none !important;
  }

  .cc-enterprise-hero {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1180px) {
  .cc-enterprise-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cc-enterprise-command-grid,
  .cc-enterprise-data-grid,
  .cc-enterprise-runtime-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .cc-enterprise-shell {
    width: min(100%, 98vw) !important;
    gap: 12px !important;
  }

  .cc-enterprise-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .cc-enterprise-actions > *,
  .cc-enterprise-nav-grid > * {
    flex-basis: 100% !important;
  }

  .cc-enterprise-sidebar .grid,
  .cc-enterprise-sidebar .btns {
    grid-template-columns: 1fr !important;
  }
}
