:root {
  --color-bg: #F8FAFC;
  --color-bg-soft: #EEF4F8;
  --color-card: #FFFFFF;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-soft: #64748B;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-accent: #0F766E;
  --color-accent-soft: #CCFBF1;
  --color-border: #CBD5E1;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Compatibility aliases */
  --bg: var(--color-bg);
  --surface: var(--color-card);
  --surface-soft: var(--color-bg-soft);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --accent: var(--color-primary);
  --accent-soft: var(--color-accent-soft);
  --max-width: 1120px;
  --radius: 18px;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Premium-style content links for cards/article lists */
.card a,
.post-list a {
  color: #1E3A8A;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.card a:hover,
.post-list a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-card);
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container { width: min(var(--max-width), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark { margin: 0; }
.site-logo { display: block; width: clamp(100px, 15vw, 138px); height: auto; }

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.22rem 0;
}

.nav-list a[aria-current="page"],
.nav-list a:hover { color: var(--color-primary-hover); }

.nav-list a[aria-current="page"] {
  color: #1E3A8A;
  text-shadow: 0 1px 2px rgba(30, 58, 138, 0.22);
}

main { padding: var(--space-xl) 0 var(--space-2xl); }
main > :not([hidden]) + :not([hidden]) { margin-top: var(--space-2xl); }
main.container,
main.container.article {
  padding-top: 0;
}

.home-main { padding-top: 0; }
.home-main { padding-bottom: 0; }
.home-main > :not([hidden]) + :not([hidden]) { margin-top: 0; }
#testimonials-mount:empty {
  display: none;
}
.hero-shell {
  position: relative;
  z-index: 0;
  background: transparent;
}
.hero-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 100vw;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.16) 1px, transparent 1.5px) 0 0 / 28px 28px,
    linear-gradient(135deg, #e2e8f0 0%, #dbe4ee 100%);
  border-bottom: 0;
}
.hero-panel {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Inside a plain .home-band (no positioned text wrapper), sit behind the static heading/paragraph content */
.home-band > .hero-network {
  z-index: -1;
}

/* Scattered, unconnected input sources */
.hero-network .hn-inputs rect {
  fill: none;
  stroke: rgba(37, 99, 235, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 3 2.5;
  opacity: 0;
  animation: hn-appear 0.4s ease forwards;
}
.hero-network .hn-inputs rect:nth-child(1) { animation-delay: 0s; }
.hero-network .hn-inputs rect:nth-child(2) { animation-delay: 0.1s; }
.hero-network .hn-inputs rect:nth-child(3) { animation-delay: 0.2s; }

/* Lines connecting inputs into the system, one at a time */
.hero-network .hn-lines-in path {
  stroke: rgba(37, 99, 235, 0.5);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hn-draw 0.7s ease forwards;
}
.hero-network .hn-lines-in path:nth-child(1) { animation-delay: 0.5s; }
.hero-network .hn-lines-in path:nth-child(2) { animation-delay: 1.2s; }
.hero-network .hn-lines-in path:nth-child(3) { animation-delay: 1.9s; }

/* The automation hub: present from the start, goes active once all inputs have connected */
.hero-network .hn-hub {
  fill: var(--color-primary);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hn-appear 0.3s ease forwards 0.2s, hn-hub-pulse 2.2s ease-in-out infinite 2.6s;
}

/* Line from hub to the completed result, once processing is done */
.hero-network .hn-line-out {
  stroke: var(--color-primary);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hn-draw 0.7s ease forwards 2.7s;
}

/* The completion mark: pops in once, settles */
.hero-network .hn-done circle {
  fill: var(--color-primary);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hn-done-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 3.4s;
}
.hero-network .hn-check {
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hn-draw 0.35s ease forwards 3.7s;
}

@keyframes hn-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hn-appear {
  to { opacity: 1; }
}
@keyframes hn-hub-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes hn-done-pop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
  .hero-network { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-network .hn-inputs rect,
  .hero-network .hn-hub,
  .hero-network .hn-done circle,
  .hero-network .hn-check { animation: none; opacity: 1; }
  .hero-network .hn-lines-in path,
  .hero-network .hn-line-out { animation: none; stroke-dashoffset: 0; }
}

.hero-copy h1 {
  margin: 0 0 var(--space-md);
  max-width: 28ch;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1, h2, h3 {
  margin: 0 0 0.9rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-md); max-width: 72ch; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.24rem); }
.muted { color: var(--muted); }

.grid { display: grid; gap: var(--space-lg); }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-lg); }
.apps-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-lg); }
.post-list { display: grid; gap: var(--space-lg); }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-lg);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.card:has(a[href]):hover,
.card.card-interactive:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

/* Makes the whole card clickable: the link's ::after is stretched over
   the card via the card's `position: relative`, while the link text
   stays visible and normally styled. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card p { color: var(--muted); }

.card-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.card-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15); flex-shrink: 0; }
.card-header h3 { margin-bottom: 0.15rem; }
.card-header .muted { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background: var(--color-card);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-card);
}

.button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  background: var(--color-bg-soft);
}
.button-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-card);
  filter: none;
}
.button:active { transform: translateY(0); }
.button-secondary {
  background: var(--color-card);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button-secondary:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.app-store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.app-store-badges img { display: block; height: 44px; width: auto; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 1rem; }
.pill {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.84rem;
  padding: 0.2rem 0.58rem;
}

.band {
  border-top: 0;
  border-bottom: 0;
  background: var(--surface-soft);
  padding: 2rem 0;
}

.home-secondary h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.home-band {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-block: 0;
  position: relative;
  z-index: 0;
}
.home-band > :first-child { margin-top: 0; }
.home-band > :last-child { margin-bottom: 0; }
.tone-services,
.tone-why,
.tone-apps,
.tone-articles { background: transparent; }
.tone-solutions,
.tone-pilot { background: transparent; }
.tone-contact {
  background: transparent;
  color: var(--color-bg);
}
.home-band::before {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  top: -1px;
  bottom: -1px;
  width: 100vw;
  z-index: -1;
  background: var(--color-card);
}
.tone-solutions::before,
.tone-pilot::before { background: var(--color-bg-soft); }
.tone-services::before { background: linear-gradient(135deg, #e2e8f0 0%, #dbe4ee 100%); }
.home-main .tone-services::before { background: var(--color-card); }
.tone-articles::before { background: var(--color-bg-soft); }
.tone-contact::before { background: var(--color-text); }
.tone-contact p { color: #dbeafe; }
.tone-contact h2 { color: var(--color-bg); }
.tone-contact .button-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-card);
}
.container > section.home-band + section.home-band {
  margin-top: 0;
}
main.container > section + section,
main.container.article > section + section {
  margin-top: 0;
}
main.container > section:first-child,
main.container.article > section:first-child {
  margin-top: 0;
}
main.container > section.home-band:first-child::before,
main.container.article > section.home-band:first-child::before {
  background: linear-gradient(135deg, #e2e8f0 0%, #dbe4ee 100%);
}
.services-page .tone-solutions::before { background: var(--color-card); }
.services-page .tone-why::before { background: var(--color-bg-soft); }
.services-page .tone-pilot::before { background: var(--color-card); }
.services-page .tone-apps::before { background: var(--color-bg-soft); }
.services-page { padding-bottom: 0; }
.client-solutions-page { padding-bottom: 0; }
.client-solutions-page > section.home-band:first-child p { max-width: 46ch; }

/* Fixed-size variant for use inside a plain .home-band (variable height from text reflow) —
   scales to fit a set box in the corner instead of stretching/cropping to the band's full size. */
