:root {
  --cc-bg: #0b0d10;
  --cc-bg-2: #141921;
  --cc-bg-3: #202833;
  --cc-panel: rgba(34, 41, 51, 0.9);
  --cc-panel-soft: rgba(255, 255, 255, 0.07);
  --cc-panel-strong: rgba(255, 255, 255, 0.12);
  --cc-line: rgba(255, 255, 255, 0.12);
  --cc-line-strong: rgba(255, 255, 255, 0.22);
  --cc-text: #f5f7fa;
  --cc-text-dark: #111827;
  --cc-muted: #b2bcc8;
  --cc-muted-strong: #d7e0ea;
  --cc-muted-soft: rgba(245, 247, 250, 0.68);
  --cc-accent: #4fd187;
  --cc-accent-soft: rgba(79, 209, 135, 0.16);
  --cc-warning: #f5b84b;
  --cc-error: #f06464;
  --cc-info: #79a7ff;
  --cc-radius-sm: 6px;
  --cc-radius-md: 8px;
  --cc-radius-lg: 12px;
  --cc-radius-xl: 16px;
  --cc-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  --cc-shadow-deep: 0 16px 40px rgba(0, 0, 0, 0.28);
  --cc-focus: 0 0 0 3px rgba(79, 209, 135, 0.28);
  --module-card-min: 270px;
  --system-card-min: 292px;
  --compact-card-min: 252px;
  --status-color: var(--cc-info);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cc-bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  font-family: Arial, system-ui, sans-serif;
  background:
    linear-gradient(145deg, rgba(18, 23, 30, 0.98), rgba(20, 25, 32, 0.98) 45%, rgba(13, 16, 20, 0.98)),
    var(--cc-bg);
  color: var(--cc-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% -8%, rgba(121, 167, 255, 0.22), transparent 42%),
    radial-gradient(ellipse at 94% 0%, rgba(79, 209, 135, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent 24%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 70%);
}

a {
  color: #cfe0ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--cc-focus);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 9px 22px;
  color: var(--cc-text);
  background: rgba(16, 20, 25, 0.86);
  border-bottom: 1px solid var(--cc-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.98), rgba(244, 248, 242, 0.9) 58%, rgba(218, 229, 213, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(255, 255, 255, 0.075),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.brand-mark img {
  position: absolute;
  inset: 1px;
  z-index: 2;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  object-fit: contain;
}

.brand-kicker,
.section-kicker,
.module-area {
  display: block;
  color: var(--cc-muted-strong);
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

header h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
  color: var(--cc-text);
}

.brand-context {
  display: block;
  margin-top: 2px;
  color: var(--cc-muted);
  font-size: 11px;
  line-height: 1.15;
}

header p {
  display: none;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-nav a,
.user-pill {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(245, 247, 250, 0.88);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.app-nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(255, 255, 255, 0.08);
}

.user-pill {
  color: #ffffff;
  background: rgba(121, 167, 255, 0.14);
  border-color: rgba(121, 167, 255, 0.16);
}

.app-main {
  width: min(2380px, 100%);
  margin: 0 auto;
  padding: 10px 14px 20px;
}

.app-footer {
  width: min(2380px, 100%);
  margin: 0 auto;
  padding: 10px 22px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 247, 250, 0.46);
  font-size: 12px;
}

.command-center {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(520px, 3fr) auto;
  gap: 7px;
  align-items: stretch;
  margin-bottom: 8px;
}

.command-title,
.command-metric,
.ops-card,
.panel,
.topbar,
.card,
.alert-item {
  position: relative;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    var(--cc-panel);
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(16px);
}

.command-title {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  border-left: 2px solid var(--status-color);
}

.command-title h2 {
  margin: 0;
  color: var(--cc-text);
  font-size: 17px;
  line-height: 1.05;
}

.command-title span:not(.status-dot) {
  display: block;
  margin-top: 3px;
  color: var(--cc-muted);
  font-size: 12px;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.command-metric {
  min-height: 58px;
  padding: 8px 10px;
  overflow: hidden;
  border-top: 1px solid var(--status-color);
}

.command-metric::after,
.ops-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--status-color), transparent);
  opacity: 0.54;
}

.command-metric span {
  display: block;
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.command-metric strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 950;
  line-height: 0.95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.command-refresh {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.command-refresh button {
  min-width: 0;
  height: auto;
  min-height: 31px;
  align-self: center;
  padding-inline: 12px;
}

.status-ok {
  --status-color: var(--cc-accent);
}

.status-warning {
  --status-color: var(--cc-warning);
}

.status-error,
.status-critical {
  --status-color: var(--cc-error);
}

.status-dot,
.health-dot,
.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 13%, transparent), 0 0 18px color-mix(in srgb, var(--status-color) 50%, transparent);
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
}

.ops-section {
  margin-bottom: 0;
}

.ops-board {
  display: grid;
  gap: 7px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 23px;
  margin: 0 0 5px;
}

.section-heading h2 {
  margin: 0;
  color: rgba(245, 247, 250, 0.9);
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-summary {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 999px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--status-color) 30%, transparent);
  background: color-mix(in srgb, var(--status-color) 11%, transparent);
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ops-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--module-card-min)), 1fr));
  gap: 7px;
}

