:root {
  --ink: #061a40;
  --navy: #08275f;
  --blue: #0b64ce;
  --sky: #dff3ff;
  --teal: #0f9f8f;
  --green: #22a46f;
  --amber: #c47a08;
  --gold: #f3b53b;
  --red: #d9564a;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --line: #d4deed;
  --soft: #eef4fb;
  --muted: #66738a;
  --shadow: 0 18px 50px rgba(9, 35, 74, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(12, 100, 206, 0.08), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(243, 181, 59, 0.2), transparent 26%),
    var(--paper);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1760px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 26px 0 30px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  min-height: 250px;
  padding: 36px 40px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 24, 59, 0.98), rgba(8, 39, 95, 0.9)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
  pointer-events: none;
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin-top: 10px;
  font-size: clamp(2rem, 4.6vw, 4.9rem);
  line-height: 1;
  font-weight: 900;
}

.hero-text {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  min-width: max-content;
}

.primary-action,
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.primary-action {
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.icon-action {
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.icon-action.compact {
  width: 40px;
  height: 40px;
  color: var(--navy);
  background: var(--soft);
  border-color: var(--line);
}

.primary-action:hover,
.icon-action:hover {
  transform: translateY(-2px);
}

.control-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(9, 35, 74, 0.06);
  backdrop-filter: blur(14px);
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scenario-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.scenario-tab.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.speed-control {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 220px) 54px;
  gap: 10px;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.speed-control input {
  accent-color: var(--blue);
}

.workflow-panel {
  position: relative;
  margin-top: 18px;
  padding-top: 34px;
}

.feedback-loop {
  position: absolute;
  top: 0;
  left: 36%;
  right: 7%;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 28px;
  color: var(--amber);
  border-top: 2px dashed var(--amber);
  font-weight: 900;
}

.feedback-loop::before,
.feedback-loop::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 14px;
  height: 14px;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
}

.feedback-loop::before {
  left: 0;
  transform: translate(-1px, 3px) rotate(-45deg);
}

.feedback-loop::after {
  right: 0;
  transform: translate(1px, 3px) rotate(-45deg);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 14px;
}

.workflow-card {
  position: relative;
  display: block;
  min-height: 116px;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(9, 35, 74, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.workflow-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translateY(-50%);
}

.workflow-card:last-child::after {
  display: none;
}

.workflow-card.active {
  background: var(--gold);
  border-color: var(--amber);
  box-shadow: 0 18px 46px rgba(196, 122, 8, 0.28);
  transform: translateY(-5px);
}

.workflow-card.active::after {
  background: var(--gold);
}

.workflow-card.complete {
  border-color: rgba(34, 164, 111, 0.55);
}

.workflow-card.active.complete {
  border-color: var(--amber);
}

.workflow-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 116px;
  height: 100%;
  padding: 16px 14px;
  color: #fff;
  background: transparent;
}

.workflow-step {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.workflow-card.active .workflow-head {
  color: var(--ink);
}

.workflow-card.active .workflow-step {
  color: var(--ink);
  background: var(--gold);
  border-color: rgba(6, 26, 64, 0.78);
  box-shadow: 0 0 0 3px rgba(6, 26, 64, 0.18);
}

.workflow-head h3 {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.34rem);
  line-height: 1.15;
}

.workflow-head span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.workflow-card.active .workflow-head span {
  color: rgba(6, 26, 64, 0.72);
}

.workflow-body {
  padding: 14px 16px 12px;
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  color: var(--navy);
  background: linear-gradient(145deg, #eef5ff, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-icon svg {
  width: 27px;
  height: 27px;
}

.workflow-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  position: relative;
  padding-left: 14px;
  color: #172b4d;
  font-size: clamp(0.86rem, 0.9vw, 0.98rem);
  line-height: 1.35;
  font-weight: 600;
}

.workflow-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--navy);
  border-radius: 50%;
}

.workflow-value {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  color: var(--navy);
  background: #eaf2fc;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.workflow-value span {
  display: block;
  margin-top: 2px;
  color: #31517f;
  font-size: 0.86rem;
  font-weight: 700;
}

.message-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(460px, 1.28fr);
  gap: 18px;
  margin-top: 18px;
}

.case-panel,
.message-console {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(9, 35, 74, 0.08);
}