.hero-network--fixed {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;
  left: auto;
  bottom: auto;
  width: 230px;
  height: 203px;
}
@media (max-width: 1100px) {
  .hero-network--fixed { display: none; }
}
.our-apps-page { padding-top: 0; padding-bottom: 0; }
.our-apps-page .tone-solutions::before { background: var(--color-card); }
.our-apps-page .tone-why::before { background: var(--color-bg-soft); }
.our-apps-page .tone-pilot::before { background: var(--color-card); }

/* Fanned app-screenshot stack in the Our Apps hero — fixed corner box, sits behind the static heading/paragraph text. */
.app-shots {
  position: absolute;
  z-index: -1;
  top: 0.5rem;
  right: 1.75rem;
  width: 230px;
  height: 270px;
}
.app-shot {
  position: absolute;
  width: 95px;
  height: auto;
  border-radius: 14px;
  border: 4px solid #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  transition: transform 300ms ease;
}
.app-shots .shot-1 { top: 45px; left: 0; transform: rotate(-8deg); z-index: 1; }
.app-shots .shot-2 { top: 0; left: 68px; transform: rotate(5deg); z-index: 3; }
.app-shots .shot-3 { top: 52px; left: 130px; transform: rotate(-4deg); z-index: 2; }
.app-shots:hover .shot-1 { transform: rotate(-12deg) translateY(-6px); }
.app-shots:hover .shot-2 { transform: rotate(0deg) translateY(-10px); }
.app-shots:hover .shot-3 { transform: rotate(-1deg) translateY(-6px); }
@media (max-width: 1100px) {
  .app-shots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shot { transition: none; }
}
.blog-page { padding-top: 0; padding-bottom: 0; }
.blog-page .tone-solutions::before { background: var(--color-card); }
.blog-page .tone-why::before { background: var(--color-bg-soft); }
.about-page { padding-top: 0; padding-bottom: 0; }
.about-page > section.home-band { width: 100%; margin-inline: auto; }
.about-page .home-band > h1,
.about-page .home-band > h2,
.about-page .home-band > p,
.about-page .home-band > ul,
.about-page .home-band > a {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.about-page .home-band > a {
  display: inline-flex;
  margin-left: calc((100% - min(860px, 100%)) / 2);
  margin-right: 0;
}
.about-page .tone-solutions::before { background: var(--color-card); }
.about-page .tone-why::before { background: var(--color-bg-soft); }
.about-page .tone-pilot::before { background: var(--color-card); }
.about-page .tone-apps::before { background: var(--color-bg-soft); }
.about-page > section.home-band:nth-of-type(2)::before { background: var(--color-card); }
.about-page > section.home-band:nth-of-type(3)::before { background: var(--color-bg-soft); }
.about-page > section.home-band:nth-of-type(4)::before { background: var(--color-card); }
.about-page > section.home-band:nth-of-type(5)::before { background: var(--color-bg-soft); }
.about-page > section.home-band:nth-of-type(6)::before { background: var(--color-card); }
.about-page > section.home-band:nth-of-type(7)::before { background: var(--color-bg-soft); }
.contact-page { padding-top: 0; padding-bottom: 0; }
.contact-page .tone-solutions::before { background: var(--color-card); }
.contact-page .tone-why::before { background: var(--color-bg-soft); }
.contact-page .home-band > h1,
.contact-page .home-band > h2,
.contact-page .home-band > p,
.contact-page .home-band > form,
.contact-page .home-band > div {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.client-apps-section {
  padding-top: clamp(1.2rem, 2.6vw, 1.8rem);
  padding-bottom: clamp(1.2rem, 2.6vw, 1.8rem);
}

.updates-secondary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 1.1rem;
}

.pilot-cta-row,
.client-solutions-cta-row,
.section-link-row {
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

.updates-form { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.updates-form input,
.updates-form button,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button,
.admin-main input,
.admin-main select,
.admin-main textarea,
.admin-main button {
  font: inherit;
}

.updates-form input,
.contact-form input,
.contact-form select,
.contact-form textarea,
.admin-main input,
.admin-main select,
.admin-main textarea {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
}

.updates-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.admin-main input:focus,
.admin-main select:focus,
.admin-main textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

.updates-form input { flex: 1 1 230px; }
.updates-form button,
.contact-form button,
.admin-main button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--text);
  padding: 0.58rem 0.86rem;
  cursor: pointer;
}

.contact-form { display: grid; gap: 0.85rem; }
.contact-form label { display: grid; gap: 0.35rem; }
.contact-email-stack {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.article { max-width: 760px; }
.article ul { margin: 0 0 1rem 1.2rem; }
.article li + li { margin-top: 0.35rem; }
.article h2 { margin-top: 2rem; }
.article h4 { font-size: 1rem; margin: 1.1rem 0 0.5rem; font-family: "IBM Plex Sans", sans-serif; }

.screenshot-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.screenshot { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--color-card); }
.meta-list { display: flex; gap: 0.7rem 1.2rem; list-style: none; padding: 0; margin: 0.5rem 0 1rem; color: var(--color-text-soft); }
.feature-list { margin: 0 0 1rem; padding-left: 1.1rem; }

/* App page theming — per-app accent, applied via inline --app-accent on <main class="app-page"> */
.app-page.article { max-width: none; }
.app-page .eyebrow,
.app-page a { color: var(--app-accent, var(--color-primary)); }

.app-page h2 { font-weight: 800; }
.app-page .muted { opacity: 0.7; }
.app-page > section > p { max-width: none; }

.app-page .app-hero {
  margin: 0 0 var(--space-xl);
  padding: var(--space-xl);
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.app-page .app-hero .app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}
.app-page .app-hero .hero-copy { flex: 1 1 320px; }
.app-page .app-hero h1,
.app-page .app-hero .eyebrow,
.app-page .app-hero .lead { color: inherit; }

.app-page .pricing-box,
.app-page .feature-group {
  background: var(--color-card);
  border-radius: 20px;
  padding: var(--space-lg);
}
.app-page .feature-groups { display: grid; gap: var(--space-lg); }
.app-page .feature-group h3 { margin-top: 0; font-size: 1.05rem; }
.app-page .feature-group .feature-list:last-child { margin-bottom: 0; }

.app-page .screenshot { border-radius: 20px; }
.app-page .screenshot-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; }

