:root {
  --cream: #F5F1E8;
  --ink: #121212;
  --brown: #6A4E42;
  --glass: rgba(28,42,57,0.08);
  --bg: #f6f2ea;
  --surface: #ffffff;
  --text: #0d1b2c;
  --muted: #4d5d72;
  --blue: #173a5d;
  --accent: #2f5f8a;
  --gold: #b18a5b;
  --border: rgba(23, 58, 93, 0.14);
  --shadow: 0 10px 30px rgba(8, 23, 42, 0.12);
  --hero-overlay: rgba(9, 24, 43, 0.42);
  --button-text: #f5f7fb;
  --transition: 260ms ease;
  --transition-fast: 180ms ease;
}

:root[data-theme='dark'] {
  --glass: rgba(137,168,203,0.12);
  --bg: #0c1727;
  --surface: #13253a;
  --text: #ecf2fb;
  --muted: #b5c4d8;
  --blue: #89a8cb;
  --accent: #6ea2d2;
  --gold: #c8a57a;
  --border: rgba(183, 205, 230, 0.24);
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  --hero-overlay: rgba(4, 10, 20, 0.5);
  --button-text: #091625;
}

:root[data-style='porcelain'] {
  --bg: #f1f5f8;
  --surface: #ffffff;
  --accent: #3c6f98;
  --gold: #8e6f4f;
}

:root[data-style='midnight'] {
  --bg: #101b2b;
  --surface: #15263b;
  --text: #e8f0fb;
  --muted: #adc1d9;
  --blue: #9ab6d6;
  --accent: #72a0cf;
  --border: rgba(173, 198, 224, 0.25);
  --hero-overlay: rgba(3, 9, 17, 0.52);
}

:root[data-style='heritage'] {
  --bg: #f4efe6;
  --surface: #fffaf3;
  --accent: #486586;
  --gold: #8f6a40;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.page-leaving {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(1.8px);
}

body.page-enter {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2.4px);
}

body.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

a {
  color: inherit;
}

.btn {
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--button-text);
  padding: 0.6rem 1rem;
  border-radius: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.22);
  outline: none;
}

.btn.secondary,
.btn.pill.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.pill {
  border-radius: 999px;
}

.topnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  padding: 0.9rem 0;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.topnav.sticky {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(5, 20, 37, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.88;
  font-size: 0.95rem;
}

.nav-link:hover {
  opacity: 1;
}

.header-controls-cluster {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.header-controls-capsule {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.26rem 0.36rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.header-toggle-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--accent) 66%, var(--surface) 34%);
  color: #f1f6fd;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.header-dot.active,
.header-dot:hover,
.header-dot:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 80%, #fff 20%);
  box-shadow: 0 0 0 2px rgba(177, 138, 91, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.header-toggle-lang .header-dot {
  width: 34px;
}

.header-toggle-theme .header-dot:first-child,
.header-toggle-style .header-dot[data-style='ivory'] {
  background: #dfe8f1;
  color: #173a5d;
}

.header-toggle-theme .header-dot:last-child,
.header-toggle-style .header-dot[data-style='midnight'] {
  background: #213d5e;
  color: #ecf2fb;
}

.header-toggle-style .header-dot[data-style='porcelain'] {
  background: #edf3f8;
  color: #1d3f62;
}

.header-toggle-style .header-dot[data-style='heritage'] {
  background: #7e6140;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 6.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-video,
.hero-fallback,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video,
.hero-bg {
  object-fit: cover;
}

.hero-fallback {
  display: none;
}

.hero-video.is-hidden {
  display: none;
}

.hero-fallback.is-visible {
  display: flex;
}

.hero-bg.noimg {
  background: radial-gradient(circle at 15% 15%, #244a70 0%, #11233a 38%, #0a1524 100%);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--hero-overlay), rgba(10, 24, 41, 0.2));
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  color: #f4f8fd;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.9;
}

.hero-headline {
  margin: 0.6rem 0 0.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  line-height: 1.03;
}

.hero-subcopy {
  font-size: clamp(1rem, 2vw, 1.22rem);
  max-width: 640px;
  opacity: 0.95;
}

.hero-ctas {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

main {
  position: relative;
  z-index: 2;
}

.operis-app {
  padding: 1.6rem 0 3.2rem;
}

.operis-app-container {
  width: min(1240px, 92vw);
  margin-inline: auto;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg) 6%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.operis-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.operis-logo {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operis-desc {
  margin-top: 0.25rem;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 820px;
}

.operis-launch {
  min-width: 160px;
  white-space: nowrap;
}

.operis-runtime-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.runtime-chip {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg) 12%);
  padding: 0.46rem 0.56rem;
}

.runtime-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.runtime-value {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--blue);
}

.operis-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 0.75rem;
}

.operis-warehouse {
  min-height: 720px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
}

.operis-sidepanel {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.opx-shell {
  border-radius: 14px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--surface) 12%, var(--blue) 88%), color-mix(in srgb, var(--surface) 8%, var(--accent) 92%));
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  color: color-mix(in srgb, var(--surface) 92%, #fff 8%);
  padding: 0.85rem;
  min-height: 680px;
  display: grid;
  gap: 0.62rem;
}

.opx-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-end;
}

