:root {
  --mint-700: #0F766E;
  --mint-600: #0D9488;
  --mint-500: #14B8A6;
  --mint-200: #99F6E4;
  --mint-100: #CCFBF1;
  --mint-50: #F0FDFA;

  --orange-600: #EA580C;
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-100: #FFEDD5;

  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;

  --sky-600: #2563EB;
  --sky-500: #3B82F6;
  --sky-100: #DBEAFE;

  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-100: #FEF3C7;

  --rose-600: #DC2626;
  --rose-500: #EF4444;
  --rose-100: #FEE2E2;

  --violet-600: #7C3AED;
  --violet-100: #EDE9FE;

  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 28px -8px rgba(13, 148, 136, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 16px 36px -10px rgba(13, 148, 136, 0.22), 0 4px 10px rgba(15, 23, 42, 0.06);
  --shadow-cta: 0 4px 0 #C2410C, 0 10px 20px rgba(249, 115, 22, 0.28);
  --shadow-mint-btn: 0 4px 0 #0F766E, 0 8px 16px rgba(13, 148, 136, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  line-height: 1.5;
  font-family: "Inter", "Noto Sans", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(155deg, #ECFEFF 0%, #F0FDFA 35%, #F8FAFC 68%, #EFF6FF 100%);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

html[lang="th"] {
  line-height: 1.7;
  font-family: "Noto Sans Thai", "Sarabun", "Inter", "Noto Sans", system-ui, sans-serif;
}

html[lang="th"] p,
html[lang="th"] span,
html[lang="th"] div,
html[lang="th"] button,
html[lang="th"] td,
html[lang="th"] th {
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
  min-height: 36px;
  height: auto;
  padding-block: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== App Shell & Mobile Frame Mode ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: max-width 0.25s ease, box-shadow 0.25s ease, margin 0.25s ease;
}

body.mobile-preview {
  background: radial-gradient(circle at top, #CCFBF1 0%, #E2E8F0 55%, #CBD5E1 100%);
  padding: 18px 12px 28px;
}

body.mobile-preview .app-shell {
  width: 390px;
  max-width: 100%;
  min-height: 820px;
  max-height: 880px;
  margin: 0 auto;
  border-radius: 38px;
  border: 10px solid #0F172A;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.30);
  background: linear-gradient(160deg, #F0FDFA 0%, #F8FAFC 50%, #EFF6FF 100%);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.14);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 55%, #0F766E 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 0 #115E59, 0 8px 16px rgba(13, 148, 136, 0.28);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--mint-700);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.realtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ECFDF5, #CCFBF1);
  border: 1px solid #5EEAD4;
  color: #065F46;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.14);
}

.realtime-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.22);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-select {
  appearance: none;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 22px 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-800);
  height: 36px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  cursor: pointer;
}

html[lang="th"] .tool-select {
  height: 36px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

.tool-select:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.btn-ghost {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ghost:hover {
  border-color: var(--mint-500);
  color: var(--mint-700);
  background: var(--mint-50);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: var(--shadow-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #C2410C, 0 4px 10px rgba(249, 115, 22, 0.22);
}

.btn-mint {
  background: linear-gradient(135deg, var(--mint-500) 0%, var(--mint-600) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-mint-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mint:hover {
  transform: translateY(-1px);
}

.btn-danger-soft {
  background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
  color: #B91C1C;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger-soft:hover {
  background: #FEE2E2;
  transform: translateY(-1px);
}

/* ===== Main Workspace Layout ===== */
.workspace-body {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px 88px;
  gap: 20px;
}

.sidebar {
  width: 224px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 78px;
  align-self: flex-start;
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--slate-700);
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid transparent;
}

.nav-btn:hover {
  background: #FFFFFF;
  border-color: var(--mint-200);
  color: var(--mint-700);
}

.nav-btn.active {
  background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}

.nav-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sidebar-promo-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #FFF7ED 0%, #FFEDD5 100%);
  border: 1.5px solid #FDBA74;
  font-size: 0.82rem;
  color: #9A3412;
}

.sidebar-promo-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.view-panel {
  display: none;
  animation: fadeSlide 0.22s ease;
}

.view-panel.active {
  display: block;
}

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

/* ===== Cards & Section Headers ===== */
.surface-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--slate-600);
}

/* ===== KPI Grid ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.kpi-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint-500), #38BDF8);
}

.kpi-card.kpi-orange::after {
  background: linear-gradient(90deg, var(--orange-400), #F59E0B);
}

.kpi-card.kpi-emerald::after {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.kpi-card.kpi-violet::after {
  background: linear-gradient(90deg, #7C3AED, #EC4899);
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

#kpiRankTitle {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.kpi-hint {
  font-size: 0.76rem;
  color: var(--slate-500);
}

.kpi-link {
  align-self: flex-start;
  padding: 4px 10px;
  min-height: 28px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--mint-50);
  color: var(--mint-700);
  border: 1px solid var(--mint-200);
}

.kpi-link:hover {
  background: var(--mint-100);
}

/* ===== Filter Pill Bar ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-700);
}

.filter-pill:hover {
  border-color: var(--mint-500);
}

.filter-pill.active {
  background: var(--slate-900);
  color: #FFFFFF;
  border-color: var(--slate-900);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.filter-count {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  background: rgba(148, 163, 184, 0.22);
}

.filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.22);
}

/* ===== Employee Cards Grid ===== */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.emp-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.emp-card.is-scrapped {
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 35%);
}

.emp-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #F1F5F9;
  overflow: hidden;
}

.emp-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.emp-card:hover .emp-art-img {
  transform: scale(1.03);
}

.emp-art-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.vendor-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
  max-width: 100%;
}

.vendor-claude { background: linear-gradient(135deg, #F97316, #EA580C); }
.vendor-openai { background: linear-gradient(135deg, #10B981, #059669); }
.vendor-gemini { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.vendor-grok { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.status-WORKING { background: rgba(16, 185, 129, 0.94); color: #FFFFFF; }
.status-STANDBY { background: rgba(59, 130, 246, 0.94); color: #FFFFFF; }
.status-RESTING { background: rgba(100, 116, 139, 0.92); color: #FFFFFF; }
.status-COOLING { background: rgba(245, 158, 11, 0.95); color: #FFFFFF; }
.status-SCRAPPED { background: rgba(239, 68, 68, 0.95); color: #FFFFFF; }
.status-BADGE_EXPIRED { background: rgba(217, 119, 6, 0.95); color: #FFFFFF; }

.emp-art-ribbon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.lock-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(6, 95, 70, 0.94);
  color: #ECFDF5;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.35);
}

.cooling-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(180, 83, 9, 0.94);
  color: #FEF3C7;
  font-size: 0.76rem;
  font-weight: 800;
}

.emp-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.emp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emp-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.emp-name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--slate-900);
  overflow-wrap: anywhere;
}

.rename-trigger {
  min-height: 28px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate-600);
  background: var(--slate-100);
  flex-shrink: 0;
}

.rename-trigger:hover {
  background: var(--mint-100);
  color: var(--mint-700);
}

/* Tactile Toggle Switch */
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.switch-btn {
  position: relative;
  width: 48px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  background: #CBD5E1;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.switch-btn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}

.switch-btn.is-on {
  background: linear-gradient(135deg, #10B981, #0D9488);
}

.switch-btn.is-on::after {
  transform: translateX(20px);
}

.emp-status-desc {
  font-size: 0.8rem;
  color: var(--slate-600);
  background: var(--slate-50);
  border-radius: 11px;
  padding: 7px 10px;
  border-left: 3px solid var(--mint-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.emp-card.is-scrapped .emp-status-desc {
  background: #FEF2F2;
  border-left-color: var(--rose-500);
  color: #991B1B;
}

.emp-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-box {
  background: var(--slate-50);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}

.metric-k {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
}

.metric-v {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 2px;
}

.cap-progress-track,
.health-track,
.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
  margin-top: 5px;
}

.cap-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14B8A6, #0EA5E9);
}

.health-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.health-fill-good { background: linear-gradient(90deg, #10B981, #34D399); height: 100%; border-radius: 999px; }
.health-fill-warn { background: linear-gradient(90deg, #F59E0B, #FBBF24); height: 100%; border-radius: 999px; }
.health-fill-danger { background: linear-gradient(90deg, #F97316, #EF4444); height: 100%; border-radius: 999px; }
.health-fill-scrapped { background: #EF4444; height: 100%; border-radius: 999px; }

.emp-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
  background: #F0FDFA;
  color: var(--mint-700);
  border: 1px solid #99F6E4;
}

.mini-tag.tag-intensity-turbo {
  background: #FFF7ED;
  color: #C2410C;
  border-color: #FDBA74;
}

.mini-tag.tag-intensity-eco {
  background: #ECFDF5;
  color: #047857;
  border-color: #6EE7B7;
}

.emp-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.emp-footer > button {
  flex: 1;
  min-width: 110px;
}

/* ===== Retirement Archive Collapsible ===== */
.archive-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px dashed #CBD5E1;
  padding: 16px 18px;
}

.archive-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 4px 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.archive-item {
  border-radius: 16px;
  background: linear-gradient(135deg, #F8FAFC, #F0FDFA);
  border: 1px solid #CBD5E1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* ===== Recruit Wizard ===== */
.inherit-banner {
  background: linear-gradient(135deg, #ECFDF5, #CCFBF1);
  border: 1.5px solid #14B8A6;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #065F46;
  font-weight: 700;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.vendor-pick-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.vendor-pick-card.selected {
  border-color: var(--mint-500);
  background: #F0FDFA;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.18);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.step-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: #F1F5F9;
  color: var(--slate-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border: 1.5px solid transparent;
}

.step-chip.active {
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25);
}

.step-chip.done {
  background: #ECFDF5;
  color: #047857;
  border-color: #6EE7B7;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-800);
}

.text-input,
.select-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--slate-900);
  font-weight: 600;
}

.text-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input-row .text-input {
  flex: 1;
  min-width: 180px;
}

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

.choice-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 13px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-card.selected {
  border-color: var(--mint-500);
  background: #F0FDFA;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.14);
}

.choice-card.selected.is-turbo {
  border-color: var(--orange-500);
  background: #FFF7ED;
}

/* ===== V2.3 Region Grid, Bind Card, Threshold & Mobile Handbook ===== */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10B981, #0D9488);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  align-self: flex-start;
}

.region-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1.5px solid #CCFBF1;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.region-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-800);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.region-card:hover {
  border-color: var(--mint-500);
}

.region-card.selected {
  border-color: var(--mint-600);
  background: var(--mint-50);
  color: var(--mint-700);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.16);
}

.wallet-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.bind-status-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  border: 1.5px solid #E2E8F0;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bind-status-card.is-bound {
  border-color: #14B8A6;
  background: linear-gradient(155deg, #F0FDFA 0%, #FFFFFF 55%);
}

.bind-status-card.is-unbound {
  border-color: #F59E0B;
  background: linear-gradient(155deg, #FFFBEB 0%, #FFFFFF 55%);
}

.masked-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #99F6E4;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--slate-900);
  flex-wrap: wrap;
}

.handbook-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.handbook-tab-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.handbook-tab-btn.active {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.handbook-tab-btn.active.vendor-claude {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
}

.handbook-tab-btn.active.vendor-openai {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.handbook-tab-btn.active.vendor-gemini {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
}

.handbook-tab-btn.active.vendor-grok {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
}

.handbook-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.handbook-step-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.handbook-step-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--mint-700);
}

.handbook-step-body {
  font-size: 0.84rem;
  color: var(--slate-700);
}

/* ===== V2.4 Welcome Banner, Tier Badges, Step-Up OTP, FAB & Monitor ===== */
.welcome-banner {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 55%, #0284C7 100%);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.welcome-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.20);
  font-size: 0.78rem;
  font-weight: 800;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.welcome-collapse-btn {
  padding: 5px 12px;
  min-height: 30px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
}

.welcome-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 800;
}

.tier-starter {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #6EE7B7;
}

.tier-flagship {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  color: #C2410C;
  border: 1px solid #FDBA74;
}

.stepup-box {
  background: #F8FAFC;
  border: 1.5px solid #99F6E4;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-google {
  width: 100%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-weight: 800;
  color: var(--slate-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.btn-google:hover {
  border-color: var(--sky-500);
  background: #F8FAFC;
}

.payroll-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 0.86rem;
}

.payroll-row.payroll-total {
  background: linear-gradient(135deg, #ECFDF5, #CCFBF1);
  border-color: #14B8A6;
  color: #065F46;
  font-weight: 900;
  font-size: 0.96rem;
}

.floating-dock {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.support-fab {
  background: linear-gradient(135deg, #0068FF, #0284C7);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 10px 26px rgba(0, 104, 255, 0.34);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-fab:hover {
  transform: translateY(-2px);
}

.feedback-fab {
  background: linear-gradient(135deg, #0F172A, #0F766E);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-fab:hover {
  transform: translateY(-2px);
}

.support-channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-channel-card {
  border: 1.5px solid #CBD5E1;
  border-radius: 16px;
  padding: 14px 16px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.support-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
}

.support-channel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.support-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  flex: 1;
  min-width: 170px;
}

.support-jump-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.monitor-sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.funnel-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.funnel-bar-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14B8A6, #3B82F6);
}

.ticket-item {
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #F8FAFC;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
}

.textarea-input {
  width: 100%;
  min-height: 86px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  font-family: inherit;
  font-size: inherit;
  resize: vertical;
}

.textarea-input:focus {
  outline: none;
  border-color: var(--mint-500);
}

/* ===== V2.5 Probation, Dual-Path Recruit, Micro-Guide Cards & Graduate Modal ===== */
.status-PROBATION { background: rgba(99, 102, 241, 0.94); color: #FFFFFF; }
.status-PROBATION_READY { background: linear-gradient(135deg, #F59E0B, #D97706); color: #FFFFFF; }

.emp-card.is-probation {
  border-color: #A5B4FC;
  background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 35%);
}

.emp-card.is-probation-ready {
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 38%);
  box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.28);
}

.probation-ready-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1.5px solid #F59E0B;
  color: #92400E;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 0.88rem;
}

.warmup-task-box {
  background: #F8FAFC;
  border: 1px dashed #94A3B8;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.warmup-topic-text {
  font-size: 0.82rem;
  color: var(--slate-800);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 600;
}

.gentle48-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #34D399;
}

.path-switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.path-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 15px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.path-card.active {
  border-color: var(--mint-600);
  background: linear-gradient(150deg, #F0FDFA 0%, #FFFFFF 65%);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.16);
}

.probation-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.micro-guide-card {
  background: linear-gradient(155deg, #F0FDFA 0%, #EFF6FF 100%);
  border: 1.5px solid #99F6E4;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.micro-svg-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #CCFBF1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.12);
}

.stage-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stage-card {
  background: linear-gradient(155deg, #F8FAFC 0%, #F0FDFA 100%);
  border: 1.5px solid #CCFBF1;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
}

.stage-card:hover {
  border-color: var(--mint-500);
  transform: translateY(-2px);
}

.grad-plan-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grad-plan-card.selected {
  border-color: var(--mint-600);
  background: #F0FDFA;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.16);
}

.grad-plan-card.selected.is-max {
  border-color: var(--orange-500);
  background: #FFF7ED;
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 4px 0 #B45309, 0 8px 16px rgba(217, 119, 6, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-gold:hover {
  transform: translateY(-1px);
}

/* ===== Team & Calculator ===== */
.info-banner {
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-banner.mint {
  background: linear-gradient(135deg, #ECFDF5, #CCFBF1);
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.info-banner.amber {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  color: #92400E;
  border: 1px solid #FCD34D;
}

.info-banner.rose {
  background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.slider-group {
  margin-bottom: 12px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.slider-val {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint-50);
  color: var(--mint-700);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--mint-600);
  cursor: pointer;
}

.calc-result-panel {
  background: linear-gradient(155deg, #0F172A 0%, #134E4A 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 0.92rem;
  align-self: flex-start;
}

.calc-big-money {
  font-size: 1.9rem;
  font-weight: 900;
  color: #5EEAD4;
  line-height: 1.2;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.diag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diag-chip {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.diag-chip.ok {
  background: rgba(16, 185, 129, 0.22);
  color: #A7F3D0;
}

.diag-chip.warn {
  background: rgba(245, 158, 11, 0.24);
  color: #FDE68A;
}

/* ===== Tables ===== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.84rem;
}

.data-table th {
  background: #F8FAFC;
  color: var(--slate-600);
  font-weight: 800;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #E2E8F0;
}

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--slate-800);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.amount-pos { color: #059669; font-weight: 800; }
.amount-neg { color: #DC2626; font-weight: 800; }

/* ===== Guide Page ===== */
.analogy-hero {
  background: linear-gradient(135deg, #0D9488 0%, #0EA5E9 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.24);
}

.analogy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.analogy-step-box {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.86rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  font-weight: 800;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--slate-600);
  font-size: 0.88rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ===== Drawer & Modals ===== */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-backdrop.open {
  display: flex;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(4px);
  z-index: 85;
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
}

.side-drawer {
  width: 480px;
  max-width: 100%;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card {
  width: 560px;
  max-width: 100%;
  max-height: 92vh;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card.modal-wide {
  width: 700px;
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-pill {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-700);
}

.option-pill.active {
  background: var(--mint-600);
  color: #FFFFFF;
  border-color: var(--mint-600);
}

/* ===== Poster Composer ===== */
.poster-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0F172A;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
  margin: 12px 0;
}

.poster-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.20) 0%, rgba(15, 23, 42, 0.84) 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.poster-bottom-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.poster-qr-card {
  background: #FFFFFF;
  padding: 7px;
  border-radius: 12px;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

/* ===== Mobile Bottom Nav ===== */
.mobile-bottom-nav {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #E2E8F0;
  padding: 6px 4px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate-600);
  text-align: center;
}

.mobile-nav-btn.active {
  color: var(--mint-700);
  background: var(--mint-50);
}

/* ===== Toast Container ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast-item {
  background: var(--slate-900);
  color: #FFFFFF;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  border-left: 4px solid var(--mint-400, #2DD4BF);
  animation: fadeSlide 0.2s ease;
}

/* ===== Responsive & Mobile Preview Rules ===== */
body.mobile-preview .sidebar { display: none; }
body.mobile-preview .mobile-bottom-nav { display: grid; }
body.mobile-preview .topbar { padding: 10px 12px; }
body.mobile-preview .workspace-body { padding: 12px 12px 124px; }
body.mobile-preview .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.mobile-preview .kpi-grid.kpi-grid-3 { grid-template-columns: 1fr; }
body.mobile-preview .employee-grid,
body.mobile-preview .vendor-grid,
body.mobile-preview .choice-grid-3,
body.mobile-preview .choice-grid-2,
body.mobile-preview .archive-grid,
body.mobile-preview .calc-layout,
body.mobile-preview .analogy-steps,
body.mobile-preview .stepper,
body.mobile-preview .wallet-readiness-grid,
body.mobile-preview .handbook-steps-grid,
body.mobile-preview .monitor-sec-grid,
body.mobile-preview .path-switch-grid,
body.mobile-preview .probation-layout,
body.mobile-preview .stage-roadmap-grid { grid-template-columns: 1fr; }
body.mobile-preview .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mobile-preview .floating-dock { bottom: 76px; right: 14px; }
body.mobile-preview .support-fab,
body.mobile-preview .feedback-fab { padding: 8px 13px; font-size: 0.78rem; }
body.mobile-preview .kpi-value { font-size: 1.28rem; }
body.mobile-preview .topbar-tools { width: 100%; }
body.mobile-preview .topbar-tools .tool-select {
  height: 36px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 140px;
  flex: 1 1 46%;
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid.kpi-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .mobile-bottom-nav { display: grid; }
  .workspace-body { padding: 12px 12px 124px; }
  .kpi-grid.kpi-grid-3 { grid-template-columns: 1fr; }
  .employee-grid,
  .archive-grid,
  .choice-grid-3,
  .choice-grid-2,
  .analogy-steps,
  .stepper,
  .wallet-readiness-grid,
  .handbook-steps-grid,
  .monitor-sec-grid,
  .path-switch-grid,
  .probation-layout,
  .stage-roadmap-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-dock { bottom: 76px; right: 12px; }
  .support-fab,
  .feedback-fab { padding: 8px 13px; font-size: 0.78rem; }
  .topbar { padding: 10px 12px; }
  .topbar-tools { width: 100%; }
  .topbar-tools .tool-select {
    height: 36px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 140px;
    flex: 1 1 46%;
    font-size: 0.78rem;
  }
}