.app-page .button {
  background: var(--app-accent, var(--color-primary));
  border: none;
  color: #fff;
}
.app-page .button:hover { filter: brightness(0.92); color: #fff; }

.app-page .status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

/* GiftCircles — soft bubble shapes, shadows instead of borders, pastel welcome-moment hero */
.gc-theme { --app-accent: #2e95f1; }
.gc-theme .app-hero {
  background: linear-gradient(135deg, #a8e6c1 0%, #a3ccf5 55%, #cfa8f5 100%);
  color: #1a2b4a;
}
.gc-theme .app-hero .lead { color: #4a5670; }
.gc-theme .pricing-box,
.gc-theme .feature-group,
.gc-theme .screenshot { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); }
.gc-theme .status-pill { background: rgba(255, 255, 255, 0.55); color: #1a2b4a; }

/* Exposia — flat, border-defined surfaces, slate + teal, no shadows */
.exposia-theme { --app-accent: #0F766E; }
.exposia-theme .app-hero { background: #0F766E; border: none; color: #FFFFFF; }
.exposia-theme .app-hero .lead { color: #CCFBF1; }
.exposia-theme .app-hero h1 { font-family: "IBM Plex Sans", sans-serif; font-weight: 700; }
.exposia-theme .pricing-box,
.exposia-theme .feature-group,
.exposia-theme .screenshot { border: 1px solid #E2E8F0; }
.exposia-theme .button:hover { background: #115E59; filter: none; }
.exposia-theme .status-pill { background: #FFFFFF; color: #0F766E; }

/* One Little Name — warm editorial plum/sage, Playfair Display headings, flat bordered surfaces */
.oln-theme { --app-accent: #6F355A; }
.oln-theme .app-hero {
  background: linear-gradient(135deg, #F0E1EA 0%, #FBE4E2 100%);
  border: 1px solid #E7DDE4;
  color: #282430;
}
.oln-theme .app-hero .lead { color: #6E6570; }
.oln-theme .app-hero h1,
.oln-theme .app-hero .eyebrow,
.oln-theme h2 { font-family: "Playfair Display", "IBM Plex Serif", Georgia, serif; }
.oln-theme .app-hero h1 { font-weight: 700; }
.oln-theme p,
.oln-theme li { font-family: "Inter", "IBM Plex Sans", sans-serif; }
.oln-theme .pricing-box,
.oln-theme .feature-group,
.oln-theme .screenshot { border: 1px solid #E7DDE4; background: #FFFFFF; box-shadow: none; }
.oln-theme .pricing-tier + .pricing-tier { margin-top: var(--space-lg); }
.oln-theme .pricing-tier h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.oln-theme .button:hover { background: #5B2B49; filter: none; }
.oln-theme .status-pill { background: #F0E1EA; color: #6F355A; }

.process-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}

.process-timeline li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-card);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.92rem;
}

.process-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.flow-step {
  position: relative;
}

.flow-step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.flow-step p {
  margin-bottom: 0.7rem;
}

.services-cta-section {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.site-footer { border-top: 1px solid var(--line); padding: var(--space-xl) 0; background: #e2e8f0; }
.footer-row { display: grid; gap: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
.footer-group h3 { margin: 0 0 0.5rem; font-size: 1rem; font-family: "IBM Plex Sans", sans-serif; }
.footer-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.footer-group a { color: var(--muted); text-decoration: none; }
.footer-group a:hover { color: var(--color-primary-hover); }

.admin-main { padding-top: 2rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.admin-form-grid .full { grid-column: 1 / -1; }
.admin-inline-check { display: flex; align-items: center; gap: 0.4rem; }
.admin-inline-check input { width: auto; }
.admin-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.admin-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--color-card); padding: 0.7rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr 1fr 1fr; }
  .process-flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  main { padding: var(--space-lg) 0 var(--space-xl); }
  main > :not([hidden]) + :not([hidden]) { margin-top: var(--space-xl); }
  .header-row { flex-direction: column; align-items: flex-start; padding-block: 0.7rem; }
  .hero-panel { grid-template-columns: 1fr; }
  .home-band {
    padding: var(--space-lg);
    margin-block: 0;
  }
  .cards-grid, .apps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; }
  .cta-row .button { width: 100%; text-align: center; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.text-small { font-size: 0.88em; }
.text-large { font-size: 1.12em; }


/* Demos framework */
.demos-page {
  padding: 0 0 var(--space-2xl);
  background: #f6f8fb;
}

.demos-intro {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(135deg, #e2e8f0 0%, #dbe4ee 100%);
}

.demos-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: var(--space-lg);
  align-items: end;
}

.demos-intro h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1;
}

.demos-intro-note {
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg);
}

.demos-intro-note p {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.demos-root {
  display: grid;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
}

.demo-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.discovery-panel {
  display: grid;
  gap: var(--space-lg);
}

.discovery-grid,
.refinement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.demo-section fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-md);
  margin: 0;
  background: #fbfdff;
}

.demo-section legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.choice-grid,
.outcome-grid {
  display: grid;
  gap: 0.55rem;
}

.choice-card,
.check-card,
.check-row,
.switch-row,
.refinement-section label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--color-text);
}

.choice-card,
.check-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: 0.65rem;
}

.switch-row {
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
}

.switch-row:last-child {
  border-bottom: 0;
}

.custom-business {
  display: grid;
  gap: 0.35rem;
  margin-top: var(--space-md);
}

.custom-business.is-hidden {
  display: none;
}

.demo-section input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.recommendation-panel {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eef5ff;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.preview-caption {
  max-width: 32ch;
  color: var(--muted);
}

.demo-app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #b9c6d6;
  border-radius: 8px;
  background: #eef3f8;
}

.demo-app-sidebar {
  background: #111827;
  color: #f8fafc;
  padding: var(--space-lg);
}

.demo-app-sidebar h3 {
  margin-bottom: var(--space-lg);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
}

.demo-app-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.demo-app-sidebar a {
  color: #dbeafe;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.demo-app-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.demo-app-main {
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}

.demo-app-topbar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: start;
}

.demo-app-topbar h3,
.workspace-panel h4 {
  font-family: "IBM Plex Sans", sans-serif;
}

.status-chip {
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  padding: 0.25rem 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.kpi-grid,
.workspace-grid,
.value-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.kpi-card,
.workspace-panel,
.value-grid article,
.impact-grid article,
.before-after-grid article,
.process-column,
.solution-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: var(--space-md);
}

.kpi-card {
  display: grid;
  gap: 0.3rem;
}

.kpi-card span,
.kpi-card small {
  color: var(--muted);
}

.kpi-card strong {
  font-size: 2rem;
  line-height: 1;
}

.workspace-panel {
  min-width: 0;
}

.workflow-list,
.notification-list,
.capability-list,
.mini-columns ul,
.before-after-grid ul,
.process-column ol,
.workflow-editor {
  margin: 0;
  padding-left: 1.2rem;
}

.workflow-list li + li,
.notification-list li + li,
.capability-list li + li,
.before-after-grid li + li,
.process-column li + li {
  margin-top: 0.42rem;
}

.sample-record {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0;
}

.sample-record:first-of-type {
  padding-top: 0;
}

.sample-record:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.sample-record strong,
.sample-record span {
  display: block;
}

.sample-record span {
  color: var(--color-primary-hover);
  font-weight: 700;
}

.sample-record p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.process-compare-grid,
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.process-column h3,
.before-after-grid h3 {
  font-family: "IBM Plex Sans", sans-serif;
}

.process-column.is-current {
  background: #fff7ed;
}

.process-column.is-solution,
.before-after-grid article:nth-child(2) {
  background: #ecfdf5;
}

.month-section {
  background: #111827;
  color: #f8fafc;
}

.month-section p {
  color: #dbeafe;
}

.refinement-section {
  background: #f8fafc;
}

.workflow-editor {
  display: grid;
  gap: 0.45rem;
  list-style-position: inside;
  padding-left: 0;
}

.workflow-editor li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
}

.workflow-editor button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.workflow-editor button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.solution-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-lg);
  align-items: start;
  background: #0f172a;
  color: #f8fafc;
}

.solution-cta p,
.solution-cta .eyebrow {
  color: #dbeafe;
}

.solution-summary {
  background: #f8fafc;
  color: var(--color-text);
}

.solution-summary dl {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 var(--space-lg);
}

.solution-summary dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.solution-summary dd {
  margin: 0;
}

@media (max-width: 1024px) {
  .discovery-grid,
  .refinement-grid,
  .kpi-grid,
  .workspace-grid,
  .value-grid,
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-app-shell,
  .solution-cta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .demos-intro-grid,
  .discovery-grid,
  .refinement-grid,
  .kpi-grid,
  .workspace-grid,
  .value-grid,
  .impact-grid,
  .process-compare-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .demo-app-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading-row,
  .demo-app-topbar {
    display: grid;
  }

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

  .workflow-editor li {
    grid-template-columns: 1fr;
  }
}

/* Demos wizard flow */
.demo-wizard-shell {
  display: grid;
  gap: var(--space-lg);
}

.demo-progress {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.demo-progress li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: 0.65rem;
  color: var(--muted);
}

.demo-progress span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--color-bg-soft);
  color: var(--muted);
  font-weight: 700;
}

.demo-progress strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.demo-progress li.is-active {
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.demo-progress li.is-active span,
.demo-progress li.is-complete span {
  background: var(--color-primary);
  color: var(--color-card);
}

.demo-progress li.is-complete {
  border-color: rgba(15, 118, 110, 0.35);
}

.demo-step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.demo-step-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--space-lg);
}

.demo-step-heading h2 {
  margin-bottom: 0;
}

.demo-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

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

.choice-card:has(input:checked),
.check-card:has(input:checked) {
  border-color: var(--color-primary);
  background: #eef5ff;
  color: var(--color-text);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.operational-card {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.demo-step-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.demo-step-actions .button:disabled,
.demo-step-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-result-stack {
  display: grid;
  gap: var(--space-lg);
}

.update-cue {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  padding: 0.25rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.demo-step-card .demo-section {
  box-shadow: none;
}

.demo-step-card .demo-section h3,
.demo-step-card .demo-section h4 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .demo-progress {
    grid-template-columns: 1fr;
  }

  .demo-progress li {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .choice-grid-large,
  .outcome-grid-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .demo-step-actions {
    display: grid;
  }

  .demo-step-actions .button {
    width: 100%;
  }
}

.demo-app-sidebar button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.demo-app-sidebar button:hover,
.demo-app-sidebar button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.demo-app-sidebar button.is-active {
  box-shadow: inset 3px 0 0 #60a5fa;
}

.workspace-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .workspace-focus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .workspace-focus-grid {
    grid-template-columns: 1fr;
  }
}

.scenario-section {
  border-color: rgba(37, 99, 235, 0.35);
  background: #f8fbff;
}

.scenario-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.scenario-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: var(--space-md);
}

.scenario-record {
  background: #eef5ff;
}

.scenario-complete {
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
}

.scenario-activity,
.scenario-stage-list {
  margin: 0;
  padding-left: 1.2rem;
}

.scenario-activity li + li {
  margin-top: 0.45rem;
}

.scenario-stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-lg);
}

.scenario-stage-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: 0.55rem;
  color: var(--muted);
}

