:root {
  --bg-1: #020617;
  --bg-2: #0f172a;
  --glass: rgba(15, 23, 42, 0.78);
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(148, 163, 184, 0.4);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --accent-2: #60a5fa;
  --danger: #ef4444;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Geist", "Sora", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #111b32 0%, #0b1220 34%, #020617 100%);
  overflow-x: hidden;
  font-feature-settings: "rlig" 1, "calt" 1;
}

.font-display {
  font-family: "Geist", "Sora", sans-serif;
  letter-spacing: 0;
}

.app-bg {
  position: relative;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
}

.orb-one {
  width: 300px;
  height: 300px;
  background: #2563eb;
  top: -80px;
  right: -60px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: #1d4ed8;
  left: -80px;
  top: 30%;
}

.orb-three {
  width: 280px;
  height: 280px;
  background: #38bdf8;
  right: 20%;
  bottom: -120px;
}

.glass-card {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.4);
}

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

.section-title {
  margin-top: 0.4rem;
  font-family: "Geist", "Sora", sans-serif;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.2;
  font-weight: 650;
  color: #ffffff;
}

.section-subtitle {
  margin-top: 0.4rem;
  color: #b6c6dc;
  font-size: 0.95rem;
  line-height: 1.55;
}

.brand-title {
  margin: 0;
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.ui-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ui-icon-lg {
  width: 1.3rem;
  height: 1.3rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  padding: 0.44rem 0.76rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(30, 41, 59, 0.56);
}

.nav-link.active {
  color: #e2edff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.24);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.module-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subnav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.78rem;
  color: #b6c6dc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  background: rgba(30, 41, 59, 0.35);
}

.subnav-link.active {
  color: #e2edff;
  border-color: rgba(96, 165, 250, 0.56);
  background: rgba(37, 99, 235, 0.32);
}

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

.module-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.module-title {
  margin: 0;
  color: #eef6ff;
  font-size: 1.15rem;
  font-weight: 700;
}

.module-title-row {
  margin-top: 0.42rem;
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.module-icon-badge {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.52);
  background: rgba(37, 99, 235, 0.22);
}

.module-copy {
  margin-top: 0.4rem;
  color: #b6cee3;
  font-size: 0.92rem;
  line-height: 1.5;
}

.module-card-disabled {
  border-color: rgba(158, 178, 202, 0.2);
  opacity: 0.82;
}

.module-home .orb-two,
.module-home .orb-three,
.module-course_report .orb-two,
.module-course_report .orb-three,
.module-coordinator .orb-two,
.module-coordinator .orb-three {
  display: none;
}

.module-home .orb-one,
.module-course_report .orb-one,
.module-coordinator .orb-one {
  width: 240px;
  height: 240px;
  opacity: 0.09;
  filter: blur(90px);
  top: 120px;
  left: -90px;
  right: auto;
}

.module-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.module-hero-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
  border-color: rgba(96, 165, 250, 0.2);
}

.module-progress-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.7));
  border-color: rgba(96, 165, 250, 0.18);
}

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

.module-stage-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-color: rgba(148, 163, 184, 0.22);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
}

.status-pill.done {
  color: #d1fae5;
  border: 1px solid rgba(34, 197, 94, 0.55);
  background: rgba(22, 163, 74, 0.22);
}

.status-pill.active {
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.58);
  background: rgba(37, 99, 235, 0.26);
}

.status-pill.idle {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(51, 65, 85, 0.35);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.3);
  padding: 0.62rem 0.72rem;
}

.flow-step span {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
}

.flow-step span .ui-icon {
  width: 0.84rem;
  height: 0.84rem;
}

.flow-step p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

.flow-step.done {
  border-color: rgba(96, 165, 250, 0.46);
  background: rgba(37, 99, 235, 0.18);
}

.flow-step.done span {
  border-color: rgba(96, 165, 250, 0.7);
  color: #dbeafe;
}

.flow-step.active {
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(37, 99, 235, 0.28);
}

.flow-step.active span {
  border-color: rgba(147, 197, 253, 0.84);
  color: #eff6ff;
  background: rgba(59, 130, 246, 0.26);
}

.report-workspace {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.72));
  border-color: rgba(148, 163, 184, 0.22);
}

.upload-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  padding: 2.1rem 1rem;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragging {
  border-color: rgba(96, 165, 250, 0.78);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.82));
  transform: translateY(-1px);
}

.upload-drop-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.26);
}

.upload-drop-icon .ui-icon {
  width: 1.22rem;
  height: 1.22rem;
}

.upload-drop-title {
  margin-top: 1rem;
  color: #ecf6ff;
  font-size: 1.02rem;
  font-weight: 600;
}

.upload-drop-copy {
  margin-top: 0.34rem;
  color: #aac6df;
  font-size: 0.92rem;
}

