:root {
  --bg: #0a0b0c;
  --bg-soft: #121416;
  --panel: rgba(17, 17, 18, 0.82);
  --panel-strong: #141517;
  --card: rgba(24, 24, 25, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f3f1;
  --muted: #b5b2ae;
  --soft: #7f7a76;
  --accent: #d12c2c;
  --accent-strong: #b41f1f;
  --accent-soft: rgba(209, 44, 44, 0.14);
  --shadow: rgba(0, 0, 0, 0.38);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(209, 44, 44, 0.12), transparent 28%),
    linear-gradient(180deg, #090909 0%, #0d0d0d 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #050607;
  z-index: 50;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: loaderAppear 1.4s ease both;
}

.loader__logo {
  display: block;
  width: 94px;
  height: 94px;
  overflow: visible;
}

.loader__word {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: 0.18em;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  animation: textReveal 0.8s ease 2.12s forwards;
}

.loader__tag {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 0.8rem;
  opacity: 0;
  animation: textReveal 0.8s ease 2.46s forwards;
}

.logo-forming__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.logo-forming__mask {
  mask-type: luminance;
}

.logo-forming.is-forming .logo-forming__path--main {
  animation: traceSymbol 1.9s cubic-bezier(0.55, 0, 0.3, 1) 0.04s forwards;
}

.logo-forming.is-forming .logo-forming__path--detail {
  animation: traceSymbol 1.32s cubic-bezier(0.55, 0, 0.3, 1) 0.55s forwards;
}

.logo-forming__final {
  opacity: 0;
}

.logo-forming.is-forming .logo-forming__final {
  animation: logoComplete 0.34s ease 1.78s forwards;
}

.loader.fallback-logo .loader__logo {
  display: none;
}

.home-page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-page.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand__name {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.main-stage {
  display: grid;
  gap: 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  min-height: 500px;
  padding: 24px 0 10px;
}

.hero__content {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.hero__content > .eyebrow {
  padding: 8px 10px;
  letter-spacing: 0.065em;
  font-size: 0.75rem;
  line-height: 1.45;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
  max-width: 620px;
}

.hero__lede {
  margin: 0;
  color: var(--muted);
  max-width: 600px;
  font-size: 1.08rem;
  line-height: 1.68;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 14px 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 24px rgba(209, 44, 44, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--line);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hero__actions .primary-btn,
.hero__actions .secondary-btn {
  min-height: 52px;
}

.hero__visual {
  position: relative;
  height: 400px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  border-radius: 24px;
  overflow: hidden;
}

.network-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(209, 44, 44, 0.22) 25%, rgba(209, 44, 44, 0.08) 60%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 0 0 1px rgba(209, 44, 44, 0.18);
  animation: decisionPulse 9s ease-in-out infinite;
}

.network-core::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1px solid rgba(209, 44, 44, 0.16);
  border-radius: inherit;
  animation: decisionRipple 10s ease-in-out infinite;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4f3f0;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04);
}

.node--one { left: 24%; top: 25%; }
.node--two { right: 20%; top: 28%; }
.node--three { left: 30%; bottom: 20%; }
.node--four { right: 30%; bottom: 22%; }

.node--one { animation: nodeDriftOne 12s ease-in-out infinite; }
.node--two { animation: nodeDriftTwo 14s ease-in-out infinite; }
.node--three { animation: nodeDriftThree 13s ease-in-out infinite; }
.node--four { animation: nodeDriftFour 15s ease-in-out infinite; }

.line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(209, 44, 44, 0.28) 100%);
  transform-origin: center center;
  opacity: 0.72;
  animation: connectionBreath 8s ease-in-out infinite;
}

.line--one { transform: translate(-50%, -50%) rotate(36deg); animation-delay: -2s; }
.line--two { transform: translate(-50%, -50%) rotate(-36deg); animation-delay: -5s; }
.line--three { transform: translate(-50%, -50%) rotate(90deg); animation-delay: -1s; }

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.01));
  border-radius: 18px;
  overflow: hidden;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(209, 44, 44, 0.8) 50%, transparent 100%);
}

.path-card--featured {
  background: linear-gradient(180deg, rgba(209, 44, 44, 0.1), rgba(255,255,255,0.01));
  border-color: rgba(209, 44, 44, 0.26);
}

.path-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.path-card__index {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.path-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(209, 44, 44, 0.2);
  color: #f8d0d0;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.path-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.path-card__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  color: #f4d4d4;
  font-size: 0.9rem;
  font-weight: 700;
}

.path-card__action span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.path-card__action:hover span {
  transform: translate(2px, -2px);
}

.concept-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 0;
}

.concept-panel__copy {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
}

.concept-panel__copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.concept-panel__copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.concept-grid article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
}

.concept-grid span {
  display: block;
  margin-bottom: 10px;
  color: #f7d7d7;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.concept-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes decisionPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 1px rgba(209, 44, 44, 0.18), 0 0 22px rgba(209, 44, 44, 0.06);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.045);
    box-shadow: 0 0 0 7px rgba(209, 44, 44, 0.035), 0 0 34px rgba(209, 44, 44, 0.11);
  }
}

@keyframes decisionRipple {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.035);
  }
}

@keyframes connectionBreath {
  0%,
  100% { opacity: 0.42; }
  50% { opacity: 0.78; }
}

@keyframes nodeDriftOne {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -2px); }
}

@keyframes nodeDriftTwo {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, 2px); }
}

@keyframes nodeDriftThree {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 1px); }
}

@keyframes nodeDriftFour {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -1px); }
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(209, 44, 44, 0.12), transparent 34%),
    rgba(6, 7, 8, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.transition-overlay[hidden] {
  display: none;
}

.transition-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.transition-overlay__logo {
  width: clamp(76px, 12vw, 112px);
  height: clamp(76px, 12vw, 112px);
  overflow: visible;
}

.business-app {
  min-height: 100vh;
  animation: viewArrive 0.45s ease both;
}

.business-header {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.business-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.business-brand__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.business-header__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.business-header__crumb strong {
  color: var(--text);
  font-weight: 600;
}

.text-btn {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: var(--text);
}

.business-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 9vh, 100px) 0 72px;
}

.mode-view {
  max-width: 760px;
  animation: viewArrive 0.35s ease both;
}

.mode-view[hidden],
.experience-view[hidden],
.consequence-panel[hidden],
.arrival-actions[hidden] {
  display: none;
}

