.setup-complete-interactive {
  --setup-tilt-x: 0deg;
  --setup-tilt-y: 0deg;
  --setup-glow-x: 50%;
  --setup-glow-y: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--setup-glow-x) var(--setup-glow-y), rgba(96, 165, 250, 0.24), transparent 34%),
    radial-gradient(circle at 20% 12%, rgba(59, 130, 246, 0.2), transparent 38%),
    linear-gradient(145deg, #081327 0%, #0b1f3f 55%, #133965 100%);
  border: 1px solid rgba(148, 183, 239, 0.28);
  box-shadow: 0 30px 70px rgba(3, 8, 22, 0.5);
  transform: perspective(1400px) rotateX(var(--setup-tilt-y)) rotateY(var(--setup-tilt-x));
  transition: transform 120ms ease, box-shadow 220ms ease;
}

/* ---------- Final soft-premium override (must stay last) ---------- */
body[data-theme-variant="soft-premium-v3"] {
  background:
    radial-gradient(circle at 8% 4%, rgba(59, 130, 246, 0.14), transparent 30%),
    radial-gradient(circle at 95% 2%, rgba(14, 116, 144, 0.09), transparent 24%),
    linear-gradient(180deg, #e2eaf7 0%, #d6e1f2 100%) !important;
}

body[data-theme-variant="soft-premium-v3"] .page-body {
  background: linear-gradient(180deg, rgba(224, 233, 247, 0.78), rgba(214, 225, 242, 0.72)) !important;
}

body[data-theme-variant="soft-premium-v3"] .card,
body[data-theme-variant="soft-premium-v3"] .dashboard-panel,
body[data-theme-variant="soft-premium-v3"] .source-card,
body[data-theme-variant="soft-premium-v3"] .mapping-panel,
body[data-theme-variant="soft-premium-v3"] .task-summary-card,
body[data-theme-variant="soft-premium-v3"] .dashboard-task-card,
body[data-theme-variant="soft-premium-v3"] .workspace-list > .card,
body[data-theme-variant="soft-premium-v3"] .workspace-detail > .task-detail-card,
body[data-theme-variant="soft-premium-v3"] .setup-mission-screen,
body[data-theme-variant="soft-premium-v3"] .setup-complete-screen {
  background: linear-gradient(165deg, #f3f7ff 0%, #edf3ff 100%) !important;
  border-color: #c9d8ec !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 30px rgba(29, 49, 82, 0.11) !important;
}

body[data-theme-variant="soft-premium-v3"] .module-input,
body[data-theme-variant="soft-premium-v3"] .module-select,
body[data-theme-variant="soft-premium-v3"] .module-textarea,
body[data-theme-variant="soft-premium-v3"] .mini-list-row,
body[data-theme-variant="soft-premium-v3"] .task-table-row {
  background: #ebf2fd !important;
  border-color: #ccdbef !important;
}

body[data-theme-variant="soft-premium-v3"] .top-shell,
body[data-theme-variant="soft-premium-v3"] .utility-bar,
body[data-theme-variant="soft-premium-v3"] .main-nav-row,
body[data-theme-variant="soft-premium-v3"] .mega-menu-panel,
body[data-theme-variant="soft-premium-v3"] .topbar-profile-menu,
body[data-theme-variant="soft-premium-v3"] .topbar-quick-menu {
  background: linear-gradient(180deg, #f3f7ff 0%, #eaf1fd 100%) !important;
  border-color: #c8d7eb !important;
}

body[data-theme-variant="soft-premium-v3"] .dashboard-space-hero,
body[data-theme-variant="soft-premium-v3"] .setup-complete-interactive,
body[data-theme-variant="soft-premium-v3"] .mapping-panel.table-wrap,
body[data-theme-variant="soft-premium-v3"] .thiq-ai-panel {
  position: relative;
  overflow: hidden;
}

body[data-theme-variant="soft-premium-v3"] .dashboard-space-hero::after,
body[data-theme-variant="soft-premium-v3"] .setup-complete-interactive::after,
body[data-theme-variant="soft-premium-v3"] .mapping-panel.table-wrap::after,
body[data-theme-variant="soft-premium-v3"] .thiq-ai-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--scan-angle, 0deg),
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0.08) 110deg,
    rgba(34, 211, 238, 0.72) 170deg,
    rgba(59, 130, 246, 0.12) 220deg,
    rgba(59, 130, 246, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderScanFinal 5.4s linear infinite, borderBlinkFinal 8s ease-in-out infinite;
}

@keyframes borderScanFinal {
  to { --scan-angle: 360deg; }
}

@keyframes borderBlinkFinal {
  0%, 8%, 16%, 100% { opacity: 0.9; }
  4%, 12% { opacity: 0.28; }
  20% { opacity: 0.5; }
  32%, 92% { opacity: 0.74; }
}

.setup-complete-interactive .setup-title,
.setup-complete-interactive .setup-status-line,
.setup-complete-interactive .mini-list-row,
.setup-complete-interactive .setup-complete-note {
  color: #e7f0ff;
}

.setup-complete-note {
  max-width: 760px;
  margin: 10px auto 0;
  line-height: 1.6;
  font-size: 15px;
  color: rgba(231, 240, 255, 0.86);
}

.setup-dna-panel {
  margin: 16px auto 0;
  width: min(920px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(159, 193, 245, 0.28);
  background: linear-gradient(150deg, rgba(17, 40, 78, 0.72), rgba(11, 27, 56, 0.82));
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(2, 8, 24, 0.35);
}

.setup-dna-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #dbeafe;
  font-size: 13px;
}

.setup-dna-head strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.setup-dna-head span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(37, 99, 235, 0.16);
}

.setup-dna-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.setup-dna-stat {
  border-radius: 12px;
  border: 1px solid rgba(165, 196, 245, 0.24);
  background: rgba(17, 40, 78, 0.58);
  padding: 9px 10px;
}

.setup-dna-stat span {
  display: block;
  font-size: 11px;
  color: rgba(219, 234, 254, 0.8);
}

.setup-dna-stat b {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 15px;
}

.setup-dna-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(191, 219, 254, 0.18);
}

.setup-dna-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #3b82f6);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
  transition: width 0.45s ease;
}

.setup-dna-feed {
  margin-top: 10px;
  max-height: 140px;
  overflow: auto;
  display: grid;
  gap: 7px;
}

.setup-dna-item {
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: rgba(15, 30, 57, 0.64);
  color: #dbeafe;
  font-size: 12px;
  padding: 7px 9px;
}

.file-input-wrap {
  display: grid;
  gap: 4px;
}

.file-input-hint {
  font-size: 11px;
  color: #6b7d97;
}

.dashboard-space-hero {
  --space-tilt-x: 0deg;
  --space-tilt-y: 0deg;
  --space-glow-x: 50%;
  --space-glow-y: 50%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--space-glow-x) var(--space-glow-y), rgba(96, 165, 250, 0.28), transparent 35%),
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.35), transparent 40%),
    linear-gradient(135deg, #10213f 0%, #153667 52%, #1d4ed8 100%);
  border: 1px solid rgba(152, 193, 255, 0.26);
  box-shadow: 0 24px 52px rgba(11, 26, 56, 0.42);
  transform: perspective(1400px) rotateX(var(--space-tilt-y)) rotateY(var(--space-tilt-x));
  transition: transform 120ms ease, box-shadow 180ms ease;
}

/* Soft Premium v3
   NOTE: legacy styles are intentionally preserved.
   Rollback instantly by running:
   window.__APP__?.setThemeVariant("default")
*/
body[data-theme-variant="soft-premium-v3"] {
  background:
    radial-gradient(circle at 9% 5%, rgba(59, 130, 246, 0.13), transparent 28%),
    radial-gradient(circle at 95% 3%, rgba(14, 116, 144, 0.08), transparent 22%),
    linear-gradient(180deg, #e7eef9 0%, #dfe8f6 100%);
}

body[data-theme-variant="soft-premium-v3"] .page-body {
  background: linear-gradient(180deg, rgba(232, 239, 250, 0.8), rgba(224, 234, 247, 0.72));
}

body[data-theme-variant="soft-premium-v3"] .card,
body[data-theme-variant="soft-premium-v3"] .dashboard-panel,
body[data-theme-variant="soft-premium-v3"] .source-card,
body[data-theme-variant="soft-premium-v3"] .mapping-panel,
body[data-theme-variant="soft-premium-v3"] .task-summary-card,
body[data-theme-variant="soft-premium-v3"] .dashboard-task-card,
body[data-theme-variant="soft-premium-v3"] .workspace-list > .card,
body[data-theme-variant="soft-premium-v3"] .workspace-detail > .task-detail-card {
  background: linear-gradient(170deg, #f7faff 0%, #f2f7ff 100%);
  border-color: #d1ddec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 30px rgba(31, 51, 84, 0.09);
}

body[data-theme-variant="soft-premium-v3"] .module-input,
body[data-theme-variant="soft-premium-v3"] .module-select,
body[data-theme-variant="soft-premium-v3"] .module-textarea,
body[data-theme-variant="soft-premium-v3"] .task-table-row,
body[data-theme-variant="soft-premium-v3"] .mini-list-row {
  background: #f2f6fd;
  border-color: #d3dfef;
}

body[data-theme-variant="soft-premium-v3"] .top-shell,
body[data-theme-variant="soft-premium-v3"] .utility-bar,
body[data-theme-variant="soft-premium-v3"] .main-nav-row,
body[data-theme-variant="soft-premium-v3"] .mega-menu-panel,
body[data-theme-variant="soft-premium-v3"] .topbar-profile-menu,
body[data-theme-variant="soft-premium-v3"] .topbar-quick-menu {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  border-color: #cfdbeb;
}

body[data-theme-variant="soft-premium-v3"] .dashboard-space-hero,
body[data-theme-variant="soft-premium-v3"] .setup-complete-interactive,
body[data-theme-variant="soft-premium-v3"] .source-loading-panel {
  position: relative;
}

body[data-theme-variant="soft-premium-v3"] .dashboard-space-hero::after,
body[data-theme-variant="soft-premium-v3"] .setup-complete-interactive::after,
body[data-theme-variant="soft-premium-v3"] .mapping-panel.table-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--scan-angle, 0deg),
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0.08) 110deg,
    rgba(34, 211, 238, 0.7) 170deg,
    rgba(59, 130, 246, 0.12) 220deg,
    rgba(59, 130, 246, 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderScan 5.2s linear infinite, borderBlink 7.5s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes borderScan {
  to { --scan-angle: 360deg; }
}

@keyframes borderBlink {
  0%, 8%, 16%, 100% { opacity: 0.85; }
  4%, 12% { opacity: 0.25; }
  20% { opacity: 0.5; }
  32%, 92% { opacity: 0.75; }
}

.setup-space-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.setup-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 16px rgba(147, 197, 253, 0.7);
  animation: setupStarPulse 2.8s ease-in-out infinite;
}

.setup-star.s1 { top: 14%; left: 18%; animation-delay: 0s; }
.setup-star.s2 { top: 26%; left: 74%; animation-delay: .4s; }
.setup-star.s3 { top: 62%; left: 22%; animation-delay: .7s; }
.setup-star.s4 { top: 72%; left: 78%; animation-delay: 1.1s; }
.setup-star.s5 { top: 44%; left: 57%; animation-delay: 1.5s; }
.setup-star.s6 { top: 16%; left: 52%; animation-delay: 1.8s; }

.setup-orbit-c {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(147, 197, 253, 0.32);
  border-radius: 999px;
  animation: spin 14s linear infinite reverse;
}

@keyframes setupStarPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.45; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Final warm-soft premium overrides */
:root {
  --bg: #edf2fb;
  --bg-soft: #f3f6fc;
  --panel: #f8fbff;
  --panel-2: #f2f6fd;
  --text-soft: #556680;
  --line: #d4deec;
  --line-soft: #e2e9f4;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(59, 130, 246, 0.16), transparent 26%),
    radial-gradient(circle at 96% 2%, rgba(14, 116, 144, 0.1), transparent 24%),
    linear-gradient(180deg, #edf2fb 0%, #e6eefb 100%);
}

/* Modern file input controls (global) */
input[type="file"].module-input,
.module-input[type="file"],
input[type="file"] {
  position: relative;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #cfdcf0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: #334155;
  padding: 8px 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input[type="file"].module-input:hover,
.module-input[type="file"]:hover,
input[type="file"]:hover {
  border-color: #b8c9e7;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
}

input[type="file"].module-input:focus-visible,
.module-input[type="file"]:focus-visible,
input[type="file"]:focus-visible {
  outline: none;
  border-color: #6da2ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

input[type="file"]::file-selector-button {
  border: 1px solid #2f74ea;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  border-radius: 10px;
  padding: 9px 14px;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

input[type="file"]::file-selector-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}

/* Safari/WebKit fallback */
input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #2f74ea;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px 14px;
  margin-right: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
}
:root {
  --bg: #f6f8fc;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --panel-2: #fbfdff;
  --text: #0f172a;
  --text-soft: #64748b;
  --line: #e6eaf2;
  --line-soft: #f0f4fa;

  --primary: #14b8a6;
  --primary-hover: #0f9f92;
  --primary-soft: #d9f3ef;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --violet: #8b5cf6;
  --cyan: #06b6d4;

  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --sidebar-width: 280px;
  --sidebar-collapsed: 92px;
  --topbar-height: 84px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.04), transparent 24%),
    linear-gradient(180deg, #f4f6f8 0%, #eceff2 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.public-landing-mode {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 18%, rgba(0, 196, 140, 0.18), transparent 22%),
    radial-gradient(circle at 12% 14%, rgba(58, 123, 253, 0.12), transparent 20%),
    linear-gradient(180deg, #060a10 0%, #0b0f14 100%);
}

.public-landing-mode .sidebar,
.public-landing-mode .topbar {
  display: none;
}

.public-landing-mode .main-layout,
.public-landing-mode .page-body {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.public-landing-shell {
  min-height: 100vh;
  padding: 32px 42px 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  color: #e6edf3;
}

.public-landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.public-landing-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
}

.public-landing-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.public-landing-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, 1.15fr);
  gap: 34px;
  align-items: center;
}

.public-landing-copy {
  max-width: 640px;
}

.public-landing-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 237, 243, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-landing-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #f8fafc;
}

.public-landing-subtitle {
  margin: 0 0 16px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  color: #8ff3d0;
}

.public-landing-text {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(230, 237, 243, 0.72);
}

.public-landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.public-landing-actions .primary-btn,
.public-landing-actions .secondary-action,
.public-landing-nav .primary-btn,
.public-landing-nav .ghost-btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e6edf3;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.public-landing-status {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-landing-status span {
  position: relative;
  padding-left: 18px;
  color: rgba(230, 237, 243, 0.7);
  font-size: 14px;
}

.public-landing-status span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #00c48c, #3a7bfd);
  box-shadow: 0 0 16px rgba(0, 196, 140, 0.42);
}

.public-landing-visual {
  position: relative;
  min-height: 620px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.public-landing-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.24) 0%, rgba(11, 15, 20, 0.04) 34%, rgba(11, 15, 20, 0.18) 100%),
    radial-gradient(circle at 72% 34%, rgba(0, 196, 140, 0.18), transparent 18%);
  pointer-events: none;
}

.public-landing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agents-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.agents-pipeline-step {
  min-height: 76px;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6edf3;
  background: linear-gradient(180deg, #101722 0%, #121e2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(7, 12, 18, 0.22);
}

.agents-level {
  display: grid;
  gap: 18px;
}

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

.agent-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e4ebf5;
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.agent-card-head strong {
  font-size: 16px;
  line-height: 1.35;
}

.agent-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.agent-card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ebf0f6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

@media (max-width: 1200px) {
  .public-landing-hero,
  .agents-grid {
    grid-template-columns: 1fr;
  }

  .public-landing-visual {
    min-height: 440px;
  }
}

@media (max-width: 860px) {
  .public-landing-shell {
    padding: 24px 18px 28px;
  }

  .public-landing-topbar,
  .public-landing-actions,
  .public-landing-status {
    flex-direction: column;
    align-items: flex-start;
  }

  .agents-pipeline {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] body {
  color: #f8fafc;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 12%),
    linear-gradient(180deg, #08192b 0%, #10263d 100%);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.25s ease, min-width 0.25s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
}

.sidebar-top {
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0b1f33);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
}

.sidebar.collapsed .brand-text {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item-pinned {
  margin-bottom: 4px;
}

.sidebar-group-toggle {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.thiq-sidebar-indicator {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e5f4ef;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.thiq-sidebar-indicator[data-tone="green"] {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.34);
}

.thiq-sidebar-indicator[data-tone="orange"] {
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.34);
}

.thiq-sidebar-indicator[data-tone="red"] {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.36);
}

.thiq-sidebar-indicator[data-tone="blue"] {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.34);
}

.thiq-sidebar-indicator[data-tone="gray"] {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.28);
}

.sidebar-group-toggle-label {
  flex: 1;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.sidebar-group-toggle-icon,
.sidebar-group-toggle-caret {
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-group-body {
  display: none;
  padding-top: 6px;
}

.sidebar-group.expanded .sidebar-group-body {
  display: grid;
  gap: 8px;
}

.sidebar-group.expanded .sidebar-group-toggle {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06));
}

.sidebar-group.expanded .sidebar-group-toggle-caret {
  transform: rotate(180deg);
}

.nav-item {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-icon {
  width: 24px;
  min-width: 24px;
  text-align: center;
  font-size: 17px;
}

.nav-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .sidebar-group-toggle-label,
.sidebar.collapsed .sidebar-group-toggle-caret {
  display: none;
}

/* MAIN */

.main-layout {
  flex: 1;
  min-width: 0;
  padding: 28px;
}

.topbar {
  min-height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02)),
    #fff;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.clarity-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.clarity-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.purpose-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow-sm);
}

.purpose-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.purpose-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.starter-panel {
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

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

.starter-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.starter-item:last-child {
  border-bottom: none;
}

.starter-step {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.starter-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.starter-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

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

.action-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.action-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.action-card p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.action-card button {
  width: 100%;
}

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

.helper-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  min-width: 0;
  overflow: hidden;
}

.helper-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  word-break: break-word;
}

.helper-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  min-height: 164px;
  overflow: hidden;
}

.helper-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  padding: 0;
}

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

.flow-step {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.flow-step span {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.flow-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

.section-heading h3 {
  margin: 0;
  font-size: 20px;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.info-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  padding: 16px 18px;
}

.info-banner strong {
  display: block;
  margin-bottom: 4px;
}

.info-banner p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-nav-btn {
  min-width: 92px;
  font-weight: 700;
}

.topbar-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--line);
}

.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
}

.icon-btn,
.ghost-btn,
.primary-btn,
.btn {
  border: none;
  border-radius: 14px;
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn {
  width: 44px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

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

.ghost-btn {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  font-weight: 600;
}

.ghost-btn:hover {
  background: var(--panel-2);
}

.primary-btn {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.btn {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.btn.secondary {
  background: #fff;
  color: #0b1f33;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

/* PAGE BODY */

.page-body {
  min-height: calc(100vh - 142px);
}

.page-view {
  display: none;
}

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

.module-stack {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: none;
}

.section-grid {
  display: grid;
  gap: 18px;
  width: 100%;
}

.section-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

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

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

/* Responsive: Tablet */
@media (max-width: 1200px) {
  .module-stack,
  .section-grid,
  .section-grid-5 {
    gap: 16px;
  }

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

/* Responsive: Mobile */
@media (max-width: 768px) {
  .module-stack,
  .section-grid,
  .section-grid-5 {
    gap: 14px;
  }

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

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .module-stack,
  .section-grid,
  .section-grid-5 {
    gap: 12px;
  }

  .section-grid-5 {
    grid-template-columns: 1fr;
  }
}

.section-grid-3 > .field-span-3 {
  grid-column: 1 / -1;
}

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

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

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

.compact {
  min-height: 126px;
}

#customersModuleRoot .section-grid-5 > .card,
#b2bModuleRoot .section-grid-5 > .card {
  min-height: 96px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  animation: metricCardIn 220ms ease both;
}

#customersModuleRoot .section-grid-5 > button.card,
#b2bModuleRoot .section-grid-5 > button.card {
  text-align: left;
  cursor: pointer;
  background: #fff;
}

#customersModuleRoot .section-grid-5 > .card:hover,
#b2bModuleRoot .section-grid-5 > .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #bfdbfe;
}

@media (max-width: 1480px) {
  .section-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .section-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .crm-list-filterbar {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .crm-list-filterbar {
    grid-template-columns: 1fr;
  }

  .crm-list-filterbar .finance-action-row {
    justify-content: flex-start;
  }
}

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

.module-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.source-card-wide {
  grid-column: 1 / -1;
}

.table-product-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.table-thumb {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f3f7ff);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  text-align: center;
}

.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-thumb-large {
  width: 132px;
  min-width: 132px;
  height: 132px;
  border-radius: 22px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.product-gallery-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 140px;
  box-shadow: var(--shadow-sm);
}

.product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero-inline {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.module-input,
.module-select,
.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 14px;
  box-shadow: var(--shadow-sm);
}

.module-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  resize: vertical;
}

.module-input,
.module-select {
  min-width: 180px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1f33;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.table-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-action-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-action-chip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7faff);
  border-radius: 12px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10233d;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.table-action-chip.danger {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(180deg, #fff, #fff4f3);
}

.crm-launch-card {
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.crm-launch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.18);
  box-shadow: 0 18px 34px rgba(11, 31, 51, 0.08);
}

.crm-console-layout {
  align-items: start;
}

/* CRM/B2B iki sütun + sağ rehber: asıl kurallar dosya sonunda
   (#customersModuleRoot / #b2bModuleRoot .commercial-console) */

.crm-console-main,
.crm-console-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.crm-sales-command {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft, #e2e8f0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.crm-cmd-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.crm-cmd-kpi {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

.crm-cmd-kpi span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft, #64748b);
}

.crm-cmd-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 750;
  color: var(--text, #0f172a);
}

.crm-cmd-block-title {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
}

.crm-cmd-pipeline {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

.crm-cmd-pipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.crm-cmd-pipe-cell {
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
  text-align: center;
}

.crm-cmd-pipe-cell span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.crm-cmd-pipe-cell strong {
  display: block;
  font-size: 16px;
  margin: 4px 0;
  color: #0f172a;
}

.crm-cmd-pipe-cell small {
  font-size: 10px;
  color: #475569;
}

.crm-cmd-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.crm-cmd-panel {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #fff;
}

.crm-cmd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-cmd-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.crm-cmd-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.crm-cmd-list li span {
  font-size: 12px;
  color: #64748b;
}

.crm-cmd-list li small {
  font-size: 11px;
  color: #94a3b8;
}

.crm-cmd-list--alert li {
  font-size: 12px;
  color: #9a3412;
}

.crm-cmd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm-cmd-timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.crm-cmd-timeline time {
  font-size: 11px;
  color: #64748b;
}

.b2b-admin-pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.b2b-admin-pulse .card {
  padding: 12px 14px;
}

.commercial-rel-stack {
  gap: 12px;
  width: 100%;
  max-width: none;
}

.commercial-module-surface {
  border-radius: 18px;
  border: 1px solid var(--line-soft, #e2e8f0);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  padding: 14px 16px 18px;
  min-height: 200px;
  width: 100%;
}

/* Responsive padding for commercial surfaces */
@media (max-width: 768px) {
  .commercial-module-surface {
    padding: 12px 12px 14px;
  }
}

@media (max-width: 480px) {
  .commercial-module-surface {
    padding: 10px 10px 12px;
  }
}

.commercial-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11500;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.commercial-drawer-backdrop .commercial-drawer-panel {
  width: min(420px, 100%);
  max-width: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
}

.commercial-drawer-backdrop .commercial-drawer-panel h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.crm-command-mount-placeholder {
  padding: 12px 14px;
  font-size: 12px;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.crm-toolbar-premium {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.record-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

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

.record-stat-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,255,.94));
}

.record-stat-card span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.record-stat-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.record-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
}

.record-detail-main,
.record-detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.record-info-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.94));
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.data-list.compact {
  gap: 0;
}

.data-list.compact .data-list-row {
  padding: 12px 0;
}

.record-action-cluster {
  gap: 10px;
  flex-wrap: wrap;
}

.crm-chip-row {
  margin-bottom: 16px;
}

.crm-table-wrap {
  margin-top: 10px;
}

/* Bölüm rehberi kartı (CRM/B2B): sticky kaldırıldı — konum dosya sonu ID kurallarında static */
.finance-provider-layout.crm-console-layout .crm-section-rail {
  position: static;
  top: auto;
  z-index: auto;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 20px rgba(15, 23, 42, 0.05);
}

.finance-provider-layout.crm-console-layout .crm-section-rail .mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finance-provider-layout.crm-console-layout .crm-rail-item {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  margin: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.finance-provider-layout.crm-console-layout .crm-rail-item:hover {
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.crm-rail-item {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.78);
  text-align: left;
  cursor: pointer;
}

.crm-rail-item.active {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.finance-provider-layout.crm-console-layout .crm-rail-item.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #eff6ff 0%, #e0e7ff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.finance-provider-layout.crm-console-layout .crm-section-rail .crm-rail-item.mini-list-row {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

/* Detail blocks in the right rail: avoid min-width columns overflowing the column */
.finance-provider-layout.crm-console-layout .crm-console-side .record-detail-grid,
.finance-provider-layout.crm-console-layout .crm-console-side .record-lower-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.finance-provider-layout.crm-console-layout .crm-console-side .record-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 420px) {
  .finance-provider-layout.crm-console-layout .crm-console-side .record-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* CRM 3-col SaaS polish */
#customersModuleRoot .crm-three-col-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.6fr) minmax(240px, 0.9fr);
  gap: 12px;
  align-items: start;
}
#customersModuleRoot .crm-three-col-left,
#customersModuleRoot .crm-three-col-center,
#customersModuleRoot .crm-three-col-right {
  display: grid;
  gap: 10px;
}
#customersModuleRoot .crm-three-col-right {
  position: sticky;
  top: 78px;
}
#customersModuleRoot .crm-three-col-right .crm-rail-action-btn {
  min-height: 38px;
}
@media (max-width: 1240px) {
  #customersModuleRoot .crm-three-col-shell {
    grid-template-columns: 1fr;
  }
  #customersModuleRoot .crm-three-col-right {
    position: static;
  }
}

