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

/* Finished deployment mockups */

body.deployment-body,
body.explorer-v2-body {
  min-height: 100vh;
  color: var(--app-ink, #18202b);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(135deg, var(--app-bg, #f3f6f4), var(--app-bg-2, #e9eef2));
  overflow-x: hidden;
}

body.deployment-body::before,
body.explorer-v2-body::before {
  display: none;
}

.theme-inventory {
  --app-bg: #f4f7ef;
  --app-bg-2: #e7f0ec;
  --app-ink: #17251e;
  --app-muted: #6a786f;
  --app-panel: #ffffff;
  --app-panel-2: #f7faf5;
  --app-line: #d8e3d9;
  --app-brand: #0a7a5a;
  --app-brand-dark: #064537;
  --app-accent: #f3ae3d;
  --app-accent-2: #86d9b8;
}

.theme-customer {
  --app-bg: #f6f3ff;
  --app-bg-2: #eef2ff;
  --app-ink: #1d2033;
  --app-muted: #6e7287;
  --app-panel: #ffffff;
  --app-panel-2: #f7f6ff;
  --app-line: #dddff4;
  --app-brand: #5d4dd8;
  --app-brand-dark: #31276f;
  --app-accent: #ff7a90;
  --app-accent-2: #4bc6c3;
}

.theme-marketing {
  --app-bg: #fff7ec;
  --app-bg-2: #edf8ff;
  --app-ink: #29221b;
  --app-muted: #796e64;
  --app-panel: #ffffff;
  --app-panel-2: #fffaf3;
  --app-line: #eadccd;
  --app-brand: #db5e2f;
  --app-brand-dark: #5b2f20;
  --app-accent: #ffbf3f;
  --app-accent-2: #2fb7a4;
}

.theme-leads {
  --app-bg: #eef6ff;
  --app-bg-2: #f7fbff;
  --app-ink: #152235;
  --app-muted: #65758b;
  --app-panel: #ffffff;
  --app-panel-2: #f5f9ff;
  --app-line: #d7e3ef;
  --app-brand: #2368d2;
  --app-brand-dark: #14396f;
  --app-accent: #ff8a3d;
  --app-accent-2: #38c8a6;
}

.theme-ops {
  --app-bg: #f5f4ef;
  --app-bg-2: #e9ebe3;
  --app-ink: #1c2322;
  --app-muted: #68726e;
  --app-panel: #ffffff;
  --app-panel-2: #f8f8f3;
  --app-line: #d9ddd5;
  --app-brand: #2f6d56;
  --app-brand-dark: #18332d;
  --app-accent: #d8893b;
  --app-accent-2: #547bff;
}

.theme-copilot {
  --app-bg: #f1f3f5;
  --app-bg-2: #e7edf0;
  --app-ink: #171b21;
  --app-muted: #69717b;
  --app-panel: #ffffff;
  --app-panel-2: #f7f9fb;
  --app-line: #d9e0e6;
  --app-brand: #111827;
  --app-brand-dark: #05080d;
  --app-accent: #18a999;
  --app-accent-2: #8a63d2;
}

.demo-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(20, 30, 40, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(20, 30, 40, 0.16);
  backdrop-filter: blur(16px);
}

.demo-switcher a {
  min-height: 34px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--app-ink, #18202b);
  background: var(--app-panel-2, #f5f7f9);
  font-size: 12px;
  font-weight: 800;
}

.demo-switcher a.primary {
  color: white;
  background: var(--app-brand, #2368d2);
}

.deploy-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.deploy-sidebar,
.deploy-main,
.app-card,
.phone-panel,
.report-panel {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  box-shadow: 0 18px 45px rgba(20, 30, 40, 0.08);
}

.deploy-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
}

.app-logo-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.app-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, var(--app-brand), var(--app-accent));
  font-weight: 900;
}

.app-logo-row b {
  display: block;
  color: var(--app-ink);
  font-size: 16px;
  line-height: 1.1;
}

.app-logo-row span {
  display: block;
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
}

.app-nav {
  display: grid;
  gap: 7px;
  margin-top: 28px;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 800;
}

.app-nav a.is-current {
  color: var(--app-brand-dark);
  background: color-mix(in srgb, var(--app-brand) 10%, transparent);
}

.app-nav i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.sidebar-foot {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--app-panel-2);
}

.sidebar-foot span,
.app-eyebrow,
.metric-label,
.table-head,
.tiny-label {
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-foot b {
  color: var(--app-ink);
  font-size: 14px;
}

.deploy-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 90% 4%, color-mix(in srgb, var(--app-accent) 13%, transparent), transparent 24%),
    var(--app-panel-2);
}