.case-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.sarah-site-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  color: #1a1a2e;
  background:
    radial-gradient(circle at 84% 18%, rgba(124, 92, 191, 0.2), transparent 28%),
    linear-gradient(145deg, #fbf8ff 0%, #f1eaf7 62%, #eaddea 100%);
  border-color: rgba(124, 92, 191, 0.18);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(82, 58, 112, 0.16);
  font-family: "DM Sans", "Inter", "Noto Sans SC", system-ui, sans-serif;
}

.sarah-site-card::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -88px;
  width: 260px;
  height: 260px;
  background: rgba(124, 92, 191, 0.12);
  border-radius: 50%;
  filter: blur(2px);
}

.sarah-brand-row,
.sarah-hero-copy,
.sarah-site-card .case-tags {
  position: relative;
  z-index: 1;
}

.sarah-brand-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.sarah-brand-row:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.sarah-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  background: #eaddea;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(26, 26, 46, 0.12);
}

.sarah-brand-row span,
.sarah-brand-row strong {
  display: block;
}

.sarah-brand-row span {
  color: rgba(26, 26, 46, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.sarah-brand-row strong {
  margin-top: 2px;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

.sarah-home-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  color: #7c5cbf;
  font-size: 0.78rem;
  font-weight: 900;
}

.sarah-home-link svg {
  width: 14px;
  height: 14px;
}

.sarah-hero-copy {
  display: grid;
  gap: 12px;
}

.sarah-badge {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: rgba(26, 26, 46, 0.68);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(26, 26, 46, 0.13);
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(26, 26, 46, 0.08);
  font-size: 0.88rem;
  font-weight: 900;
}

.case-panel h2,
.message-console h2 {
  margin-top: 4px;
  font-size: clamp(1.26rem, 1.7vw, 1.85rem);
}

.sarah-site-card h2 {
  max-width: 520px;
  margin: 0;
  color: #1a1a2e;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
}

.sarah-title-line {
  margin: -4px 0 0;
  color: rgba(26, 26, 46, 0.45);
  font-size: clamp(1.7rem, 3.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.sarah-hero-link {
  display: block;
  width: 100%;
  margin: 4px 0 2px;
  color: inherit;
  text-decoration: none;
}

.sarah-hero-shot {
  width: 100%;
  aspect-ratio: 1.56;
  object-fit: cover;
  object-position: center;
  background: #eaddea;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(82, 58, 112, 0.16);
}

.case-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.sarah-site-card p:not(.sarah-title-line) {
  max-width: 640px;
  color: rgba(26, 26, 46, 0.58);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 800;
}

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

.case-tags span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 900;
}

.sarah-site-card .case-tags span {
  color: #1a1a2e;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(26, 26, 46, 0.12);
  box-shadow: 0 8px 22px rgba(26, 26, 46, 0.07);
}

.case-tags svg {
  color: #7c5cbf;
}

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

.channel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.recipient-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(220px, 0.86fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recipient-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
  font-weight: 900;
}

.recipient-row strong,
.recipient-row span,
.recipient-row small {
  display: block;
}

.recipient-row strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.recipient-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.recipient-row small {
  color: #31517f;
  line-height: 1.35;
  font-size: 0.78rem;
  font-weight: 800;
}

.typed-card {
  min-height: 330px;
  margin-top: 16px;
  padding: 20px;
  color: #dce9ff;
  background:
    linear-gradient(145deg, rgba(6, 26, 64, 0.98), rgba(8, 39, 95, 0.96)),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.typed-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.typed-card p {
  min-height: 260px;
  margin: 18px 0 0;
  color: #ffffff;
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(1rem, 1.12vw, 1.16rem);
  font-weight: 800;
  line-height: 1.75;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  white-space: pre-wrap;
}

.typed-card p::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--gold);
  vertical-align: -0.2em;
  animation: cursorBlink 0.8s steps(2, start) infinite;
}

.linkedin-window {
  margin-top: 16px;
  overflow: hidden;
  background: #f3f2ef;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(6, 26, 64, 0.12);
}

.linkedin-browser-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  background: #eef2f6;
  border-bottom: 1px solid #d7e0ea;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  background: #c7cfdb;
  border-radius: 50%;
}

.browser-dots span:first-child {
  background: #ef6a5b;
}

.browser-dots span:nth-child(2) {
  background: #f3c64f;
}

.browser-dots span:nth-child(3) {
  background: #63c174;
}

.linkedin-url {
  min-height: 24px;
  padding: 3px 10px;
  color: #52616f;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.linkedin-topbar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #d7e0ea;
}

.linkedin-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #0a66c2;
  border-radius: 5px;
  font-size: 1.05rem;
  font-weight: 900;
}

