/*
 * Project Outpost Design Lab — minimal monolithic material study.
 * This file is intentionally isolated from the production stylesheet.
 */

.outpost-design-lab {
  --op-bg: #050506;
  --op-bg-raised: #0a0b0c;
  --op-surface: #0d0e10;
  --op-surface-strong: #121316;
  --op-surface-soft: #090a0b;
  --op-line: rgba(245, 247, 250, 0.22);
  --op-line-strong: rgba(255, 255, 255, 0.72);
  --op-line-faint: rgba(255, 255, 255, 0.08);
  --op-text: #f4f5f6;
  --op-text-muted: #9da1a8;
  --op-text-faint: #686d74;
  --op-accent: #d7f2ff;
  --op-accent-rgb: 215, 242, 255;
  --op-success: #95e6be;
  --op-success-rgb: 149, 230, 190;
  --op-warning: #f1c477;
  --op-warning-rgb: 241, 196, 119;
  --op-danger: #ff8f8f;
  --op-danger-rgb: 255, 143, 143;
  --op-focus: #ffffff;
  --op-backdrop: rgba(0, 0, 0, 0.78);
  --op-shadow: rgba(0, 0, 0, 0.5);
  --op-grid: rgba(255, 255, 255, 0.035);
  --op-grid-bold: rgba(255, 255, 255, 0.07);
  --op-radius-xs: 2px;
  --op-radius-sm: 4px;
  --op-space-1: 4px;
  --op-space-2: 8px;
  --op-space-3: 12px;
  --op-space-4: 16px;
  --op-space-5: 24px;
  --op-space-6: 32px;
  --op-space-7: 48px;
  --op-fast: 140ms;
  --op-medium: 220ms;
  --op-slow: 540ms;
  --op-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --op-font-ui: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --op-font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
  min-height: 100vh;
  margin: 0;
  color: var(--op-text);
  background-color: var(--op-bg);
  font-family: var(--op-font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.outpost-design-lab[data-op-theme="light"] {
  --op-bg: #eeede9;
  --op-bg-raised: #f7f6f2;
  --op-surface: #faf9f5;
  --op-surface-strong: #ffffff;
  --op-surface-soft: #e8e7e2;
  --op-line: rgba(18, 20, 22, 0.24);
  --op-line-strong: rgba(10, 12, 14, 0.76);
  --op-line-faint: rgba(18, 20, 22, 0.09);
  --op-text: #121416;
  --op-text-muted: #575c62;
  --op-text-faint: #85898e;
  --op-accent: #133a49;
  --op-accent-rgb: 19, 58, 73;
  --op-success: #17633d;
  --op-success-rgb: 23, 99, 61;
  --op-warning: #8a590b;
  --op-warning-rgb: 138, 89, 11;
  --op-danger: #a43232;
  --op-danger-rgb: 164, 50, 50;
  --op-focus: #0c0e10;
  --op-backdrop: rgba(232, 231, 226, 0.86);
  --op-shadow: rgba(22, 24, 26, 0.16);
  --op-grid: rgba(20, 22, 24, 0.045);
  --op-grid-bold: rgba(20, 22, 24, 0.085);
  color-scheme: light;
}

.outpost-design-lab *,
.outpost-design-lab *::before,
.outpost-design-lab *::after {
  box-sizing: border-box;
}

.outpost-design-lab button,
.outpost-design-lab select {
  color: inherit;
  font: inherit;
}

.outpost-design-lab button {
  border: 0;
}

.outpost-design-lab button:focus-visible,
.outpost-design-lab select:focus-visible {
  outline: 2px solid var(--op-focus);
  outline-offset: 3px;
}

.outpost-design-lab code {
  font-family: var(--op-font-mono);
  font-size: 0.78em;
  color: var(--op-accent);
}

.op-lab-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 0H32M0 0V32' fill='none' stroke='%23fff' stroke-opacity='.04'/%3E%3C/svg%3E");
  background-size: 32px 32px;
}

.op-lab-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 0H160M0 0V160' fill='none' stroke='%23fff' stroke-opacity='.07'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.outpost-design-lab[data-op-theme="light"] .op-lab-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 0H32M0 0V32' fill='none' stroke='%23000' stroke-opacity='.045'/%3E%3C/svg%3E");
}