/* Dealer portal polish */
#b2bModuleRoot .dealer-menu-row .finance-chip {
  min-height: 38px;
  padding: 0 14px;
}
#b2bModuleRoot .dealer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
#b2bModuleRoot .dealer-product-tile {
  border: 1px solid #e2e8f0;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
#b2bModuleRoot .dealer-product-tile:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 18px rgba(30, 64, 175, 0.08);
}
#b2bModuleRoot .dealer-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  justify-content: flex-end;
  z-index: 1200;
}
#b2bModuleRoot .dealer-drawer {
  width: min(560px, 96vw);
  height: 100%;
  overflow: auto;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  padding: 16px;
}

.finance-provider-layout.crm-console-layout .crm-console-side .finance-detail-panel {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.finance-provider-layout.crm-console-layout .crm-console-side > .card {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.finance-provider-layout.crm-console-layout .crm-console-side .record-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.finance-provider-layout.crm-console-layout .crm-console-side .detail-tabs {
  justify-content: flex-start;
  width: 100%;
}

.crm-import-shell .card {
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.module-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.55);
}

.data-list {
  display: grid;
  gap: 10px;
}

.data-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 13px;
}

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

.source-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

.source-card .mini-list-row {
  font-size: 13px;
}

.prep-shell {
  display: grid;
  gap: 16px;
}

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

.prep-step {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-height: 78px;
  padding: 10px;
  display: grid;
  gap: 6px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.prep-step span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 800;
}

.prep-step strong {
  font-size: 13px;
}

.prep-panel {
  display: none;
}

.prep-panel.show {
  display: block;
}

.prep-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.prep-panel-title {
  font-size: 20px;
}

#channelPrepModuleRoot .prep-panel .card {
  border: 1px solid #d8e2f1;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

#channelPrepModuleRoot .prep-panel .table-wrap {
  border: 1px solid #d7e3f5;
  border-radius: 14px;
  background: #f8fbff;
}

#channelPrepModuleRoot .prep-panel .products-table thead th {
  background: #eef4ff;
}

#channelPrepModuleRoot .prep-panel .products-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