.linkedin-search {
  min-height: 34px;
  padding: 8px 12px;
  color: #34445a;
  background: #eef3f8;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.linkedin-nav {
  display: flex;
  gap: 8px;
}

.linkedin-nav span {
  width: 26px;
  height: 26px;
  background: #eef3f8;
  border-radius: 6px;
}

.linkedin-surface {
  min-height: 330px;
  padding: 14px;
}

.linkedin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.linkedin-layout.search-layout,
.linkedin-layout.messaging-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}

.linkedin-sidebar,
.linkedin-message-list,
.linkedin-feed-card {
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(6, 26, 64, 0.06);
}

.linkedin-sidebar,
.linkedin-message-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
}

.linkedin-sidebar strong {
  color: #172b4d;
  font-size: 0.9rem;
}

.linkedin-sidebar span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.linkedin-sidebar button {
  min-height: 30px;
  padding: 0 8px;
  color: #0a66c2;
  background: #eef3f8;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: left;
}

.linkedin-feed-card {
  padding: 14px;
}

.linkedin-card-head,
.linkedin-post-author,
.linkedin-comment,
.active-thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.linkedin-card-head {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.linkedin-chip {
  min-width: 74px;
  padding: 5px 8px;
  color: #0a66c2;
  background: #eaf4ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.linkedin-chip.waiting {
  color: #946200;
  background: #fff4d6;
}

.linkedin-chip.typing {
  color: #7c5cbf;
  background: #f1eaf7;
}

.linkedin-chip.sent {
  color: #0b7a53;
  background: #e8f7ef;
}

.linkedin-search-query,
.linkedin-composer-output,
.linkedin-summary,
.linkedin-chat-bubble {
  color: #172b4d;
  white-space: pre-wrap;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.linkedin-search-query {
  min-height: 86px;
  padding: 12px;
  background: #eef3f8;
  border-radius: 8px;
}

.linkedin-person-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.linkedin-person-result strong,
.linkedin-post-author strong,
.linkedin-chat-head strong,
.active-thread strong,
.linkedin-message-list strong {
  display: block;
  color: #172b4d;
  font-size: 0.9rem;
}

.linkedin-person-result span,
.linkedin-post-author span,
.linkedin-chat-head span,
.active-thread span,
.linkedin-message-list span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.linkedin-person-result small {
  display: block;
  margin-top: 7px;
  color: #4b5f7a;
  font-size: 0.74rem;
  font-weight: 800;
}

.linkedin-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #0a66c2;
  border-radius: 50%;
  font-weight: 900;
}

.linkedin-avatar.sarah-mini {
  background: #7c5cbf;
}

.linkedin-post-text {
  margin: 12px 0;
  color: #172b4d;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.linkedin-actions {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  color: #64748b;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.78rem;
  font-weight: 900;
}

.linkedin-comment {
  margin-top: 12px;
  padding: 10px;
  background: #f3f6f8;
  border-radius: 12px;
}

.linkedin-comment p {
  margin: 4px 0 0;
  color: #172b4d;
  white-space: pre-wrap;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.linkedin-composer-output {
  min-height: 170px;
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.linkedin-post-cta {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 13px;
  color: #fff;
  background: #0a66c2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.linkedin-message-list > div {
  padding: 9px;
  border-radius: 8px;
}

.linkedin-message-list .active-thread {
  background: #eef3f8;
}

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

.linkedin-chat-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.sarah-bubble {
  justify-self: end;
  max-width: 88%;
  min-height: 150px;
  padding: 13px;
  color: #fff;
  background: #0a66c2;
  border-radius: 16px 16px 4px 16px;
}

.linkedin-send-button {
  justify-self: end;
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: #0a66c2;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.linkedin-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.linkedin-insight-grid div {
  padding: 10px;
  background: #eef3f8;
  border-radius: 8px;
}

.linkedin-insight-grid span,
.linkedin-insight-grid strong {
  display: block;
}

.linkedin-insight-grid span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.linkedin-insight-grid strong {
  margin-top: 3px;
  color: #0a66c2;
  font-size: 1.1rem;
  font-weight: 900;
}

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

.history-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: slideIn 0.3s ease both;
}

.history-item span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
}

.history-item strong,
.history-item small {
  display: block;
}

.history-item strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.history-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.ops-panel {
  min-height: 420px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(9, 35, 74, 0.08);
}

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

.panel-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.26rem, 1.6vw, 1.72rem);
}