.opx-title {
  font-size: 1.22rem;
  line-height: 1.2;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: color-mix(in srgb, var(--surface) 96%, #fff 4%);
}

.opx-subtitle {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--surface) 82%, var(--muted) 18%);
  max-width: 68ch;
}

.opx-focus {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  text-align: right;
  color: color-mix(in srgb, var(--surface) 84%, var(--muted) 16%);
}

.opx-focus strong {
  color: color-mix(in srgb, var(--surface) 96%, #fff 4%);
}

.opx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.opx-kpi {
  border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent);
  background: color-mix(in srgb, var(--surface) 14%, transparent);
  border-radius: 11px;
  padding: 0.52rem 0.58rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.opx-kpi span {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 78%, var(--muted) 22%);
}

.opx-kpi strong {
  display: block;
  margin-top: 0.14rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.opx-main-grid {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 0.58rem;
}

.opx-zone-card,
.opx-station-card,
.opx-chart-card {
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 10%, transparent);
  padding: 0.6rem;
}

.opx-zone-card h3,
.opx-station-card h3,
.opx-chart-card h3 {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 86%, var(--muted) 14%);
}

.opx-zones {
  margin-top: 0.46rem;
  display: grid;
  gap: 0.42rem;
}

.opx-zone {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  color: inherit;
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.opx-zone:hover,
.opx-zone:focus-visible,
.opx-zone.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--gold) 72%, var(--surface) 28%);
  background: color-mix(in srgb, var(--surface) 14%, transparent);
  outline: none;
}

.opx-zone-name {
  font-size: 0.89rem;
  font-weight: 650;
}

.opx-zone-row {
  margin-top: 0.18rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: color-mix(in srgb, var(--surface) 82%, var(--muted) 18%);
}

.opx-zone-stations {
  margin-top: 0.34rem;
  display: flex;
  gap: 0.26rem;
  flex-wrap: wrap;
}

.opx-zone-stations span {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--surface) 26%, transparent);
  padding: 0.14rem 0.38rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.opx-stations {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.38rem;
}

.opx-station {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  color: inherit;
  padding: 0.46rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.opx-station.active,
.opx-station:hover,
.opx-station:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--surface) 28%);
  outline: none;
}

.opx-station small {
  font-size: 0.68rem;
  opacity: 0.86;
}

.opx-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.opx-periods {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  border-radius: 999px;
  padding: 0.14rem;
}

.opx-period {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.22rem 0.52rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.opx-period.active {
  background: color-mix(in srgb, var(--gold) 72%, var(--surface) 28%);
  color: color-mix(in srgb, var(--blue) 90%, var(--ink) 10%);
}

.opx-employee-pills {
  margin-top: 0.48rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.38rem;
}

.opx-employee-pill {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  color: inherit;
  text-align: left;
  padding: 0.4rem;
  cursor: pointer;
}

.opx-employee-pill.active,
.opx-employee-pill:hover,
.opx-employee-pill:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 76%, var(--surface) 24%);
  background: color-mix(in srgb, var(--surface) 14%, transparent);
  outline: none;
}