#channelPrepModuleRoot .prep-panel .btn.primary {
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card {
  border: 1px solid #d4e1f5;
  background: linear-gradient(165deg, #f7faff, #eef4ff);
}

:is(#podStudioModuleRoot, #podInlineMount) {
  max-width: 100%;
  overflow-x: hidden;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .section-grid-6 {
  gap: 10px;
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .stat-card.compact {
  min-height: 86px;
  padding: 10px 12px;
  border-radius: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .stat-label {
  font-size: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .stat-value {
  font-size: 28px;
  line-height: 1.1;
}

:is(#podStudioModuleRoot, #podInlineMount) .tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .toolbar-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

:is(#podStudioModuleRoot, #podInlineMount) .mini-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-v2 {
  gap: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-hero-v2 {
  border: 1px solid #ccdbf7;
  background: linear-gradient(160deg, #f8fbff, #eef4ff 52%, #f8fbff);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-step {
  padding: 8px 10px;
  border: 1px solid #d5e4ff;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-step small {
  font-size: 11px;
  font-weight: 600;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-step.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-step.active span {
  background: #3b82f6;
  color: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-help-card {
  padding: 14px 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-help-card .card-text {
  margin: 6px 0 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
  gap: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
  cursor: pointer;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone input {
  display: none;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone strong {
  font-size: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone small {
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-advanced {
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card {
  padding: 12px;
  border-radius: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-preview {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1px solid #dbe8ff;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-template-card .pod-template-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-template-card.active,
:is(#podStudioModuleRoot, #podInlineMount) .pod-partner-card.active,
:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-card.active {
  border-color: #93c5fd;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.14);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.08fr) minmax(320px, 1fr);
  gap: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-template-grid {
  margin-top: 10px;
  max-height: 640px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-right: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-card {
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-card img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-card-body {
  padding: 8px;
  display: grid;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-konva-host {
  height: 460px;
  border-radius: 14px;
  border: 1px solid #dbe6f8;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.02)),
    repeating-conic-gradient(#f8fafc 0% 25%, #eef2ff 0% 50%) 50% / 20px 20px;
  overflow: hidden;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-inline-help {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-inline-help small {
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-custom-upload {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d6deea;
  display: grid;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dbe5f4;
}

/* POD genişleme slotları + onboarding */
:is(#podStudioModuleRoot, #podInlineMount) .pod-roadmap-embedded {
  margin-top: 8px;
  border: 1px solid #d8e4f8;
  background: linear-gradient(180deg, #fbfcff, #f4f7ff);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-roadmap-embedded-head {
  margin-bottom: 12px;
}

#designStoreModuleRoot .pod-roadmap-intro,
#designStoreModuleRoot .pod-slot-grid {
  margin-top: 0;
}

#designStoreModuleRoot .pod-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-slot-grid--embedded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

a.pod-slot-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  outline-offset: 2px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.pod-slot-card-link:hover .pod-slot-card {
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.1);
  border-color: #c7d7f0;
}

a.pod-slot-card-link:focus-visible {
  outline: 2px solid #2563eb;
}

.pod-slot-card {
  border: 1px solid #dbe5f4;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pod-slot-card--compact {
  padding: 12px;
}

.pod-slot-card--compact .pod-slot-desc {
  font-size: 13px;
}

.pod-slot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pod-slot-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.pod-slot-card-title h4 {
  margin: 4px 0 0;
  font-size: 16px;
  color: #0f172a;
}

.pod-slot-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.9);
}

.pod-slot-desc {
  margin: 0;
  color: #475569;
  line-height: 1.45;
  font-size: 14px;
}

.pod-slot-aim {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.pod-slot-meta {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.pod-slot-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.pod-slot-subcard {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8eef7;
  font-size: 12px;
}

.pod-slot-subcard strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 12px;
}

.pod-slot-subcard p {
  margin: 0;
  color: #64748b;
  line-height: 1.35;
}

.pod-onboarding-root {
  position: fixed;
  inset: 0;
  z-index: 100050;
  pointer-events: none;
}

.pod-onboarding-root .pod-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  pointer-events: auto;
}

.pod-onboarding-pop {
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dbe5f4;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  z-index: 100051;
}

.pod-onboarding-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
  margin-bottom: 6px;
}

.pod-onboarding-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.pod-onboarding-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.pod-onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pod-onboard-target {
  position: relative;
  z-index: 100052;
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 10px;
  animation: pod-onboard-pulse 1.6s ease-in-out infinite;
}

@keyframes pod-onboard-pulse {
  0%,
  100% {
    outline-color: #2563eb;
  }
  50% {
    outline-color: #93c5fd;
  }
}

/* ——— POD Studio premium shell (2026) ——— */
:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-psd-policy-ribbon {
  flex-shrink: 0;
  margin: 0;
  padding: 14px 20px 16px;
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(67, 56, 202, 0.14) 0%, rgba(14, 165, 233, 0.11) 50%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(79, 70, 229, 0.38);
  box-shadow: 0 10px 36px rgba(79, 70, 229, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-psd-policy-kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4338ca;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-psd-policy-text {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.55;
  font-weight: 600;
  color: #1e1b4b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-psd-policy-text strong {
  font-weight: 800;
  color: #312e81;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero {
  border-radius: 20px;
  padding: 28px 32px;
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 100%, rgba(14, 165, 233, 0.1), transparent 45%),
    linear-gradient(165deg, #fafbfc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-lead {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 1100px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-studio-hero-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #94a3b8;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step--done {
  border-color: rgba(99, 102, 241, 0.35);
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step--current {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.45);
  color: #312e81;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step--done .pod-flow-step-num {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step--current .pod-flow-step-num {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step-label {
  font-size: 12px;
  font-weight: 600;
}

:is(#podStudioModuleRoot, #podInlineMount) button.pod-flow-step {
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2--xl {
  min-height: 260px;
  padding: 36px 24px;
  border-radius: 20px;
  border-width: 2px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-card--hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-submit-lg {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-meta-details {
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 0 12px 10px;
  background: #fafafa;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-meta-details summary {
  cursor: pointer;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-setup--fold {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.75);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-setup-summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-setup-body {
  margin-top: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-preset-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-preset-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-preset-chip:hover {
  border-color: #c7d2fe;
  color: #312e81;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-preset-chip.is-active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  color: #312e81;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-visual--studio {
  position: relative;
  min-height: 88px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15), transparent 55%),
    linear-gradient(145deg, #f8fafc, #e2e8f0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-mockup-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel-intro--tight .pod-panel-p {
  max-width: 52rem;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-next-strip--design {
  margin-bottom: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-studio-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-studio-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-pill {
  flex: 1 1 140px;
  min-width: 120px;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-pill:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-pill.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-pill-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tab-pill-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.85;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel-intro {
  padding: 4px 2px 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel-h {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel-p {
  margin: 0;
  max-width: 900px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-panel-tip {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-next-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.22);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-next-strip-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4338ca;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-next-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-next-strip--outputs {
  margin-bottom: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-step-static {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-advanced-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-coach {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-flow-coach-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  flex: 1;
  min-width: 200px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-busy-overlay[hidden] {
  display: none !important;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-busy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-busy-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #6366f1;
  animation: pod-busy-spin 0.75s linear infinite;
}

@keyframes pod-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-busy-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-hint-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-hint-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  max-width: 640px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-channel-explainer {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-pack-explainer--tight {
  margin-top: 4px;
  font-size: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-guard {
  margin: 8px 0 0;
  font-size: 12px;
  color: #b45309;
  background: rgba(251, 191, 36, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-scene-callout {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #1e3a5f;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-scene-callout p {
  margin: 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-scene-callout--soft {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-konva-error {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-konva-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-active-scene--muted {
  color: #64748b;
  font-weight: 400;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-table-empty-hint {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-design-split {
    grid-template-columns: 1fr;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-card,
:is(#podStudioModuleRoot, #podInlineMount) .pod-library-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-card-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 2px dashed rgba(148, 163, 184, 0.65);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.5));
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2--hover,
:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(238, 242, 255, 0.65);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2 input {
  display: none;
}

/* Timeline Styles */
.timeline-container {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.timeline-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.timeline-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.timeline-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.timeline-empty {
  text-align: center;
  padding: 40px 20px;
}

.timeline-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.timeline-empty h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #64748b;
}

.timeline-empty p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.timeline-list {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.timeline-icon {
  font-size: 14px;
  line-height: 1;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.timeline-type {
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.timeline-time {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.timeline-description {
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.timeline-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
}

.timeline-actor,
.timeline-source {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Timeline connection line */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 60px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
  z-index: 1;
}

/* Responsive timeline */
@media (max-width: 768px) {
  .timeline-container {
    padding: 16px;
  }
  
  .timeline-item {
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .timeline-marker {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .timeline-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2-strong {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-dropzone-v2-formats {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-analysis {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-progress {
  margin-top: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  transition: width 120ms linear;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-progress-text {
  margin-top: 8px;
  font-size: 12px;
  color: #166534;
  font-weight: 600;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-analysis-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-upload-fields {
    grid-template-columns: 1fr;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-field span {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-field--grow {
  grid-column: span 2;
}

@media (max-width: 640px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-field--grow {
    grid-column: span 1;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-advanced-v2 {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-upload-submit {
  margin-top: 18px;
  width: 100%;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-library-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-library-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-library-sub {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-v2 {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-preview-v2 {
  aspect-ratio: 1;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-preview-v2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-ph {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-body {
  padding: 12px 14px 14px;
  background: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-meta {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-meta li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-design-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-empty-state {
  padding: 28px 20px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-empty-state--pad {
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-empty-state--tight {
  padding: 18px 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-empty-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  max-width: 520px;
  margin-inline: auto;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-callout {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-callout--warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-callout--info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card--selected {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-visual {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-emoji {
  font-size: 26px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  flex: 1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-card-specs li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-catalog-select {
  margin-top: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-selected-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.25);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-selected-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4f46e5;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-selected-title {
  font-size: 18px;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-selected-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-setup {
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-fields {
    grid-template-columns: 1fr;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-workflow-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-field--inline {
  flex: 1 1 240px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-ribbon-badge {
  font-size: 13px;
  font-weight: 600;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-zoom-pct {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-ribbon .pod-zoom-pct {
  color: #a5b4fc;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-editor-tools .pod-zoom-pct {
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-pan-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-pan-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: inherit;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-tool-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  margin-left: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-editor-stage-wrap {
    grid-template-columns: 1fr;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-konva-host--workflow {
  width: 100%;
  min-width: 0;
  height: clamp(320px, 60vh, 540px);
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-konva-host--mockup {
  width: 100%;
  min-width: 0;
  height: clamp(320px, 56vh, 520px);
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fafafa;
  overflow: hidden;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-legend {
  font-size: 12px;
  color: #475569;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-editor-legend p {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-legend-swatch--print {
  background: rgba(148, 163, 184, 0.25);
  border: 1px dashed rgba(100, 116, 139, 0.55);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-legend-swatch--safe {
  background: rgba(100, 116, 139, 0.12);
  border: 1px dashed rgba(71, 85, 105, 0.45);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-legend-swatch--art {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid #6366f1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-guide {
  margin: 0;
  padding: 16px 20px 16px 28px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender {
  margin: 16px 0 20px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender--muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #4f46e5;
  color: #eef2ff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-summary {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-transparency {
  margin: 0 0 16px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-scene-recommender-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  align-items: flex-start;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card--selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-main {
  min-width: 0;
  flex: 1;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-head strong {
  font-size: 13px;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-confidence {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-confidence--high {
  color: #15803d;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-confidence--medium {
  color: #b45309;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-confidence--low {
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-reasons {
  margin: 0 0 8px;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.4;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-pack {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed #a5b4fc;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-pack-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #312e81;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-pack-desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-suggest-pack-slots {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-studio {
  display: grid;
  grid-template-columns: 252px minmax(0, 1.12fr) minmax(300px, 340px);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1200px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-studio {
    grid-template-columns: 1fr;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-col {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-col--center {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-grid--bottom {
  align-items: start;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card--span-2 {
  grid-column: span 2;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card--warm {
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 45%, #fff 100%);
  border-color: #fdba74;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card--cool {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 42%, #fff 100%);
  border-color: #6ee7b7;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card-kicker {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-channel-set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-production-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-actions--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-actions--grid .btn:last-child {
  grid-column: span 2;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-special-renders--grid {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-custom-upload-v2--card {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-col-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-pack-explainer {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  margin: 0 0 12px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-pack-legend {
  margin: 10px 0 14px;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-profile-card {
  margin: 14px 0 16px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 45%, #fff 100%);
  border: 1px solid #fdba74;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-profile-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #9a3412;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-profile-desc {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #7c2d12;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-out {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  font-size: 11px;
  line-height: 1.45;
  color: #431407;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-title {
  margin: 0 0 8px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-list {
  margin: 0;
  padding-left: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-list li[data-severity="high"] {
  color: #b91c1c;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-foot {
  margin: 10px 0 0;
  font-size: 10px;
  color: #78716c;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-ok {
  margin: 0;
  color: #166534;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-etsy-gaps-err {
  margin: 0;
  color: #b91c1c;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-shopify-profile-card {
  margin: 14px 0 16px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 42%, #fff 100%);
  border: 1px solid #6ee7b7;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-shopify-profile-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #047857;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-shopify-profile-desc {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #065f46;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-shopify-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-special-renders {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-special-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-special-hint {
  font-size: 11px;
  color: #94a3b8;
  margin: -2px 0 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-custom-upload-v2 {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-custom-upload-v2 h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #0f172a;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-filter-check {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #fafafa;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile--on {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile-img {
  aspect-ratio: 1;
  background: #f1f5f9;
}

@media (max-width: 1200px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-production-grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-channel-set-grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-production-actions,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-actions--grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-special-renders--grid {
    grid-template-columns: 1fr;
  }

  :is(#podStudioModuleRoot, #podInlineMount) .pod-production-card--span-2,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-actions--grid .btn:last-child {
    grid-column: auto;
  }
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile-body {
  padding: 8px 10px 10px;
  background: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile-meta {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-tile-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-editor-hint {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-active-scene {
  margin: 10px 0 0;
  font-size: 12px;
  color: #475569;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-output {
  margin-top: 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-output-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-output-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-media-output-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #fafafa;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-card--media {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-thumb {
  display: block;
  aspect-ratio: 1;
  background: #f1f5f9;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-thumb--hero {
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-body {
  padding: 10px 12px 12px;
  background: #fff;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-type {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-transform: capitalize;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-meta {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-quality-bar {
  padding: 12px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 12px;
  color: #92400e;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-quality-bar ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-drawer {
  position: fixed;
  inset: 0;
  z-index: 100040;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-drawer--open {
  pointer-events: auto;
  opacity: 1;
  background: rgba(15, 23, 42, 0.45);
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
  padding: 20px 22px;
  overflow-y: auto;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-drawer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-drawer-title {
  margin: 0 0 16px;
  font-size: 18px;
}

:is(#podStudioModuleRoot, #podInlineMount) .pod-table-card {
  border-radius: 16px;
  overflow: hidden;
}

#podExpansionStubModuleRoot .pod-expansion-stub-stack {
  gap: 14px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-toolbar {
  padding-bottom: 12px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-route-line {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-label {
  font-weight: 600;
  color: #475569;
}

#podExpansionStubModuleRoot .pod-expansion-stub-code {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

#podExpansionStubModuleRoot .pod-expansion-stub-sep {
  opacity: 0.5;
}

#podExpansionStubModuleRoot .pod-expansion-stub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-title {
  margin: 6px 0 0;
  font-size: 22px;
}

#podExpansionStubModuleRoot .pod-expansion-stub-note {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

#podExpansionStubModuleRoot .pod-expansion-stub-subgrid {
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .pod-slot-grid,
  #designStoreModuleRoot .pod-slot-grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-slot-grid--embedded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1400px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .section-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(#podStudioModuleRoot, #podInlineMount) .pod-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(#podStudioModuleRoot, #podInlineMount) .pod-design-layout,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-mockup-layout {
    grid-template-columns: 1fr;
  }

  :is(#podStudioModuleRoot, #podInlineMount) .pod-template-grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :is(#podStudioModuleRoot, #podInlineMount) .pod-hero-card .section-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(#podStudioModuleRoot, #podInlineMount) .pod-stepper,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-template-grid,
  :is(#podStudioModuleRoot, #podInlineMount) .pod-design-grid {
    grid-template-columns: 1fr;
  }
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 160px;
}

.mini-chart-bar {
  flex: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.mini-chart-value {
  width: 100%;
  min-height: 16px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 220px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99999;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.page-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  align-items: start;
}

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

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.hero-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 10px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
}

.card-text {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

.stat-card {
  min-height: 121px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.stat-label {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* GENERIC HELPERS */

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.workspace-list,
.workspace-detail {
  min-width: 0;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn,
.tab-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.tab-btn.active,
.tab-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-chip.contract-save-state-saved {
  background: #ecfdf3;
  border-color: #10b981;
  color: #047857;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.14) inset;
}

.tab-chip.contract-save-state-dirty {
  background: #fff7ed;
  border-color: #f97316;
  color: #c2410c;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.14) inset;
}

.inline-tabs {
  margin-bottom: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list-row {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
  justify-content: flex-end;
}

.crm-row.active {
  background: var(--primary-soft);
}

.brand-clickable {
  cursor: pointer;
}

.sidebar-logo-tools {
  display: none !important;
}

.provider-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.provider-catalog-card {
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  box-shadow: var(--shadow-md);
  min-height: 0;
}

.provider-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Channel OS dashboard cards */
.channel-global-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.channel-global-metrics--summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .channel-global-metrics--summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .channel-global-metrics--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .channel-global-metrics--summary {
    grid-template-columns: 1fr;
  }
}

.channel-global-metric {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.channel-global-metric span {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.channel-global-metric strong {
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.channel-global-metric small {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.channel-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.channel-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.channel-media-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.channel-media-tile img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.channel-media-fallback {
  height: 96px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  background: rgba(37, 99, 235, 0.06);
}

.channel-media-meta {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  border-top: 1px solid var(--line-soft);
}

.channel-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 16px;
  display: grid;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.channel-card--overview-link {
  text-decoration: none;
  color: inherit;
}

a.channel-card--overview-link .channel-open-btn {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  border-color: rgba(59, 130, 246, 0.32);
}

.channel-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.channel-card-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.channel-card-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.16));
  color: var(--primary);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.channel-card-brand h4 {
  margin: 0;
  font-size: 16px;
}

.channel-card-brand p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.channel-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.channel-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.channel-badge--good {
  background: #ecfdf3;
  border-color: #86efac;
  color: #047857;
}

.channel-badge--attention {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.channel-badge--danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

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

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

.channel-metric-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
}

.channel-metric-item--good {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.channel-metric-item--attention {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.channel-metric-item--danger {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.channel-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.channel-metric-copy {
  display: grid;
  gap: 2px;
}

.channel-metric-copy strong {
  font-size: 16px;
  line-height: 1;
}

.channel-metric-copy span {
  font-size: 11px;
  color: var(--text-soft);
}

.channel-trend {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 8px;
  color: #4f46e5;
}

.channel-trend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.channel-trend-head strong {
  color: var(--text);
}

.channel-mini-chart {
  width: 100%;
  height: 44px;
  display: block;
}

.channel-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-card-footer-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.channel-sync-time {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  align-content: center;
  gap: 4px;
}

.channel-sync-time span {
  font-size: 11px;
  color: var(--text-soft);
}

.channel-sync-time strong {
  font-size: 13px;
}

.channel-open-btn {
  width: 100%;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
}

.channel-region-block {
  display: grid;
  gap: 12px;
}

.channel-region-head {
  display: grid;
  gap: 4px;
}

.channel-region-head h4 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.channel-region-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

/* /channels overview — Pazaryeri Kontrol Merkezi (premium) */
.channels-overview.module-stack {
  gap: 1.75rem;
}

.channels-overview-hero {
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 40px -12px rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.96) 55%, rgba(241, 245, 249, 0.92) 100%);
}

.channels-overview-kpi .channel-global-metrics--summary {
  margin: 0;
}

.channels-overview-kpi .channel-global-metrics--summary .channel-global-metric {
  position: relative;
  padding: 16px 18px 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -8px rgba(15, 23, 42, 0.1);
  gap: 10px;
}

.channels-overview-kpi .channel-global-metrics--summary .channel-global-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
  opacity: 0.9;
}

.channels-overview-kpi .channel-global-metrics--summary .channel-global-metric span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #64748b;
}

.channels-overview-kpi .channel-global-metrics--summary .channel-global-metric strong {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.channels-overview-kpi .channel-global-metrics--summary .channel-global-metric small {
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}

.channels-overview .channel-region-block {
  gap: 16px;
}

.channels-overview .channel-region-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.channels-overview .channel-region-head h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.channels-overview .channel-region-head p {
  font-size: 13px;
  color: #64748b;
}

.channels-overview .channel-cards-grid--overview {
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
  gap: 20px;
}

@media (min-width: 1400px) {
  .channels-overview .channel-cards-grid--overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.channel-card.channel-card--overview-premium {
  padding: 0;
  gap: 0;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 32px -10px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.channel-card.channel-card--overview-premium:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 20px 44px -12px rgba(37, 99, 235, 0.22);
}

.channel-card-premium__head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.55) 100%);
}

.channel-card-brand--premium {
  align-items: flex-start;
  gap: 14px;
}

.channel-card-logo--premium {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.channel-logo-img {
  display: block;
  object-fit: contain;
}

.channel-logo-img--md {
  width: 28px;
  height: 28px;
}

.channel-logo-img--sm {
  width: 16px;
  height: 16px;
}

.channel-card-logo--premium .channel-logo-img--md,
.channel-card-logo--premium .channel-logo-fallback--md {
  width: 30px;
  height: 30px;
}

.channel-logo-fallback--md {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.02em;
}

.channel-logo-fallback--sm {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 8px;
  flex-shrink: 0;
}

.channel-detail-hero__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.channel-detail-hero__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.channel-detail-hero__logo .channel-logo-img--md,
.channel-detail-hero__logo .channel-logo-fallback--md {
  width: 28px;
  height: 28px;
}

.channel-detail-hero__copy {
  flex: 1;
  min-width: 0;
}

.channel-inline-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.channel-inline-name__text {
  min-width: 0;
}

.channel-card-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.channel-card-premium__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.channel-card-premium__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.channel-card-premium-metric {
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.channel-card-premium-metric__lab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}

.channel-card-premium-metric__val {
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.channel-card-premium-metric--good {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.35) 100%);
}

.channel-card-premium-metric--attention {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 237, 0.4) 100%);
}

.channel-card-premium-metric--danger {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 242, 242, 0.45) 100%);
}

.channel-card-premium__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}

.channel-card-premium__block {
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.channel-card-premium__hint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}

.channel-card-premium__accent {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d4ed8;
  line-height: 1.2;
}

.channel-card-premium__sync-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.channel-card-premium__cta {
  padding: 4px 16px 16px;
  margin: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(255, 255, 255, 0.45);
}

.channel-card-premium__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
  letter-spacing: 0.02em;
}

a.channel-card--overview-link.channel-card--overview-premium .channel-card-premium__btn {
  pointer-events: none;
}

.channel-global-revenue-note {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-global-revenue-note span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.channel-global-revenue-note strong {
  font-size: 18px;
}

@media (max-width: 1200px) {
  .channel-cards-grid,
  .channel-global-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channels-overview .channel-cards-grid--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-metrics-grid--premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .channel-cards-grid,
  .channel-global-metrics {
    grid-template-columns: 1fr;
  }
  .channels-overview .channel-cards-grid--overview {
    grid-template-columns: 1fr;
  }
  .channel-metrics-grid--premium {
    grid-template-columns: 1fr;
  }
  .channel-card-footer-info {
    grid-template-columns: 1fr;
  }
  .channel-card-premium__split {
    grid-template-columns: 1fr;
  }
}

.channel-stats-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.channel-stats-chip {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.channel-stats-chip span {
  font-size: 11px;
  color: var(--text-soft);
}

.channel-stats-chip strong {
  font-size: 16px;
}

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

.channel-widget {
  min-height: 150px;
}

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

.channel-kpi-grid div {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 4px;
}

.channel-kpi-grid span {
  font-size: 11px;
  color: var(--text-soft);
}

.channel-kpi-grid strong {
  font-size: 16px;
}

.channel-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
}

.channel-chat-list {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.channel-chat-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
}

.channel-chat-detail {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
}

@media (max-width: 1200px) {
  .channel-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .channel-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .channel-chat-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .channel-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

.provider-catalog-head strong {
  font-size: 20px;
  line-height: 1.15;
}

.provider-catalog-symbol {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(11, 31, 51, 0.06));
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.provider-catalog-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.provider-catalog-title-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.provider-catalog-subline {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.provider-catalog-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.provider-catalog-meta {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.integration-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.action-chip {
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* Global footer stilleri: /css/app-footer.css */

.academy-shell,
.ai-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.academy-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(132, 147, 176, 0.18);
  background: linear-gradient(135deg, rgba(249, 251, 255, 0.98), rgba(238, 245, 255, 0.94));
  box-shadow: 0 24px 48px rgba(19, 35, 67, 0.08);
}

.academy-hero h2 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.05;
}

.academy-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
}

.academy-category-grid,
.academy-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.academy-category-card,
.academy-article-card,
.academy-related-item {
  border: 1px solid rgba(132, 147, 176, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,255,0.96));
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(17, 37, 78, 0.06);
}

.academy-category-card span,
.academy-article-card strong {
  display: block;
  font-size: 20px;
  color: var(--text-strong);
}

.academy-category-card p,
.academy-article-card p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.academy-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.academy-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(132, 147, 176, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.academy-meta-pill.accent {
  border-color: rgba(36, 80, 204, 0.18);
  background: rgba(96, 146, 255, 0.12);
  color: #2450cc;
}

.academy-meta-pill.success {
  border-color: rgba(0, 196, 140, 0.2);
  background: rgba(0, 196, 140, 0.12);
  color: #087c5d;
}

.academy-tag,
.academy-article-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 146, 255, 0.12);
  color: #2450cc;
  font-size: 12px;
  font-weight: 700;
}

.academy-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 20px;
  margin-top: 18px;
}

.academy-section-card {
  border: 1px solid rgba(132, 147, 176, 0.16);
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(17, 37, 78, 0.06);
}

.academy-step-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247,250,255,0.96), rgba(255,255,255,0.98));
  border: 1px solid rgba(132, 147, 176, 0.16);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.academy-step-card:hover,
.academy-step-card.active {
  border-color: rgba(36, 80, 204, 0.28);
  box-shadow: 0 18px 38px rgba(17, 37, 78, 0.10);
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(242,247,255,1), rgba(255,255,255,1));
}

.academy-step-index {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #123b93, #28d6d3);
}

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

.academy-visual {
  position: relative;
  min-height: 170px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(132, 147, 176, 0.16);
  background: radial-gradient(circle at 30% 30%, rgba(89, 169, 255, 0.20), transparent 42%), linear-gradient(135deg, #f8fbff, #edf4ff);
}

.academy-visual.gif {
  background: radial-gradient(circle at 60% 20%, rgba(44, 215, 188, 0.18), transparent 38%), linear-gradient(135deg, #f7ffff, #eefbff);
}

.academy-visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(73, 96, 156, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(73, 96, 156, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.academy-visual-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.academy-guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 147, 176, 0.16);
}

.academy-guide-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.academy-guide-state strong {
  color: var(--text-strong);
  font-size: 16px;
}

.academy-guide-state span {
  color: var(--text-soft);
  font-size: 13px;
}

.academy-article-card.completed {
  border-color: rgba(0, 196, 140, 0.24);
}

.academy-related-item.emphasized {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.academy-related-item.emphasized span {
  color: var(--text-soft);
  font-size: 12px;
}

.ai-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.ai-chat-message {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(132, 147, 176, 0.14);
  background: linear-gradient(180deg, rgba(250,252,255,0.96), rgba(245,248,255,0.92));
}

.ai-chat-message.user {
  background: linear-gradient(135deg, rgba(25, 48, 96, 0.96), rgba(31, 79, 186, 0.88));
  color: #fff;
}

.ai-chat-message.error {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(255, 241, 242, 0.98);
}

.ai-chat-message strong {
  display: block;
  margin-bottom: 8px;
}

.ai-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.ai-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.thiq-ai-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.35fr) minmax(260px, 0.84fr);
  align-items: start;
  gap: 18px;
}

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

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

.thiq-ai-orientation-card {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.86), rgba(5, 10, 22, 0.74));
  display: grid;
  gap: 6px;
}

.thiq-ai-orientation-card span {
  color: rgba(148, 163, 184, 0.88);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.thiq-ai-orientation-card strong {
  color: #f8fafc;
  font-size: 15px;
}

.thiq-ai-orientation-card small {
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
}

.thiq-ai-top-actions {
  margin-bottom: 8px;
}

.thiq-ai-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thiq-ai-quick-chip {
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}

.thiq-ai-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.thiq-ai-action-card {
  width: 100%;
  min-width: 0;
  text-align: left;
  border-radius: 18px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.95), rgba(9, 16, 30, 0.88));
  display: grid;
  gap: 6px;
  color: #f8fafc;
}

.thiq-ai-action-kicker {
  color: rgba(125, 211, 252, 0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.thiq-ai-action-card strong {
  font-size: 15px;
}

.thiq-ai-action-card small {
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.5;
}

.thiq-ai-kairos-bridge-callout {
  margin-top: 14px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: linear-gradient(135deg, rgba(6, 16, 20, 0.92), rgba(7, 23, 30, 0.86));
  display: grid;
  gap: 6px;
}

.thiq-ai-kairos-bridge-callout span {
  color: rgba(134, 239, 172, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thiq-ai-kairos-bridge-callout strong {
  color: #f0fdf4;
  font-size: 16px;
}

.thiq-ai-kairos-bridge-callout small {
  color: rgba(220, 252, 231, 0.72);
  line-height: 1.5;
}

.thiq-ai-askbar {
  margin-bottom: 12px;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(12, 18, 34, 0.92), rgba(8, 14, 28, 0.84));
  border: 1px solid rgba(96, 165, 250, 0.16);
  display: grid;
  gap: 4px;
}

.thiq-ai-askbar span {
  color: rgba(125, 211, 252, 0.82);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.thiq-ai-askbar strong {
  color: #f8fafc;
  font-size: 15px;
}

.thiq-ai-askbar small {
  color: rgba(226, 232, 240, 0.72);
}

.thiq-ai-left,
.thiq-ai-main,
.thiq-ai-right {
  display: grid;
  gap: 18px;
}

.thiq-ai-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.96) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.thiq-ai-chat-card {
  min-height: 640px;
}

.thiq-ai-command-input {
  min-height: 148px;
  border-radius: 18px;
  background: #101723;
  color: #e6edf3;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.thiq-ai-command-input::placeholder {
  color: rgba(230, 237, 243, 0.48);
}

.thiq-ai-response-grid {
  display: grid;
  gap: 12px;
}

.thiq-ai-response-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #131c29 0%, #0e1621 100%);
  color: #e6edf3;
}

.thiq-ai-response-card span {
  display: block;
  margin-bottom: 8px;
  color: #7dd3c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.thiq-ai-response-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.thiq-ai-response-card p {
  margin: 0;
  color: rgba(230, 237, 243, 0.76);
  line-height: 1.7;
}

.crm-identity-band {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(255,255,255,0.96));
}

.crm-identity-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #f8fafc;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .04em;
}

.crm-identity-copy {
  display: grid;
  gap: 8px;
}

.crm-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-identity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

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

.prep-hero-step {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255,255,255,0.72);
}

.prep-hero-step span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.prep-hero-step strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.thiq-ai-provider-list .mini-list-row,
.thiq-ai-history-list .mini-list-row,
.health-ai-item {
  border-radius: 16px;
  border: 1px solid #e7edf7;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
}

.thiq-ai-history-list .mini-list-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.thiq-ai-history-list .mini-list-row:hover,
.health-ai-item:hover {
  border-color: #c8d8ff;
  transform: translateY(-1px);
}

.thiq-ai-shell .purpose-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-ai-grid {
  display: grid;
  gap: 12px;
}

.health-ai-item strong,
.health-ai-item p {
  display: block;
}

.health-ai-item p {
  margin: 8px 0 0;
  color: #5b6577;
  line-height: 1.6;
}

.sidebar.collapsed .sidebar-group-body {
  display: none !important;
}

/* RESPONSIVE */

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

  .hero-card {
    min-height: 220px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
  }

  .sidebar .brand-text,
  .sidebar .nav-label,
  .sidebar .sidebar-group-toggle-label,
  .sidebar .sidebar-group-toggle-caret {
    display: none;
  }

  .main-layout {
    padding: 14px;
  }

  .topbar {
    padding: 16px;
    border-radius: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .stats-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section-grid-2,
  .section-grid-3,
  .section-grid-4,
  .section-grid-5,
  .source-grid,
  .provider-catalog-grid,
  .workspace-shell,
  .form-grid,
  .prep-steps {
    grid-template-columns: 1fr;
  }

  .thiq-ai-workbench,
  .record-lower-grid,
  .prep-hero-flow {
    grid-template-columns: 1fr;
  }

  .thiq-ai-production-grid,
  .thiq-ai-orientation-grid {
    grid-template-columns: 1fr;
  }

  .academy-detail-grid,
  .academy-search-bar,
  .academy-step-visuals {
    grid-template-columns: 1fr;
  }

  .record-head,
  .record-detail-grid,
  .record-stat-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .detail-tabs {
    justify-content: flex-start;
  }

  .academy-guide-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-left,
  .topbar-right {
    justify-content: space-between;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .card-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 24px;
  }
}
/* ======================================
SIDEBAR PRO LAYOUT
====================================== */

:root {
  --sidebar-bg: #0f172a;
  --sidebar-bg-2: #111c34;
  --sidebar-border: rgba(255,255,255,0.08);
  --sidebar-text: rgba(255,255,255,0.92);
  --sidebar-text-soft: rgba(255,255,255,0.64);

  --card-blue: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --card-purple: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  --card-green: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --card-amber: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  --card-rose: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  --card-slate: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.sidebar {
  width: 286px;
  min-width: 286px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  padding: 18px 14px;
  box-sizing: border-box;
  transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 88px;
  min-width: 88px;
  padding: 18px 10px;
}

.sidebar-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-clickable {
  cursor: pointer;
}

.brand-logo-media {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,247,252,0.94));
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  box-sizing: border-box;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--sidebar-text-soft);
  margin-top: 4px;
}

.sidebar-logo-tools {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-upload-btn,
.sidebar-clear-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar-upload-btn:hover,
.sidebar-clear-btn:hover {
  background: rgba(255,255,255,0.12);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
}

.nav-item.active {
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.nav-icon {
  width: 22px;
  min-width: 22px;
  text-align: center;
  font-size: 16px;
}

.nav-label {
  white-space: nowrap;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-logo-tools,
.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .brand {
  justify-content: center;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 13px 10px;
}

/* ======================================
TOPBAR
====================================== */

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248,250,252,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
}

.page-body {
  padding: 22px;
}

.icon-btn,
.ghost-btn,
.primary-btn {
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
}

.icon-btn {
  border: 1px solid #dbe4f0;
  background: #fff;
}

.ghost-btn {
  border: 1px solid #dbe4f0;
  background: #fff;
}

.primary-btn {
  border: 0;
  background: #111827;
  color: #fff;
}

/* ======================================
CARDS
====================================== */

.page-grid,
.grid-2,
.grid-3,
.grid-4,
.stats-grid {
  display: grid;
  gap: 16px;
}

.page-grid {
  grid-template-columns: 1.3fr 1fr;
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.stat-card:nth-child(1) {
  background: var(--card-blue);
}

.stat-card:nth-child(2) {
  background: var(--card-purple);
}

.stat-card:nth-child(3) {
  background: var(--card-green);
}

.stat-card:nth-child(4) {
  background: var(--card-amber);
}

.stat-card:nth-child(5) {
  background: var(--card-rose);
}

.stat-card:nth-child(6) {
  background: var(--card-slate);
}

.card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.card-title {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #0f172a;
}

.card-text {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.stat-label {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value.stat-value-compact {
  font-size: clamp(20px, 1.85vw, 26px);
  letter-spacing: -0.04em;
}

.stats-grid .stat-card:nth-child(4) .stat-value {
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: -0.05em;
}

.record-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}

.record-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

/* ======================================
RESPONSIVE
====================================== */

@media (max-width: 1200px) {
  .page-grid,
  .grid-4,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
    width: 286px;
    min-width: 286px;
    padding: 18px 14px;
  }

  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .sidebar-logo-tools,
  .sidebar.collapsed .nav-label {
    display: block;
  }

  .sidebar.collapsed .nav-item {
    justify-content: flex-start;
    padding: 13px 14px;
  }

  .page-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px 16px;
  }

  .page-body {
    padding: 16px;
  }

  .clarity-banner,
  .purpose-grid,
  .action-grid,
  .helper-grid,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .info-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================
PREMIUM DASHBOARD
====================================== */

.sidebar-nav {
  max-height: calc(100vh - 180px);
  padding-right: 6px;
}

.page-body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.07), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.04), transparent 24%),
    linear-gradient(180deg, #f5f7f9 0%, #eef2f5 100%);
}

.dashboard-premium {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dashboard-overview-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.dashboard-overview-card {
  border: 1px solid #e6eaf2;
  border-radius: 18px;
  background: #fff;
  padding: 18px 20px;
  min-height: 0;
}

.dashboard-overview-card h2 {
  margin: 6px 0 6px;
  font-size: 34px;
}

.dashboard-overview-card p {
  margin: 0;
  color: #64748b;
  max-width: 720px;
}

.dashboard-premium-hero,
.dashboard-panel,
.finance-content-card,
.finance-audit-card,
.finance-nav-card,
.finance-metric-card,
.finance-summary-card,
.finance-form-card,
.finance-report-shell {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 234, 242, 0.92);
  box-shadow: 0 20px 45px rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(12px);
}

.dashboard-premium-hero {
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, #0f5c56 0%, #0f766e 45%, #14b8a6 100%);
  color: #fff;
}

.dashboard-eyebrow,
.finance-nav-kicker,
.finance-detail-kicker,
.dashboard-panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-hero-copy h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  max-width: 720px;
}

.dashboard-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-hero-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dashboard-premium .secondary-action,
.dashboard-panel .secondary-action.dark {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(165px, 1fr));
  gap: 12px;
}

.dashboard-overview-signals {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
}

.overview-signal-chip {
  border: 1px solid #e1e9f6;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.overview-signal-chip span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.overview-signal-chip strong {
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
}

.executive-metric-card,
.finance-metric-card {
  border-radius: 20px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  justify-content: space-between;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.executive-metric-card:nth-child(1) { background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%); border-color: #d7e6ff; }
.executive-metric-card:nth-child(2) { background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%); border-color: #d4edf8; }
.executive-metric-card:nth-child(3) { background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%); border-color: #e2defc; }
.executive-metric-card:nth-child(4) { background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%); border-color: #f5e6d0; }
.executive-metric-card:nth-child(5) { background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%); border-color: #d8f0e0; }
.executive-metric-card:nth-child(6) { background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%); border-color: #dce5fb; }

.executive-metric-card:hover,
.finance-metric-card:hover,
.dashboard-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(11, 31, 51, 0.12);
}

.executive-metric-card .metric-label,
.executive-metric-label,
.finance-metric-card span {
  font-size: 13px;
  color: #667085;
}

.executive-metric-card .metric-value,
.executive-metric-value,
.finance-metric-card strong {
  font-size: clamp(24px, 1.8vw, 31px);
  line-height: 1.1;
  color: #0b1f33;
  font-weight: 800;
  word-break: normal;
  overflow-wrap: anywhere;
}

.metric-trend,
.executive-metric-trend {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  min-height: 14px;
}

.metric-sparkline {
  width: 100%;
  height: 22px;
  color: #2563eb;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

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

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

.dashboard-panel {
  border-radius: 24px;
  padding: 22px;
}

.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-panel-head h3 {
  margin: 4px 0 0;
  font-size: 24px;
  color: #0b1f33;
}

.dashboard-panel-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.saas-area-chart,
.saas-insight-list,
.activity-feed,
.integration-health-grid,
.saas-top-products,
.saas-system-list,
.saas-donut-wrap {
  min-height: 240px;
}

.saas-area-chart {
  position: relative;
  height: 260px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #e5eaf2;
  padding: 14px;
}

.saas-area-chart svg {
  width: 100%;
  height: 100%;
}

.saas-area-grid line {
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 1;
}

.saas-area-fill {
  fill: url(#thothAreaGradient);
}

.saas-area-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saas-donut-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.saas-donut {
  width: 180px;
  height: 180px;
}

.saas-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saas-donut-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #334155;
}

.saas-donut-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.saas-mini-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 240px;
  padding-top: 8px;
}

.saas-mini-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: end;
  height: 100%;
}

.saas-mini-bar-fill {
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #7cc5ff 0%, #2563eb 100%);
  min-height: 18px;
}

.saas-mini-chart.green .saas-mini-bar-fill { background: linear-gradient(180deg, #86efac 0%, #16a34a 100%); }
.saas-mini-chart.amber .saas-mini-bar-fill { background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%); }
.saas-mini-chart.violet .saas-mini-bar-fill { background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 100%); }

.saas-mini-bar span {
  font-size: 12px;
  color: #667085;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: 800;
}

.activity-title {
  font-size: 15px;
  font-weight: 700;
  color: #0b1f33;
}

.activity-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-meta,
.activity-time {
  font-size: 13px;
  color: #667085;
}

.activity-timeline {
  display: grid;
  gap: 12px;
}

.activity-group-label {
  padding: 6px 2px 0;
  font-size: 12px;
  font-weight: 800;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.activity-feed-row {
  appearance: none;
  width: 100%;
  border: 1px solid #e5eaf2;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.activity-feed-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.activity-feed-row.red { border-color: rgba(239,68,68,0.28); }
.activity-feed-row.amber { border-color: rgba(245,158,11,0.28); }
.activity-feed-row.green { border-color: rgba(22,163,74,0.24); }
.activity-feed-row.blue { border-color: rgba(37,99,235,0.2); }
.activity-feed-row.slate { border-color: rgba(100,116,139,0.2); }

.activity-feed-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  font-weight: 800;
  font-size: 18px;
}

.activity-feed-copy {
  display: grid;
  gap: 6px;
}

.activity-feed-copy strong {
  color: #0b1f33;
}

.activity-feed-copy p {
  margin: 0;
  color: #667085;
}

.activity-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.integration-health-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.integration-health-card {
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.integration-health-card.ok { box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18); }
.integration-health-card.warn { box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2); }
.integration-health-card.bad { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2); }

.integration-health-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.integration-health-card h4 {
  margin: 0;
  font-size: 16px;
  color: #0b1f33;
}

.integration-health-card p,
.integration-health-card small {
  color: #667085;
  margin: 0;
}

.topbar-task-bell-wrap {
  position: relative;
}

.topbar-task-bell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar-task-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  padding: 0 7px;
}

.topbar-task-drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid #e5eaf2;
  box-shadow: 0 20px 40px rgba(11, 31, 51, 0.16);
  display: none;
  z-index: 40;
}

.topbar-task-drawer.active {
  display: block;
}

.task-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.secondary-action.dark {
  background: #0b1f33;
  color: #fff;
  border-color: #0b1f33;
}

.task-drawer-item,
.dashboard-task-row,
.task-table-row,
.task-notification-row {
  width: 100%;
  text-align: left;
  border: 1px solid #e5eaf2;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.task-drawer-item.unread,
.task-notification-row.unread {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.task-drawer-item strong,
.task-notification-row strong {
  display: block;
  color: #0b1f33;
}

.task-drawer-item p,
.task-notification-row p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.5;
}

.task-summary-grid,
.dashboard-task-grid {
  display: grid;
  gap: 16px;
}

.task-summary-grid {
  grid-template-columns: repeat(6, minmax(160px, 1fr));
}

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

.task-summary-card,
.dashboard-task-card {
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 12px;
  min-width: 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.task-summary-card:hover,
.dashboard-task-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  border-color: #dce5f2;
}

.task-summary-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 10px 12px;
  min-height: 0;
}

.task-summary-card span {
  color: #667085;
  font-size: 10px;
}

.task-summary-card strong {
  font-size: 18px;
  color: #0b1f33;
}

.dashboard-task-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-task-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ghost-link-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.dashboard-task-row {
  padding: 10px 12px;
}

.dashboard-task-row span,
.dashboard-task-row small {
  display: block;
}

.dashboard-task-row small {
  color: #667085;
  margin-top: 6px;
}

.task-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-list-container {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.task-table-head,
.task-table-row {
  display: grid;
  grid-template-columns: 42px 1.9fr 0.9fr 0.9fr 1fr 1.1fr 0.9fr 1.4fr;
  gap: 10px;
  align-items: center;
}

.task-table-head {
  padding: 0 12px 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.task-table-row span {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-table-row small {
  display: inline-flex;
  color: #667085;
  margin-top: 0;
  font-size: 11px;
}

.task-inline-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
}

.task-inline-actions .tab-chip {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.task-bulk-action-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffff;
  border-top: 1px solid #e7edf6;
  border-bottom: 1px solid #e7edf6;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.task-badge.success { background: rgba(22, 163, 74, 0.12); color: #166534; }
.task-badge.warning { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.task-badge.danger { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.task-badge.info { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.task-badge.neutral { background: #eef2f7; color: #334155; }

.task-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.task-board-column {
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fbfdff;
  padding: 12px;
}

.task-board-head {
  font-size: 13px;
  font-weight: 800;
  color: #0b1f33;
  margin-bottom: 10px;
}

.task-board-list,
.task-calendar-items,
.task-notification-list,
.task-automation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-row {
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.task-row.compact {
  padding: 10px;
}

.task-row-main,
.task-row-meta,
.task-row-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.task-row-main {
  margin-bottom: 8px;
}

.task-row-main strong {
  color: #0b1f33;
}

.task-row-main span,
.task-row-meta span {
  color: #667085;
  font-size: 12px;
}

.task-calendar-list,
.task-detail-sections,
.task-template-grid {
  display: grid;
  gap: 14px;
}

.task-calendar-day,
.task-template-card,
.task-detail-card {
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 18px;
}

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

.task-template-card p {
  color: #667085;
  line-height: 1.6;
}

.task-automation-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.task-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.task-detail-head h3 {
  margin: 4px 0 0;
  color: #0b1f33;
  font-size: 28px;
}

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

.task-detail-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.task-link-panel .tab-chip {
  border: none;
  cursor: pointer;
}

.task-link-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  color: #667085;
}

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

.task-linked-item {
  cursor: pointer;
}

.saas-top-products table,
.finance-table {
  width: 100%;
  border-collapse: collapse;
}

.saas-top-products th,
.saas-top-products td,
.finance-table th,
.finance-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  font-size: 13px;
}

.saas-top-products th,
.finance-table th {
  color: #667085;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.saas-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.saas-insight-list,
.saas-system-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saas-insight-card,
.saas-system-row {
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.saas-insight-card h4,
.saas-system-row h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0b1f33;
}

.saas-insight-card p,
.saas-system-row p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-action-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-action-btn {
  border: 1px solid #dbe4f0;
  background: rgba(255,255,255,0.88);
  color: #0b1f33;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ======================================
FINANCE PORTAL
====================================== */

.finance-console {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finance-metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.finance-metric-card {
  border-radius: 18px;
}

.finance-metric-card.blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.finance-metric-card.green { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.finance-metric-card.amber { background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%); }
.finance-metric-card.red { background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%); }
.finance-metric-card.slate { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.finance-metric-card.violet { background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%); }

.finance-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: start;
}

.finance-sidebar {
  position: sticky;
  top: 90px;
}

.finance-nav-card {
  border-radius: 22px;
  padding: 18px;
}

.finance-nav-brand {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
  margin-bottom: 14px;
}

.finance-nav-title {
  font-size: 24px;
  font-weight: 800;
  color: #0b1f33;
  margin-top: 6px;
}

.finance-nav-group + .finance-nav-group {
  margin-top: 16px;
}

.finance-nav-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.finance-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.finance-nav-link {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.finance-nav-link:hover {
  background: #f8fafc;
}

.finance-nav-link.active {
  background: linear-gradient(135deg, #e0eaff 0%, #eef4ff 100%);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.finance-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finance-toolbar,
.finance-content-card,
.finance-audit-card {
  border-radius: 22px;
  padding: 20px;
}

.finance-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.finance-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.finance-breadcrumbs i {
  color: #cbd5e1;
  font-style: normal;
}

.finance-heading h3 {
  margin: 8px 0 6px;
  font-size: 30px;
  color: #0b1f33;
}

.finance-heading p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  max-width: 700px;
}

.finance-toolbar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 360px;
}

.finance-search input {
  width: 100%;
}

.finance-action-row,
.finance-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-toolbar-btn {
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #0b1f33;
}

.finance-toolbar-btn.primary {
  background: #0b1f33;
  border-color: #0b1f33;
  color: #fff;
}

.finance-toolbar-btn.warning {
  background: #facc15;
  border-color: #facc15;
  color: #172554;
}

.finance-toolbar-btn.soft {
  background: #f8fbff;
  color: #1d4ed8;
}

.finance-toolbar-btn.danger {
  background: #fff1f2;
  color: #b42318;
  border-color: #fecdd3;
}

.finance-report-shell,
.finance-form-card,
.finance-summary-card,
.finance-detail-panel {
  border-radius: 20px;
  padding: 18px;
}

.finance-report-header,
.finance-card-header,
.finance-card-header-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

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

.finance-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #dbeafe;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.finance-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.finance-chip.active {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  border-color: #2563eb;
}

.crm-list-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(180px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  margin-bottom: 12px;
}

.crm-list-filterbar .finance-search {
  min-width: 0;
}

.crm-list-filterbar .finance-action-row {
  justify-content: flex-end;
}

.finance-table-wrap {
  overflow: auto;
  border: 1px solid #edf2f7;
  border-radius: 14px;
}

.finance-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.finance-status.pending { background: #fff7ed; color: #c2410c; }
.finance-status.draft { background: #f8fafc; color: #475569; }
.finance-status.sent,
.finance-status.ok,
.finance-status.active { background: #ecfdf3; color: #027a48; }
.finance-status.failed,
.finance-status.cancelled { background: #fff1f2; color: #b42318; }

.finance-overview-grid,
.finance-provider-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  width: 100%;
}

/* Responsive: Tablet - stack layout */
@media (max-width: 1200px) {
  .finance-provider-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .finance-provider-layout {
    gap: 14px;
  }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .finance-provider-layout {
    gap: 12px;
  }
}

.finance-overview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .finance-overview-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .finance-overview-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.finance-launch-card {
  border: 1px solid #e5eaf2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.finance-launch-title {
  color: #0b1f33;
  font-size: 18px;
  font-weight: 800;
}

.finance-launch-text,
.finance-summary-copy,
.finance-note-list li {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.finance-form-grid {
  display: grid;
  gap: 14px;
}

.finance-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.finance-create-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.finance-form-main,
.finance-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finance-line-head,
.finance-line-row {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.finance-line-head {
  padding: 0 4px 8px;
  font-size: 11px;
  color: #667085;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finance-line-row {
  padding: 12px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e5eaf2;
}

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

.finance-mini-panel {
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.finance-mini-panel strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1f33;
}

.finance-mini-panel p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.finance-summary-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #667085;
  font-weight: 800;
  margin-bottom: 12px;
}

.finance-summary-card.soft {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

/* CRM/B2B rail: win over generic .soft so support panel matches workspace shell */
.finance-provider-layout.crm-console-layout .finance-summary-card.crm-section-rail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

.finance-summary-row,
.finance-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.finance-summary-row:last-child,
.finance-detail-row:last-child {
  border-bottom: 0;
}

.finance-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.finance-detail-head h4 {
  margin: 4px 0 0;
  font-size: 28px;
  color: #0b1f33;
}

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

.finance-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.finance-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 26px;
}

.finance-empty-illustration {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.finance-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

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

.finance-audit-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.finance-audit-item:last-child {
  border-bottom: 0;
}

@media (max-width: 1400px) {
  .dashboard-metric-grid,
  .finance-metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .integration-health-grid,
  .task-summary-grid,
  .dashboard-task-grid,
  .task-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-overview-top,
  .dashboard-grid-2-1,
  .dashboard-grid-2,
  .finance-layout,
  .finance-overview-grid,
  .finance-provider-layout,
  .finance-create-shell,
  .task-template-grid,
  .task-detail-sections {
    grid-template-columns: 1fr;
  }

  .finance-sidebar {
    position: static;
  }

  .finance-overview-actions {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .dashboard-premium-hero,
  .finance-toolbar {
    flex-direction: column;
  }

  .dashboard-metric-grid,
  .finance-metrics-strip,
  .integration-health-grid,
  .dashboard-task-grid,
  .task-board,
  .finance-form-grid.two,
  .finance-form-grid.three,
  .finance-collapsible-grid,
  .finance-detail-grid,
  .task-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .finance-line-head,
  .finance-line-row,
  .saas-donut-wrap,
  .task-table-head,
  .task-table-row,
  .task-automation-row {
    grid-template-columns: 1fr;
  }

  .finance-toolbar-actions {
    min-width: 0;
    width: 100%;
  }

  .topbar-task-drawer {
    width: min(92vw, 360px);
  }
}

@media (max-width: 680px) {
  .task-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.integration-shelf {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.integration-shelf-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.provider-catalog-card {
  width: 100%;
  border: 1px solid #e5eaf2;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,251,0.98));
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}

.provider-catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11, 31, 51, 0.08);
  border-color: rgba(37, 99, 235, 0.24);
}

.provider-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.provider-catalog-card strong {
  font-size: 18px;
  line-height: 1.15;
  color: #0b1f33;
  display: block;
  overflow-wrap: normal;
  max-width: 100%;
}

.provider-catalog-card p {
  margin: 0;
  color: #667085;
  line-height: 1.65;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.provider-catalog-card .task-badge {
  flex: 0 0 auto;
  max-width: 120px;
  text-align: center;
}

.provider-catalog-meta {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.integration-card-actions,
.integration-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-chip {
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  color: #2146a1;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.integration-action-bar > .primary-btn,
.integration-action-bar > .secondary-action,
.integration-action-bar > .danger-btn {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.integration-action-bar.compact > .primary-btn,
.integration-action-bar.compact > .secondary-action {
  min-width: 132px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
}

.entity-cell {
  display: grid;
  gap: 4px;
}

.entity-cell small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.setup-mode .sidebar,
.setup-mode .topbar {
  display: none;
}

.setup-mode .main-layout,
.setup-mode .page-body,
.setup-mode [data-page-view="setup"] {
  min-height: 100vh;
  width: 100%;
  padding: 0;
}

.setup-mode [data-page-view="setup"].active {
  display: block;
}

.setup-mission-screen,
.setup-complete-screen {
  min-height: 100vh;
  padding: 48px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,0.16), transparent 22%),
    linear-gradient(135deg, #09111f 0%, #0f1e33 42%, #152943 100%);
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setup-error-banner {
  width: min(1280px, 100%);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(248,113,113,0.32);
  background: rgba(127, 29, 29, 0.22);
  color: #ffd5d5;
  font-weight: 600;
}

.setup-scene-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.setup-status-line,
.setup-progress {
  grid-column: 1 / -1;
  color: rgba(207, 224, 255, 0.92);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.setup-progress {
  margin-top: -26px;
  opacity: .74;
}

.setup-visual {
  min-height: 420px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 80px rgba(0,0,0,0.22);
}

.setup-visual.large {
  width: min(640px, 100%);
  min-height: 360px;
  margin: 18px auto 24px;
}

.setup-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  animation: setup-spin 16s linear infinite;
}

.setup-orbit-a {
  width: 360px;
  height: 360px;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.setup-orbit-b {
  width: 220px;
  height: 220px;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  animation-direction: reverse;
  animation-duration: 12s;
}

.setup-core-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(96,165,250,0.88) 0%, rgba(59,130,246,0.44) 34%, rgba(59,130,246,0.08) 70%, transparent 74%);
  filter: blur(6px);
  animation: setup-pulse 3.2s ease-in-out infinite;
}

.setup-particle-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.2) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 22%, rgba(96,165,250,.32) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 76% 64%, rgba(16,185,129,.22) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 34% 72%, rgba(255,255,255,.15) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 48%, rgba(96,165,250,.22) 0 1px, transparent 2px);
  animation: setup-star-drift 14s linear infinite;
  opacity: .7;
}

.setup-scene-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.setup-node,
.setup-packet,
.setup-growth-dot,
.setup-hub {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(147,197,253,0.85);
  box-shadow: 0 0 18px rgba(96,165,250,0.5);
}

.setup-scene-art-industry .n1 { top: 26%; left: 24%; animation: setup-pulse 2.6s ease-in-out infinite; }
.setup-scene-art-industry .n2 { top: 34%; right: 24%; animation: setup-pulse 2.4s ease-in-out infinite .3s; }
.setup-scene-art-industry .n3 { bottom: 24%; left: 28%; animation: setup-pulse 2.8s ease-in-out infinite .5s; }
.setup-scene-art-industry .n4 { bottom: 30%; right: 30%; animation: setup-pulse 2.5s ease-in-out infinite .8s; }

.setup-reticle {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(191,219,254,0.24);
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(255,255,255,0.03), 0 0 0 48px rgba(255,255,255,0.02);
}

.setup-scanline {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,0.9), transparent);
  animation: setup-scan 2.8s ease-in-out infinite;
}

.setup-bar {
  position: absolute;
  bottom: 18%;
  width: 54px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, rgba(96,165,250,0.88), rgba(37,99,235,0.18));
  box-shadow: 0 12px 22px rgba(37,99,235,0.12);
}

.setup-bar.b1 { left: 18%; height: 24%; }
.setup-bar.b2 { left: 34%; height: 38%; }
.setup-bar.b3 { left: 50%; height: 58%; }
.setup-bar.b4 { left: 66%; height: 74%; }

.setup-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,0.08), rgba(147,197,253,0.95), rgba(96,165,250,0.08));
}

.setup-link.l1 { left: 20%; right: 28%; top: 32%; transform: rotate(18deg); }
.setup-link.l2 { left: 18%; right: 22%; top: 56%; transform: rotate(-14deg); }
.setup-link.l3 { left: 34%; right: 16%; top: 48%; }
.setup-hub { left: 49%; top: 47%; width: 20px; height: 20px; }

.setup-wave {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(191,219,254,0.82), transparent);
  animation: setup-wave 2.4s ease-in-out infinite;
}

.setup-wave.w1 { top: 34%; }
.setup-wave.w2 { top: 48%; animation-delay: .35s; }
.setup-wave.w3 { top: 62%; animation-delay: .7s; }

.setup-growth-line {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 24%;
  height: 160px;
  clip-path: polygon(0 100%, 16% 72%, 36% 78%, 58% 46%, 82% 38%, 100% 0, 100% 8%, 82% 44%, 58% 52%, 36% 84%, 16% 78%, 0 100%);
  background: linear-gradient(180deg, rgba(96,165,250,0.95), rgba(37,99,235,0.15));
}

.setup-growth-dot.d1 { left: 30%; top: 58%; }
.setup-growth-dot.d2 { left: 50%; top: 42%; }
.setup-growth-dot.d3 { left: 76%; top: 24%; }

.setup-packet {
  width: 20px;
  height: 20px;
  background: rgba(167,243,208,0.88);
  box-shadow: 0 0 18px rgba(16,185,129,0.4);
  animation: setup-float 4s ease-in-out infinite;
}

.setup-packet.p1 { left: 22%; top: 30%; }
.setup-packet.p2 { left: 42%; top: 56%; animation-delay: .6s; }
.setup-packet.p3 { left: 58%; top: 34%; animation-delay: 1.1s; }
.setup-packet.p4 { left: 72%; top: 60%; animation-delay: 1.5s; }

.setup-activation-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(96,165,250,0.2);
  animation: setup-pulse-ring 3.6s ease-out infinite;
}

.setup-activation-ring.r1 { width: 180px; height: 180px; }
.setup-activation-ring.r2 { width: 280px; height: 280px; animation-delay: .9s; }

.setup-logo-mark {
  position: absolute;
  width: 180px;
  right: 24px;
  bottom: 24px;
  opacity: .18;
  filter: drop-shadow(0 0 24px rgba(96,165,250,.22));
}

.setup-logo-mark.complete {
  position: absolute;
  width: 220px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: .2;
}

.setup-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.setup-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.setup-text {
  margin: 0;
  font-size: 18px;
  color: rgba(227,235,248,0.82);
  line-height: 1.7;
}

.setup-question {
  font-size: 16px;
  color: rgba(207,224,255,0.94);
}

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

.setup-option {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  min-height: 74px;
  padding: 18px;
  color: #f7fbff;
  font-size: 16px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.setup-option:hover,
.setup-option.active {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,0.82);
  background: rgba(37,99,235,0.24);
}

.setup-mission-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(1280px, 100%);
  margin: 28px auto 0;
}

@keyframes setup-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes setup-pulse {
  0%, 100% { opacity: .92; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes setup-scan {
  0%, 100% { transform: translateY(-80px); opacity: .2; }
  50% { transform: translateY(120px); opacity: 1; }
}

@keyframes setup-wave {
  0%, 100% { opacity: .28; transform: scaleX(.92); }
  50% { opacity: 1; transform: scaleX(1.03); }
}

@keyframes setup-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

@keyframes setup-pulse-ring {
  0% { opacity: .6; transform: translate(-50%, -50%) scale(.86); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes setup-star-drift {
  0% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(-8px); opacity: .82; }
  100% { transform: translateY(0); opacity: .55; }
}

.primary-btn.loading {
  opacity: .78;
  pointer-events: none;
}

.health-center-shell {
  display: grid;
  gap: 22px;
}

.health-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.health-score-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(37,99,235,0.12);
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.health-score-card strong {
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  color: #0b1f33;
}

.health-score-card p {
  margin: 0;
  color: #667085;
}

.health-score-card.good { box-shadow: inset 0 0 0 1px rgba(22,163,74,0.14); }
.health-score-card.warn { box-shadow: inset 0 0 0 1px rgba(245,158,11,0.18); }
.health-score-card.bad { box-shadow: inset 0 0 0 1px rgba(239,68,68,0.18); }
.health-score-card.compact { padding: 18px; min-width: 210px; }

.health-summary-grid,
.health-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.health-summary-card,
.health-status-card,
.health-widget-item {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7f9fc);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.health-summary-card strong,
.health-status-card strong {
  font-size: 22px;
  color: #0b1f33;
}

.health-summary-card span,
.health-status-card span,
.health-widget-item small {
  color: #667085;
}

.health-status-card.connected,
.health-status-card.green { box-shadow: inset 0 0 0 1px rgba(22,163,74,0.18); }
.health-status-card.needs_mapping,
.health-status-card.yellow,
.health-status-card.missing_credentials { box-shadow: inset 0 0 0 1px rgba(245,158,11,0.18); }
.health-status-card.not_connected,
.health-status-card.red { box-shadow: inset 0 0 0 1px rgba(239,68,68,0.18); }

.health-issue-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.health-issue-row p {
  margin: 6px 0 0;
  color: #667085;
}

.health-widget-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
}

.health-meter-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.health-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #667085;
  margin-bottom: 8px;
}

.health-meter-head b {
  color: #0b1f33;
}

.health-meter-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
}

.health-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2450cc 0%, #28d6d3 100%);
}

.health-widget-list {
  display: grid;
  gap: 10px;
}

/* Final top-nav shell */
#appSidebar {
  display: none !important;
}

.app-shell {
  display: block;
}

.main-layout {
  width: 100%;
  padding: 0 !important;
}

.top-shell {
  position: relative;
  background: #f6f8fc;
  border-bottom: 1px solid #e6eaf2;
  overflow: visible;
}

.utility-bar {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid #e9edf5;
}

.utility-bar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.utility-nav-history {
  flex-shrink: 0;
}

.topbar-history-btn {
  position: relative;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  gap: 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.topbar-history-btn .topbar-history-icon {
  font-size: 16px;
  line-height: 1;
}

.topbar-history-btn .topbar-history-label {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .topbar-history-btn .topbar-history-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .topbar-history-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .topbar-history-btn .topbar-history-icon {
    font-size: 18px;
  }
}

.utility-bar .brand {
  background: transparent;
  padding: 4px 6px;
  border-radius: 12px;
  border: 0 !important;
  box-shadow: none !important;
}

.utility-bar .brand-logo,
.utility-bar .brand-logo-media {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.utility-bar .brand-logo-image {
  display: none !important;
}

.brand-logo-top-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.mobile-nav-toggle {
  display: none;
}

.brand-title {
  color: #0f172a !important;
}

.utility-search .module-input {
  width: 100%;
  border-radius: 12px;
  border-color: #e6eaf2;
  background: #fff;
}

.main-nav-row {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  border-top: 0;
}

.main-nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.main-nav-item:hover {
  background: #f1f5ff;
  color: #1e40af;
}

.main-nav-item.active {
  background: #e0eaff;
  color: #1e40af;
  border-color: #cfe0ff;
}

.main-nav-item:focus-visible,
.mega-link:focus-visible,
.topbar-icon-btn:focus-visible,
.topbar-profile-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 128px;
  left: 32px;
  right: 32px;
  z-index: 70;
  padding: 14px;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  box-shadow: 0 24px 36px rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.mega-menu.open {
  display: block;
}

.mega-group {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mega-group.active {
  display: grid;
}

.mega-group.mega-group--channels.active {
  display: block;
}

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

.mega-columns--channels {
  align-items: start;
}

.mega-link--channels-home {
  width: 100%;
  margin-bottom: 12px;
  font-weight: 700;
}

.mega-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.mega-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 2px;
}

.mega-col .mega-link {
  width: 100%;
}

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

.mega-link {
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  border-radius: 12px;
  min-height: 44px;
  text-align: left;
  padding: 0 14px;
  color: #334155;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.mega-link:hover {
  border-color: #cfe0ff;
  color: #0f172a;
  background: #f3f6fd;
}

.mega-link.active {
  border-color: #cfe0ff;
  background: #e0eaff;
  color: #1e40af;
}

.topbar-icon-wrap {
  position: relative;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.topbar-quick-trigger {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  background: #eff4ff;
  border-color: #cfe0ff;
}

.topbar-icon-btn:hover {
  background: #f3f6fd;
  color: #1e40af;
}

.topbar-profile-wrap {
  position: relative;
}

.topbar-profile-btn {
  min-height: 40px;
  border: 1px solid #cfe0ff;
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #334155;
  font-weight: 600;
}

.topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e0eaff;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.topbar-profile-name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-profile-menu,
.topbar-quick-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 40;
}

.topbar-quick-menu {
  min-width: 320px;
  max-width: 360px;
}

.topbar-profile-wrap.open .topbar-profile-menu,
.topbar-quick-menu.open {
  display: grid;
  gap: 4px;
}

.topbar-menu-item {
  border: 0;
  background: transparent;
  border-radius: 10px;
  min-height: 36px;
  text-align: left;
  padding: 0 10px;
  color: #334155;
  font-weight: 600;
}

.topbar-quick-section-title {
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #64748b;
  text-transform: uppercase;
}

.topbar-quick-rich {
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
}

.topbar-quick-rich b {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.topbar-quick-rich small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.qi-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eff4ff;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.topbar-menu-item:hover {
  background: #f3f6fd;
  color: #0f172a;
}

.topbar-menu-item.danger {
  color: #b91c1c;
}

.topbar-task-badge {
  margin-left: 4px;
}

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #cfe0ff;
  background: #fff;
  color: #1e40af;
  font-size: 20px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 50;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #eff4ff;
  color: #1e40af;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 78;
  display: none;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 360px);
  background: #fff;
  border-right: 1px solid #e6eaf2;
  transform: translateX(-100%);
  transition: transform .24s ease;
  z-index: 79;
  display: grid;
  grid-template-rows: auto 1fr;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-head {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #e6eaf2;
}

.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid #e6eaf2;
  border-radius: 10px;
  background: #fff;
}

.mobile-drawer-body {
  padding: 10px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.mobile-link,
.mobile-accordion-toggle {
  min-height: 38px;
  border: 1px solid #e6eaf2;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 0 10px;
  color: #334155;
  font-weight: 600;
}

.mobile-link:hover,
.mobile-accordion-toggle:hover {
  background: #f3f6fd;
  color: #1e40af;
}

.mobile-link.danger {
  color: #b91c1c;
}

.mobile-accordion-body {
  display: none;
  padding: 6px 0 4px 10px;
}

.mobile-accordion.open .mobile-accordion-body {
  display: grid;
  gap: 6px;
}

.mobile-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 4px 2px;
}

.mobile-drawer-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 4px 4px;
}

.sidebar-subheading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 10px 8px 4px;
  margin: 0;
}

.page-body {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 24px 32px 30px !important;
  box-sizing: border-box;
}

/* B2B ve Customers sayfaları için parent container constraints kaldır */
.main-layout:has(.page-view[data-page-view="b2b"].active),
.main-layout:has(.page-view[data-page-view="customers"].active) {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.page-body:has(.page-view[data-page-view="b2b"].active),
.page-body:has(.page-view[data-page-view="customers"].active) {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* B2B ve Customers sayfaları: tam genişlik layout */
.page-view[data-page-view="b2b"].active,
.page-view[data-page-view="customers"].active {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: 20px 28px !important;
  box-sizing: border-box;
}

/* Tablet: 768px - 1200px */
@media (max-width: 1200px) {
  .page-view[data-page-view="b2b"].active,
  .page-view[data-page-view="customers"].active {
    padding: 18px 20px !important;
  }
}

/* Mobil: 480px - 768px */
@media (max-width: 768px) {
  .page-view[data-page-view="b2b"].active,
  .page-view[data-page-view="customers"].active {
    padding: 16px 16px !important;
  }
}

/* Küçük mobil: <480px */
@media (max-width: 480px) {
  .page-view[data-page-view="b2b"].active,
  .page-view[data-page-view="customers"].active {
    padding: 12px 12px !important;
  }
}

/* Ayarlar: dar ortalanmış demo görünümünü kaldır — içerik ana genişliğe yayılır */
.page-body:has(.page-view[data-page-view="settings"].active) {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px 24px 32px !important;
  box-sizing: border-box;
}

.settings-shell.settings-enterprise {
  width: 100%;
  max-width: none;
  margin: 0;
  --settings-space-sm: 10px;
  --settings-space-md: 14px;
  --settings-space-lg: 18px;
  --settings-space-xl: 24px;
  --settings-line-height: 1.52;
  --settings-card-padding: 16px;
}

/* Governance panelleri: global açık tema ile tutarlı görünüm */
.settings-shell.settings-enterprise .settings-gov-sleek {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.settings-shell.settings-enterprise .settings-gov-chip {
  background: #f8fafc !important;
  border-color: #dbe4f0 !important;
  color: #334155 !important;
}

.settings-shell.settings-enterprise .settings-gov-chip:hover {
  background: #eef2ff;
  border-color: #bfdbfe;
}

.settings-shell.settings-enterprise .settings-gov-chip.is-active {
  background: #e0ecff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.settings-shell.settings-enterprise .settings-gov-scroll-list,
.settings-shell.settings-enterprise .settings-gov-main,
.settings-shell.settings-enterprise .settings-gov-kpi,
.settings-shell.settings-enterprise .settings-gov-accept-block,
.settings-shell.settings-enterprise .settings-gov-md-panel {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.settings-shell.settings-enterprise .settings-gov-list-card:hover {
  background: #f8fafc;
}

.settings-shell.settings-enterprise .settings-gov-list-card.is-active {
  background: #eef4ff;
  position: sticky;
  top: 0;
  z-index: 2;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.settings-shell.settings-enterprise .settings-gov-list-card-title,
.settings-shell.settings-enterprise .settings-gov-detail-title,
.settings-shell.settings-enterprise .settings-gov-kpi-val,
.settings-shell.settings-enterprise .gov-md-h {
  color: #0f172a !important;
}

.settings-shell.settings-enterprise .settings-gov-list-card-meta,
.settings-shell.settings-enterprise .settings-gov-detail-desc,
.settings-shell.settings-enterprise .settings-gov-meta-row,
.settings-shell.settings-enterprise .settings-gov-hint,
.settings-shell.settings-enterprise .settings-gov-empty,
.settings-shell.settings-enterprise .settings-gov-kpi-label,
.settings-shell.settings-enterprise .settings-gov-accept-text,
.settings-shell.settings-enterprise .gov-md-p,
.settings-shell.settings-enterprise .gov-md-p.gov-md-muted {
  color: #475569 !important;
}

.settings-shell.settings-enterprise .settings-gov-tag {
  background: #eef2f7 !important;
  color: #334155 !important;
}

.settings-shell.settings-enterprise .settings-gov-tag--muted {
  background: #f1f5f9;
  color: #64748b;
}

.settings-shell.settings-enterprise .settings-gov-tag--ok {
  background: #dcfce7;
  color: #166534;
}

.settings-shell.settings-enterprise .settings-gov-tag--warn {
  background: #fef3c7;
  color: #92400e;
}

.settings-shell.settings-enterprise .settings-gov-btn {
  background: #f8fafc !important;
  border-color: #dbe4f0 !important;
  color: #334155 !important;
}

.settings-shell.settings-enterprise .settings-gov-btn:hover {
  background: #eef2ff;
  border-color: #bfdbfe;
}

.settings-shell.settings-enterprise .settings-gov-btn--primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.settings-shell.settings-enterprise .settings-gov-btn--primary:hover {
  background: #1d4ed8;
}

.settings-shell.settings-enterprise .gov-md-toc {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.settings-shell.settings-enterprise .gov-md-toc a {
  color: #334155;
}

.settings-shell.settings-enterprise .settings-gov-contracts .settings-gov-aside {
  position: sticky;
  top: 14px;
  align-self: start;
}

.settings-shell.settings-enterprise .settings-gov-subgroup-title {
  margin: 10px 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-shell.settings-enterprise .secondary-action.active {
  background: #e0ecff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

/* Ayarlar sağ drawer */
.settings-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.settings-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  max-width: 100%;
  height: 100vh;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  z-index: 2110;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  font-family: Inter, system-ui, sans-serif;
}

.settings-drawer-panel.is-open {
  transform: translateX(0);
}

.settings-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.settings-drawer-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.settings-drawer-close {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #475569;
}

.settings-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 18px 20px;
}

.settings-drawer-lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.settings-drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.settings-tab-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.settings-brand-mark {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}

.settings-tab-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong, #0f172a);
}

.settings-tab-lead {
  margin: 0;
  font-size: 14px;
  line-height: var(--settings-line-height);
  color: var(--text-muted, #64748b);
  max-width: 720px;
}

.settings-enterprise-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .settings-enterprise-2col {
    grid-template-columns: 1fr;
  }
}

.settings-summary-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: var(--settings-card-padding) calc(var(--settings-card-padding) + 2px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.settings-summary-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.settings-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  font-size: 13px;
}

.settings-summary-grid span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.settings-summary-grid b {
  font-weight: 600;
  color: #0f172a;
}

.settings-form-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

@media (max-width: 960px) {
  .settings-form-wide {
    grid-template-columns: 1fr;
  }
}

.settings-form-wide .field-span-2 {
  grid-column: 1 / -1;
}

.settings-connection-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.settings-connection-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

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

.settings-connection-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.settings-conn-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px #ffffff;
}

.settings-conn-dot.is-on {
  background: #10b981;
}

.settings-conn-dot.is-off {
  background: #f59e0b;
}

.settings-connection-row small {
  color: #64748b;
}

.settings-conn-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.settings-conn-badge.is-on {
  background: #ecfdf5;
  color: #166534;
}

.settings-conn-badge.is-off {
  background: #fef2f2;
  color: #991b1b;
}

.settings-conn-badge.is-warn {
  background: #fffbeb;
  color: #92400e;
}

.settings-ca-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .settings-ca-grid {
    grid-template-columns: 1fr;
  }
}

.settings-ca-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-ca-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.settings-ca-card.is-active {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px #6366f1;
}

.settings-ca-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-ca-card-title {
  font-weight: 600;
  color: #0f172a;
}

.settings-ca-detail {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #fafbfc;
}

.settings-tab-strip-wrap {
  overflow-x: auto;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.settings-tab-strip-wrap .tab-strip {
  flex-wrap: nowrap;
  min-width: min-content;
}

.settings-matrix-dirty-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  color: #92400e;
}

.settings-matrix-dirty-banner.is-visible {
  display: flex;
}

.settings-footer-legal-grid {
  display: grid;
  grid-template-columns: minmax(200px, 220px) minmax(260px, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

@media (max-width: 1100px) {
  .settings-footer-legal-grid {
    grid-template-columns: 1fr;
  }
}

.settings-footer-preview-box {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.settings-footer-preview-col {
  min-width: 0;
}

.settings-footer-preview-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #334155;
  text-transform: uppercase;
}

.settings-footer-preview-col ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.settings-footer-preview-col li {
  font-size: 12px;
  color: #475569;
}

.settings-footer-preview-col a {
  color: #334155;
  text-decoration: none;
}

.settings-footer-preview-col a:hover {
  text-decoration: underline;
}

.settings-footer-preview-empty {
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .settings-footer-preview-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-footer-preview-box {
    grid-template-columns: 1fr;
  }
}

.settings-compliance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .settings-compliance-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .settings-compliance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.settings-compliance-kpi {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.settings-compliance-kpi span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.settings-compliance-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  color: #0f172a;
}

.settings-compliance-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .settings-compliance-panels {
    grid-template-columns: 1fr;
  }
}

.settings-contract-classic-section {
  margin-top: 20px;
}

.settings-contract-search {
  margin-bottom: 12px;
}

.settings-contract-search input {
  width: 100%;
  max-width: 420px;
}

/* Ana ekranı daha sakin ve kurumsal tut */
.card {
  border-radius: 14px;
  padding: 18px;
}

.hero-card {
  border-radius: 14px;
  padding: 18px;
}

.card-kicker {
  font-size: 11px;
  letter-spacing: .08em;
}

.card-title {
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.12;
}

.card-text {
  font-size: 14px;
  line-height: 1.58;
}

.dashboard-premium {
  gap: 18px;
}

.dashboard-premium-hero,
.dashboard-panel {
  border-radius: 16px;
  padding: 16px 18px;
}

.dashboard-panel-head {
  margin-bottom: 12px;
}

.dashboard-panel-head h3 {
  font-size: 19px;
}

.saas-area-chart,
.saas-insight-list,
.activity-feed,
.integration-health-grid,
.saas-top-products,
.saas-system-list,
.saas-donut-wrap {
  min-height: 180px;
}

@media (max-width: 1400px) {
  .page-body {
    padding: 24px 24px 30px !important;
  }
}

/* THIQ OS */
.thiq-os-shell {
  gap: 14px;
  width: min(1540px, calc(100vw - 64px));
  margin: 0 auto;
}

.thiq-os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 360px);
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 34%),
    linear-gradient(145deg, #020617 0%, #0f172a 52%, #111827 100%);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.34);
}

.thiq-os-hero--loading {
  grid-template-columns: 1fr;
}

.thiq-os-hero-main {
  min-width: 0;
}

.thiq-os-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thiq-os-hero-title {
  margin: 12px 0 8px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.thiq-os-hero-text {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.84);
}

.thiq-os-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.thiq-os-now-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(8, 15, 25, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
  width: fit-content;
  max-width: 100%;
}

.thiq-os-now-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.88);
}

.thiq-os-now-strip strong {
  font-size: 13px;
  color: #e2e8f0;
}

.thiq-os-now-refresh {
  margin-left: auto;
}

.thiq-os-hero-actions .secondary-action.dark,
.thiq-os-panel .secondary-action.dark {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

.thiq-os-hero-signal span,
.thiq-os-stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78);
}

.thiq-os-hero-signal strong {
  font-size: 18px;
  color: #f8fafc;
}

.thiq-os-hero-signal small {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.78);
}

.thiq-os-hero-side {
  display: grid;
  gap: 10px;
  align-self: stretch;
  min-width: 0;
}

.thiq-os-hero-visual {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 68% 32%, rgba(16, 185, 129, 0.22), transparent 34%),
    radial-gradient(circle at 38% 70%, rgba(14, 165, 233, 0.16), transparent 38%),
    linear-gradient(120deg, #04070c 0%, #09111b 58%, #0d1724 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.thiq-os-hero-visual--compact {
  min-height: 190px;
}

.thiq-os-hero-grid,
.thiq-os-hero-visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thiq-os-hero-grid {
  background-image:
    repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.04) 0px, rgba(16, 185, 129, 0.04) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(180deg, rgba(148, 163, 184, 0.035) 0px, rgba(148, 163, 184, 0.035) 1px, transparent 1px, transparent 56px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.88), rgba(0,0,0,0.22));
}

.thiq-os-hero-visual::after {
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(148, 163, 184, 0.14) 0, transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.24) 100%);
}

.thiq-os-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.9;
}

.thiq-os-hero-glow--primary {
  width: 180px;
  height: 180px;
  top: 28px;
  right: 34px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0.02) 72%, transparent 100%);
}

.thiq-os-hero-glow--secondary {
  width: 150px;
  height: 150px;
  left: 34px;
  bottom: 38px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.02) 72%, transparent 100%);
}

.thiq-os-hero-orb {
  position: absolute;
  top: 78px;
  right: 96px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), rgba(110, 231, 183, 0.18) 22%, rgba(5, 150, 105, 0.14) 54%, rgba(2, 6, 23, 0) 72%);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.12),
    0 0 34px rgba(16, 185, 129, 0.22);
}

.thiq-os-hero-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.2);
}

.thiq-os-hero-ring--one {
  top: 61px;
  right: 79px;
  width: 146px;
  height: 146px;
}

.thiq-os-hero-ring--two {
  top: 42px;
  right: 60px;
  width: 184px;
  height: 184px;
  border-color: rgba(56, 189, 248, 0.14);
}

.thiq-os-hero-node,
.thiq-os-hero-line {
  position: absolute;
  display: block;
  pointer-events: none;
}

.thiq-os-hero-node {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(167, 243, 208, 0.9);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.thiq-os-hero-node--a { top: 72px; left: 62px; }
.thiq-os-hero-node--b { top: 128px; left: 118px; }
.thiq-os-hero-node--c { right: 84px; bottom: 88px; }
.thiq-os-hero-node--d { right: 152px; bottom: 136px; }

.thiq-os-hero-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 183, 0.04), rgba(110, 231, 183, 0.42), rgba(110, 231, 183, 0.04));
  transform-origin: left center;
}

.thiq-os-hero-line--one {
  top: 76px;
  left: 66px;
  width: 134px;
  transform: rotate(26deg);
}

.thiq-os-hero-line--two {
  right: 90px;
  bottom: 98px;
  width: 126px;
  transform: rotate(-24deg);
}

.thiq-os-hero-console {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(6, 11, 19, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 5px;
}

.thiq-os-console-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.86);
}

.thiq-os-hero-console strong {
  font-size: 16px;
  color: #f8fafc;
}

.thiq-os-hero-console small {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.74);
}

.thiq-os-hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.thiq-os-stat {
  padding: 13px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  height: 100%;
}

.thiq-os-stat-value {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.05;
  color: #f8fafc;
}

.thiq-os-stat-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.7);
}

.thiq-os-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 2px;
}

.thiq-os-today-bar {
  margin-top: 2px;
}

.thiq-os-today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thiq-os-today-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-today-card[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.24); }
.thiq-os-today-card[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-today-card[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); }
.thiq-os-today-card[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-today-card[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.22); }

.thiq-os-today-rank {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.thiq-os-today-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thiq-os-today-copy strong {
  font-size: 15px;
  color: #0f172a;
}

.thiq-os-today-copy small {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.thiq-os-today-action {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.thiq-os-workspace-main--full {
  grid-column: 1 / -1;
}

.thiq-os-command-grid,
.thiq-os-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.thiq-os-priority-queue {
  display: grid;
  gap: 12px;
}

.thiq-os-priority-queue--compact .thiq-os-priority-card {
  padding: 14px;
}

.thiq-os-priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid #dbe4f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.thiq-os-priority-card[data-tone="orange"] {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 100%);
}

.thiq-os-priority-card[data-tone="green"] {
  border-color: rgba(34, 197, 94, 0.2);
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.thiq-os-priority-card[data-tone="red"] {
  border-color: rgba(239, 68, 68, 0.18);
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

.thiq-os-priority-card[data-tone="blue"] {
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.thiq-os-priority-card[data-tone="gray"] {
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.thiq-os-priority-rank {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
}

.thiq-os-priority-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.thiq-os-priority-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-priority-body strong {
  font-size: 18px;
  line-height: 1.2;
  color: #0f172a;
}

.thiq-os-priority-body small {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.thiq-os-priority-action {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

.thiq-os-panel {
  border-radius: 20px;
  border: 1px solid #dbe4f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.thiq-os-module-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.thiq-os-module-meta-item {
  padding: 12px 13px;
  border-radius: 14px;
  background: #f3f8fe;
  border: 1px solid #dce6f2;
  min-width: 0;
}

.thiq-os-module-meta-item span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-module-meta-item strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
}

.thiq-os-signal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.thiq-os-signal-chip {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dce6f2;
  color: #334155;
}

.thiq-os-signal-chip[data-tone="green"] {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: rgba(34, 197, 94, 0.22);
}

.thiq-os-signal-chip[data-tone="orange"] {
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
  border-color: rgba(245, 158, 11, 0.24);
}

.thiq-os-signal-chip[data-tone="red"] {
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.thiq-os-signal-chip[data-tone="blue"] {
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.thiq-os-signal-chip[data-tone="gray"] {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.22);
}

.thiq-os-signal-label {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.thiq-os-signal-detail {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.thiq-os-signal-action {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: #1e3a5f;
}

.thiq-os-panel--span-2 {
  grid-column: span 2;
}

.thiq-os-reco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thiq-os-reco-grid--compact {
  grid-template-columns: 1fr;
}

.thiq-os-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.thiq-os-stats-grid .task-summary-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
}

.thiq-os-mini-signal-list {
  display: grid;
  gap: 8px;
}

.thiq-os-mini-signal {
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-mini-signal span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.thiq-os-mini-signal[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.24); }
.thiq-os-mini-signal[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-mini-signal[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); }
.thiq-os-mini-signal[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-mini-signal[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.2); }

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

.thiq-os-card-cta-row {
  margin-top: 12px;
}

.thiq-os-decision-list {
  display: grid;
  gap: 10px;
}

.thiq-os-decision-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.thiq-os-decision-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-decision-item[data-tone="green"] {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: rgba(34, 197, 94, 0.22);
}

.thiq-os-decision-item[data-tone="orange"] {
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
  border-color: rgba(245, 158, 11, 0.24);
}

.thiq-os-decision-item[data-tone="red"] {
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
  border-color: rgba(239, 68, 68, 0.22);
}

.thiq-os-decision-item[data-tone="blue"] {
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  border-color: rgba(59, 130, 246, 0.2);
}

.thiq-os-decision-item[data-tone="gray"] {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(148, 163, 184, 0.22);
}

.thiq-os-decision-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.thiq-os-decision-confidence {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-decision-item strong {
  font-size: 15px;
  line-height: 1.25;
  color: #0f172a;
}

.thiq-os-decision-item small {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.thiq-os-decision-action {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.thiq-os-skill-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.thiq-os-skill-mini-card {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.thiq-os-skill-mini-card span {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.thiq-os-skill-mini-card strong {
  font-size: 15px;
  color: #0f172a;
}

.thiq-os-skill-mini-card[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.22); }
.thiq-os-skill-mini-card[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-skill-mini-card[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.22); }
.thiq-os-skill-mini-card[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-skill-mini-card[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.2); }

.thiq-os-command-input {
  min-height: 110px;
  margin-top: 4px;
}

.thiq-os-command-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.thiq-os-command-output {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.thiq-os-command-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dce6f2;
}

.thiq-os-command-result strong {
  font-size: 13px;
  color: #0f172a;
}

.thiq-os-command-result span {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.thiq-os-reco-card {
  display: grid;
  gap: 8px;
  min-height: 146px;
  padding: 16px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid #dbe4f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.thiq-os-reco-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.thiq-os-reco-card[data-tone="orange"] {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}

.thiq-os-reco-card[data-tone="green"] {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
}

.thiq-os-reco-card[data-tone="red"] {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, #fef2f2 0%, #fff7f7 100%);
}

.thiq-os-reco-card[data-tone="blue"] {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}

.thiq-os-reco-card[data-tone="gray"] {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.thiq-os-reco-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-reco-card strong {
  font-size: 17px;
  line-height: 1.25;
  color: #0f172a;
}

.thiq-os-reco-card small {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.thiq-os-reco-action {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  opacity: 0.78;
}

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

.thiq-os-panel .mini-list {
  gap: 8px;
}

.thiq-os-info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.thiq-os-info-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.thiq-os-info-row strong,
.thiq-os-narrative-row strong {
  display: block;
  margin: 0;
  color: #0f172a;
}

.thiq-os-info-main small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.thiq-os-info-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.thiq-os-narrative-row {
  display: grid;
  gap: 6px;
}

.thiq-os-narrative-row span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.thiq-os-detail-modal,
.thiq-os-radar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.thiq-os-detail-backdrop,
.thiq-os-radar-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.thiq-os-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 18px;
}

.thiq-os-detail-body {
  display: grid;
  gap: 14px;
}

.thiq-os-radar-results {
  display: grid;
  gap: 18px;
}

.thiq-os-radar-results-section {
  display: grid;
  gap: 12px;
}

.thiq-os-radar-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.thiq-os-radar-summary-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-radar-summary-card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-radar-summary-card strong {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
}

.thiq-os-radar-summary-card[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.24); }
.thiq-os-radar-summary-card[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-radar-summary-card[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); }
.thiq-os-radar-summary-card[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-radar-summary-card[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.22); }

.thiq-os-radar-summary-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thiq-os-radar-summary-inline span {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
}

.thiq-os-radar-priority-list {
  display: grid;
  gap: 10px;
}

.thiq-os-radar-priority-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-radar-priority-item[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.24); }
.thiq-os-radar-priority-item[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-radar-priority-item[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); }
.thiq-os-radar-priority-item[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-radar-priority-item[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.22); }

.thiq-os-radar-priority-rank {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
}

.thiq-os-radar-priority-item small,
.thiq-os-radar-priority-item span {
  display: block;
}

.thiq-os-radar-priority-item small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-radar-priority-item strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: #0f172a;
}

.thiq-os-radar-priority-item span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.thiq-os-radar-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thiq-os-radar-group {
  display: grid;
  gap: 10px;
}

.thiq-os-radar-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.thiq-os-radar-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.thiq-os-radar-action-card {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
}

.thiq-os-radar-action-card strong {
  font-size: 13px;
  color: #0f172a;
}

.thiq-os-radar-action-card span {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.thiq-os-radar-action-card[data-tone="green"] { background: #ecfdf5; border-color: rgba(34, 197, 94, 0.24); }
.thiq-os-radar-action-card[data-tone="orange"] { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); }
.thiq-os-radar-action-card[data-tone="red"] { background: #fef2f2; border-color: rgba(239, 68, 68, 0.2); }
.thiq-os-radar-action-card[data-tone="blue"] { background: #eff6ff; border-color: rgba(59, 130, 246, 0.2); }
.thiq-os-radar-action-card[data-tone="gray"] { background: #f1f5f9; border-color: rgba(148, 163, 184, 0.22); }

.thiq-os-radar-surface {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  min-height: min(820px, calc(100vh - 32px));
  margin: 16px auto;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.18), transparent 32%),
    radial-gradient(circle at 70% 40%, rgba(56, 189, 248, 0.14), transparent 38%),
    linear-gradient(145deg, #020617 0%, #08111e 52%, #0a1322 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 96px rgba(2, 6, 23, 0.5);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.thiq-os-radar-surface--results {
  display: block;
  padding: 28px;
  overflow: auto;
}

.thiq-os-radar-results-modal {
  display: grid;
  gap: 18px;
}

.thiq-os-radar-results-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
}

.thiq-os-radar-results-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.thiq-os-radar-results-column {
  display: grid;
  gap: 12px;
}

.thiq-os-radar-visual {
  position: relative;
  width: min(560px, 68vw);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.11) 0%, rgba(2, 6, 23, 0) 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.88));
  box-shadow:
    inset 0 0 72px rgba(15, 23, 42, 0.4),
    0 0 0 1px rgba(110, 231, 183, 0.06);
}

.thiq-os-radar-ring,
.thiq-os-radar-sweep,
.thiq-os-radar-dot {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

.thiq-os-radar-ring {
  border: 1px solid rgba(110, 231, 183, 0.18);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.03);
  animation: thiqRadarPulse 2.8s ease-in-out infinite;
}

.thiq-os-radar-ring--one { width: 38%; height: 38%; }
.thiq-os-radar-ring--two { width: 64%; height: 64%; animation-delay: 0.24s; }
.thiq-os-radar-ring--three { width: 90%; height: 90%; animation-delay: 0.48s; }

.thiq-os-radar-sweep {
  width: 100%;
  height: 100%;
  background:
    conic-gradient(from 180deg,
      rgba(16,185,129,0) 0deg,
      rgba(16,185,129,0.025) 246deg,
      rgba(16,185,129,0.14) 292deg,
      rgba(52,211,153,0.42) 322deg,
      rgba(110,231,183,0.12) 336deg,
      rgba(16,185,129,0) 360deg);
  animation: thiqRadarSweep 2.9s linear infinite;
  mask-image: radial-gradient(circle at center, transparent 0 16%, rgba(0,0,0,1) 21%);
  filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.16));
}

.thiq-os-radar-dot {
  width: 14px;
  height: 14px;
  box-shadow:
    0 0 18px currentColor,
    0 0 0 6px color-mix(in srgb, currentColor 14%, transparent);
  animation: thiqRadarDot 2.1s ease-in-out infinite;
}

.thiq-os-radar-dot--green { color: #4ade80; top: 32%; left: 68%; }
.thiq-os-radar-dot--orange { color: #f59e0b; top: 66%; left: 62%; animation-delay: 0.24s; }
.thiq-os-radar-dot--red { color: #ef4444; top: 54%; left: 26%; animation-delay: 0.42s; }
.thiq-os-radar-dot--blue { color: #38bdf8; top: 22%; left: 40%; animation-delay: 0.58s; }

.thiq-os-radar-copy {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 40px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(5, 10, 18, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 10px;
}

.thiq-os-radar-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.9);
}

.thiq-os-radar-copy h3 {
  margin: 0;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.thiq-os-radar-highlight {
  margin: -2px 0 2px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.thiq-os-radar-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.thiq-os-radar-brief-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 18, 31, 0.78);
}

.thiq-os-radar-brief-card span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.72);
}

.thiq-os-radar-brief-card strong {
  font-size: 24px;
  line-height: 1;
  color: #f8fafc;
}

.thiq-os-radar-brief-card[data-tone="green"] { border-color: rgba(34, 197, 94, 0.28); background: rgba(6, 35, 23, 0.72); }
.thiq-os-radar-brief-card[data-tone="orange"] { border-color: rgba(245, 158, 11, 0.28); background: rgba(49, 29, 7, 0.72); }
.thiq-os-radar-brief-card[data-tone="red"] { border-color: rgba(239, 68, 68, 0.26); background: rgba(49, 14, 18, 0.72); }
.thiq-os-radar-brief-card[data-tone="blue"] { border-color: rgba(59, 130, 246, 0.24); background: rgba(11, 27, 54, 0.72); }

.thiq-os-radar-lines {
  display: grid;
  gap: 4px;
}

.thiq-os-radar-lines span {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.8);
}

@keyframes thiqRadarSweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes thiqRadarPulse {
  0%, 100% { opacity: 0.34; transform: translate(-50%, -50%) scale(0.982); }
  50% { opacity: 0.96; transform: translate(-50%, -50%) scale(1.01); }
}

@keyframes thiqRadarDot {
  0%, 100% { opacity: 0.36; transform: translate(-50%, -50%) scale(0.82); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}

@media (max-width: 1440px) {
  .thiq-os-top-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .thiq-os-orientation {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  .thiq-os-hero,
  .thiq-os-workspace,
  .thiq-os-today-grid,
  .thiq-os-command-grid,
  .thiq-os-grid,
  .thiq-os-reco-grid,
  .thiq-os-subcolumns {
    grid-template-columns: 1fr;
  }

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

  .thiq-os-panel--span-2 {
    grid-column: auto;
  }

  .thiq-os-info-row {
    grid-template-columns: 1fr;
  }

  .thiq-os-info-value {
    justify-content: flex-start;
    text-align: left;
  }

  .thiq-os-priority-card,
  .thiq-os-module-meta {
    grid-template-columns: 1fr;
  }

  .thiq-os-priority-action {
    text-align: left;
  }

  .thiq-os-radar-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .thiq-os-radar-brief-grid,
  .thiq-os-radar-summary-inline,
  .thiq-os-radar-results-columns,
  .thiq-os-radar-group-grid,
  .thiq-os-radar-priority-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .thiq-os-hero-kpis,
  .thiq-os-skill-mini-grid,
  .thiq-os-command-actions,
  .thiq-os-create-grid {
    grid-template-columns: 1fr;
  }

  .thiq-os-hero {
    padding: 18px;
  }

  .thiq-os-hero-title {
    font-size: 28px;
  }

  .thiq-os-hero-visual {
    min-height: 240px;
  }

  .thiq-os-shell {
    width: calc(100vw - 28px);
  }

  .thiq-os-radar-copy h3 {
    font-size: 24px;
  }
}

@media (max-width: 992px) {
  .utility-bar {
    grid-template-columns: auto 1fr auto;
    height: auto;
    padding: 10px 20px;
  }
  .main-nav-row {
    display: none;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border: 1px solid #cfe0ff;
    border-radius: 12px;
    background: #eff4ff;
    color: #1e40af;
    align-items: center;
    justify-content: center;
    font-weight: 800;
  }
  .mega-menu { display: none !important; }
  .page-body {
    padding: 20px !important;
  }
  .topbar-profile-name {
    display: none;
  }
  .topbar-quick-menu {
    min-width: 280px;
    max-width: 300px;
    right: -8px;
  }
}

@media (max-width: 640px) {
  .page-body {
    padding: 16px !important;
  }
}

@media (max-width: 1280px) {
  .integration-shelf-grid,
  .provider-catalog-grid,
  .health-summary-grid,
  .health-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .setup-mission-screen,
  .setup-complete-screen {
    padding: 26px;
  }

  .setup-scene-shell,
  .setup-option-grid {
    grid-template-columns: 1fr;
  }

  .health-hero,
  .health-widget-row {
    grid-template-columns: 1fr;
  }
}

/* Ürün Havuzu: masaüstü tablo / mobil kart görünümü */
.product-hub-mobile-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.product-hub-mobile-card {
  padding: 14px 16px;
  margin: 0;
  text-align: left;
}

.product-hub-mobile-card--active {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 0;
}

@media (max-width: 900px) {
  .product-hub-desktop {
    display: none !important;
  }

  .product-hub-mobile-list {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .product-edit-modal-shell {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    min-height: 100vh;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .product-edit-modal-top {
    flex-direction: column !important;
  }
}

/* Premium polish restore layer */
.card {
  border-radius: 18px;
  padding: 24px;
}

.table-wrap,
.finance-table-wrap,
.crm-table-wrap {
  border-radius: 16px;
  overflow: auto;
}

#productsListBox .table-wrap {
  max-height: 72vh;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line-soft);
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

#productsListBox .products-table {
  min-width: 1480px;
  width: max-content;
}

#productsListBox .products-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
}

#bundleStudioModuleRoot {
  width: 100%;
}

#productsModuleRoot,
#productsModuleRoot .module-stack,
#productsModuleRoot .card {
  max-width: 100%;
  overflow-x: hidden;
}

#productsListBox .table-wrap::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

#productsListBox .table-wrap::-webkit-scrollbar-track {
  background: #e7edf6;
  border-radius: 999px;
}

#productsListBox .table-wrap::-webkit-scrollbar-thumb {
  background: #9aa7bb;
  border-radius: 999px;
  border: 2px solid #e7edf6;
}

.products-table th,
.products-table td,
.finance-table th,
.finance-table td {
  padding: 14px 12px;
}

.module-empty {
  border-style: solid;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  color: #475569;
}

.channel-polish-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dce6f4;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.channel-polish-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.channel-polish-title {
  margin: 4px 0 0;
  font-size: 20px;
  color: #0f172a;
}

.task-table-row,
.crm-row,
.finance-audit-item,
.task-row,
.task-summary-card,
.record-stat-card {
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.task-table-row:hover,
.crm-row:hover,
.task-row:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-metric-grid {
  gap: 18px;
}

.executive-metric-card {
  padding: 20px;
  border: 1px solid #e2eaf4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* Dashboard hero content refinement */
.dashboard-overview-top {
  gap: 12px;
}

.dashboard-overview-card {
  padding: 16px 18px;
  border-radius: 14px;
}

.dashboard-overview-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(34px, 2.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.dashboard-overview-card p {
  margin: 0;
  max-width: 860px;
  color: #64748b;
  line-height: 1.5;
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dashboard-overview-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #eef4ff;
  color: #1d4ed8;
  border: 1px solid #dce7ff;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}

.dashboard-info-chip .chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.dashboard-info-chip:hover {
  background: #e1edff;
  border-color: #c7dbff;
  color: #1e40af;
  transform: translateY(-1px);
}

.mini-health-panel {
  display: grid;
  gap: 10px;
}

.mini-ops-compact {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1px minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}

.mini-ops-health,
.mini-ops-timeline {
  display: grid;
  gap: 8px;
}

.mini-ops-divider {
  width: 1px;
  height: 100%;
  background: #e6eaf2;
}

.mini-ops-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-ops-meta span {
  font-size: 12px;
  color: #334155;
  background: #f8fbff;
  border: 1px solid #e6eefc;
  border-radius: 999px;
  padding: 5px 10px;
}

.mini-health-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.mini-dot.ok { background: #22c55e; }
.mini-dot.warn { background: #f59e0b; }
.mini-dot.bad { background: #ef4444; }

.mini-timeline {
  display: grid;
  gap: 8px;
}

.mini-timeline-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.mini-timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  align-items: start;
}

.mini-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 5px;
  background: #3b82f6;
}

.mini-timeline-item p {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

@media (max-width: 1080px) {
  .mini-ops-compact {
    grid-template-columns: 1fr;
  }
  .mini-ops-divider {
    display: none;
  }
  .mini-timeline-inline {
    grid-template-columns: 1fr;
  }
}

/* Ultra SaaS balanced visual tuning */
:root {
  --bg: #eef3f9;
  --bg-soft: #f2f6fb;
  --panel: #f6f9fe;
  --panel-2: #f1f5fb;
  --text: #0f172a;
  --text-soft: #586a84;
  --line: #d9e3f0;
  --line-soft: #e4ecf6;
}

body {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.04), transparent 26%),
    linear-gradient(180deg, #eef3f9 0%, #eaf1f8 100%);
}

.card,
.dashboard-panel,
.source-card,
.mapping-panel,
.task-summary-card,
.dashboard-task-card,
.workspace-list > .card,
.workspace-detail > .task-detail-card {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  border-color: #dbe5f1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.module-input,
.module-select,
.module-textarea,
.task-table-row,
.mini-list-row {
  background: #f3f8fe;
  border-color: #dce6f2;
}

.top-shell,
.utility-bar,
.main-nav-row,
.mega-menu-panel,
.topbar-profile-menu,
.topbar-quick-menu {
  background: #f3f8fe;
  border-color: #dce6f2;
}

/* Dashboard compact baseline tuning */
.dashboard-premium {
  gap: 10px !important;
}

.dashboard-overview-card {
  padding: 12px 14px !important;
}

.dashboard-overview-card h2 {
  font-size: clamp(26px, 1.8vw, 34px) !important;
  margin: 0 0 4px !important;
}

.dashboard-overview-card p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
}

.dashboard-premium-hero,
.dashboard-panel {
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

.dashboard-panel-head h3 {
  font-size: 21px !important;
}

.dashboard-panel-kicker {
  font-size: 10px !important;
}

.dashboard-grid {
  gap: 10px !important;
}

.executive-metric-card {
  padding: 8px 10px !important;
}

.executive-metric-value {
  font-size: 22px !important;
}

.saas-mini-chart {
  height: 160px !important;
}

.saas-mini-bar span {
  font-size: 10px !important;
}

.activity-feed,
.activity-timeline {
  gap: 8px !important;
}

.task-fast-chips .tab-chip {
  cursor: pointer;
}

/* Dashboard density + spacing refinement */
.dashboard-premium {
  gap: 14px;
}

.dashboard-overview-top {
  grid-template-columns: 1fr;
  gap: 10px;
}

.dashboard-overview-card {
  padding: 14px 16px;
  border-radius: 12px;
}

.dashboard-overview-card h2 {
  margin: 2px 0 6px;
  font-size: clamp(34px, 2.2vw, 46px);
}

.dashboard-overview-card p {
  margin-bottom: 8px;
}

.dashboard-metric-grid {
  gap: 10px;
}

.dashboard-overview-signals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.overview-signal-chip {
  min-height: 52px;
  padding: 8px 10px;
}

.dashboard-premium-hero {
  padding: 14px 16px;
  border-radius: 14px;
}

.dashboard-hero-copy h2 {
  font-size: 22px;
  margin: 4px 0 6px;
}

.dashboard-hero-copy p {
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-grid {
  gap: 12px;
}

.dashboard-panel {
  border-radius: 14px;
  padding: 14px;
}

.dashboard-panel-head {
  margin-bottom: 10px;
}

.dashboard-panel-head h3 {
  font-size: 19px;
}

.saas-area-chart,
.saas-insight-list,
.activity-feed,
.integration-health-grid,
.saas-top-products,
.saas-system-list,
.saas-donut-wrap {
  min-height: 170px;
}

.saas-area-chart {
  height: 190px;
}

.saas-donut-wrap {
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.saas-donut {
  width: 140px;
  height: 140px;
}

@media (max-width: 1180px) {
  .dashboard-overview-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-overview-signals {
    grid-template-columns: 1fr;
  }
}

/* Settings revamp */
.settings-page-head {
  margin-bottom: 16px;
}

.settings-page-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text-strong);
}

.settings-page-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.5;
}

.settings-two-col {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .settings-two-col {
    grid-template-columns: 1fr;
  }
}

.settings-three-col {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 1000px) {
  .settings-three-col {
    grid-template-columns: 1fr;
  }
}

.settings-side-list {
  border: 1px solid rgba(132, 147, 176, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  max-height: 420px;
  overflow: auto;
}

.settings-side-list button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(132, 147, 176, 0.12);
  cursor: pointer;
  font-size: 13px;
}

.settings-side-list button:hover {
  background: rgba(59, 130, 246, 0.06);
}

.settings-side-list button.active {
  background: rgba(59, 130, 246, 0.1);
  font-weight: 600;
}

.settings-perm-matrix-wrap {
  overflow: auto;
  max-height: min(62vh, 560px);
  border: 1px solid rgba(132, 147, 176, 0.22);
  border-radius: 12px;
}

.settings-perm-matrix {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

.settings-perm-matrix th,
.settings-perm-matrix td {
  border: 1px solid rgba(132, 147, 176, 0.18);
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}

.settings-perm-matrix th:first-child,
.settings-perm-matrix td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f8fafc;
  z-index: 1;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.settings-overlay.hidden {
  display: none;
}

.settings-overlay-panel {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.settings-overlay-panel.wide {
  max-width: 520px;
}

.settings-doc-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-doc-summary-card {
  border: 1px solid rgba(132, 147, 176, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

/* Ayarlar — uyumluluk (sözleşme, rol, belge) sleek dark SaaS */
.settings-gov-page-intro {
  margin-bottom: 18px;
}

.settings-gov-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 6px;
}

.settings-gov-page-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong, #0f172a);
  letter-spacing: -0.02em;
}

.settings-gov-page-lead {
  margin: 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
}

.settings-gov-sleek {
  background: linear-gradient(165deg, #0f172a 0%, #0b1220 48%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 20px 20px 22px;
  color: #cbd5e1;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.settings-gov-toolbar--filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 4px;
}

.settings-gov-toolbar--stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-gov-chip {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.settings-gov-chip:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.75);
}

.settings-gov-chip.is-active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.55);
  color: #f8fafc;
}

.settings-gov-split {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-gov-split--docs {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

@media (max-width: 960px) {
  .settings-gov-split,
  .settings-gov-split--docs {
    grid-template-columns: 1fr;
  }
}

.settings-gov-aside {
  min-width: 0;
}

.settings-gov-aside--roles .settings-gov-scroll-list {
  max-height: min(52vh, 420px);
}

.settings-gov-aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-gov-aside-head--sub {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.settings-gov-aside-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.settings-gov-aside-meta {
  font-size: 11px;
  color: #64748b;
}

.settings-gov-scroll-list {
  max-height: min(40vh, 360px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.35);
}

.settings-gov-scroll-list--short {
  max-height: min(28vh, 220px);
}

.settings-gov-list-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}

.settings-gov-list-card:last-child {
  border-bottom: none;
}

.settings-gov-list-card:hover {
  background: rgba(51, 65, 85, 0.35);
}

.settings-gov-list-card.is-active {
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 3px 0 0 #3b82f6;
}

.settings-gov-list-card--dense {
  padding: 10px 12px;
}

.settings-gov-list-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
}

.settings-gov-list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.settings-gov-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(51, 65, 85, 0.65);
  color: #cbd5e1;
}

.settings-gov-tag--muted {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

.settings-gov-tag--ok {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

.settings-gov-tag--warn {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
}

.settings-gov-list-card-meta {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
}

.settings-gov-main {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 16px 18px 18px;
  background: rgba(15, 23, 42, 0.4);
}

.settings-gov-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.settings-gov-detail-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.settings-gov-detail-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
}

.settings-gov-detail-desc code {
  font-size: 12px;
  color: #cbd5e1;
}

.settings-gov-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.settings-gov-meta-row em {
  display: block;
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

.settings-gov-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.settings-gov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.settings-gov-btn:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(51, 65, 85, 0.75);
}

.settings-gov-btn--primary {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.5);
  color: #f8fafc;
}

.settings-gov-btn--primary:hover {
  background: rgba(59, 130, 246, 0.4);
}

.settings-gov-btn--ghost {
  background: transparent;
}

.settings-gov-aside-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.settings-gov-hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 0;
  line-height: 1.5;
}

.settings-gov-hint-inline {
  font-size: 11px;
  color: #64748b;
  align-self: center;
}

.settings-gov-empty {
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.settings-gov-empty p {
  margin: 0 0 12px;
}

.settings-gov-empty--compact {
  padding: 12px;
  font-size: 12px;
}

.settings-gov-empty--inline {
  text-align: left;
  padding: 14px 0 0;
}

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

@media (max-width: 1100px) {
  .settings-gov-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .settings-gov-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.settings-gov-kpi {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 12px 12px 10px;
  background: rgba(15, 23, 42, 0.45);
}

.settings-gov-kpi-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.settings-gov-kpi-val {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
}

.settings-gov-reader-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .settings-gov-reader-wrap {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    align-items: start;
  }
}

.settings-gov-accept-block {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.35);
  max-height: 280px;
  overflow: auto;
}

.settings-gov-accept-text {
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.settings-gov-md-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 16px 18px;
  background: #020617;
  min-height: 200px;
  max-height: min(58vh, 520px);
  overflow: auto;
  font-size: 14px;
  line-height: 1.65;
  color: #e2e8f0;
}

.gov-md-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 720px) {
  .gov-md-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .gov-md-toc {
    position: sticky;
    top: 8px;
    flex: 0 0 200px;
  }
}

.gov-md-toc {
  font-size: 12px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.85);
}

.gov-md-toc-title {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.gov-md-toc ul {
  margin: 0;
  padding: 0 0 0 16px;
  color: #93c5fd;
}

.gov-md-toc a {
  color: #93c5fd;
  text-decoration: none;
}

.gov-md-toc a:hover {
  text-decoration: underline;
}

.gov-md-body {
  flex: 1;
  min-width: 0;
}

.gov-md-h {
  margin: 1.1em 0 0.45em;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.gov-md-h1 {
  font-size: 1.35rem;
}

.gov-md-h2 {
  font-size: 1.15rem;
}

.gov-md-h3 {
  font-size: 1.02rem;
}

.gov-md-p {
  margin: 0 0 0.75em;
  color: #cbd5e1;
}

.gov-md-p.gov-md-muted {
  color: #64748b;
  font-style: italic;
}

.gov-md-body ul {
  margin: 0 0 0.85em 1.2em;
  color: #cbd5e1;
}

.gov-md-body li {
  margin-bottom: 0.35em;
}

.settings-gov-versions {
  margin-bottom: 14px;
}

.settings-gov-subblock-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.settings-gov-version-table-wrap {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.settings-gov-version-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #cbd5e1;
}

.settings-gov-version-table th,
.settings-gov-version-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.settings-gov-version-table th {
  color: #94a3b8;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
}

.settings-gov-contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.settings-gov-legacy-sep {
  border: none;
  border-top: 1px solid rgba(132, 147, 176, 0.2);
  margin: 28px 0 20px;
}

.settings-gov-legacy-head {
  margin-bottom: 10px;
}

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

@media (max-width: 640px) {
  .settings-gov-detail-grid {
    grid-template-columns: 1fr;
  }
}

.settings-gov-dl {
  font-size: 12px;
  color: #94a3b8;
}

.settings-gov-dl span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.settings-gov-dl b {
  font-weight: 600;
  color: #e2e8f0;
}

.settings-gov-dl--full {
  grid-column: 1 / -1;
}

.settings-gov-callout {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
  margin-bottom: 12px;
}

.settings-gov-callout--warn {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fef08a;
}

.settings-gov-preview-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #020617;
  min-height: 220px;
}

.settings-gov-preview-frame iframe {
  width: 100%;
  min-height: 240px;
  border: none;
  background: #fff;
}

.settings-gov-subblock {
  margin-top: 12px;
}

.settings-gov-bullet {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.settings-gov-matrix-wrap {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.35);
}

.settings-gov-perm-matrix {
  font-size: 11px;
}

.settings-gov-perm-matrix th,
.settings-gov-perm-matrix td {
  border-color: rgba(51, 65, 85, 0.75);
  color: #cbd5e1;
}

.settings-gov-perm-matrix thead th {
  background: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  font-weight: 600;
}

.settings-gov-perm-matrix.settings-perm-matrix th:first-child,
.settings-gov-perm-matrix.settings-perm-matrix td:first-child {
  background: #0f172a !important;
}

.settings-gov-matrix-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0f172a !important;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

.settings-gov-matrix-mod {
  min-width: 132px;
  max-width: 200px;
  vertical-align: middle;
}

.settings-gov-matrix-mod-label {
  display: block;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 12px;
}

.settings-gov-matrix-mod-key {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.settings-gov-scope-select {
  width: 100%;
  max-width: 140px;
  font-size: 10px;
  padding: 4px 6px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

@media print {
  body.settings-gov-print-mode * {
    visibility: hidden;
  }

  body.settings-gov-print-mode #govContractMdPreview.is-print-target,
  body.settings-gov-print-mode #govContractMdPreview.is-print-target * {
    visibility: visible;
  }

  body.settings-gov-print-mode #govContractMdPreview.is-print-target {
    position: absolute;
    left: 0;
    top: 0;
    max-height: none;
    width: 100%;
    background: #fff !important;
    color: #0f172a !important;
    border: none !important;
    padding: 24px !important;
  }
}

.settings-shell .tab-strip {
  gap: 8px;
}

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

.settings-connection-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.settings-connection-card strong {
  display: block;
  font-size: 13px;
}

.settings-connection-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.settings-connection-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef4ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.settings-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-editor {
  min-height: 220px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin-top: 8px;
  line-height: 1.6;
}

.field-validation {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

.field-validation.ok {
  color: #16a34a;
}

.field-validation.error {
  color: #dc2626;
}

.module-input.is-valid,
.module-select.is-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.15);
}

.module-input.is-invalid,
.module-select.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

/* Sources preview compact + responsive modal */
.preview-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  padding-bottom: 6px;
  scrollbar-gutter: stable both-edges;
  max-height: 640px;
}

.preview-table-wrap.preview-table-wrap-scrolled {
  overflow-y: auto !important;
  border: 1px solid #dce3ec;
  border-radius: 12px;
}

.preview-compact-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

.preview-compact-table th,
.preview-compact-table td {
  font-size: 11px;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  min-width: 110px;
}

.preview-compact-table th:first-child,
.preview-compact-table td:first-child {
  min-width: 56px;
}

.preview-click-row {
  cursor: pointer;
}

.preview-click-row:hover {
  background: #f4f8ff;
}

.preview-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #dce3ec;
  background: #fff;
  display: block;
}

.preview-thumb-empty {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  color: #94a3b8;
}

.preview-cell-clip {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 14px;
}

.preview-modal {
  width: min(1140px, 100%);
  max-height: 88vh;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
  display: grid;
  grid-template-rows: auto 1fr;
}

.preview-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #e6eaf2;
}

.preview-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
}

.preview-modal-body {
  overflow: auto;
  padding: 12px;
}

.preview-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
}

.preview-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.preview-detail-tab {
  border: 1px solid #dce3ec;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  padding: 6px 10px;
}

.preview-detail-tab.active {
  background: #eaf1ff;
  border-color: #cbdafc;
  color: #1d4ed8;
}

.preview-detail-pane.hidden {
  display: none;
}

.mapping-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.mapping-panel {
  border: 1px solid #dfe6f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 12px;
  min-height: 100%;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.mapping-panel.table-wrap {
  max-height: 680px;
  overflow: auto;
}

.mapping-panel.table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fbff;
}

.mapping-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mapping-panel-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.mapping-panel-badge {
  border: 1px solid #dbe6ff;
  background: #edf3ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.mapping-side {
  display: grid;
  gap: 10px;
}

.mapping-status-list .mini-list-row.ok {
  border-color: rgba(22, 163, 74, 0.26);
  background: #f0fdf4;
}

.mapping-status-list .mini-list-row.warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
}

.mapping-dictionary {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.mapping-dictionary .mini-list-row span {
  color: #334155;
  font-size: 12px;
}

.mapping-source-head {
  font-weight: 600;
  color: #0f172a;
}

.mapping-source-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
}

.source-loading-panel {
  margin-top: 10px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 12px;
  padding: 10px 12px;
}

.source-loading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #166534;
}

.source-loading-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.14);
  overflow: hidden;
}

.source-loading-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width .24s ease;
}

.profile-manager-list {
  display: grid;
  gap: 10px;
}

.profile-manager-card {
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 12px;
  display: grid;
  gap: 10px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  cursor: pointer;
}

.profile-manager-card:hover {
  border-color: #d5e3ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.profile-manager-card.active {
  border-color: #bfd4ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12), 0 10px 22px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.profile-manager-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-manager-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.profile-manager-meta {
  font-size: 12px;
  color: #64748b;
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  border-radius: 999px;
  padding: 4px 8px;
}

.profile-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1080px) {
  .mapping-split {
    grid-template-columns: 1fr;
  }
  .mapping-panel.table-wrap {
    max-height: none;
    overflow: visible;
  }
}

body[data-dashboard-density="comfortable"] .dashboard-premium {
  gap: 20px;
}

body[data-dashboard-density="comfortable"] .dashboard-panel {
  padding: 16px;
}

body[data-dashboard-density="standard"] .dashboard-premium {
  gap: 14px;
}

body[data-dashboard-density="standard"] .dashboard-panel {
  padding: 13px;
}

body[data-dashboard-density="compact"] .dashboard-premium {
  gap: 10px;
}

body[data-dashboard-density="compact"] .dashboard-panel {
  padding: 10px;
}

body[data-dashboard-density="compact"] .executive-metric-card {
  padding: 8px;
}

.preview-modal-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-modal-image {
  border: 1px solid #dce3ec;
  border-radius: 10px;
  overflow: hidden;
  min-height: 120px;
  background: #f8fafc;
}

.preview-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contract-list-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.contract-list-item strong {
  color: var(--text);
  font-size: 13px;
}

.contract-list-item small {
  color: var(--text-soft);
  font-size: 12px;
}

.contract-list-item.active {
  border-color: #5b92ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
}

@media (max-width: 1180px) {
  .settings-connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .settings-connection-grid {
    grid-template-columns: 1fr;
  }
  .preview-modal-grid {
    grid-template-columns: 1fr;
  }
  .preview-modal-images {
    grid-template-columns: 1fr;
  }
}

.contracts-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #dce3ec;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.contracts-sidebar {
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  max-height: 72vh;
  overflow: auto;
}

.contracts-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.contracts-editor-pane {
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  min-height: 72vh;
  display: grid;
  gap: 10px;
}

.settings-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  background: #f8fbff;
  margin-top: 10px;
}

.contract-editor-resize-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

/* Sözleşme: yazı alanı dikey resize (varsayılan boyut korunur, kullanıcı aşağı çeker) */
.contract-editor-resize-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 8px;
  min-height: 280px;
  height: clamp(320px, 48vh, 520px);
  max-height: min(85vh, 920px);
  resize: vertical;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.contract-editor-resize-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}

.contract-editor-resize-wrap:focus-within::after {
  opacity: 0.35;
}

.contract-editor-resize-wrap .contract-editor-inner {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  max-height: none;
  box-shadow: none;
}

.contract-editor-resize-wrap textarea.contract-editor-inner {
  resize: none;
  width: 100%;
  min-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.contract-editor-resize-wrap .ck.ck-editor {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  border: 0 !important;
  box-shadow: none !important;
}

.contract-editor-resize-wrap .ck-editor__top {
  flex-shrink: 0;
}

.contract-editor-resize-wrap .ck-editor__main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column;
}

.contract-editor-resize-wrap .ck.ck-editor__editable,
.contract-editor-resize-wrap .ck.ck-editor__editable_inline,
.contract-editor-resize-wrap .ck-content.ck-editor__editable {
  flex: 1 1 auto;
  min-height: 200px !important;
  max-height: none !important;
  overflow-y: auto !important;
}

.contracts-toolbar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contracts-toolbar-grid .secondary-action {
  white-space: nowrap;
  min-height: 34px;
}

.contract-premium-scan {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contract-premium-scan::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  padding: 2px;
  background: conic-gradient(from var(--scan-angle, 0deg), rgba(37, 99, 235, 0) 0deg, rgba(59, 130, 246, .98) 78deg, rgba(37, 99, 235, 0) 180deg, rgba(37, 99, 235, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderScanFinal 4.8s linear infinite, borderBlinkFinal 6.8s ease-in-out infinite;
}

.contract-premium-scan::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 4%, rgba(59, 130, 246, 0.14), transparent 42%);
  z-index: -1;
}

@media (max-width: 980px) {
  .contracts-layout {
    grid-template-columns: 1fr;
  }
  .contracts-sidebar,
  .contracts-editor-pane {
    min-height: auto;
    max-height: none;
  }
}

.bundle-studio-card {
  border: 1px solid #dce3ec;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

@media (max-width: 980px) {
  .bundle-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================================
   CRM + B2B ticari konsol (gerçek DOM: #customersModuleRoot / #b2bModuleRoot)
   Önceki düzen neden yetersiz kaldı:
   - .finance-provider-layout tek/çift sınıf ile gelen kurallar (ör. 1.2fr 0.8fr)
     bazı yükleme sıralarında öncelik veya geniş taşma ile istenen görünümü vermedi.
   - .crm-section-rail üzerinde sticky + max-height sağ paneli akıştan koparıyordu.
   Bu blok: modül kökü ID + .commercial-console ile bağlanır; sağ sütun tamamen
   normal belge akışındadır (position: static).
   ================================================================== */

#customersModuleRoot .commercial-console,
#b2bModuleRoot .commercial-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1440px) {
  #customersModuleRoot .commercial-console,
  #b2bModuleRoot .commercial-console {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.75rem;
  }
}

#customersModuleRoot .commercial-console .crm-console-main,
#b2bModuleRoot .commercial-console .crm-console-main {
  min-width: 0;
  max-width: 100%;
}

#customersModuleRoot .commercial-console .crm-console-main > .finance-report-shell,
#b2bModuleRoot .commercial-console .crm-console-main > .finance-report-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#customersModuleRoot .commercial-console .crm-console-side,
#b2bModuleRoot .commercial-console .crm-console-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  align-self: start;
  height: fit-content;
  max-height: none;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#customersModuleRoot .commercial-console .crm-console-side > *,
#b2bModuleRoot .commercial-console .crm-console-side > * {
  flex-grow: 0;
  flex-shrink: 1;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#customersModuleRoot .commercial-console .crm-section-rail,
#b2bModuleRoot .commercial-console .crm-section-rail {
  position: static;
  top: auto;
  bottom: auto;
  max-height: none;
  overflow: visible;
  z-index: auto;
}

#customersModuleRoot .commercial-console .crm-console-side .record-detail-grid,
#b2bModuleRoot .commercial-console .crm-console-side .record-detail-grid,
#customersModuleRoot .commercial-console .crm-console-side .record-lower-grid,
#b2bModuleRoot .commercial-console .crm-console-side .record-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

#customersModuleRoot .commercial-console .crm-console-side .record-stat-grid,
#b2bModuleRoot .commercial-console .crm-console-side .record-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  #customersModuleRoot .commercial-console,
  #b2bModuleRoot .commercial-console {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  #customersModuleRoot .commercial-console .crm-console-side .record-stat-grid,
  #b2bModuleRoot .commercial-console .crm-console-side .record-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* CRM/B2B detay: geniş ana kart ızgarası, sağ ray yalnızca rehber + kısa özet */
#customersModuleRoot .crm-detail-workspace,
#b2bModuleRoot .crm-detail-workspace {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#customersModuleRoot .crm-detail-header,
#b2bModuleRoot .crm-detail-header {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 18px rgba(15, 23, 42, 0.04);
}

#customersModuleRoot .crm-detail-header-main,
#b2bModuleRoot .crm-detail-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

#customersModuleRoot .crm-detail-identity,
#b2bModuleRoot .crm-detail-identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

#customersModuleRoot .crm-detail-avatar,
#b2bModuleRoot .crm-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
}

#customersModuleRoot .crm-detail-title,
#b2bModuleRoot .crm-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #0b1f33;
  line-height: 1.2;
}

#customersModuleRoot .crm-detail-badges,
#b2bModuleRoot .crm-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#customersModuleRoot .crm-detail-actions,
#b2bModuleRoot .crm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#customersModuleRoot .crm-detail-nav,
#b2bModuleRoot .crm-detail-nav {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

#customersModuleRoot .crm-detail-body,
#b2bModuleRoot .crm-detail-body {
  width: 100%;
  min-width: 0;
}

#customersModuleRoot .crm-workspace-card-grid,
#b2bModuleRoot .crm-workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

#customersModuleRoot .crm-w-card--span-2,
#b2bModuleRoot .crm-w-card--span-2,
#customersModuleRoot .crm-task-panel-host,
#b2bModuleRoot .crm-task-panel-host {
  grid-column: 1 / -1;
}

#customersModuleRoot .crm-task-panel-host,
#b2bModuleRoot .crm-task-panel-host {
  width: 100%;
  min-width: 0;
}

#customersModuleRoot .crm-task-panel-host .task-link-panel > .card,
#b2bModuleRoot .crm-task-panel-host .task-link-panel > .card {
  margin-bottom: 0;
}

#customersModuleRoot .crm-related-cards,
#b2bModuleRoot .crm-related-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

#customersModuleRoot .crm-related-cards > .card,
#b2bModuleRoot .crm-related-cards > .card {
  margin: 0;
}

#customersModuleRoot .crm-mini-section,
#b2bModuleRoot .crm-mini-section {
  margin-top: 0.75rem;
}

#customersModuleRoot .crm-mini-section:first-child,
#b2bModuleRoot .crm-mini-section:first-child {
  margin-top: 0;
}

#customersModuleRoot .crm-mini-section-title,
#b2bModuleRoot .crm-mini-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

#customersModuleRoot .crm-hierarchy-block,
#b2bModuleRoot .crm-hierarchy-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#customersModuleRoot .crm-notes-body,
#b2bModuleRoot .crm-notes-body {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 0.5rem;
}

#customersModuleRoot .crm-notes-activity,
#b2bModuleRoot .crm-notes-activity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#customersModuleRoot button.crm-rail-action,
#b2bModuleRoot button.crm-rail-action {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
}

#customersModuleRoot button.crm-rail-action:hover,
#b2bModuleRoot button.crm-rail-action:hover {
  background: rgba(248, 250, 252, 0.95);
}

#b2bModuleRoot .b2b-catalog-visibility {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#customersModuleRoot .crm-rail-panel,
#b2bModuleRoot .crm-rail-panel {
  align-self: start;
}

#customersModuleRoot .crm-console-side--compact.crm-rail-panel,
#b2bModuleRoot .crm-console-side--compact.crm-rail-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
}

#customersModuleRoot .crm-rail-stack,
#b2bModuleRoot .crm-rail-stack {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#customersModuleRoot .crm-rail-block,
#b2bModuleRoot .crm-rail-block {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.98);
}

#customersModuleRoot .crm-rail-block:last-child,
#b2bModuleRoot .crm-rail-block:last-child {
  border-bottom: none;
}

#customersModuleRoot .crm-rail-block-title,
#b2bModuleRoot .crm-rail-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

#customersModuleRoot .crm-rail-nav,
#b2bModuleRoot .crm-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#customersModuleRoot .crm-rail-nav-item,
#b2bModuleRoot .crm-rail-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

#customersModuleRoot .crm-rail-nav-item:hover,
#b2bModuleRoot .crm-rail-nav-item:hover {
  background: rgba(248, 250, 252, 0.95);
}

#customersModuleRoot .crm-rail-nav-item.is-active,
#b2bModuleRoot .crm-rail-nav-item.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}

#customersModuleRoot .crm-rail-actions,
#b2bModuleRoot .crm-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#customersModuleRoot .crm-rail-action-btn,
#b2bModuleRoot .crm-rail-action-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}

#customersModuleRoot .crm-rail-action-btn:hover,
#b2bModuleRoot .crm-rail-action-btn:hover {
  border-color: rgba(148, 163, 184, 0.55);
}

#customersModuleRoot .crm-rail-action-btn--primary,
#b2bModuleRoot .crm-rail-action-btn--primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  color: #fff;
  font-weight: 600;
}

#customersModuleRoot .crm-rail-summary-list,
#b2bModuleRoot .crm-rail-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#customersModuleRoot .crm-rail-summary-row,
#b2bModuleRoot .crm-rail-summary-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 12px;
}

#customersModuleRoot .crm-rail-dt,
#b2bModuleRoot .crm-rail-dt {
  color: #64748b;
  font-weight: 600;
}

#customersModuleRoot .crm-rail-dd,
#b2bModuleRoot .crm-rail-dd {
  color: #0f172a;
  font-weight: 500;
  word-break: break-word;
}

#customersModuleRoot .crm-detail-lede,
#b2bModuleRoot .crm-detail-lede {
  margin: 0.15rem 0 0.45rem;
  font-size: 14px;
  line-height: 1.45;
  max-width: 42rem;
}

#customersModuleRoot .crm-w-stat-grid,
#b2bModuleRoot .crm-w-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

#customersModuleRoot .crm-w-stat-pill,
#b2bModuleRoot .crm-w-stat-pill {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

#customersModuleRoot .crm-w-stat-pill span,
#b2bModuleRoot .crm-w-stat-pill span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

#customersModuleRoot .crm-w-stat-pill strong,
#b2bModuleRoot .crm-w-stat-pill strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 15px;
  color: #0b1f33;
}

#customersModuleRoot .crm-workspace-actions,
#b2bModuleRoot .crm-workspace-actions {
  margin-top: 1rem;
  flex-wrap: wrap;
}

#customersModuleRoot .crm-summary-cards,
#b2bModuleRoot .crm-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

#customersModuleRoot .crm-summary-cards .crm-summary-card,
#b2bModuleRoot .crm-summary-cards .crm-summary-card {
  margin: 0;
}

#customersModuleRoot .crm-info-grid,
#b2bModuleRoot .crm-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

#customersModuleRoot .crm-info-item,
#b2bModuleRoot .crm-info-item {
  min-width: 0;
}

#customersModuleRoot .crm-info-label,
#b2bModuleRoot .crm-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
}

#customersModuleRoot .crm-info-value,
#b2bModuleRoot .crm-info-value {
  font-size: 14px;
  color: #0b1f33;
  word-break: break-word;
}

#customersModuleRoot .crm-rail-summary .data-list,
#b2bModuleRoot .crm-rail-summary .data-list {
  font-size: 13px;
}

/* CRM/B2B kayıt: görüntüleme vs düzenleme modu */
#customersModuleRoot .crm-mode-pill,
#b2bModuleRoot .crm-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

#customersModuleRoot .crm-mode-pill--view,
#b2bModuleRoot .crm-mode-pill--view {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

#customersModuleRoot .crm-mode-pill--edit,
#b2bModuleRoot .crm-mode-pill--edit {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  border: 1px solid #fdba74;
  box-shadow: 0 1px 2px rgba(154, 52, 18, 0.12);
}

#customersModuleRoot .crm-detail-workspace--edit .crm-detail-header,
#b2bModuleRoot .crm-detail-workspace--edit .crm-detail-header {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.18),
    0 4px 20px rgba(15, 23, 42, 0.06);
}

#customersModuleRoot .card-kicker--record-form,
#b2bModuleRoot .card-kicker--record-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

#customersModuleRoot .crm-form-edit-badge,
#b2bModuleRoot .crm-form-edit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
  background: rgba(255, 237, 213, 0.95);
  border: 1px solid rgba(251, 146, 60, 0.45);
}

#customersModuleRoot .crm-record-card--editing,
#b2bModuleRoot .crm-record-card--editing {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 8px 28px rgba(15, 23, 42, 0.06);
  border-color: rgba(59, 130, 246, 0.22);
}

#customersModuleRoot .crm-record-form--view .module-input,
#customersModuleRoot .crm-record-form--view .module-textarea,
#b2bModuleRoot .crm-record-form--view .module-input,
#b2bModuleRoot .crm-record-form--view .module-textarea {
  cursor: default;
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
}

#customersModuleRoot .crm-record-form--edit .module-input,
#customersModuleRoot .crm-record-form--edit .module-textarea,
#b2bModuleRoot .crm-record-form--edit .module-input,
#b2bModuleRoot .crm-record-form--edit .module-textarea {
  cursor: text;
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#customersModuleRoot .crm-record-form--edit .module-input:hover,
#customersModuleRoot .crm-record-form--edit .module-textarea:hover,
#b2bModuleRoot .crm-record-form--edit .module-input:hover,
#b2bModuleRoot .crm-record-form--edit .module-textarea:hover {
  border-color: rgba(37, 99, 235, 0.5);
}

#customersModuleRoot .crm-record-form--edit .module-input:focus,
#customersModuleRoot .crm-record-form--edit .module-textarea:focus,
#b2bModuleRoot .crm-record-form--edit .module-input:focus,
#b2bModuleRoot .crm-record-form--edit .module-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  outline: none;
}

#customersModuleRoot .crm-toolbar-save,
#b2bModuleRoot .crm-toolbar-save {
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

#customersModuleRoot .crm-save-record-btn,
#b2bModuleRoot .crm-save-record-btn {
  font-weight: 800;
  min-height: 42px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

#customersModuleRoot .crm-workspace-actions--edit,
#b2bModuleRoot .crm-workspace-actions--edit {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 28%, #fff 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  flex-wrap: wrap;
  gap: 0.5rem;
}

#customersModuleRoot .crm-workspace-actions--edit .crm-save-record-btn,
#b2bModuleRoot .crm-workspace-actions--edit .crm-save-record-btn {
  order: -2;
}

#customersModuleRoot .crm-workspace-actions--edit .crm-cancel-edit-btn,
#b2bModuleRoot .crm-workspace-actions--edit .crm-cancel-edit-btn {
  order: -1;
}

@media (max-width: 960px) {
  #customersModuleRoot .crm-workspace-card-grid,
  #b2bModuleRoot .crm-workspace-card-grid {
    grid-template-columns: 1fr;
  }

  #customersModuleRoot .crm-w-card--span-2,
  #b2bModuleRoot .crm-w-card--span-2,
  #customersModuleRoot .crm-task-panel-host,
  #b2bModuleRoot .crm-task-panel-host {
    grid-column: auto;
  }

  #customersModuleRoot .crm-related-cards,
  #b2bModuleRoot .crm-related-cards {
    grid-template-columns: 1fr;
  }

  #customersModuleRoot .crm-info-grid,
  #b2bModuleRoot .crm-info-grid {
    grid-template-columns: 1fr;
  }
}

.dropshipping-os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, #07101a 0%, #0d1726 62%, #111f30 100%);
  color: #eff6ff;
  margin-bottom: 18px;
}

.dropshipping-os-kicker {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 10px;
}

.dropshipping-os-hero h2 {
  font-size: 32px;
  line-height: 1.08;
  margin: 0 0 10px;
}

.dropshipping-os-hero p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  max-width: 62ch;
}

.dropshipping-os-hero-actions,
.dropshipping-os-kpis,
.dropshipping-os-tabs,
.dropshipping-os-subtabs,
.dropshipping-os-chip-list,
.dropshipping-os-score-row,
.dropshipping-os-card-actions,
.dropshipping-os-action-grid,
.dropshipping-os-sim-grid,
.dropshipping-os-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dropshipping-os-hero-actions {
  margin-top: 16px;
}

.dropshipping-os-kpis {
  align-content: start;
}

.dropshipping-os-kpi,
.dropshipping-os-sim-card,
.dropshipping-os-analysis-card,
.dropshipping-os-detail-card,
.dropshipping-os-radar-summary-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.dropshipping-os-kpi {
  flex: 1 1 140px;
  padding: 16px;
  min-height: 88px;
}

.dropshipping-os-kpi span,
.dropshipping-os-sim-card span {
  display: block;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 8px;
}

.dropshipping-os-kpi strong {
  font-size: 26px;
  line-height: 1;
}

.dropshipping-os-journey-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.dropshipping-os-journey-hint strong {
  color: #0f172a;
  font-weight: 700;
}

.dropshipping-os-input-modes-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dropshipping-os-input-mode-card {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.98);
  padding: 12px 14px;
}

.dropshipping-os-input-mode-card strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}

.dropshipping-os-input-mode-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

button.dropshipping-os-input-mode-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button.dropshipping-os-input-mode-card:hover {
  border-color: rgba(59, 130, 246, 0.42);
  background: #fff;
}

button.dropshipping-os-input-mode-card.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  background: #fff;
}

.dropshipping-os-tabs,
.dropshipping-os-subtabs {
  margin-bottom: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.dropshipping-os-tab,
.dropshipping-os-subtab,
.dropshipping-os-chip,
.dropshipping-os-action-tile {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
  color: #0f172a;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.dropshipping-os-source-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #0f172a;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dropshipping-os-source-chip:hover {
  transform: translateY(-1px);
  background: #f8fbff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.dropshipping-os-source-chip.is-selected {
  background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.06), 0 12px 24px rgba(37, 99, 235, 0.08);
}

.dropshipping-os-source-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f172a;
  background: #e2e8f0;
  flex-shrink: 0;
}

.dropshipping-os-source-logo-wrap {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.dropshipping-os-source-logo-image,
.dropshipping-os-source-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.dropshipping-os-source-logo-image {
  object-fit: cover;
  display: block;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.dropshipping-os-source-label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dropshipping-os-source-check {
  min-width: 10px;
  color: #2563eb;
  font-size: 14px;
  line-height: 1;
}

.dropshipping-os-source-chip.tone-orange .dropshipping-os-source-logo {
  background: #ffedd5;
  color: #c2410c;
}

.dropshipping-os-source-chip.tone-blue .dropshipping-os-source-logo,
.dropshipping-os-source-chip.tone-dark .dropshipping-os-source-logo {
  background: #dbeafe;
  color: #1d4ed8;
}

.dropshipping-os-source-chip.tone-green .dropshipping-os-source-logo {
  background: #dcfce7;
  color: #166534;
}

.dropshipping-os-source-chip.tone-purple .dropshipping-os-source-logo {
  background: #ede9fe;
  color: #6d28d9;
}

.dropshipping-os-source-chip.tone-red .dropshipping-os-source-logo {
  background: #fee2e2;
  color: #b91c1c;
}

.dropshipping-os-tab.is-active,
.dropshipping-os-subtab.is-active {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(15, 23, 42, 0.92);
}

.dropshipping-os-radar-grid {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.dropshipping-os-radar-grid > .dropshipping-os-results-panel {
  grid-column: auto;
}

.dropshipping-os-entry-surface {
  display: grid;
  gap: 12px;
}

.dropshipping-os-source-groups,
.dropshipping-os-product-results,
.dropshipping-os-pool-column,
.dropshipping-os-supplier-list,
.dropshipping-os-signal-list,
.dropshipping-os-radar-lines,
.dropshipping-os-radar-stream {
  display: grid;
  gap: 12px;
}

.dropshipping-os-source-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.dropshipping-os-source-group {
  padding: 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.dropshipping-os-source-group strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
}

.dropshipping-os-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.dropshipping-os-filter-grid,
.dropshipping-os-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dropshipping-os-filter,
.dropshipping-os-detail-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #fff;
}

.dropshipping-os-filter span,
.dropshipping-os-detail-card strong,
.dropshipping-os-signal-item strong {
  display: block;
  margin-bottom: 8px;
}

.dropshipping-os-result-card,
.dropshipping-os-pool-card,
.dropshipping-os-stream-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #fff;
}

.dropshipping-os-card-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.dropshipping-os-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
}

.dropshipping-os-thumb.small {
  width: 46px;
  height: 46px;
}

.dropshipping-os-result-copy,
.dropshipping-os-pool-copy {
  display: grid;
  gap: 6px;
}

.dropshipping-os-result-decision {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dropshipping-os-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.dropshipping-os-score-grid span {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.dropshipping-os-score-grid b {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dropshipping-os-score-grid em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.dropshipping-os-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
}

.dropshipping-os-pool-card {
  width: 100%;
  text-align: left;
}

.dropshipping-os-detail-shell,
.dropshipping-os-analysis-card {
  display: grid;
  gap: 14px;
}

.dropshipping-os-quick-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.dropshipping-os-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.dropshipping-os-analysis-card,
.dropshipping-os-sim-card,
.dropshipping-os-signal-item {
  padding: 16px;
}

.dropshipping-os-signal-item {
  display: grid;
  gap: 8px;
}

.dropshipping-os-signal-item small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.dropshipping-os-signal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dropshipping-os-signal-badge.is-success {
  color: #166534;
  background: #dcfce7;
}

.dropshipping-os-signal-badge.is-warning {
  color: #9a3412;
  background: #ffedd5;
}

.dropshipping-os-signal-badge.is-danger {
  color: #991b1b;
  background: #fee2e2;
}

.dropshipping-os-signal-badge.is-info {
  color: #1d4ed8;
  background: #dbeafe;
}

.dropshipping-os-analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.dropshipping-os-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.dropshipping-os-mode-pill {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #eef2ff;
  color: #1e293b;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.dropshipping-os-mode-pill.is-active {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.dropshipping-os-product-results.compact {
  display: grid;
  gap: 12px;
}

.dropshipping-os-product-results:empty {
  display: none;
}

.dropshipping-os-radar-cta {
  background: linear-gradient(135deg, #2563eb 0%, #0f172a 100%);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.dropshipping-os-radar-cta:hover,
.dropshipping-os-radar-cta-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dropshipping-os-radar-cta-secondary {
  border-color: rgba(37, 99, 235, 0.16);
  background: #f8fbff;
}

.dropshipping-os-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dropshipping-os-summary-strip span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.dropshipping-os-result-copy small {
  display: block;
  margin-top: 6px;
  color: #64748b;
}

.module-empty strong {
  display: block;
  margin-bottom: 6px;
}

.module-empty span {
  display: block;
  color: #64748b;
}

#globalCreateBtn.is-dropshipping-context {
  display: none !important;
}

@media (max-width: 1100px) {
  .dropshipping-os-radar-grid {
    grid-template-columns: 1fr;
  }

  .dropshipping-os-source-groups {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
  }
}

.dropshipping-os-detail-hero {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.dropshipping-os-detail-summary strong {
  display: block;
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 8px;
}

.dropshipping-os-detail-summary p {
  margin: 0;
  color: #475569;
}

.dropshipping-os-cache-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dropshipping-os-cache-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.12);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.dropshipping-os-sim-grid {
  margin-bottom: 14px;
}

.dropshipping-os-sim-card {
  flex: 1 1 160px;
  background: #fff;
}

.dropshipping-os-sim-card strong {
  font-size: 22px;
}

.dropshipping-os-radar-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.dropshipping-os-radar-surface {
  width: min(1080px, calc(100vw - 32px));
  min-height: min(720px, calc(100vh - 32px));
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(160deg, #08111d 0%, #101c2c 100%);
  color: #eff6ff;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  box-shadow: 0 32px 120px rgba(15, 23, 42, 0.45);
}

.dropshipping-os-radar-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.14), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.82);
}

.dropshipping-os-radar-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dropshipping-os-radar-node-grid span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.dropshipping-os-radar-node-grid span.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.34);
  transform: translateY(-1px);
}

.dropshipping-os-stream-card {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.76;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.dropshipping-os-stream-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dropshipping-os-radar-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.dropshipping-os-radar-copy h3 {
  font-size: 34px;
  line-height: 1.05;
  margin: 0;
}

.dropshipping-os-radar-lines span {
  display: block;
  color: rgba(226, 232, 240, 0.8);
}

.dropshipping-os-radar-clusters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dropshipping-os-radar-clusters span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.dropshipping-os-radar-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.dropshipping-os-radar-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.92) 0%, rgba(34, 197, 94, 0.92) 100%);
  transition: width 0.34s ease;
}

@media (max-width: 1100px) {
  .dropshipping-os-pipeline {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .dropshipping-os-radar-surface,
  .dropshipping-os-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dropshipping-os-pipeline,
  .dropshipping-os-quick-bar {
    grid-template-columns: 1fr;
  }
}

/* -- Marketplace badge (renderCandidateCard) -- */
.dropshipping-os-marketplace-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid rgba(56,189,248,0.28);
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

/* Candidate card interactivity */
.dropshipping-os-result-card[tabindex] {
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.dropshipping-os-result-card[tabindex]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  border-color: rgba(37,99,235,0.22);
}
.dropshipping-os-result-card[tabindex]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

#dropshippingModuleRoot .ds-shell {
  padding: 20px;
}

#dropshippingModuleRoot .ds-top-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

#dropshippingModuleRoot .ds-top-tab {
  border: 1px solid #d8deea;
  background: #f5f7fb;
  border-radius: 14px;
  min-height: 52px;
  font-weight: 700;
  color: #334155;
}

#dropshippingModuleRoot .ds-top-tab.is-active {
  background: #e8eefc;
  color: #274690;
}

#dropshippingModuleRoot .ds-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
}

#dropshippingModuleRoot .ds-panel {
  background: #f7f9fc;
  border: 1px solid #d9e1ee;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#dropshippingModuleRoot .ds-panel-title,
#dropshippingModuleRoot .ds-block-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

#dropshippingModuleRoot .ds-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

#dropshippingModuleRoot .ds-results-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

#dropshippingModuleRoot .ds-input {
  width: 100%;
  border: 1px solid #d5ddeb;
  background: #fff;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  margin-bottom: 10px;
  font-size: 14px;
}

#dropshippingModuleRoot .ds-primary-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

#dropshippingModuleRoot .ds-check-list {
  display: grid;
  gap: 10px;
}

#dropshippingModuleRoot .ds-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

#dropshippingModuleRoot .ds-results-list {
  display: grid;
  gap: 10px;
}

#dropshippingModuleRoot .ds-result-row {
  width: 100%;
  border: 1px solid #d8deea;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

#dropshippingModuleRoot .ds-result-row.is-active {
  border-color: #9bb2eb;
  background: #eef4ff;
}

#dropshippingModuleRoot .ds-result-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

#dropshippingModuleRoot .ds-result-meta {
  font-size: 13px;
  color: #64748b;
}

#dropshippingModuleRoot .ds-result-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#dropshippingModuleRoot .ds-result-scores span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  font-size: 12px;
  color: #334155;
}

#dropshippingModuleRoot .ds-result-scores b {
  color: #0f172a;
}

#dropshippingModuleRoot .ds-inspector-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#dropshippingModuleRoot .ds-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

#dropshippingModuleRoot .ds-inspector-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #0f172a;
}

#dropshippingModuleRoot .ds-badge {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #274690;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

#dropshippingModuleRoot .ds-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

#dropshippingModuleRoot .ds-metric {
  background: #fff;
  border: 1px solid #dde4f0;
  border-radius: 14px;
  padding: 12px;
}

#dropshippingModuleRoot .ds-metric span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

#dropshippingModuleRoot .ds-metric strong {
  font-size: 18px;
  color: #0f172a;
}

#dropshippingModuleRoot .ds-analysis-block {
  background: #fff;
  border: 1px solid #dde4f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

#dropshippingModuleRoot .ds-analysis-block p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

#dropshippingModuleRoot .ds-bullets {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

#dropshippingModuleRoot .ds-bullets li + li {
  margin-top: 8px;
}

@media (max-width: 1200px) {
  #dropshippingModuleRoot .ds-layout {
    grid-template-columns: 1fr;
  }

  #dropshippingModuleRoot .ds-top-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Dashboard live polish: quick routes readability + circular weekly charts + subtle motion */
#dashboardQuickRoutes {
  gap: 10px;
}

#dashboardQuickRoutes .dashboard-quick-route {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #d5e0ee;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #10233d !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

#dashboardQuickRoutes .dashboard-quick-route span {
  color: #10233d !important;
}

#dashboardQuickRoutes .dashboard-quick-route:hover,
#dashboardQuickRoutes .dashboard-quick-route:focus-visible {
  transform: translateY(-1px);
  border-color: #bdd0eb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.11);
}

.dashboard-quick-route-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #c9d8ea;
  background: linear-gradient(180deg, #f1f7ff 0%, #e3eefb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #184b85;
  flex: 0 0 22px;
}

.saas-mini-rings {
  --ring-track: rgba(148, 163, 184, 0.26);
  --ring-fill: #2f9c95;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.saas-mini-rings.violet {
  --ring-fill: #7c3aed;
}

.saas-mini-rings.teal {
  --ring-fill: #0f766e;
}

.saas-mini-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.saas-mini-ring {
  width: clamp(44px, 4.4vw, 58px);
  aspect-ratio: 1;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring-fill) calc(var(--ring-progress, 0) * 1%), var(--ring-track) 0);
  animation: dashRingIntro 0.52s ease-out both;
  animation-delay: var(--ring-delay, 0ms);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.saas-mini-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.saas-mini-ring > span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.saas-mini-ring-item > small {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.dash-visual-shell.dash-anim-play [data-dash-card]:not([hidden]) {
  animation: dashboardCardIntro 0.36s ease-out both;
  animation-delay: var(--dash-stagger, 0ms);
}

@keyframes dashRingIntro {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 980px) {
  .saas-mini-rings {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .saas-mini-rings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ready Products Center */
.ready-products-shell {
  --rp-bg: #f5f8fc;
  --rp-panel: #ffffff;
  --rp-line: #d9e3ef;
  --rp-text: #0f172a;
  --rp-muted: #64748b;
  --rp-brand: #0f766e;
  --rp-brand-soft: #dff6f2;
  --rp-danger: #b91c1c;
  --rp-warning: #b45309;
  --rp-success: #047857;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(1200px 320px at -5% -22%, rgba(20, 184, 166, 0.16), transparent 62%),
    radial-gradient(900px 280px at 105% -20%, rgba(15, 118, 110, 0.12), transparent 58%),
    var(--rp-bg);
  border: 1px solid #dbe7f4;
}

.ready-products-toolbar {
  display: grid;
  gap: 10px;
  background: var(--rp-panel);
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  animation: rpFadeUp 0.28s ease-out both;
}

.rp-title-wrap h1 {
  margin: 0;
  color: var(--rp-text);
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.02em;
}

.rp-title-wrap p {
  margin: 6px 0 0;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.rp-toolbar-controls {
  display: grid;
  gap: 10px;
}

.rp-toolbar-controls > input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--rp-line);
  background: #fff;
  color: var(--rp-text);
  padding: 0 12px;
  font-size: 13px;
}

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

.rp-quick-chip {
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: #fff;
  color: #28506d;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.rp-quick-chip:hover {
  transform: translateY(-1px);
  border-color: #b4c9e2;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.rp-quick-chip.is-active {
  border-color: #6ab7ad;
  background: var(--rp-brand-soft);
  color: #14514a;
}

.rp-control-row {
  display: grid;
  grid-template-columns: 210px 1fr 1fr;
  gap: 10px;
}

.rp-control-row > select {
  width: 100%;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--rp-line);
  background: #fff;
  color: var(--rp-text);
  padding: 0 10px;
}

.rp-view-toggle,
.rp-density-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rp-line);
  border-radius: 11px;
  background: #fff;
  padding: 3px;
  gap: 4px;
}

.rp-view-toggle button,
.rp-density-toggle button {
  border: 0;
  min-height: 30px;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rp-view-toggle button.is-active,
.rp-density-toggle button.is-active {
  background: linear-gradient(180deg, #e5fbf7 0%, #d7f4ee 100%);
  color: #0f5e55;
}

.rp-bulk-bar {
  border: 1px dashed #c8d8ea;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfefe 0%, #f2f8fd 100%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-bulk-bar span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.rp-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-bulk-actions .secondary-action,
.rp-bulk-actions .primary-btn {
  min-height: 32px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
}

.rp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-filter-chip {
  border: 1px solid #d1deec;
  background: #fff;
  border-radius: 999px;
  min-height: 28px;
  padding: 0 10px;
  color: #28506d;
  font-size: 12px;
  cursor: pointer;
}

.rp-filter-chip.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.rp-warn,
.rp-error {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.rp-warn {
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.rp-error {
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.ready-products-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.rp-kpi-card {
  border: 1px solid #d7e4f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  padding: 11px 12px;
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  min-height: 98px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rpFadeUp 0.3s ease-out both;
}

.rp-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #b9d3ea;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.rp-kpi-card.is-active {
  border-color: #76bdb3;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18);
}

.rp-kpi-card span {
  font-size: 11px;
  color: #556377;
  font-weight: 700;
}

.rp-kpi-card strong {
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1;
  color: #0f172a;
}

.rp-kpi-card small {
  font-size: 11px;
  color: #64748b;
}

.ready-products-main {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 12px;
}

.ready-products-filters {
  display: grid;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding-right: 2px;
}

.ready-products-filters details {
  border: 1px solid #dbe6f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ready-products-filters summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #edf3fa;
  user-select: none;
}

.rp-filter-body {
  padding: 10px;
  display: grid;
  gap: 8px;
}

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

.rp-filter-body input[type="text"],
.rp-filter-body input[type="number"],
.rp-filter-body select {
  width: 100%;
  min-height: 32px;
  border-radius: 9px;
  border: 1px solid #d8e3ef;
  background: #fff;
  padding: 0 9px;
  color: #0f172a;
  font-size: 12px;
}

.rp-filter-body label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
}

.rp-option-list {
  max-height: 140px;
  overflow: auto;
  border: 1px solid #e2e8f1;
  border-radius: 10px;
  padding: 7px;
  display: grid;
  gap: 6px;
  background: #f8fbff;
}

.rp-option-list label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ready-products-results {
  border: 1px solid #d9e5f2;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.rp-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rp-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
}

.muted {
  color: #64748b;
  font-size: 12px;
}

.rp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.rp-item-card {
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px;
  display: grid;
  gap: 9px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: rpFadeUp 0.25s ease-out both;
}

.rp-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  border-color: #bcd4e7;
}

.rp-item-card.is-selected {
  border-color: #6ab7ad;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}

.rp-item-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rp-card-badges,
.rp-card-status-row,
.rp-preview-block .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rp-source-badge,
.rp-status-badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.rp-source-badge {
  border: 1px solid #d8e4ef;
  background: #f7fbff;
  color: #2f5b79;
}

.rp-source-badge.source-supplier {
  border-color: #9fd8ce;
  background: #e9fbf7;
  color: #145f56;
}

.rp-source-badge.source-radar {
  border-color: #cdd7ff;
  background: #eef2ff;
  color: #3742a7;
}

.rp-source-badge.source-store,
.rp-source-badge.source-competitor {
  border-color: #f1ddb1;
  background: #fff8eb;
  color: #854d0e;
}

.rp-source-badge.source-api {
  border-color: #c4e9e3;
  background: #ecfdfb;
  color: #0f766e;
}

.rp-source-badge.source-xml {
  border-color: #d4def8;
  background: #eef4ff;
  color: #1d4ed8;
}

.rp-source-badge.source-manual {
  border-color: #f5d0fe;
  background: #fdf4ff;
  color: #a21caf;
}

.rp-status-badge.neutral {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.rp-status-badge.success {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.rp-status-badge.danger {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.rp-item-visual {
  width: 100%;
  height: 152px;
  border-radius: 12px;
  border: 1px solid #e1e8f2;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.rp-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rp-item-visual-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
}

.rp-item-main {
  cursor: pointer;
}

.rp-item-main h4 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.rp-item-main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.rp-item-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.rp-item-metrics > div {
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #fff;
  padding: 6px 7px;
  display: grid;
  gap: 3px;
}

.rp-item-metrics span {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rp-item-metrics strong {
  font-size: 13px;
  color: #0f172a;
}

.rp-contract-lock {
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12px;
  padding: 8px 10px;
}

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

.rp-item-actions .secondary-action,
.rp-item-actions .primary-btn {
  min-height: 32px;
  border-radius: 10px;
  font-size: 12px;
  padding: 0 10px;
}

.rp-list-view {
  display: grid;
  gap: 8px;
}

.rp-list-row {
  display: grid;
  grid-template-columns: 28px 1.2fr .7fr .7fr .5fr .5fr .45fr .4fr .4fr .45fr .45fr .45fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.rp-list-row.is-selected {
  border-color: #6ab7ad;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.14);
}

.rp-list-cell {
  font-size: 12px;
  color: #334155;
}

.rp-list-cell.product {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.rp-list-cell.product strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
}

.rp-list-cell.product small {
  color: #64748b;
  font-size: 11px;
}

.rp-list-actions {
  display: flex;
  gap: 6px;
}

.rp-list-actions .secondary-action,
.rp-list-actions .primary-btn {
  min-height: 30px;
  border-radius: 9px;
  padding: 0 9px;
  font-size: 11px;
}

.rp-dense-table-wrap {
  border: 1px solid #dce6f2;
  border-radius: 12px;
  overflow: hidden;
}

.rp-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #e3ebf5;
  background: #f8fbff;
}

.rp-column-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-column-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
}

.rp-dense-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.rp-dense-table-wrap th,
.rp-dense-table-wrap td {
  border-bottom: 1px solid #edf2f7;
  padding: 7px 8px;
  text-align: left;
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
}

.rp-dense-table-wrap thead th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  z-index: 1;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rp-dense-table-wrap tr.is-selected {
  background: #ecfdf7;
}

.rp-inline-link {
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.rp-empty {
  min-height: 240px;
  border: 1px dashed #dbe5f0;
  border-radius: 14px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: #fbfdff;
}

.rp-empty strong {
  color: #0f172a;
  font-size: 18px;
}

.rp-empty p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.rp-compare-panel {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 64;
  border: 1px solid #cfe0f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
  padding: 10px;
  display: grid;
  gap: 10px;
  animation: rpSlideUp 0.22s ease-out both;
}

.rp-compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.rp-compare-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.rp-compare-card {
  min-width: 270px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  padding: 9px;
  background: #f8fbff;
}

.rp-compare-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  margin-bottom: 8px;
}

.rp-compare-card header h4 {
  margin: 0;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.4;
}

.rp-compare-card header button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d7e1ee;
  background: #fff;
  cursor: pointer;
}

.rp-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
}

.rp-compare-grid span {
  color: #64748b;
  font-size: 11px;
}

.rp-compare-grid b {
  color: #0f172a;
  font-size: 12px;
}

.rp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  z-index: 70;
}

.rp-preview-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(700px, 92vw);
  height: 100vh;
  z-index: 72;
  border-left: 1px solid #dce5f1;
  background: #fff;
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: auto;
  animation: rpDrawerIn 0.24s ease-out both;
}

.rp-preview-drawer header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid #e5edf6;
  padding: 14px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.rp-preview-drawer .kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.rp-preview-drawer h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.3;
}

.rp-preview-drawer header button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dce4ef;
  background: #fff;
  cursor: pointer;
}

.rp-preview-main {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rp-preview-main .visual {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dde6f2;
  background: #f1f5f9;
  min-height: 200px;
}

.rp-preview-main .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-preview-main .placeholder {
  min-height: 200px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
}

.rp-preview-main .meta {
  display: grid;
  gap: 7px;
}

.rp-preview-main .meta > div {
  border: 1px solid #e4ebf5;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.rp-preview-main .meta span {
  color: #64748b;
  font-size: 11px;
}

.rp-preview-main .meta strong {
  color: #0f172a;
  font-size: 13px;
}

.rp-preview-block {
  margin: 0 14px 10px;
  border: 1px solid #e2eaf4;
  border-radius: 11px;
  padding: 10px;
  background: #f8fbff;
}

.rp-preview-block h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 13px;
}

.rp-preview-block ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  line-height: 1.6;
}

.rp-preview-block small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  word-break: break-all;
}

