/* Lot 4 (Claude Code, 18/11/2026): Inside Youbs and the DevEngine team redrawn in the style of Astra's scenes. */
.ib, .tc { margin: 2rem 0 0; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--ya-line); border-radius: 16px; background: var(--ya-bg); }
.ib figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 0 0 .8rem; }
.ib figcaption strong { font-size: 1.4rem; letter-spacing: -.03em; color: var(--ya-ink); }
.ib figcaption span { color: var(--ya-muted); }
.ib-stage svg, .tc-stage svg { display: block; width: 100%; height: auto; }
.ib-legend { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ib-legend li { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ya-muted); border-top: 2px solid #ff9f01; padding-top: .5rem; }
.ib-legend b { color: var(--ya-ink); display: block; }
.tc-roles { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; text-align: center; }
.tc-roles li { margin: 0; font-size: .85rem; line-height: 1.35; color: var(--ya-muted); border-radius: 8px; padding: .3rem .2rem; transition: background .3s, color .3s; }
.tc-roles b { display: block; color: var(--ya-ink); font-size: .9rem; }
.tc-roles li.is-active { background: #fff0c9; color: #4a3a1c; }
html[data-theme="dark"] .tc-roles li.is-active { background: #3a3220; color: #ffe2a8; }
@media (max-width: 760px) { .ib-legend { grid-template-columns: 1fr; } .tc-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .6rem; } }
body.de-home main section :is(.ib, .tc) :is(p, li, span, strong, b, figcaption) { background: none; box-shadow: none; width: auto; max-width: none; }

.ib-interactive {
  --ib-ink: #f8f7f3;
  --ib-muted: #e0e0e6;
  --ib-core: #27272a;
  --ib-panel: #3d3d41;
  --ib-chip: #48484e;
  --ib-edge: #9da1ab;
  --ib-wire: #a8dfd1;
}
.ib-interactive .ib-stage { background: #333333; border-radius: 12px; }
.ib-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .6rem;
}
.ib-controls button {
  display: grid;
  align-content: start;
  gap: .32rem;
  min-width: 0;
  min-height: 42px;
  padding: .35rem .18rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ya-ink);
  font: 650 clamp(.7rem, 1.6vw, .86rem)/1.25 Arial, sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ib-controls button::before {
  content: "";
  height: 6px;
  border-radius: 6px;
  background: var(--ya-line);
}
.ib-controls button:hover, .ib-controls button[aria-pressed="true"] { background: var(--ya-panel); }
.ib-controls button[aria-pressed="true"]::before { background: #ff9f01; }
.ib-controls button:focus-visible { outline: 2px solid var(--ya-mint); outline-offset: 2px; }
.ib-interactive[data-phase]:not([data-phase="3"]) .ib-ok { opacity: 0; }
.ib-interactive[data-phase="0"] .ib-reader { opacity: .55; }
.ib-interactive:is([data-phase="1"], [data-phase="2"]) .ib-rework { opacity: 1; }
.ib-interactive:is([data-phase="2"], [data-phase="3"]) .ib-l3 { stroke: var(--ib-wire); }
@media (prefers-reduced-motion: no-preference) {
  .ib-interactive .ib-stage { cursor: pointer; }
  .ib-interactive.is-stage-playing[data-phase="0"] .ib-writer { animation: lt-work 1s .2s ease-in-out; }
  .ib-interactive.is-stage-playing[data-phase="0"] :is(.ib-l1,.ib-l2,.ib-l3) {
    animation: lt-type .45s .3s ease-out backwards;
    transform-origin: left center;
  }
  .ib-interactive.is-stage-playing[data-phase="0"] .ib-l2 { animation-delay: .55s; }
  .ib-interactive.is-stage-playing[data-phase="0"] .ib-l3 { animation-delay: .8s; }
  .ib-interactive.is-stage-playing:is([data-phase="1"], [data-phase="3"]) .ib-reader { animation: lt-work .85s ease-in-out; }
  .ib-interactive.is-stage-playing:is([data-phase="1"], [data-phase="3"]) .ib-beam { animation: lt-scan .85s ease-in-out; }
  .ib-interactive.is-stage-playing[data-phase="1"] .ib-rework { animation: lt-fade .3s .8s ease-out backwards; }
  .ib-interactive.is-stage-playing[data-phase="2"] .ib-writer { animation: lt-work 1s ease-in-out; }
  .ib-interactive.is-stage-playing[data-phase="2"] .ib-l3 { animation: lt-fix 1s ease-in-out; }
  .ib-interactive.is-stage-playing[data-phase="3"] .ib-ok { animation: lt-pop .4s .8s ease-out backwards; }
}

@media (prefers-reduced-motion: no-preference) {
  .ib svg *, .tc svg * { transform-box: fill-box; transform-origin: center; }
  .ib.is-held *, .tc.is-held * { animation-play-state: paused !important; }
  /* The first review returns the task for a fix. The second review approves it. */
  .ib.is-play .ib-sub rect { animation: lt-model 1.2s ease-out; }
  .ib.is-play .ib-sandbox { animation: lt-fade .6s .5s ease-out backwards; }
  .ib.is-play .ib-writer { animation: lt-work 1.3s .9s ease-in-out, lt-work .75s 4.35s ease-in-out; }
  .ib.is-play .ib-l1 { animation: lt-type .5s 1.1s ease-out backwards; }
  .ib.is-play .ib-l2 { animation: lt-type .5s 1.5s ease-out backwards; }
  .ib.is-play .ib-l3 { animation: lt-type .5s 1.9s ease-out backwards, lt-fix .75s 4.35s ease-in-out; }
  .ib.is-play .ib-keyline { animation: lt-fade .5s 2.5s ease-out backwards; }
  .ib.is-play .ib-key { animation: lt-pulse .7s 2.4s ease-out backwards; }
  .ib.is-play .ib-reader { animation: lt-work .9s 3s ease-in-out, lt-work .9s 5.2s ease-in-out; }
  .ib.is-play .ib-beam { animation: lt-scan .9s 3s ease-in-out, lt-scan .9s 5.2s ease-in-out; }
  .ib.is-play .ib-rework { animation: lt-return .65s 3.85s ease-out; }
  .ib.is-play .ib-ok { animation: lt-pop .4s 6.15s ease-out backwards; }
  .ib.is-play .ib-b:nth-child(1) { animation: lt-type .35s 1.2s backwards; }
  .ib.is-play .ib-b:nth-child(2) { animation: lt-type .35s 3s backwards; }
  .ib.is-play .ib-b:nth-child(3) { animation: lt-type .35s 4.35s backwards; }
  .ib.is-play .ib-b:nth-child(4) { animation: lt-type .35s 6.15s backwards; }
  .ib svg .ib-b { transform-origin: left center; }
}
.ib-beam, .ib-rework { opacity: 0; }
@keyframes lt-model { 35%, 70% { stroke: var(--ya-mint); stroke-width: 2; } }
@keyframes lt-return { 0%, 100% { opacity: 0; } 20%, 75% { opacity: 1; } }
@keyframes lt-fix { 0%, 100% { stroke: #ffb349; } 50% { stroke: #b2dbb9; } }
@keyframes lt-work { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
@keyframes lt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lt-type { from { transform: scaleX(0); } to { transform: none; } }
@keyframes lt-pulse { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes lt-scan { 0%, 100% { opacity: 0; } 30%, 70% { opacity: .3; } }
@keyframes lt-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lt-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
.ib, .tc { margin-bottom: 1.6rem; }

/* Team at work (JS sets the steps). Final state: every layer visible. */
.tc-links path { stroke: #4b6368; stroke-dasharray: 4 5; transition: stroke .3s; }
.tc-l { transition: opacity .45s ease, transform .45s ease; transform-box: fill-box; transform-origin: center; }
.tc.is-running .tc-l { opacity: 0; transform: scale(.85); }
.tc.is-running.has-spec .tc-spec, .tc.is-running.has-ux .tc-ux, .tc.is-running.has-code .tc-code,
.tc.is-running.has-test .tc-test, .tc.is-running.has-sec .tc-sec, .tc.is-running.has-ready .tc-ready { opacity: 1; transform: none; }
.tc-a > g { transition: transform .35s ease; }
.tc.is-running .tc-a { opacity: .55; transition: opacity .3s; }
.tc .tc-a.is-active { opacity: 1; animation: tc-work .7s ease-in-out 2; transform-box: fill-box; transform-origin: center; }
.tc .tc-links path.is-active { stroke: #ff9f01; stroke-dasharray: none; }
@keyframes tc-work { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