.live-badge,
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--green);
  background: #e8f8f0;
  border: 1px solid #bde8d3;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-badge {
  gap: 7px;
}

.live-badge span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
}

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

.signal-card {
  display: grid;
  min-height: 98px;
  padding: 12px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-card svg {
  color: var(--blue);
}

.signal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.signal-card strong {
  font-size: 1.55rem;
  font-weight: 900;
}

.activity-stream {
  display: grid;
  gap: 10px;
  max-height: 285px;
  margin-top: 18px;
  overflow: hidden;
}

.activity-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  animation: slideIn 0.35s ease both;
}

.activity-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.activity-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.activity-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.activity-tag {
  padding: 5px 8px;
  color: var(--blue);
  background: #e8f1ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.lead-list {
  display: grid;
  gap: 10px;
  max-height: 346px;
  overflow: hidden;
}

.lead-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: slideIn 0.35s ease both;
}

.lead-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
  font-weight: 900;
}

.lead-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.lead-card span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lead-score {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  color: var(--navy);
  background: #fff8e8;
  border: 1px solid #f5d48a;
  border-radius: 8px;
  font-weight: 900;
}

.foundation-band {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  background: rgba(255, 251, 242, 0.94);
  border: 2px solid rgba(196, 122, 8, 0.5);
  border-radius: 8px;
}

.foundation-title {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--amber);
  font-size: 1.18rem;
  font-weight: 900;
}

.foundation-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.foundation-items div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  color: var(--navy);
  border-left: 1px solid rgba(196, 122, 8, 0.25);
  padding-left: 14px;
  font-weight: 800;
}

.foundation-items svg {
  color: var(--navy);
  width: 32px;
  height: 32px;
}

.closing-line {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  margin: 22px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
  text-align: center;
}

.closing-line::before,
.closing-line::after {
  content: "";
  width: 90px;
  height: 2px;
  background: var(--gold);
}

.run-pulse {
  animation: activeGlow 0.8s ease;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.84);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

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

@keyframes spinReverse {
  to {
    transform: rotate(-376deg);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes activeGlow {
  0% {
    box-shadow: 0 0 0 rgba(243, 181, 59, 0);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(243, 181, 59, 0.22);
  }

  100% {
    box-shadow: 0 0 0 rgba(243, 181, 59, 0);
  }
}

@keyframes cursorBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1320px) {
  .workflow-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  .workflow-card::after {
    display: none;
  }

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

  .message-lab {
    grid-template-columns: 1fr;
  }

  .lead-panel {
    grid-column: 1 / -1;
  }

  .foundation-band,
  .foundation-items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 24px, 760px);
    padding-top: 12px;
  }

  .hero-band {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .control-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .speed-control {
    grid-template-columns: auto auto 1fr 54px;
  }

  .workflow-grid,
  .operations-grid,
  .message-lab,
  .foundation-band,
  .foundation-items {
    grid-template-columns: 1fr;
  }

  .feedback-loop {
    position: static;
    margin-bottom: 8px;
    border-top: 0;
  }

  .feedback-loop::before,
  .feedback-loop::after {
    display: none;
  }

  .workflow-panel {
    padding-top: 0;
  }

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

  .recipient-row,
  .message-history,
  .linkedin-layout.search-layout,
  .linkedin-layout.messaging-layout,
  .linkedin-insight-grid {
    grid-template-columns: 1fr;
  }

  .recipient-avatar {
    width: 42px;
    height: 42px;
  }

  .foundation-items div {
    border-left: 0;
    border-top: 1px solid rgba(8, 39, 95, 0.12);
  }

  .closing-line::before,
  .closing-line::after {
    width: 34px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 2.15rem;
  }

  .primary-action {
    width: 100%;
  }

  .signal-cards {
    grid-template-columns: 1fr;
  }

  .scenario-tab {
    width: 100%;
    justify-content: center;
  }

  .speed-control {
    grid-template-columns: auto 1fr;
  }

  .speed-control input,
  .speed-control span {
    grid-column: 1 / -1;
  }

  .activity-item,
  .lead-card {
    grid-template-columns: 42px 1fr;
  }

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

  .activity-tag,
  .lead-score {
    grid-column: 2;
    justify-self: start;
  }
}