.ops-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--compact-card-min)), 1fr));
}

.ops-section-systems .ops-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--system-card-min)), 1fr));
}

.ops-card {
  min-width: 0;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  overflow: hidden;
  cursor: grab;
  border-top: 1px solid color-mix(in srgb, var(--status-color) 74%, transparent);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.ops-card:hover {
  transform: translateY(-1px);
  border-color: var(--cc-line-strong);
  box-shadow: var(--cc-shadow-deep);
}

.ops-card.dragging,
.dashboard-card.dragging {
  opacity: 0.62;
  cursor: grabbing;
  transform: scale(0.985);
}

.ops-card-head,
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px;
}

.ops-card h3,
.card h2 {
  margin: 2px 0 0;
  color: var(--cc-text);
  font-size: 14px;
  line-height: 1.18;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: fit-content;
  border-radius: 999px;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--status-color) 32%, transparent);
  background: color-mix(in srgb, var(--status-color) 12%, transparent);
  color: var(--cc-text);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--status-color) 55%, transparent);
}

.ops-message,
.message {
  margin: 3px 0;
  color: rgba(245, 247, 250, 0.82);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.22;
}

.ops-card-body,
.dashboard-card .card-content {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.metric-strip,
.metric-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-pill {
  min-height: 21px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 3px 6px;
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 0;
}

.metric-pill span {
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.18;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-pill strong {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.05;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.signal-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.signal-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--cc-muted-strong);
  font-size: 11.5px;
  line-height: 1.24;
}

.signal-row strong {
  color: var(--cc-text);
}

.ops-status-cause {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 4px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--status-color) 34%, transparent);
  background: color-mix(in srgb, var(--status-color) 14%, transparent);
  color: #fff6df;
  font-size: 11px;
  line-height: 1.1;
}

.ops-status-cause strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  min-width: 0;
}

.ops-card-foot span,
.small {
  color: var(--cc-muted-strong);
  font-size: 11.5px;
  font-weight: 650;
}

.ops-card-foot > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-section-systems .ops-card {
  min-height: 76px;
}

.ops-section-systems .ops-card-body {
  display: none;
}

.ops-section-systems .ops-message {
  min-height: 14px;
  margin-bottom: 0;
}

.button-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  border-radius: 999px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.085);
  color: var(--cc-text);
  font-size: 11.5px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.card-actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.window-button {
  min-height: 26px;
  padding-inline: 7px;
  color: rgba(245, 247, 250, 0.86);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
}

.window-button:not([disabled]) {
  color: #eaf2ff;
  background: rgba(121, 167, 255, 0.13);
  border-color: rgba(121, 167, 255, 0.26);
  cursor: pointer;
}

.window-button:not([disabled]):hover {
  background: rgba(121, 167, 255, 0.2);
  border-color: rgba(121, 167, 255, 0.42);
}

.window-button[disabled] {
  display: none;
}

.button-disabled {
  color: rgba(245, 247, 250, 0.56);
  cursor: default;
}

.project-card {
  cursor: default;
}

