.cs-hero {
  padding: 72px 0 0;
  border-bottom: 1px solid var(--border);
}
.cs-hero-text {
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.cs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.cs-title {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.cs-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 750px;
  margin: 0 auto;
}
.cs-hero-image {
  width: 100%;
  background: #f0f0ee;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 5% 5% 0;
}
.cs-hero-image img {
  width: 60%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14));
  object-fit: cover;
  object-position: top;
}
/* Clickable hero video poster */
.cs-video {
  position: relative;
  width: 60%;
  cursor: pointer;
  display: block;
  border-radius: 10px 10px 0 0;
}
.cs-hero-image .cs-video img { width: 100%; }
.cs-video video { width: 100%; display: block; border-radius: 10px 10px 0 0; }
.cs-video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; padding-left: 4px;
  transition: background 0.15s, transform 0.15s;
  pointer-events: none;
}
.cs-video:hover .cs-video-play { background: rgba(0,0,0,0.72); transform: translate(-50%, -50%) scale(1.06); }
@media (max-width: 640px) { .cs-video { width: 90%; } }
/* Video modal (scrim + player) */
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,15,25,0.82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 40px; opacity: 0; transition: opacity 0.2s ease;
}
.video-modal.open { display: flex; opacity: 1; }
.video-modal-inner {
  width: min(1100px, 92vw); max-height: 86vh;
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.video-modal-inner video { width: 100%; max-height: 86vh; display: block; }
.video-modal-close {
  position: absolute; top: 22px; right: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.24); }