.scenario-stage-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--color-bg-soft);
  font-weight: 700;
}

.scenario-stage-list li.is-current {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.scenario-stage-list li.is-complete span,
.scenario-stage-list li.is-current span {
  background: var(--color-primary);
  color: var(--color-card);
}

.scenario-locked-panel {
  background: #fff7ed;
}

.generated-output {
  margin-top: var(--space-md);
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  background: #ecfdf5;
  padding: 0.75rem;
}

.generated-output.is-empty {
  border-color: var(--line);
  background: var(--color-bg-soft);
}

.generated-output p,
.generated-output ul {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .scenario-grid,
  .scenario-stage-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .scenario-header {
    display: grid;
  }

  .scenario-grid,
  .scenario-stage-list {
    grid-template-columns: 1fr;
  }
}

/* Continuous live demo workshop */
.live-demo-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.45fr);
  gap: var(--space-lg);
  align-items: start;
}

.workshop-panel,
.live-system-panel {
  display: grid;
  gap: var(--space-lg);
}

.live-system-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 0.2rem;
}

.workshop-card,
.live-change-cue,
.transformation-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.workshop-intro-card {
  background: #eef5ff;
  border-color: rgba(37, 99, 235, 0.28);
}

.workshop-card h2,
.workshop-card h3,
.live-change-cue h2 {
  margin-bottom: 0.35rem;
}

.mini-summary {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: 0.75rem;
  margin-top: var(--space-md);
}

