:root {
  --maroon: #7b0f32;
  --maroon-deep: #4b1025;
  --maroon-soft: #f6e8ee;
  --green: #2f756a;
  --teal: #2f756a;
  --green-deep: #245f56;
  --green-soft: #e7f4f1;
  --ink: #24151b;
  --ink-soft: #6f6066;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --muted: #f3efed;
  --line: #e7dedb;
  --warning: #9b6424;
  --warning-soft: #fff2dd;
  --danger: #b64255;
  --danger-soft: #fae6eb;
  --success: #287365;
  --shadow: 0 16px 38px rgba(75, 16, 37, 0.08);
  --radius: 14px;
  --sidebar-width: 276px;
  --sidebar-collapsed-width: 76px;
  --assistant-width: 362px;
  font-family: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
  accent-color: var(--green-deep);
}

::selection {
  background: var(--maroon);
  color: #fff;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(91, 159, 145, 0.55);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--maroon);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100dvh;
}

.demo-introduction {
  position: fixed;
  inset: 0;
  z-index: 90;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(20px, 4vw, 56px);
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 117, 106, 0.18), transparent 23rem),
    linear-gradient(135deg, #fbfaf8 0%, #f7edf0 100%);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.demo-introduction.is-dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--maroon);
  font-size: 19px;
  letter-spacing: -0.03em;
}

.intro-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-color: var(--maroon);
  background: #fff;
}