.knowledge-card {
  cursor: default;
}

.project-card:hover {
  transform: none;
}

.knowledge-card:hover {
  transform: none;
}

.project-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.project-chip-list span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ops-section-projects .ops-grid {
  grid-template-columns: 1fr;
}

.project-center-topbar strong {
  display: block;
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.08;
}

.project-center-topbar span:last-child {
  display: block;
  margin-top: 3px;
}

.project-overview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.project-center-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(540px, 1.45fr);
  gap: 8px;
  align-items: start;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 7px;
}

.project-tile,
.project-detail-panel,
.project-deploy-note {
  border: 1px solid var(--cc-line);
  border-top: 1px solid var(--project-color, var(--cc-info));
  border-radius: var(--cc-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(34, 41, 51, 0.9);
  box-shadow: var(--cc-shadow);
}

.project-tile {
  width: 100%;
  min-height: 142px;
  display: grid;
  gap: 8px;
  padding: 10px;
  color: var(--cc-text);
  text-align: left;
  cursor: pointer;
}

.project-tile:hover,
.project-tile.active {
  border-color: color-mix(in srgb, var(--project-color, var(--cc-info)) 64%, rgba(255, 255, 255, 0.28));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--project-color, var(--cc-info)) 12%, transparent), rgba(255, 255, 255, 0.045)),
    rgba(39, 47, 58, 0.94);
}

.project-tile-head,
.project-tile-meta,
.project-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.project-tile-head strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.15;
}

.project-tile-current {
  color: rgba(245, 247, 250, 0.86);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.28;
}

.project-tile-version,
.project-tile-next {
  display: block;
  color: var(--cc-muted-strong);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.project-tile-version {
  color: rgba(255, 255, 255, 0.82);
}

.project-tile-meta {
  align-items: center;
  color: var(--cc-muted-strong);
  font-size: 10.5px;
  font-weight: 650;
}

.project-status-badge {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--project-color, var(--cc-info)) 42%, transparent);
  border-radius: 999px;
  padding: 3px 7px;
  background: color-mix(in srgb, var(--project-color, var(--cc-info)) 14%, transparent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-status-aktiv {
  --project-color: var(--cc-accent);
}

.project-status-geplant {
  --project-color: var(--cc-info);
}

.project-status-pausiert {
  --project-color: #9aa6b8;
}

.project-status-pruefen {
  --project-color: var(--cc-warning);
}

.project-status-abgeschlossen {
  --project-color: #8ad6ff;
}

.project-detail-panel {
  padding: 12px;
}

.project-detail-header {
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.project-detail-header h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.15;
}

.project-detail-summary,
.project-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.project-detail-summary div,
.project-detail-meta-grid div,
.project-detail-grid section {
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.project-detail-summary div,
.project-detail-meta-grid div {
  padding: 8px;
}

.project-detail-summary span,
.project-detail-meta-grid span,
.project-deploy-note span {
  display: block;
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  text-transform: uppercase;
}

.project-detail-summary strong,
.project-detail-meta-grid strong,
.project-deploy-note strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.28;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.project-detail-grid section {
  padding: 9px 10px;
}

.project-detail-grid h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.project-detail-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: var(--cc-muted-strong);
  font-size: 11.5px;
  line-height: 1.32;
}

.project-deploy-note {
  margin-top: 8px;
  padding: 9px 10px;
  border-left: 3px solid var(--project-color, var(--cc-info));
}

.knowledge-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.knowledge-panel {
  display: grid;
  gap: 9px;
  border: 1px solid var(--cc-line);
  border-top: 1px solid var(--project-color, var(--cc-info));
  border-radius: var(--cc-radius-lg);
  padding: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(34, 41, 51, 0.9);
  box-shadow: var(--cc-shadow);
}

.knowledge-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.knowledge-panel h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.12;
}

.knowledge-panel p {
  margin: 0;
  color: rgba(245, 247, 250, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
}

.knowledge-doc-section table {
  margin-top: 4px;
}

.datamap-search-panel {
  border-top-color: rgba(121, 167, 255, 0.42);
}

.datamap-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-bottom: 7px;
}