.opx-employee-pill span {
  display: block;
  font-size: 0.76rem;
  font-weight: 630;
}

.opx-employee-pill small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.66rem;
  opacity: 0.82;
}

.opx-trend {
  margin-top: 0.5rem;
  width: 100%;
  height: 220px;
}

.opx-grid line {
  stroke: color-mix(in srgb, var(--surface) 22%, transparent);
  stroke-width: 1;
}

.opx-chart-meta {
  margin-top: 0.32rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.71rem;
  color: color-mix(in srgb, var(--surface) 80%, var(--muted) 20%);
}

.opx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.opx-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid color-mix(in srgb, var(--surface) 20%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
}

.opx-legend-item strong {
  font-size: 0.68rem;
}

.opx-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.opx-legend-dot.tone-1 {
  background: var(--accent);
}

.opx-legend-dot.tone-2 {
  background: var(--gold);
}

.opx-legend-dot.tone-3 {
  background: var(--blue);
}

.operis-console {
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 90%, #0f4366 10%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: #eef4fb;
  padding: 0.9rem;
  min-height: 592px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.65rem;
}

.operis-console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.console-title {
  font-size: 1.22rem;
  line-height: 1.25;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color: #f7f3ea;
}

.console-subtitle {
  margin-top: 0.22rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(228, 236, 247, 0.86);
}

.console-period {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: rgba(228, 236, 247, 0.88);
  text-transform: uppercase;
}

.operis-grid-board {
  display: grid;
  grid-template-columns: 228px 1fr 1fr;
  grid-template-rows: 170px 170px 170px;
  gap: 0.62rem;
}

.op-stack {
  display: grid;
  gap: 0.58rem;
  grid-row: span 3;
}

.op-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(151, 182, 211, 0.44);
  background: rgba(20, 75, 105, 0.58);
  border-radius: 12px;
  color: #eff4fb;
  text-align: left;
  padding: 0.66rem 0.72rem;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(238, 244, 252, 0.06);
}

.op-card:hover,
.op-card:focus-visible,
.op-card.active {
  transform: translateY(-1px);
  border-color: rgba(214, 185, 133, 0.82);
  background: rgba(30, 89, 121, 0.7);
  box-shadow: 0 6px 18px rgba(4, 27, 48, 0.42);
  outline: none;
}

.op-card-minititle {
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4d3c8;
}

.op-card-value {
  margin-top: 0.35rem;
  font-size: 1.48rem;
  font-weight: 760;
  color: #f5f8fc;
}

.op-card-delta {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.delta-up {
  color: #9cd6a4;
}

.delta-down {
  color: #ef9ca2;
}

.op-card-title {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(235, 242, 252, 0.88);
  margin-bottom: 0.45rem;
}

.op-card-large {
  display: grid;
  align-content: space-between;
}

.op-donut-wrap {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.op-ring {
  width: 128px;
  height: 128px;
}

.op-ring-bg {
  fill: none;
  stroke: rgba(242, 246, 250, 0.15);
  stroke-width: 12;
}

.op-ring-val {
  fill: none;
  stroke: #d4a531;
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.op-ring-label {
  fill: #f0f4fa;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.op-ring-value {
  fill: #f6f8fc;
  font-size: 18px;
  font-weight: 700;
}

.op-list {
  display: grid;
  gap: 0.4rem;
}

.op-list-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: rgba(237, 244, 252, 0.9);
}

.op-country-chart,
.op-mix-chart,
.op-profit-chart {
  width: 100%;
  height: 110px;
}

.op-country-legends {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.5rem;
  margin-top: 0.4rem;
}

.op-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: rgba(237, 244, 252, 0.9);
}

.op-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.op-gauge {
  width: 100%;
  height: 72px;
}

.op-gauge-track {
  fill: none;
  stroke: rgba(242, 246, 251, 0.2);
  stroke-width: 8;
}

.op-gauge-value {
  fill: none;
  stroke: #d4a531;
  stroke-width: 8;
  stroke-linecap: round;
}

.op-gauge-text {
  fill: #f4f8fc;
  font-size: 12px;
  font-weight: 650;
}

.op-bottom-note {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(232, 239, 248, 0.72);
}

.operis-staff,
.operis-charts,
.operis-systems {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg) 10%);
}