.deploy-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.deploy-topbar h1 {
  max-width: 760px;
  margin-top: 8px;
  color: var(--app-ink);
  font-size: 34px;
  line-height: 1.03;
}

.deploy-topbar p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.5;
}

.top-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--app-line);
  font-size: 13px;
  font-weight: 900;
}

.app-button {
  color: white;
  background: var(--app-brand);
  border-color: var(--app-brand);
}

.ghost-button {
  color: var(--app-ink);
  background: var(--app-panel);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.app-grid.wide-right {
  grid-template-columns: minmax(0, 0.78fr) minmax(330px, 0.62fr);
}

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

.stat-card,
.app-card {
  padding: 16px;
}

.stat-card {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  box-shadow: 0 10px 28px rgba(20, 30, 40, 0.06);
}

.stat-card b {
  display: block;
  margin-top: 8px;
  color: var(--app-ink);
  font-size: 28px;
  line-height: 1;
}

.stat-card small {
  display: block;
  margin-top: 9px;
  color: var(--app-brand);
  font-size: 12px;
  font-weight: 800;
}

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

.card-head h2 {
  color: var(--app-ink);
  font-size: 22px;
  line-height: 1.1;
}

.card-head p {
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-brand) 11%, transparent);
  color: var(--app-brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.chart-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 236px;
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background:
    linear-gradient(var(--app-line) 1px, transparent 1px),
    var(--app-panel-2);
  background-size: 100% 46px;
}

.chart-board i {
  min-height: 18px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--app-brand), var(--app-accent-2));
}

.chart-board i:nth-child(2n) {
  background: linear-gradient(180deg, var(--app-accent), var(--app-brand));
}

.data-table {
  display: grid;
  gap: 8px;
}

.table-row,
.task-row,
.message-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.table-row {
  grid-template-columns: minmax(0, 1.3fr) 90px 90px 110px;
}

.table-row b,
.task-row b,
.message-row b {
  color: var(--app-ink);
  font-size: 14px;
}

.table-row span,
.table-row small,
.task-row span,
.message-row span {
  color: var(--app-muted);
  font-size: 12px;
}

.status-pill.hot {
  color: #7a2b00;
  background: color-mix(in srgb, var(--app-accent) 22%, white);
}

.status-pill.good {
  color: var(--app-brand-dark);
  background: color-mix(in srgb, var(--app-accent-2) 25%, white);
}

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

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

.mini-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.mini-item::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--app-brand);
}

.mini-item:nth-child(2)::before {
  background: var(--app-accent);
}

.mini-item:nth-child(3)::before {
  background: var(--app-accent-2);
}

.mini-item b {
  display: block;
  color: var(--app-ink);
  font-size: 14px;
}

.mini-item span {
  display: block;
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.35;
}

.segment-cards,
.campaign-grid,
.pipeline-grid,
.schedule-grid,
.brief-grid {
  display: grid;
  gap: 12px;
}

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

.segment-card,
.campaign-card,
.pipeline-card,
.schedule-card,
.brief-card {
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.segment-card b,
.campaign-card b,
.pipeline-card b,
.schedule-card b,
.brief-card b {
  display: block;
  color: var(--app-ink);
  font-size: 16px;
}

.segment-card p,
.campaign-card p,
.pipeline-card p,
.schedule-card p,
.brief-card p {
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.4;
}

.progress-line {
  height: 8px;
  margin-top: 13px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--app-line) 70%, transparent);
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-brand), var(--app-accent));
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.calendar-day {
  min-height: 138px;
  padding: 11px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.calendar-day b {
  color: var(--app-ink);
}

.calendar-day span {
  display: block;
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  color: var(--app-brand-dark);
  background: color-mix(in srgb, var(--app-brand) 10%, transparent);
  font-size: 11px;
  font-weight: 800;
}

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

.pipeline-card {
  min-height: 260px;
  background: var(--app-panel-2);
}

.pipeline-card .deal {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.map-panel {
  min-height: 310px;
  position: relative;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--app-line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--app-line) 55%, transparent) 1px, transparent 1px),
    var(--app-panel-2);
  background-size: 42px 42px;
  overflow: hidden;
}

.map-route {
  position: absolute;
  left: 14%;
  top: 48%;
  width: 70%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--app-brand), var(--app-accent), var(--app-accent-2));
  transform: rotate(-18deg);
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--app-brand);
  box-shadow: 0 8px 18px rgba(20, 30, 40, 0.16);
}

.map-dot:nth-child(2) {
  left: 20%;
  top: 62%;
}

.map-dot:nth-child(3) {
  left: 48%;
  top: 44%;
  background: var(--app-accent);
}