.mini-summary span {
  color: var(--muted);
}

.live-change-cue {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  align-items: center;
  background: #0f172a;
  color: #f8fafc;
}

.live-change-cue p,
.live-change-cue .eyebrow {
  color: #dbeafe;
  margin-bottom: 0;
}

.surprise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: var(--space-md);
}

.surprise-list span {
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.growth-grid {
  display: grid;
  gap: 0.55rem;
}

.transformation-board {
  background: #f8fafc;
}

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.transformation-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-card);
  padding: var(--space-md);
}

.transformation-grid article:nth-child(1) {
  background: #fff7ed;
}

.transformation-grid article:nth-child(2) {
  background: #ecfdf5;
}

.transformation-grid ul {
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 1180px) {
  .live-demo-shell {
    grid-template-columns: 1fr;
  }

  .live-system-panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .live-change-cue,
  .transformation-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.app-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-kpi-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  font-size: 0.88rem;
}

.app-kpi-strip strong {
  color: var(--color-text);
}


/* Demo workspace redesign */
.demos-page .container {
  width: min(1440px, calc(100% - 2rem));
}

.demos-root {
  display: grid;
  gap: var(--space-2xl);
}

.live-demo-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 1.55fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.workshop-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: var(--space-lg);
}

.live-system-panel {
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.workshop-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-card);
  padding: clamp(1rem, 2vw, 1.25rem);
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.workshop-intro-card {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.mini-summary {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.8rem;
}

.workshop-card h2,
.workshop-card h3,
.workshop-card legend {
  margin-bottom: 0;
}

.text-control,
.switch-row {
  display: grid;
  gap: 0.35rem;
}

.text-control input,
.search-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: var(--color-card);
}

.search-field {
  display: block;
  width: min(320px, 100%);
}

.workflow-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  margin: 0;
  background: #fbfdff;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 860px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #eef3f8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.app-sidebar {
  background: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.app-sidebar-brand {
  display: grid;
  gap: 0.35rem;
}

.app-sidebar-brand p,
.app-sidebar-foot .muted {
  color: #cbd5e1;
}

.app-nav {
  display: grid;
  gap: 0.45rem;
}

.app-nav button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #dbeafe;
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.app-nav button:hover,
.app-nav button.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 197, 253, 0.22);
  color: #ffffff;
}

.app-nav button.is-active {
  box-shadow: inset 3px 0 0 #60a5fa;
}

.app-workspace {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: grid;
  gap: 1rem;
}

.workspace-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.workspace-banner-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-caption {
  max-width: 56ch;
  color: var(--muted);
}

.screen-layout {
  display: grid;
  gap: 1rem;
}

.screen-split-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: start;
}

.screen-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-card);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.panel-heading-stacked {
  align-items: end;
}

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

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

.app-table thead th {
  text-align: left;
  padding: 0.8rem 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.app-table tbody td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.app-table tbody tr:hover,
.app-table tbody tr.is-selected {
  background: #f8fbff;
}

.app-table.is-compact tbody td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.table-link {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--color-text);
}

.table-link span,
.directory-row p,
.report-row p,
.team-row span,
.schedule-row span,
.activity-feed span,
.timeline-list span,
.document-list span,
.history-list span,
.communication-list span {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.22rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.activity-feed,
.timeline-list,
.document-list,
.history-list,
.note-list,
.communication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.activity-feed li,
.timeline-list li,
.document-list li,
.history-list li,
.communication-list li,
.note-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.directory-list,
.report-library,
.team-table,
.schedule-list {
  display: grid;
  gap: 0.65rem;
}

.directory-row,
.report-row,
.team-row,
.schedule-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-card);
  padding: 0.8rem 0.85rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}

.directory-row.is-selected,
.report-row.is-selected,
.team-row.is-selected,
.schedule-row.is-selected {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eef5ff;
}

.schedule-row {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.schedule-time {
  font-weight: 700;
  color: var(--color-text);
}

.team-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  align-items: center;
}

.detail-workspace {
  display: grid;
  gap: 1rem;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.detail-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-summary {
  color: var(--muted);
  max-width: 54ch;
}

.detail-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.detail-summary-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  padding: 0.25rem 0.6rem;
  color: var(--muted);
}

.detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.detail-tablist button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0.75rem;
}

.detail-tablist button.is-active {
  border-color: rgba(37, 99, 235, 0.2);
  background: #eef5ff;
  color: var(--color-primary-hover);
}

.detail-panel-content {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.summary-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.85rem;
  display: grid;
  gap: 0.25rem;
}

.summary-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.summary-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.related-section {
  display: grid;
  gap: 0.75rem;
}

.related-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.related-links {
  display: grid;
  gap: 0.55rem;
}

.related-link {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.8rem 0.85rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}

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

.settings-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1280px) {
  .live-demo-shell,
  .screen-split-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .workshop-panel {
    position: static;
  }

  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace-banner,
  .detail-header,
  .panel-heading {
    display: grid;
  }

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

  .schedule-row,
  .team-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .demos-page .container {
    width: min(100%, calc(100% - 1rem));
  }

  .app-workspace,
  .app-sidebar,
  .screen-panel,
  .workshop-card {
    padding: 0.9rem;
  }

  .workspace-banner-actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   Demo workspace v2 – layout, density, and visual polish
   ============================================================ */

/* --- Collapse the main > * + * gap inside the demos page --- */
.demos-page > :not([hidden]) + :not([hidden]) {
  margin-top: 0;
}

.demos-root {
  padding-top: 1.25rem;
}

/* --- Core: app shell fills the viewport on desktop --- */
.app-shell {
  min-height: calc(100vh - 92px - 2rem);
  max-height: min(calc(100vh - 92px - 2rem), 940px);
  overflow: hidden;
  grid-template-columns: 240px minmax(0, 1fr);
}

/* --- App workspace: flex column fills the shell --- */
.app-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #f6f8fb;
  gap: 0;
}

/* --- Workspace topbar: single-row compact header --- */
.workspace-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--color-card);
  min-height: 0;
}

.workspace-breadcrumb {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.workspace-screen-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.3;
  color: var(--color-text);
}

.workspace-topbar-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-shrink: 0;
}