.operis-panel-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.operis-staff-list {
  display: grid;
  gap: 0.35rem;
}

.staff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem;
}

.staff-name {
  font-size: 0.86rem;
  font-weight: 650;
}

.staff-zone {
  font-size: 0.74rem;
  color: var(--muted);
}

.staff-status {
  font-size: 0.7rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
}

.staff-status.healthy {
  background: rgba(94, 189, 133, 0.18);
  color: #2f7a55;
}

.staff-status.warning {
  background: rgba(217, 177, 81, 0.18);
  color: #8a6420;
}

.staff-status.critical {
  background: rgba(205, 101, 101, 0.18);
  color: #9c3d3d;
}

.operis-chart-wrap {
  height: 96px;
}

.operis-mini-chart {
  width: 100%;
  height: 100%;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.system-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem;
}

.system-name {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.system-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--blue);
}

.platform-explorer {
  padding: 0.4rem 0 2.8rem;
}

.section-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.9rem;
}

.explorer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.8rem;
}

.explorer-nav {
  display: grid;
  gap: 0.46rem;
}

.explorer-nav-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
  color: var(--text);
  text-align: left;
  padding: 0.62rem 0.74rem;
  cursor: pointer;
}

.explorer-nav-btn.active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--gold) 42%);
  box-shadow: inset 0 0 0 1px rgba(177, 138, 91, 0.28);
}

.explorer-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg) 6%);
  padding: 0.8rem;
}

.explorer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
}

.explorer-desc {
  margin-top: 0.35rem;
  color: var(--muted);
}

.explorer-kpis {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.kpi-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.52rem;
  font-size: 0.78rem;
}

.kpi-label {
  color: var(--muted);
}

.kpi-value {
  color: var(--blue);
  font-weight: 700;
}

.explorer-chart {
  margin-top: 0.65rem;
}

.usecases {
  padding: 0.5rem 0 3rem;
}

.usecase-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.usecase-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
  padding: 0.8rem;
}

.usecase-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue);
}

.usecase-card-desc {
  margin-top: 0.35rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.4rem;
  color: var(--muted);
}

.ambient-bg {
  position: fixed;
  inset: auto -20% -40% -20%;
  height: 45vh;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(66, 98, 133, 0.1), transparent 65%);
  filter: blur(12px);
  z-index: 0;
}

@media (max-width: 1100px) {
  .operis-runtime-strip {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .operis-dashboard {
    grid-template-columns: 1fr;
  }

  .operis-sidepanel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

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

  .opx-main-grid {
    grid-template-columns: 1fr;
  }

  .opx-employee-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operis-grid-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, minmax(130px, auto));
  }

  .op-stack {
    grid-column: span 2;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-grid {
    grid-template-columns: 1fr;
  }

  .usecase-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topnav {
    position: static;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .header-controls-cluster {
    margin-left: 0;
  }

  .hero {
    min-height: 72vh;
    padding-top: 2.5rem;
  }

  .operis-runtime-strip {
    grid-template-columns: 1fr 1fr;
  }

  .operis-sidepanel {
    grid-template-columns: 1fr;
  }

  .opx-head {
    display: grid;
  }

  .opx-focus {
    text-align: left;
  }

  .opx-employee-pills {
    grid-template-columns: 1fr 1fr;
  }

  .opx-chart-meta {
    display: grid;
  }

  .operis-grid-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .op-stack {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .op-donut-wrap {
    grid-template-columns: 1fr;
  }

  .usecase-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }

  body.page-enter,
  body.page-enter-active,
  body.page-leaving {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