.outpost-design-lab[data-op-theme="light"] .op-lab-grid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 0H160M0 0V160' fill='none' stroke='%23000' stroke-opacity='.08'/%3E%3C/svg%3E");
}

.op-lab-app {
  position: relative;
  z-index: 1;
  width: min(1680px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: var(--op-space-5);
}

.op-lab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 0 var(--op-space-4);
  border-bottom: 1px solid var(--op-line);
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  letter-spacing: 0.44em;
  font-size: 15px;
  font-weight: 560;
}

.op-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
}

.op-brand-mark i,
.op-brand-mark::before,
.op-brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.op-brand-mark::before { top: -1px; }
.op-brand-mark i { top: 5px; opacity: 0.64; }
.op-brand-mark::after { top: 11px; opacity: 0.28; }

.op-lab-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(var(--op-warning-rgb), 0.52);
  color: var(--op-warning);
  background: rgba(var(--op-warning-rgb), 0.06);
  font-family: var(--op-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.op-lab-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: var(--op-space-6);
  padding-top: var(--op-space-6);
}

.op-nav-shell {
  position: sticky;
  top: var(--op-space-5);
  align-self: start;
  min-width: 0;
}

.op-nav-kicker,
.op-eyebrow,
.st-system small {
  font-family: var(--op-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.op-nav-kicker {
  display: block;
  margin-bottom: var(--op-space-3);
  color: var(--op-text-faint);
}

.op-wave-nav {
  display: grid;
  gap: 10px;
  padding: var(--op-space-2) 0 var(--op-space-4);
}

.op-nav-card {
  --wave-lift: 0px;
  --wave-glow: 0;
  position: relative;
  display: grid;
  grid-template-columns: 42px 1px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius-xs);
  color: var(--op-text-muted);
  background: var(--op-surface-soft);
  cursor: pointer;
  transform: translate3d(0, var(--wave-lift), 0);
  transition:
    transform var(--op-medium) var(--op-ease),
    border-color var(--op-fast) ease,
    color var(--op-fast) ease,
    background-color var(--op-fast) ease;
  isolation: isolate;
}

.op-nav-card::before,
.st-button.primary::before,
.st-picker-row::before,
.st-chip::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(var(--op-accent-rgb), 0.34);
  opacity: var(--wave-glow, 0);
  filter: blur(6px);
  transition: opacity var(--op-medium) ease;
}

.op-nav-card:hover,
.op-nav-card:focus-visible {
  color: var(--op-text);
  border-color: var(--op-line-strong);
  --wave-glow: 0.46;
}

.op-nav-card:active,
.st-button:active,
.st-chip:active {
  transform: translate3d(0, 0, 0) scale(1.025);
  transition-duration: 100ms;
}

.op-nav-card.active {
  color: var(--op-text);
  border-color: var(--op-line-strong);
  background: var(--op-surface-strong);
  --wave-glow: 0.28;
}

.op-nav-card.active::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -1px;
  bottom: 12px;
  width: 2px;
  background: var(--op-accent);
  opacity: 0.9;
  animation: opAmbientBreath 4.8s ease-in-out infinite;
}

.op-nav-card .op-nav-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.op-nav-card .op-nav-divider {
  width: 1px;
  height: 38px;
  background: var(--op-line);
}

.op-nav-card .op-nav-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.op-nav-card .op-nav-copy small {
  color: var(--op-text-faint);
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.op-nav-card .op-nav-copy b {
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.11em;
}

.op-nav-note {
  padding: var(--op-space-4);
  border-left: 1px solid var(--op-line);
  color: var(--op-text-muted);
  font-size: 12px;
}

.op-lab-main {
  min-width: 0;
}

.op-lab-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--op-space-5);
  margin-bottom: var(--op-space-5);
}

.op-lab-intro h1 {
  max-width: 760px;
  margin: 6px 0 8px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 540;
  letter-spacing: -0.045em;
}

.op-lab-intro p {
  max-width: 740px;
  margin: 0;
  color: var(--op-text-muted);
}

.op-lab-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.op-control,
.op-icon-control {
  min-height: 44px;
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius-xs);
  color: var(--op-text);
  background: var(--op-surface);
}

.op-control {
  padding: 0 34px 0 12px;
}