.map-dot:nth-child(4) {
  left: 76%;
  top: 30%;
  background: var(--app-accent-2);
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(330px, 0.58fr);
  gap: 16px;
}

.chat-panel {
  display: grid;
  gap: 12px;
}

.chat-message {
  max-width: 84%;
  padding: 13px;
  border-radius: 8px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  color: var(--app-ink);
  font-size: 13px;
  line-height: 1.45;
}

.chat-message.answer {
  margin-left: auto;
  color: white;
  background: var(--app-brand);
  border-color: var(--app-brand);
}

.explorer-v2-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 42px;
}

.explorer-v2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.explorer-v2-top h1 {
  margin: 0;
  color: var(--app-ink);
  font-size: 34px;
  line-height: 1.05;
}

.explorer-v2-top p {
  margin-top: 7px;
  color: var(--app-muted);
  font-size: 15px;
  line-height: 1.5;
}

.explorer-v2-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.explorer-v2-list,
.explorer-v2-stage {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  box-shadow: 0 18px 45px rgba(20, 30, 40, 0.08);
}

.explorer-v2-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.deployment-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.deployment-option.is-active {
  border-color: var(--app-brand);
  background: color-mix(in srgb, var(--app-brand) 8%, white);
}

.deployment-option .sample-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: white;
  background: var(--option-color, var(--app-brand));
  font-weight: 900;
}

.deployment-option b {
  display: block;
  color: var(--app-ink);
  font-size: 14px;
}

.deployment-option > span:not(.sample-mark) {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.35;
}

.explorer-v2-stage {
  overflow: hidden;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--app-line);
}

.stage-header h2 {
  margin-top: 6px;
  color: var(--app-ink);
  font-size: 28px;
}

.stage-header p {
  margin-top: 7px;
  max-width: 720px;
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.5;
}

.stage-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stage-screen {
  padding: 18px;
}

.sample-window {
  min-height: 500px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--app-bg), var(--app-bg-2));
}

.sample-sidebar {
  padding: 12px;
  border-radius: 8px;
  background: var(--app-panel);
}

.sample-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.sample-main-top,
.sample-card {
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.sample-main-top h3,
.sample-card h3 {
  color: var(--app-ink);
  font-size: 18px;
}

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

.sample-data div {
  min-height: 86px;
  padding: 12px;
  border-radius: 8px;
  background: var(--app-panel);
  border: 1px solid var(--app-line);
}

.sample-data b {
  display: block;
  margin-top: 8px;
  color: var(--app-ink);
  font-size: 24px;
}

.sample-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 160px;
  padding: 12px;
  border-radius: 8px;
  background: var(--app-panel-2);
}

.sample-chart i {
  flex: 1;
  min-height: 20px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--app-brand), var(--app-accent));
}

@media (max-width: 980px) {
  .deploy-app,
  .app-grid,
  .app-grid.wide-right,
  .brief-layout,
  .explorer-v2-grid {
    grid-template-columns: 1fr;
  }

  .deploy-sidebar {
    display: block;
  }

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

  .stat-grid,
  .segment-cards,
  .pipeline-grid,
  .sample-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sample-window {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .deploy-app {
    padding: 10px;
  }

  .deploy-sidebar,
  .deploy-main {
    padding: 14px;
  }

  .deploy-topbar,
  .stage-header,
  .explorer-v2-top {
    flex-direction: column;
  }

  .deploy-topbar h1,
  .explorer-v2-top h1 {
    font-size: 28px;
  }

  .app-nav,
  .stat-grid,
  .split-panels,
  .segment-cards,
  .calendar-strip,
  .pipeline-grid,
  .brief-layout,
  .sample-data {
    grid-template-columns: 1fr;
  }

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

  .table-row.table-head {
    display: none;
  }

  .pipeline-card {
    min-height: auto;
  }

  .demo-switcher {
    position: static;
    margin: 10px;
  }

  .demo-switcher a {
    flex: 1;
  }
}

:root {
  --bg: #07111b;
  --panel: rgba(14, 25, 38, 0.9);
  --panel-soft: rgba(20, 36, 54, 0.74);
  --ink: #f8fafc;
  --text: #d8e4f2;
  --muted: #98aabe;
  --line: rgba(210, 235, 255, 0.18);
  --line-strong: rgba(210, 235, 255, 0.34);
  --cyan: #39d9ff;
  --teal: #32f5c8;
  --orange: #ff8b45;
  --gold: #ffd36a;
  --violet: #b995ff;
  --rose: #ff5f7f;
  --green: #7af7a8;
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.38);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 139, 69, 0.18), transparent 26%),
    radial-gradient(circle at 80% 8%, rgba(57, 217, 255, 0.22), transparent 30%),
    radial-gradient(circle at 58% 86%, rgba(50, 245, 200, 0.11), transparent 30%),
    linear-gradient(140deg, #050b13 0%, #0c1b2b 48%, #050b12 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(141, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 181, 107, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 80%);
  z-index: -1;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 21, 0.82);
  backdrop-filter: blur(22px);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  filter: drop-shadow(0 0 18px rgba(57, 217, 255, 0.3));
}