.rp-preview-drawer footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid #e5edf6;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rp-send-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  z-index: 78;
}

.rp-send-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(740px, 94vw);
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.26);
  z-index: 80;
  display: grid;
  gap: 10px;
  padding: 12px;
  animation: rpFadeUp 0.2s ease-out both;
}

.rp-send-modal header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.rp-send-modal h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.rp-send-modal header button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #d9e4ef;
  background: #fff;
  cursor: pointer;
}

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

.rp-send-grid label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
}

.rp-send-grid input,
.rp-send-grid select {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #d8e3ef;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
}

.rp-send-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rp-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.rp-toast.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.rp-toast.success {
  background: #dcfce7;
  color: #166534;
}

.rp-toast.warning {
  background: #fef3c7;
  color: #92400e;
}

.ready-products-shell.rp-density-comfortable {
  gap: 16px;
}

.ready-products-shell.rp-density-comfortable .rp-item-card {
  padding: 12px;
}

.ready-products-shell.rp-density-comfortable .rp-item-visual {
  height: 176px;
}

.ready-products-shell.rp-density-standard {
  gap: 12px;
}

.ready-products-shell.rp-density-standard .rp-item-card {
  padding: 10px;
}

.ready-products-shell.rp-density-standard .rp-item-visual {
  height: 152px;
}