.op-icon-control {
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.op-icon-control:hover,
.op-control:hover {
  border-color: var(--op-line-strong);
}

.op-lab-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: var(--op-space-4);
  padding: 8px 12px;
  border: 1px solid rgba(var(--op-warning-rgb), 0.4);
  color: var(--op-text-muted);
  background: rgba(var(--op-warning-rgb), 0.045);
  font-size: 12px;
}

.op-lab-safety b { color: var(--op-warning); }

.op-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--op-warning);
  opacity: 0.78;
  animation: opAmbientBreath 3.8s ease-in-out infinite;
}

.op-lab-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--op-space-4);
  border-top: 1px solid var(--op-line);
  border-left: 1px solid var(--op-line);
}

.op-lab-metrics > div {
  min-height: 66px;
  padding: 10px 12px;
  border-right: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
}

.op-lab-metrics small {
  display: block;
  color: var(--op-text-faint);
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.op-lab-metrics b {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 560;
}

#smithingTrainingRoot {
  position: relative;
  min-height: 670px;
  border: 1px solid var(--op-line);
  background: var(--op-bg-raised);
  box-shadow: 0 26px 70px var(--op-shadow);
  overflow: clip;
}

#smithingTrainingRoot::before {
  content: "";
  position: absolute;
  inset: -30% 15% auto;
  height: 240px;
  z-index: 0;
  pointer-events: none;
  background: rgba(var(--op-accent-rgb), 0.08);
  filter: blur(72px);
  opacity: 0.42;
  animation: opAmbientBreath 5.4s ease-in-out infinite;
}

.st-system {
  position: relative;
  z-index: 1;
  min-height: 668px;
}

.st-system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--op-line);
  background: rgba(0, 0, 0, 0.04);
}

.st-system-header > div {
  display: grid;
  gap: 2px;
}

.st-system-header > div small,
.st-rail header small,
.st-stage-heading small,
.st-focus-card > small,
.st-requirements header small,
.st-skill-card > small,
.st-training-costs small,
.st-outcome > small,
.st-confirm-panel > small {
  color: var(--op-text-faint);
}

.st-system-header > div b {
  font-size: 20px;
  font-weight: 560;
}

.st-system-header nav,
.st-operation-tabs {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--op-line);
}

.st-system-header nav button,
.st-operation-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 18px;
  color: var(--op-text-muted);
  background: transparent;
  cursor: pointer;
}

.st-system-header nav button + button,
.st-operation-tabs button + button {
  border-left: 1px solid var(--op-line);
}

.st-system-header nav button.active,
.st-operation-tabs button.active {
  color: var(--op-text);
  background: var(--op-surface-strong);
}

.st-system-header nav button.active::after,
.st-operation-tabs button.active::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 5px;
  left: 9px;
  height: 1px;
  background: var(--op-accent);
}

.st-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 596px;
}

.st-rail {
  min-width: 0;
  border-right: 1px solid var(--op-line);
  background: var(--op-surface-soft);
}

.st-rail > header {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-bottom: 1px solid var(--op-line);
}

.st-rail > header b {
  font-size: 12px;
  font-weight: 500;
  color: var(--op-text-muted);
}

.st-picker-list {
  display: grid;
  align-content: start;
}

.st-picker-group-label {
  min-height: 28px;
  padding: 8px 12px 5px;
  border-bottom: 1px solid var(--op-line-faint);
  color: var(--op-text-faint);
  font-family: var(--op-font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.st-picker-row {
  --wave-glow: 0;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--op-line-faint);
  color: var(--op-text-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--op-fast) var(--op-ease),
    color var(--op-fast) ease,
    background-color var(--op-fast) ease,
    border-color var(--op-fast) ease;
  isolation: isolate;
}

.st-picker-row:hover,
.st-picker-row:focus-visible {
  color: var(--op-text);
  background: rgba(var(--op-accent-rgb), 0.035);
  transform: translate3d(4px, 0, 0);
  --wave-glow: 0.3;
}

.st-picker-row.selected {
  color: var(--op-text);
  background: var(--op-surface-strong);
  border-left: 2px solid var(--op-accent);
}

.st-picker-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.st-picker-row b,
.st-picker-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-picker-row b {
  font-size: 12px;
  font-weight: 560;
}

.st-picker-row small {
  color: var(--op-text-faint);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.st-picker-row strong {
  font-family: var(--op-font-mono);
  font-size: 10px;
  font-weight: 600;
}

.st-line-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--op-line);
  color: var(--op-text);
}