.brand strong {
  display: block;
  color: white;
  font-size: 17px;
  line-height: 1.05;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #061015;
  border-color: transparent;
  background: linear-gradient(135deg, #70e1f4, #ffe0aa 54%, #ff8b45);
  box-shadow: 0 14px 42px rgba(57, 217, 255, 0.18), 0 10px 28px rgba(255, 139, 69, 0.16);
}

.page-hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.58fr);
  gap: 28px;
  align-items: end;
}

.kicker,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 217, 255, 0.38);
  color: #d7fbff;
  background: linear-gradient(90deg, rgba(57, 217, 255, 0.12), rgba(255, 139, 69, 0.08));
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker::before,
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 900px;
  margin-top: 18px;
  color: white;
  font-size: 64px;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  color: white;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  color: white;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.62;
}

.hero-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 139, 69, 0.16), transparent 38%),
    rgba(14, 25, 38, 0.7);
  box-shadow: var(--shadow);
}

.hero-note b {
  display: block;
  color: white;
  font-size: 18px;
}

.hero-note p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mock-shell {
  margin: 28px auto 76px;
  border: 1px solid rgba(141, 229, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 0%, rgba(57, 217, 255, 0.14), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(255, 139, 69, 0.13), transparent 28%),
    rgba(6, 14, 23, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #071015;
  background: linear-gradient(135deg, var(--cyan), var(--gold), var(--orange));
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 900;
}

.app-title b {
  display: block;
  color: white;
  font-size: 20px;
}

.app-title small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bafce7;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px var(--teal);
}

.app-body {
  min-width: 0;
  padding: 20px;
}

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

.kpi {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.kpi small {
  display: inline-flex;
  margin-top: 10px;
  color: #bafce7;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.dashboard-grid > *,
.split-grid > *,
.three-grid > *,
.kanban > *,
.calendar > *,
.table > *,
.panel,
.panel-head > * {
  min-width: 0;
}

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

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

.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(22, 37, 54, 0.78), rgba(8, 17, 28, 0.78));
}

.panel + .panel {
  margin-top: 14px;
}

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

.panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(210, 235, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(rgba(141, 229, 255, 0.05) 1px, transparent 1px),
    rgba(4, 11, 18, 0.48);
  background-size: 100% 44px;
}

.bar {
  min-height: 22px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  box-shadow: 0 0 24px rgba(57, 217, 255, 0.16);
}

.bar:nth-child(2n) {
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.bar:nth-child(3n) {
  background: linear-gradient(180deg, var(--violet), var(--rose));
}

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

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 88px 92px 112px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.row b {
  color: white;
  font-size: 14px;
}

.row span,
.row small {
  color: var(--muted);
  font-size: 12px;
}

.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  color: #071015;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-size: 12px;
  font-weight: 900;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 207, 138, 0.28);
  color: #fff4da;
  background: rgba(255, 139, 69, 0.12);
  font-size: 12px;
  font-weight: 900;
}

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

.insight {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.insight::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}

.insight:nth-child(2)::before {
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

.insight:nth-child(3)::before {
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
}

.insight b {
  display: block;
  color: white;
  font-size: 14px;
}

.insight span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chat-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(57, 217, 255, 0.22);
  border-radius: 8px;
  background: rgba(57, 217, 255, 0.065);
}

.chat-box b {
  display: block;
  color: white;
  font-size: 14px;
}

.chat-box p {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.segment-list,
.lead-list,
.job-list {
  display: grid;
  gap: 10px;
}

.segment,
.lead-card,
.job-card {
  padding: 14px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.segment b,
.lead-card b,
.job-card b {
  color: white;
  font-size: 15px;
}

.segment p,
.lead-card p,
.job-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.progress {
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--gold));
}

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