.ready-products-shell.rp-density-compact {
  gap: 9px;
}

.ready-products-shell.rp-density-compact .rp-item-card {
  padding: 8px;
}

.ready-products-shell.rp-density-compact .rp-item-visual {
  height: 132px;
}

.ready-products-shell.rp-density-compact .rp-item-metrics > div {
  padding: 5px 6px;
}

.ready-products-shell.rp-density-compact .rp-item-metrics strong {
  font-size: 12px;
}

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

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

@keyframes rpDrawerIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1320px) {
  .ready-products-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .ready-products-main {
    grid-template-columns: 1fr;
  }
  .ready-products-filters {
    position: static;
    max-height: none;
  }
  .rp-control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ready-products-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rp-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  }
  .rp-list-row {
    grid-template-columns: 24px 1fr auto;
    align-items: start;
  }
  .rp-list-row .rp-list-cell:not(.product),
  .rp-list-row .rp-list-actions {
    grid-column: 2 / -1;
  }
  .rp-send-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ready-products-shell {
    padding: 10px;
    border-radius: 14px;
  }
  .ready-products-toolbar {
    border-radius: 12px;
    padding: 10px;
  }
  .ready-products-results {
    border-radius: 12px;
    padding: 8px;
  }
  .rp-item-actions {
    grid-template-columns: 1fr;
  }
  .rp-preview-drawer {
    width: 100vw;
  }
  .rp-preview-main {
    grid-template-columns: 1fr;
  }
  .rp-compare-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}

