/* ==========================================================================
   module.css starter. Copied to projects/<slug>/css/module.css by tools/new_module.sh.
   system.css is NEVER edited. Every visual addition of this module goes here.
   Tokens: primary #000, secondary #FFD6EE, amber #5CE1E6 (cyan), header-blue #1a295b,
   strong-pink #FF5BC0, gray #8E8B88, page-bg #F8F9FC, offwhite #F7F8FC.
   Paths: this file lives in projects/<slug>/css/, so shared assets are ../../../assets/
   ========================================================================== */

/* ----- Overflow guard (no horizontal scroll, ever) ----- */
.main-content, .step, .step-container { max-width: 100%; overflow-x: clip; }
.step-header .step-desc { max-width: 46rem; }

/* ----- Text utilities ----- */
.body-p { font-size: 1rem; line-height: 1.8; color: #1f1f1f; margin: 0.6rem 0 0.9rem; }
.body-p strong { color: var(--header-blue); }
.term { font-weight: 700; color: var(--header-blue); background: linear-gradient(transparent 62%, rgba(255,214,238,0.9) 62%); padding: 0 2px; }
.en { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.quote-en { direction: ltr; unicode-bidi: isolate; font-style: italic; color: #333; }
.shot-note { font-size: 0.78rem; color: var(--gray); margin: 0.2rem 0 0.9rem; line-height: 1.5; }
.lead-line {
  font-family: 'Rubik', 'Heebo', sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.55;
  color: var(--header-blue, #1a295b); margin: 1.1rem 0 0.35rem; padding: 0.85rem 1.05rem;
  background: linear-gradient(105deg, rgba(255,214,238,0.55), rgba(92,225,230,0.18));
  border-radius: 14px; border: 1px solid rgba(255,91,192,0.22);
}
.lead-line.soft { background: rgba(92,225,230,0.12); border-color: rgba(92,225,230,0.35); color: #12203f; font-weight: 600; }

/* ----- Callout big (one large line) ----- */
.callout.big { padding: .7rem 1rem; margin: 1.1rem 0 1.4rem; background: rgba(255,91,192,0.10); border: 1.5px solid var(--strong-pink); color: #000; align-items: flex-start; }
.callout.big .callout-body { font-family: 'Rubik', 'Heebo', sans-serif; font-weight: 500; font-size: .92rem; line-height: 1.6; }
.callout.big [data-lucide] { color: var(--strong-pink); width: 18px; height: 18px; margin-top: 3px; }

/* ----- Prompt block: Hebrew only ----- */
.prompt-block.he { direction: rtl; text-align: right; font-family: 'Heebo', sans-serif; font-size: 0.92rem; line-height: 1.75; padding-top: 2.6rem; }

/* ----- Screenshot caption and zoom frame ----- */
.screenshot-caption { display: block; line-height: 1.6; }
.screenshot-caption [data-lucide], .screenshot-caption svg { display: inline-block; vertical-align: -2px; margin-inline-end: 5px; }
.screenshot-frame.zoomable { overflow: visible; }
.screenshot-frame.zoomable > img:not(.point-arrow) { border-radius: 16px; }

/* ----- Mini carousel of screenshots ----- */
.mini-carousel { max-width: 720px; }
.mini-carousel-slide .screenshot-frame { height: auto; max-height: 440px; aspect-ratio: 16 / 9; }
.mini-carousel-slide .screenshot-frame img { height: 100%; width: 100%; object-fit: contain; }

/* ----- Click target: fuchsia hotspot + tight arrow (.point-arrow itself is in system.css) ----- */
.hotspot {
  position: absolute; pointer-events: none; z-index: 2; border: none !important; border-radius: 0 !important; box-shadow: none;
  background: url("../../../assets/images/hotspot-ellipse.svg") center / 100% 100% no-repeat;
  transform: scale(1.55); transform-origin: center center; animation: hotspotPulse 1.8s var(--ease-out) infinite;
}
@keyframes hotspotPulse { 0%, 100% { opacity: 0.88; transform: scale(1.55); } 50% { opacity: 1; transform: scale(1.68); } }
.point-arrow.tight { width: 7.5% !important; }
@media (prefers-reduced-motion: reduce) { .hotspot { animation: none; opacity: 1; transform: scale(1.55); } }

/* ----- Flip grids: 3 columns on desktop ----- */
.flip-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----- Completion: outro video, bright card lower so text is readable over the colourful video ----- */
.completion { background: #ffffff; justify-content: flex-end; padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }
.completion-video { top: var(--header-h); height: calc(100% - var(--header-h) - 9.5rem); object-fit: contain; }
.completion-content {
  margin-top: auto; margin-bottom: 0.9rem; padding: 1.1rem 1.6rem 1.35rem; max-width: min(520px, 92vw); width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #FFE9F5 55%, #E6FBFC 100%);
  border-radius: 24px; border: 2px solid rgba(255,91,192,0.45); box-shadow: 0 14px 40px rgba(26,41,91,0.2); text-align: center;
}
.completion-goodluck { color: var(--header-blue) !important; margin: 0 0 0.75rem; font-size: clamp(2rem, 5vw, 2.8rem); }
.completion-goodluck .wave-letter { color: var(--header-blue); text-shadow: none; }
.completion-btn.primary {
  background: var(--amber); color: #000; border-color: var(--amber); font-weight: 800; font-size: 1.05rem;
  padding: 0.9rem 1.7rem; box-shadow: 0 0 0 4px rgba(92,225,230,0.4), 0 8px 22px rgba(92,225,230,0.35);
}

/* ----- Mobile basics ----- */
@media (max-width: 768px) {
  .step-title { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .body-p { font-size: 0.97rem; }
  .flip-grid, .flip-grid-3 { grid-template-columns: 1fr; }
  .flip-card { min-height: 170px; }
  .completion-video { height: calc(100% - var(--header-h) - 10.5rem); }
  .completion-content { padding: 0.95rem 1rem 1.15rem; }
  .card-fan { height: auto; }
}

/* ==========================================================================
   Component blocks: copy the ones you use from the reference modules, see Iris.md section 9.
   Lottie block: paste ../../assets/css/lottie-slot.css here (new_module.sh already appends it).
   ========================================================================== */
/* ===== Lottie slots (paste this block into the module's css/module.css) ===== */
.lottie-slot {
  display: inline-block; position: relative; flex-shrink: 0;
  width: 72px; height: 72px; direction: ltr; line-height: 0;
  vertical-align: middle; cursor: pointer; contain: layout paint;
}
.lottie-slot.sm { width: 48px; height: 48px; }
.lottie-slot.md { width: 72px; height: 72px; }
.lottie-slot.lg { width: 112px; height: 112px; }
.lottie-slot.hero { width: 132px; height: 132px; }
.lottie-slot svg { width: 100% !important; height: 100% !important; display: block; }
.lottie-slot.lottie-failed { display: none; }
.lottie-slot.center { display: block; margin: 0.4rem auto; }
.lottie-row { display: flex; align-items: center; gap: 0.8rem; margin: 0.4rem 0 0.6rem; }
.lottie-row > .lottie-text { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .lottie-slot.lg { width: 88px; height: 88px; }
  .lottie-slot.hero { width: 104px; height: 104px; }
}
@media (max-width: 480px) {
  .lottie-slot.md { width: 60px; height: 60px; }
  .lottie-slot.lg { width: 76px; height: 76px; }
  .lottie-slot.hero { width: 88px; height: 88px; }
}
@media print { .lottie-slot { display: none; } }
/* ===== end Lottie slots ===== */

/* ----- Optional brand font declared with the right path (system.css points at a path that does not exist inside projects/) ----- */
@font-face { font-family: 'OH Yael Leibushor'; src: url('../../../assets/fonts/OHYaelLeibushor1.0-Regular.otf') format('opentype'); font-display: swap; }


/* ===========================================================================
   COMPONENT LIBRARY CSS (from examples/copilot-new + opus-55). Unused rules are harmless.
   Delete the families you did not use at the end of the build, if you want a lean file.
   =========================================================================== */
.icon-float {
  width: 28px; height: 28px;
  animation: iconFloat 2.8s ease-in-out infinite;
}
.icon-float.pink { color: var(--strong-pink); }
.icon-float.cyan { color: var(--amber); }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
/* ----- Before/after compare (text panels, Letsai tokens) ----- */
.example-he {
  background: #fff;
  border: 1.5px solid rgba(92,225,230,0.55);
  border-radius: 14px;
  padding: 0.85rem 1.05rem;
  box-shadow: 0 3px 14px rgba(26,41,91,0.06);
}
.example-he-label {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--header-blue, #1a295b);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.example-he p {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'Heebo', 'Rubik', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #222;
  direction: rtl;
}
.checklist-group-label {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--header-blue, #1a295b);
  margin: 1.15rem 0 0.4rem;
}

.compare-hint { margin: 0.25rem 0 0.85rem; }
.ba-compare {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0.4rem auto 0.75rem;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow: 0 8px 28px rgba(26,41,91,0.1);
  user-select: none;
  touch-action: none;
  background: #FFD6EE;
  cursor: ew-resize;
}
.ba-layer { position: absolute; inset: 0; overflow: hidden; }
.ba-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.ba-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 2.2rem;
  text-align: center;
  box-sizing: border-box;
  gap: 0.55rem;
}
.ba-panel-before {
  background: rgba(255, 214, 238, 0.78);
  color: #1a295b;
}
.ba-panel-after {
  background: rgba(10, 28, 58, 0.62);
  color: #fff;
}
.ba-panel-kicker {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.15rem;
}
.ba-prompt {
  margin: 0;
  font-family: 'Heebo', 'Rubik', sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.45;
  max-width: 22rem;
  direction: rtl;
}
.ba-explain {
  margin: 0;
  font-family: 'Heebo', 'Rubik', sans-serif;
  font-weight: 400;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.55;
  max-width: 24rem;
  direction: rtl;
  opacity: 0.95;
}
.ba-panel p {
  margin: 0;
  font-family: 'Heebo', 'Rubik', sans-serif;
  direction: rtl;
}
.ba-after {
  clip-path: inset(0 0 0 var(--cut, 50%));
}
.ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--cut, 50%);
  width: 3px; padding: 0; margin: 0;
  border: none; background: #FF5BC0;
  transform: translateX(-50%);
  cursor: ew-resize; z-index: 5;
}
.ba-handle::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #FF5BC0, #5CE1E6);
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
.ba-handle::after {
  content: "⟷";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px; font-weight: 800; color: #fff;
  line-height: 1; pointer-events: none;
}
.ba-label {
  position: absolute; top: 12px; z-index: 4;
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-weight: 800; font-size: 0.78rem;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--header-blue, #1a295b);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  pointer-events: none;
}
.ba-label-before { right: 12px; }
.ba-label-after { left: 12px; }
.ba-compare.dragging { cursor: grabbing; }

@media (max-width: 768px) {
  .ba-compare { border-radius: 12px; max-width: 100%; min-height: 200px; aspect-ratio: 4 / 3; }
  .ba-handle::before { width: 42px; height: 42px; }
  .ba-panel { padding: 1.2rem 1.4rem; }
}
@media (max-width: 480px) {
  .ba-label { font-size: 0.7rem; top: 8px; }
  .ba-label-before { right: 8px; }
  .ba-label-after { left: 8px; }
}

/* Clarity fix: longer Hebrew copy readability (opus3) */
.shield-layer:hover .shield-layer-desc,
.shield-layer.open .shield-layer-desc {
  max-height: 900px;
}
.card-fan { height: 300px; }
.fan-card {
  width: 200px;
  height: 260px;
  margin-left: -100px;
  overflow-y: auto;
  font-size: 0.95em;
}
.fan-card p { font-size: 0.8rem; line-height: 1.5; }
.doc-card {
  height: 190px;
  overflow-y: auto;
}
.doc-card.hub {
  height: auto;
  min-height: 150px;
  max-height: 220px;
  overflow-y: auto;
}
.risk-detail { max-height: none; }
.risk-detail p { font-size: 0.9rem; line-height: 1.65; }
.radar-caption { line-height: 1.65; max-width: 42rem; margin-inline: auto; }
@media (max-width: 768px) {
  .card-fan { height: auto; }
  .fan-card { width: 88%; max-width: 320px; height: auto; min-height: 160px; margin-left: auto; }
}

/* ----- Clickable chips with detail line ----- */
.context-chip { cursor: pointer; border: none; font: inherit; }
.context-chip.on { background: var(--chip-tint); box-shadow: 0 0 0 2px var(--chip-color) inset; }
.chip-detail {
  margin: 0.7rem 0 0; padding: 0.75rem 1rem; border-radius: 12px;
  background: #fff; border: 1.5px dashed rgba(26,41,91,0.18);
  font-size: 0.95rem; line-height: 1.6; min-height: 3rem; color: #222;
}

/* ----- Hotspot screenshot (numbered, measured boxes) ----- */
.hs-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0.6rem 0 1rem; }
.hs-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 6px 22px rgba(26,41,91,0.1); background: #fff; }
.hs-stage img.hs-img { display: block; width: 100%; height: auto; }
.hs-box {
  position: absolute; border: none; padding: 0; background: transparent; cursor: pointer;
}
.hs-box::before {
  content: ""; position: absolute; inset: 0;
  background: url('../../../assets/images/hotspot-ellipse.svg') center / 100% 100% no-repeat;
  transform: scale(1.55); opacity: 0.35; transition: opacity 0.2s, transform 0.25s var(--spring);
}
.hs-box.on::before, .hs-box:hover::before, .hs-box:focus-visible::before { opacity: 1; transform: scale(1.62); }
.hs-num {
  position: absolute; top: -14px; right: -14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--strong-pink); color: #fff; font: 800 0.8rem/26px 'Rubik', sans-serif; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); border: 2px solid #fff;
}
.hs-box.on .hs-num { background: var(--header-blue); }
.hs-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin: 0; padding: 0; }
.hs-item {
  display: flex; gap: 0.6rem; align-items: flex-start; width: 100%; text-align: right; cursor: pointer;
  background: #fff; border: 1.5px solid rgba(26,41,91,0.1); border-radius: 12px; padding: 0.55rem 0.7rem;
  font-size: 0.88rem; line-height: 1.55; color: #222; transition: border-color 0.2s, box-shadow 0.2s;
}
.hs-item .hs-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: var(--header-blue); font: 800 0.78rem/24px 'Rubik', sans-serif; text-align: center; }
.hs-item.on { border-color: var(--strong-pink); box-shadow: 0 6px 18px rgba(255,91,192,0.18); }
.hs-item.on .hs-n { background: var(--strong-pink); color: #fff; }
.hs-item b { color: var(--header-blue); }

/* ----- Sort / classify (Chat or Cowork) ----- */
.sort-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.sort-item { background: #fff; border: 1.5px solid rgba(26,41,91,0.1); border-radius: 14px; padding: 0.8rem 1rem; box-shadow: 0 3px 12px rgba(26,41,91,0.05); }
.sort-q { font-weight: 700; color: #1a1a1a; font-size: 0.97rem; }
.sort-btns { display: flex; gap: 0.5rem; margin-top: 0.55rem; flex-wrap: wrap; }
.sort-btn {
  min-width: 96px; min-height: 40px; padding: 0.35rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(26,41,91,0.25); background: #fff; font-weight: 700; color: var(--header-blue);
  font-family: 'Rubik', 'Heebo', sans-serif;
}
.sort-btn:hover { background: var(--offwhite); }
.sort-btn.right { background: var(--amber); border-color: var(--amber); color: #000; }
.sort-btn.wrong { background: rgba(255,91,192,0.12); border-color: var(--strong-pink); color: #7a2e56; }
.sort-fb { display: none; margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.55; color: #333; }
.sort-item.done .sort-fb { display: block; }

/* ----- Prompt tabs (Hebrew prompts, one per app) ----- */
.ptabs { background: #231d1a; border-radius: 14px; overflow: hidden; margin: 0.6rem 0 1rem; }
.ptabs-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.6rem 0.6rem 0; background: #2d2622; }
.ptabs-tab {
  border: none; cursor: pointer; padding: 0.5rem 0.95rem; border-radius: 10px 10px 0 0;
  background: transparent; color: rgba(251,246,241,0.7); font-weight: 700; font-family: 'Rubik', sans-serif; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
}
.ptabs-tab.on { background: #231d1a; color: #fff; box-shadow: inset 0 3px 0 var(--amber); }
.ptabs-panel { display: none; position: relative; padding: 2.8rem 1.2rem 1.1rem; color: #fbf6f1; }
.ptabs-panel.on { display: block; animation: carouselIn 0.3s var(--ease-out); }
.ptabs-text { white-space: pre-wrap; display: block; direction: rtl; text-align: right; font-family: 'Heebo', sans-serif; font-size: 0.93rem; line-height: 1.8; }
.ptabs-copy, .pb-copy {
  position: absolute; top: 0.65rem; left: 0.65rem; display: flex; align-items: center; gap: 5px;
  padding: 0.3rem 0.75rem; border-radius: 999px; cursor: pointer; font-size: 0.78rem; font-weight: 700;
  background: rgba(255,255,255,0.1); color: #fbf6f1; border: 1px solid rgba(255,255,255,0.25);
}
.ptabs-copy.copied, .pb-copy.copied { background: var(--amber); color: #000; border-color: var(--amber); }
.ptabs-copy [data-lucide], .pb-copy [data-lucide] { width: 13px; height: 13px; }

/* ----- Filmstrip (big viewer + thumbnails) ----- */
.film { margin: 0.6rem 0 1rem; }
.film-view { border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.1); background: #f4f4f0; box-shadow: 0 6px 22px rgba(26,41,91,0.1); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.film-view img { width: 100%; height: 100%; object-fit: contain; display: block; }
.film-cap { font-size: 0.92rem; line-height: 1.6; color: #222; margin: 0.6rem 0 0.5rem; min-height: 3.2em; }
.film-cap .film-step { display: inline-block; font: 800 0.72rem 'Rubik', sans-serif; color: #fff; background: var(--header-blue); border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.4rem; }
.film-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.45rem; }
.film-thumb { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: #eee; aspect-ratio: 16 / 10; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--spring); }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-thumb.on { opacity: 1; border-color: var(--strong-pink); transform: translateY(-2px); }
.film-thumb:hover { opacity: 1; }

/* ----- Compare table (written vs not written) ----- */
.ct-filters { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0.4rem 0 0.7rem; }
.ct-filter { border: 1.5px solid rgba(26,41,91,0.2); background: #fff; border-radius: 999px; padding: 0.35rem 0.95rem; min-height: 38px; cursor: pointer; font-weight: 700; color: var(--header-blue); font-family: 'Rubik', sans-serif; font-size: 0.85rem; }
.ct-filter.on { background: var(--header-blue); color: #fff; border-color: var(--header-blue); }
.ct-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(26,41,91,0.1); font-size: 0.9rem; }
.ct-table th { background: var(--header-blue); color: #fff; text-align: right; padding: 0.6rem 0.8rem; font-family: 'Rubik', sans-serif; font-weight: 700; }
.ct-table td { padding: 0.65rem 0.8rem; border-top: 1px solid rgba(26,41,91,0.08); line-height: 1.55; vertical-align: top; }
.ct-table tr.hide { display: none; }
.ct-tag { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 800; font-size: 0.78rem; border-radius: 999px; padding: 0.15rem 0.6rem; }
.ct-tag.yes { background: rgba(92,225,230,0.2); color: #0f5457; }
.ct-tag.no { background: rgba(255,91,192,0.14); color: #8a1f5e; }

/* ----- Prompt builder ----- */
.pb { background: #fff; border: 1.5px solid rgba(26,41,91,0.1); border-radius: 16px; padding: 1rem; box-shadow: 0 4px 16px rgba(26,41,91,0.06); margin: 0.6rem 0 1rem; }
.pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.7rem; }
.pb-row > label { width: 100%; font: 800 0.82rem 'Rubik', sans-serif; color: var(--header-blue); }
.pb-chip { border: 1.5px solid rgba(26,41,91,0.2); background: #fff; border-radius: 999px; padding: 0.35rem 0.85rem; min-height: 38px; cursor: pointer; font-size: 0.87rem; color: #222; text-align: right; }
.pb-chip.on { background: var(--secondary); border-color: var(--strong-pink); color: #000; font-weight: 700; }
.pb-out { position: relative; background: #231d1a; color: #fbf6f1; border-radius: 12px; padding: 2.8rem 1.1rem 1rem; }
.pb-text { white-space: pre-wrap; display: block; font-size: 0.92rem; line-height: 1.8; }

/* ----- Process rail ----- */
.rail { margin: 0.6rem 0 1rem; }
.rail-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; position: relative; }
.rail-track::before { content: ""; position: absolute; top: 24px; right: 10%; left: 10%; height: 3px; background: linear-gradient(270deg, var(--amber), var(--strong-pink)); border-radius: 3px; z-index: 0; }
.rail-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; background: none; border: none; cursor: pointer; padding: 0; }
.rail-dot { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); display: flex; align-items: center; justify-content: center; color: var(--header-blue); transition: transform 0.25s var(--spring), background 0.2s; }
.rail-dot [data-lucide] { width: 22px; height: 22px; }
.rail-name { font: 700 0.8rem 'Rubik', sans-serif; color: var(--header-blue); text-align: center; line-height: 1.3; }
.rail-node.on .rail-dot { background: var(--strong-pink); border-color: var(--strong-pink); color: #fff; transform: scale(1.1); }
.rail-detail { margin-top: 0.9rem; background: #fff; border-radius: 16px; border: 1.5px solid rgba(255,91,192,0.35); padding: 1rem 1.1rem; box-shadow: 0 6px 20px rgba(26,41,91,0.06); }
.rail-detail h4 { font-size: 1.05rem; color: var(--header-blue); margin-bottom: 0.35rem; }
.rail-detail p { font-size: 0.95rem; line-height: 1.7; margin: 0; }
.rail-detail .rail-status { display: inline-block; margin-top: 0.55rem; font-size: 0.78rem; font-weight: 800; color: #0f5457; background: rgba(92,225,230,0.2); border-radius: 999px; padding: 0.15rem 0.65rem; }

/* ----- Status board (availability) ----- */
.sb-filters { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0.4rem 0 0.7rem; }
.sb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.sb-card { background: #fff; border-radius: 14px; border: 1.5px solid rgba(26,41,91,0.1); padding: 0.75rem 0.9rem; border-inline-start: 5px solid var(--c, var(--amber)); }
.sb-card.hide { display: none; }
.sb-card h4 { font-size: 0.95rem; color: var(--header-blue); margin-bottom: 0.2rem; }
.sb-card p { font-size: 0.87rem; line-height: 1.55; margin: 0; color: #222; }
.sb-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.35rem; background: var(--t, rgba(92,225,230,0.2)); color: #1a1a1a; }

/* ----- Quiz ----- */
.quiz { display: flex; flex-direction: column; gap: 0.8rem; margin: 0.6rem 0 1rem; }
.quiz-q { background: #fff; border-radius: 16px; border: 1.5px solid rgba(26,41,91,0.1); padding: 0.9rem 1rem; }
.quiz-q h4 { font-size: 0.98rem; color: #1a1a1a; margin-bottom: 0.55rem; font-weight: 700; }
.quiz-opts { display: flex; flex-direction: column; gap: 0.4rem; }
.quiz-opt { text-align: right; border: 1.5px solid rgba(26,41,91,0.18); background: #fff; border-radius: 12px; padding: 0.55rem 0.8rem; min-height: 44px; cursor: pointer; font-size: 0.92rem; color: #222; }
.quiz-opt:hover { background: var(--offwhite); }
.quiz-opt.right { background: rgba(92,225,230,0.25); border-color: var(--amber); font-weight: 700; }
.quiz-opt.wrong { background: rgba(255,91,192,0.1); border-color: var(--strong-pink); }
.quiz-fb { display: none; margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.55; color: #333; }
.quiz-q.done .quiz-fb { display: block; }

/* ----- Tabs (USL / UBB / Auto) ----- */
.tabs { margin: 0.6rem 0 1rem; }
.tabs-bar { display: flex; gap: 0.35rem; flex-wrap: wrap; border-bottom: 2px solid rgba(26,41,91,0.1); }
.tabs-tab { border: none; background: none; cursor: pointer; padding: 0.55rem 1rem; min-height: 44px; font: 700 0.92rem 'Rubik', sans-serif; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs-tab.on { color: var(--header-blue); border-bottom-color: var(--strong-pink); }
.tabs-panel { display: none; background: #fff; border: 1.5px solid rgba(26,41,91,0.1); border-top: none; border-radius: 0 0 16px 16px; padding: 1rem 1.1rem; }
.tabs-panel.on { display: block; animation: carouselIn 0.3s var(--ease-out); }
.tabs-panel h4 { color: var(--header-blue); font-size: 1.05rem; margin-bottom: 0.4rem; }
.tabs-panel ul { margin: 0.4rem 0 0; padding-inline-start: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.93rem; line-height: 1.6; }
.tabs-panel p { font-size: 0.95rem; line-height: 1.7; }

/* ----- Timeline thumbnails ----- */
.dream-step-body img.tl-shot { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); margin-top: 0.5rem; box-shadow: 0 3px 12px rgba(26,41,91,0.08); }

/* ----- ba-compare with screenshots (Chat vs Cowork) ----- */
.ba-compare.shots { aspect-ratio: 1520 / 410; min-height: 0; max-width: 820px; background: #f4f4ef; }
.ba-compare.shots .ba-bg { object-fit: contain; }
.ba-compare.shots .ba-label { top: auto; bottom: 8px; }
.ba-compare.shots .ba-label-before { left: 12px; right: auto; }
.ba-compare.shots .ba-label-after { right: 12px; left: auto; }
.ba-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.5rem; }
.ba-legend > div { background: #fff; border-radius: 12px; border: 1.5px solid rgba(26,41,91,0.1); padding: 0.7rem 0.85rem; font-size: 0.9rem; line-height: 1.6; }
.ba-legend b { color: var(--header-blue); }

/* ----- Mobile ----- */
@media (max-width: 900px) {
  .hs-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .step-title { font-size: clamp(1.45rem, 5.5vw, 1.85rem); }
  .body-p { font-size: 0.97rem; }
  .flip-grid, .flip-grid-3 { grid-template-columns: 1fr; }
  .flip-card { min-height: 170px; }
  .context-chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .context-chip { flex: 1 1 calc(50% - 0.5rem); min-width: 140px; justify-content: center; min-height: 46px; }
  .film-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.3rem; }
  .sb-grid { grid-template-columns: 1fr; }
  .ba-legend { grid-template-columns: 1fr; }
  .rail-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail-dot { width: 42px; height: 42px; }
  .rail-track::before { top: 21px; }
  .rail-name { font-size: 0.7rem; }
  .ct-table { font-size: 0.85rem; }
  .ct-table th:first-child, .ct-table td:first-child { width: 7.5rem; }
  .hs-num { width: 22px; height: 22px; line-height: 22px; font-size: 0.7rem; top: -11px; right: -11px; }
  .completion-video { height: calc(100% - var(--header-h) - 10.5rem); }
  .completion-content { padding: 0.95rem 1rem 1.15rem; }
  .card-fan { height: auto; }
}
@media (max-width: 480px) {
  .context-chip { flex: 1 1 100%; }
  .ptabs-tab { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
  .ct-table td, .ct-table th { padding: 0.55rem 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-box::before, .rail-dot, .film-thumb { transition: none; }
}

/* ==========================================================================
   Claude Code Mods: custom families (additions only)
   ========================================================================== */
.step-note { font-style: normal; font-size: 0.9rem; line-height: 1.7; color: #2b2f45; margin: 0.4rem 0 0.8rem; }
.step-note strong { color: var(--header-blue); }
.cmd-explain { font-size: 0.93rem; line-height: 1.7; color: #1f1f1f; margin: 0.4rem 0 1rem; }
.module-credit { text-align: center; padding: 1.2rem 1rem 5.5rem; margin: 0; }
.ct-tag.linked { background: rgba(138,168,224,0.22); color: #1a295b; }
.ltr-btn { direction: ltr; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.82rem; }
.film-6 .film-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.film-6 .film-cap { min-height: 4.8em; }

/* ----- Code block (LTR, exactly as in the docs) ----- */
.code-block { direction: ltr; text-align: left; margin: 0.7rem 0 0.4rem; border-radius: 14px; overflow: hidden; background: #141a36; border: 1px solid rgba(26,41,91,0.4); box-shadow: 0 6px 18px rgba(26,41,91,0.14); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.7rem; background: #1d2650; color: #cfd6f6; font: 600 0.74rem 'SFMono-Regular', Consolas, monospace; }
.code-file { overflow-wrap: anywhere; min-width: 0; }
.code-copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; border-radius: 999px; padding: 0.2rem 0.7rem; font: 700 0.74rem 'Heebo', sans-serif; cursor: pointer; transition: background 0.15s; }
.code-copy:hover, .code-copy:focus-visible { background: rgba(255,255,255,0.16); }
.code-copy.done { background: var(--amber); color: #000; border-color: var(--amber); }
.code-copy [data-lucide], .code-copy svg { width: 13px; height: 13px; }
.code-block pre { margin: 0; padding: 0.85rem 1rem; overflow-x: auto; max-width: 100%; }
.code-block code { font: 400 0.82rem/1.65 'SFMono-Regular', Consolas, 'Courier New', monospace; color: #eef1ff; white-space: pre; tab-size: 2; }
.code-explain { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.code-explain li { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.55rem 0.75rem; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; }
.ce-code { direction: ltr; text-align: left; unicode-bidi: isolate; font: 600 0.8rem/1.55 'SFMono-Regular', Consolas, monospace; background: #f0e8e4; color: #2d2420; border-radius: 6px; padding: 3px 8px; overflow-wrap: anywhere; }
.ce-text { font-size: 0.9rem; line-height: 1.65; color: #1f1f1f; }
.tabs-panel .code-block, .settings-item-panel-inner .code-block, .wt-panel .code-block { margin-top: 0.6rem; }

/* ----- Annotated screenshot (switch between click targets) ----- */
.ann { margin: 0.4rem 0 1rem; }
.ann-mark { display: none; }
.ann-mark.on { display: contents; }
.ann-steps { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.7rem 0 0.4rem; }
.ann-step { display: flex; gap: 0.7rem; align-items: flex-start; text-align: right; padding: 0.6rem 0.8rem; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.1); background: #fff; font: 400 0.92rem/1.6 'Heebo', sans-serif; color: #1f1f1f; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.ann-step .ann-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--secondary); color: var(--header-blue); font: 800 0.8rem/26px 'Rubik', sans-serif; text-align: center; }
.ann-step b { color: var(--header-blue); }
.ann-step.on { border-color: var(--strong-pink); box-shadow: 0 6px 18px rgba(255,91,192,0.18); }
.ann-step.on .ann-n { background: var(--strong-pink); color: #fff; }

/* ----- Command builder ----- */
.cmdb { border: 1.5px solid rgba(26,41,91,0.18); border-radius: 16px; padding: 1rem; background: #fff; box-shadow: 0 6px 20px rgba(26,41,91,0.08); }
.cmdb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.9rem; }
.cmdb-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--header-blue); }
.cmdb-field input { direction: ltr; text-align: left; font: 500 0.9rem 'SFMono-Regular', Consolas, monospace; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1.5px solid rgba(0,0,0,0.18); background: #fbfbfd; min-width: 0; width: 100%; }
.cmdb-field input:focus { outline: 2px solid var(--strong-pink); outline-offset: 1px; }
.cmdb-line { margin-bottom: 0.4rem; }
.cmdb-explain { font-size: 0.9rem; line-height: 1.65; margin: 0.25rem 0 0.7rem; color: #1f1f1f; }
.cmdb-warn { font-size: 0.85rem; color: #8a1f5e; font-weight: 700; min-height: 1.2em; margin: 0; }

/* ----- File tree viewer ----- */
.ftree { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; margin: 0.6rem 0 1rem; }
.ft-list { display: flex; flex-direction: column; gap: 0.3rem; background: var(--offwhite); border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 0.7rem; }
.ft-node { display: flex; align-items: center; gap: 7px; padding: 0.4rem 0.6rem; padding-left: calc(0.6rem + var(--d, 0) * 1.1rem); border-radius: 8px; border: 1.5px solid transparent; background: transparent; font: 600 0.88rem 'SFMono-Regular', Consolas, monospace; color: #1f1f1f; cursor: pointer; text-align: left; direction: ltr; }
.ft-node [data-lucide], .ft-node svg { width: 16px; height: 16px; color: var(--header-blue); flex-shrink: 0; }
.ft-node:hover { background: #fff; }
.ft-node.on { background: #fff; border-color: var(--strong-pink); box-shadow: 0 4px 14px rgba(255,91,192,0.18); }
.ft-view { background: #fff; border: 1.5px solid rgba(26,41,91,0.15); border-radius: 14px; padding: 1rem 1.1rem; min-height: 12rem; }
.ft-view h4 { margin: 0 0 0.4rem; font: 800 1rem 'Rubik', sans-serif; color: var(--header-blue); direction: ltr; text-align: left; overflow-wrap: anywhere; }
.ft-view p { font-size: 0.93rem; line-height: 1.7; margin: 0 0 0.5rem; color: #1f1f1f; }
.ft-tag { display: inline-block; font: 800 0.72rem 'Rubik', sans-serif; background: var(--secondary); color: var(--header-blue); border-radius: 999px; padding: 0.1rem 0.6rem; margin-bottom: 0.5rem; }

/* ----- Walkthrough ----- */
.wt { border: 1.5px solid rgba(26,41,91,0.18); border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(26,41,91,0.08); overflow: hidden; margin: 0.6rem 0 1rem; }
.wt-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.7rem; background: var(--offwhite); border-bottom: 1px solid rgba(0,0,0,0.08); }
.wt-tab { display: inline-flex; align-items: center; gap: 6px; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1.5px solid rgba(0,0,0,0.12); background: #fff; font: 600 0.82rem 'Heebo', sans-serif; color: #333; cursor: pointer; }
.wt-tab span { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--secondary); color: var(--header-blue); font: 800 0.7rem/20px 'Rubik', sans-serif; text-align: center; }
.wt-tab.on { border-color: var(--strong-pink); background: rgba(255,91,192,0.08); color: #000; }
.wt-tab.on span { background: var(--strong-pink); color: #fff; }
.wt-panels { padding: 1rem 1.1rem 0.4rem; }
.wt-panel { display: none; }
.wt-panel.on { display: block; animation: carouselIn 0.3s var(--ease-out, ease-out); }
.wt-panel h4 { margin: 0 0 0.4rem; font: 800 1.08rem 'Rubik', sans-serif; color: var(--header-blue); }
.wt-lead { font-size: 0.95rem; line-height: 1.75; margin: 0.3rem 0 0.5rem; color: #1f1f1f; }
.wt-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 1rem; border-top: 1px solid rgba(0,0,0,0.08); background: var(--offwhite); }
.wt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid rgba(0,0,0,0.2); background: #fff; font: 700 0.88rem 'Heebo', sans-serif; cursor: pointer; }
.wt-btn.primary { background: var(--amber); border-color: var(--amber); color: #000; }
.wt-btn:disabled { opacity: 0.35; cursor: default; }
.wt-btn [data-lucide], .wt-btn svg { width: 16px; height: 16px; }
.wt-progress { font: 700 0.82rem 'Rubik', sans-serif; color: var(--header-blue); }

/* ----- Terminal simulation ----- */
.tsim { border-radius: 16px; overflow: hidden; border: 1.5px solid rgba(26,41,91,0.4); background: #fff; margin: 0.6rem 0 1rem; box-shadow: 0 6px 20px rgba(26,41,91,0.12); }
.tsim-screen { background: #141a36; color: #eef1ff; font: 400 0.86rem/1.7 'SFMono-Regular', Consolas, monospace; padding: 1rem; min-height: 11rem; text-align: left; overflow-wrap: anywhere; }
.tsim-line { white-space: pre-wrap; }
.tsim-line.dim { color: #8d97c9; }
.tsim-line.you { color: #5CE1E6; }
.tsim-line.out { color: #FFD6EE; }
.tsim-spin { color: #ffd166; min-height: 1.7em; }
.tsim-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem 0.4rem; }
.tsim-btn { padding: 0.5rem 1rem; border-radius: 12px; border: 1.5px solid var(--header-blue); background: var(--amber); font: 700 0.88rem 'Heebo', sans-serif; color: #000; cursor: pointer; text-align: right; }
.tsim-btn.ghost { background: #fff; }
.tsim-btn:disabled { opacity: 0.4; cursor: default; }
.tsim .shot-note { padding: 0 1rem 0.8rem; margin: 0.3rem 0 0; }

/* ----- Forecast table + figure ----- */
.forecast-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; margin: 0.4rem 0 1rem; }
.forecast-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(0,0,0,0.1); border-radius: 14px; overflow: hidden; background: #fff; font-size: 0.92rem; }
.forecast-table th { background: var(--header-blue); color: #fff; padding: 0.55rem 0.8rem; text-align: right; font: 700 0.85rem 'Rubik', sans-serif; }
.forecast-table td { padding: 0.5rem 0.8rem; border-top: 1px solid rgba(0,0,0,0.07); }
.forecast-table tr:nth-child(odd) td { background: #fafbff; }
.forecast-fig { margin: 0; }
.forecast-fig img { width: 100%; max-width: 860px; height: auto; border-radius: 10px; border: 1px solid rgba(0,0,0,0.12); display: block; }
.forecast-fig figcaption { font-size: 0.85rem; color: #333; line-height: 1.6; margin-top: 0.4rem; }

@media (max-width: 768px) {
  .cmdb-fields { grid-template-columns: minmax(0, 1fr); }
  .ftree { grid-template-columns: minmax(0, 1fr); }
  .code-explain li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .code-block code { font-size: 0.76rem; white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-block pre { overflow-x: visible; }
  .film-6 .film-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-tab { font-size: 0.76rem; padding: 0.3rem 0.55rem; }
  .wt-controls { padding: 0.6rem 0.7rem; }
  .tsim-btn { width: 100%; }
  .module-credit { padding-bottom: 6.5rem; }
}

/* ----- Before/after with text panels: before on the left half, after on the right half ----- */
.ba-compare.ba-text { aspect-ratio: 16 / 7; min-height: 250px; }
.ba-text .ba-label-before { left: 12px; right: auto; }
.ba-text .ba-label-after { right: 12px; left: auto; }
.ba-text .ba-panel { padding-top: 2.8rem; }
.ba-text .ba-panel-before { padding-right: 52%; padding-left: 1.2rem; }
.ba-text .ba-panel-after { padding-left: 52%; padding-right: 1.2rem; }
.ba-text .ba-prompt { font-size: clamp(0.95rem, 2vw, 1.25rem); direction: ltr; }
@media (max-width: 768px) {
  .ba-compare.ba-text { aspect-ratio: auto; min-height: 330px; }
  .ba-text .ba-panel { padding-top: 3rem; justify-content: flex-start; padding-bottom: 1rem; }
  .ba-text .ba-panel-before { padding-right: 53%; padding-left: 0.7rem; }
  .ba-text .ba-panel-after { padding-left: 53%; padding-right: 0.7rem; }
  .ba-text .ba-explain { font-size: 0.78rem; }
  .ba-text .ba-prompt { font-size: 0.88rem; }
}

/* Wide hotspot boxes should not balloon */
.hs-box.wide::before { transform: scale(1.03); }
.hs-box.wide.on::before, .hs-box.wide:hover::before, .hs-box.wide:focus-visible::before { transform: scale(1.03); }
.doc-card { height: 200px; }

/* Longer concept-card backs */
.concept-card.tall { max-width: 640px; height: 230px; }
.concept-card.xtall { max-width: 680px; height: 350px; }
.concept-card.tall .concept-back, .concept-card.xtall .concept-back { font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 768px) {
  .concept-card.tall { height: 290px; }
  .concept-card.xtall { height: 470px; }
}

/* ===== mods2: desktop-app rewrite additions ===== */
:root { --pink: #FF5BC0; --cyan: #5CE1E6; --navy: #1a295b; }

/* small images: thumbnails (enlarge on click) */
.thumb-wrap { max-width: 400px; margin: 0.5rem auto 0.9rem; }
.thumb-wrap.sm { max-width: 340px; }
.thumb-wrap .screenshot-caption { font-size: 0.8rem; }
.ann-wrap { max-width: 640px; margin-inline: auto; }
.ann-wrap .ann-img { width: 100%; }

/* numbered "what and when" list */
.do-list { list-style: none; counter-reset: do; margin: 0.6rem 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.do-list > li { counter-increment: do; position: relative; padding: 0.7rem 3.1rem 0.7rem 0.9rem; background: #fff; border: 1.5px solid rgba(26,41,91,0.14); border-radius: 14px; box-shadow: 0 3px 12px rgba(26,41,91,0.06); }
.do-list > li::before { content: counter(do); position: absolute; right: 0.8rem; top: 0.75rem; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 0.88rem/28px 'Rubik', sans-serif; text-align: center; }
.do-when { display: block; font-size: 0.8rem; font-weight: 800; color: #0f5457; background: rgba(92,225,230,0.22); border-radius: 999px; padding: 0.1rem 0.7rem; width: fit-content; margin-bottom: 0.3rem; }
.do-what { display: block; font-size: 0.95rem; line-height: 1.7; color: #1f1f1f; }
.do-what .ci, .do-when .ci { font-size: 0.85em; }
.do-flag { display: inline-block; font-size: 0.74rem; font-weight: 800; border-radius: 999px; padding: 0.05rem 0.6rem; margin-inline-start: 0.4rem; }
.do-flag.ok { background: rgba(92,225,230,0.28); color: #0f5457; }
.do-flag.gen { background: rgba(255,214,238,0.9); color: #8a1f5e; }

/* inline copyable Hebrew prompt */
.say { position: relative; margin: 0.5rem 0 0.2rem; padding: 0.7rem 0.9rem 0.7rem 5.2rem; background: #fff7fc; border: 1.5px dashed var(--pink); border-radius: 12px; font-size: 0.93rem; line-height: 1.75; color: #222; direction: rtl; text-align: right; }
.say-copy { position: absolute; left: 0.6rem; top: 0.55rem; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--navy); background: var(--cyan); border-radius: 999px; font: 700 0.76rem 'Heebo', sans-serif; padding: 0.2rem 0.65rem; cursor: pointer; }
.say-copy.copied { background: var(--pink); color: #fff; border-color: var(--pink); }
.say-copy [data-lucide], .say-copy svg { width: 13px; height: 13px; }
.say-label { display: block; font-size: 0.75rem; font-weight: 800; color: #8a1f5e; margin-bottom: 0.15rem; }

/* event cards (step 3) */
.concept-row.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; align-items: start; }
.concept-row.events .concept-card { max-width: none; min-width: 0; height: 110px; transition: height .35s ease; }
.concept-row.events .concept-card.flipped, .concept-row.events .concept-card:hover, .concept-row.events .concept-card:focus-visible { height: 270px; }
.concept-row.events .concept-back { padding: 0.6rem 0.75rem; font-size: 0.76rem; line-height: 1.5; justify-content: flex-start; overflow: visible; }
.concept-row.events .concept-back p { margin: 0 0 0.3rem; }
.concept-row.events .concept-back b { color: var(--navy); }
.concept-row.events .concept-term { direction: rtl; font-size: 1rem; }
.ev-code { display: inline-block; direction: ltr; font: 600 0.78rem 'SFMono-Regular', Consolas, monospace; background: rgba(26,41,91,0.08); border-radius: 6px; padding: 0.05rem 0.5rem; margin-top: 0.4rem; }
.diagram-key { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.diagram-key li { background: #fff; border: 1px solid rgba(26,41,91,0.14); border-radius: 12px; padding: 0.55rem 0.75rem; font-size: 0.88rem; line-height: 1.6; }
.diagram-key .dk-name { display: inline-block; direction: ltr; font: 700 0.8rem 'SFMono-Regular', Consolas, monospace; background: rgba(255,91,192,0.14); color: #8a1f5e; border-radius: 6px; padding: 0.02rem 0.45rem; margin-inline-end: 0.35rem; }

/* explanation under the step 4 cards */
.fan-explain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 1rem 0 0.4rem; }
.fx { background: #fff; border: 1.5px solid rgba(26,41,91,0.14); border-radius: 14px; padding: 0.8rem 0.95rem; box-shadow: 0 3px 12px rgba(26,41,91,0.06); }
.fx-head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.35rem; }
.fx-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-ico [data-lucide], .fx-ico svg { width: 18px; height: 18px; }
.fx:nth-child(2) .fx-ico { background: var(--pink); }
.fx:nth-child(3) .fx-ico { background: #0f8f95; }
.fx:nth-child(4) .fx-ico { background: #6b3fa0; }
.fx h4 { font: 800 1rem 'Rubik', sans-serif; color: var(--navy); direction: ltr; text-align: right; }
.fx p { font-size: 0.9rem; line-height: 1.65; margin: 0.15rem 0; }
.fx p b { color: var(--navy); }

/* prompt tabs: when / what to expect */
.ptabs-when, .ptabs-try { display: block; font-size: 0.88rem; line-height: 1.65; color: #e9ecff; background: rgba(255,255,255,0.07); border-radius: 10px; padding: 0.5rem 0.75rem; margin: 0 0 0.6rem; }
.ptabs-try { margin: 0.7rem 0 0; }
.ptabs-when b, .ptabs-try b { color: var(--cyan); }

/* term cards with icons (step 5) */
.term-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 0.6rem 0 1rem; }
.term-card { background: #fff; border: 1.5px solid rgba(26,41,91,0.14); border-top: 5px solid var(--pink); border-radius: 14px; padding: 0.8rem 0.8rem 0.9rem; text-align: center; box-shadow: 0 3px 12px rgba(26,41,91,0.06); }
.term-card:nth-child(2) { border-top-color: var(--cyan); }
.term-card:nth-child(3) { border-top-color: var(--navy); }
.term-card:nth-child(4) { border-top-color: #E058CE; }
.term-card .tc-ico { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 0.4rem; background: var(--secondary); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.term-card:nth-child(2) .tc-ico { background: rgba(92,225,230,0.3); }
.term-card:nth-child(3) .tc-ico { background: var(--navy); color: #fff; }
.term-card .tc-ico [data-lucide], .term-card .tc-ico svg { width: 24px; height: 24px; }
.term-card h4 { font: 800 1rem 'Rubik', sans-serif; color: var(--navy); direction: ltr; }
.term-card p { font-size: 0.84rem; line-height: 1.55; margin: 0.25rem 0 0; }

/* request builder */
.reqb { border: 1.5px solid rgba(26,41,91,0.18); border-radius: 16px; padding: 1rem; background: #fff; box-shadow: 0 6px 20px rgba(26,41,91,0.08); margin: 0.6rem 0 1rem; }
.reqb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.8rem; }
.reqb-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.reqb-field input, .reqb-field select { direction: ltr; text-align: left; font: 500 0.9rem 'SFMono-Regular', Consolas, monospace; padding: 0.55rem 0.7rem; border: 1.5px solid rgba(26,41,91,0.25); border-radius: 10px; background: #fff; width: 100%; }
.reqb-field select { direction: rtl; text-align: right; font-family: 'Heebo', sans-serif; }
.reqb-field input:focus, .reqb-field select:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.reqb-out { position: relative; background: #141a36; color: #fbf6f1; border-radius: 12px; padding: 2.7rem 1rem 0.9rem; direction: rtl; text-align: right; font-size: 0.93rem; line-height: 1.8; white-space: pre-wrap; }
.reqb-copy { position: absolute; top: 0.6rem; left: 0.6rem; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--cyan); background: transparent; color: #fff; border-radius: 999px; font: 700 0.78rem 'Heebo', sans-serif; padding: 0.25rem 0.8rem; cursor: pointer; }
.reqb-copy.copied { background: var(--cyan); color: #000; }
.reqb-copy [data-lucide], .reqb-copy svg { width: 13px; height: 13px; }
.reqb-warn { font-size: 0.85rem; color: #8a1f5e; font-weight: 700; min-height: 1.2em; margin: 0.5rem 0 0; }

/* last step */
.final-plan { border: 2px solid var(--pink); border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fff7fc 100%); padding: 1rem 1.1rem 0.4rem; margin: 0.8rem 0 1rem; box-shadow: 0 8px 24px rgba(255,91,192,0.14); }
.final-plan h3 { font: 800 1.15rem 'Rubik', sans-serif; color: var(--navy); margin: 0 0 0.2rem; }
.final-plan .lottie-row { margin-top: 0; }
.step-container { padding-bottom: 3rem; }
#step10 { padding-bottom: 2.5rem; }

@media (max-width: 900px) {
  .term-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-row.events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-row.events .concept-card { height: 100px; }
  .concept-row.events .concept-card.flipped, .concept-row.events .concept-card:hover, .concept-row.events .concept-card:focus-visible { height: 300px; }
}
@media (max-width: 640px) {
  .fan-explain, .diagram-key { grid-template-columns: minmax(0, 1fr); }
  .reqb-fields { grid-template-columns: minmax(0, 1fr); }
  .term-cards { grid-template-columns: minmax(0, 1fr); }
  .concept-row.events { grid-template-columns: minmax(0, 1fr); }
  .concept-row.events .concept-card { height: 100px; }
  .concept-row.events .concept-card.flipped, .concept-row.events .concept-card:hover, .concept-row.events .concept-card:focus-visible { height: 300px; }
  .say { padding: 2.6rem 0.8rem 0.7rem; }
  .do-list > li { padding-inline-end: 2.9rem; }
}
.concept-row.events .concept-front { padding: 0.4rem 0.6rem; gap: 0.1rem; }
.concept-row.events .concept-hint { font-size: 0.7rem; margin: 0; }