.workspace-topbar-actions .button {
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* --- Screen content area: fills remaining height --- */
.app-workspace > .screen-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Non-split screens scroll the whole content area */
.screen-layout:not(.screen-split-layout) {
  overflow-y: auto;
  padding: 1rem 1.1rem 1.5rem;
  gap: 0.85rem;
  align-content: start;
}

/* --- Split screens: panels stretch to full height, scroll independently --- */
.screen-split-layout {
  height: 100%;
  align-items: stretch;
  padding: 0.85rem;
  gap: 0.85rem;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
}

.screen-split-layout > .screen-panel {
  overflow-y: auto;
  min-height: 0;
}

/* --- Workshop panel: sticky, condensed, scrollable --- */
.workshop-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: min(calc(100vh - 92px - 2rem), 940px);
  overflow-y: auto;
  overflow-x: hidden;
  gap: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.workshop-panel::-webkit-scrollbar { width: 4px; }
.workshop-panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.workshop-panel::-webkit-scrollbar-track { background: transparent; }

.workshop-card {
  padding: 0.85rem 1rem;
  gap: 0.65rem;
  border-radius: 10px;
}

.workshop-intro-card {
  padding: 0.9rem 1rem;
}

.workshop-intro-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.workshop-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.workshop-card .eyebrow {
  font-size: 0.68rem;
  margin-bottom: 0;
}

/* --- 2-column grids in workshop panel --- */
.choice-grid-2col {
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.outcome-grid-2col {
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.growth-grid-2col {
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.choice-card,
.check-card {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  gap: 0.4rem;
  border-radius: 7px;
  line-height: 1.35;
}

.switch-row {
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.workflow-fieldset {
  padding: 0.65rem 0.8rem;
}

.workflow-editor {
  gap: 0.3rem;
}

.workflow-editor li {
  font-size: 0.82rem;
}

.workflow-editor button {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

.text-control {
  gap: 0.25rem;
  font-size: 0.82rem;
}

.text-control input,
.search-field input {
  min-height: 34px;
  font-size: 0.85rem;
  border-radius: 7px;
  padding: 0.4rem 0.65rem;
}

.surprise-list {
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.surprise-list span {
  font-size: 0.75rem;
  padding: 0.12rem 0.42rem;
}

.mini-summary {
  padding: 0.6rem 0.75rem;
  gap: 0.12rem;
  border-radius: 8px;
}

.mini-summary strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.mini-summary span {
  font-size: 0.78rem;
}

/* --- App sidebar: compact and clean --- */
.app-sidebar {
  padding: 1rem;
  gap: 1rem;
  align-content: start;
}

.app-sidebar-brand {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.app-brand-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.app-nav {
  gap: 0.25rem;
}

.app-nav button {
  padding: 0.5rem 0.7rem;
  font-size: 0.855rem;
  border-radius: 7px;
  transition: background 130ms ease, color 130ms ease;
}

.app-nav button.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  border-left: 3px solid #60a5fa;
  padding-left: calc(0.7rem - 3px);
  color: #fff;
}

.app-nav button:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

/* --- Status pill color variants --- */
.status-pill {
  font-size: 0.76rem;
  padding: 0.18rem 0.52rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-pill.is-pending {
  background: #fef9c3;
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.22);
}

.status-pill.is-progress {
  background: #dbeafe;
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.22);
}

.status-pill.is-urgent {
  background: #fee2e2;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.22);
}

.status-pill.is-quiet {
  background: #f1f5f9;
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.2);
}

/* --- KPI cards: clean hierarchy --- */
.kpi-card {
  padding: 0.9rem 1rem;
  gap: 0.15rem;
  transition: box-shadow 140ms ease;
}

.kpi-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.kpi-card > span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}

.kpi-card strong {
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.kpi-card small {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.1rem;
  display: block;
}

/* --- Dashboard layout --- */
.screen-dashboard {
  gap: 0.85rem !important;
}

.dashboard-kpis {
  gap: 0.65rem;
}

/* --- Table: tight, professional density --- */
.app-table {
  font-size: 0.875rem;
}

.app-table thead th {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text-soft);
  background: #f8fafc;
}

.app-table tbody td {
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  vertical-align: middle;
  border-bottom-color: #eef2f7;
}

.app-table tbody tr {
  cursor: pointer;
  transition: background 100ms ease;
}

.app-table tbody tr:hover {
  background: #f0f6ff;
}

.app-table tbody tr.is-selected {
  background: #eef5ff;
}

.table-link {
  gap: 0.15rem;
}

.table-item-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.table-link strong {
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 100ms ease;
}

.table-link:hover strong {
  color: var(--color-primary);
}

.table-link > span:not(.table-item-header) {
  font-size: 0.78rem;
  color: var(--muted);
}

/* In split-layout list panels, hide the Assigned column (shown in detail panel) */
.screen-list-panel .app-table th:nth-child(4),
.screen-list-panel .app-table td:nth-child(4) {
  display: none;
}

/* Keep title text from wrapping in the header row */
.table-item-header strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}

/* Priority badge inline with title */
.priority-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.priority-high {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-medium {
  background: #fef9c3;
  color: #92400e;
}

.priority-low {
  background: #f1f5f9;
  color: #64748b;
}

/* --- Panel headings: compact --- */
.panel-heading {
  align-items: center;
}

.panel-heading h4 {
  font-size: 0.88rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  margin: 0;
}

.panel-heading .eyebrow {
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}

/* --- Activity feed: left-accent, dense --- */
.activity-feed {
  gap: 0.45rem;
}

.activity-feed li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 0.55rem 0.75rem;
  background: var(--color-card);
  gap: 0.1rem;
}

.activity-feed li strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  display: block;
}

.activity-feed li span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  display: block;
}

.activity-feed li p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--muted);
}

/* --- Screen panels --- */
.screen-panel {
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  align-content: start;
}

/* --- Directory, report, team, schedule rows: tighter + hover --- */
.directory-row,
.report-row,
.team-row,
.schedule-row {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  transition: border-color 110ms ease, background 110ms ease;
  gap: 0;
}

.directory-row:hover,
.report-row:hover,
.team-row:hover,
.schedule-row:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #f8fbff;
}

.directory-row.is-selected,
.report-row.is-selected,
.team-row.is-selected,
.schedule-row.is-selected {
  border-color: rgba(37, 99, 235, 0.4);
  background: #eff6ff;
}

/* Directory / report row: title + status on same row */
.directory-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.directory-row strong,
.report-row strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.directory-row p,
.report-row p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* --- Team rows: avatar + identity --- */
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-row-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.team-row-identity > div {
  min-width: 0;
}