.datamap-search-form input {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cc-radius-md);
  padding: 8px 10px;
  background: rgba(10, 16, 22, 0.52);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.datamap-search-form input:disabled,
.datamap-search-form button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.datamap-example-list a {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(121, 167, 255, 0.13);
  border: 1px solid rgba(121, 167, 255, 0.24);
  color: rgba(245, 247, 250, 0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.datamap-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
}

.datamap-result-group {
  max-height: 340px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cc-radius-md);
  padding: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.datamap-category-grid {
  max-height: none;
  overflow: visible;
}

.datamap-category-marketplace-group {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--cc-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  padding: 8px;
}

.datamap-category-marketplace-group:last-child {
  margin-bottom: 0;
}

.datamap-category-marketplace-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 7px;
}

.datamap-category-marketplace-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 12.8px;
  line-height: 1.2;
  font-weight: 800;
}

.datamap-category-marketplace-count {
  color: var(--cc-muted-strong);
  font-size: 10.8px;
  font-weight: 700;
  white-space: nowrap;
}

.datamap-category-marketplace-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 7px;
}

.datamap-result-item-head {
  display: grid;
  gap: 6px;
}

.datamap-category-row-hidden {
  display: none;
}

.datamap-category-result-item {
  min-width: 0;
  padding-right: 2px;
  padding-bottom: 7px;
}

.datamap-category-result-item .datamap-marketplace-chip {
  width: fit-content;
  display: inline-flex;
  border-radius: 999px;
  min-height: 18px;
  padding: 2px 8px;
  align-items: center;
  font-size: 10px;
  line-height: 1;
}

.datamap-marketplace-chip {
  background: rgba(80, 214, 139, 0.2);
  border: 1px solid rgba(80, 214, 139, 0.35);
  color: #ffffff;
}

.datamap-category-path {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.datamap-category-meta-wrap {
  display: grid;
  gap: 4px;
}

.datamap-category-meta {
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.datamap-category-extra {
  color: var(--cc-muted-strong);
  font-size: 9.8px;
}

.datamap-category-extra summary {
  cursor: pointer;
  line-height: 1.2;
  color: rgba(245, 247, 250, 0.95);
  font-size: 9.8px;
  font-weight: 750;
}

.datamap-category-extra-content {
  margin-top: 4px;
  display: grid;
  gap: 3px;
}

.datamap-category-extra-content span {
  color: rgba(245, 247, 250, 0.78);
}

.datamap-category-more {
  margin-top: 6px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--cc-radius-sm);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 10.8px;
  font-weight: 750;
}

.datamap-category-more:hover {
  border-color: rgba(121, 167, 255, 0.55);
  background: rgba(121, 167, 255, 0.16);
}

.datamap-category-more:focus-visible {
  outline: 2px solid rgba(121, 167, 255, 0.65);
}

@media (min-width: 821px) {
  .datamap-category-marketplace-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .datamap-category-marketplace-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1700px) {
  .datamap-category-marketplace-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  .datamap-category-marketplace-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.datamap-result-group h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 12px;
}

.datamap-result-item {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.datamap-result-item:first-of-type {
  border-top: 0;
}

.datamap-result-item strong {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.2;
}

.datamap-result-item p {
  margin: 0;
  color: rgba(245, 247, 250, 0.82);
  font-size: 11.5px;
  line-height: 1.32;
}

.datamap-result-item small {
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 700;
}

.datamap-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.type-answers,
.type-answer,
.type-projects,
.type-project,
.type-tables,
.type-table,
.type-reports,
.type-report {
  background: rgba(121, 167, 255, 0.18);
  border: 1px solid rgba(121, 167, 255, 0.35);
}

.type-marketplace,
.type-marketplace_categories {
  background: rgba(55, 191, 155, 0.18);
  border: 1px solid rgba(55, 191, 155, 0.36);
}

.type-agent_safe,
.type-agent,
.status-confirmed {
  background: rgba(80, 214, 139, 0.18);
  border: 1px solid rgba(80, 214, 139, 0.36);
}

.type-joins,
.status-likely,
.type-join {
  background: rgba(245, 192, 87, 0.18);
  border: 1px solid rgba(245, 192, 87, 0.38);
}

.status-weak,
.status-review_only {
  background: rgba(154, 166, 184, 0.18);
  border: 1px solid rgba(154, 166, 184, 0.34);
}

.type-sensitive {
  background: rgba(255, 111, 111, 0.18);
  border: 1px solid rgba(255, 111, 111, 0.38);
}

.datamap-result-tier-title {
  margin: 12px 0 7px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0;
}

.datamap-result-grid-secondary {
  opacity: 0.94;
}

.datamap-suggestion-panel {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  border: 1px solid rgba(121, 167, 255, 0.16);
  border-radius: var(--cc-radius-md);
  padding: 10px;
  background: rgba(121, 167, 255, 0.075);
}

.datamap-suggestion-panel h3 {
  margin: 0;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 850;
}

.datamap-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 7px;
}

.datamap-suggestion-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--cc-radius-md);
  padding: 8px;
  background: rgba(10, 16, 22, 0.24);
}