.st-stage {
  position: relative;
  min-width: 0;
  padding: 22px;
}

.st-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--op-space-4);
  margin-bottom: 18px;
}

.st-stage-heading h2 {
  margin: 4px 0 2px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 540;
  letter-spacing: -0.035em;
}

.st-stage-heading h2 span { color: var(--op-accent); }
.st-stage-heading p { margin: 0; color: var(--op-text-muted); font-size: 12px; }

.st-energy-dots {
  display: inline-flex;
  gap: 7px;
  padding-top: 9px;
}

.st-energy-dots i {
  display: block;
  width: 18px;
  height: 5px;
  border: 1px solid var(--op-line);
  background: transparent;
}

.st-energy-dots i.active {
  border-color: var(--op-accent);
  background: var(--op-accent);
}

.st-operation-tabs {
  width: max-content;
  margin-bottom: 18px;
}

.st-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  border-top: 1px solid var(--op-line);
  border-left: 1px solid var(--op-line);
}

.st-focus-card,
.st-requirements {
  min-height: 310px;
  padding: 20px;
  border-right: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
  background: rgba(255, 255, 255, 0.012);
}

.st-focus-card {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr;
}

.st-weapon-silhouette {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin-bottom: 22px;
  border: 1px solid var(--op-line);
}

.st-weapon-silhouette::before,
.st-weapon-silhouette::after,
.st-weapon-silhouette i {
  content: "";
  position: absolute;
  background: var(--op-text-muted);
  transform: rotate(-42deg);
}

.st-weapon-silhouette::before { width: 62px; height: 3px; }
.st-weapon-silhouette::after { width: 3px; height: 54px; margin: 30px 0 0 -31px; }
.st-weapon-silhouette i { width: 22px; height: 2px; margin: 20px 0 0 -21px; transform: rotate(48deg); }
.st-weapon-silhouette span { position: absolute; right: 7px; bottom: 5px; font-family: var(--op-font-mono); color: var(--op-accent); }

.st-focus-card h3,
.st-requirements header b,
.st-skill-card h3,
.st-outcome h3,
.st-confirm-panel h3 {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 560;
}

.st-focus-card p,
.st-risk-note,
.st-skill-card p,
.st-outcome p,
.st-confirm-panel p {
  margin: 0;
  color: var(--op-text-muted);
  font-size: 12px;
}

.st-meter {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.st-meter > span { display: grid; }
.st-meter b { font-size: 23px; font-weight: 520; }
.st-meter small { color: var(--op-text-faint); }
.st-meter > i { display: block; height: 3px; background: var(--op-line-faint); overflow: hidden; }
.st-meter > i > u { display: block; width: var(--st-meter); height: 100%; background: var(--op-accent); transform-origin: left; animation: opMeterReveal var(--op-slow) var(--op-ease) both; }

.st-requirements > header {
  display: grid;
  margin-bottom: 14px;
}

.st-requirement-list { display: grid; border-top: 1px solid var(--op-line-faint); }
.st-requirement { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--op-line-faint); }
.st-requirement > span { display: grid; }
.st-requirement b { font-size: 12px; font-weight: 560; }
.st-requirement small { color: var(--op-text-faint); font-size: 9px; letter-spacing: 0.02em; text-transform: none; }
.st-requirement strong { font-family: var(--op-font-mono); font-size: 11px; }
.st-requirement.ready strong { color: var(--op-success); }
.st-requirement.missing strong { color: var(--op-danger); }

.st-empty-note { min-height: 66px; padding: 14px 0; border-block: 1px solid var(--op-line-faint); color: var(--op-warning); font-size: 11px; }
.st-cost-row { display: flex; justify-content: space-between; margin: 18px 0 10px; padding: 10px 0; border-block: 1px solid var(--op-line-faint); font-size: 12px; }
.st-cost-row b { font-family: var(--op-font-mono); }
.st-risk-note { padding-left: 11px; border-left: 2px solid var(--op-warning); }