.saved-progress {
  width: min(100%, 600px);
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.saved-progress[hidden] {
  display: none;
}

.saved-progress p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.saved-progress p:last-child {
  margin-bottom: 0;
}

.saved-progress h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.simulation-history {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.simulation-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.simulation-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
}

.simulation-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.simulation-card__status {
  color: var(--muted);
  font-size: 0.75rem;
}

.simulation-card__details {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.simulation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.simulation-card__actions .secondary-btn {
  margin-top: 0;
}

.saved-progress .secondary-btn {
  display: block;
  margin-top: 12px;
}

.saved-progress > #continue-saved-progress,
.saved-progress > #recover-saved-backup {
  display: none;
}

.progress-confirmation {
  width: min(460px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 24px 70px var(--shadow);
}

.progress-confirmation::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.progress-confirmation h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.progress-confirmation > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.progress-confirmation__status {
  min-height: 1.5em;
  margin-bottom: 0;
  color: #ffd0d0 !important;
}

.progress-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.mode-view h1,
.situation-panel h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.business-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.85;
}

.intro-note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 580px;
  margin: 34px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.intro-note__mark {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.intro-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.business-option {
  width: min(100%, 600px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 32px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(209, 44, 44, 0.3);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(209, 44, 44, 0.1), rgba(255, 255, 255, 0.015) 62%);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.business-option:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 44, 44, 0.62);
  background: linear-gradient(145deg, rgba(209, 44, 44, 0.15), rgba(255, 255, 255, 0.02) 62%);
}

.business-option__number,
.business-option__description {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
}

.business-option__title {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.business-option__description {
  max-width: 440px;
  line-height: 1.7;
  letter-spacing: 0;
}

.business-option__action {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #f4d4d4;
  font-size: 0.82rem;
  font-weight: 700;
}

.mode-back {
  display: block;
  margin-top: 20px;
}

.experience-view {
  animation: viewArrive 0.35s ease both;
}

.experience-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -30px 0 28px;
}

.experience-toolbar .simulation-note {
  margin-left: auto;
}

.resource-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.resource-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.resource-panel__heading .eyebrow {
  padding: 0;
  border: 0;
  background: transparent;
}

.simulation-note {
  color: var(--soft);
  font-size: 0.66rem;
  text-align: right;
}

.simulation-note.is-warning {
  color: #e6b2a0;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
}

.resource-item {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.resource-item__label {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.resource-item__value {
  color: var(--text);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.accounting-summary {
  margin: 13px 0 0;
  color: var(--soft);
  font-size: 0.68rem;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.supplier-market[hidden],
.transit-panel[hidden],
.inventory-sort-game[hidden] {
  display: none;
}

.customer-inquiry[hidden] {
  display: none;
}

.customer-inquiry {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.customer-inquiry__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-inquiry__heading .eyebrow {
  margin: 0;
}

.customer-search-time {
  color: var(--soft);
  font-size: 0.7rem;
  text-align: right;
}

.customer-inquiry h2 {
  margin: 22px 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.055em;
}

.customer-message {
  max-width: 680px;
  padding: 18px 20px;
  border: 1px solid rgba(209, 44, 44, 0.25);
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(135deg, rgba(209, 44, 44, 0.085), rgba(255, 255, 255, 0.018));
}

.customer-message__label {
  color: #f1c5c5;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.customer-message p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.customer-inquiry__prompt {
  max-width: 650px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.customer-inquiry__stock {
  max-width: 680px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.016);
  overflow: hidden;
}

.customer-inquiry__stock-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.customer-stock-count {
  color: var(--soft);
  font-size: 0.7rem;
}

.customer-stock-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.customer-stock-row:last-child {
  border-bottom: 0;
}

.customer-stock-row strong {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.customer-stock-row > span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.customer-stock-row .customer-stock-row__organization {
  color: #d2c3a3;
  text-align: right;
}

.customer-stock-row .customer-stock-row__organization.is-misplaced {
  color: #e4a7a0;
}

.customer-stock-empty {
  margin: 0;
  padding: 15px 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.customer-stock-result {
  max-width: 680px;
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(209, 44, 44, 0.07), transparent 85%);
  animation: viewArrive 0.3s ease both;
}

.customer-stock-result[hidden],
.customer-response-actions[hidden] {
  display: none;
}

.customer-stock-status--unavailable {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--muted);
}

.customer-stock-result p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.customer-response-actions {
  margin-top: 20px;
  animation: viewArrive 0.3s ease both;
}

.customer-response-actions > p {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 0.82rem;
}

.customer-response-actions .secondary-btn {
  margin-left: 8px;
}

.supplier-market,
.transit-panel,
.inventory-sort-game {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.supplier-market__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.supplier-market__intro p,
.waiting-activities__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.supplier-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.supplier-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.supplier-card:hover,
.supplier-card.is-selected {
  border-color: rgba(209, 44, 44, 0.55);
  background: rgba(209, 44, 44, 0.055);
}

.supplier-card.is-selected {
  box-shadow: inset 0 0 0 1px rgba(209, 44, 44, 0.18);
}

.supplier-details {
  margin-top: 20px;
  padding: clamp(17px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
}

.supplier-details[hidden] {
  display: none;
}

.supplier-details__heading,
.order-summary__title,
.sort-tray__heading,
.sort-category__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.supplier-details__eyebrow {
  display: block;
  color: var(--soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.supplier-details__heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.05em;
}

.supplier-quality {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f1d0d0;
  font-size: 0.66rem;
}

.supplier-card__name {
  font-size: 1.08rem;
  letter-spacing: -0.04em;
}

.supplier-card__quality,
.supplier-card__terms,
.supplier-card__note {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.supplier-card__terms {
  color: #f1d0d0;
  font-size: 0.65rem;
}

.supplier-card__note {
  color: var(--soft);
}

.product-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.catalog-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.15);
}

.garment-art {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.catalog-product > .garment-art {
  width: 48px;
  height: 52px;
}

.garment-art svg {
  width: 42px;
  height: 42px;
}

.garment-art svg g {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.garment-art--coral { color: #c85053; }
.garment-art--sand { color: #b18c67; }
.garment-art--lilac { color: #807095; }
.garment-art--blue { color: #587a91; }
.garment-art--olive { color: #78805c; }

.catalog-product__copy {
  min-width: 0;
}

.catalog-product__copy strong,
.catalog-product__copy span,
.catalog-product__copy b {
  display: block;
}

.catalog-product__copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product__copy span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.66rem;
}

.catalog-product__copy b {
  margin-top: 7px;
  color: #f1d0d0;
  font-size: 0.66rem;
  font-weight: 600;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quantity-stepper__button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 1rem;
}

.quantity-stepper__button:hover {
  border-color: rgba(209, 44, 44, 0.55);
}

.quantity-stepper__value {
  min-width: 18px;
  color: var(--text);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.receiving-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.receiving-methods legend {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receiving-method {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.receiving-method:has(input:checked) {
  border-color: rgba(209, 44, 44, 0.52);
  background: rgba(209, 44, 44, 0.055);
}

.receiving-method input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.receiving-method strong,
.receiving-method small {
  display: block;
}

.receiving-method strong {
  font-size: 0.78rem;
}

.receiving-method small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.order-summary {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.order-summary__title {
  color: var(--soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.order-summary__title span:last-child {
  color: var(--muted);
  letter-spacing: 0;
}

.order-costs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 18px;
  margin: 16px 0 0;
  font-size: 0.76rem;
}

.order-costs dt { color: var(--muted); }
.order-costs dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.order-costs .order-costs__total { color: #f1d0d0; font-weight: 700; }
.order-costs .is-negative { color: #ff8686; }

.order-validation,
.publication-activity-note {
  min-height: 1.4em;
  margin: 13px 0;
  color: var(--soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

.order-validation.is-warning { color: #e6b2a0; }

.transit-panel__status {
  display: flex;
  align-items: center;
  gap: 13px;
}

.transit-panel__status h2 {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.05em;
}

.transit-indicator {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.transit-panel__summary,
.transit-panel__countdown {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.transit-panel__countdown {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f1d0d0;
  font-size: 0.68rem;
}

.waiting-activities {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.018);
}

.waiting-activities__heading p {
  margin-top: 7px;
}

.waiting-activities__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.waiting-activities__actions .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  font-size: 0.72rem;
  text-align: left;
}

.waiting-activities__actions .secondary-btn span {
  flex: 0 0 auto;
  color: #f1d0d0;
  font-size: 0.65rem;
}

.waiting-activities__actions .secondary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.transit-activity-note {
  min-height: 1.5em;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.transit-day-button {
  margin-top: 10px;
}

.pickup-order-button {
  margin-top: 18px;
}

.pickup-order-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.inventory-sort-game__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-sort-game__heading .eyebrow {
  margin: 0;
}

.inventory-sort-game h2 {
  margin: 22px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.055em;
}

.inventory-sort-game__lede {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.sort-time-estimate {
  color: var(--soft);
  font-size: 0.68rem;
}

.sort-board {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  margin-top: 22px;
}

.sort-tray,
.sort-category {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.13);
}

.sort-tray__heading h3,
.sort-category__heading h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.sort-tray__heading span,
.sort-category__count {
  color: var(--soft);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
}

.sorting-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 116px;
  margin-top: 13px;
}

.sorting-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: grab;
  touch-action: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sorting-item:hover,
.sorting-item.is-focused {
  border-color: rgba(209, 44, 44, 0.6);
  background: rgba(209, 44, 44, 0.07);
}

.sorting-item:focus-visible {
  outline: 2px solid rgba(209, 44, 44, 0.78);
  outline-offset: 2px;
}

.sorting-item.is-dragging { opacity: 0.38; cursor: grabbing; }
.sorting-item.is-placed {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 6px;
  text-align: left;
}

.sorting-item__art {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.sorting-item__art svg { width: 42px; height: 42px; }
.sorting-item__art svg g { fill: currentColor; stroke: rgba(255, 255, 255, 0.75); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sorting-item__code { color: var(--soft); font-size: 0.55rem; letter-spacing: 0.1em; }
.sorting-item__name { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.sorting-item__destination { color: #f1d0d0; font-size: 0.6rem; }
.sorting-item.is-placed .sorting-item__art { grid-row: 1 / span 2; width: 38px; height: 36px; }
.sorting-item.is-placed .sorting-item__art svg { width: 34px; height: 34px; }
.sorting-item.is-placed .sorting-item__destination { grid-column: 2; grid-row: 2; }

.sort-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sort-category {
  min-height: 116px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sort-category:focus-visible,
.sort-category:focus-within,
.sort-category.is-drop-target {
  border-color: rgba(209, 44, 44, 0.68);
  background: rgba(209, 44, 44, 0.065);
}

.sort-category__hint {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 0.6rem;
}

.sort-category__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-height: 56px;
  margin-top: 9px;
}

.sort-feedback {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.sort-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.publication-activity-note {
  margin-bottom: 0;
}

.situation-panel {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.situation-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.situation-progress {
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.situation-panel h1 {
  margin-top: 24px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.situation-panel__text {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.decision-area {
  margin-top: 34px;
}

.decision-area h2 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-options {
  display: grid;
  gap: 10px;
}

.first-sale-panel[hidden] {
  display: none;
}

.first-sale-panel {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.first-sale-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.first-sale-panel__heading .eyebrow {
  margin: 0;
}

.first-sale-panel h2 {
  margin: 20px 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.first-sale-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.first-sale-details > div {
  min-width: 0;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
}

.first-sale-details dt {
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.first-sale-details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
}

.first-sale-note {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.first-sale-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.first-sale-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 560px) {
  .first-sale-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

.publication-game[hidden],
.stage-actions[hidden] {
  display: none;
}

.publication-game {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.publication-game__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.publication-game__heading p {
  margin: 0;
  color: var(--soft);
  font-size: 0.68rem;
  text-align: right;
}

.publication-game h2 {
  margin: 22px 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.055em;
}

.publication-game__lede {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.publication-form {
  margin-top: 26px;
}

.publication-choices {
  display: grid;
  gap: 24px;
}

.publication-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.publication-choice-group legend {
  margin-bottom: 11px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-choice-group__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.publication-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.publication-choice:has(input:checked) {
  border-color: rgba(209, 44, 44, 0.55);
  background: rgba(209, 44, 44, 0.07);
}

.publication-choice:focus-within {
  outline: 2px solid rgba(209, 44, 44, 0.72);
  outline-offset: 2px;
}

.publication-choice input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.publication-choice__copy strong,
.publication-choice__copy span {
  display: block;
}

.publication-choice__copy strong {
  margin-bottom: 5px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.publication-choice__copy span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.publication-form > .primary-btn {
  margin-top: 24px;
}

.decision-option {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.decision-option:hover {
  transform: translateX(3px);
  border-color: rgba(209, 44, 44, 0.45);
  background: rgba(209, 44, 44, 0.055);
}

.decision-option__index {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.decision-option__copy strong,
.decision-option__copy span {
  display: block;
}

.decision-option__copy strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.decision-option__copy span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.decision-option__arrow {
  color: var(--soft);
}

.consequence-panel {
  margin-top: 30px;
  padding: 22px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(209, 44, 44, 0.075), transparent 85%);
  animation: viewArrive 0.35s ease both;
}

.consequence-panel h2 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.consequence-panel p {
  max-width: 690px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.arrival-actions {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.arrival-actions__note {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.stage-actions {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: viewArrive 0.35s ease both;
}

.arrival-actions .secondary-btn {
  margin-left: 8px;
}

@keyframes traceSymbol {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logoComplete {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes viewArrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderAppear {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .concept-panel,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
    padding-top: 36px;
  }

  .hero h1 {
    max-width: 620px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-list {
    grid-template-columns: 1fr;
  }

  .sort-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-page {
    width: min(var(--max-width), calc(100% - 20px));
    padding-top: 18px;
  }

  .top-nav {
    gap: 12px 18px;
  }

  .top-nav a {
    min-height: 44px;
  }

  .hero__content > .eyebrow {
    max-width: 100%;
    padding: 7px 9px;
    letter-spacing: 0.045em;
    font-size: 0.72rem;
  }

  .hero h1 {
    max-width: 100%;
    line-height: 1;
  }

  .hero__lede {
    line-height: 1.62;
  }

  .hero__visual {
    height: clamp(238px, 66vw, 290px);
    border-radius: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 220px;
    padding: 20px;
  }

  .business-header {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .business-header__crumb {
    order: 3;
    width: 100%;
    padding-left: 40px;
  }

  .business-header > .text-btn {
    font-size: 0.7rem;
  }

  .business-shell {
    width: min(100% - 24px, 900px);
    padding-top: 54px;
  }

  .resource-panel {
    padding: 15px;
  }

  .resource-panel__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .simulation-note {
    text-align: left;
  }

  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-market__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-inquiry__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-search-time {
    text-align: left;
  }

  .customer-stock-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
  }

  .customer-stock-row .customer-stock-row__organization {
    text-align: left;
  }

  .customer-response-actions .secondary-btn {
    margin: 10px 0 0;
  }

  .product-catalog {
    grid-template-columns: 1fr;
  }

  .receiving-methods {
    grid-template-columns: 1fr;
  }

  .waiting-activities__actions {
    grid-template-columns: 1fr;
  }

  .sort-categories {
    grid-template-columns: 1fr;
  }

  .sort-category__items {
    grid-template-columns: 1fr;
  }

  .sort-tray,
  .sort-category {
    padding: 11px;
  }

  .accounting-summary {
    font-size: 0.62rem;
  }

  .publication-game__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-game__heading p {
    text-align: left;
  }

  .publication-choice-group__options {
    grid-template-columns: 1fr;
  }

  .experience-toolbar {
    margin-top: -28px;
    flex-wrap: wrap;
  }

  .experience-toolbar .simulation-note {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .decision-option {
    grid-template-columns: 28px 1fr 16px;
    gap: 10px;
    padding: 15px 12px;
  }

  .arrival-actions .secondary-btn {
    margin: 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-forming__path {
    stroke-dashoffset: 0;
  }

  .logo-forming__final {
    opacity: 1;
    animation: none !important;
  }

  .loader__word,
  .loader__tag {
    animation-delay: 0s !important;
  }
}

/* ==========================================================================
   NYLON LAB — Asistente Virtual Inteligente (UI Component)
   ========================================================================== */

.nylon-lab-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nylon-lab-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(209, 44, 44, 0.25);
}

.nylon-lab-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nylon-lab-toggle.is-active {
  background: var(--accent-strong);
  border-color: var(--accent);
  color: #fff;
}

.nylon-lab-toggle__icon {
  flex-shrink: 0;
  color: inherit;
}

.nylon-lab-drawer {
  position: fixed;
  bottom: 4.8rem;
  right: 1.5rem;
  width: min(390px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 6.5rem));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(14, 15, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: nylonLabFadeIn 0.25s ease-out;
}

.nylon-lab-drawer[hidden] {
  display: none !important;
}

@keyframes nylonLabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nylon-lab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: rgba(20, 22, 26, 0.7);
  border-bottom: 1px solid var(--line);
}

.nylon-lab-header__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nylon-lab-header__title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nylon-lab-header__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nylon-lab-header__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nylon-lab-header__badge-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.nylon-lab-header__badge-dot.is-offline {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.nylon-lab-header__status {
  font-size: 0.72rem;
  color: var(--muted);
}

.nylon-lab-header__status.is-online {
  color: #4ade80;
}

.nylon-lab-header__status.is-offline {
  color: #fbbf24;
}

.nylon-lab-header__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nylon-lab-header__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nylon-lab-mode-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(10, 11, 13, 0.4);
  border-bottom: 1px solid var(--line);
}

.nylon-lab-mode-label {
  font-size: 0.72rem;
  color: var(--soft);
}

.nylon-lab-mode-selector {
  display: flex;
  gap: 0.35rem;
}

.nylon-lab-mode-btn {
  padding: 0.2rem 0.55rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nylon-lab-mode-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.nylon-lab-mode-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nylon-lab-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nylon-lab-messages::-webkit-scrollbar {
  width: 5px;
}

.nylon-lab-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.nylon-lab-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.nylon-lab-message--user {
  align-self: flex-end;
}

.nylon-lab-message--assistant {
  align-self: flex-start;
}

.nylon-lab-message__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  color: var(--soft);
}

.nylon-lab-message--user .nylon-lab-message__meta {
  justify-content: flex-end;
}

.nylon-lab-message__sender {
  font-weight: 600;
  color: var(--muted);
}

.nylon-lab-message__role-tag {
  font-size: 0.65rem;
  padding: 0.05rem 0.35rem;
  background: var(--accent-soft);
  color: #ff9e9e;
  border-radius: 4px;
  border: 1px solid rgba(209, 44, 44, 0.25);
}

.nylon-lab-message__bubble {
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  border-radius: 12px;
  word-break: break-word;
  white-space: pre-wrap;
}

.nylon-lab-message--user .nylon-lab-message__bubble {
  background: rgba(209, 44, 44, 0.16);
  border: 1px solid rgba(209, 44, 44, 0.35);
  color: var(--text);
  border-bottom-right-radius: 2px;
}

.nylon-lab-message--assistant .nylon-lab-message__bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 2px;
}

.nylon-lab-message--error .nylon-lab-message__bubble {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.nylon-lab-typing {
  align-self: flex-start;
}

.nylon-lab-typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.nylon-lab-typing__dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: nylonLabTyping 1.4s infinite ease-in-out both;
}

.nylon-lab-typing__dot:nth-child(1) {
  animation-delay: -0.32s;
}

.nylon-lab-typing__dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes nylonLabTyping {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.nylon-lab-form {
  padding: 0.75rem 1rem;
  background: rgba(14, 15, 18, 0.85);
  border-top: 1px solid var(--line);
}

.nylon-lab-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.nylon-lab-input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  resize: none;
  min-height: 40px;
  max-height: 100px;
}

.nylon-lab-input:focus {
  outline: none;
  border-color: var(--accent);
}

.nylon-lab-send-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.15s ease, background 0.15s ease;
}

.nylon-lab-send-btn:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.nylon-lab-send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nylon-lab-footer-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--soft);
}

@media (max-width: 480px) {
  .nylon-lab-drawer {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.8rem;
    height: calc(100vh - 6rem);
  }

  .nylon-lab-toggle {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ========================================================================== */
/* NYLON — MODO DESAFÍO: MAPA DE HABILIDADES Y PROGRESIÓN                    */
/* ========================================================================== */

.challenges-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 12%, rgba(209, 44, 44, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(18, 20, 24, 0.8) 0%, rgba(7, 8, 10, 0.98) 70%, #050507 100%);
  display: flex;
  flex-direction: column;
  color: var(--text);
  position: relative;
  z-index: 5;
  padding-bottom: 3rem;
  overflow-x: hidden;
}

.challenges-app[hidden] {
  display: none !important;
}

/* Barra Superior de Navegación y Progresión */
.challenges-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.75rem;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.challenges-header__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.challenges-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.challenges-nav-back:hover {
  background: rgba(209, 44, 44, 0.12);
  border-color: rgba(209, 44, 44, 0.4);
  color: #ffffff;
  transform: translateX(-2px);
}

.challenges-brand-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--soft);
  text-transform: uppercase;
}

.challenges-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-tier-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.tier-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: #ff5555;
  border: 1px solid rgba(209, 44, 44, 0.3);
}

.tier-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.user-xp-tracker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  min-width: 175px;
}

.xp-emblem-icon {
  width: auto;
  height: 22px;
  max-width: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(220, 180, 80, 0.35));
  transition: transform 0.25s ease;
}

.user-xp-tracker:hover .xp-emblem-icon {
  transform: scale(1.08);
}

.xp-track-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  gap: 0.5rem;
}

.xp-tag {
  color: #d8b260;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.xp-val {
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.xp-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c48b20 0%, #ffd460 100%);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(220, 180, 60, 0.45);
  transition: width 0.4s ease;
}

.user-currency-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid rgba(209, 44, 44, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(209, 44, 44, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.user-currency-badge:hover {
  border-color: rgba(255, 59, 59, 0.6);
  box-shadow: 0 4px 18px rgba(209, 44, 44, 0.25), inset 0 0 12px rgba(209, 44, 44, 0.15);
}

.nc-emblem-icon {
  width: auto;
  height: 22px;
  max-width: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(209, 44, 44, 0.45));
  transition: transform 0.25s ease;
}

.user-currency-badge:hover .nc-emblem-icon {
  transform: scale(1.08);
}

.nc-amount {
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
}

/* Presentación Inicial del Módulo */
.challenges-intro {
  text-align: center;
  padding: 1.25rem 1.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 820px;
  margin: 0 auto;
}

.challenges-intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff5555;
  background: rgba(209, 44, 44, 0.1);
  border: 1px solid rgba(209, 44, 44, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.15rem;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.challenges-intro__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.challenges-intro__tagline {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #ff7777;
  font-style: italic;
}

.challenges-intro__desc {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 660px;
}

/* Escenario Principal: Viewport del Mapa + Ficha Contextual */
.challenges-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0.5rem auto 0;
  padding: 0 1.5rem;
  width: 100%;
}

.skill-tree-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(209, 44, 44, 0.08) 0%, rgba(13, 14, 18, 0.75) 45%, rgba(6, 7, 9, 0.98) 80%),
    linear-gradient(180deg, rgba(16, 17, 21, 0.85) 0%, rgba(8, 9, 11, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), inset 0 0 60px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.skill-tree-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1000 / 660;
}

.skill-tree-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skill-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-dasharray: 4, 8;
}

.skill-orbit--inner {
  stroke-width: 1.2px;
}

.skill-orbit--outer {
  stroke-width: 1px;
  stroke-dasharray: 3, 10;
}

/* Conexiones SVG entre nodos */
.skill-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2.2px;
  stroke-linecap: round;
  transition: stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease;
}

.skill-path--sub {
  stroke-width: 1.5px;
}

.skill-path--completed {
  stroke: rgba(209, 44, 44, 0.45);
}

.skill-path--available {
  stroke: rgba(255, 255, 255, 0.2);
}

.skill-path--locked {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 4, 6;
}

.skill-path.is-active-path {
  stroke: #ff3b3b !important;
  stroke-width: 3.8px !important;
  filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.85));
  stroke-dasharray: none !important;
  animation: pathPulseGlow 2.5s infinite ease-in-out;
}

@keyframes pathPulseGlow {
  0%, 100% { stroke-width: 3.5px; filter: drop-shadow(0 0 8px rgba(255, 59, 59, 0.7)); }
  50% { stroke-width: 4.2px; filter: drop-shadow(0 0 14px rgba(255, 59, 59, 0.95)); }
}

/* Nodos del Mapa de Habilidades */
.skill-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  z-index: 10;
}

.skill-node:focus-visible {
  outline: 2px solid #ff4444;
  outline-offset: 4px;
  border-radius: 50%;
}

.skill-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.node-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 44, 44, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.skill-node:hover .node-halo,
.skill-node.is-selected .node-halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

.node-disc {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #24262e 0%, #131418 70%, #0a0b0d 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75), inset 0 2px 4px rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: #ffffff;
}

/* Estados Visuales de los Nodos */
.node-state--completed .node-disc {
  border-color: rgba(209, 44, 44, 0.7);
  box-shadow: 0 0 18px rgba(209, 44, 44, 0.4), inset 0 0 10px rgba(209, 44, 44, 0.2);
  color: #ff6666;
}

.node-state--available .node-disc {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f3f3f1;
}

.node-state--locked {
  cursor: default;
}

.node-state--locked:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.node-state--locked .node-disc {
  border-color: rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 35% 35%, #16171c 0%, #0c0d10 75%, #050608 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: var(--soft);
  opacity: 0.6;
}

/* Nodo Seleccionado con Halo Rojo Activo */
.skill-node.is-selected .node-disc {
  border-color: #ff3b3b !important;
  box-shadow: 0 0 26px rgba(255, 59, 59, 0.8), inset 0 0 14px rgba(255, 59, 59, 0.5) !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.node-mini-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1.5px solid rgba(12, 13, 16, 0.9);
}

.node-mini-badge--done {
  background: #d12c2c;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(209, 44, 44, 0.8);
}

.node-mini-badge--open {
  background: #ffffff;
  color: #0c0d10;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.node-mini-badge--lock {
  background: #25272e;
  color: #8c8f99;
}

/* Tipografía de Captura bajo el Nodo */
.node-caption {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
  pointer-events: none;
}

.node-caption__num {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff5555;
  letter-spacing: 0.08em;
}

.node-caption__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f3f3f1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.node-caption__status {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--soft);
}

.status--done {
  color: #ff7777;
}

.status--open {
  color: #cccccc;
}

.status--locked {
  color: #666670;
}

/* Núcleo Central COA */
.skill-node--core {
  cursor: default;
  z-index: 15;
}

.skill-node--core:hover {
  transform: translate(-50%, -50%);
}

.core-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  pointer-events: none;
}

.core-ring--pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(209, 44, 44, 0.35);
  box-shadow: 0 0 20px rgba(209, 44, 44, 0.25);
  animation: corePulse 3s infinite ease-in-out;
}

.core-ring--ticks {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(209, 44, 44, 0.3);
  animation: coreRotate 24s infinite linear;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes coreRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.core-emblem {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2f1414 0%, #180909 60%, #0a0a0c 100%);
  border: 2px solid #d12c2c;
  box-shadow: 0 0 25px rgba(209, 44, 44, 0.5), inset 0 0 15px rgba(209, 44, 44, 0.4);
  display: grid;
  place-items: center;
  color: #ffffff;
}

.core-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff5555;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Sub-nodos Periféricos */
.skill-subnode {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 8;
  cursor: default;
}

.subnode-disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #14151a;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.subnode-state--completed .subnode-disc {
  border-color: rgba(209, 44, 44, 0.7);
  color: #ff6666;
  box-shadow: 0 0 10px rgba(209, 44, 44, 0.35);
}

.subnode-state--available .subnode-disc {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f3f3f1;
}

.subnode-state--locked .subnode-disc {
  border-color: rgba(255, 255, 255, 0.06);
  color: #555560;
  opacity: 0.55;
}

.subnode-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}

/* Reubicación no invasiva del botón flotante NYLON LAB en Modo Desafío */
body.is-in-challenges-mode .nylon-lab-toggle {
  right: auto;
  left: 1.5rem;
  bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(209, 44, 44, 0.3);
}

/* Ficha de Área Contextual (Side Panel con Jerarquía Optimizada) */
.challenge-area-sheet {
  width: 380px;
  max-width: 100%;
  background: rgba(16, 17, 21, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 25;
}

.sheet-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.sheet-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-area-number {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff5555;
  text-transform: uppercase;
}

.sheet-close-btn {
  background: transparent;
  border: none;
  color: var(--soft);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.sheet-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sheet-area-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.sheet-badge-row {
  margin: 0.1rem 0;
}

.sheet-area-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.badge--completed {
  background: rgba(209, 44, 44, 0.15);
  color: #ff6666;
  border: 1px solid rgba(209, 44, 44, 0.4);
}

.badge--available {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f3f1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge--locked {
  background: rgba(255, 255, 255, 0.04);
  color: #777782;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-area-tagline {
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.35;
}

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

/* Tarjeta COA */
.sheet-coa-card {
  background: rgba(209, 44, 44, 0.06);
  border: 1px solid rgba(209, 44, 44, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.sheet-coa-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff5555;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.sheet-coa-pillar {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.sheet-coa-desc {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.sheet-desc-block h3,
.sheet-challenges-section h3 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--soft);
  text-transform: uppercase;
}

.sheet-area-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Sección de Progreso en la Ficha */
.sheet-progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sheet-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.sheet-progress-val {
  color: #ffffff;
  font-weight: 700;
}

.sheet-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sheet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b41f1f 0%, #ff4444 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Sección de Botón de Acción Inmediato (Directamente visible sin scroll interno) */
.sheet-action-section {
  margin-top: 0.15rem;
}

.challenge-action-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(209, 44, 44, 0.25);
  transition: all 0.2s ease;
}

.challenge-action-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(209, 44, 44, 0.4);
}

.challenge-action-btn--locked {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Lista de Desafíos del Nodo */
.sheet-challenges-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sheet-challenge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  transition: background 0.2s ease;
}

.sheet-challenge-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ch-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ch-header-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ch-badge {
  font-size: 0.65rem;
  font-weight: 800;
}

.ch-badge--done { color: #ff5555; }
.ch-badge--open { color: #ffffff; }
.ch-badge--lock { color: var(--soft); }

.ch-title {
  font-weight: 600;
  color: #f3f3f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-type {
  font-size: 0.68rem;
  color: var(--soft);
}

.ch-score {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ch-score--done { color: #ff7777; }
.ch-score--open { color: #b5b2ae; }
.ch-score--locked { color: #666670; }

.ch-diff-tag {
  font-size: 0.65rem;
  color: #ff9999;
  background: rgba(255, 85, 85, 0.08);
  border: 1px solid rgba(255, 85, 85, 0.2);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ch-duration-tag {
  font-size: 0.65rem;
  color: var(--soft);
  margin-left: 0.35rem;
}

.diamonds-icon {
  letter-spacing: 0.1em;
  color: #ff5555;
  font-weight: 800;
}

.ch-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ch-reward-icon {
  height: 13px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(220, 180, 80, 0.4));
}

.ch-reward-icon--dim {
  opacity: 0.5;
  filter: grayscale(40%);
}

/* Modal Informativo de Entrenamiento en Preparación */
.challenge-preview-modal {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 480px;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.challenge-preview-modal::backdrop {
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(8px);
}

.modal-card {
  background: linear-gradient(180deg, #181920 0%, #101115 100%);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.modal-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.35);
  display: grid;
  place-items: center;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.modal-area-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.modal-area-tagline {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #ff7777;
}

.modal-area-desc {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Recompensas Estimadas en Modal */
.modal-rewards-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.modal-rewards-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.modal-rewards-pills {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.reward-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.reward-pill--xp {
  background: rgba(220, 175, 60, 0.06);
  border-color: rgba(220, 175, 60, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reward-pill--nc {
  background: rgba(209, 44, 44, 0.06);
  border-color: rgba(209, 44, 44, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reward-pill__icon {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.reward-pill--xp .reward-pill__icon {
  filter: drop-shadow(0 0 6px rgba(220, 180, 80, 0.4));
}

.reward-pill--nc .reward-pill__icon {
  filter: drop-shadow(0 0 6px rgba(209, 44, 44, 0.45));
}

.reward-pill__data {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.reward-pill__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.reward-pill__value {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.reward-pill--xp .reward-pill__value {
  color: #ffd460;
}

.reward-pill--nc .reward-pill__value {
  color: #ff6666;
}

.reward-pill__hint {
  font-size: 0.65rem;
  color: var(--soft);
  font-weight: 500;
}

.modal-actions {
  width: 100%;
}

.modal-actions button {
  width: 100%;
  padding: 0.75rem 1.5rem;
}

/* Media Queries Responsivas */
@media (max-width: 1120px) {
  .challenges-stage {
    flex-direction: column;
    align-items: center;
  }

  .challenge-area-sheet {
    width: 100%;
    max-width: 960px;
  }

  .sheet-body {
    max-height: none;
  }
}

@media (max-width: 768px) {
  body.is-in-challenges-mode .nylon-lab-toggle {
    left: 1rem;
    bottom: 1rem;
  }

  .challenges-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .challenges-header__right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .user-xp-tracker {
    min-width: 135px;
    flex: 1;
    padding: 0.3rem 0.6rem;
    gap: 0.45rem;
  }

  .xp-emblem-icon,
  .nc-emblem-icon {
    height: 18px;
  }

  .modal-rewards-pills {
    flex-direction: column;
    gap: 0.5rem;
  }

  .challenges-intro {
    padding: 1.5rem 1rem 0.5rem;
  }

  .challenges-intro__title {
    font-size: 1.75rem;
  }

  .challenges-intro__tagline {
    font-size: 0.95rem;
  }

  .skill-tree-viewport {
    padding: 0.5rem;
    overflow-x: auto;
  }

  .skill-tree-container {
    min-width: 680px;
  }

  .node-disc {
    width: 54px;
    height: 54px;
  }

  .node-caption__name {
    font-size: 0.7rem;
  }
}

/* Optimización para monitores de resolución estándar (ej. 1366x768) */
@media (max-height: 820px) and (min-width: 1024px) {
  .challenges-intro {
    padding: 0.75rem 1.25rem 0.35rem;
    gap: 0.2rem;
  }

  .challenges-intro__title {
    font-size: 1.65rem;
  }

  .challenges-intro__tagline {
    font-size: 0.9rem;
  }

  .challenges-intro__desc {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .challenges-stage {
    margin-top: 0.25rem;
    gap: 1.25rem;
  }

  .challenge-area-sheet {
    padding: 1.1rem 1.25rem;
    gap: 0.75rem;
  }

  .sheet-body {
    gap: 0.75rem;
  }
}




/* ======================================================= */
/* NYLON MODO DESAFÍO — REPRODUCTOR INTERACTIVO (ÁREA 01.1) */
/* ======================================================= */

/* Indicador de Desafío Jugable en la Ficha Lateral */
.sheet-challenge-item.is-playable {
  cursor: pointer;
  border-color: rgba(209, 44, 44, 0.35);
  background: rgba(209, 44, 44, 0.05);
}

.sheet-challenge-item.is-playable:hover {
  background: rgba(209, 44, 44, 0.12);
  border-color: rgba(209, 44, 44, 0.6);
  transform: translateX(2px);
}

.ch-play-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff4444;
  color: #ffffff;
  font-size: 0.6rem;
  margin-left: 0.35rem;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.challenge-action-btn--playable {
  background: linear-gradient(135deg, #d12c2c 0%, #a01a1a 100%);
  border-color: #ff5555;
  box-shadow: 0 4px 18px rgba(209, 44, 44, 0.45);
}

.challenge-action-btn--playable:hover {
  box-shadow: 0 6px 24px rgba(255, 68, 68, 0.6);
}

/* ======================================================= */
/* NYLON MODO DESAFÍO — PANTALLA INDEPENDIENTE DE MISIÓN   */
/* ======================================================= */

/* Bloqueo del fondo cuando la misión está en pantalla completa */
body.challenge-fullscreen-active {
  overflow: hidden !important;
}

body.challenge-fullscreen-active #nylon-lab-toggle {
  display: none !important;
}

/* Contenedor Principal: Pantalla de Misión Dedicada */
.challenge-player-view {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #090a0e;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.challenge-player-view[hidden] {
  display: none !important;
}

/* --- PANTALLA DE CARGA ESPECÍFICA DE MODO DESAFÍO NYLON --- */
.challenge-player-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10005;
  background: radial-gradient(circle at 50% 45%, rgba(209, 44, 44, 0.09) 0%, rgba(9, 10, 14, 0.98) 60%, #060709 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s ease, visibility 0.42s ease, transform 0.42s ease;
}

.challenge-player-loader[hidden] {
  display: none !important;
}

.challenge-player-loader.is-fading-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

.challenge-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  width: 100%;
  animation: challengeLoaderAppear 0.45s ease-out both;
}

@keyframes challengeLoaderAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.challenge-loader__logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.challenge-loader__logo-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 44, 44, 0.35) 0%, rgba(209, 44, 44, 0) 70%);
  filter: blur(14px);
  animation: challengeGlowPulse 2.4s infinite ease-in-out;
}

@keyframes challengeGlowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

.challenge-loader__logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 14px rgba(209, 44, 44, 0.45));
  animation: challengeLogoFloat 3s infinite ease-in-out;
}

@keyframes challengeLogoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.challenge-loader__brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ff5555;
  text-transform: uppercase;
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.challenge-loader__title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.challenge-loader__sub {
  margin: 0 0 1.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.5;
}

/* Barra de progreso indeterminada fluida */
.challenge-loader__track {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.75rem;
}

.challenge-loader__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(209, 44, 44, 0.1) 0%, #d12c2c 50%, #ff6666 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 85, 85, 0.6);
  animation: challengeLoaderSlide 1.5s infinite ease-in-out;
}

@keyframes challengeLoaderSlide {
  0% {
    left: -40%;
  }
  50% {
    left: 45%;
    width: 55%;
  }
  100% {
    left: 100%;
    width: 30%;
  }
}

.challenge-loader__cancel-btn {
  background: transparent;
  border: none;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.challenge-loader__cancel-btn:hover {
  color: #ff7777;
  text-decoration: underline;
}

.challenge-player-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.challenge-mission-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #090a0e;
  color: var(--text);
  position: relative;
}

/* Área de contenido con scroll natural para briefings, revisiones y resultados */
.mission-scroll-area {
  flex: 1;
  padding: 1.5rem 1.75rem 4rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* --- 1. BARRA HUD SUPERIOR COMÚN (CON BOTÓN DE CIERRE PROMINENTE) --- */
.player-hud-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 17, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff5555;
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.hud-challenge-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hud-area-title {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hud-challenge-title {
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
}

.hud-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hud-badge-briefing,
.hud-badge-review {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.hud-badge-results {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.hud-badge-results--ok {
  background: rgba(30, 160, 80, 0.15);
  color: #52c47a;
  border: 1px solid rgba(30, 160, 80, 0.35);
}

.hud-badge-results--warn {
  background: rgba(209, 44, 44, 0.15);
  color: #ff6666;
  border: 1px solid rgba(209, 44, 44, 0.35);
}

.hud-distribution-pills {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hud-counter-pill {
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.hud-counter-pill strong {
  color: #ff6666;
}

.hud-counter-pill.is-complete {
  border-color: rgba(82, 196, 122, 0.4);
  background: rgba(82, 196, 122, 0.1);
}

.hud-counter-pill.is-complete strong {
  color: #52c47a;
}

.hud-mini-progress {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hud-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #d12c2c 0%, #ff5555 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Botón de Cierre (X) Prominente */
.hud-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-close-btn:hover {
  background: rgba(209, 44, 44, 0.2);
  border-color: #ff5555;
  color: #ffffff;
  transform: translateY(-1px);
}

.hud-close-icon {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ff5555;
}

/* --- 2. TRANSICIÓN DE CARGA ELEGANTE --- */
.challenge-mission-screen--transition {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.transition-card {
  background: linear-gradient(180deg, #15161c 0%, #0e0f13 100%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(209, 44, 44, 0.15);
  animation: fadeInPlayer 0.3s ease;
}

.transition-logo-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(209, 44, 44, 0.12);
  border: 1.5px solid rgba(209, 44, 44, 0.45);
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(209, 44, 44, 0.35);
  animation: pulseEmblem 1.5s infinite ease-in-out;
  margin-bottom: 0.25rem;
}

@keyframes pulseEmblem {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(209, 44, 44, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(209, 44, 44, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(209, 44, 44, 0.3); }
}

.transition-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff5555;
  text-transform: uppercase;
}

.transition-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.transition-sub {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
}

.transition-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 0.25rem;
}

.transition-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #d12c2c 0%, #ff5555 100%);
  border-radius: 999px;
  animation: loadFill 0.65s ease-out forwards;
}

@keyframes loadFill {
  from { width: 0%; }
  to { width: 100%; }
}

.transition-status-text {
  font-size: 0.75rem;
  color: var(--soft);
}

.transition-cancel-link {
  margin-top: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.transition-cancel-link:hover {
  color: #ff6666;
}

/* --- 3. PANTALLA DE BRIEFING --- */
.mission-briefing-card {
  background: linear-gradient(180deg, #15161c 0%, #0e0f13 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.briefing-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.briefing-tags-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.badge-coa-pillar {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff5555;
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-stage-type {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--soft);
}

.badge-duration-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.briefing-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.meta-pill {
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.meta-pill strong {
  color: #ffffff;
}

.briefing-main-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.briefing-tagline {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
}

.briefing-content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
}

.briefing-col-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.scenario-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #ff4444;
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.35rem;
}

.scenario-box-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6666;
}

.scenario-box p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1d0cb;
}

.rules-three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rule-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rule-card--alert {
  background: rgba(209, 44, 44, 0.06);
  border-color: rgba(209, 44, 44, 0.35);
}

.rule-card-icon {
  font-size: 1.35rem;
}

.rule-card h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.rule-card p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.briefing-col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.briefing-rewards-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rewards-box-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.briefing-reward-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reward-emblem {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.briefing-reward-item strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
}

.briefing-reward-item span {
  font-size: 0.7rem;
  color: var(--muted);
}

.briefing-tips-box {
  background: rgba(220, 180, 80, 0.06);
  border: 1px solid rgba(220, 180, 80, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: #f0e6c8;
}

.briefing-tips-box strong {
  display: block;
  color: #ffd460;
  margin-bottom: 0.2rem;
}

.briefing-tips-box p {
  margin: 0;
  line-height: 1.4;
}

.briefing-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.briefing-start-btn {
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 6px 20px rgba(209, 44, 44, 0.45);
}

/* --- 4. TABLERO DE CLASIFICACIÓN REDISEÑADO (SORTING WORKSPACE) --- */
.mission-board-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.25rem 1.75rem 6.5rem;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

/* Sección 1: Mesa de Recepción (6 prendas visibles simultáneamente) */
.board-reception-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.reception-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.section-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff5555;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.instruction-badge {
  font-size: 0.74rem;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.instruction-badge strong {
  color: #ff6666;
}

/* Grid de 6 Prendas: 3 Columnas x 2 Filas en Escritorio */
.garments-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.garment-card {
  background: #14151b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.garment-card:hover {
  background: #1a1c24;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.garment-card.is-assigned {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.garment-card.is-quarantine-assigned {
  border-color: rgba(255, 68, 68, 0.55);
  background: rgba(209, 44, 44, 0.09);
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.2);
}

.garment-card.is-being-dragged {
  opacity: 0.35;
  transform: scale(0.96);
  border-style: dashed;
}

.garment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.card-item-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--soft);
}

.card-sku-pill {
  font-size: 0.6rem;
  font-weight: 700;
  color: #ff6666;
  background: rgba(209, 44, 44, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.card-type-pill {
  font-size: 0.6rem;
  color: var(--soft);
}

.garment-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-garment-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-specs-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.spec-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  flex-shrink: 0;
}

.spec-size-badge {
  font-weight: 800;
  color: #f3f3f1;
}

.spec-divider {
  color: var(--soft);
  opacity: 0.5;
}

/* Estado de Inspección y Botón */
.card-inspection-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.badge-inspection {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-inspection--unopened {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.badge-inspection--clean {
  color: #52c47a;
  background: rgba(82, 196, 122, 0.12);
  border: 1px solid rgba(82, 196, 122, 0.3);
}

.badge-inspection--defect {
  color: #ff5555;
  background: rgba(255, 68, 68, 0.16);
  border: 1px solid rgba(255, 68, 68, 0.45);
}

.btn-inspect-garment {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inspect-garment:hover {
  background: rgba(209, 44, 44, 0.3);
  border-color: #ff5555;
}

/* Pie de Tarjeta: Selector Rápido + Agarradera de Arrastre */
.garment-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.zone-quick-select {
  width: 100%;
  background: #0f1015;
  border: 1px solid var(--line);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.zone-quick-select:hover,
.zone-quick-select:focus {
  border-color: #ff5555;
}

.zone-quick-select.has-selection {
  border-color: rgba(209, 44, 44, 0.5);
  background: rgba(209, 44, 44, 0.08);
  color: #ff7777;
  font-weight: 700;
}

.card-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--soft);
  opacity: 0.7;
}

.drag-icon {
  font-size: 0.75rem;
  letter-spacing: -1px;
}

/* Sección 2: Zonas de Destino del Depósito (4 Drop Targets Visibles) */
.board-zones-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.zones-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.zone-drop-card {
  background: #111217;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  position: relative;
}

.zone-drop-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.zone-drop-card--quarantine {
  border-color: rgba(209, 44, 44, 0.4);
  background: rgba(209, 44, 44, 0.04);
}

/* Estado de Arrastre Activo sobre la Zona */
.zone-drop-card.is-drag-over {
  border-color: #ff4444 !important;
  background: rgba(209, 44, 44, 0.18) !important;
  box-shadow: 0 0 25px rgba(255, 68, 68, 0.5) !important;
  transform: translateY(-2px);
}

.zone-drop-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
}

.zone-header-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.zone-header-meta {
  flex: 1;
  min-width: 0;
}

.zone-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone-cat {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
}

.zone-items-count {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.zone-items-count.is-active {
  color: #ff6666;
  background: rgba(209, 44, 44, 0.15);
  border: 1px solid rgba(209, 44, 44, 0.35);
}

/* Área de Drop y Chips de Prendas Ubicadas */
.zone-drop-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zone-empty-hint {
  flex: 1;
  min-height: 120px;
  border: 1.5px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--soft);
}

.empty-icon {
  font-size: 1.1rem;
  opacity: 0.5;
}

.zone-placed-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.placed-item-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: grab;
  transition: all 0.2s ease;
}

.placed-item-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.placed-item-chip.chip--quarantine {
  border-color: rgba(255, 68, 68, 0.4);
  background: rgba(209, 44, 44, 0.1);
}

.chip-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.chip-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.chip-title {
  font-size: 0.75rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-size {
  font-size: 0.65rem;
  color: var(--muted);
  flex-shrink: 0;
}

.chip-actions {
  display: flex;
  gap: 0.25rem;
}

.chip-inspect-btn,
.chip-remove-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--soft);
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-inspect-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chip-remove-btn:hover {
  background: rgba(209, 44, 44, 0.5);
  color: #ffffff;
}

/* Barra Inferior Fija de Control de Misión */
.board-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(12, 13, 17, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
}

.status-msg {
  font-size: 0.82rem;
  color: var(--muted);
}

.status-msg strong {
  color: #ff6666;
}

.status-msg--ready {
  color: #52c47a;
  font-weight: 700;
}

.action-bar-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-reset-board {
  padding: 0.65rem 1.15rem;
  font-size: 0.82rem;
}

.btn-confirm-review {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(209, 44, 44, 0.4);
}

.btn-confirm-review.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(40%);
  box-shadow: none !important;
}

.btn-count-tag {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* --- 5. MODAL DE INSPECCIÓN TÉCNICA INDIVIDUAL (CON SCROLL INTERNO Y ACCESIBILIDAD TOTAL) --- */
.inspection-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: fadeInPlayer 0.2s ease;
}

.inspection-modal-card {
  background: linear-gradient(180deg, #181920 0%, #101115 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: min(88vh, 690px);
  padding: 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.inspection-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.inspection-modal-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.35rem 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inspection-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: auto;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-sku-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff5555;
  background: rgba(209, 44, 44, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.modal-type-tag {
  font-size: 0.72rem;
  color: var(--soft);
}

.modal-close-x {
  background: transparent;
  border: none;
  color: var(--soft);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.modal-close-x:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-garment-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.inspection-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
}

.spec-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-box--full {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.45rem;
}

.spec-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--soft);
}

.spec-value-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #ffffff;
}

.spec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.spec-val-highlight {
  font-size: 0.95rem;
  color: #ff6666;
}

/* Caja de Reporte Visual COA */
.modal-report-box {
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-report-box--clean {
  background: rgba(30, 160, 80, 0.08);
  border: 1px solid rgba(30, 160, 80, 0.3);
}

.modal-report-box--defect {
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.45);
  box-shadow: 0 0 16px rgba(209, 44, 44, 0.25);
}

.report-box-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-report-box--clean .report-box-badge { color: #52c47a; }
.modal-report-box--defect .report-box-badge { color: #ff5555; }

.report-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #f3f3f1;
}

.defect-instruction {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #ff8888;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
}

.modal-destination-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.destination-prompt {
  font-size: 0.75rem;
  color: var(--soft);
}

.destination-prompt strong {
  color: #ffffff;
}

.modal-zone-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-modal-assign {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-modal-assign:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-modal-assign--quarantine {
  border-color: rgba(209, 44, 44, 0.3);
  background: rgba(209, 44, 44, 0.06);
}

.btn-modal-assign--quarantine:hover {
  border-color: #ff5555;
  background: rgba(209, 44, 44, 0.16);
}

.btn-modal-assign.is-selected {
  border-color: #ff5555;
  background: rgba(209, 44, 44, 0.2);
  box-shadow: 0 0 10px rgba(209, 44, 44, 0.35);
}

.btn-check {
  margin-left: auto;
  color: #ff5555;
  font-weight: 800;
}

.inspection-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.btn-modal-unassign {
  font-size: 0.75rem;
  color: var(--soft);
}

.btn-modal-unassign:hover {
  color: #ff5555;
}

/* --- 6. PANTALLA DE RESUMEN FINAL (REVIEW) SIN BLOQUEOS --- */
.mission-review-card {
  background: linear-gradient(180deg, #15161c 0%, #0e0f13 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.review-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.review-main-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.review-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Destacado de Cuarentena */
.review-quarantine-spotlight {
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-quarantine-spotlight.has-quarantine-items {
  background: rgba(209, 44, 44, 0.08);
  border: 1px solid rgba(209, 44, 44, 0.35);
}

.review-quarantine-spotlight.no-quarantine-items {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-icon {
  font-size: 1.5rem;
}

.spotlight-text h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.spotlight-text span {
  font-size: 0.75rem;
  color: #ff6666;
}

.quarantine-items-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quarantine-item-tag {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(209, 44, 44, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-reason {
  font-size: 0.65rem;
  color: #ff7777;
  font-style: italic;
}

.tag-reason--warning {
  color: #ffd460;
}

.quarantine-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.quarantine-warning-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--soft);
  font-style: italic;
}

/* Tabla de Distribución de Zonas */
.review-zones-table {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.table-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.review-zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.review-zone-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-zone-box--quarantine {
  border-color: rgba(209, 44, 44, 0.3);
  background: rgba(209, 44, 44, 0.05);
}

.zone-box-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.zone-box-icon {
  font-size: 1.1rem;
}

.zone-box-titles {
  flex: 1;
  min-width: 0;
}

.zone-box-titles h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone-box-count {
  font-size: 0.65rem;
  color: #ff6666;
  font-weight: 700;
}

.zone-box-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.zone-item-entry {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #d1d0cb;
}

.entry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.entry-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.entry-size {
  font-size: 0.65rem;
  color: var(--soft);
}

.empty-item {
  font-size: 0.7rem;
  color: var(--soft);
  font-style: italic;
}

.review-actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.btn-evaluate-coa {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.75rem;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(209, 44, 44, 0.45);
}

/* --- 7. PANTALLA DE RESULTADOS Y EVALUACIÓN COA --- */
.mission-results-card {
  background: linear-gradient(180deg, #15161c 0%, #0e0f13 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.results-main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.75rem;
}

.results-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.results-record-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.badge-record {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

.badge-record--new {
  color: #ffd460;
  background: rgba(255, 212, 96, 0.12);
  border-color: rgba(255, 212, 96, 0.4);
  box-shadow: 0 0 15px rgba(255, 212, 96, 0.2);
  animation: pulseBest 2s infinite ease-in-out;
}

.badge-record--batch {
  color: #ff9999;
  background: rgba(255, 85, 85, 0.08);
  border-color: rgba(255, 85, 85, 0.25);
}

@keyframes pulseBest {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 212, 96, 0.15); }
  50% { box-shadow: 0 0 22px rgba(255, 212, 96, 0.4); }
}

.results-badge-level {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff5555;
  background: rgba(209, 44, 44, 0.12);
  border: 1px solid rgba(209, 44, 44, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.results-stars-display {
  font-size: 1.35rem;
  color: #ffd460;
  letter-spacing: 0.15em;
  filter: drop-shadow(0 0 8px rgba(255, 212, 96, 0.4));
}

.results-score-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.big-score {
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #ff5555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-denominator {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--muted);
}

.results-headline {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
}

.results-subtext {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.55;
}

/* Grilla de Pilares COA */
.results-coa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.coa-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.coa-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coa-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff5555;
  text-transform: uppercase;
}

.coa-pts {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
}

.coa-label {
  font-size: 0.88rem;
  color: #ffffff;
}

.coa-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.coa-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.coa-fill {
  height: 100%;
  background: linear-gradient(90deg, #d12c2c 0%, #ff5555 100%);
  border-radius: 999px;
}

/* Auditoría Prenda por Prenda */
.results-audit-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.audit-block-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.audit-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-row-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
}

.audit-row-card--ok {
  border-left: 3px solid #52c47a;
}

.audit-row-card--err {
  border-left: 3px solid #ff4444;
  background: rgba(209, 44, 44, 0.03);
}

.audit-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audit-icon {
  font-size: 1.15rem;
  font-weight: 900;
}

.audit-row-card--ok .audit-icon { color: #52c47a; }
.audit-row-card--err .audit-icon { color: #ff5555; }

.audit-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audit-item-name {
  font-size: 0.88rem;
  color: #ffffff;
}

.audit-path {
  font-size: 0.75rem;
  color: var(--muted);
}

.audit-path strong { color: #ffffff; }
.audit-path em { color: #ff6666; font-style: normal; }

.audit-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.audit-tag.tag--ok {
  background: rgba(30, 160, 80, 0.15);
  color: #52c47a;
  border: 1px solid rgba(30, 160, 80, 0.3);
}

.audit-tag.tag--err {
  background: rgba(209, 44, 44, 0.15);
  color: #ff5555;
  border: 1px solid rgba(209, 44, 44, 0.3);
}

.audit-feedback {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #d1d0cb;
}

/* Panel de Recompensas de Sesión */
.results-rewards-panel {
  background: rgba(209, 44, 44, 0.05);
  border: 1px solid rgba(209, 44, 44, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.panel-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff5555;
  text-transform: uppercase;
}

.panel-note {
  font-size: 0.68rem;
  color: var(--muted);
}

.panel-rewards-row {
  display: flex;
  gap: 1rem;
}

.reward-capsule {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.reward-capsule--xp {
  background: rgba(220, 175, 60, 0.06);
  border-color: rgba(220, 175, 60, 0.3);
}

.reward-capsule--nc {
  background: rgba(209, 44, 44, 0.06);
  border-color: rgba(209, 44, 44, 0.3);
}

.capsule-icon {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.capsule-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.capsule-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.capsule-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.reward-capsule--xp .capsule-val { color: #ffd460; }
.reward-capsule--nc .capsule-val { color: #ff6666; }

.capsule-hint {
  font-size: 0.65rem;
  color: var(--soft);
}

.results-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-return-map {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.85rem;
  font-weight: 800;
}

/* --- ADAPTACIONES RESPONSIVAS --- */
@media (max-width: 1200px) {
  .garments-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .zones-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .briefing-content-grid {
    grid-template-columns: 1fr;
  }

  .review-zones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .player-hud-bar {
    padding: 0.5rem 1rem;
  }

  .hud-challenge-meta {
    display: none;
  }

  .garments-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zones-columns-grid {
    grid-template-columns: 1fr;
  }

  .rules-three-grid,
  .results-coa-grid {
    grid-template-columns: 1fr;
  }

  .board-action-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .action-bar-buttons {
    justify-content: space-between;
  }

  .panel-rewards-row {
    flex-direction: column;
  }

  .review-zones-grid {
    grid-template-columns: 1fr;
  }

  .review-actions-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .review-actions-footer button {
    width: 100%;
  }

  .results-actions-footer {
    flex-direction: column;
  }

  .results-actions-footer button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .garments-cards-grid {
    grid-template-columns: 1fr;
  }

  .modal-zone-buttons-grid {
    grid-template-columns: 1fr;
  }

  .big-score {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   DESAFÍO 01.2: RECEPCIÓN Y CONTROL DE MERCADERÍA — ESTILOS VISUALES
   ========================================================================== */

/* --- 1. BRIEFING Y SITUACIÓN DE DEPÓSITO --- */
.briefing-situation-card {
  display: flex;
  gap: 1.25rem;
  background: rgba(22, 24, 32, 0.7);
  border: 1px solid var(--line);
  border-left: 3px solid #ff5555;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.situation-icon-box {
  font-size: 2.2rem;
  line-height: 1;
  padding-top: 0.15rem;
}

.situation-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.02em;
}

.situation-text p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--soft);
  margin: 0 0 0.5rem 0;
}

.situation-text p:last-child {
  margin-bottom: 0;
}

.briefing-po-preview {
  margin-bottom: 1.5rem;
}

.briefing-po-preview h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
}

.briefing-po-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.po-stat-card {
  background: rgba(18, 20, 26, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.po-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.po-stat-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

/* --- 2. CONTROL Y MESA DE COTEJO (SPLIT GRID) --- */
.reception-control-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.reception-stage-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.reception-stage-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff5555;
  display: block;
  margin-bottom: 0.25rem;
}

.reception-stage-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.reception-stage-desc {
  font-size: 0.88rem;
  color: var(--soft);
  line-height: 1.5;
  margin: 0;
}

.reception-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.reception-card {
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.reception-card--po {
  border-top: 3px solid #3b82f6;
}

.reception-card--delivery {
  border-top: 3px solid #10b981;
}

.reception-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.card-header-icon {
  font-size: 1.5rem;
}

.card-header-text h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.card-header-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Tabla de Orden de Compra */
.po-table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  background: rgba(10, 11, 15, 0.6);
}

.reception-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.reception-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.reception-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  vertical-align: middle;
}

.po-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.td-line-num {
  color: var(--muted);
  font-weight: 700;
  width: 38px;
}

.sku-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: #e2e8f0;
}

.sku-badge--alert {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.td-product {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-name {
  font-weight: 600;
}

.product-variant {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.color-swatch-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.size-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.size-pill--alert {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.td-qty {
  text-align: right;
  white-space: nowrap;
}

.qty-highlight {
  font-size: 0.88rem;
  color: #38bdf8;
}

.qty-highlight--alert {
  color: #f87171;
}

/* Tarjetas de Bultos Físicos */
.delivery-bundles-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.delivery-bundle-card {
  background: rgba(20, 22, 30, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.delivery-bundle-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.delivery-bundle-card.is-inspected {
  border-left: 3px solid #10b981;
}

.delivery-bundle-card.has-incidents {
  border-left: 3px solid #f59e0b;
}

.bundle-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bundle-index-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.bundle-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}

.bundle-specs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spec-chip {
  font-size: 0.75rem;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spec-chip strong {
  color: #ffffff;
}

.bundle-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bundle-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bundle-status--done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bundle-status--pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--line);
}

.bundle-status--flagged {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.bundle-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.btn-inspect-bundle {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  width: auto;
}

/* --- 3. PANEL DE REGISTRO DE INCIDENCIAS --- */
.reception-incident-panel {
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-top: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.incident-panel-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.incident-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.incident-icon-badge {
  font-size: 1.5rem;
}

.incident-header-title-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.incident-panel-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.incident-warning-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fef08a;
  font-size: 0.85rem;
}

/* Indicador de edición de incidencia */
.incident-editing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fef08a;
  font-size: 0.82rem;
  box-sizing: border-box;
  width: 100%;
}

.editing-bar-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.editing-badge {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: #f59e0b;
  color: #0b0c10;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.editing-text {
  color: #ffffff;
}

.btn-cancel-edit-text {
  background: transparent;
  border: none;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-cancel-edit-text:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Formulario de Incidencias Responsivo y Equilibrado */
.incident-form-container {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: rgba(10, 11, 15, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.incident-form-container.form--is-editing {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.04);
}

.incident-form-row {
  width: 100%;
  box-sizing: border-box;
}

.incident-form-row--selectors {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
}

.incident-form-row--details {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.incident-form-row--actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.incident-select,
.incident-number-input,
.incident-text-input,
.incident-textarea {
  background: rgba(20, 22, 28, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.incident-textarea {
  resize: vertical;
  min-height: 52px;
  line-height: 1.35;
}

.incident-select:focus,
.incident-number-input:focus,
.incident-text-input:focus,
.incident-textarea:focus {
  outline: none;
  border-color: #ff5555;
  box-shadow: 0 0 0 2px rgba(255, 85, 85, 0.2);
}

.btn-add-incident,
.btn-save-incident {
  height: 40px;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-cancel-edit {
  height: 40px;
  padding: 0 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.incident-records-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.incident-records-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.incident-records-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.incident-records-hint {
  font-size: 0.74rem;
  color: var(--muted);
}

.incident-empty-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.incident-empty-box p {
  margin: 0;
}

.incident-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
}

.incident-entry-card {
  background: rgba(22, 24, 32, 0.85);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.incident-entry-card.is-editing {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.incident-entry-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.incident-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.incident-chip--faltante {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.incident-chip--sobrante {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.incident-chip--danado {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.incident-chip--codigo_incorrecto {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.incident-chip--variante_incorrecta {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.incident-affected-qty {
  font-size: 0.74rem;
  color: var(--muted);
}

.incident-affected-qty strong {
  color: #ffffff;
}

.entry-line-name {
  font-size: 0.82rem;
  color: #ffffff;
}

.entry-note {
  font-size: 0.75rem;
  color: var(--soft);
  font-style: italic;
  margin: 0.15rem 0 0 0;
  word-break: break-word;
}

.incident-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
}

.incident-action-btn {
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.incident-btn-edit {
  color: #fbbf24;
}

.incident-btn-edit:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
}

.incident-btn-delete {
  color: #f87171;
}

.incident-btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.audit-note {
  font-size: 0.78rem;
  color: #d1d5db;
  font-style: italic;
  margin: 0.25rem 0 0 0;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- 4. MODAL DE INSPECCIÓN DETALLADA DE BULTOS --- */
.line-inspection-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.line-inspection-card {
  background: #12141a;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.inspection-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.inspection-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ff5555;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.inspection-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.15rem 0 0 0;
}

.inspection-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.inspection-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.inspection-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
}

.inspection-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comparison-column {
  background: rgba(18, 20, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comparison-column--po {
  border-left: 3px solid #3b82f6;
}

.comparison-column--delivery {
  border-left: 3px solid #10b981;
}

.col-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.col-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
}

.field-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.color-spec {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #ffffff;
}

.damaged-subnote {
  font-size: 0.75rem;
  color: #f87171;
  font-weight: 600;
}

.deposito-report-box {
  display: flex;
  gap: 1rem;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.deposito-report-box.is-sound {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.deposito-report-box.is-warning {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.report-box-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.report-box-content strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.report-box-content p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.inspection-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
}

/* --- 5. ETAPA DE DECISIÓN OPERATIVA --- */
.decision-card-container {
  background: rgba(16, 18, 24, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.decision-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.decision-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff5555;
  letter-spacing: 0.1em;
  display: block;
}

.decision-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.4rem 0;
}

.decision-lede {
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.5;
  margin: 0;
}

.decision-control-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.summary-stat-box {
  background: rgba(22, 24, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-value--ok {
  color: #34d399;
}

.stat-value--warn {
  color: #f59e0b;
}

.stat-value--flagged {
  color: #f87171;
}

.decision-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.decision-choice-card {
  background: rgba(20, 22, 28, 0.8);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.decision-choice-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.decision-choice-card.is-selected {
  border-color: #ff5555;
  background: rgba(209, 44, 44, 0.08);
  box-shadow: 0 0 20px rgba(209, 44, 44, 0.2);
}

.choice-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.choice-radio-bullet {
  font-size: 1.2rem;
  color: #ff5555;
}

.choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}

.choice-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.decision-badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.decision-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.decision-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.choice-desc {
  font-size: 0.85rem;
  color: var(--soft);
  margin: 0 0 0 2rem;
  line-height: 1.5;
}

.decision-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* --- 6. AUDITORÍA DE RESULTADOS Y RETROALIMENTACIÓN --- */
.results-audit-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.results-audit-block h3 {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.decision-feedback-card {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.decision-feedback-card.is-good {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.decision-feedback-card.is-warn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.decision-feedback-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.decision-chosen-badge {
  font-size: 0.88rem;
  color: #ffffff;
}

.decision-score-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.decision-feedback-text {
  font-size: 0.88rem;
  color: var(--soft);
  line-height: 1.55;
  margin: 0;
}

.incidents-audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-item {
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.audit-item--detected {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.audit-item--omitted {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.audit-item--false {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.audit-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--detected {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.badge--omitted {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.badge--false {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.audit-content strong {
  font-size: 0.85rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

.audit-content p {
  font-size: 0.82rem;
  color: var(--soft);
  line-height: 1.45;
  margin: 0;
}

.reception-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-inspection-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.footer-check-icon.is-ok {
  color: #34d399;
}

.footer-check-icon.is-warn {
  color: #fbbf24;
}

.footer-check-text {
  color: var(--soft);
}

/* --- RESPONSIVIDAD PARA DESAFÍO 01.2 --- */
@media (max-width: 900px) {
  .reception-split-grid {
    grid-template-columns: 1fr;
  }

  .incident-form-row--selectors {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .incident-form-row--details {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .incident-form-row--actions {
    justify-content: stretch;
  }

  .incident-form-row--actions button {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .inspection-comparison-grid {
    grid-template-columns: 1fr;
  }

  .reception-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-actions-group button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .incident-form-row--actions {
    flex-direction: column;
  }

  .incident-form-row--actions button {
    width: 100%;
  }

  .incident-editing-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-cancel-edit-text {
    align-self: flex-end;
  }

  .briefing-situation-card {
    flex-direction: column;
  }

  .choice-desc {
    margin-left: 0;
  }

  .decision-actions-bar {
    flex-direction: column;
  }

  .decision-actions-bar button {
    width: 100%;
  }
}

/* ==========================================================================
   DESAFÍO 01.3 — PREPARACIÓN Y DESPACHO DE PEDIDOS (op-3)
   ========================================================================== */
.dispatch-picking-layout,
.dispatch-stage-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.dispatch-stage-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.dispatch-stage-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff5555;
  display: block;
  margin-bottom: 0.25rem;
}

.dispatch-stage-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.dispatch-stage-desc {
  font-size: 0.88rem;
  color: var(--soft);
  line-height: 1.5;
  margin: 0;
}

.dispatch-warning-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dispatch-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dispatch-card {
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dispatch-card--order {
  border-top: 3px solid #3b82f6;
}

.dispatch-card--warehouse {
  border-top: 3px solid #f59e0b;
}

.dispatch-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.dispatch-order-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dispatch-order-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.dispatch-order-item.is-complete {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.04);
}

.order-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-item-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.order-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.order-item-specs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spec-chip--location {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.order-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.45rem;
  margin-top: 0.15rem;
}

.qty-counter-label {
  font-size: 0.82rem;
  color: var(--soft);
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.status-pill.status--done {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-pill.status--partial {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill.status--pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

.status-pill.status--over {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-pill.status--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Grilla de Ubicaciones en Almacén */
.dispatch-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.warehouse-slot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.warehouse-slot-card.has-issue {
  border-color: rgba(245, 158, 11, 0.35);
}

.slot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-loc-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.slot-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slot-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.slot-specs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slot-stock-notes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.slot-stock-alert {
  font-size: 0.76rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.slot-stock-alert--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.slot-stock-alert--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.slot-stock-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--soft);
}

.slot-total-hint {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Control Stepper de Picking */
.slot-stepper-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.stepper-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: #ff5555;
  border-color: #ff5555;
  color: #ffffff;
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-val-box {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 65px;
  justify-content: center;
}

.stepper-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.stepper-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.stepper-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stepper-quick-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.stepper-quick-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-max-apt:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-clear-line:hover {
  border-color: #f87171;
  color: #f87171;
}

/* Footer de Picking */
.dispatch-picking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(16, 18, 24, 0.95);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.picking-summary-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.summary-item {
  font-size: 0.88rem;
  color: var(--soft);
}

.summary-item strong {
  color: #ffffff;
}

/* Pantalla de Verificación */
.verification-matrix-card {
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.verification-table-wrapper {
  overflow-x: auto;
}

.verification-table {
  width: 100%;
}

.qty-highlight--short {
  color: #fbbf24;
}

/* Controles de verificación de línea en Mesa de Embalaje */
.verification-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: rgba(13, 14, 18, 0.75);
  border: 1px solid var(--line, #292c35);
  border-radius: 8px;
}

.verification-progress-pill {
  font-size: 0.82rem;
  color: #d4d4d8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.verification-progress-pill strong {
  color: #e7a93b;
}

.btn-verify-all-lines {
  background: #202430;
  border: 1px solid #3f4453;
  color: #f4f4f5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-verify-all-lines:hover {
  background: #2a2f3f;
  border-color: #e7a93b;
  color: #fff;
}

.verify-line-btn {
  background: #171a22;
  border: 1px solid #3f4453;
  color: #d4d4d8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.verify-line-btn:hover {
  background: #222733;
  border-color: #e7a93b;
  color: #fff;
}

.verify-line-btn.is-verified {
  background: rgba(46, 213, 115, 0.15) !important;
  border-color: #2ed573 !important;
  color: #2ed573 !important;
  font-weight: 700;
}

.verification-table-row.is-line-verified {
  background: rgba(46, 213, 115, 0.04);
}

.dispatch-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Pantalla de Resolución de Incidencias */
.resolution-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resolution-card {
  background: rgba(16, 18, 24, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.resolution-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.resolution-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.resolution-item-title {
  font-size: 0.95rem;
  color: #ffffff;
}

.resolution-issue-desc {
  font-size: 0.88rem;
  color: var(--soft);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.resolution-options-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.resolution-option-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--soft);
}

.resolution-option-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.resolution-option-pill.is-selected {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #ffffff;
}

.res-radio-dot {
  font-size: 1rem;
  line-height: 1;
  color: #3b82f6;
  margin-top: 0.1rem;
}

.res-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.res-text strong {
  font-size: 0.85rem;
  color: #ffffff;
}

.res-sub {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Pantalla de Decisión de Despacho */
.decision-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.decision-choice-card {
  background: rgba(16, 18, 24, 0.85);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.decision-choice-card:hover {
  background: rgba(25, 28, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.decision-choice-card.is-selected {
  border-color: #ff5555;
  background: rgba(255, 85, 85, 0.08);
  box-shadow: 0 0 25px rgba(255, 85, 85, 0.25);
}

.decision-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.decision-radio-indicator {
  font-size: 1.1rem;
  color: #ff5555;
}

.decision-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.decision-badge--success {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.decision-badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.decision-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.decision-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.decision-subtitle {
  font-size: 0.82rem;
  color: var(--soft);
  line-height: 1.45;
  margin: 0;
}

/* Responsividad para Desafío 01.3 */
@media (max-width: 900px) {
  .dispatch-split-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-picking-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dispatch-picking-footer button {
    width: 100%;
  }

  .dispatch-actions-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dispatch-actions-footer button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .slot-stepper-control {
    flex-direction: column;
    align-items: stretch;
  }

  .stepper-group {
    justify-content: space-between;
  }

  .stepper-actions {
    justify-content: flex-end;
  }
}

/* --- ESTILOS DE DIAGNÓSTICO, RESOLUCIÓN Y ESTADOS DE PEDIDO (01.3 EVOLUCIÓN) --- */
.res-card-titles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.problem-type-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.resolution-diagnostic-card {
  background: #08090D !important;
  background-color: #08090D !important;
  border: 1px solid #292C35 !important;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.diagnostic-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.diag-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A1A1AA !important;
}

.diag-val {
  font-size: 0.85rem;
  color: #F4F4F5 !important;
  line-height: 1.45;
  margin: 0;
}

.diagnostic-block--conflict {
  grid-column: 1 / -1;
  background: rgba(224, 43, 50, 0.08) !important;
  background-color: rgba(224, 43, 50, 0.08) !important;
  border-left: 3px solid #E02B32 !important;
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
}

.diagnostic-block--conflict .diag-label {
  color: #E02B32 !important;
}

.diagnostic-block--conflict .diag-val {
  color: #F4F4F5 !important;
}

.diag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.2rem;
}

.diag-pill--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.diag-pill--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.resolution-alternatives-section {
  margin-top: 1rem;
}

.alternatives-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F4F4F5 !important;
  margin-bottom: 0.75rem;
}

.resolution-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

button.resolution-option-card,
.resolution-option-card,
button.resolution-option-pill,
.resolution-option-pill {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #11131A !important;
  background-color: #11131A !important;
  border: 1px solid #292C35 !important;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #F4F4F5 !important;
  width: 100%;
  box-sizing: border-box;
}

button.resolution-option-card:hover,
.resolution-option-card:hover,
button.resolution-option-pill:hover,
.resolution-option-pill:hover {
  background: #171A22 !important;
  background-color: #171A22 !important;
  border-color: #3F4452 !important;
}

button.resolution-option-card.is-selected,
.resolution-option-card.is-selected,
button.resolution-option-pill.is-selected,
.resolution-option-pill.is-selected {
  background: #171A22 !important;
  background-color: #171A22 !important;
  border-color: #E7A93B !important;
  box-shadow: 0 0 14px rgba(231, 169, 59, 0.22) !important;
}

button.resolution-option-card.card--danger.is-selected,
.resolution-option-card.card--danger.is-selected {
  border-color: #E02B32 !important;
  box-shadow: 0 0 14px rgba(224, 43, 50, 0.25) !important;
}

.opt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.opt-radio-dot {
  font-size: 1.1rem;
  color: #71717A;
  line-height: 1;
}

.is-selected .opt-radio-dot {
  color: #E7A93B !important;
}

.card--danger.is-selected .opt-radio-dot {
  color: #E02B32 !important;
}

.opt-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.badge-pill--safe {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #22C55E !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.badge-pill--auth {
  background: rgba(231, 169, 59, 0.14) !important;
  color: #E7A93B !important;
  border: 1px solid rgba(231, 169, 59, 0.35) !important;
}

.badge-pill--warning,
.badge-pill--action {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #F59E0B !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.badge-pill--danger {
  background: rgba(224, 43, 50, 0.18) !important;
  color: #E02B32 !important;
  border: 1px solid rgba(224, 43, 50, 0.4) !important;
}

.opt-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.opt-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F4F4F5 !important;
}

.opt-desc {
  font-size: 0.8rem;
  color: #A1A1AA !important;
  margin: 0;
  line-height: 1.45;
}

.consequence-preview {
  background: #08090D !important;
  background-color: #08090D !important;
  border-left: 3px solid #E7A93B !important;
  padding: 0.45rem 0.65rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.76rem;
  color: #D4D4D8 !important;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.card--danger .consequence-preview {
  border-left-color: #E02B32 !important;
}

.consequence-kicker {
  font-weight: 800;
  color: #E7A93B !important;
  margin-right: 0.35rem;
}

.card--danger .consequence-kicker {
  color: #E02B32 !important;
  margin-right: 0.35rem;
}

/* BANNER DE ESTADO FINAL DEL PEDIDO */
.order-state-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(16, 18, 24, 0.9);
}

.order-state-banner--order_conforme {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
}

.order-state-banner--order_parcial {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
}

.order-state-banner--order_pendiente_autorizacion {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
}

.order-state-banner--order_retenido {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
}

.order-state-banner--order_error_operativo {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(20, 10, 10, 0.95) 100%);
}

.order-state-banner--order_pending_decision {
  border-color: rgba(161, 161, 170, 0.4);
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
}

.order-state-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.75rem;
  flex-shrink: 0;
}

.order-state-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-state-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-state-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.badge-order--conforme {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.badge-order--parcial {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-order--pending-auth {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.badge-order--retenido {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.badge-order--error {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.state-sub-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.state-sub-pill--auth {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.state-sub-pill--risk {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.order-state-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.order-state-desc {
  font-size: 0.85rem;
  color: var(--soft);
  margin: 0;
  line-height: 1.45;
}

/* AUDITORÍA EDUCATIVA */
.audit-quantities {
  font-size: 0.82rem;
  color: var(--soft);
}

.qty-pending-val {
  color: #fbbf24;
}

.audit-tags-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audit-problem-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.tag--auth {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.tag--hold {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.tag--partial {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.audit-decision-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--soft);
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

.decision-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.decision-choice-label {
  color: #e2e8f0;
}


/* ==========================================================================
   NYLON — MODO DESAFÍO: ÁREA 04 (FINANZAS · ARQUEO DE CAJA 04.1)
   ========================================================================== */

.hud-conteo-live {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.blind-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.hud-conteo-label {
  color: var(--muted, #94a3b8);
}

.hud-conteo-val {
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
}

.hud-val--exact {
  color: #34d399 !important;
}

.hud-val--surplus {
  color: #fbbf24 !important;
}

.hud-val--shortage {
  color: #f87171 !important;
}

/* Layout común de etapas de caja */
.cash-stage-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cash-stage-header {
  text-align: left;
}

.cash-stage-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #f59e0b);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.cash-stage-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.4rem;
}

.cash-stage-desc {
  font-size: 0.95rem;
  color: var(--soft, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

.cash-warning-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Protocolo Ciego en Briefing */
.cash-blind-protocol-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(30, 27, 75, 0.25));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.blind-protocol-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.blind-protocol-content h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c7d2fe;
}

.blind-protocol-content p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ========================================================
   GAVETA FÍSICA VISUAL MEJORADA (DESAFÍO 04.1)
   ======================================================== */
.cash-visual-drawer-section {
  background: linear-gradient(180deg, #171923 0%, #10121a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drawer-header-strip {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-badge-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ef4444;
  display: inline-block;
}

.drawer-main-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.drawer-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.cash-physical-drawer-casing {
  background: #08090d;
  border: 2px solid #232735;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.85);
}

/* Bandejas de Billetes y Monedas */
.drawer-tray-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-tray-section--coins {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.drawer-tray-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tray-header-icon {
  font-size: 1.25rem;
}

.drawer-tray-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e2e8f0;
  margin: 0;
  letter-spacing: -0.01em;
}

.drawer-tray-hint {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  margin-left: auto;
}

/* Grillas de ranuras */
.drawer-slots-grid--bills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.drawer-slots-grid--coins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Ranura / Compartimento individual */
.drawer-slot {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.drawer-slot--active {
  background: #13161f;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.drawer-slot--active:hover {
  background: #171b26;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.drawer-slot--empty {
  background: #0c0e14;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  opacity: 0.75;
}

.drawer-slot--empty:hover {
  opacity: 0.95;
  border-color: rgba(255, 255, 255, 0.15);
}

.drawer-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.slot-denom-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-left: 4px solid var(--den-color, #38bdf8);
  padding-left: 0.55rem;
}

.slot-denom-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  line-height: 1;
}

.slot-denom-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.slot-count-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
}

.slot-empty-badge {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Área de exhibición de billetes y monedas */
.slot-cash-display {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0.25rem 0;
}

.slot-cash-display--bills {
  min-height: 94px;
}

.slot-cash-display--coins {
  min-height: 64px;
}

.slot-cash-display--empty {
  min-height: 48px;
}

.empty-slot-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #64748b;
  padding: 0.4rem 0.2rem;
}

.empty-slot-icon {
  font-size: 1.15rem;
  opacity: 0.45;
}

.empty-slot-label {
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
}

/* Billetes individuales */
.visual-cash-item {
  position: relative;
  user-select: none;
}

.visual-cash-item--bill {
  width: 210px;
  height: 90px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.visual-cash-item--bill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
  z-index: 3;
}

/* Billete con imagen real */
.visual-cash-item--has-img {
  background: #0b0d13;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.visual-bill-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  border-radius: 5px;
}

/* Billete estilizado (para denominaciones sin foto estática) */
.visual-cash-item--styled {
  background: linear-gradient(135deg, rgba(22, 26, 36, 0.98) 0%, rgba(11, 13, 19, 0.98) 100%);
  border: 2px solid var(--den-color, #38bdf8);
  padding: 4px;
}

.visual-bill-styled-border {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  height: 100%;
  padding: 4px 6px;
}

.visual-bill-styled-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.styled-bill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.styled-bill-bcra {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted, #94a3b8);
  font-weight: 700;
}

.styled-bill-val-lg {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--den-color, #38bdf8);
  font-family: var(--font-mono, monospace);
  line-height: 1;
}

.styled-bill-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.styled-bill-watermark {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

.styled-bill-words {
  font-size: 0.58rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}

.styled-bill-btm {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.styled-bill-serial {
  font-size: 0.55rem;
  font-family: var(--font-mono, monospace);
  color: #64748b;
  font-weight: 600;
}

/* Placa numérica de conteo para cada billete */
.bill-unit-badge {
  position: absolute;
  bottom: 5px;
  right: 6px;
  background: rgba(10, 12, 16, 0.88);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono, monospace);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Monedas circulares metálicas */
.visual-cash-item--coin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  position: relative;
}

.visual-cash-item--coin:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8);
}

.visual-cash-item--coin.visual-cash-item--coin_50 {
  width: 58px;
  height: 58px;
  border: 5px solid #94a3b8;
  background: radial-gradient(circle, #fbbf24 0%, #d97706 70%, #92400e 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.6);
  color: #1e293b;
}

.visual-cash-item--coin.visual-cash-item--coin_20 {
  width: 52px;
  height: 52px;
  border: 3px solid #b45309;
  background: radial-gradient(circle, #fde047 0%, #f59e0b 60%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.5);
  color: #451a03;
}

.visual-cash-item--coin.visual-cash-item--coin_10 {
  width: 48px;
  height: 48px;
  border: 3px solid #9a3412;
  background: radial-gradient(circle, #fb923c 0%, #c2410c 60%, #7c2d12 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(0, 0, 0, 0.5);
  color: #431407;
}

.coin-face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-rim-outer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.coin-val {
  font-size: 0.82rem;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.coin-unit-badge {
  font-size: 0.55rem;
  font-weight: 800;
  opacity: 0.85;
  font-family: var(--font-mono, monospace);
}

/* Resaltado interactivo de tarjeta al hacer clic en gaveta */
.cash-denom-card--highlighted {
  border-color: #38bdf8 !important;
  background: #1e2330 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
  transition: all 0.2s ease;
}

/* Responsividad */
@media (max-width: 768px) {
  .drawer-slots-grid--bills {
    grid-template-columns: 1fr;
  }
  .drawer-slots-grid--coins {
    grid-template-columns: 1fr;
  }
  .visual-cash-item--bill {
    width: 175px;
    height: 75px;
  }
}

/* Barra sticky de conteo */
.cash-summary-sticky-bar {
  background: #171920;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.summary-stat-box {
  display: flex;
  flex-direction: column;
}

.summary-stat-box .stat-lbl {
  font-size: 0.74rem;
  color: var(--muted, #94a3b8);
  text-transform: uppercase;
}

.summary-stat-box .stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.summary-stat-box--highlight .stat-lbl {
  color: #38bdf8;
}

.summary-stat-box--highlight .stat-num--total {
  font-size: 1.4rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

/* Grilla de denominaciones */
.cash-denoms-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cash-denoms-section .section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
  border-left: 3px solid var(--accent, #f59e0b);
  padding-left: 0.5rem;
}

.cash-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.cash-denom-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cash-denom-card:hover {
  background: #191c24;
  border-color: rgba(255, 255, 255, 0.15);
}

.cash-denom-badge {
  border-left-width: 4px;
  border-left-style: solid;
  padding-left: 0.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.denom-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
}

.denom-type {
  font-size: 0.68rem;
  color: var(--muted, #94a3b8);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cash-stepper-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cash-btn-step {
  width: 34px;
  height: 34px;
  background: #232732;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.cash-btn-step:hover {
  background: #313645;
  border-color: rgba(255, 255, 255, 0.3);
}

.cash-btn-quick {
  height: 34px;
  padding: 0 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cash-btn-quick:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cash-count-input {
  width: 58px;
  height: 34px;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  border-radius: 6px;
}

.cash-count-input:focus {
  border-color: #38bdf8;
  outline: none;
}

.cash-denom-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
  font-size: 0.82rem;
}

.subtotal-label {
  color: var(--muted, #94a3b8);
}

.subtotal-amount {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  color: #e2e8f0;
}

/* Fase 2: Libro Split */
.cash-libro-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
}

.cash-libro-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header-bar {
  background: #1c1f28;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-bar h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.tx-count-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  color: #94a3b8;
}

.cash-table-wrapper {
  overflow-x: auto;
  max-height: 480px;
}

.cash-tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.cash-tx-table th {
  background: #121318;
  padding: 0.6rem 0.75rem;
  color: var(--muted, #94a3b8);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cash-tx-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.cash-tx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tr-float td {
  background: rgba(56, 189, 248, 0.04);
}

.tr-digital td {
  opacity: 0.85;
}

.td-time {
  font-family: var(--font-mono, monospace);
  color: var(--muted, #94a3b8);
  font-size: 0.8rem;
}

.tx-desc-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.digital-notice {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

.badge-payment {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-payment--cash {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-payment--card {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.badge-payment--qr {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.th-amount, .td-amount {
  text-align: right;
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  white-space: nowrap;
}

.td-amount--pos {
  color: #34d399;
}

.td-amount--neg {
  color: #f87171;
}

.td-amount--digital {
  color: #94a3b8;
}

/* Columna matemática libro */
.cash-math-breakdown {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.math-label {
  color: #cbd5e1;
}

.math-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
}

.math-row--total {
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.math-val--result {
  font-size: 1.25rem;
  color: #38bdf8;
}

.cash-pedagogical-alert {
  margin: 0 1.25rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #fed7aa;
  line-height: 1.45;
}

.cash-confirm-box {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cash-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #e2e8f0;
}

.cash-checkbox {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Fase 3: Conciliación */
.cash-reconcile-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.reconcile-stat-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.reconcile-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
  font-weight: 600;
}

.reconcile-value {
  font-size: 1.7rem;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  color: #f8fafc;
}

.reconcile-sub {
  font-size: 0.75rem;
  color: var(--soft, #64748b);
}

.reconcile-stat-card--diff {
  background: #1a1d26;
  border-color: rgba(255, 255, 255, 0.15);
}

.reconcile-val--exact {
  color: #34d399 !important;
}

.reconcile-val--surplus {
  color: #fbbf24 !important;
}

.reconcile-val--shortage {
  color: #f87171 !important;
}

.reconcile-pill-wrap {
  margin-top: 0.4rem;
}

.diff-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.diff-pill--exact {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.diff-pill--surplus {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.diff-pill--shortage {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.cash-diagnostic-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
}

.diagnostic-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.diagnostic-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.diagnostic-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.diagnostic-text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* Fase 4: Comprobantes e Investigación */
.cash-slips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.cash-slip-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.15s ease;
}

.cash-slip-card--unrecorded {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #181922, #1c1a17);
}

.cash-slip-card--imputed {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #15171d, #14221b);
}

.slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slip-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #94a3b8;
}

.slip-amount {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 1.15rem;
  color: #f8fafc;
}

.slip-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
}

.slip-notes {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
  flex: 1;
}

.slip-status-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slip-status {
  font-size: 0.78rem;
  font-weight: 600;
}

.slip-status--ok {
  color: #34d399;
}

.slip-status--imputed {
  color: #34d399;
}

.slip-status--missing {
  color: #fbbf24;
}

.cash-impute-btn {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cash-unimpute-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.12s ease;
}

.cash-unimpute-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cash-live-reconcile-summary {
  background: #1c1f28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.85rem;
}

.live-reconcile-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.live-reconcile-item span {
  color: #94a3b8;
}

.live-reconcile-item strong {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
}

.text-green { color: #34d399; }
.text-gold { color: #fbbf24; }
.text-red { color: #f87171; }

/* Fase 5: Decisiones */
.cash-decision-status-strip {
  background: #171920;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-around;
  font-size: 0.88rem;
}

.status-strip-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.status-strip-box .strip-lbl {
  color: #94a3b8;
}

.status-strip-box strong {
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
}

.cash-decision-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.cash-decision-card {
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.cash-decision-card:hover {
  background: #191c25;
  border-color: rgba(255, 255, 255, 0.2);
}

.cash-decision-card.is-selected {
  background: #1a1e2a;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8, 0 4px 16px rgba(56, 189, 248, 0.15);
}

.decision-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.decision-icon {
  font-size: 1.4rem;
}

.decision-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.decision-sub {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
  flex: 1;
}

.decision-radio-indicator {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.decision-radio-indicator .radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.decision-radio-indicator.is-active {
  color: #38bdf8;
}

.decision-radio-indicator.is-active .radio-dot {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* Fase 6: Resultados */
.cash-results-card {
  max-width: 840px;
  margin: 0 auto;
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.results-stars-glow {
  font-size: 2.2rem;
  color: #f59e0b;
  letter-spacing: 0.35rem;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.results-score-num {
  font-size: 3.8rem;
  font-weight: 900;
  color: #f8fafc;
  margin: 0.2rem 0;
  line-height: 1;
  font-family: var(--font-mono, monospace);
}

.results-score-total {
  font-size: 1.8rem;
  color: var(--muted, #64748b);
  font-weight: 600;
}

.results-kicker {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.05em;
  margin: 0;
}

.results-coa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.coa-card {
  background: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.coa-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.coa-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.coa-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  color: #38bdf8;
}

.coa-progress-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.coa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.coa-feedback {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.results-summary-card {
  background: #1c1f28;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: left;
}

.results-summary-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: #f8fafc;
}

.results-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.res-stat {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.res-stat span {
  color: #94a3b8;
}

.res-stat strong {
  font-family: var(--font-mono, monospace);
  color: #f8fafc;
}

.results-audit-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.results-audit-note .audit-note-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.results-audit-note strong {
  color: #f8fafc;
}

.results-actions-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cash-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.cash-secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cash-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cash-advance-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.cash-direct-decision-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 820px) {
  .cash-libro-split {
    grid-template-columns: 1fr;
  }
  .cash-reconcile-cards-grid {
    grid-template-columns: 1fr;
  }
  .results-coa-grid {
    grid-template-columns: 1fr;
  }
  .cash-actions-footer {
    flex-direction: column-reverse;
  }
  .cash-actions-footer button {
    width: 100%;
  }
}

/* ==========================================================================
   DESAFÍO 04.2: IMPUTACIÓN DE COSTOS, CMV E INVENTARIO FINAL (fin-2)
   ========================================================================== */

.challenge-screen--cost,
.challenge-mission-screen--documental,
.challenge-mission-screen--disponible,
.challenge-mission-screen--cpp,
.challenge-mission-screen--cmv,
.challenge-mission-screen--cierre {
  background: #090a0f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cost-phase-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.25rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cost-phase-header-card {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.phase-badge-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.cost-phase-header-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.cost-phase-header-card p {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.cost-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.85rem;
}

.cost-status-pill--ready {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.cost-status-pill--pending {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

/* 5 Tarjetas Compactas del Briefing (fin-2) */
.cost-briefing-cards-section {
  margin: 1.25rem 0;
}

.cost-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
}

.cost-briefing-5cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.cost-param-card {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cost-param-card--highlight {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(145deg, #12151e 0%, #111a2c 100%);
}

.param-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.4rem;
}

.param-icon {
  font-size: 1rem;
}

.param-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.param-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.param-label {
  color: #94a3b8;
  font-size: 0.75rem;
}

.param-val {
  color: #fff;
}

/* Briefing Legacy Grid */
.cost-briefing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.cost-briefing-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.15rem;
}

.cost-briefing-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.cost-briefing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}

.cost-item-label {
  color: #94a3b8;
}

.cost-item-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.65rem;
  line-height: 1.35;
}

.cost-note-box {
  background: rgba(96, 165, 250, 0.08);
  border-left: 3px solid #60a5fa;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  border-radius: 0 6px 6px 0;
  margin-top: 0.75rem;
}

.cost-protocol-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.5;
}

.cost-protocol-steps li {
  margin-bottom: 0.4rem;
}

/* Grid de Documentos (Fase 1) */
.cost-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cost-doc-card {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cost-doc-card--selected {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.08);
}

.cost-doc-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 0.65rem;
}

.doc-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.doc-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.badge--buy {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.badge--freight {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.badge--service {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.badge--pos {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.doc-date {
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
}

.doc-ident-row {
  display: flex;
  flex-direction: column;
}

.doc-number {
  font-size: 0.95rem;
  color: #f8fafc;
  font-family: monospace;
}

.doc-entity {
  font-size: 0.8rem;
  color: #94a3b8;
}

.cost-doc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.doc-concept {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

.doc-metrics-row {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-metric {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.metric-val {
  font-size: 0.88rem;
}

.cost-doc-card-selector {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.65rem;
}

.selector-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.cost-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cost-choice-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.42rem 0.65rem;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.cost-choice-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cost-choice-pill.is-selected.doc-badge--asset {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
  color: #4ade80;
}

.cost-choice-pill.is-selected.doc-badge--expense {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
  color: #f87171;
}

.cost-choice-pill.is-selected.doc-badge--sales {
  background: rgba(168, 85, 247, 0.15);
  border-color: #c084fc;
  color: #c084fc;
}

.pill-radio {
  font-size: 0.85rem;
}

/* Worksheet Layouts (Fases 2, 3, 4) */
.cost-worksheet-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.cost-worksheet-card {
  background: #12151e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cost-worksheet-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.worksheet-instruction {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.cost-table-responsive {
  overflow-x: auto;
}

.cost-worksheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.cost-worksheet-table th,
.cost-worksheet-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.cost-worksheet-table th {
  background: rgba(0, 0, 0, 0.25);
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
}

.cost-worksheet-table .row-highlight {
  background: rgba(96, 165, 250, 0.05);
}

.cost-inputs-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cost-inputs-group--border {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  margin-top: 0.4rem;
}

.cost-field label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.field-hint {
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748b;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.cost-input {
  width: 100%;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  font-family: monospace;
  font-size: 0.95rem;
  padding: 0.55rem 4rem 0.55rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cost-input--large {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffd460;
  padding-right: 5rem;
}

.cost-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.input-unit {
  position: absolute;
  right: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  pointer-events: none;
}

.cost-formula-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
}

.formula-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.formula-body code {
  color: #93c5fd;
  font-size: 0.78rem;
  display: block;
}

.cost-pedagogical-callout {
  display: flex;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #ffd460;
  padding: 0.75rem 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cost-metrics-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.metric-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-card-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

.metric-card-val {
  font-size: 1.05rem;
  font-family: monospace;
}

.cost-formula-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.formula-math-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.05em;
}

.formula-fraction {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.fraction-top {
  padding-bottom: 0.25rem;
  text-align: center;
}

.fraction-bar {
  width: 100%;
  height: 2px;
  background: #60a5fa;
}

.fraction-bottom {
  padding-top: 0.25rem;
  text-align: center;
}

.formula-substitution {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.formula-substitution code {
  color: #ffd460;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Split Grid (Fase 5 Cierre) */
.cost-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.invariant-check-container {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.invariant-check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.invariant-check-body {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.invariant-stat {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
}

.invariant-stat span {
  color: #64748b;
}

.invariant-stat strong {
  font-size: 0.92rem;
}

.invariant-badge-status {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.status--balanced {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.status--unbalanced {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

/* Lista de Decisiones de Cierre */
.cost-decisions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cost-decision-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.cost-decision-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.cost-decision-card.is-selected {
  background: rgba(96, 165, 250, 0.1);
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.12);
}

.cost-decision-radio {
  font-size: 1rem;
  color: #60a5fa;
  padding-top: 0.1rem;
}

.cost-decision-content {
  flex: 1;
}

.cost-decision-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.cost-decision-icon {
  font-size: 1rem;
}

.cost-decision-title {
  color: #fff;
  font-size: 0.88rem;
}

.cost-decision-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.decision-badge--success {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.decision-badge--danger {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.decision-badge--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.cost-decision-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* Footer de Fase */
.cost-phase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.primary-btn--finish {
  background: #16a34a !important;
  border-color: #22c55e !important;
}

.primary-btn--finish:hover {
  background: #15803d !important;
}

/* Resultados Económicos y Dictamen */
.cost-economic-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0;
}

.cost-economic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cost-economic-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cost-economic-table .row-subtotal {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cost-economic-table .row-total {
  background: rgba(74, 222, 128, 0.06);
  border-top: 2px solid rgba(74, 222, 128, 0.4);
  font-size: 0.92rem;
}

.table-comment {
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
}

.results-invariant-box {
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.invariant--verified {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.invariant-box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #4ade80;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.invariant-box-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

/* Adaptaciones responsivas */
@media (max-width: 900px) {
  .cost-worksheet-layout,
  .cost-split-grid,
  .cost-docs-grid,
  .cost-briefing-grid,
  .cost-briefing-5cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   DESAFÍO 04.3: CONCILIACIÓN INTEGRAL Y GESTIÓN (fin-3)
   ========================================================================= */
.fin3-negocio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fin3-panel-card {
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fin3-panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.fin3-panel-icon {
  font-size: 1.25rem;
}

.fin3-panel-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.fin3-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.fin3-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.fin3-stat-highlight {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
}

.fin3-stat-alert {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
}

.fin3-panel-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.25rem 0 0;
  line-height: 1.35;
}

.fin3-panel-note {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
  margin: 0.25rem 0 0;
}

.fin3-formula-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.formula-pill {
  font-size: 0.8rem;
  color: #e0f2fe;
}

.fin3-calc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.fin3-form-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fin3-reference-aside {
  background: rgba(15, 18, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fin3-reference-aside h3 {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.fin3-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.83rem;
}

.fin3-ref-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 0.25rem;
}

.fin3-ref-box {
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem;
  border-radius: 6px;
  line-height: 1.35;
}

.fin3-inconsistency-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.fin3-inconsistency-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fin3-inconsistency-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.fin3-inconsistency-card.is-selected {
  background: rgba(14, 165, 233, 0.08);
  border-color: #0ea5e9;
}

.fin3-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #0ea5e9;
  margin-top: 0.2rem;
  cursor: pointer;
}

.fin3-inconsistency-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fin3-inconsistency-label {
  font-size: 0.92rem;
  color: #f1f5f9;
}

.fin3-inconsistency-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* =========================================================================
   DESAFÍO 03.1: DIAGNÓSTICO DE RECLAMO EN MOSTRADOR (cl-1)
   ========================================================================= */
.claims-case-counter-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}

.claims-case-card {
  background: rgba(16, 18, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.claims-case-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.claims-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.claims-meta-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.claims-meta-val {
  font-size: 0.88rem;
  color: #f8fafc;
}

.claims-speech-bubble {
  display: flex;
  gap: 0.85rem;
  background: rgba(30, 41, 59, 0.4);
  border-left: 3px solid #38bdf8;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
}

.speech-avatar {
  font-size: 1.35rem;
}

.speech-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.speech-sender {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
}

.speech-text {
  font-size: 0.9rem;
  font-style: italic;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.claims-inspection-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inspection-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inspection-icon {
  font-size: 1rem;
}

.inspection-card-head h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 0;
  text-transform: uppercase;
}

.inspection-report-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.claims-decision-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.claims-decision-section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.claims-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
}

.claims-option-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: all 0.15s ease;
  color: inherit;
}

.claims-option-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.claims-option-pill.is-selected {
  background: rgba(14, 165, 233, 0.12);
  border-color: #38bdf8;
}

.pill-radio-indicator {
  font-size: 1rem;
  color: #38bdf8;
  line-height: 1.2;
}

.pill-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pill-title {
  font-size: 0.85rem;
  color: #f8fafc;
}

.pill-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .fin3-calc-grid {
    grid-template-columns: 1fr;
  }
}