.datamap-suggestion-card strong {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.18;
}

.datamap-suggestion-card p {
  margin: 0;
  color: rgba(245, 247, 250, 0.84);
  font-size: 11.5px;
  line-height: 1.32;
}

.datamap-suggestion-card small {
  color: var(--cc-muted-strong);
  font-size: 10.5px;
  font-weight: 750;
}

.datamap-suggestion-mini,
.datamap-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.datamap-suggestion-mini span,
.datamap-suggestion-chips a,
.datamap-suggestion-chips > span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.datamap-suggestion-mini span,
.datamap-suggestion-chips > span {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 247, 250, 0.86);
}

.datamap-suggestion-chips a {
  background: rgba(80, 214, 139, 0.14);
  border: 1px solid rgba(80, 214, 139, 0.28);
  color: #ffffff;
  text-decoration: none;
}

.monthly-tab-bar {
  display: flex;
  gap: 5px;
  margin: 0 0 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.monthly-tab-bar .tab {
  white-space: nowrap;
}

.monthly-tab-hidden {
  display: none !important;
}

.monthly-premium-hero,
.monthly-section,
.monthly-split-sections > article,
.monthly-action-panel {
  border: 1px solid var(--cc-line);
  border-top: 1px solid var(--status-color);
  border-radius: var(--cc-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(34, 41, 51, 0.92);
  box-shadow: var(--cc-shadow);
}

.monthly-premium-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px;
}

.monthly-premium-hero h2 {
  margin: 2px 0 3px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.08;
}

.monthly-premium-hero .section-kicker,
.monthly-section .section-kicker {
  font-size: 11px;
}

.monthly-premium-hero .project-status-badge,
.monthly-section .project-status-badge {
  font-size: 11px;
}

.monthly-premium-hero p {
  margin: 0;
  color: var(--cc-muted-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.monthly-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.monthly-kpi-grid-primary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.monthly-kpi-card {
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035)),
    rgba(36, 44, 55, 0.92);
  box-shadow: var(--cc-shadow);
}

.monthly-kpi-card.primary {
  border-color: rgba(79, 209, 135, 0.34);
  background:
    linear-gradient(145deg, rgba(79, 209, 135, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(36, 44, 55, 0.94);
}

.monthly-kpi-card span {
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.monthly-kpi-card strong {
  color: #ffffff;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.monthly-section {
  margin-bottom: 8px;
  padding: 12px;
  scroll-margin-top: 18px;
}

.monthly-premium-hero,
.monthly-split-sections > article {
  scroll-margin-top: 18px;
}

.monthly-section:target,
.monthly-premium-hero:target,
.monthly-split-sections > article:target {
  border-color: rgba(121, 167, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(121, 167, 255, 0.28),
    var(--cc-shadow);
}

.monthly-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.monthly-section-head h2,
.monthly-split-sections h2,
.monthly-action-panel h3 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.monthly-section-note,
.monthly-empty {
  margin: 0 0 8px;
  color: var(--cc-muted-strong);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.32;
}

.monthly-file-warning {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-left: 3px solid var(--cc-warning);
  border-radius: var(--cc-radius-md);
  background: rgba(245, 158, 11, 0.09);
  color: #ffe7b3;
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
}

.monthly-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 7px;
}

.monthly-file-card {
  min-height: 126px;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--cc-radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

.monthly-file-card h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.monthly-file-type {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(121, 167, 255, 0.15);
  border: 1px solid rgba(121, 167, 255, 0.28);
  color: #e7efff;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.monthly-file-card dl,
.monthly-ledger {
  display: grid;
  gap: 5px;
  margin: 0;
}

.monthly-file-card dl div,
.monthly-ledger div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 25px;
  padding: 5px 7px;
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.monthly-file-card dt,
.monthly-ledger span {
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.monthly-file-card dd,
.monthly-ledger strong {
  margin: 0;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
}

.monthly-file-card .button-secondary {
  justify-self: end;
}

.monthly-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.monthly-comparison-grid article {
  min-height: 70px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.monthly-comparison-grid span {
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
}

.monthly-comparison-grid strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.monthly-split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.monthly-split-sections > article {
  padding: 12px;
}

.monthly-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 7px;
}

.monthly-tech-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 70px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-left: 3px solid var(--status-color);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.monthly-tech-card strong {
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.2;
}

.monthly-tech-card p {
  margin: 3px 0 0;
  color: var(--cc-muted-strong);
  font-size: 11.5px;
  line-height: 1.32;
}

.monthly-action-panel {
  margin-top: 8px;
  padding: 10px;
}

.workspace-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.workspace-layer[hidden],
.workspace-window[hidden] {
  display: none !important;
}

.workspace-window {
  position: fixed;
  left: min(64px, 4vw);
  top: 92px;
  width: min(680px, calc(100vw - 32px));
  min-width: 360px;
  max-width: calc(100vw - 32px);
  height: min(500px, calc(100vh - 112px));
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  resize: both;
  pointer-events: auto;
  border: 1px solid var(--cc-line-strong);
  border-top: 2px solid var(--status-color);
  border-radius: var(--cc-radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(35, 43, 54, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.workspace-window.focused {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.5);
}

.workspace-window.maximized {
  left: 18px !important;
  top: 74px !important;
  width: calc(100vw - 36px) !important;
  height: calc(100vh - 92px) !important;
  resize: none;
}

.workspace-window.minimized {
  height: auto !important;
  min-height: 0;
  resize: none;
}

.workspace-window.minimized .workspace-window-body {
  display: none;
}

.workspace-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  user-select: none;
}

.workspace-window.dragging .workspace-window-header {
  cursor: grabbing;
}

.workspace-window-header h2 {
  margin: 3px 0 0;
  color: var(--cc-text);
  font-size: 16px;
  line-height: 1.15;
}

.workspace-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-detail-link,
.workspace-close-button,
.workspace-icon-button {
  min-height: 28px;
}

.workspace-icon-button {
  color: rgba(245, 247, 250, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.workspace-close-button {
  color: #ffe2e2;
  background: rgba(240, 100, 100, 0.13);
  border-color: rgba(240, 100, 100, 0.28);
}

.workspace-window-body {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow: auto;
}

.workspace-summary,
.workspace-meta,
.workspace-service-row,
.workspace-kpi-pill {
  border-radius: var(--cc-radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.095);
}

.workspace-summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
}

.workspace-summary strong {
  display: block;
  color: var(--cc-text);
  font-size: 18px;
  line-height: 1;
  text-transform: capitalize;
}

.workspace-summary-label {
  display: block;
  margin-top: 3px;
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.workspace-summary span:last-child {
  display: block;
  margin-top: 4px;
  color: var(--cc-muted-strong);
  font-size: 12px;
  line-height: 1.35;
}

.workspace-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
}

.workspace-meta span {
  color: var(--cc-muted-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-meta strong {
  color: var(--cc-text);
  font-size: 13px;
  text-align: right;
}

.workspace-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 6px;
}

.workspace-kpi-pill {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 7px 8px;
}

.workspace-kpi-pill span {
  color: var(--cc-muted-strong);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.workspace-kpi-pill strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.15;
}

.workspace-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workspace-chip-list span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(245, 247, 250, 0.9);
  background: rgba(121, 167, 255, 0.13);
  border: 1px solid rgba(121, 167, 255, 0.22);
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1;
}

.workspace-service-list {
  display: grid;
  gap: 5px;
}

.workspace-service-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-left: 2px solid var(--status-color);
}

.workspace-service-row strong {
  display: block;
  color: var(--cc-text);
  font-size: 12.5px;
  line-height: 1.2;
}

.workspace-service-row span:last-child {
  display: block;
  margin-top: 3px;
  color: var(--cc-muted-strong);
  font-size: 11.5px;
  line-height: 1.35;
}

button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--cc-line-strong);
}

.command-refresh button,
.filter-form button {
  background: var(--cc-accent-soft);
  border-color: rgba(79, 209, 135, 0.28);
  color: #dcffe9;
}

.alert-console {
  position: sticky;
  top: 80px;
}

.alert-list {
  display: grid;
  gap: 6px;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  row-gap: 3px;
  align-items: start;
  min-height: 46px;
  padding: 8px;
  text-decoration: none;
  border-left: 3px solid var(--status-color);
}

.alert-item strong {
  color: var(--cc-text);
  font-size: 12px;
}

.alert-item span:last-child {
  grid-column: 2;
  color: var(--cc-muted-strong);
  font-size: 11px;
  line-height: 1.25;
}

.panel,
.topbar,
.card {
  padding: 12px;
  margin-bottom: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--status-color);
}

.module-topbar strong {
  display: block;
  margin: 3px 0;
  color: var(--cc-text);
  font-size: 19px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--cc-radius-md);
  background: rgba(12, 16, 21, 0.94);
  color: rgba(245, 247, 250, 0.9);
}

th {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(245, 247, 250, 0.9);
  text-align: left;
  font-size: 12.5px;
}

th,
td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover,
tr:hover td {
  background: rgba(255, 255, 255, 0.055);
}

table a {
  color: #dbe7ff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 231, 255, 0.42);
}

table a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

pre {
  background: rgba(12, 16, 21, 0.94);
  color: rgba(245, 247, 250, 0.9);
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--cc-radius-md);
}

.mini-table-block {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.mini-table-block > strong {
  display: block;
  color: var(--cc-text);
  margin-bottom: 6px;
  font-size: 12px;
}

.mini-table {
  width: 100%;
  table-layout: fixed;
  border: 0;
  background: transparent;
  color: inherit;
}

.mini-table td {
  padding: 5px 0;
  word-break: break-word;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.mini-table td:last-child {
  text-align: right;
}

.filter-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-form label {
  color: rgba(245, 247, 250, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.filter-form select,
.filter-form input,
.login-card input,
.password-form input {
  width: 160px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--cc-text-dark);
  font-size: 14px;
}

.tabs,
.month-file-filter,
.live-period-buttons {
  display: flex;
  gap: 5px;
  margin: 5px 0 6px;
  flex-wrap: wrap;
}

.tab,
.month-file-filter button,
.live-period-button {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cc-muted-strong);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.tab.active,
.month-file-filter button.active-month-filter,
.live-period-button.active {
  background: rgba(121, 167, 255, 0.16);
  color: #e4ecff;
  border-color: rgba(121, 167, 255, 0.34);
}

.tab.disabled {
  color: rgba(245, 247, 250, 0.36);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 380px;
  max-width: 100%;
  border-radius: var(--cc-radius-xl);
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    var(--cc-panel);
  box-shadow: var(--cc-shadow-deep);
  border: 1px solid var(--cc-line);
}

.login-card h1 {
  margin-top: 0;
  color: var(--cc-text);
}

.login-card form,
.password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card input,
.password-form input {
  width: 100%;
}

.login-error,
.success-message {
  padding: 10px;
  border-radius: var(--cc-radius-md);
  margin: 12px 0;
}

.login-error {
  background: rgba(240, 100, 100, 0.14);
  color: #ffd6d6;
  border: 1px solid rgba(240, 100, 100, 0.3);
}

.success-message {
  background: rgba(79, 209, 135, 0.14);
  color: #ddffe9;
  border: 1px solid rgba(79, 209, 135, 0.28);
}

.password-form {
  max-width: 420px;
}

.hidden {
  display: none !important;
}

details summary {
  cursor: pointer;
  color: #e4ecff;
  font-weight: 900;
}

@media (min-width: 1440px) {
  .ops-board {
    grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.4fr) minmax(280px, 0.75fr);
    align-items: start;
  }

  .ops-section-systems {
    grid-column: 1;
  }

  .ops-section-core {
    grid-column: 2;
  }

  .ops-section-operations {
    grid-column: 1;
  }

  .ops-section-projects {
    grid-column: 3;
  }

  .alert-console {
    grid-column: 3;
  }

  .ops-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--module-card-min)), 1fr));
  }
}