.upload-drop-hint {
  margin-top: 0.68rem;
  color: #94a3b8;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

.upload-drop-file {
  margin-top: 0.72rem;
  color: #dbeafe;
  font-size: 0.82rem;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.step-pill {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #c0d8ea;
  background: rgba(255, 255, 255, 0.03);
}

.step-pill.active {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(37, 99, 235, 0.24);
  color: #dbeafe;
}

.workflow-rail {
  background: linear-gradient(145deg, rgba(5, 24, 45, 0.84), rgba(3, 16, 32, 0.88));
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #9bb8d0;
  font-size: 0.9rem;
}

.progress-head span {
  color: #5ba9ff;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
  transition: width 0.22s ease;
}

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

.step-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.44);
  color: #94a3b8;
}

.step-node.done {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.2);
  color: #dbeafe;
}

.step-node.active {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(37, 99, 235, 0.32);
  color: #eff6ff;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.82);
}

.step-dot .ui-icon {
  width: 0.72rem;
  height: 0.72rem;
}

.step-node.active .step-dot {
  border-color: rgba(147, 197, 253, 0.84);
  background: rgba(59, 130, 246, 0.3);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.upload-layout {
  display: flex;
  justify-content: center;
}

.upload-main-card {
  width: min(940px, 100%);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74));
}

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

.upload-drop-zone-dual {
  min-height: 270px;
  padding: 1.8rem 1rem;
}

.upload-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.upload-submit-btn {
  min-width: 220px;
}

.login-icon-wrap {
  margin-top: 0.45rem;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.56);
  background: rgba(37, 99, 235, 0.22);
}

.upload-zone {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-zone:hover {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(37, 99, 235, 0.14);
}

.upload-label {
  display: block;
  color: #ecf8ff;
  font-weight: 600;
}

.upload-hint {
  display: block;
  margin-top: 0.2rem;
  color: #9eb9ce;
  font-size: 0.85rem;
}

.upload-zone-premium {
  position: relative;
  padding: 1.1rem 1rem 1.02rem 3.2rem;
  border-color: rgba(137, 179, 229, 0.34);
  background: linear-gradient(120deg, rgba(19, 44, 79, 0.46), rgba(9, 24, 45, 0.54));
}

.upload-zone-premium:hover {
  border-color: rgba(78, 179, 255, 0.75);
  background: linear-gradient(120deg, rgba(20, 56, 104, 0.58), rgba(11, 29, 58, 0.72));
}

.upload-step {
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  width: 1.58rem;
  height: 1.58rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d7ecff;
  border: 1px solid rgba(99, 176, 255, 0.7);
  background: rgba(32, 101, 192, 0.55);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.9rem;
  padding: 0.62rem 1.1rem;
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}

.btn-primary {
  color: #0f172a;
  font-weight: 700;
  border-color: rgba(147, 197, 253, 0.5);
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #93c5fd, #60a5fa);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.32);
}

.btn-secondary {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.45);
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(148, 163, 184, 0.45);
}

.flash {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.flash-error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fee2e2;
}

.flash-warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

.flash-info,
.flash-message {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.35);
  color: #dbeafe;
}

.tag {
  font-size: 0.76rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.tag.clo {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.24);
}

.metric {
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
  margin-top: 0.3rem;
}

.th-cell {
  text-align: left;
  padding: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7c3da;
}

.td-cell {
  padding: 0.72rem;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.48);
  color: #fff;
  padding: 0.52rem 0.65rem;
  font-size: 0.88rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.mapping-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.58);
  padding: 1rem;
}

.mapping-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr auto;
  gap: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
}

.mapping-sheet {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
}