/* PRODUCT OPS RUNTIME PATCH */
#productsModuleRoot .product-ops-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

#productsModuleRoot .product-ops-card {
  min-height: 122px;
  text-align: left;
  cursor: pointer;
  border: 1px solid #dbe5f1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#productsModuleRoot .product-ops-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

#productsModuleRoot .product-bulk-zone {
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 16px 18px;
  border: 1px solid #d9e5f3;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,250,255,.96) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

#productsModuleRoot .product-bulk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#productsModuleRoot .product-bulk-summary {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

#productsModuleRoot .product-bulk-description {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

#productsModuleRoot .product-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#productsModuleRoot .product-bulk-select {
  min-width: 240px;
  max-width: 280px;
}

#productsModuleRoot .product-bulk-foot {
  font-size: 12px;
  color: #64748b;
}

#productsModuleRoot .product-bulk-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#productsModuleRoot .product-bulk-shortcuts-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 4px;
}

#productsModuleRoot .product-bulk-preview {
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fdfefe 0%, #f6faff 100%);
}

#productsModuleRoot .product-bulk-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#productsModuleRoot .product-bulk-preview-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  margin-bottom: 4px;
}

#productsModuleRoot .product-bulk-preview-head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

#productsModuleRoot .product-bulk-preview-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#productsModuleRoot .product-bulk-preview-stats div {
  min-width: 128px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid #dde7f4;
}