@media (min-width: 1880px) {
  .app-main,
  .app-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .ops-board {
    grid-template-columns: minmax(292px, 0.78fr) minmax(500px, 1.22fr) minmax(260px, 0.68fr) minmax(260px, 0.68fr) minmax(280px, 0.7fr);
  }

  .ops-section-systems,
  .ops-section-core,
  .ops-section-operations,
  .ops-section-projects,
  .alert-console {
    grid-column: auto;
  }

  .ops-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--module-card-min)), 1fr));
  }

}

@media (min-width: 2300px) {
  .ops-board {
    grid-template-columns: minmax(340px, 0.78fr) minmax(660px, 1.35fr) minmax(320px, 0.72fr) minmax(320px, 0.72fr) minmax(320px, 0.72fr);
  }

  .ops-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--module-card-min)), 1fr));
  }
}

@media (max-width: 1160px) {
  .command-center {
    grid-template-columns: 1fr;
  }

  .project-center-layout {
    grid-template-columns: 1fr;
  }

  .project-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-refresh button {
    width: 100%;
  }

  .alert-console {
    position: static;
  }
}

@media (max-width: 820px) {
  .app-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .app-main {
    padding: 14px 14px 24px;
  }

  .app-footer {
    flex-direction: column;
    padding: 10px 14px 20px;
  }

  .app-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--cc-radius-lg);
  }

  .app-nav a,
  .user-pill {
    justify-content: center;
    min-height: 42px;
    text-align: center;
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail-summary,
  .project-detail-grid,
  .monthly-split-sections {
    grid-template-columns: 1fr;
  }

  .ops-grid,
  .ops-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 286px), 1fr));
  }

  .ops-card {
    min-height: 0;
  }

  .filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-form select,
  .filter-form input,
  .filter-form button {
    width: 100%;
  }

  .monthly-premium-hero,
  .monthly-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-window {
    left: 10px !important;
    right: 10px;
    top: 74px !important;
    width: calc(100vw - 20px);
    min-width: 0;
    max-width: calc(100vw - 20px);
    height: calc(100vh - 92px);
    min-height: 0;
    resize: none;
  }
}

