/* Operator landing page layout – Apple-grade framing (MODE 2, non-destructive) */

body.operator-layout-active {
  background: radial-gradient(circle at top, #050816 0, #020617 40%, #020617 100%);
}

.operator-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  box-sizing: border-box;
}

.operator-hero-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.operator-hero-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 18px;
}

.operator-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.operator-shell-card {
  position: relative;
  padding: 20px 20px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #020617, #020617) padding-box,
              linear-gradient(135deg, rgba(148,163,184,0.24), rgba(56,189,248,0.12)) border-box;
  border: 1px solid rgba(15,23,42,0.9);
  box-shadow:
    0 24px 40px rgba(15,23,42,0.85),
    0 0 0 0.5px rgba(148,163,184,0.25);
  overflow: hidden;
}

.operator-shell-inner {
  position: relative;
  border-radius: 18px;
  padding: 8px 8px 0;
  background: radial-gradient(circle at 50% 15%, rgba(56,189,248,0.07), transparent 55%),
              radial-gradient(circle at 80% 90%, rgba(74,222,128,0.07), transparent 55%),
              #020617;
}

.operator-shell-inner canvas,
.operator-shell-inner .organism-shell,
.operator-shell-inner .visual-shell-wrapper {
  display: block;
  margin: 0 auto;
}

.operator-shell-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

.operator-shell-status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.operator-metrics-panel {
  padding: 20px 18px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.98));
  border: 1px solid rgba(15,23,42,0.9);
  box-shadow:
    0 18px 32px rgba(15,23,42,0.9),
    0 0 0 0.5px rgba(30,64,175,0.55);
}

.operator-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;          /* more air before control chips */
}

.operator-summary-card {
  padding: 8px 12px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);  /* flat, no gradient */
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.operator-summary-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 3px;
}

.operator-summary-value {
  font-size: 15px;              /* smaller, calmer */
  font-weight: 600;
  letter-spacing: 0.01em;
}

.operator-summary-pill {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.operator-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.operator-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.operator-control-label {
  font-size: 11px;
  color: #9ca3af;
}

.operator-segment {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.9);
  gap: 2px;
}

.operator-segment button {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  padding: 3px 9px;               /* slightly tighter */
  border-radius: 999px;
  cursor: default;
  box-shadow: none;
}

.operator-segment button.operator-segment-active {
  background: #0b1120;            /* flat, no gradient */
  color: #e5e7eb;
  font-weight: 500;
}

.operator-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-slider-rail {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(31,41,55,0.9);
  overflow: hidden;
}

.operator-slider-fill {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #eab308);
}

.operator-slider-label {
  font-size: 11px;
  color: #9ca3af;
}

.operator-advanced-toggle {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.operator-advanced-toggle span {
  font-size: 13px;
}

.operator-advanced-panel {
  margin-top: 8px;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(31,41,55,0.9);
  font-size: 11px;
  color: #9ca3af;
}

.operator-advanced-panel[hidden] {
  display: none;
}

.operator-footnote {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 180ms ease, opacity 180ms ease;
}

.operator-footnote a,
.operator-footnote-link {
  color: #9ca3af;
  text-decoration: none;
}

.operator-footnote a:hover,
.operator-footnote-link:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

/* PATCH 22 – Subtle motion transitions for operator UI */
.operator-summary-value,
.operator-summary-pill,
.operator-segment button,
.operator-segment button.operator-segment-active {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

/* PATCH 74 – v4 OPERATOR HEADER HEALTH PILL */
.operator-header {
  position: relative;
}

.operator-health-pill {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 8px 22px rgba(15,23,42,0.85);
  font-size: 11px;
  color: #e5e7eb;
  white-space: nowrap;
  z-index: 40;
}

.operator-health-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6b7280;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.9);
  flex-shrink: 0;
}

.operator-health-label {
  opacity: 0.9;
}

.operator-health-pill--ok .operator-health-dot {
  background: #22c55e;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 10px rgba(34,197,94,0.7);
}

.operator-health-pill--warn .operator-health-dot {
  background: #facc15;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 10px rgba(250,204,21,0.6);
}

.operator-health-pill--error .operator-health-dot {
  background: #f97316;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 10px rgba(249,115,22,0.6);
}

.operator-health-pill:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.operator-health-pill:focus {
  outline: none;
}
/* END PATCH 74 CSS */

@media (max-width: 960px) {
  .operator-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .operator-controls-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