.day {
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.day b {
  display: block;
  color: white;
  font-size: 13px;
}

.day span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item time {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}

.timeline-item b {
  color: white;
  font-size: 14px;
}

.timeline-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.lane {
  min-height: 360px;
  padding: 12px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.lane h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.mini-card {
  padding: 12px;
  border-radius: 8px;
  background: rgba(7, 16, 25, 0.74);
  border: 1px solid rgba(210, 235, 255, 0.11);
}

.mini-card + .mini-card {
  margin-top: 8px;
}

.mini-card b {
  color: white;
  font-size: 13px;
}

.mini-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.chat-window {
  display: grid;
  gap: 12px;
}

.message {
  max-width: 82%;
  padding: 13px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  line-height: 1.55;
}

.message.ai {
  margin-left: auto;
  color: #dafcff;
  background: rgba(57, 217, 255, 0.11);
  border: 1px solid rgba(57, 217, 255, 0.2);
}

.mock-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

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

.gallery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(57, 217, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(22, 37, 54, 0.8), rgba(8, 17, 28, 0.86));
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.24);
}

.gallery-card h2 {
  margin-top: 12px;
  font-size: 25px;
}

.gallery-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.gallery-card .button {
  margin-top: 22px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gallery-number {
  color: rgba(248, 250, 252, 0.52);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-preview {
  position: relative;
  min-height: 132px;
  margin-top: 22px;
  padding: 13px;
  border: 1px solid rgba(210, 235, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(141, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 181, 107, 0.035) 1px, transparent 1px),
    rgba(5, 13, 22, 0.74);
  background-size: 38px 38px;
  overflow: hidden;
}

.gallery-preview::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 217, 255, 0.18), transparent 64%);
}

.preview-bars {
  position: absolute;
  inset: 18px 18px auto auto;
  display: flex;
  align-items: end;
  gap: 6px;
  height: 80px;
}