@media (max-width: 560px) {
  .brand-block {
    min-width: 0;
  }

  .command-metrics {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .command-metric {
    scroll-snap-align: start;
  }

  .project-overview-strip {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .ops-grid,
  .ops-grid-compact,
  .metric-grid,
  .monthly-kpi-grid,
  .monthly-kpi-grid-primary,
  .monthly-file-grid,
  .monthly-tech-grid {
    grid-template-columns: 1fr;
  }

  .command-title {
    min-height: 56px;
  }

  .command-metric {
    min-height: 56px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .mini-table {
    display: table;
    white-space: normal;
  }

  .ops-card:hover {
    transform: none;
  }

  .workspace-layer {
    background: rgba(5, 7, 10, 0.24);
    pointer-events: auto;
  }

  .workspace-window {
    inset: 0 !important;
    width: 100vw;
    height: 100vh;
    max-width: none;
    min-width: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    resize: none;
  }

  .workspace-window-header {
    align-items: flex-start;
    flex-direction: column;
    cursor: default;
  }

  .workspace-window-controls {
    width: 100%;
  }

  .workspace-detail-link,
  .workspace-icon-button,
  .workspace-close-button {
    flex: 1 1 48%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .ops-card:hover,
  button:hover,
  .button-secondary:hover {
    transform: none;
  }
}