#productsModuleRoot .product-bulk-preview-stats span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}

#productsModuleRoot .product-bulk-preview-stats b {
  font-size: 22px;
  color: #0f172a;
}

#productsModuleRoot .product-bulk-preview-body {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

#productsModuleRoot .product-bulk-preview-line,
#productsModuleRoot .product-bulk-preview-sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid #e2e8f0;
}

#productsModuleRoot .product-bulk-preview-warning {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

#productsModuleRoot .product-bulk-preview-empty {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  background: rgba(255,255,255,.72);
}

#productsModuleRoot .product-edit-op-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#productsModuleRoot .product-edit-op-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
}

#bundleStudioModuleRoot .bundle-studio-shell {
  gap: 12px;
}

#bundleStudioModuleRoot .bundle-studio-topbar {
  padding-top: 4px;
}

#bundleStudioModuleRoot .bundle-studio-layout {
  align-items: stretch;
}

#bundleStudioModuleRoot .bundle-studio-sidebar {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

#bundleStudioModuleRoot .bundle-studio-side-meta,
#bundleStudioModuleRoot .bundle-studio-selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

#bundleStudioModuleRoot .bundle-scroll-shell {
  position: relative;
  min-height: 0;
}

#bundleStudioModuleRoot .bundle-scroll-panel {
  position: relative;
  min-height: 0;
  scrollbar-gutter: stable;
}