.st-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.st-chip {
  --wave-glow: 0;
  position: relative;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius-xs);
  color: var(--op-text-muted);
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--op-fast) var(--op-ease), border-color var(--op-fast) ease, color var(--op-fast) ease;
}

.st-chip:hover,
.st-chip.active { color: var(--op-text); border-color: var(--op-line-strong); --wave-glow: 0.28; }
.st-chip small { margin-left: 5px; color: var(--op-text-faint); }

.st-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--op-space-4);
  min-height: 72px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--op-line);
}

.st-action-footer > span {
  position: relative;
  padding-left: 15px;
  color: var(--op-text-muted);
  font-size: 12px;
}

.st-action-footer > span::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.st-action-footer > span.ready { color: var(--op-success); }
.st-action-footer > span.blocked { color: var(--op-danger); }

.st-button {
  position: relative;
  min-height: 44px;
  min-width: 132px;
  padding: 0 16px;
  border: 1px solid var(--op-line);
  border-radius: var(--op-radius-xs);
  color: var(--op-text);
  background: transparent;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: transform var(--op-fast) var(--op-ease), border-color var(--op-fast) ease, color var(--op-fast) ease, background-color var(--op-fast) ease;
  isolation: isolate;
}

.st-button.primary { --wave-glow: 0.16; border-color: var(--op-line-strong); background: var(--op-text); color: var(--op-bg); }
.st-button.primary:hover { --wave-glow: 0.58; transform: translate3d(0, -3px, 0); }
.st-button.quiet:hover { border-color: var(--op-line-strong); }
.st-button:disabled { cursor: not-allowed; opacity: 0.35; transform: none; --wave-glow: 0; }

.st-training-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
}

.st-skill-card { min-height: 250px; padding: 22px; background: rgba(255, 255, 255, 0.012); }
.st-skill-card.mastered { border-left: 1px solid var(--op-line); background: rgba(var(--op-accent-rgb), 0.035); }
.st-skill-card b { display: block; margin: 24px 0 8px; color: var(--op-accent); font-size: 16px; font-weight: 560; }
.st-compare-arrow { display: grid; place-items: center; color: var(--op-text-faint); border-left: 1px solid var(--op-line); }

.st-training-costs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid var(--op-line);
  border-left: 1px solid var(--op-line);
}

.st-training-costs > div {
  display: grid;
  min-height: 86px;
  padding: 12px;
  border-right: 1px solid var(--op-line);
  border-bottom: 1px solid var(--op-line);
}

.st-training-costs b { align-self: end; font-size: 18px; font-weight: 540; }
.st-training-costs span { color: var(--op-text-faint); font-size: 10px; }

.st-outcome {
  position: absolute;
  inset: 18px;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: clamp(24px, 7vw, 76px);
  border: 1px solid var(--op-line-strong);
  background: var(--op-surface-strong);
  animation: opPanelEnter var(--op-medium) var(--op-ease) both;
}

.st-outcome::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(var(--op-accent-rgb), 0.28);
  pointer-events: none;
  opacity: 0.55;
}

.st-outcome.success > small { color: var(--op-success); }
.st-outcome.failure > small { color: var(--op-warning); }
.st-outcome h3 { font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.04em; }
.st-outcome p { max-width: 560px; margin-bottom: 22px; }
.st-reveal { display: grid; width: min(480px, 100%); margin-bottom: 22px; padding: 16px; border: 1px solid rgba(var(--op-accent-rgb), 0.48); }
.st-reveal small { color: var(--op-text-faint); }
.st-reveal b { font-size: 18px; font-weight: 560; }
.st-reveal span { color: var(--op-text-muted); font-size: 12px; }

.st-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--op-backdrop);
  animation: opFadeIn var(--op-fast) ease both;
}

.st-confirm-panel {
  width: min(520px, 100%);
  padding: 26px;
  border: 1px solid var(--op-line-strong);
  background: var(--op-surface-strong);
  box-shadow: 0 28px 80px var(--op-shadow);
  animation: opPanelEnter var(--op-medium) var(--op-ease) both;
}

.st-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

@keyframes opAmbientBreath {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.34; }
}