.mapping-sheet-head {
  display: grid;
  grid-template-columns: 2.4fr 2fr 3fr;
  background: linear-gradient(120deg, rgba(30, 41, 59, 0.78), rgba(30, 41, 59, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sheet-head-cell {
  padding: 0.72rem 0.8rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e2e8f0;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.sheet-head-cell:last-child {
  border-right: none;
}

.mapping-sheet-subhead {
  display: grid;
  grid-template-columns: 2.4fr 2fr 3fr;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.38);
}

.sheet-sub {
  padding: 0.58rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.sheet-sub:last-child {
  border-right: none;
}

.mapping-rows {
  display: flex;
  flex-direction: column;
}

.mapping-row {
  display: grid;
  grid-template-columns: 2.4fr 2fr 3fr;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mapping-row:last-child {
  border-bottom: none;
}

.mapping-cell {
  padding: 0.78rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.mapping-cell:last-child {
  border-right: none;
}

.cell-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.cell-index {
  font-size: 0.7rem;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.44);
  color: #dbeafe;
}

.cell-label {
  display: block;
  margin-top: 0.62rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc0d8;
}

.source-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  max-height: 180px;
  overflow: auto;
  padding-right: 0.2rem;
}

.source-chip {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius);
  padding: 0.35rem 0.42rem;
  color: #dbeafe;
}

.source-chip.selected {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.3);
}

.source-chip.unselected {
  opacity: 0.86;
}

.result-line {
  margin-top: 0.58rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(113, 169, 226, 0.42);
  background: rgba(33, 89, 149, 0.28);
  border-radius: 8px;
}

.control-block {
  margin-bottom: 0.62rem;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.62rem;
}

.rule-pill {
  margin-top: 0.58rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  font-size: 0.72rem;
  border: 1px solid rgba(149, 184, 221, 0.3);
  background: rgba(110, 141, 175, 0.16);
  color: #e7f3ff;
}

.bucket-sum {
  margin-top: 0.45rem;
  font-size: 0.76rem;
}

.bucket-sum.ok {
  color: #9cffd6;
}

.bucket-sum.warn {
  color: #ffd594;
}

.row-actions {
  margin-top: 0.72rem;
}

.bucket-head {
  display: grid;
  grid-template-columns: 1fr 120px 130px 82px;
  gap: 0.4rem;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8d0e4;
  margin-bottom: 0.35rem;
}

.bucket-table {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.bucket-table-row {
  display: grid;
  grid-template-columns: 1fr 120px 130px 82px;
  gap: 0.4rem;
  align-items: center;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(104, 194, 255, 0.42);
  background: rgba(39, 120, 194, 0.28);
  color: #e5f4ff;
  font-size: 0.78rem;
}

.mapping-shell {
  background: linear-gradient(166deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
  border-color: rgba(148, 163, 184, 0.22);
}

.mode-pill {
  font-size: 0.76rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.44rem 0.72rem;
  border-radius: 10px;
}

.mapping-soft-note {
  font-size: 0.78rem;
  color: #94a3b8;
}

.side-card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.72));
}

.clo-group-card {
  border-radius: 11px;
  border: 1px solid rgba(159, 190, 222, 0.28);
  background: rgba(103, 139, 180, 0.12);
  padding: 0.65rem 0.75rem;
}

.clo-group-title {
  font-size: 0.76rem;
  color: #d5e8fa;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-pane {
  border: 1px solid rgba(157, 189, 222, 0.24);
  border-radius: 10px;
  padding: 0.58rem;
  background: rgba(10, 28, 47, 0.46);
}

.source-selected-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #c8def2;
  margin-bottom: 0.4rem;
}

.source-selected-head strong {
  color: #e6f3ff;
  font-weight: 700;
}

.source-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-bottom: 0.5rem;
}

.selected-col-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-size: 0.69rem;
  color: #dff0ff;
  background: rgba(55, 143, 223, 0.35);
  border: 1px solid rgba(104, 187, 255, 0.6);
}

.source-empty {
  font-size: 0.71rem;
  color: #f8c8c8;
  background: rgba(180, 66, 66, 0.2);
  border: 1px solid rgba(210, 90, 90, 0.42);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.source-chooser-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9dbdd9;
  margin-bottom: 0.4rem;
}

.clo-picker {
  display: grid;
  gap: 0.28rem;
}

.clo-inline {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  color: #d8ecff;
  border-radius: 999px;
  border: 1px solid rgba(112, 175, 234, 0.56);
  background: rgba(53, 118, 182, 0.28);
  padding: 0.18rem 0.44rem;
  width: fit-content;
}

.clo-inline.empty {
  color: #ffd4d4;
  border-color: rgba(215, 102, 102, 0.55);
  background: rgba(147, 49, 49, 0.3);
}

.btn-secondary.small {
  font-size: 0.72rem;
  padding: 0.45rem 0.55rem;
}

.mapping-grid {
  display: grid;
  grid-template-columns: 1fr 160px 180px;
  gap: 0.8rem;
}

.mapping-buckets {
  margin-top: 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.bucket-row {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.animate-rise {
  animation: rise 420ms ease both;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 150ms;
}

.delay-3 {
  animation-delay: 230ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-nav {
    justify-content: flex-start;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
    line-height: 1.4;
  }

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

  .mapping-toolbar {
    grid-template-columns: 1fr;
  }

  .mapping-sheet-head,
  .mapping-sheet-subhead,
  .mapping-row {
    grid-template-columns: 1fr;
  }

  .sheet-head-cell,
  .sheet-sub,
  .mapping-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .mapping-cell:last-child {
    border-bottom: none;
  }

  .bucket-head,
  .bucket-table-row {
    grid-template-columns: 1fr;
  }

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

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

  .bucket-row {
    grid-template-columns: 1fr;
  }

  .upload-dual-grid {
    grid-template-columns: 1fr;
  }

  .upload-submit-btn {
    width: 100%;
  }

  .module-stage-grid,
  .flow-steps {
    grid-template-columns: 1fr;
  }
}