#bundleStudioModuleRoot .bundle-scroll-panel::after {
  content: "";
  position: sticky;
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  margin-top: -22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, .96) 100%);
}

#bundleStudioModuleRoot .bundle-scroll-note {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px dashed #d6dee9;
}

#bundleStudioModuleRoot .bundle-scroll-note--main {
  border-radius: 14px 14px 0 0;
}

#bundleStudioModuleRoot .bundle-studio-main {
  min-width: 0;
}

#bundleStudioModuleRoot .bundle-studio-section-card {
  min-height: 180px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid #dce6f2;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

#bundleStudioModuleRoot .bundle-studio-selected {
  border-top: 1px solid var(--border-color,#e5e7eb);
  background: linear-gradient(180deg, rgba(249,250,251,.96) 0%, rgba(244,247,251,.94) 100%);
}

#bundleStudioModuleRoot .bundle-studio-savebar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.98) 100%);
}

@media (max-width: 1180px) {
  #productsModuleRoot .product-ops-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #productsModuleRoot .product-ops-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #productsModuleRoot .product-bulk-head,
  #productsModuleRoot .product-bulk-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #bundleStudioModuleRoot .bundle-studio-layout {
    flex-direction: column;
    height: auto !important;
  }

  #bundleStudioModuleRoot .bundle-studio-sidebar {
    width: 100% !important;
  }
}


/* PRODUCT ENGINES V1 */
#productsModuleRoot .product-engine-shell {
  display: grid;
  gap: 14px;
  padding: 4px 0 24px;
}

#productsModuleRoot .product-engine-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#productsModuleRoot .product-engine-title {
  margin: 4px 0 0;
  font-size: 22px;
}

#productsModuleRoot .product-engine-copy {
  margin: 8px 0 0;
  color: #64748b;
  max-width: 780px;
}

#productsModuleRoot .product-engine-head-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

#productsModuleRoot .product-engine-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 420px;
  gap: 14px;
  align-items: start;
}

#productsModuleRoot .publish-prep-grid {
  grid-template-columns: 320px minmax(0, 1fr);
}

#productsModuleRoot .product-engine-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
}

#productsModuleRoot .product-engine-panel--wide {
  min-width: 0;
}

#productsModuleRoot .engine-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#productsModuleRoot .engine-field {
  display: grid;
  gap: 6px;
}

#productsModuleRoot .engine-field span {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

#productsModuleRoot .engine-field-span-2 {
  grid-column: span 2;
}

#productsModuleRoot .engine-scope-pills,
#productsModuleRoot .engine-group-tabs,
#productsModuleRoot .engine-stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#productsModuleRoot .engine-step {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dbe5f1;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

#productsModuleRoot .engine-step.active {
  border-color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
}

#productsModuleRoot .engine-step span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
}

#productsModuleRoot .engine-scope-list {
  max-height: 560px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

#productsModuleRoot .sourcehub-recovery-shell .product-engine-head {
  border: 1px solid #e5e7eb;
  background: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell aside.card {
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

#productsModuleRoot .sourcehub-recovery-shell section.card {
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-step-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-source-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-source-tab {
  height: 58px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-source-tab.active {
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  background: #f8fbff;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-source-tab-icon {
  font-size: 14px;
  line-height: 1;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-source-tab-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-step-section {
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#productsModuleRoot .sourcehub-recovery-shell .form-field {
  display: grid;
  gap: 4px;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-input,
#productsModuleRoot .sourcehub-recovery-shell .mapping-select {
  width: 100%;
  height: 32px;
  border: 1px solid #d5dde6;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell textarea.mapping-input {
  min-height: 70px;
  height: auto;
  padding: 8px 9px;
}

#productsModuleRoot .sourcehub-recovery-shell .file-drop-zone {
  border: 1px dashed #c9d4e3;
  border-radius: 8px;
  padding: 14px 12px;
  background: #fbfdff;
  display: grid;
  gap: 4px;
  justify-items: start;
}

#productsModuleRoot .sourcehub-recovery-shell .file-drop-zone-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

#productsModuleRoot .sourcehub-recovery-shell .file-drop-zone-hint {
  font-size: 11px;
  color: #64748b;
}

#productsModuleRoot .sourcehub-recovery-shell .file-drop-zone-btn {
  height: 30px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-footer {
  margin-top: 2px;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-footer-btn {
  height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-footer-btn.primary {
  background: #2563eb;
  color: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell .wizard-footer-btn.success {
  background: #059669;
  color: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-action-bar-text {
  font-size: 11px;
  color: #334155;
  font-weight: 600;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-filter-counter {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-flow-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 2px 0 0;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-flow-button.sh-flow-step {
  height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #dbe2ea;
  background: #f8fafc;
  color: #334155;
  white-space: nowrap;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-flow-button.sh-flow-step.active {
  border-color: #99f6e4;
  background: #ecfeff;
  color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25);
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-action-bar .mapping-input-sm {
  width: clamp(180px, 26vw, 280px);
  min-width: 160px;
  height: 32px;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-btn-ai,
#productsModuleRoot .sourcehub-recovery-shell .mapping-btn-secondary {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #334155;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-btn-ai {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-filter-bar .module-input {
  width: clamp(180px, 24vw, 280px);
  min-width: 160px;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-filter-button {
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

#productsModuleRoot .sourcehub-recovery-shell .mapping-filter-button.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#productsModuleRoot .sourcehub-recovery-shell .sh-step-track {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-wrap: wrap;
  min-width: 0;
}

#productsModuleRoot .sourcehub-recovery-shell .sh-step-track-item {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}

#productsModuleRoot .sourcehub-recovery-shell .sh-step-pill {
  min-height: 32px;
  padding: 6px 12px !important;
}

#productsModuleRoot .sh-step-track .sh-step-pill {
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05);
}

#productsModuleRoot .sh-source-card {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

#productsModuleRoot .sh-source-card:hover {
  background: #f8fafc !important;
  border-left-color: #93c5fd !important;
}

#productsModuleRoot .sh-source-card.active {
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

#productsModuleRoot .product-engine-head .badge {
  font-weight: 700;
}

#productsModuleRoot .engine-scope-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dde7f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

#productsModuleRoot .engine-scope-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#productsModuleRoot .engine-scope-row-main small,
#productsModuleRoot .engine-scope-row-meta {
  font-size: 12px;
  color: #64748b;
}

#productsModuleRoot .engine-preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#productsModuleRoot .engine-table-wrap {
  max-height: 420px;
  overflow: auto;
}

#productsModuleRoot .engine-dna-grid {
  display: grid;
  gap: 8px;
}

#productsModuleRoot .engine-dna-card {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dce6f2;
  background: #fff;
  font-size: 12px;
  color: #475569;
}

#productsModuleRoot .engine-kpi-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #dbe5f1;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  font-weight: 800;
  color: #0f172a;
}

@media (max-width: 1240px) {
  #productsModuleRoot .product-engine-grid {
    grid-template-columns: 1fr;
  }

  #productsModuleRoot .publish-prep-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #productsModuleRoot .engine-form-grid {
    grid-template-columns: 1fr;
  }

  #productsModuleRoot .engine-field-span-2 {
    grid-column: span 1;
  }

  #productsModuleRoot .engine-preview-stats {
    grid-template-columns: 1fr;
  }

  #productsModuleRoot .sourcehub-recovery-shell .wizard-source-selector,
  #productsModuleRoot .sourcehub-recovery-shell .form-grid-2 {
    grid-template-columns: 1fr;
  }

  #productsModuleRoot .sourcehub-recovery-shell .mapping-flow-header {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}


/* CRM + B2B operational clarity patch */
.crm-contacts-io-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}
.crm-contacts-io-dialog {
  width: min(1200px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.crm-contacts-io-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.crm-io-warn-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  white-space: nowrap;
}
.crm-contacts-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.crm-contacts-table td,
.crm-contacts-table th {
  white-space: nowrap;
  font-size: 13px;
}
.crm-import-batch-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.crm-contacts-list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-contacts-filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
}
.crm-contacts-filter-checks label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}
.crm-contacts-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-bulk-delete-dialog .crm-bulk-delete-facts {
  margin: 8px 0 0;
  padding-left: 18px;
}
.crm-contacts-io-tabs,
.crm-contacts-io-export-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.kp-audit-shell { display: grid; gap: 16px; }
.kp-audit-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kp-audit-head-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.kp-audit-stat { border: 1px solid rgba(226,232,240,.9); border-radius: 12px; padding: 10px 14px; min-width: 100px; }
.kp-audit-stat span { display: block; font-size: 11px; color: #64748b; }
.kp-audit-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.kp-audit-timeline-list { display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.kp-audit-row { border: 1px solid rgba(226,232,240,.9); border-radius: 12px; padding: 12px; cursor: pointer; }
.kp-audit-row:hover { background: rgba(248,250,252,.9); }
.kp-audit-drawer { border: 1px solid rgba(226,232,240,.9); border-radius: 12px; padding: 12px; margin-top: 12px; }
.kp-audit-detail-json { font-size: 11px; max-height: 320px; overflow: auto; }
.kp-audit-pending-grid { display: grid; gap: 8px; }
.kp-audit-nl-reply { margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(248,250,252,.95); white-space: pre-wrap; }
.crm-import-center { display:grid; gap:16px; }
.crm-import-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.crm-import-badges { display:flex; gap:8px; flex-wrap:wrap; }
.crm-import-layout { display:grid; grid-template-columns:minmax(280px,1.05fr) minmax(320px,1fr) minmax(340px,1.15fr); gap:16px; align-items:stretch; }
.crm-import-pane { border:1px solid rgba(226,232,240,0.95); border-radius:18px; background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(248,250,252,0.92)); padding:16px; min-height:560px; display:flex; flex-direction:column; gap:12px; }
.crm-import-pane-head h4 { margin:0; font-size:15px; font-weight:800; color:#0f172a; }
.crm-upload-dropzone { display:grid; place-items:center; gap:6px; border:1px dashed rgba(13,107,104,0.35); border-radius:18px; padding:26px 18px; background:linear-gradient(180deg,rgba(240,253,250,0.9),rgba(248,250,252,0.96)); text-align:center; cursor:pointer; }
.crm-upload-icon { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:rgba(13,107,104,0.1); color:#0d6b68; font-size:22px; font-weight:800; }
.crm-import-summary-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.crm-import-summary-card, .crm-pipeline-metric { border:1px solid rgba(226,232,240,0.92); border-radius:14px; background:#fff; padding:12px 14px; display:grid; gap:4px; }
.crm-import-summary-label, .crm-pipeline-metric span { font-size:11px; letter-spacing:0.04em; text-transform:uppercase; color:#64748b; font-weight:700; }
.crm-import-summary-card strong, .crm-pipeline-metric strong { font-size:15px; color:#0f172a; }
.crm-mapping-list, .crm-import-preview-table-wrap, .crm-import-normalized-preview { min-height:0; overflow:auto; }
.crm-mapping-list { display:grid; gap:10px; padding-right:4px; }
.crm-mapping-row { display:grid; grid-template-columns:minmax(0,1fr) 30px minmax(150px,180px); align-items:center; gap:10px; border:1px solid rgba(226,232,240,0.92); border-radius:14px; background:#fff; padding:10px 12px; }
.crm-mapping-source { font-weight:700; color:#0f172a; }
.crm-mapping-arrow { text-align:center; color:#94a3b8; font-weight:700; }
.crm-import-settings-grid { display:grid; gap:10px; margin-top:auto; }
.crm-setting-toggle { display:flex; align-items:center; gap:10px; font-size:13px; color:#334155; }
.crm-import-preview-table { min-width:720px; }
.crm-normalized-card { border:1px solid rgba(226,232,240,0.92); border-radius:14px; background:#fff; padding:12px 14px; display:grid; gap:8px; }
.crm-normalized-row { display:flex; justify-content:space-between; gap:10px; font-size:13px; }
.crm-normalized-row span { color:#64748b; }
.crm-pipeline-shell { display:grid; gap:14px; }
.crm-pipeline-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.crm-kanban-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(260px,1fr); gap:14px; overflow-x:auto; padding-bottom:6px; }
.crm-kanban-column { border:1px solid rgba(226,232,240,0.95); border-radius:18px; background:linear-gradient(180deg,rgba(248,250,252,0.98),rgba(241,245,249,0.92)); min-height:520px; display:flex; flex-direction:column; }
.crm-kanban-column-head { padding:14px 14px 12px; display:flex; justify-content:space-between; align-items:flex-start; gap:10px; border-bottom:1px solid rgba(226,232,240,0.8); }
.crm-kanban-column-head strong { display:block; font-size:14px; color:#0f172a; }
.crm-kanban-column-head span, .crm-kanban-column-head b { color:#64748b; font-size:12px; }
.crm-kanban-column-body { display:grid; gap:10px; padding:14px; min-height:0; }
.crm-kanban-card { border:1px solid rgba(226,232,240,0.92); border-radius:16px; background:#fff; padding:12px; display:grid; gap:10px; text-align:left; cursor:pointer; box-shadow:0 10px 20px rgba(15,23,42,0.04); }
.crm-kanban-card-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.crm-kanban-card-top strong { font-size:13px; color:#0f172a; }
.crm-kanban-card-meta { font-size:12px; color:#475569; }
.crm-kanban-card-grid { display:grid; gap:6px; }
.crm-kanban-card-grid span { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:#64748b; }
.crm-kanban-card-grid b { color:#0f172a; }
.crm-kanban-priority { font-size:11px; font-weight:700; border-radius:999px; padding:4px 8px; background:rgba(59,130,246,0.08); color:#2563eb; }
.crm-kanban-priority.high, .crm-kanban-priority.yuksek, .crm-kanban-priority.yüksek { background:rgba(245,158,11,0.12); color:#b45309; }
.crm-kanban-priority.critical, .crm-kanban-priority.kritik { background:rgba(239,68,68,0.12); color:#b91c1c; }
.crm-kanban-empty { border:1px dashed rgba(203,213,225,0.9); border-radius:14px; padding:20px 12px; text-align:center; color:#64748b; background:rgba(255,255,255,0.66); }
.commercial-rel-tabs .module-tab-btn { font-size:14px; font-weight:700; letter-spacing:0.015em; padding:11px 16px; }
@media (max-width: 1200px) { .crm-import-layout, .crm-pipeline-metrics { grid-template-columns:1fr; } }