@keyframes opMeterReveal {
  from { transform: scaleX(0); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes opPanelEnter {
  from { transform: translate3d(0, 8px, 0) scale(0.988); opacity: 0; }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes opFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1120px) {
  .op-lab-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .op-nav-card { grid-template-columns: 34px 1px minmax(0, 1fr); gap: 9px; padding-inline: 10px; }
  .op-nav-card .op-nav-icon { width: 34px; }
  .st-workspace { grid-template-columns: 230px minmax(0, 1fr); }
  .st-process-grid { grid-template-columns: 1fr; }
  .st-focus-card, .st-requirements { min-height: auto; }
}

@media (max-width: 820px) {
  .op-lab-app { padding: 16px; }
  .op-lab-topbar { min-height: 58px; }
  .op-lab-badge { display: none; }
  .op-lab-layout { display: block; padding-top: 18px; }
  .op-nav-shell { position: static; margin-bottom: 18px; }
  .op-wave-nav { display: flex; gap: 7px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: thin; }
  .op-nav-card { flex: 0 0 124px; grid-template-columns: 28px 1px minmax(0, 1fr); min-height: 58px; padding: 8px; transform: none; }
  .op-nav-card .op-nav-icon { width: 28px; height: 32px; font-size: 16px; }
  .op-nav-card .op-nav-divider { height: 30px; }
  .op-nav-card .op-nav-copy small { display: none; }
  .op-nav-card .op-nav-copy b { font-size: 10px; }
  .op-nav-note { display: none; }
  .op-lab-intro { grid-template-columns: 1fr; align-items: start; }
  .op-lab-controls { justify-content: flex-start; }
  .op-lab-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #smithingTrainingRoot, .st-system { min-height: 0; }
  .st-workspace { grid-template-columns: 1fr; }
  .st-rail { border-right: 0; border-bottom: 1px solid var(--op-line); }
  .st-picker-list { display: grid; max-height: 246px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
  .st-picker-row { width: 100%; border-right: 0; }
  .st-stage { padding: 16px; }
}

@media (max-width: 560px) {
  .op-brand { letter-spacing: 0.28em; font-size: 12px; }
  .op-lab-intro h1 { font-size: 34px; }
  .op-lab-controls { display: grid; grid-template-columns: 1fr 44px 44px; width: 100%; }
  .op-control { width: 100%; min-width: 0; }
  .op-lab-metrics { grid-template-columns: 1fr 1fr; }
  .st-system-header { align-items: flex-start; gap: 10px; }
  .st-system-header nav button { padding-inline: 11px; font-size: 11px; }
  .st-stage-heading { display: grid; }
  .st-energy-dots { padding-top: 3px; }
  .st-operation-tabs { width: 100%; }
  .st-operation-tabs button { flex: 1; padding-inline: 8px; }
  .st-training-compare { grid-template-columns: 1fr; }
  .st-compare-arrow { min-height: 34px; border-left: 0; border-top: 1px solid var(--op-line); transform: rotate(90deg); }
  .st-skill-card.mastered { border-left: 0; border-top: 1px solid var(--op-line); }
  .st-training-costs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-action-footer { align-items: stretch; flex-direction: column; }
  .st-button { width: 100%; }
  .st-confirm-actions { flex-direction: column-reverse; }
  .st-outcome { inset: 8px; padding: 24px; }
}

@media (max-width: 360px) {
  .op-lab-app { padding: 10px; }
  .op-lab-controls { grid-template-columns: 1fr 44px; }
  .op-lab-controls .op-icon-control:last-child { grid-column: 2; }
  .op-lab-metrics { grid-template-columns: 1fr; }
  .st-stage { padding: 12px; }
  .st-system-header { display: grid; }
  .st-system-header nav { width: 100%; }
  .st-system-header nav button { flex: 1; }
  .st-process-grid { display: block; }
  .st-training-costs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .outpost-design-lab *,
  .outpost-design-lab *::before,
  .outpost-design-lab *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

.outpost-design-lab[data-op-motion="reduced"] *,
.outpost-design-lab[data-op-motion="reduced"] *::before,
.outpost-design-lab[data-op-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
}

.outpost-design-lab[data-op-motion="reduced"] .op-nav-card,
.outpost-design-lab[data-op-motion="reduced"] .st-picker-row,
.outpost-design-lab[data-op-motion="reduced"] .st-button {
  transform: none !important;
}