.preview-bars i {
  width: 14px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.preview-bars i:nth-child(2n) {
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.preview-stack {
  display: grid;
  gap: 8px;
  width: min(168px, 72%);
}

.preview-pill {
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.preview-pill.short {
  width: 68%;
}

.preview-spark {
  position: absolute;
  right: 22px;
  bottom: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255, 211, 106, 0.32);
  background: radial-gradient(circle, rgba(255, 139, 69, 0.42), rgba(57, 217, 255, 0.06) 58%, transparent);
  box-shadow: 0 0 28px rgba(255, 139, 69, 0.18);
}

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

.use-case-strip span {
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  margin: 36px auto 80px;
  align-items: stretch;
}

.case-rail,
.case-stage {
  border: 1px solid rgba(141, 229, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(57, 217, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(22, 37, 54, 0.86), rgba(7, 16, 25, 0.9));
  box-shadow: var(--shadow);
}

.case-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.case-rail h2 {
  margin-top: 12px;
  font-size: 28px;
}

.case-rail p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.case-options {
  display: grid;
  gap: 10px;
}

.case-option {
  width: 100%;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(210, 235, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.case-option.is-active {
  border-color: rgba(57, 217, 255, 0.5);
  background:
    radial-gradient(circle at 0% 50%, rgba(57, 217, 255, 0.18), transparent 38%),
    rgba(57, 217, 255, 0.07);
  box-shadow: inset 3px 0 0 var(--orange);
}

.case-option span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
}

.case-option b {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 15px;
}

.case-option small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.case-stage {
  min-width: 0;
  overflow: hidden;
}

.case-stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.case-count {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-stage h2 {
  max-width: 760px;
  margin-top: 8px;
}

.case-stage-top p {
  max-width: 820px;
  margin-top: 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.58;
}

.case-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.case-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.case-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--gold), var(--orange));
  transition: width 260ms ease;
}

.case-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(290px, 0.58fr);
  gap: 16px;
  padding: 22px;
}

.case-story-grid,
.case-metrics,
.case-modules {
  display: grid;
  gap: 12px;
}

.case-story-card,
.case-metrics div,
.case-modules {
  border: 1px solid rgba(210, 235, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.case-story-card {
  min-height: 116px;
  padding: 16px;
}

.case-story-card span,
.case-modules span,
.case-metrics span,
.case-screen-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-story-card p {
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.case-visual {
  min-width: 0;
  grid-row: span 2;
}

.case-screen {
  position: relative;
  min-height: 392px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(57, 217, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(141, 229, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 181, 107, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 74% 26%, rgba(57, 217, 255, 0.18), transparent 34%),
    rgba(4, 11, 18, 0.68);
  background-size: 44px 44px, 44px 44px, auto, auto;
  overflow: hidden;
}

.case-screen::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 98px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(255, 211, 106, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 139, 69, 0.34), rgba(57, 217, 255, 0.08) 58%, transparent);
  box-shadow: 0 0 48px rgba(255, 139, 69, 0.14);
}

.case-screen-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.case-screen-head b {
  color: #bafce7;
  font-size: 12px;
}

.case-screen-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: end;
  min-height: 306px;
}

.case-screen-main {
  display: grid;
  gap: 13px;
}

.screen-row {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(210, 235, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.screen-row.mid {
  width: 78%;
}

.screen-row.short {
  width: 52%;
}

.case-screen-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 166px;
}

.case-screen-bars i {
  width: 20px;
  min-height: 26px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
  box-shadow: 0 0 24px rgba(57, 217, 255, 0.16);
}

.case-screen-bars i:nth-child(2n) {
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.case-screen-bars i:nth-child(3n) {
  background: linear-gradient(180deg, var(--violet), var(--rose));
}

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

.case-metrics div {
  min-height: 112px;
  padding: 15px;
}

.case-metrics b {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 30px;
  line-height: 1;
}

.case-modules {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px;
}

.case-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.case-chip-list i {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(57, 217, 255, 0.22);
  border-radius: 999px;
  color: #d7fbff;
  background: rgba(57, 217, 255, 0.075);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  .hero-grid,
  .dashboard-grid,
  .split-grid,
  .explorer-shell,
  .founder-showcase {
    grid-template-columns: 1fr;
  }

  .case-rail {
    position: static;
  }

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

  .case-content {
    grid-template-columns: 1fr;
  }

  .case-visual {
    grid-row: auto;
  }

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

  .three-grid,
  .gallery-grid,
  .use-case-strip,
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   DIFFERENTIATED APP COMPONENTS
   ===================================================== */

/* --- Inventory: SKU heatmap grid --- */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.heatmap-tile {
  padding: 11px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.heatmap-tile.risk-high {
  background: color-mix(in srgb, #e8432a 11%, white);
  border-color: color-mix(in srgb, #e8432a 30%, transparent);
}

.heatmap-tile.risk-mid {
  background: color-mix(in srgb, var(--app-accent) 14%, white);
  border-color: color-mix(in srgb, var(--app-accent) 30%, transparent);
}

.heatmap-tile.risk-ok {
  background: color-mix(in srgb, var(--app-accent-2) 12%, white);
  border-color: color-mix(in srgb, var(--app-accent-2) 25%, transparent);
}

.heatmap-tile > span {
  display: block;
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.heatmap-tile > b {
  display: block;
  margin-top: 5px;
  color: var(--app-ink);
  font-size: 15px;
  line-height: 1;
}

.heatmap-tile > small {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 11px;
}

.stock-bar-wrap {
  height: 4px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.price-table { display: grid; gap: 8px; }

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 76px 78px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.price-row b { color: var(--app-ink); font-size: 13px; }
.price-row span { color: var(--app-muted); font-size: 12px; text-align: right; }

.price-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.price-delta.up { color: #10522e; background: color-mix(in srgb, var(--app-accent-2) 22%, white); }
.price-delta.watch { color: #6b3e00; background: color-mix(in srgb, var(--app-accent) 20%, white); }
.price-delta.hold { color: var(--app-muted); background: var(--app-panel-2); }

/* --- Customer: RFM quadrant + profile --- */
.rfm-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
}

.rfm-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-height: 264px;
}

.rfm-quad {
  position: relative;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  overflow: hidden;
}

.rfm-quad.champions { background: color-mix(in srgb, var(--app-brand) 8%, white); border-color: color-mix(in srgb, var(--app-brand) 22%, transparent); }
.rfm-quad.loyal     { background: color-mix(in srgb, var(--app-accent-2) 9%, white); }
.rfm-quad.atrisk    { background: color-mix(in srgb, var(--app-accent) 9%, white); }
.rfm-quad.lapsed    { background: var(--app-panel-2); }

.rfm-quad > span { color: var(--app-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.rfm-quad > b { display: block; margin-top: 4px; color: var(--app-ink); font-size: 12px; line-height: 1.3; }

.rfm-count {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 900;
}

.rfm-quad.champions .rfm-count { background: var(--app-brand); }
.rfm-quad.loyal     .rfm-count { background: var(--app-accent-2); color: var(--app-ink); }
.rfm-quad.atrisk    .rfm-count { background: var(--app-accent); color: white; }
.rfm-quad.lapsed    .rfm-count { background: var(--app-muted); }

.customer-profile-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }

.profile-avatar { display: flex; align-items: center; gap: 11px; }

.profile-initials {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--app-brand), var(--app-accent-2));
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}

.profile-avatar b { display: block; color: var(--app-ink); font-size: 14px; }
.profile-avatar span { display: block; margin-top: 2px; color: var(--app-muted); font-size: 12px; }

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

.profile-stat {
  padding: 9px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel-2);
}

.profile-stat > span { display: block; color: var(--app-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.profile-stat > b { display: block; margin-top: 4px; color: var(--app-ink); font-size: 17px; }

.purchase-timeline {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.pt-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.pt-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--app-brand);
  box-shadow: 0 0 0 2px var(--app-brand);
}

.pt-dot.faded::before {
  background: var(--app-line);
  box-shadow: 0 0 0 2px var(--app-line);
}

.pt-dot > span { margin-top: 5px; color: var(--app-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; text-align: center; }

.pt-line {
  flex: 1;
  height: 2px;
  background: var(--app-line);
  margin-top: 5px;
}

.profile-action-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }

.profile-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--app-brand);
  color: var(--app-brand-dark);
  background: color-mix(in srgb, var(--app-brand) 9%, transparent);
  font-size: 11px;
  font-weight: 900;
}

/* --- Marketing: Channel performance tiles + post preview --- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2px;
}

.channel-tile {
  padding: 13px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.ch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, var(--app-brand), var(--app-accent));
  font-size: 9px;
  font-weight: 900;
}

.channel-tile .ch-name { display: block; margin-top: 7px; color: var(--app-ink); font-size: 11px; font-weight: 900; }
.channel-tile .ch-metric { display: block; margin-top: 3px; color: var(--app-ink); font-size: 22px; font-weight: 900; line-height: 1; }
.channel-tile .ch-label { display: block; margin-top: 3px; color: var(--app-muted); font-size: 10px; }

.ch-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  margin-top: 8px;
}

.ch-sparkline i {
  flex: 1;
  min-height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--app-brand) 35%, transparent);
}

.ch-sparkline i:last-child { background: var(--app-brand); }

.post-preview {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--app-panel);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--app-line);
}

.post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-brand), var(--app-accent));
  flex-shrink: 0;
}

.post-header b { color: var(--app-ink); font-size: 13px; }
.post-header span { display: block; color: var(--app-muted); font-size: 11px; }

.post-body { padding: 11px 12px; color: var(--app-ink); font-size: 13px; line-height: 1.5; }

.post-image {
  margin: 0 12px 10px;
  height: 72px;
  border-radius: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-brand) 16%, white), color-mix(in srgb, var(--app-accent) 20%, white));
}

.post-engagement {
  display: flex;
  gap: 14px;
  padding: 9px 12px;
  border-top: 1px solid var(--app-line);
}

.post-engagement span { color: var(--app-muted); font-size: 12px; font-weight: 800; }
.post-engagement strong { color: var(--app-ink); }

.post-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--app-line);
  background: var(--app-panel-2);
}

.post-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-accent-2) 20%, white);
  color: var(--app-brand-dark);
  font-size: 10px;
  font-weight: 900;
}

.post-status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-accent-2);
}

/* --- Leads: Urgency lead cards --- */
.lead-card-list { display: grid; gap: 9px; }

.lead-card-item {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) 80px 60px 100px;
  gap: 0 12px;
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  overflow: hidden;
  padding-right: 13px;
}

.lead-urgency-stripe {
  align-self: stretch;
  border-radius: 7px 0 0 7px;
  background: var(--app-line);
}

.lead-card-item.hot  .lead-urgency-stripe { background: #e04a2a; }
.lead-card-item.warm .lead-urgency-stripe { background: var(--app-accent); }
.lead-card-item.cool .lead-urgency-stripe { background: var(--app-accent-2); }

.lead-card-body { padding: 12px 0; }
.lead-card-body b { display: block; color: var(--app-ink); font-size: 13px; font-weight: 900; }
.lead-card-body span { display: block; margin-top: 3px; color: var(--app-muted); font-size: 12px; }

.lead-timer { text-align: center; }
.lead-timer b { display: block; color: var(--app-ink); font-size: 16px; font-weight: 900; }
.lead-timer span { display: block; margin-top: 1px; color: var(--app-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }

.lead-score-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.lead-score-circle.s-high { background: linear-gradient(135deg, #e04a2a, #f09040); }
.lead-score-circle.s-mid  { background: linear-gradient(135deg, var(--app-brand), var(--app-accent-2)); }
.lead-score-circle.s-low  { background: var(--app-muted); }

.lead-action-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }

.lead-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--app-brand);
  color: var(--app-brand-dark);
  background: color-mix(in srgb, var(--app-brand) 9%, transparent);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

/* --- Operations: Crew schedule grid --- */
.crew-schedule { display: grid; gap: 7px; }

.schedule-time-header {
  display: grid;
  grid-template-columns: 96px repeat(8, minmax(0, 1fr));
  gap: 6px;
  padding-bottom: 4px;
}

.schedule-time-header span {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.schedule-time-header span:first-child { text-align: left; }

.schedule-crew-row {
  display: grid;
  grid-template-columns: 96px repeat(8, minmax(0, 1fr));
  gap: 6px;
  min-height: 56px;
  align-items: center;
}

.crew-label { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.crew-label b { color: var(--app-ink); font-size: 12px; font-weight: 900; }
.crew-label span { color: var(--app-muted); font-size: 10px; }

.sched-block {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  overflow: hidden;
}

.sched-block.job-primary { background: linear-gradient(135deg, var(--app-brand), var(--app-brand-dark)); color: white; }
.sched-block.job-secondary { background: linear-gradient(135deg, var(--app-accent), color-mix(in srgb, var(--app-accent) 65%, black)); color: #1c2322; }
.sched-block.job-tertiary { background: linear-gradient(135deg, var(--app-accent-2), color-mix(in srgb, var(--app-accent-2) 65%, black)); color: #1c2322; }
.sched-block.job-travel { background: var(--app-panel-2); border: 1px solid var(--app-line); color: var(--app-muted); }
.sched-block.job-gap { background: transparent; border: 1px dashed var(--app-line); color: var(--app-muted); }

.sched-block p { margin: 0; }
.sched-block small { display: block; font-weight: 400; opacity: 0.8; }

.ops-capacity-bar {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel-2);
}

.capacity-label { display: flex; justify-content: space-between; margin-bottom: 7px; }
.capacity-label span { color: var(--app-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.capacity-label b { color: var(--app-ink); font-size: 13px; }

.capacity-track {
  height: 10px;
  border-radius: 99px;
  background: var(--app-line);
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--app-brand), var(--app-accent));
}

/* --- Co-pilot: Rich chat + inbox priority stack --- */
.copilot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.rich-chat { display: grid; gap: 11px; }

.chat-user {
  max-width: 78%;
  padding: 11px 13px;
  border: 1px solid var(--app-line);
  border-radius: 10px 10px 10px 2px;
  background: var(--app-panel-2);
  color: var(--app-ink);
  font-size: 13px;
  line-height: 1.45;
}

.chat-ai { margin-left: auto; max-width: 92%; }

.chat-ai-bubble {
  padding: 11px 13px;
  border-radius: 10px 10px 2px 10px;
  color: white;
  background: var(--app-brand);
  font-size: 13px;
  line-height: 1.45;
}

.chat-briefing-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.chat-briefing-card {
  padding: 10px 11px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.chat-briefing-card > span { display: block; color: var(--app-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.chat-briefing-card > b { display: block; margin-top: 4px; color: var(--app-ink); font-size: 17px; }
.chat-briefing-card > small { display: block; margin-top: 2px; color: var(--app-brand); font-size: 11px; font-weight: 800; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
}

.chat-input-fake {
  flex: 1;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-panel-2);
  color: var(--app-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
}

.inbox-stack { display: grid; gap: 8px; }

.inbox-item {
  padding: 11px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-panel);
  border-left-width: 3px;
}

.inbox-item.p-urgent { border-left-color: #e04a2a; }
.inbox-item.p-high   { border-left-color: var(--app-accent); }
.inbox-item.p-normal { border-left-color: var(--app-brand); }
.inbox-item.p-low    { border-left-color: var(--app-line); }

.inbox-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.inbox-item b { color: var(--app-ink); font-size: 13px; }
.inbox-item time { color: var(--app-muted); font-size: 11px; flex-shrink: 0; }
.inbox-item p { margin-top: 4px; color: var(--app-muted); font-size: 12px; line-height: 1.4; }

.inbox-item-footer { display: flex; gap: 6px; margin-top: 7px; }

.inbox-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .rfm-container,
  .copilot-layout { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .heatmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================
   END DIFFERENTIATED COMPONENTS
   ===================================================== */

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

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

  .page-hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-shell {
    margin-top: 26px;
  }

  .case-options,
  .case-stage-top,
  .case-metrics,
  .case-modules {
    grid-template-columns: 1fr;
  }

  .case-stage-top {
    padding: 16px;
  }

  .case-stage h2 {
    font-size: 26px;
  }

  .case-controls {
    justify-content: flex-start;
  }

  .case-content {
    padding: 14px;
  }

  .case-screen {
    min-height: 330px;
  }

  .case-screen-body {
    grid-template-columns: 1fr;
    min-height: 246px;
  }

  .case-screen-bars {
    height: 112px;
  }

  .app-body {
    padding: 14px;
  }

  .panel {
    padding: 14px;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .kpi-grid,
  .three-grid,
  .gallery-grid,
  .use-case-strip,
  .kanban,
  .calendar {
    grid-template-columns: 1fr;
  }

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

  .bar-chart {
    min-height: 170px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 100%;
  }
}