.team-row-identity strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-summary {
  display: block;
  font-size: 0.775rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Schedule rows --- */
.schedule-row {
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.schedule-time {
  font-size: 0.855rem;
  font-weight: 700;
  color: var(--color-primary);
}

.schedule-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

/* --- Detail workspace: compact header --- */
.detail-workspace {
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.detail-header-meta {
  min-width: 0;
}

.detail-header-meta .eyebrow {
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}

.detail-header h4 {
  font-size: 0.95rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.detail-summary {
  font-size: 0.82rem;
  margin: 0;
}

.detail-summary-strip {
  gap: 0.35rem;
  padding: 0;
}

.detail-summary-strip span:not(.status-pill) {
  font-size: 0.78rem;
  padding: 0.18rem 0.52rem;
}

/* --- Detail tabs: underline style --- */
.detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  margin-bottom: 0;
}

.detail-tablist button {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  transition: color 110ms ease;
}

.detail-tablist button:hover:not(.is-active) {
  color: var(--color-text);
  background: #f8fafc;
}

.detail-tablist button.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
  font-weight: 600;
}

/* --- Summary grid in detail panel --- */
.summary-grid {
  gap: 0.6rem;
}

.summary-grid article {
  padding: 0.65rem 0.75rem;
  gap: 0.1rem;
  border-radius: 8px;
}

.summary-grid span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.summary-grid strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.summary-grid p {
  font-size: 0.76rem;
  margin: 0;
  color: var(--muted);
}

/* --- Related section --- */
.related-head h5 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

.related-head .muted {
  font-size: 0.76rem;
}

.related-links {
  gap: 0.4rem;
}

.related-link {
  padding: 0.55rem 0.75rem;
  gap: 0.12rem;
  border-radius: 8px;
  transition: border-color 110ms ease, background 110ms ease;
}

.related-link:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: #f8fbff;
}

.related-link strong {
  font-size: 0.855rem;
  font-weight: 600;
}

.related-link span {
  font-size: 0.76rem;
  color: var(--muted);
}

/* --- Timeline, document, history, note, communication lists --- */
.timeline-list,
.document-list,
.history-list,
.note-list,
.communication-list {
  gap: 0.4rem;
}

.timeline-list li,
.document-list li,
.history-list li,
.communication-list li,
.note-list li {
  padding: 0.55rem 0.7rem;
  gap: 0.1rem;
  border-radius: 8px;
  background: #fafcff;
}

.timeline-list li strong,
.document-list li strong,
.history-list li strong,
.communication-list li strong {
  font-size: 0.855rem;
  font-weight: 600;
  display: block;
}

.timeline-list li span,
.document-list li span,
.history-list li span,
.communication-list li span {
  font-size: 0.76rem;
  display: block;
}

.timeline-list li p,
.document-list li p,
.history-list li p,
.communication-list li p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--muted);
}

/* --- Settings screen --- */
.settings-grid {
  gap: 0.85rem;
}

.settings-grid article {
  padding: 0.85rem 0.9rem;
  gap: 0.6rem;
  border-radius: 9px;
}

.settings-grid h5 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

/* --- Search field --- */
.search-field {
  width: min(260px, 100%);
}

/* --- Status chip in topbar --- */
.status-chip {
  font-size: 0.75rem;
  padding: 0.18rem 0.52rem;
}

/* --- Demos intro: tighter on desktop --- */
.demos-intro {
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.demos-intro h1 {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  margin-bottom: 0.35rem;
}

.demos-intro .lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  margin: 0;
}

/* --- Impact / transformation sections --- */
.impact-grid article {
  padding: 0.8rem 0.9rem;
  font-size: 0.875rem;
}

.transformation-grid {
  gap: 0.75rem;
}

.transformation-grid article {
  padding: 0.8rem 0.9rem;
}

.transformation-grid h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.transformation-grid ul {
  font-size: 0.85rem;
  margin: 0;
}

/* --- Live demo shell: workshop narrower, workspace wider --- */
.live-demo-shell {
  grid-template-columns: minmax(330px, 0.3fr) minmax(0, 1.7fr);
  gap: 1.25rem;
}

/* --- Responsive overrides: revert fixed heights on smaller screens --- */
@media (max-width: 1280px) {
  .app-shell {
    min-height: 600px;
    max-height: none;
    overflow: visible;
    height: auto;
  }

  .app-workspace {
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .app-workspace > .screen-layout {
    overflow: visible;
  }

  .screen-layout:not(.screen-split-layout) {
    overflow: visible;
    padding: 0.85rem;
  }

  .screen-split-layout {
    overflow: visible;
    height: auto;
    padding: 0.75rem;
    align-items: start;
  }

  .screen-split-layout > .screen-panel {
    overflow: visible;
  }

  .workshop-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .live-demo-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 960px) {
  .choice-grid-2col,
  .outcome-grid-2col {
    grid-template-columns: 1fr;
  }

  .growth-grid-2col {
    grid-template-columns: 1fr;
  }

  .screen-split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-workspace,
  .app-sidebar {
    padding: 0;
  }

  .screen-panel,
  .detail-workspace {
    padding: 0.8rem;
  }

  .workshop-card {
    padding: 0.8rem;
  }

  .workspace-topbar {
    padding: 0.6rem 0.85rem;
  }

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


/* ================================================================
   TOAST NOTIFICATION
   ================================================================ */

.demo-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1.5rem);
  opacity: 0;
  z-index: 9999;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
  transition: opacity 280ms ease, transform 280ms ease;
  white-space: nowrap;
  pointer-events: none;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-toast svg {
  color: #34d399;
  flex-shrink: 0;
}

/* ── Floating process notifications ─────────────────────────── */
@keyframes floatUp {
  0%   { opacity: 0;   transform: translate(-50%, 0)     scale(0.82); }
  10%  { opacity: 1;   transform: translate(-50%, -12px) scale(1); }
  55%  { opacity: 1;   transform: translate(-50%, -24px); }
  80%  { opacity: 0.9; transform: translate(-50%, -46px); }
  100% { opacity: 0;   transform: translate(-50%, -72px); }
}

.float-notif {
  position: absolute;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem 0.45rem 0.6rem;
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}

.float-notif.is-active {
  animation: floatUp 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.float-notif-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  color: #60a5fa;
}

.float-notif-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.3;
}

.float-notif-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: none;
}

/* ── KPI cards — clickable ───────────────────────────────────── */
button.kpi-card {
  cursor: pointer;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

button.kpi-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.kpi-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity 160ms ease;
}

button.kpi-card:hover .kpi-link {
  opacity: 1;
}

/* ── Status chip as clickable button ─────────────────────────── */
button.status-pill {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 120ms ease, transform 100ms ease;
}

button.status-pill:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
}

/* ── Example badge in workspace topbar ───────────────────────── */
.workspace-example-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

/* ── Workshop example note ───────────────────────────────────── */
.example-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ── Activity feed clickable items ───────────────────────────── */
.activity-item-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.activity-item-btn:hover strong {
  color: var(--color-primary);
}

/* Assignee picker in detail panel */
.assignee-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignee-picker-label {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
}

.assignee-picker select {
  font-size: 0.82rem;
  font-family: inherit;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  transition: box-shadow 120ms;
}