.intro-layout {
  width: min(1110px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(34px, 8vw, 128px);
  align-items: center;
  margin: clamp(24px, 6vh, 70px) auto 0;
}

.intro-eyebrow {
  margin-bottom: 13px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.intro-assistant {
  max-width: 680px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--maroon-line, #ead6de);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.intro-assistant-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.intro-assistant p {
  margin: 0;
  color: var(--ink-soft);
}

.intro-assistant p + p {
  margin-top: 12px;
}

.intro-start {
  min-width: 148px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.intro-flow {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-flow ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 750;
}

.intro-flow li.active { color: var(--maroon); }

.intro-flow li span {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
}

.intro-connections {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.intro-connections span,
.intro-connections small {
  width: 100%;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.intro-connections strong {
  padding: 6px 9px;
  border: 1px solid var(--green-line, #c7e5df);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12px;
}

.tour-dim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(34, 21, 54, 0.35);
  pointer-events: none;
}

.tour-target-active {
  position: relative;
  z-index: 45;
  outline: 3px solid var(--teal);
  outline-offset: 5px;
  border-radius: 12px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.92), 0 12px 36px rgba(34, 21, 54, 0.22);
}

/* Routed views normally reveal with transform/filter animation. Those properties
   create a stacking context and would trap a target beneath the tour dimmer. */
body.tour-active .view-container > * {
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

#tour-root { position: static; }

.tour-card,
.tour-resume {
  position: fixed;
  z-index: 50;
}

.tour-card {
  right: 28px;
  bottom: 28px;
  width: min(390px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 56px rgba(36, 21, 27, 0.3);
}

.tour-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.tour-card > p:not(.tour-progress) {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.tour-progress {
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tour-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-deep) !important;
  font-size: 13px;
}

.tour-actions,
.tour-utility {
  display: flex;
  gap: 9px;
}

.tour-actions { justify-content: space-between; }

.tour-utility {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tour-utility button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: underline;
}

.tour-retry { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); }

.tour-retry div { display: flex; gap: 10px; margin-top: 16px; }

.tour-resume {
  right: 24px;
  bottom: 24px;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: var(--maroon);
  color: #fff;
  font-weight: 850;
  box-shadow: var(--shadow);
}

.review-draft {
  min-height: 128px;
  resize: vertical;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar-collapsed-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 14px 18px;
  background: var(--maroon);
  color: #fff;
  box-shadow: 10px 0 26px rgba(36, 21, 27, 0);
  transition: width 190ms ease, box-shadow 190ms ease;
}

.sidebar:hover,
.sidebar:focus-within {
  width: var(--sidebar-width);
  box-shadow: 10px 0 26px rgba(36, 21, 27, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--maroon);
}

.brand-mark span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--green) 0 18deg, transparent 18deg 36deg),
    conic-gradient(from 45deg, var(--green) 0 18deg, transparent 18deg 36deg);
}

.brand strong,
.brand small {
  display: block;
  transition: opacity 140ms ease;
}

.brand strong {
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: #fff;
  color: var(--maroon);
}

.nav-symbol {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.nav-symbol svg,
.icon svg,
.side-action-symbol svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  transition: opacity 140ms ease;
}

.nav-label {
  transition: opacity 140ms ease;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  width: 100%;
}

.demo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.side-action,
.ghost-button,
.button {
  min-height: 42px;
  border-radius: 9px;
  border: 0;
  padding: 0 15px;
  font-weight: 850;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}

.side-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  white-space: nowrap;
}

.side-action:hover {
  background: rgba(255, 255, 255, 0.17);
}

.side-action-start {
  background: #fff;
  border-color: #fff;
  color: var(--maroon);
}

.side-action-start:hover {
  background: #f8eaf0;
}

.side-action-symbol {
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.side-action-label {
  transition: opacity 140ms ease;
}

@media (min-width: 881px) {
  .sidebar:not(:hover):not(:focus-within) .brand {
    justify-content: center;
    gap: 0;
    padding: 0 0 28px;
  }

  .sidebar:not(:hover):not(:focus-within) .brand > div:last-child,
  .sidebar:not(:hover):not(:focus-within) .nav-label,
  .sidebar:not(:hover):not(:focus-within) .nav-count,
  .sidebar:not(:hover):not(:focus-within) .demo-pill,
  .sidebar:not(:hover):not(:focus-within) .side-action-label {
    display: none;
  }

  .sidebar:not(:hover):not(:focus-within) .nav-item,
  .sidebar:not(:hover):not(:focus-within) .side-action {
    justify-content: center;
    gap: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .sidebar:not(:hover):not(:focus-within) .sidebar-footer {
    padding-right: 0;
    padding-left: 0;
  }
}

.main-content {
  min-width: 0;
  margin-left: var(--sidebar-collapsed-width);
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 36px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.context-label {
  margin: 0 0 4px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.topbar-subtitle { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connected-systems {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #e8e0e2;
  border-radius: 12px;
  background: #fff;
  white-space: nowrap;
}

.connected-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 10px 0 6px; color: #8f8187; font-size: 11px; font-weight: 750; }
.connected-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.app-chip { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 0; border-left: 1px solid #eee8e8; border-radius: 0; background: transparent; color: #594b51; font-size: 11px; font-weight: 800; transition: background 140ms ease; }
.app-chip:hover { background: #faf6f7; }
.app-chip b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; }
.app-chip.pay4me b { background: #fae8ef; color: #b84070; }.app-chip.hubspot b { background: #fff0e6; color: #df7a48; }.app-chip.ats b, .app-chip.calendar b { background: #e9f3ff; color: #377eb9; }
.more-apps { min-width: 40px; justify-content: center; padding: 3px 8px; color: var(--maroon); background: #fffafb; }

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--maroon);
}

.ghost-button:hover {
  background: var(--maroon-soft);
}

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

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  font-size: 13px;
}

.profile small {
  color: var(--ink-soft);
  font-size: 11px;
}

.avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 900;
  font-size: 12px;
}

.mobile-menu {
  display: none;
}

.view-container {
  max-width: 1580px;
  padding: 28px 36px 46px;
}

.home-dashboard { max-width: 1360px; }
.sophie-workflow { max-width: 1160px; }.sophie-breadcrumb { margin-bottom: 16px; color: #937d85; font-size: 11px; }.sophie-breadcrumb span { margin: 0 8px; color: #d4c7cb; }.sophie-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }.sophie-title-row h2 { margin: 0 0 4px; font-size: 27px; letter-spacing: -.04em; }.sophie-title-row p { margin: 0; color: var(--ink-soft); font-size: 13px; }.sophie-title-row > small { padding-top: 8px; color: #a5959b; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }.workflow-steps { display: flex; justify-content: center; gap: clamp(16px, 5vw, 60px); margin: 26px 0; padding: 0; list-style: none; }.workflow-steps li { display: flex; align-items: center; gap: 8px; color: #a69ba0; font-size: 11px; font-weight: 750; }.workflow-steps b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #eff0f2; color: #9b9ca1; font-size: 10px; }.workflow-steps .active { color: var(--maroon); font-weight: 900; }.workflow-steps .active b { background: var(--maroon); color: #fff; }.sophie-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 18px; align-items: start; }.signals-panel, .sophie-profile { border: 1px solid #e9e3e3; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(75, 16, 37, .035); }.signals-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }.signals-head h3 { margin: 0; font-size: 16px; }.signal-row { display: grid; grid-template-columns: 26px 1fr; gap: 13px; padding: 20px 22px; border-bottom: 1px solid #f0ebea; }.signal-row > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 900; }.signal-row > i.ats { background: #e8f3ff; color: #3981cb; }.signal-row > i.calendar { background: #e9f4ff; color: #498be2; }.signal-row > i.hubspot { background: #fff1e7; color: #de7e4a; }.signal-row h4 { margin: 0 0 5px; font-size: 14px; }.signal-row p { margin: 0 0 7px; color: var(--ink-soft); font-size: 12px; }.signal-row small { color: #a29499; font-size: 10px; }.signals-panel .case-actions { padding: 18px 22px; margin: 0; }.sophie-profile { overflow: hidden; }.sophie-person { display: flex; align-items: center; gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); }.sophie-person > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #fae8ef; color: #b04068; font-size: 11px; }.sophie-person span { display: grid; }.sophie-person strong { font-size: 13px; }.sophie-person small { color: var(--ink-soft); font-size: 10px; }.sophie-profile dl { margin: 0; padding: 8px 18px; }.sophie-profile dl div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f2eeee; font-size: 11px; }.sophie-profile dt { color: #998c92; }.sophie-profile dd { margin: 0; color: #47363c; font-weight: 850; text-align: right; }.control-note { margin: 16px; padding: 13px; border-radius: 10px; background: #f7fbfa; }.control-note b { color: var(--green-deep); font-size: 12px; }.control-note p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; }
.workflow-steps .complete { color: #8faea7; }.workflow-steps .complete b { background: #dcf4eb; color: #4aa98e; }.review-layout { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(280px, .85fr); gap: 18px; align-items: start; }.review-panel, .review-profile { overflow: hidden; border: 1px solid #e9e3e3; border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(75, 16, 37, .035); }.review-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }.review-panel-head h3 { margin: 0; font-size: 16px; }.review-panel-head small { padding: 4px 7px; border-radius: 5px; background: #f4f2f2; color: #999095; font-size: 10px; }.review-panel .prepared-list { gap: 0; }.review-panel .prepared-action { align-items: start; border: 0; border-bottom: 1px solid #eee8e7; border-radius: 0; box-shadow: none; padding: 20px 22px; }.review-panel .prepared-action > div:first-child { min-width: 0; }.review-panel .prepared-action h3 { margin-top: 10px; }.review-panel .prepared-controls { justify-content: flex-start; margin-top: 14px; }.review-panel .prepared-controls .button { min-height: 29px; padding: 0 10px; font-size: 11px; }.button.is-approved { border-color: var(--green-line, #c7e5df); background: var(--green-soft); color: var(--green-deep); }.review-panel .review-footer { margin: 0; border-radius: 0; background: #fff; color: #95878d; font-size: 11px; }.review-profile .sophie-person { padding: 18px; }.review-profile dl { margin: 0; padding: 8px 18px; }.review-profile dl div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f2eeee; font-size: 11px; }.review-profile dt { color: #998c92; }.review-profile dd { margin: 0; color: #47363c; font-weight: 850; text-align: right; }.review-demo-note { margin: 16px; padding: 12px; border-radius: 8px; background: #f5f7f8; color: #9b9296; font-size: 10px; }
.execution-workflow { max-width: 930px; }.execution-card { width: min(544px, 100%); margin: 24px auto 0; overflow: hidden; border: 1px solid #e7e3e2; border-radius: 13px; background: #fff; box-shadow: 0 7px 22px rgba(75, 16, 37, .06); }.execution-head { padding: 26px 20px 28px; text-align: center; }.execution-head > b { display: grid; width: 28px; height: 28px; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: #4bb397; font-size: 27px; }.execution-head h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.035em; }.execution-head p { margin: 0; color: var(--ink-soft); font-size: 12px; }.execution-card .execution-list { gap: 0; padding: 0 20px; }.execution-card .execution-list div { min-height: 40px; padding: 9px 10px; border: 0; border-top: 1px solid #f0eceb; border-radius: 0; background: transparent; }.execution-card .execution-list b { width: 15px; height: 15px; background: #50b79b; font-size: 9px; }.execution-card .execution-list span { font-size: 12px; font-weight: 800; }.execution-card .execution-list i { width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; border-radius: 5px; background: #e9f3ff; color: #3f82c9; font-style: normal; font-size: 10px; }.execution-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 13px 16px; border-top: 1px solid var(--line); }.execution-footer small { color: #9e9297; font-size: 10px; }.execution-footer .button { min-height: 31px; font-size: 11px; }
.case-page { max-width: 1040px; }.case-hero { margin-bottom: 20px; padding: 28px; border-radius: 16px; background: linear-gradient(125deg, #fff5f8, #f4fbf9); border: 1px solid var(--line); }.case-hero h2 { margin: 0 0 9px; font-size: 29px; letter-spacing: -.04em; }.case-hero p:last-child { max-width: 720px; margin: 0; color: var(--ink-soft); }.context-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.context-card, .prepared-action { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.context-card > span, .source-label { display: inline-block; padding: 4px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green-deep); font-size: 10px; font-weight: 900; }.context-card h3, .prepared-action h3 { margin: 11px 0 6px; font-size: 15px; }.context-card p, .prepared-action p { margin: 0; color: var(--ink-soft); font-size: 13px; }.case-actions { display: flex; gap: 10px; margin-top: 22px; }.prepared-list { display: grid; gap: 11px; }.prepared-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.prepared-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.prepared-controls > button:not(.button) { border: 0; background: transparent; color: var(--maroon); font-size: 12px; font-weight: 800; text-decoration: underline; }.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 17px 20px; border-radius: 12px; background: var(--maroon-soft); color: var(--maroon); font-size: 13px; font-weight: 800; }.execution-list { display: grid; gap: 9px; }.execution-list div { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--green-line, #c7e5df); border-radius: 11px; background: #f5fcfa; }.execution-list b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }.execution-list small { margin-left: auto; color: var(--green-deep); font-weight: 800; }
.home-subtitle { margin: -11px 0 24px; color: var(--ink-soft); font-size: 15px; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.home-metric { min-height: 96px; display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid #f0e8e8; border-radius: 13px; }
.home-metric.rose { background: #fff5f7; }.home-metric.blue { background: #f0f7ff; }.home-metric.mint { background: #effaf6; }.home-metric.amber { background: #fff8ec; }
.home-metric i, .home-action > i { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 13px; font-style: normal; font-size: 19px; }
.home-metric.rose i, .home-action > i.rose { background: #ffe8ee; color: #eb5d7a; }.home-metric.blue i, .home-action > i.blue { background: #e2f1ff; color: #498be2; }.home-metric.mint i, .home-action > i.mint { background: #e1f7ef; color: #39ad92; }.home-metric.amber i, .home-action > i.amber { background: #fff0d6; color: #e99e2e; }
.home-metric > strong { font-size: 27px; line-height: 1; }.home-metric div { display: grid; gap: 4px; }.home-metric b { font-size: 13px; }.home-metric small { color: var(--ink-soft); font-size: 11px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .86fr); gap: 20px; align-items: start; }
.recently-completed { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 15px 18px; border: 1px solid var(--green-line, #c7e5df); border-radius: 13px; background: #f5fcfa; }.recently-completed > div { display: flex; align-items: center; gap: 11px; }.recently-completed span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }.recently-completed p { display: grid; gap: 3px; margin: 0; }.recently-completed strong { font-size: 13px; }.recently-completed small, .recently-completed em { color: var(--green-deep); font-size: 11px; font-style: normal; }.recently-completed em { font-weight: 800; }
.home-panel { overflow: hidden; border: 1px solid #ede8e7; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(75, 16, 37, .035); }
.home-panel-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }.home-panel-head h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }.home-panel-head h2 span { color: var(--ink-soft); }.home-panel-head small, .home-panel-head button { color: #a38d94; font-size: 11px; }.home-panel-head button { border: 0; background: transparent; font-weight: 800; }
.action-list { display: grid; gap: 7px; padding: 12px; }.home-action { width: 100%; display: grid; grid-template-columns: 42px minmax(140px, 1fr) minmax(130px, .72fr) auto 18px; align-items: center; gap: 13px; min-height: 74px; padding: 9px 12px; border: 1px solid #f0e7e8; border-left: 3px solid #ffc46b; border-radius: 11px; background: #fff; color: var(--ink); text-align: left; }.home-action:first-child { border-left-color: #fb6d93; background: #fff8fa; }.home-action:hover { background: #fcf6f8; }.home-action > span { display: grid; gap: 3px; }.home-action strong { font-size: 13px; }.home-action small { color: var(--ink-soft); font-size: 11px; }.action-meta { color: #64545b; font-size: 11px; }.action-meta em { width: max-content; padding: 3px 8px; border-radius: 999px; background: #fff0f3; color: #ee7089; font-size: 10px; font-style: normal; }.action-apps { display: flex !important; color: #5a87c7; font-size: 12px; font-weight: 900; letter-spacing: 4px; }.arrow { color: #ad9da2; font-size: 24px; font-weight: 400; }
.schedule-list { padding: 8px 20px 17px; }.schedule-list > div { display: grid; grid-template-columns: 46px 1fr 24px; gap: 8px; align-items: start; min-height: 60px; padding: 13px 0; border-bottom: 1px solid #f3eeee; }.schedule-list time { color: #63545a; font-size: 11px; }.schedule-list span { display: grid; gap: 3px; padding-left: 12px; border-left: 1px solid #e8e1e2; position: relative; }.schedule-list span::before { content: ""; position: absolute; width: 6px; height: 6px; left: -4px; top: 4px; border-radius: 50%; background: #4cb99f; }.schedule-list b { font-size: 12px; }.schedule-list small { color: var(--ink-soft); font-size: 10px; }.schedule-list i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #eef6ff; color: #4287d0; font-style: normal; font-size: 11px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button:active,
.ghost-button:active,
.side-action:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--maroon);
  color: #fff;
}

.button-primary:hover {
  background: var(--maroon-deep);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--maroon);
}

.button-secondary:hover {
  background: var(--muted);
}

.button-success {
  background: var(--green-deep);
  color: #fff;
}

.button-success:hover {
  background: #255f57;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

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

.kpi-board-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.metric,
.panel,
.queue-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(75, 16, 37, 0.04);
}

.metric {
  position: relative;
  padding: 17px;
}

.configurable-metric {
  padding-right: 56px;
}

.metric-source {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--maroon);
  font-size: 10px;
  font-weight: 950;
}

.metric-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 29px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.metric small {
  color: var(--success);
  font-weight: 850;
  font-size: 11px;
}

.metric small.warning {
  color: var(--warning);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.75fr);
  gap: 20px;
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.overview-head {
  align-items: flex-start;
}

.overview-selects {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.overview-selects span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-body {
  padding: 18px;
}

.overview-dropdown {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 166px;
}

.overview-dropdown-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.overview-dropdown-button span:first-child {
  overflow: hidden;
  color: var(--ink);
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.overview-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: 220px;
  display: none;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-dropdown.open .overview-dropdown-menu {
  display: grid;
}

.overview-dropdown-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.overview-dropdown-option:hover {
  background: #fbf8f7;
}

.overview-dropdown-option span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.overview-dropdown-option.option-approval {
  background: var(--warning-soft);
  color: var(--warning);
}

.overview-dropdown-option.option-action {
  background: var(--danger-soft);
  color: var(--danger);
}

.overview-dropdown-option.option-update {
  background: var(--green-soft);
  color: var(--success);
}

.readiness-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.step {
  position: relative;
  min-height: 112px;
  padding: 13px 48px 13px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.step.done {
  border-color: #c7e5df;
  background: var(--green-soft);
}

.step.active {
  border-color: #e4b5c5;
  background: var(--maroon-soft);
}

.step strong,
.step small {
  display: block;
}

.step strong {
  margin-bottom: 8px;
  font-size: 13px;
}

.step small {
  color: var(--ink-soft);
  font-size: 11px;
}

.step.status-approval {
  border-color: #f0d28c;
  background: var(--warning-soft);
}

.step.status-action {
  border-color: #e6a8b5;
  background: var(--danger-soft);
}

.step.status-update {
  border-color: #c7e5df;
  background: var(--green-soft);
}

.overview-status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.empty-overview {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.trigger-card {
  width: 100%;
  appearance: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms ease;
}

.trigger-card:hover {
  border-color: #d7c4cc;
  box-shadow: 0 10px 24px rgba(75, 16, 37, 0.08);
}

.trigger-card:active {
  transform: translateY(1px);
}

.source-token {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(231, 222, 219, 0.88);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.source-bullhorn {
  background: #e8f0ff;
  color: #2454a6;
}

.source-easyflex {
  background: var(--green-soft);
  color: var(--green-deep);
}

.source-microsoft365 {
  background: #fff0d9;
  color: #9b6424;
}

.source-exact {
  background: var(--maroon-soft);
  color: var(--maroon);
}

.source-afas {
  background: #eef3ff;
  color: #314d8f;
}

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

.queue-list {
  display: grid;
  gap: 12px;
}

.queue-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
}

.queue-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--maroon-soft);
  color: var(--maroon);
  font-weight: 950;
}

.queue-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.queue-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success {
  background: var(--green-soft);
  color: var(--success);
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 14px;
  background: #fbf8f7;
  color: var(--ink-soft);
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td {
  padding: 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
}

.data-table tr {
  transition: background 140ms ease;
}

.data-table tr:hover {
  background: #fdfafa;
}

.entity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entity-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 950;
}

.entity strong,
.entity small {
  display: block;
}

.entity small {
  margin-top: 1px;
  color: var(--ink-soft);
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-card {
  padding: 14px;
}

.timeline-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.timeline-card p,
.fine-print {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.detail-banner {
  min-height: 168px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--maroon), #9b2550);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.detail-banner::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(91, 159, 145, 0.32);
}

.detail-banner h2 {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.detail-banner p {
  max-width: 690px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.84);
}

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

.connection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.connection-summary h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.summary-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.summary-counts span {
  min-width: 118px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf8f7;
  color: var(--ink-soft);
  font-size: 12px;
}

.summary-counts strong {
  display: block;
  color: var(--maroon);
  font-size: 22px;
  line-height: 1;
}

.connection-card {
  min-height: 184px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.connection-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.connector-mark {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--maroon);
  font-size: 11px;
  font-weight: 950;
}

.connector-logo {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  background: #fff;
}

.connector-initials {
  color: var(--maroon);
}

.connection-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.assistant {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  width: min(var(--assistant-width), calc(100vw - 24px));
  max-width: 100%;
  border-left: 1px solid var(--line);
  background: #fff;
  transform: translateX(0);
  box-shadow: -20px 0 45px rgba(36, 21, 27, 0.15);
  overflow-y: auto;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  will-change: transform;
}

.assistant.is-closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 28px));
}

.assistant-head {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.assistant-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.assistant-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.assistant-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.assistant-card h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.assistant-card p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--maroon);
  font-size: 22px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.toast strong {
  display: block;
  margin-bottom: 3px;
  color: var(--maroon);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(34, 21, 54, 0.48);
}

.modal-backdrop:has(.tour-target-active) { z-index: 45; }

.sophie-edit-backdrop {
  background: rgba(34, 40, 49, 0.42);
  backdrop-filter: blur(5px);
}

.sophie-edit-modal {
  width: min(400px, 100%);
  border-radius: 13px;
}

.sophie-edit-modal .modal-head { min-height: 64px; padding: 14px 16px; }
.sophie-edit-modal .modal-head h2 { padding-right: 0; font-size: 16px; }
.sophie-edit-modal .icon-button { width: 32px; height: 32px; border: 0; font-size: 20px; }
.sophie-edit-modal .modal-body { padding: 18px 16px 15px; overflow: visible; }
.sophie-edit-modal .review-draft { min-height: 125px; padding: 10px; border-radius: 6px; font-size: 11px; line-height: 1.45; }
.edit-save-note { margin: 11px 0 0; padding: 10px; border-radius: 6px; background: #f3f6f8; color: #9a9296; font-size: 10px; }
.sophie-edit-modal .modal-actions { padding: 14px 16px 16px; }.sophie-edit-modal .button { min-height: 31px; font-size: 11px; }

.trigger-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100dvh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 72px rgba(36, 21, 27, 0.22);
}

.modal-source-corner .source-token {
  top: 18px;
  right: 76px;
}

.modal-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  padding-right: 54px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.modal-body {
  overflow-y: auto;
  padding: 20px 22px;
}

.modal-body > p {
  color: var(--ink-soft);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.field-control {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.kpi-help {
  margin-top: 9px;
}

.kpi-option-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.kpi-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.kpi-option:hover {
  border-color: #d7c4cc;
  background: #fbf8f7;
}

.kpi-option input {
  margin-top: 2px;
}

.kpi-option strong,
.kpi-option small {
  display: block;
}

.kpi-option strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.kpi-option small {
  color: var(--ink-soft);
  font-size: 12px;
}

.evidence-block,
.suggestion-block {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.evidence-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.evidence-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.evidence-block li + li {
  margin-top: 6px;
}

.suggestion-block {
  background: #fbf8f7;
}

.suggestion-block p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Unified platform language: neutral work surfaces, one brand accent, and teal only for confirmed state. */
body { background: #f7f7f8; }
.demo-introduction { background: #f7f7f8; }
.topbar { background: #fff; }

.connected-systems,
.home-panel,
.signals-panel,
.sophie-profile,
.review-panel,
.review-profile,
.execution-card,
.context-card,
.prepared-action,
.case-hero,
.evidence-block,
.suggestion-block,
.trigger-modal {
  border-color: #e5e1e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(36, 21, 27, 0.035);
}

.case-hero { background: #fff; }

.app-chip.pay4me b,
.app-chip.hubspot b,
.app-chip.ats b,
.app-chip.calendar b,
.home-metric.rose i,
.home-metric.blue i,
.home-metric.mint i,
.home-metric.amber i,
.home-action > i.rose,
.home-action > i.blue,
.home-action > i.mint,
.home-action > i.amber,
.signal-row > i.ats,
.signal-row > i.calendar,
.signal-row > i.hubspot,
.sophie-person > b,
.source-bullhorn,
.source-easyflex,
.source-microsoft365,
.source-exact,
.source-afas {
  background: #f3f1f2;
  color: var(--maroon);
}

.home-metric.rose,
.home-metric.blue,
.home-metric.mint,
.home-metric.amber {
  border-color: #e5e1e2;
  background: #fff;
}

.home-action,
.home-action:first-child {
  border-color: #e7e2e3;
  border-left-color: #d9c7ce;
  background: #fff;
}

.home-action:first-child { border-left-color: var(--maroon); }
.home-action:hover { background: #fbfafb; }
.action-meta { color: #72646a; }
.action-meta em { background: #f5f1f2; color: var(--maroon); }
.action-apps { color: #897b81; }
.schedule-list i { background: #f3f1f2; color: var(--maroon); }
.schedule-list span::before { background: var(--green); }

.context-card > span,
.source-label,
.review-panel-head small,
.overview-status-pill {
  background: #f3f1f2;
  color: #6f6066;
}

.control-note,
.review-demo-note,
.edit-save-note {
  background: #f5f5f6;
  color: #776a70;
}

.control-note b { color: var(--ink); }
.workflow-steps .complete { color: var(--green-deep); }
.workflow-steps .complete b { background: #eaf4f1; color: var(--green-deep); }

.review-footer {
  background: #f7f4f5;
  color: var(--maroon);
}

.execution-card .execution-list div,
.execution-list div {
  border-color: #e5e1e2;
  background: #fff;
}

.execution-card .execution-list b,
.execution-list b,
.recently-completed span {
  background: var(--green);
}

.execution-card .execution-list i { background: #f3f1f2; color: var(--maroon); }
.recently-completed { border-color: #d9e8e4; background: #f5faf8; }

.step,
.step.status-approval,
.step.status-action,
.step.status-update {
  border-color: #e5e1e2;
  background: #fff;
}

.step.active { border-color: #d9c7ce; background: #f8f2f4; }
.step.done { border-color: #d9e8e4; background: #f5faf8; }
.badge.warning,
.badge.danger { background: #f5f1f2; color: var(--maroon); }

.tour-target-active {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.92), 0 12px 36px rgba(34, 21, 54, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .view-container > * {
    animation: reveal 260ms ease-out both;
  }

  @keyframes reveal {
    from {
      opacity: 0.2;
      transform: translateY(8px);
      filter: blur(2px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

@media (max-width: 1220px) {
  .connected-systems small,
  .connected-systems > span { display: none; }

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

  .home-action { grid-template-columns: 42px minmax(140px, 1fr) auto 18px; }
  .action-apps { display: none !important; }

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

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

@media (max-width: 880px) {
  .demo-introduction {
    padding: 18px;
  }

  .intro-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .intro-flow { display: none; }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: var(--sidebar-width);
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .tour-card {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: 48dvh;
    overflow: auto;
  }

  .sidebar .brand strong,
  .sidebar .brand small,
  .sidebar .nav-label,
  .sidebar .nav-count,
  .sidebar .demo-pill,
  .sidebar .side-action-label {
    opacity: 1 !important;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--maroon);
    font-weight: 850;
  }

  .topbar,
  .view-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile {
    display: none;
  }

  .connected-systems { max-width: 100%; overflow: hidden; }
  .connected-systems button { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr; }
  .sophie-layout, .review-layout { grid-template-columns: 1fr; }.workflow-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; }

  .dashboard-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .overview-head,
  .overview-selects {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-selects {
    width: 100%;
  }

  .queue-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .queue-card .button {
    grid-column: 1 / -1;
  }

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

  .connection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-counts {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .demo-introduction {
    padding: 14px;
  }

  .intro-layout {
    margin-top: 18px;
  }

  .intro-copy h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .intro-assistant { padding: 14px; font-size: 13px; }
  .intro-assistant p + p { margin-top: 8px; }

  .intro-assistant {
    grid-template-columns: 1fr;
  }

  .tour-card { padding: 17px; }

  .tour-actions { display: grid; grid-template-columns: 1fr; }

  .tour-actions .button { width: 100%; }

  .metric-grid,
  .readiness-track {
    grid-template-columns: 1fr;
  }

  .home-metrics { grid-template-columns: 1fr; }
  .home-action { grid-template-columns: 42px minmax(0, 1fr) 18px; }.action-meta { display: none !important; }
  .home-panel-head { padding: 0 14px; }
  .case-hero { padding: 20px; }.case-hero h2 { font-size: 24px; }.prepared-action, .review-footer { align-items: flex-start; flex-direction: column; }.prepared-controls { justify-content: flex-start; }
  .sophie-title-row h2 { font-size: 23px; }.sophie-title-row > small { display: none; }.signal-row { padding: 17px 14px; }.signals-head, .signals-panel .case-actions { padding-left: 14px; padding-right: 14px; }

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

  .assistant {
    width: 100%;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .trigger-modal {
    max-height: calc(100dvh - 24px);
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 680px;
  }

  .panel {
    overflow-x: auto;
  }
}