/* Image lightbox (scrim) */
.img-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,15,25,0.82);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 40px; opacity: 0; transition: opacity 0.2s ease;
}
.img-modal.open { display: flex; opacity: 1; }
.img-modal-inner {
  width: min(1500px, 96vw);
  max-height: calc(100vh - 80px);
  overflow: auto;
  border-radius: 12px; background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.img-modal-inner img { width: 100%; display: block; }
.img-modal-close {
  position: fixed; top: 22px; right: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; z-index: 1001;
}
.img-modal-close:hover { background: rgba(255,255,255,0.24); }
.cs-process-figure a { cursor: zoom-in; }
.cs-hero-image-placeholder {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Meta bar */
.cs-meta-bar {
  border-bottom: 1px solid var(--border);
}
.cs-meta-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.cs-meta-cell {
  padding: 28px 0;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  margin-right: 24px;
}
.cs-meta-cell:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.cs-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.cs-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Callout */
.cs-callout {
  background: #f5f8ff;
  border: 1px solid #d0deff;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 32px 0;
}
.cs-callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.cs-callout-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Stats */
.cs-stats {
  background: #fff;
  border-top: 1px solid var(--border);
}
/* Impact numbers under the hero intro (no band, no label) */
.cs-hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px 52px; margin-top: 36px; }
.cs-hero-stats > div { max-width: 210px; }
.cs-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cs-stat-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.cs-stat-label {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Body */
.cs-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.cs-section {
  padding: 64px 0;
}
.cs-section:last-child { border-bottom: none; }
.cs-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.cs-section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}
.cs-section-body {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: none;
}
.cs-section-body p + p { margin-top: 18px; }

/* Pull quote */
.cs-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
.cs-quote-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* Flow cards */
.cs-flows {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.cs-flow {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.cs-flow-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cs-flow-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-flow-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Image placeholder */
.cs-image-block {
  background: #f0f0ee;
  border-radius: 12px;
  min-height: 320px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.cs-image-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Component table */
.cs-component-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.cs-component {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cs-component-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.cs-component-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.cs-component-text strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* CTA */
.cs-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  margin-top: 24px;
}
.cs-demo-cta:hover {
  background: var(--accent-hover, #084ea3);
  transform: translateY(-1px);
}

/* Process sections — full-bleed, copy left, image right */
.cs-section-process { width: auto; margin-left: 0; transform: none; }
.cs-row,
.cs-process-row {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 64px;
  align-items: center;
}
/* Final Design video rows only: wider copy column pushes the portrait clip further right */
.cs-process-row:has(.cs-clip.has-video) {
  grid-template-columns: minmax(320px, 520px) 1fr;
}
.cs-row-aside,
.cs-process-figure { min-width: 0; margin: 0; }
.cs-row-aside .dl-intents,
.cs-row-aside .dl-intents.cols-2 { grid-template-columns: 1fr; margin-top: 0; gap: 14px; }
.cs-row-aside .dl-skills { margin-top: 0; }
.cs-process-copy .cs-section-label,
.cs-row-copy .cs-section-label { margin-bottom: 16px; }
.cs-process-copy .cs-section-title,
.cs-row-copy .cs-section-title { margin-bottom: 20px; }

/* Chapter titles */
.cs-chapter-head { padding: 76px 0 0; text-align: left; }
.cs-chapter-head.cs-chapter-rule { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.cs-body > .cs-chapter-head:first-child { border-top: none; }
.cs-chapter {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.03;
  color: var(--text);
  margin: 0;
  padding: 0;
}
.cs-chapter-sub {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: none;
  margin: 16px 0 0;
}
.cs-chapter-head + .cs-section { padding-top: 72px; border-top: none; }
.cs-process-figure a { display: block; text-decoration: none; }
.cs-process-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16,32,64,0.10);
  transition: box-shadow .18s, transform .18s;
}
.cs-process-figure a:hover img { box-shadow: 0 16px 40px rgba(16,32,64,0.16); transform: translateY(-2px); }
.cs-figure-cap {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
  margin-top: 14px;
}
.cs-figure-cap .cs-figure-zoom {
  color: var(--accent);
  font-weight: 600;
}
/* Audit findings — simple cards */
.find-simple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 32px; }
.find-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 28px 28px; display: flex; flex-direction: column; }
.find-item-title { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.find-item-text { font-size: 18px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.find-item-why { font-size: 18px; color: var(--text-2); line-height: 1.6; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.find-item-why strong { color: var(--text); font-weight: 600; }
.find-figure { margin-top: 40px; }
/* Scroll-play demo video */
.cs-demo-video { margin-top: 40px; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(16,32,64,0.28); }
.cs-demo-video video { width: 100%; display: block; }
/* Video clip slot (right column of a process row) */
.cs-clip { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(135deg, #f5f7fb, #eceff6); box-shadow: 0 10px 30px rgba(16,32,64,0.10); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cs-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-clip-play { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(16,32,64,0.18); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.cs-clip-label { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--text-3); }
/* clip holding a real video — conforms to the clip, no letterbox bars */
.cs-clip.has-video { aspect-ratio: auto; background: transparent; border: none; box-shadow: none; overflow: visible; }
.cs-clip.has-video video { position: static; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 600px; object-fit: contain; border-radius: 14px; box-shadow: 0 14px 38px rgba(16,32,64,0.20); }
/* The Opportunity */
.opp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 32px 0; }
.opp-stat .cs-stat-num { font-size: 52px; }
.opp-stat .cs-stat-label { font-size: 18px; }
.opp-why { margin-top: 8px; }
.opp-why-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.opp-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.opp-reason { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; padding: 22px; }
.opp-reason-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: #eaf1fb; color: var(--accent); }
.opp-reason-title { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.opp-reason-desc { font-size: 18px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 900px) { .opp-reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .opp-reasons { grid-template-columns: 1fr; } }
/* The Solution — two layers */
.sol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.sol-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 14px; padding: 28px; }
.sol-num { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sol-icon { width: 44px; height: 44px; border-radius: 11px; background: #eaf1fb; color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sol-title { font-family: var(--font-serif); font-size: 24px; font-weight: 400; letter-spacing: -0.4px; color: var(--text); margin-bottom: 10px; line-height: 1.15; }
.sol-desc { font-size: 18px; color: var(--text-2); line-height: 1.65; }
@media (max-width: 720px) { .sol-cards { grid-template-columns: 1fr; } }
/* Surface ask → different needs */
.uc-ask { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 40px; }
.uc-ask-label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.uc-ask-bubble { background: var(--accent); color: #fff; font-family: var(--font-serif); font-size: 24px; line-height: 1.3; padding: 16px 30px; border-radius: 16px 16px 16px 4px; max-width: 640px; }
.uc-ask-connector { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 6px; }
.uc-ask-connector-text { font-size: 14px; font-weight: 600; color: var(--text-2); }
.uc-ask-connector svg { color: var(--border-mid); }
/* Use-case quote cards */
.uc-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.uc-quote { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 20px; transition: box-shadow .18s, transform .18s; }
.uc-quote:hover { box-shadow: 0 12px 32px rgba(16,32,64,0.08); transform: translateY(-2px); }
.uc-quote-text { font-size: 21px; color: var(--text); line-height: 1.5; font-family: var(--font-serif); }
.uc-quote-tag { margin-top: auto; display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--accent); background: #eaf1fb; border-radius: 20px; padding: 6px 13px; }
.uc-quote-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (max-width: 760px) { .uc-quotes { grid-template-columns: 1fr; } }
.opp-source { font-size: 12px; color: var(--text-3); margin-top: 20px; font-style: italic; }
@media (max-width: 640px) { .opp-stats { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .find-simple { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .find-simple { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .cs-body { padding: 0 20px; }
  .cs-row,
  .cs-process-row { grid-template-columns: 1fr; gap: 28px; }
  .cs-process-figure { max-width: 100%; }
}

@media (max-width: 640px) {
  .cs-meta-bar-inner { grid-template-columns: 1fr 1fr; }
  .cs-stats-inner { grid-template-columns: 1fr; }
  .cs-flows { grid-template-columns: 1fr; }
  .cs-component-grid { grid-template-columns: 1fr; }
  .cs-hero-image img { width: 90%; }
}

/* ===== Agentic design language — live component specimens ===== */
.dl-canvas {
  background: linear-gradient(180deg,#e9eefb,#dbe4f6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-top: 32px;
  /* break out wider than the reading column */
  width: min(1240px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}
/* Foundations strip */
.dl-foundations { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid rgba(20,36,72,0.12); }
.dl-swatches { display: flex; gap: 16px; }
.dl-swatch { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: #5b6472; }
.dl-swatch i { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: 0 2px 6px rgba(20,36,72,0.08); }
.dl-mark { display: flex; align-items: center; justify-content: center; background: #fff; color: var(--accent); box-shadow: 0 2px 6px rgba(20,36,72,0.08); }
.dl-fdiv { width: 1px; align-self: stretch; background: rgba(20,36,72,0.12); }
.dl-type { display: flex; align-items: baseline; gap: 10px; }
.dl-type-lg { font-size: 30px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
.dl-type-meta { font-size: 11px; color: #5b6472; }
/* Demo layout: sticker sheet + composed example */
.dl-demo { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.dl-sheet { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; align-content: start; }
.dl-aside { flex: 0 0 340px; max-width: 100%; }
.dl-tall { grid-column: span 2; }
/* Atomic-design tiers */
.dl-tier { display: flex; gap: 28px; padding: 26px 0; border-top: 1px solid rgba(20,36,72,0.12); }
.dl-tier:first-child { border-top: 0; padding-top: 2px; }
.dl-tier-head { flex: 0 0 160px; }
.dl-tier-num { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.dl-tier-name { font-family: var(--font-serif); font-size: 23px; font-weight: 400; color: var(--text); letter-spacing: -0.4px; margin: 3px 0 8px; }
.dl-tier-desc { font-size: 12px; color: #5b6472; line-height: 1.55; }
.dl-tier-body { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
/* tabbed levels */
.dl-radio { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.dl-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(20,36,72,0.14); margin-bottom: 26px; flex-wrap: wrap; }
.dl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; font-family: var(--font-serif); font-size: 19px; font-weight: 400; letter-spacing: -0.3px; color: #6a7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.dl-tab:hover { color: var(--text); }
.dl-tab-num { font-family: var(--font-sans, inherit); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #aeb6c2; }
.dl-panel { display: none; }
.dl-panel-desc { font-size: 13px; color: #5b6472; line-height: 1.55; margin-bottom: 22px; max-width: 640px; }
#dltier-a:checked ~ .dl-tabs label[for="dltier-a"],
#dltier-m:checked ~ .dl-tabs label[for="dltier-m"],
#dltier-o:checked ~ .dl-tabs label[for="dltier-o"] { color: var(--text); border-bottom-color: var(--accent); }
#dltier-a:checked ~ .dl-tabs label[for="dltier-a"] .dl-tab-num,
#dltier-m:checked ~ .dl-tabs label[for="dltier-m"] .dl-tab-num,
#dltier-o:checked ~ .dl-tabs label[for="dltier-o"] .dl-tab-num { color: var(--accent); }
#dltier-a:checked ~ .dl-panels .dl-panel:nth-child(1),
#dltier-m:checked ~ .dl-panels .dl-panel:nth-child(2),
#dltier-o:checked ~ .dl-panels .dl-panel:nth-child(3) { display: block; }
.dl-item { display: flex; flex-direction: column; gap: 8px; }
.dl-item-stage { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 14px; box-shadow: 0 5px 16px rgba(20,36,72,0.06); display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.dl-item-cap { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #6b7480; }
.dl-atom .dl-item-stage { align-items: center; min-width: 88px; min-height: 66px; }
.dl-tokens { display: flex; gap: 8px; }
.dl-tokens i { width: 22px; height: 22px; border-radius: 6px; display: block; }
.dl-icons { display: flex; gap: 12px; align-items: center; color: #2b333b; }
.dl-icons .dl-spark { color: var(--accent); }
.dl-org .dl-item-stage { width: 300px; align-items: stretch; }
/* new atoms */
.dl-checkbox { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c2c8d0; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.dl-checkbox.is-on { background: #2f9e44; border-color: #2f9e44; }
.dl-link { color: #56606a; text-decoration: underline; font-size: 13px; }
.dl-feedback { display: inline-flex; gap: 16px; color: #56606a; }
.dl-typing { display: inline-flex; gap: 4px; background: #eef0f3; border-radius: 14px; padding: 9px 13px; align-self: flex-start; }
.dl-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa2ab; display: block; }
/* link card */
.dl-linkcard { align-self: flex-start; display: flex; align-items: center; gap: 12px; background: #f3f4f6; border-radius: 12px; padding: 13px 15px; }
.dl-linkcard img { width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0; }
.dl-linkcard-title { font-size: 13px; font-weight: 700; color: #1d1d1f; line-height: 1.3; }
.dl-linkcard-url { font-size: 12px; color: #6b7280; margin-top: 3px; }
/* information card */
.dl-infocard { align-self: stretch; background: #f4f5fb; border-radius: 12px; padding: 16px; }
.dl-infocard-title { font-size: 14px; font-weight: 700; color: #1d1d1f; margin-bottom: 8px; }
.dl-infocard-body { font-size: 13px; color: #2b333b; line-height: 1.5; }
.dl-infocard-div { height: 1px; background: rgba(20,36,72,0.12); margin: 13px 0; }
.dl-infocard-srclabel { font-size: 12px; font-weight: 600; color: #56606a; margin-bottom: 8px; }
.dl-infocard-src { display: flex; flex-direction: column; gap: 7px; }
.dl-infocard-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
/* selector */
.dl-selector { align-self: stretch; background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; overflow: hidden; }
.dl-selector-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid #eceef1; }
.dl-selector-title { font-size: 13px; font-weight: 600; color: #1d1d1f; }
.dl-selector-title b { font-weight: 700; }
.dl-selector-sub { font-size: 11px; color: #8a9099; margin-top: 1px; }
.dl-selector-list { padding: 4px 15px; display: flex; flex-direction: column; }
.dl-selector-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; font-size: 13px; color: #2b333b; }
.dl-selector-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 15px; border-top: 1px solid #eceef1; }
.dl-btn-outline { font-size: 12px; font-weight: 600; color: #38434f; border: 1px solid #c2c8d0; padding: 7px 16px; border-radius: 18px; }
.dl-btn-pill { font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); padding: 7px 18px; border-radius: 18px; }
/* multi-step loading */
.dl-msteps { align-self: stretch; border: 1px solid #e7e9ed; border-radius: 10px; padding: 13px 15px; display: flex; flex-direction: column; gap: 12px; }
.dl-mstep { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: #9aa2ab; }
.dl-mstep.is-done { color: #2b333b; }
.dl-mstep.is-active { color: #1d1d1f; font-weight: 500; }
.dl-mstep-ico { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.dl-mstep-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #c8cdd4; }
/* human message bubble (avatar + text + timestamp) */
.dl-hmsg { display: flex; align-items: center; gap: 9px; align-self: flex-start; }
.dl-hmsg-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,#e3ba8b,#9c6a3c); flex-shrink: 0; }
.dl-hmsg-text { font-size: 13px; color: #2b333b; }
.dl-hmsg-time { font-size: 12px; color: #9aa2ab; }
.dl-linkcard-fav { width: 34px; height: 34px; border-radius: 7px; background: #e9edf2; display: flex; align-items: center; justify-content: center; color: #8a9099; flex-shrink: 0; }
/* Chat container — the "Help assistant" widget */
.dl-chat {
  width: 380px; max-width: 100%;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,36,72,0.18);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.dl-chat-header {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; border-bottom: 1px solid #eceef1;
}
.dl-spark { color: var(--accent); flex-shrink: 0; display: block; }
.dl-chat-name { font-weight: 600; color: var(--text); font-size: 14px; }
.dl-x { margin-left: auto; color: #8a9099; display: flex; }
.dl-stream { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
/* assistant message — plain text, no bubble */
.dl-amsg { align-self: flex-start; max-width: 90%; font-size: 13px; line-height: 1.5; color: #2b333b; }
.dl-amsg a { color: var(--accent); text-decoration: none; }
/* user reply / suggestion chip — light-blue pill, right aligned */
.dl-uchip { align-self: flex-end; background: #e7f0fb; color: #1c4e86; font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 16px; line-height: 1.35; max-width: 84%; text-align: left; }
/* skeleton body line — the mock's placeholder copy */
.dl-skel { height: 7px; border-radius: 4px; background: #eaecef; align-self: stretch; }
/* action card — agent taking action, with progress bar */
.dl-actioncard { align-self: stretch; border: 1px solid #e7e9ed; border-radius: 10px; padding: 12px 14px; }
.dl-actioncard-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.dl-progress { margin-top: 10px; height: 3px; border-radius: 3px; background: #eaecef; overflow: hidden; }
.dl-progress > span { display: block; height: 100%; width: 34%; background: var(--accent); border-radius: 3px; }
/* parameter / confirmation card — a captured slot */
.dl-paramcard { align-self: stretch; display: flex; align-items: center; gap: 9px; border: 1px solid #e7e9ed; border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--text); }
.dl-paramcard b { font-weight: 600; }
.dl-check { color: #2b333b; flex-shrink: 0; display: flex; }
/* in-thread form card — collect parameters */
.dl-formcard { align-self: stretch; background: #f5f6f8; border: 1px solid #e7e9ed; border-radius: 12px; padding: 14px; }
.dl-form-q { font-size: 12.5px; color: #2b333b; line-height: 1.45; margin-bottom: 12px; }
.dl-field { margin-bottom: 10px; }
.dl-field-label { font-size: 11px; color: #56606a; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; }
.dl-field-input { background: #fff; border: 1px solid #d6dae0; border-radius: 7px; padding: 8px 11px; font-size: 12.5px; color: #9aa2ab; }
.dl-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.dl-btn-primary { font-size: 12.5px; font-weight: 600; color: #fff; background: #c7ccd3; padding: 8px 14px; border-radius: 8px; }
.dl-btn-text { font-size: 12.5px; color: #56606a; font-weight: 500; }
/* composer */
.dl-composer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #eceef1; }
.dl-input { flex: 1; background: #fff; border: 1px solid #d6dae0; border-radius: 22px; padding: 10px 16px; color: #9aa2ab; font-size: 13px; }
.dl-send { color: #8a9099; display: flex; flex-shrink: 0; padding-right: 4px; }
/* component specimen column */
.dl-spec-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #5b6472; margin-bottom: 9px; }
.dl-spec-stage { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 16px; box-shadow: 0 6px 18px rgba(20,36,72,0.06); display: flex; flex-direction: column; gap: 9px; height: 100%; box-sizing: border-box; }

/* Skill cards */
.dl-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.dl-skill { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 11px; transition: box-shadow .15s, transform .15s; }
.dl-skill:hover { box-shadow: 0 12px 32px rgba(16,32,64,0.10); transform: translateY(-2px); }
.dl-skill-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.dl-skill-name { font-weight: 700; color: var(--text); font-size: 19px; }
.dl-skill-desc { font-size: 18px; color: var(--text-2); line-height: 1.55; }
.dl-skill-tag { margin-top: auto; align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; }

/* Intent router */
.dl-intents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.dl-intents.cols-2 { grid-template-columns: 1fr 1fr; }
.dl-intent { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; padding: 20px; }
.dl-intent-name { font-weight: 700; font-size: 19px; color: var(--text); margin-bottom: 7px; }
.dl-intent-desc { font-size: 18px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; }
.dl-intent-ex { font-size: 18px; color: var(--text-3); font-style: italic; border-top: 1px dashed var(--border); padding-top: 10px; }

/* Conversation-flow stepper */
.dl-specimen { margin-top: 30px; }
.dl-specimen-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.dl-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-step { flex: 1; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.dl-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.dl-step-title { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.dl-step-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; }

@media (max-width: 640px) {
  .dl-canvas { padding: 20px; }
  .dl-tier { flex-direction: column; gap: 14px; }
  .dl-tier-head { flex-basis: auto; }
  .dl-org .dl-item-stage { width: 100%; }
  .dl-skills, .dl-skills[style] { grid-template-columns: 1fr !important; }
  /* Text card grids collapse to 1 column (override inline column counts) */
  .dl-intents, .dl-intents.cols-2 { grid-template-columns: 1fr !important; }
  /* Numeric stat bands stack 2-up (higher specificity wins over the rule above) */
  .dl-intents:has(.cs-stat-num) { grid-template-columns: repeat(2, 1fr) !important; }
  .cs-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .cs-hero-stats > div { max-width: none; text-align: center; }
}