.assignee-picker select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Priority badge as interactive button */
button.priority-badge {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 120ms, transform 100ms;
}

button.priority-badge:hover {
  filter: brightness(0.93);
  transform: scale(1.06);
}

/* Priority urgent variant */
.priority-urgent {
  background: #fee2e2;
  color: #991b1b;
}

/* Status pill as button in detail strip */
.detail-summary-strip button.status-pill {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 120ms, transform 100ms;
}

.detail-summary-strip button.status-pill:hover {
  filter: brightness(0.93);
  transform: scale(1.06);
}

/* Note add row */
.note-add-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.note-draft-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  resize: none;
  color: var(--color-text);
  line-height: 1.5;
  transition: border-color 120ms, box-shadow 120ms;
  box-sizing: border-box;
}

.note-draft-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.button-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
}

/* Queue title row with inline button */
.queue-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.queue-title-row h4 {
  margin: 0;
}

/* Queue filter pills */
.queue-filter-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 1rem 0;
}

.filter-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: border-color 120ms, color 120ms, background 120ms;
  font-family: inherit;
}

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

.filter-pill.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* New item row in table */
.new-item-row td {
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.new-item-title-input,
.new-item-customer-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 5px;
  outline: none;
  box-sizing: border-box;
}

.new-item-customer-input {
  border-color: #cbd5e1;
}

.new-item-due-input {
  width: 4rem;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.4rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  outline: none;
  box-sizing: border-box;
}

.new-item-row select {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.new-item-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
}

/* Sidebar improvements section */
.sidebar-improvements {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-improvements-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 0.4rem;
}

.sidebar-improvement-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.sidebar-improvement-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* Outcome-driven activity items */
.activity-item-outcome {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #22c55e;
  background: #f0fdf4;
}

.activity-item-outcome strong {
  display: block;
  font-size: 0.82rem;
  color: #166534;
  margin-bottom: 0.1rem;
}

.activity-item-outcome p {
  font-size: 0.76rem;
  color: #4b5563;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

.outcome-meta-tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* --- Outcome chip grid (compact) --- */
.outcome-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.outcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 500;
  cursor: pointer;
  background: #f8fafc;
  color: #475569;
  transition: border-color 90ms ease, background 90ms ease, color 90ms ease;
  user-select: none;
  line-height: 1.3;
}

.outcome-chip input {
  display: none;
}

.outcome-chip.is-checked,
.outcome-chip:has(input:checked) {
  border-color: var(--color-primary, #2563eb);
  background: #eff6ff;
  color: var(--color-primary, #2563eb);
  font-weight: 600;
}

.outcome-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.outcome-chip.is-checked:hover,
.outcome-chip:has(input:checked):hover {
  border-color: #1d4ed8;
}

/* --- Demo hint text --- */
.demo-hint {
  margin-top: 0.65rem;
  font-size: 0.775rem;
  color: #64748b;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border-left: 2px solid #cbd5e1;
  border-radius: 0 4px 4px 0;
  line-height: 1.45;
}

/* --- Day-view calendar --- */
.day-calendar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.cal-event {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  align-items: center;
  gap: 0;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e9edf2;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 110ms ease, box-shadow 110ms ease;
}

.cal-event:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cal-event.is-selected {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  background: #f8fbff;
}

.cal-event-bar {
  width: 4px;
  align-self: stretch;
  background: var(--event-color, #3b82f6);
  border-radius: 0;
  flex-shrink: 0;
}

.cal-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  min-width: 0;
}

.cal-event-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--event-color, #3b82f6);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.cal-event-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-meta {
  font-size: 0.74rem;
  color: #64748b;
}

.cal-event-status {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* --- Scenario reset button style --- */
.button-ghost {
  background: transparent;
  border: 1.5px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 90ms, color 90ms, background 90ms;
  white-space: nowrap;
}

.button-ghost:hover {
  border-color: #94a3b8;
  color: #334155;
  background: #f8fafc;
}

/* --- Full-width queue panel (no split) --- */
.screen-list-full {
  flex: 1 1 100%;
  max-width: 100%;
}

/* --- Complete badge (non-primary items) --- */
.complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  border: 1.5px solid #bbf7d0;
  border-radius: 20px;
  padding: 0.28rem 0.7rem;
}

/* --- Inline work item edit form --- */
.detail-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0;
}

.detail-edit-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: #374151;
}

.detail-edit-label input,
.detail-edit-label select {
  padding: 0.38rem 0.55rem;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.83rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 90ms;
}

.detail-edit-label input:focus,
.detail-edit-label select:focus {
  outline: none;
  border-color: var(--color-primary, #2563eb);
}

.detail-edit-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

/* --- Settings screen descriptions --- */
.settings-article {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.settings-description {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.settings-hint {
  font-size: 0.74rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

/* --- Workflow step up/down buttons --- */
.workflow-step-btns {
  display: flex;
  gap: 0.2rem;
}

.workflow-step-btns button {
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: border-color 80ms, background 80ms;
}

.workflow-step-btns button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #1e293b;
}

.workflow-step-btns button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- Timeline "previously" note --- */
.timeline-before {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0.25rem 0 0;
  line-height: 1.45;
  padding-left: 0.75rem;
  border-left: 2px solid #e2e8f0;
}

/* --- Scenario completion banner --- */
.scenario-complete-banner {
  margin: 0 0.75rem 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1.5px solid #86efac;
  border-radius: 8px;
}

.scenario-complete-title {
  font-size: 0.775rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.scenario-complete-steps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.scenario-complete-step {
  font-size: 0.775rem;
  color: #15803d;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.scenario-complete-step::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.scenario-complete-time {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

/* --- Formatted report preview card --- */
.document-report-item {
  list-style: none;
  padding: 0;
}

.report-preview {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.report-preview-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.55rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.report-preview-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}

.report-preview-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #166534;
  background: #dcfce7;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  flex-shrink: 0;
}

.report-preview-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.18rem 0.6rem;
  padding: 0.6rem 0.9rem 0.5rem;
  font-size: 0.775rem;
  border-bottom: 1px solid #f1f5f9;
}

.report-preview-label {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: center;
}

.report-preview-value {
  color: #1e293b;
  font-weight: 500;
}

.report-preview-lines {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

.report-preview-line {
  font-size: 0.775rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.report-preview-line::before {
  content: "✓";
  color: #22c55e;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.report-preview-send {
  padding: 0.5rem 0.9rem;
}

/* --- Extra compact button for inline table rows --- */
.button-xs {
  font-size: 0.74rem !important;
  padding: 0.18rem 0.5rem !important;
  border-radius: 5px !important;
  line-height: 1.4;
}
