.yak-sequence {
  --yak: #54ead4;
  --danger: #ff4f79;
  --ink: #061820;
}

/* Chapter 03 v4 — a real desktop workflow with MellowYAK opening from the tray. */
.yak-v4-desktop-shell {
  position: absolute;
  inset: 4% 3% 7%;
  overflow: hidden;
  border: 1px solid rgba(84,234,212,.55);
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 18%,rgba(84,234,212,.17),transparent 31%),
    linear-gradient(145deg,#0a1c27,#020a10 78%);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 0 34px rgba(84,234,212,.05);
}
.yak-v4-menu {
  position: absolute;
  inset: 0 0 auto;
  height: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(3,14,21,.94);
  color: #a9c4c5;
  font: 800 7px/1 monospace;
}
.yak-v4-menu b { color: #fff; font-size: 8px; }
.yak-v4-menu time { justify-self: end; color: var(--yak); }
.yak-v4-wallpaper { position:absolute; inset:30px 0 0; overflow:hidden; background:radial-gradient(circle at 72% 28%,rgba(255,79,121,.18),transparent 24%),radial-gradient(circle at 45% 58%,rgba(84,234,212,.14),transparent 31%),linear-gradient(145deg,#0b2633,#031019 72%); }
.yak-v4-wallpaper::after { content:""; position:absolute; inset:0; opacity:.28; background:repeating-linear-gradient(115deg,transparent 0 38px,rgba(84,234,212,.08) 39px 40px); }
.yak-v4-wallpaper i { position:absolute; width:95px; height:95px; border:1px solid rgba(84,234,212,.13); transform:rotate(45deg); }
.yak-v4-wallpaper i:nth-child(1) { right:16%; top:11%; }
.yak-v4-wallpaper i:nth-child(2) { right:31%; top:46%; width:62px; height:62px; }
.yak-v4-wallpaper i:nth-child(3) { right:8%; bottom:8%; width:48px; height:48px; border-color:rgba(255,79,121,.18); }
.yak-v4-desktop-icons { position:absolute; z-index:3; left:5%; top:16%; display:grid; gap:13px; }
.yak-v4-desktop-icons article { position:relative; display:grid; justify-items:center; gap:4px; width:54px; color:#dff5f4; }
.yak-v4-desktop-icons article > span,
.yak-v4-desktop-icons article > img { display:block; width:34px; height:34px; border-radius:9px; box-sizing:border-box; filter:drop-shadow(0 5px 8px rgba(0,0,0,.35)); }
.yak-v4-desktop-icons article > img { object-fit:cover; }
.yak-v4-desktop-icons article b { max-width:58px; overflow:hidden; text-overflow:ellipsis; color:#e8f6f5; font:800 6px/1.15 monospace; white-space:nowrap; }
.yak-v4-desktop-icons .browser-icon { position:relative; border:4px solid #54a8ff; background:conic-gradient(#ff5b66 0 33%,#ffd35f 0 66%,#5bda83 0); }
.yak-v4-desktop-icons .browser-icon::after { content:""; position:absolute; inset:6px; border-radius:50%; background:#0b3550; box-shadow:inset 0 0 0 3px #dff7ff; }
.yak-v4-desktop-icons .files-icon { position:relative; background:linear-gradient(#ffd56a 0 27%,#e5a93d 28%); }
.yak-v4-desktop-icons .files-icon::before { content:""; position:absolute; left:4px; top:-3px; width:15px; height:7px; border-radius:3px 3px 0 0; background:#ffd56a; }
.yak-v4-desktop-icons .mellow-icon { animation:yak-v4-icon-focus 2.4s ease both; }
.yak-v4-icon-cursor { position:absolute; z-index:8; left:31px; top:18px; width:14px; height:19px; filter:drop-shadow(0 2px 2px rgba(0,0,0,.7)); animation:yak-v4-icon-cursor 2.4s ease both; }
.yak-v4-icon-cursor::before { content:""; position:absolute; inset:0; background:#fff; clip-path:polygon(0 0,0 100%,30% 71%,49% 100%,64% 91%,46% 63%,82% 61%); }
.yak-v4-icon-cursor::after { content:""; position:absolute; inset:2px; background:#092831; clip-path:polygon(0 0,0 82%,29% 59%,49% 88%,58% 82%,40% 53%,70% 52%); }
.yak-v4-icon-ring { position:absolute; z-index:7; left:7px; top:-2px; width:38px; height:38px; border:2px solid var(--yak); border-radius:12px; box-sizing:border-box; box-shadow:0 0 14px rgba(84,234,212,.45); animation:yak-v4-icon-click 2.4s ease both; }
.yak-v4-monitor-card { position:absolute; z-index:7; left:28%; top:27%; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; min-width:48%; padding:12px; box-sizing:border-box; border:1px solid rgba(84,234,212,.7); border-radius:12px; background:rgba(5,27,36,.97); box-shadow:0 18px 50px rgba(0,0,0,.5); opacity:0; transform:translateY(12px) scale(.96); animation:yak-v4-monitor-in 2.4s ease both; }
.yak-v4-monitor-card > img { width:42px; height:42px; border-radius:11px; }
.yak-v4-monitor-card > div { display:grid; gap:4px; }
.yak-v4-monitor-card small { color:#dff7f4; font-size:8px; font-weight:950; }
.yak-v4-monitor-card strong { color:#65e9ba; font:900 7px/1.2 monospace; }
.yak-v4-monitor-card code { color:#8eb2b5; font-size:6px; }
.yak-v4-browser {
  position: absolute;
  left: 4%;
  top: 13%;
  bottom: 16%;
  width: 57%;
  overflow: hidden;
  border: 1px solid #2e6470;
  border-radius: 11px;
  background: #edf7f3;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  animation: yak-v4-window-in 2.2s ease both;
}
.yak-v4-browser > header {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: #10272f;
  color: #a9c4c5;
  font: 800 6px/1 monospace;
}
.yak-v4-browser > header i { width: 6px; height: 6px; border-radius: 50%; background: #ff6b75; }
.yak-v4-browser > header i:nth-child(2) { background: #ffd166; }
.yak-v4-browser > header i:nth-child(3) { background: var(--yak); }
.yak-v4-browser > header span { flex: 1; margin-left: 3px; }
.yak-v4-browser > header b { color: #6effc6; }
.yak-v4-browser > main { position: absolute; inset: 28px 0 0; display: grid; grid-template-columns: 29% 1fr; color: #fff; transition: background .3s ease; }
.yak-v4-browser.is-orange > main { background: #ff7a45; }
.yak-v4-browser.is-green > main { background: #119b78; box-shadow: inset 0 0 45px rgba(84,234,212,.18); }
.yak-v4-browser main nav { padding: 18px 12px; background: rgba(0,0,0,.18); font: 1000 10px/1 sans-serif; }
.yak-v4-browser main nav span { color: #d7fff4; }
.yak-v4-browser main > div { position: relative; display: grid; align-content: start; gap: 7px; padding: 21px 16px; }
.yak-v4-browser main > div > i { height: 6px; border-radius: 4px; background: rgba(255,255,255,.48); }
.yak-v4-browser main > div > i:nth-child(2) { width: 76%; }
.yak-v4-browser main > div > i:nth-child(3) { width: 51%; }
.yak-v4-browser main button { position: absolute; right: 13px; bottom: 13px; padding: 7px 10px; border: 0; border-radius: 6px; background: rgba(5,45,39,.8); color: #dffdf4; font-size: 6px; font-weight: 900; }
.yak-v4-agent {
  position: absolute;
  right: 4%;
  top: 13%;
  bottom: 16%;
  width: 32%;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #2e6470;
  border-radius: 11px;
  background: rgba(5,28,37,.96);
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
  animation: yak-v4-window-in 2.2s .12s ease both;
}
.yak-v4-agent header { display: flex; justify-content: space-between; color: var(--yak); font: 900 7px/1 monospace; }
.yak-v4-agent header span { color: #6effc6; font-size: 6px; }
.yak-v4-agent p { margin: 0; padding: 10px; border-radius: 8px; background: #f6ead7; color: #14272d; font-size: 9px; font-weight: 850; }
.yak-v4-agent > small { color: var(--yak); font: 900 6px/1.3 monospace; letter-spacing: .08em; }
.yak-v4-code { display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: #06151d; }
.yak-v4-code i { height: 4px; border-radius: 2px; background: #22505d; }
.yak-v4-code i:nth-child(2) { width: 82%; }
.yak-v4-code i:nth-child(3) { width: 58%; }
.yak-v4-code code { color: #8aafb2; font-size: 6px; }
.yak-v4-diff { display: grid; gap: 8px; padding: 11px; border-radius: 8px; background: #06151d; font: 800 7px/1.25 monospace; }
.yak-v4-diff del { color: #ff91aa; text-decoration: none; }
.yak-v4-diff ins { color: #65e9ba; text-decoration: none; }
.yak-v4-diff code { color: #8aafb2; }
.yak-v4-done { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; border: 1px solid #45d2ae; border-radius: 8px; color: #65e9ba; font-size: 12px; animation: yak-v4-done-in 2.2s ease both; }
.yak-v4-dock {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 3%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(4,18,25,.9);
}
.yak-v4-dock > i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: #214c58; color: #06252b; font: 1000 8px/1 sans-serif; font-style: normal; }
.yak-v4-dock .yak-app { position:relative; background: var(--yak); box-shadow: 0 0 0 1px rgba(255,255,255,.25),0 0 14px rgba(84,234,212,.25); }
.yak-v4-dock .yak-app img { width:100%; height:100%; border-radius:5px; object-fit:cover; }
.yak-v4-dock .yak-app::after { content:""; position:absolute; right:-2px; top:-2px; width:5px; height:5px; border:1px solid #061820; border-radius:50%; background:#6effc6; box-shadow:0 0 7px #6effc6; }
.yak-v4-dock .yak-app.is-active { animation: yak-v4-app-pulse .75s ease infinite; }
.yak-v4-cursor { position: absolute; z-index: 10; width: 14px; height: 19px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.65)); }
.yak-v4-cursor::before { content:""; position:absolute; inset:0; background:#fff; clip-path:polygon(0 0,0 100%,30% 71%,49% 100%,64% 91%,46% 63%,82% 61%); }
.yak-v4-cursor::after { content:""; position:absolute; inset:2px; background:#092831; clip-path:polygon(0 0,0 82%,29% 59%,49% 88%,58% 82%,40% 53%,70% 52%); }
.yak-v4-cursor.is-send { right: 13%; top: 39%; animation: yak-v4-cursor-send 2.2s ease both; }
.yak-v4-cursor.is-yak { left: calc(50% + 2px); bottom: 5%; animation: yak-v4-cursor-yak 2.3s ease both; }
.yak-v4-cursor.is-desktop-yak { left:9%; top:49%; animation:yak-v4-cursor-desktop-yak 2.4s ease both; }
.yak-v4-click-ring { position: absolute; z-index: 8; left: calc(50% + 1px); bottom: 4%; width: 30px; height: 30px; border: 2px solid var(--yak); border-radius: 50%; animation: yak-v4-click 2.3s ease both; }
.yak-v4-click-ring.is-desktop { left:7%; bottom:auto; top:41%; animation-duration:2.4s; }
.yak-v4-person {
  position: absolute;
  z-index: 4;
  right: 4%;
  top: 18%;
  width: 30%;
  bottom: 19%;
  overflow: hidden;
  border: 2px solid var(--yak);
  border-radius: 14px;
  background: #07151e;
  box-shadow: 0 16px 45px rgba(0,0,0,.48);
  animation: yak-v4-person-in 2.3s ease both;
}
.yak-v4-confirm .yak-v4-browser { width: 64%; }
.yak-v4-person img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: brightness(.78) saturate(.9); }
.yak-v4-person > span { position: absolute; right: 10px; top: 10px; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#ffd166; color:#3b2910; font-weight:1000; box-shadow:0 0 18px rgba(255,209,102,.35); }
.yak-v4-person > small { position:absolute; left:9px; bottom:45px; padding:4px 6px; border-radius:5px; background:rgba(3,18,25,.84); color:#65e9ba; font:900 6px/1 monospace; }
.yak-v4-person > strong { position: absolute; inset: auto 8px 8px; padding: 9px; border-radius: 8px; background: rgba(3,18,25,.9); color: #fff; text-align: center; font-size: 8px; }
.yak-v4-browser.is-dimmed { width: 92%; opacity: .62; filter: saturate(.75) brightness(.7); }
.yak-v4-browser.is-blurred { width: 92%; opacity: .38; filter: blur(2px) saturate(.75) brightness(.55); }
.yak-v4-open-label { position:absolute; z-index:7; left:50%; bottom:15%; transform:translateX(-50%); color:var(--yak); font:900 7px/1 monospace; letter-spacing:.08em; }
.yak-v4-app-opening { position:absolute; z-index:5; left:50%; bottom:8%; display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid var(--yak); border-radius:10px; background:#061d27; opacity:0; transform:translate(-50%,20px) scale(.8); animation:yak-v4-open-app 2.3s ease both; }
.yak-v4-app-opening b,
.yak-v4-app-opening > img,
.yak-v4-app header b i { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:var(--yak); color:#06252b; font:1000 10px/1 sans-serif; font-style:normal; }
.yak-v4-app-opening > img { object-fit:cover; }
.yak-v4-app-opening span { font-size:10px; font-weight:950; }
.yak-v4-app {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: min(70%,430px);
  min-height: 75%;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(84,234,212,.78);
  border-radius: 14px;
  background: rgba(5,25,34,.985);
  box-shadow: 0 22px 70px rgba(0,0,0,.65),0 0 30px rgba(84,234,212,.1);
  transform: translate(-50%,-50%);
  animation: yak-v4-app-in 2.35s cubic-bezier(.18,.9,.2,1) both;
}
.yak-v4-app > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:10px; border-bottom:1px solid rgba(84,234,212,.18); }
.yak-v4-app > header b { display:flex; align-items:center; gap:8px; font-size:12px; }
.yak-v4-app > header span { color:#65e9ba; font:900 6px/1.2 monospace; text-align:right; }
.yak-v4-app > header span.is-alert { color:#ff91aa; }
.yak-v4-app-summary { display:grid; grid-template-columns:1fr auto; gap:5px 10px; margin-top:10px; padding:10px; border-radius:9px; background:rgba(84,234,212,.08); }
.yak-v4-app-summary small { grid-column:1/-1; color:var(--yak); font:900 6px/1 monospace; letter-spacing:.09em; }
.yak-v4-app-summary strong { font-size:10px; }
.yak-v4-app-summary em { color:#a9c4c5; font:800 7px/1 monospace; font-style:normal; }
.yak-v4-scan-row { display:flex; align-items:center; gap:8px; margin:10px 2px 7px; color:#d8eff0; font:900 7px/1 monospace; }
.yak-v4-scan-row i { flex:1; height:3px; overflow:hidden; border-radius:3px; background:#153d49; }
.yak-v4-scan-row i::after { content:""; display:block; width:38%; height:100%; background:var(--yak); box-shadow:0 0 10px var(--yak); animation:yak-v4-scan 1.1s ease-in-out infinite; }
.yak-v4-area-list { display:grid; gap:6px; }
.yak-v4-area-list article { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:8px; border:1px solid #285563; border-radius:8px; background:#092831; }
.yak-v4-area-list article > b { display:grid; place-items:center; width:22px; height:22px; border-radius:7px; background:rgba(84,234,212,.1); color:var(--yak); }
.yak-v4-area-list article > span { font-size:8px; font-weight:900; }
.yak-v4-area-list article > i { width:10px; height:10px; border:2px solid #2c5f6c; border-top-color:var(--yak); border-radius:50%; font-style:normal; animation:yak-v4-spin .8s linear infinite; }
.yak-v4-area-list.is-results { margin-top:10px; grid-template-columns:repeat(3,1fr); }
.yak-v4-area-list.is-results article { grid-template-columns:1fr; justify-items:center; gap:4px; padding:8px 4px; }
.yak-v4-area-list.is-results article > i { display:grid; place-items:center; width:20px; height:20px; border:0; background:#65e9ba; color:#06252b; animation:none; }
.yak-v4-area-list.is-results article.is-fail { border-color:#ff4f79; background:rgba(92,24,43,.52); }
.yak-v4-area-list.is-results article.is-fail > i { background:#ff4f79; color:#fff; }
.yak-v4-before-now { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:7px; margin-top:10px; }
.yak-v4-before-now article { display:grid; grid-template-columns:auto auto; align-items:center; gap:3px 7px; padding:8px; border:1px solid #36bd96; border-radius:8px; background:#092831; }
.yak-v4-before-now article small { grid-column:1/-1; color:#9fc2c5; font:900 6px/1 monospace; }
.yak-v4-before-now article b { color:#65e9ba; }
.yak-v4-before-now article span { font-size:7px; font-weight:900; }
.yak-v4-before-now > i { color:var(--yak); font-style:normal; }
.yak-v4-before-now article.is-now { border-color:#ff4f79; background:rgba(92,24,43,.52); }
.yak-v4-before-now article.is-now b,
.yak-v4-before-now article.is-now span { color:#ff91aa; }
.yak-v4-why { display:block; margin:10px 0 7px; color:var(--yak); font:900 7px/1 monospace; letter-spacing:.08em; }
.yak-v4-verdict { display:grid; gap:3px; margin:9px 0 7px; padding:8px 10px; border:1px solid rgba(255,79,121,.65); border-radius:8px; background:rgba(92,24,43,.45); }
.yak-v4-verdict small { color:#ffbed0; font:900 6px/1 monospace; letter-spacing:.07em; }
.yak-v4-verdict strong { color:#fff; font-size:11px; }
.yak-v4-relation { display:grid; grid-template-rows:1fr auto 1fr auto 1fr; justify-items:center; gap:4px; }
.yak-v4-relation article { width:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:7px 9px; box-sizing:border-box; border:1px solid #285563; border-radius:8px; background:#092831; }
.yak-v4-relation article b { display:grid; place-items:center; width:20px; height:20px; border-radius:50%; background:rgba(84,234,212,.12); color:var(--yak); font-size:7px; }
.yak-v4-relation article span { font-size:8px; font-weight:900; }
.yak-v4-relation article code { color:#86b0b3; font-size:6px; }
.yak-v4-relation > i { color:var(--yak); font-style:normal; font-size:11px; }
.yak-v4-relation article.is-fail { border-color:#ff4f79; background:rgba(92,24,43,.52); }
.yak-v4-relation article.is-fail b { background:#ff4f79; color:#fff; }
.yak-v4-early { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:8px; color:#ffbed0; font:900 6px/1 monospace; }
.yak-v4-early b { display:grid; place-items:center; width:20px; height:20px; border-radius:7px; background:var(--yak); color:#06252b; }

@keyframes yak-v4-window-in { 0%{opacity:0;transform:translateY(12px) scale(.98)} 18%,100%{opacity:1;transform:none} }
@keyframes yak-v4-done-in { 0%,38%{opacity:0;transform:translateY(8px)} 60%,100%{opacity:1;transform:none} }
@keyframes yak-v4-person-in { 0%,22%{opacity:0;transform:translateX(18px)} 48%,100%{opacity:1;transform:none} }
@keyframes yak-v4-cursor-send { 0%{opacity:0;transform:translate(25px,35px)} 20%{opacity:1} 70%,100%{opacity:1;transform:none} }
@keyframes yak-v4-cursor-yak { 0%{opacity:0;transform:translate(80px,-90px)} 18%{opacity:1} 62%,100%{opacity:1;transform:none} }
@keyframes yak-v4-cursor-desktop-yak { 0%{opacity:0;transform:translate(115px,105px)} 16%{opacity:1} 58%,100%{opacity:1;transform:none} }
@keyframes yak-v4-icon-cursor { 0%{opacity:0;transform:translate(75px,60px)} 12%{opacity:1} 38%,100%{opacity:1;transform:none} }
@keyframes yak-v4-icon-click { 0%,32%{opacity:0;transform:scale(.72)} 42%{opacity:1;transform:scale(1)} 56%{opacity:1;transform:scale(1.14)} 70%,100%{opacity:0;transform:scale(1.42)} }
@keyframes yak-v4-click { 0%,55%{opacity:0;transform:scale(.3)} 65%{opacity:.9} 90%,100%{opacity:0;transform:scale(1.6)} }
@keyframes yak-v4-icon-focus { 0%,35%{transform:none} 58%{transform:scale(1.08)} 76%,100%{transform:none} }
@keyframes yak-v4-monitor-in { 0%,58%{opacity:0;transform:translateY(12px) scale(.96)} 74%,100%{opacity:1;transform:none} }
@keyframes yak-v4-app-pulse { 50%{box-shadow:0 0 0 4px rgba(84,234,212,.18),0 0 18px rgba(84,234,212,.55)} }
@keyframes yak-v4-open-app { 0%,62%{opacity:0;transform:translate(-50%,20px) scale(.8)} 82%,100%{opacity:1;transform:translate(-50%,-38px) scale(1)} }
@keyframes yak-v4-app-in { 0%{opacity:0;transform:translate(-50%,-43%) scale(.9)} 22%,100%{opacity:1;transform:translate(-50%,-50%) scale(1)} }
@keyframes yak-v4-scan { from{transform:translateX(-110%)} to{transform:translateX(275%)} }
@keyframes yak-v4-spin { to{transform:rotate(360deg)} }

@media (max-width:600px) {
  .yak-v4-desktop-shell { inset:3% 2% 5%; }
  .yak-v4-menu { height:25px; padding:0 8px; font-size:5px; }
  .yak-v4-menu b { font-size:6px; }
  .yak-v4-desktop-icons { left:4%; top:15%; gap:10px; }
  .yak-v4-desktop-icons article { width:45px; }
  .yak-v4-desktop-icons article > span,.yak-v4-desktop-icons article > img { width:30px; height:30px; border-radius:8px; }
  .yak-v4-desktop-icons article b { max-width:48px; font-size:5px; }
  .yak-v4-monitor-card { left:25%; top:27%; min-width:69%; gap:7px; padding:9px; }
  .yak-v4-monitor-card > img { width:34px; height:34px; border-radius:9px; }
  .yak-v4-monitor-card small { font-size:7px; }
  .yak-v4-monitor-card strong { font-size:6px; }
  .yak-v4-icon-cursor { left:27px; top:15px; }
  .yak-v4-icon-ring { left:6px; top:-2px; width:34px; height:34px; }
  .yak-v4-browser { left:3%; top:12%; bottom:15%; width:59%; }
  .yak-v4-browser > header { height:23px; padding:0 6px; font-size:5px; }
  .yak-v4-browser > main { inset:23px 0 0; }
  .yak-v4-browser main nav { padding:13px 7px; font-size:7px; }
  .yak-v4-browser main > div { gap:5px; padding:15px 9px; }
  .yak-v4-browser main > div > i { height:4px; }
  .yak-v4-browser main button { right:8px; bottom:8px; padding:5px 7px; font-size:5px; }
  .yak-v4-agent { right:3%; top:12%; bottom:15%; width:32%; gap:7px; padding:8px; }
  .yak-v4-agent header { font-size:5px; }
  .yak-v4-agent header span { font-size:4px; }
  .yak-v4-agent p { padding:7px; font-size:7px; }
  .yak-v4-code,.yak-v4-diff { gap:4px; padding:7px; font-size:5px; }
  .yak-v4-done { padding:7px; font-size:9px; }
  .yak-v4-dock { gap:6px; padding:5px 8px; }
  .yak-v4-dock > i { width:14px; height:14px; }
  .yak-v4-confirm .yak-v4-browser { width:62%; }
  .yak-v4-person { right:3%; top:17%; bottom:18%; width:31%; }
  .yak-v4-person > strong { inset:auto 5px 5px; padding:6px 3px; font-size:6px; }
  .yak-v4-person > small { left:6px; bottom:35px; font-size:5px; }
  .yak-v4-person > span { right:6px; top:6px; width:22px; height:22px; }
  .yak-v4-browser.is-dimmed,.yak-v4-browser.is-blurred { width:94%; }
  .yak-v4-open-label { bottom:14%; font-size:6px; }
  .yak-v4-app { width:88%; min-height:78%; padding:9px; }
  .yak-v4-app > header { padding-bottom:7px; }
  .yak-v4-app > header b { gap:6px; font-size:9px; }
  .yak-v4-app-opening b,.yak-v4-app-opening > img,.yak-v4-app header b i { width:21px; height:21px; font-size:8px; }
  .yak-v4-app-summary { margin-top:7px; padding:7px; }
  .yak-v4-area-list { gap:4px; }
  .yak-v4-area-list article { gap:6px; padding:6px; }
  .yak-v4-area-list article > b { width:19px; height:19px; }
  .yak-v4-area-list article > span { font-size:7px; }
  .yak-v4-area-list.is-results { margin-top:7px; gap:4px; }
  .yak-v4-before-now { margin-top:7px; }
  .yak-v4-before-now article { padding:6px; }
  .yak-v4-relation article { padding:6px 7px; }
  .yak-v4-why { margin:7px 0 5px; }
  .yak-v4-verdict { margin:6px 0 5px; padding:6px 8px; }
  .yak-v4-verdict strong { font-size:9px; }
  .yak-v4-early { margin-top:5px; }
}

/* Chapter 3 v2 — action-first continuation. Text is deliberately minimal. */
.yak-rewind { display: grid !important; place-items: center; }
.yak-rewind-browser {
  position: absolute;
  inset: 10% 8% 20%;
  overflow: hidden;
  border: 2px solid #ff4f79;
  border-radius: 14px;
  background: #f4f1eb;
  box-shadow: 0 24px 80px rgba(0,0,0,.65), 0 0 35px rgba(255,79,121,.25);
  animation: yak-rewind-browser 1.5s ease both;
}
.yak-rewind-browser header,
.yak-found-browser header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #18232a;
  color: #c9d8da;
  font: 800 8px/1 monospace;
}
.yak-rewind-browser header i,
.yak-found-browser header i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b75; }
.yak-rewind-browser header i:nth-child(2),
.yak-found-browser header i:nth-child(2) { background: #ffd166; }
.yak-rewind-browser header i:nth-child(3),
.yak-found-browser header i:nth-child(3) { background: #54ead4; }
.yak-rewind-browser header span,
.yak-found-browser header span { flex: 1; margin-left: 5px; }
.yak-rewind-browser header b,
.yak-found-browser header b { color: #ff7895; }
.yak-rewind-browser main {
  height: calc(100% - 38px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: linear-gradient(145deg,#fff,#efe8e8);
  color: #61152a;
}
.yak-rewind-browser main > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #ff4f79; color: #fff; font: 1000 28px/1 sans-serif; font-style: normal; }
.yak-rewind-browser main strong { font-size: 25px; line-height: 1; }
.yak-rewind-browser main code { color: #9c5363; font-size: 10px; }
.yak-rewind-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  display: grid;
  justify-items: center;
  gap: 5px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.yak-rewind-copy small { color: #ff91aa; font: 900 7px/1 monospace; letter-spacing: .13em; }
.yak-rewind-copy strong { color: #fff; font-size: 18px; }
.yak-rewind-streaks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.yak-rewind-streaks i { position: absolute; left: 10%; width: 80%; height: 1px; background: linear-gradient(90deg,transparent,#54ead4,transparent); animation: yak-rewind-streak 1.5s ease both; }
.yak-rewind-streaks i:nth-child(1) { top: 24%; }
.yak-rewind-streaks i:nth-child(2) { top: 50%; animation-delay: .12s; }
.yak-rewind-streaks i:nth-child(3) { top: 76%; animation-delay: .24s; }

.yak-workspace { background: radial-gradient(circle at 52% 45%,rgba(84,234,212,.14),transparent 34%),#031017; }
.yak-dev-grid {
  position: absolute;
  z-index: 3;
  inset: 6% 4% 19%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: yak-dev-grid-in 3s cubic-bezier(.18,.84,.2,1) both;
}
.yak-code-pane,
.yak-preview-pane {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(84,234,212,.68);
  border-radius: 11px;
  background: #071d25;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.yak-code-pane > header,
.yak-preview-pane > header {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(84,234,212,.22);
  background: #0a2a34;
  color: #cce7e8;
  font: 850 8px/1 monospace;
}
.yak-code-pane > header b { color: var(--yak); }
.yak-code-pane > header span { margin-left: auto; }
.yak-preview-pane > header i { width: 6px; height: 6px; border-radius: 50%; background: #ff6b75; }
.yak-preview-pane > header i:nth-child(2) { background: #ffd166; }
.yak-preview-pane > header i:nth-child(3) { background: #54ead4; }
.yak-preview-pane > header span { margin-left: auto; }
.yak-mini-prompt { display: grid; gap: 4px; margin: 13px; padding: 10px; border-radius: 8px; background: #fff1dc; color: #102127; }
.yak-mini-prompt small { color: #168d7c; font: 900 6px/1 monospace; }
.yak-mini-prompt strong { font-size: 12px; }
.yak-code-change { display: grid; gap: 12px; padding: 13px; font: 800 10px/1.2 monospace; }
.yak-code-change code { color: #d7eeed; opacity: 0; transform: translateX(-8px); animation: yak-code-row 3s ease forwards; }
.yak-code-change code:nth-child(2) { animation-delay: .65s; }
.yak-code-change del { color: #ff7895; text-decoration: line-through; }
.yak-code-change ins { color: #65e9ba; text-decoration: none; }
.yak-code-change > i { height: 4px; border-radius: 3px; background: linear-gradient(90deg,var(--yak) 0 0,rgba(84,234,212,.16) 0); animation: yak-code-progress 3s ease both; }
.yak-preview-pane > main {
  position: absolute;
  inset: 43px 8px 8px;
  padding: 14px;
  border-radius: 8px;
  background: #ff7a45;
  color: #fff;
  animation: yak-preview-green 3s ease both;
}
.yak-preview-pane > main strong { font: 1000 10px/1 sans-serif; }
.yak-preview-pane > main > div { display: grid; gap: 7px; margin-top: 20px; }
.yak-preview-pane > main > div i { height: 6px; border-radius: 4px; background: rgba(255,255,255,.48); }
.yak-preview-pane > main > div i:nth-child(2) { width: 72%; }
.yak-preview-pane > main > div i:nth-child(3) { width: 48%; }
.yak-preview-pane > main button { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 0; border-radius: 6px; color: #06322c; font-size: 7px; font-weight: 900; }
.yak-workspace .yak-color-story { top: 43px; }
.yak-live-trace {
  position: absolute;
  z-index: 6;
  left: 7%;
  right: 7%;
  bottom: 5%;
  height: 42px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(84,234,212,.6);
  border-radius: 10px;
  background: rgba(4,28,36,.96);
  box-shadow: 0 10px 35px rgba(0,0,0,.5);
}
.yak-live-trace > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yak); color: #05242b; font-size: 10px; }
.yak-live-trace code { color: #e4f9f6; font-size: 8px; }
.yak-live-trace > i { position: relative; height: 2px; background: rgba(84,234,212,.2); overflow: hidden; }
.yak-live-trace > i::after { content:""; position:absolute; inset:0 auto 0 0; width:35%; background:linear-gradient(90deg,transparent,var(--yak)); animation:yak-trace-run 1s linear infinite; }
.yak-live-trace span { color: #ff91aa; font: 900 8px/1 monospace; }
.yak-live-trace em { position:absolute; left:25%; bottom:-4px; color:var(--yak); font-size:8px; font-style:normal; animation:yak-trace-dot 3s ease both; }

.yak-scan-panel { overflow: visible; }
.yak-scan-map {
  position: relative;
  display: grid;
  grid-template-columns: 35% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px 28px;
  min-height: 215px;
  padding: 20px 18px 12px;
}
.yak-scan-map > code {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  height: 72px;
  border: 1px solid var(--yak);
  border-radius: 11px;
  background: #0b313a;
  color: #dffffa;
  font: 900 12px/1 monospace;
  box-shadow: 0 0 25px rgba(84,234,212,.15);
}
.yak-scan-map article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 12px; border-radius: 10px; background: #092730; opacity: 0; animation: yak-scan-node 2.8s ease forwards; }
.yak-scan-map article > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(84,234,212,.12); color: var(--yak); font-size: 16px; }
.yak-scan-map article strong { font-size: 12px; }
.yak-scan-map article b { font: 900 7px/1 monospace; }
.yak-scan-map .is-home { border: 1px solid #36bd96; animation-delay: .35s; }
.yak-scan-map .is-home b { color: #65e9ba; }
.yak-scan-map .is-store { border: 1px solid #315965; animation-delay: .8s; animation-name: yak-scan-store; }
.yak-scan-map .is-store b { color: #ffcf70; }
.yak-scan-line { position: absolute; z-index: -1; left: 31%; top: 50%; width: 31%; height: 1px; background: var(--yak); box-shadow: 0 -58px var(--yak),0 58px #ff4f79; }
.yak-scan-pulse { position: absolute; left: 35%; top: calc(50% + 56px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 18px var(--danger); animation: yak-scan-pulse 2.8s ease-in-out both; }
.yak-scan-caption { margin: -5px auto 0; width: fit-content; padding: 7px 11px; border-radius: 999px; background: rgba(84,234,212,.12); color: var(--yak); font: 900 8px/1 monospace; letter-spacing: .08em; }

.yak-found { display: grid !important; place-items: center; }
.yak-found-browser {
  position: absolute;
  inset: 8% 7% 18%;
  overflow: hidden;
  border: 1px solid #ff7895;
  border-radius: 13px;
  background: #f5f1ed;
  box-shadow: 0 25px 70px rgba(0,0,0,.58);
  animation: yak-found-browser 2.8s ease both;
}
.yak-found-browser main { height: calc(100% - 38px); display: grid; place-content: center; justify-items: center; gap: 8px; color: #71172f; background: linear-gradient(#fff,#f0e8e8); }
.yak-found-browser main small { color: #b13a58; font: 900 8px/1 monospace; letter-spacing: .13em; }
.yak-found-browser main strong { font-size: 25px; }
.yak-found-browser main code { color: #a45a6b; font-size: 10px; }
.yak-found-toast {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 7%;
  width: 58%;
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 2px solid var(--danger);
  border-radius: 13px;
  background: #fff0f3;
  color: #300c15;
  box-sizing: border-box;
  box-shadow: 0 16px 50px rgba(0,0,0,.48);
  animation: yak-found-toast 2.8s cubic-bezier(.18,.9,.2,1) both;
}
.yak-found-toast > small { color: #168d7c; font: 1000 7px/1 monospace; letter-spacing: .12em; }
.yak-found-toast > strong { font-size: 20px; line-height: 1; }
.yak-found-toast > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; padding-top: 7px; border-top: 1px solid rgba(103,24,44,.18); }
.yak-found-toast span { font-size: 8px; font-weight: 900; line-height: 1.1; }
.yak-found-toast span:last-child { color: #c52650; }
.yak-found-toast i { color: #168d7c; font-style: normal; }

.yak-target-map {
  display: grid;
  grid-template-columns: 32% auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 230px;
  padding: 15px 18px;
}
.yak-target-map code { display: block; padding: 13px 10px; border: 1px solid #2f6972; border-radius: 9px; background: #092832; color: #dffcf8; font: 850 9px/1 monospace; }
.yak-target-map > i { width: 34px; height: 2px; background: linear-gradient(90deg,var(--yak),var(--danger)); animation: yak-target-line 3s ease both; }
.yak-target-map > div { display: grid; gap: 10px; }
.yak-target-map > div code { border-color: rgba(255,79,121,.65); }
.yak-target-map > div code:first-child { animation: yak-target-file 3s .35s ease both; }
.yak-target-map > div code:last-child { animation: yak-target-file 3s .7s ease both; }
.yak-target-map > strong { display: grid; justify-items: center; gap: 3px; color: #ff91aa; font: 900 7px/1 monospace; }
.yak-target-map > strong b { color: #fff; font: 1000 34px/1 sans-serif; }

.yak-final-title { display: block; margin: 16px; color: #fff; font-size: 19px; line-height: 1; }
.yak-final-checks { display: grid; gap: 10px; padding: 0 16px; }
.yak-final-checks label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid #2f6972; border-radius: 9px; background: #092832; opacity: 0; animation: yak-final-check 2.5s ease forwards; }
.yak-final-checks label:nth-child(2) { animation-delay: .4s; }
.yak-final-checks i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--yak); color: #06252b; font: 1000 9px/1 monospace; font-style: normal; }
.yak-final-checks span { font-size: 11px; font-weight: 900; }
.yak-final-checks code { color: #8fc1c3; font-size: 8px; }

@keyframes yak-rewind-browser { 0%{opacity:1;transform:none} 70%{opacity:.7;transform:scale(.96)} 100%{opacity:.15;transform:scale(.86);filter:blur(3px)} }
@keyframes yak-rewind-streak { 0%{opacity:0;transform:translateX(70%)} 35%{opacity:1} 100%{opacity:0;transform:translateX(-70%)} }
@keyframes yak-dev-grid-in { 0%{opacity:0;transform:scale(.96)} 18%,100%{opacity:1;transform:none} }
@keyframes yak-code-row { 15%,100%{opacity:1;transform:none} }
@keyframes yak-code-progress { 0%{background-size:0 100%} 100%{background:linear-gradient(90deg,var(--yak) 0 100%,rgba(84,234,212,.16) 100%)} }
@keyframes yak-preview-green { 0%,25%{background:#ff7a45} 56%,100%{background:#119b78;box-shadow:inset 0 0 35px rgba(84,234,212,.22)} }
@keyframes yak-trace-run { from{transform:translateX(-100%)} to{transform:translateX(320%)} }
@keyframes yak-trace-dot { 0%,35%{left:25%;opacity:0} 48%{opacity:1} 100%{left:88%;opacity:1} }
@keyframes yak-scan-node { 20%,100%{opacity:1;transform:none} }
@keyframes yak-scan-store { 0%,20%{opacity:0;transform:translateX(15px);border-color:#315965} 42%{opacity:1;transform:none;border-color:#315965} 72%,100%{opacity:1;transform:none;border-color:#ff4f79;background:rgba(104,24,47,.32)} }
@keyframes yak-scan-pulse { 0%,28%{opacity:0;transform:translateX(0)} 42%{opacity:1} 75%,100%{opacity:1;transform:translateX(150px)} }
@keyframes yak-found-browser { 0%{opacity:0;transform:scale(.96)} 20%,100%{opacity:1;transform:none} }
@keyframes yak-found-toast { 0%,38%{opacity:0;transform:translateY(28px) scale(.92)} 55%{opacity:1;transform:scale(1.03)} 68%,100%{opacity:1;transform:none} }
@keyframes yak-target-line { 0%,15%{transform:scaleX(0);transform-origin:left} 55%,100%{transform:scaleX(1);transform-origin:left} }
@keyframes yak-target-file { 0%,20%{opacity:0;transform:translateX(12px)} 45%,100%{opacity:1;transform:none} }
@keyframes yak-final-check { 12%,100%{opacity:1;transform:none} }

@media (max-width:600px) {
  .yak-rewind-browser { inset: 8% 5% 22%; }
  .yak-rewind-browser main > i { width: 40px; height: 40px; font-size: 23px; }
  .yak-rewind-browser main strong { font-size: 20px; }
  .yak-rewind-copy { bottom: 7%; }
  .yak-rewind-copy strong { font-size: 14px; }
  .yak-dev-grid { inset: 4% 3% 18%; gap: 6px; }
  .yak-code-pane > header,
  .yak-preview-pane > header { height: 27px; padding: 0 7px; font-size: 6px; }
  .yak-mini-prompt { gap: 3px; margin: 7px; padding: 7px; }
  .yak-mini-prompt strong { font-size: 9px; }
  .yak-code-change { gap: 8px; padding: 8px; font-size: 8px; }
  .yak-preview-pane > main { inset: 34px 6px 6px; padding: 8px; }
  .yak-preview-pane > main strong { font-size: 7px; }
  .yak-preview-pane > main > div { gap: 5px; margin-top: 14px; }
  .yak-preview-pane > main > div i { height: 4px; }
  .yak-preview-pane > main button { right: 7px; bottom: 7px; padding: 5px 7px; font-size: 5px; }
  .yak-workspace .yak-color-story { top: 33px; right: 5px; }
  .yak-live-trace { left: 5%; right: 5%; bottom: 4%; height: 34px; gap: 6px; padding: 0 8px; }
  .yak-live-trace > b { width: 19px; height: 19px; font-size: 8px; }
  .yak-live-trace code,
  .yak-live-trace span { font-size: 7px; }
  .yak-scan-map { gap: 9px 18px; min-height: 205px; padding: 15px 12px 8px; }
  .yak-scan-map > code { height: 65px; font-size: 10px; }
  .yak-scan-map article { gap: 7px; padding: 10px 8px; }
  .yak-scan-map article > span { width: 25px; height: 25px; font-size: 13px; }
  .yak-scan-map article strong { font-size: 10px; }
  .yak-scan-map article b { font-size: 6px; }
  .yak-scan-line { left: 30%; width: 34%; box-shadow:0 -52px var(--yak),0 52px #ff4f79; }
  .yak-scan-pulse { left: 34%; top: calc(50% + 49px); }
  .yak-scan-caption { font-size: 7px; }
  .yak-found-browser { inset: 6% 4% 20%; }
  .yak-found-browser main strong { font-size: 19px; }
  .yak-found-toast { right: 4%; bottom: 6%; width: 64%; gap: 5px; padding: 11px; }
  .yak-found-toast > strong { font-size: 15px; }
  .yak-found-toast span { font-size: 7px; }
  .yak-target-map { grid-template-columns: 30% auto 1fr; gap: 8px; min-height: 235px; padding: 12px; }
  .yak-target-map code { padding: 11px 7px; font-size: 7px; }
  .yak-target-map > i { width: 24px; }
  .yak-target-map > strong { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 7px; font-size: 7px; }
  .yak-target-map > strong b { font-size: 27px; }
  .yak-final-title { margin: 13px 12px 10px; font-size: 15px; }
  .yak-final-checks { gap: 8px; padding: 0 12px; }
  .yak-final-checks label { gap: 8px; padding: 10px; }
  .yak-final-checks i { width: 22px; height: 22px; font-size: 8px; }
  .yak-final-checks span { font-size: 9px; }
  .yak-final-checks code { font-size: 6px; }
}

.yak-step {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 13%, rgba(84,234,212,.2), transparent 28%),
    radial-gradient(circle at 16% 86%, rgba(255,79,121,.14), transparent 31%),
    #031017;
  color: #fff;
}

.yak-step::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(105deg, transparent 0 24px, rgba(84,234,212,.025) 25px 26px);
}

.yak-desktop-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(.92) brightness(.72);
  transform-origin: 36% 42%;
  animation: yak-desktop-camera 3.8s ease-out both;
}

.yak-desktop-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,10,15,.18) 0 34%, rgba(2,12,18,.76) 64%, rgba(2,12,18,.93)), linear-gradient(0deg, rgba(2,10,15,.78), transparent 48%);
}

.yak-story-caption {
  position: absolute;
  z-index: 6;
  left: 4%;
  top: auto;
  bottom: 5%;
  width: 34%;
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-left: 3px solid var(--yak);
  border-radius: 0 9px 9px 0;
  background: rgba(3,20,27,.88);
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
  animation: yak-caption-late 3.8s ease both;
}

.yak-story-caption small { color: var(--yak); font: 900 7px/1 monospace; letter-spacing: .12em; }
.yak-story-caption strong { color: #fff7e8; font-size: 14px; line-height: 1.16; }

.yak-workbench {
  position: absolute;
  z-index: 4;
  top: 5%;
  right: 3%;
  bottom: 13%;
  width: 58%;
  display: grid;
  grid-template-rows: .94fr 1.06fr;
  gap: 7px;
  animation: yak-workbench-in 3.8s cubic-bezier(.18,.84,.2,1) both;
}

.yak-chat,
.yak-live-site {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(84,234,212,.65);
  border-radius: 10px;
  background: rgba(4,25,33,.96);
  box-shadow: 0 18px 45px rgba(0,0,0,.5);
}

.yak-chat > header,
.yak-live-site > header {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-bottom: 1px solid rgba(84,234,212,.22);
  background: #092a35;
  color: #ecfffb;
  font: 900 7px/1 monospace;
}

.yak-chat > header span { color: #63e9b9; }
.yak-live-site > header span { color: #8fb4b8; }

.yak-user-prompt {
  display: grid;
  gap: 3px;
  margin: 9px 9px 6px 26px;
  padding: 7px 9px;
  border-radius: 8px 8px 2px 8px;
  background: #fff2dd;
  color: #16232a;
  opacity: 0;
  animation: yak-chat-line 3.8s .05s ease forwards;
}

.yak-user-prompt small,
.yak-agent-state small { color: #158c7a; font: 900 6px/1 monospace; letter-spacing: .1em; }
.yak-user-prompt strong { font-size: 9px; line-height: 1.15; }

.yak-agent-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 9px;
  color: #dff8f4;
  opacity: 0;
  animation: yak-chat-line 3.8s .35s ease forwards;
}

.yak-agent-state > i {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(84,234,212,.28);
  border-top-color: var(--yak);
  border-radius: 50%;
  animation: yak-spin .8s linear infinite;
}

.yak-agent-state div { display: grid; gap: 3px; }
.yak-agent-state b { font-size: 8px; }

.yak-file-chips { display: flex; gap: 5px; margin: 7px 9px 0; opacity: 0; animation: yak-chat-line 3.8s .62s ease forwards; }
.yak-file-chips code { padding: 4px 6px; border: 1px solid #245560; border-radius: 5px; color: #8cd9d0; font-size: 6px; }

.yak-site-nav { display: flex; gap: 4px; padding: 7px 8px 3px; }
.yak-site-nav i { width: 5px; height: 5px; border-radius: 50%; background: #ff786c; }
.yak-site-nav i:nth-child(2) { background: #ffd166; }
.yak-site-nav i:nth-child(3) { background: #54ead4; }

.yak-site-body {
  position: absolute;
  inset: 40px 8px 8px;
  overflow: hidden;
  padding: 10px;
  border-radius: 7px;
  background: #ff7a45;
  color: #fff;
  animation: yak-site-green 3.8s ease both;
}

.yak-site-body strong { font: 1000 8px/1 sans-serif; }
.yak-site-body > div { display: grid; gap: 5px; margin-top: 12px; }
.yak-site-body > div i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.42); }
.yak-site-body > div i:nth-child(2) { width: 72%; }
.yak-site-body > div i:nth-child(3) { width: 48%; }
.yak-site-body button { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border: 0; border-radius: 5px; color: #0b2a2b; font-size: 6px; font-weight: 900; }

.yak-color-story {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 35px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(3,18,24,.9);
  font: 800 6px/1 monospace;
}

.yak-color-story span { display: grid; gap: 2px; }
.yak-color-story small { font-size: 5px; color: #b4ced0; }
.yak-color-story > i { color: var(--yak); font-style: normal; }
.yak-before { color: #ff9465; }
.yak-after { color: #62edbb; opacity: 0; animation: yak-after-in 3.8s 1.45s ease forwards; }

.yak-taskbar {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 4%;
  width: 50%;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(8,21,29,.88);
  box-shadow: 0 10px 35px rgba(0,0,0,.52);
  animation: yak-taskbar-in 3.4s ease both;
}

.yak-taskbar i { width: 15px; height: 15px; border-radius: 4px; background: #1b4652; box-shadow: inset 0 0 0 1px rgba(84,234,212,.2); }
.yak-taskbar i:nth-child(3) { background: linear-gradient(135deg,#54ead4,#188a7d); }
.yak-taskbar b { position: absolute; right: calc(50% - 45px); top: -4px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 7px; }

.yak-regression-toast {
  position: absolute;
  right: 4%;
  bottom: 16%;
  width: 52%;
  box-sizing: border-box;
  animation-name: yak-toast-in;
}

.yak-regression-toast button {
  justify-self: start;
  margin-top: 4px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: #173b42;
  color: #fff;
  font: 900 6px/1 sans-serif;
}

.yak-change-chain {
  display: grid;
  grid-template-columns: 1.35fr auto .75fr auto 1fr;
  align-items: center;
  gap: 5px;
  margin: 0 16px 10px;
  padding: 8px;
  border-radius: 8px;
  background: #061c24;
  color: #bfd8da;
  font-size: 7px;
}

.yak-change-chain i { color: var(--yak); font-style: normal; }
.yak-change-chain code { color: #fff; font-weight: 800; }
.yak-change-chain b { color: #65e9ba; font-size: 7px; }

.yak-code-window,
.yak-product-panel {
  position: absolute;
  z-index: 2;
  inset: 10% 6% 11%;
  overflow: hidden;
  border: 1px solid rgba(84,234,212,.72);
  border-radius: 13px;
  background: rgba(3,23,31,.97);
  box-shadow: 0 24px 65px rgba(0,0,0,.56), 0 0 32px rgba(84,234,212,.08);
  animation: yak-panel-in 3.8s cubic-bezier(.18,.84,.2,1) both;
}

.yak-code-window > header,
.yak-product-panel > header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(84,234,212,.28);
  background: #082733;
  color: #dffbf6;
  font: 900 9px/1 monospace;
  letter-spacing: .08em;
}

.yak-code-window > header span { color: #7fa7a9; }
.yak-product-panel > header b span { color: var(--yak); }
.yak-product-panel > header em { color: #ff91a9; font-style: normal; }

.yak-code-lines {
  display: grid;
  gap: 9px;
  padding: 21px 18px 10px;
}

.yak-code-lines i {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #438c9d 0 20%, #214a58 20% 74%, transparent 74%);
  opacity: 0;
  animation: yak-code-line 3.8s ease forwards;
}

.yak-code-lines i:nth-child(2) { width: 86%; animation-delay: .25s; }
.yak-code-lines i:nth-child(3) { width: 72%; animation-delay: .5s; }
.yak-code-lines i:nth-child(4) { width: 92%; animation-delay: .75s; }
.yak-code-lines i:nth-child(5) { width: 64%; animation-delay: 1s; }

.yak-diff {
  display: grid;
  gap: 8px;
  margin: 5px 18px;
  padding: 12px;
  border-radius: 8px;
  background: #03151b;
  font: 800 9px/1.25 monospace;
}

.yak-diff del { color: #ff6e88; text-decoration: none; }
.yak-diff ins { color: #66edbb; text-decoration: none; }

.yak-watcher {
  position: absolute;
  z-index: 5;
  right: 4%;
  bottom: 5%;
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  border: 1px solid var(--yak);
  border-radius: 9px;
  background: #06242c;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 20px rgba(84,234,212,.18);
  animation: yak-watcher-in 3.8s ease both;
}

.yak-watcher span { color: #fff; font: 1000 11px/1 sans-serif; }
.yak-watcher b { color: var(--yak); font: 900 7px/1 monospace; letter-spacing: .08em; }

.yak-alert { display: grid !important; place-items: center; }

.agent-done {
  position: absolute;
  z-index: 2;
  top: 15%;
  left: 8%;
  display: grid;
  gap: 6px;
  width: 42%;
  padding: 13px;
  border: 1px solid #2b6570;
  border-radius: 11px;
  background: #08242d;
  animation: agent-done-in 3.4s ease both;
}

.agent-done small { color: #7da4a9; font: 800 7px/1 monospace; }
.agent-done strong { color: #65e9ba; font-size: 18px; }
.agent-done span { color: #93b4b8; font: 800 7px/1 monospace; }
.yak-alert .agent-done { left: auto; right: 4%; top: 6%; width: 48%; box-sizing: border-box; }

.yak-regression-alert {
  position: relative;
  z-index: 4;
  width: min(76%, 390px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 2px solid var(--danger);
  border-radius: 13px;
  background: #fff0f3;
  color: #2c0b12;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 30px rgba(255,79,121,.25);
  animation: regression-alert-in 3.4s cubic-bezier(.18,.9,.2,1) both;
}

.yak-regression-alert > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font: 1000 22px/1 sans-serif;
  font-style: normal;
}

.yak-regression-alert div { display: grid; gap: 4px; }
.yak-regression-alert small { color: #178e7d; font: 1000 7px/1 monospace; letter-spacing: .12em; }
.yak-regression-alert strong { font-size: 17px; line-height: 1; }
.yak-regression-alert span { color: #6e4149; font-size: 9px; font-weight: 750; }
.yak-regression-alert p {
  margin: 1px 0 0;
  padding-top: 5px;
  border-top: 1px solid rgba(110,65,73,.2);
  color: #35151b;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.2;
}

/* Keep the desktop notification on the monitor side, never over the person. */
.yak-regression-alert.yak-regression-toast {
  position: absolute;
  right: 4%;
  bottom: 16%;
  width: 52%;
  max-width: none;
  box-sizing: border-box;
  animation-name: yak-toast-in;
}

.yak-product-panel { padding-bottom: 14px; }
.yak-product-panel > small { display: block; margin: 15px 16px 10px; color: var(--yak); font: 1000 8px/1 monospace; letter-spacing: .16em; }

.changed-file-list {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.changed-file-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #164751;
  border-radius: 8px;
  background: #09242c;
  opacity: 0;
  transform: translateX(-16px);
  animation: changed-file-in 3.8s ease forwards;
}

.changed-file-list article:nth-child(2) { animation-delay: .42s; }
.changed-file-list article:nth-child(3) { animation-delay: .84s; }
.changed-file-list article > div { display: grid; gap: 4px; }
.changed-file-list code { color: #effffd; font: 800 10px/1 monospace; }
.changed-file-list small { color: #86aeb2; font: 750 7px/1 sans-serif; }
.changed-file-list b { color: #65e9ba; font: 900 9px/1 monospace; }

.yak-story-steps {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.yak-story-steps article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #24515a;
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(10,44,53,.97), rgba(6,29,38,.97));
  opacity: 0;
  transform: translateX(-16px);
  animation: yak-story-step-in 3.5s ease forwards;
}

.yak-story-steps article:nth-child(2) { animation-delay: .38s; }
.yak-story-steps article:nth-child(3) { animation-delay: .76s; }
.yak-story-steps article > i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(84,234,212,.14);
  color: var(--yak);
  font: 1000 9px/1 monospace;
  font-style: normal;
}
.yak-story-steps article > div { min-width: 0; display: grid; gap: 3px; }
.yak-story-steps article strong { color: #f2fffd; font-size: 10px; line-height: 1.08; }
.yak-story-steps article span { color: #9fc3c6; font-size: 7px; font-weight: 750; line-height: 1.15; }
.yak-story-steps article > b {
  padding: 5px 6px;
  border-radius: 5px;
  background: rgba(84,234,212,.1);
  color: #65e9ba;
  font: 900 6px/1 monospace;
  white-space: nowrap;
}
.yak-story-steps article.is-risk {
  border-color: rgba(255,79,121,.72);
  background: linear-gradient(100deg, rgba(68,24,39,.72), rgba(24,24,35,.96));
}
.yak-story-steps article.is-risk > i { background: rgba(255,79,121,.18); color: #ff7895; }
.yak-story-steps article.is-risk > b { background: rgba(255,79,121,.12); color: #ff91aa; }

.runtime-map {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px 14px;
  min-height: 176px;
  padding: 5px 16px 12px;
}

.runtime-source {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border: 1px solid #28747a;
  border-radius: 10px;
  background: #092831;
  color: var(--yak);
  font-size: 12px;
  animation: runtime-source-pulse 4s ease infinite;
}
.runtime-source small { color: #8fb8ba; font: 800 7px/1.2 sans-serif; }

.runtime-map > i {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 39%;
  width: 18%;
  height: 1px;
  background: var(--yak);
  box-shadow: 0 -48px var(--yak), 0 48px var(--danger);
}

.runtime-map article {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 11px;
  border-radius: 9px;
  opacity: 0;
  animation: runtime-target-in 4s ease forwards;
}

.runtime-map article strong { font-size: 12px; }
.runtime-map article b { font: 900 7px/1 monospace; letter-spacing: .08em; }
.runtime-safe { border: 1px solid #2bbf92; background: rgba(31,133,105,.18); }
.runtime-safe b { color: #65e9ba; }
.runtime-risk { border: 1px solid var(--danger); background: rgba(191,45,76,.18); animation-delay: .65s !important; }
.runtime-risk b { color: #ff7895; }

.yak-plain-definition {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 0 16px;
  padding: 9px 11px;
  border-left: 3px solid var(--danger);
  border-radius: 0 8px 8px 0;
  background: rgba(255,240,243,.96);
  color: #2c0b12;
  opacity: 0;
  animation: yak-definition-in 3.6s .75s ease forwards;
}
.yak-plain-definition b { color: #c42450; font: 1000 7px/1 monospace; letter-spacing: .08em; }
.yak-plain-definition span { font-size: 8px; font-weight: 850; line-height: 1.2; }

.yak-check-intro {
  margin: -1px 16px 10px;
  color: #b6d3d5;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
}

.required-checks {
  display: grid;
  gap: 9px;
  padding: 0 16px;
}

.required-checks label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #24515a;
  border-radius: 9px;
  background: #09252d;
}

.required-checks i {
  width: 15px;
  height: 15px;
  border: 2px solid var(--yak);
  border-radius: 4px;
}

.required-checks span { font-size: 11px; font-weight: 850; }
.required-checks b { color: #ffcf70; font: 900 7px/1 monospace; }

.yak-time-saved {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 16px 0;
  padding: 8px 10px;
  border: 1px solid rgba(101,233,186,.48);
  border-radius: 8px;
  background: rgba(30,118,94,.15);
  color: #dffff2;
}
.yak-time-saved i { color: #65e9ba; font: 1000 15px/1 sans-serif; font-style: normal; }
.yak-time-saved strong { font-size: 8px; line-height: 1.15; }

.verify-before {
  display: block;
  width: calc(100% - 32px);
  margin: 12px 16px 0;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--yak), #2fbf9d);
  color: #052029;
  font: 1000 9px/1 sans-serif;
  letter-spacing: .06em;
  box-shadow: 0 8px 25px rgba(84,234,212,.18);
}

@keyframes yak-panel-in {
  0% { opacity: 0; transform: translateY(22px) scale(.94); filter: blur(4px); }
  18%, 100% { opacity: 1; transform: none; filter: none; }
}

@keyframes yak-desktop-camera {
  0% { transform: scale(1.04) translateX(1%); filter: saturate(.78) brightness(.58); }
  100% { transform: scale(1.11) translateX(-1%); filter: saturate(1) brightness(.76); }
}

@keyframes yak-caption-in {
  0%, 12% { opacity: 0; transform: translateX(-16px); }
  30%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-caption-late {
  0%, 52% { opacity: 0; transform: translateY(12px); }
  68%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-workbench-in {
  0%, 10% { opacity: 0; transform: translateY(20px) scale(.96); filter: blur(4px); }
  28%, 100% { opacity: 1; transform: none; filter: none; }
}

@keyframes yak-chat-line {
  0%, 5% { opacity: 0; transform: translateY(8px); }
  18%, 100% { opacity: 1; transform: none; }
}

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

@keyframes yak-site-green {
  0%, 22% { background: #ff7a45; box-shadow: inset 0 0 0 rgba(84,234,212,0); }
  50%, 100% { background: #119b78; box-shadow: inset 0 0 28px rgba(84,234,212,.22); }
}

@keyframes yak-after-in {
  0%, 12% { opacity: 0; transform: translateX(-5px); }
  28%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-taskbar-in {
  0%, 18% { opacity: 0; transform: translate(-50%,10px); }
  34%, 100% { opacity: 1; transform: translate(-50%,0); }
}

@keyframes yak-toast-in {
  0%, 38% { opacity: 0; transform: translateX(36px) scale(.94); }
  52% { opacity: 1; transform: translateX(-4px) scale(1.02); }
  62%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-code-line {
  to { opacity: 1; transform: none; }
}

@keyframes yak-watcher-in {
  0%, 38% { opacity: 0; transform: translateY(12px); }
  58%, 100% { opacity: 1; transform: none; }
}

@keyframes agent-done-in {
  0%, 8% { opacity: 0; transform: translateY(-12px); }
  24%, 64% { opacity: 1; transform: none; }
  80%, 100% { opacity: .35; }
}

@keyframes regression-alert-in {
  0%, 36% { opacity: 0; transform: translateY(35px) scale(.88); }
  52% { opacity: 1; transform: scale(1.04); }
  62%, 100% { opacity: 1; transform: none; }
}

@keyframes changed-file-in {
  18%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-story-step-in {
  12%, 100% { opacity: 1; transform: none; }
}

@keyframes yak-definition-in {
  0%, 20% { opacity: 0; transform: translateY(9px); }
  45%, 100% { opacity: 1; transform: none; }
}

@keyframes runtime-source-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(84,234,212,0); }
  50% { box-shadow: 0 0 24px rgba(84,234,212,.2); }
}

@keyframes runtime-target-in {
  0%, 15% { opacity: 0; transform: translateX(15px); }
  35%, 100% { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .yak-desktop-photo { object-position: 50% 45%; }
  .yak-story-caption { left: 3%; top: auto; bottom: 4%; width: 35%; padding: 8px 9px; }
  .yak-story-caption strong { font-size: 11px; }
  .yak-workbench { top: 4%; right: 2.5%; bottom: 12%; width: 60%; gap: 5px; }
  .yak-chat > header,
  .yak-live-site > header { height: 23px; padding: 0 7px; font-size: 6px; }
  .yak-user-prompt { margin: 6px 6px 4px 18px; padding: 5px 6px; }
  .yak-user-prompt strong { font-size: 7px; }
  .yak-agent-state { gap: 5px; margin: 0 6px; }
  .yak-agent-state > i { width: 10px; height: 10px; }
  .yak-agent-state b { font-size: 6px; }
  .yak-file-chips { gap: 3px; margin: 5px 6px 0; }
  .yak-file-chips code { padding: 3px 4px; font-size: 5px; }
  .yak-site-body { inset: 31px 6px 6px; padding: 7px; }
  .yak-site-body strong { font-size: 6px; }
  .yak-site-body > div { gap: 3px; margin-top: 8px; }
  .yak-site-body > div i { height: 3px; }
  .yak-site-body button { right: 6px; bottom: 6px; padding: 4px 6px; font-size: 5px; }
  .yak-color-story { right: 5px; top: 28px; padding: 4px; font-size: 5px; }
  .yak-color-story small { font-size: 4px; }
  .yak-alert .agent-done { right: 3%; top: 5%; width: 51%; }
  .yak-taskbar { bottom: 3%; width: 55%; height: 27px; gap: 7px; }
  .yak-taskbar i { width: 12px; height: 12px; }
  .yak-regression-alert.yak-regression-toast { right: 3%; bottom: 14%; width: 55%; }
  .yak-regression-toast button { font-size: 5px; }
  .yak-regression-alert p { padding-top: 4px; font-size: 7.5px; }
  .yak-change-chain { margin: 0 12px 8px; padding: 6px; font-size: 5px; }
  .yak-change-chain b { font-size: 5px; }
  .yak-code-window,
  .yak-product-panel { inset: 7% 3% 9%; border-radius: 10px; }
  .yak-code-window > header,
  .yak-product-panel > header { height: 34px; padding: 0 10px; }
  .yak-code-lines { gap: 7px; padding: 16px 13px 8px; }
  .yak-diff { margin: 4px 13px; padding: 10px; font-size: 8px; }
  .yak-watcher { right: 3%; bottom: 4%; padding: 8px 9px; }
  .yak-watcher span { font-size: 9px; }
  .agent-done { top: 10%; left: 5%; width: 46%; padding: 10px; }
  .yak-regression-alert { width: 80%; gap: 9px; padding: 12px; }
  .yak-regression-alert > i { width: 31px; height: 31px; font-size: 18px; }
  .yak-regression-alert strong { font-size: 14px; }
  .yak-product-panel > small { margin: 12px 12px 9px; }
  .changed-file-list,
  .required-checks { padding: 0 12px; gap: 7px; }
  .yak-story-steps { gap: 8px; padding: 0 12px; }
  .yak-story-steps article { gap: 8px; padding: 11px 9px; }
  .yak-story-steps article > i { width: 23px; height: 23px; font-size: 8px; }
  .yak-story-steps article strong { font-size: 11px; }
  .yak-story-steps article span { font-size: 8px; line-height: 1.22; }
  .yak-story-steps article > b { padding: 5px 6px; font-size: 6px; }
  .changed-file-list article,
  .required-checks label { padding: 10px; }
  .changed-file-list code { font-size: 8px; }
  .changed-file-list small { font-size: 6px; }
  .runtime-map { min-height: 174px; padding: 3px 12px 10px; }
  .runtime-source small { font-size: 8px; text-align: center; }
  .runtime-source code { font-size: 11px; }
  .runtime-map article strong { font-size: 11px; }
  .runtime-map article b { font-size: 7.5px; }
  .yak-plain-definition { gap: 7px; margin: 0 12px; padding: 9px; }
  .yak-plain-definition b { font-size: 7px; }
  .yak-plain-definition span { font-size: 8.5px; }
  .yak-check-intro { margin: -1px 12px 9px; font-size: 8.5px; }
  .required-checks span { font-size: 10px; }
  .yak-time-saved { gap: 5px; margin: 8px 12px 0; padding: 6px 8px; }
  .yak-time-saved i { font-size: 12px; }
  .yak-time-saved strong { font-size: 8.5px; }
  .verify-before { width: calc(100% - 24px); margin: 10px 12px 0; padding: 10px; font-size: 8px; }
}

@media (max-width:600px) {
  .yak-target-map { grid-template-columns: 28% auto 1fr; gap: 10px; min-height: 245px; }
  .yak-target-map code { padding: 14px 8px; font-size: 9px; }
  .yak-target-map > strong { font-size: 9px; }
  .yak-target-map > strong b { font-size: 38px; }
}

/* Chapter 3 v3 — seven visual beats, deliberately low-copy. */
.yak-v3-browser {
  position: absolute;
  inset: 7% 5% 13%;
  overflow: hidden;
  border: 1px solid rgba(84,234,212,.72);
  border-radius: 14px;
  background: #edf7f3;
  box-shadow: 0 24px 70px rgba(0,0,0,.58);
  animation: yak-v3-window-in 2.2s ease both;
}
.yak-v3-browser > header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #10272f;
  color: #a9c4c5;
  font: 800 8px/1 monospace;
}
.yak-v3-browser > header i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b75; }
.yak-v3-browser > header i:nth-child(2) { background: #ffd166; }
.yak-v3-browser > header i:nth-child(3) { background: #54ead4; }
.yak-v3-browser > header span { flex: 1; margin-left: 5px; }
.yak-v3-browser > header b { color: #65e9ba; }
.yak-v3-green-site {
  position: absolute;
  inset: 38px 0 0;
  display: grid;
  grid-template-columns: 28% 1fr;
  background: #ff7a45;
  color: #fff;
  animation: yak-v3-green 2.2s ease both;
}
.yak-v3-green-site nav { padding: 22px 16px; background: rgba(0,0,0,.18); font: 1000 13px/1 sans-serif; }
.yak-v3-green-site nav span { color: #baffef; }
.yak-v3-green-site section { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 22px; }
.yak-v3-green-site section > i { height: 8px; border-radius: 5px; background: rgba(255,255,255,.48); }
.yak-v3-green-site section > i:nth-child(2) { width: 78%; }
.yak-v3-green-site section > i:nth-child(3) { width: 52%; }
.yak-v3-green-site button { position: absolute; right: 20px; bottom: 20px; padding: 9px 14px; border: 0; border-radius: 7px; color: #06312a; font-size: 8px; font-weight: 900; }
.yak-v3-presence {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--yak);
  border-radius: 999px;
  background: rgba(4,31,39,.95);
  color: var(--yak);
  box-shadow: 0 12px 35px rgba(0,0,0,.4),0 0 22px rgba(84,234,212,.15);
  animation: yak-v3-presence-in 2.2s ease both;
}
.yak-v3-presence b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--yak); color: #06252b; font-size: 9px; }
.yak-v3-presence span { font: 900 8px/1 monospace; letter-spacing: .08em; }
.yak-v3-presence i { width: 7px; height: 7px; border-radius: 50%; background: var(--yak); box-shadow: 0 0 12px var(--yak); animation: yak-v3-blink .8s ease infinite; }

.yak-v3-hub {
  position: absolute;
  inset: 9% 7% 17%;
  display: grid;
  grid-template-columns: 38% 1fr;
  grid-template-rows: repeat(3,1fr);
  align-items: center;
  gap: 10px 34px;
}
.yak-v3-site-node {
  grid-row: 1 / 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  height: 76%;
  border: 2px solid var(--yak);
  border-radius: 16px;
  background: linear-gradient(145deg,#128f73,#0db28a);
  box-shadow: 0 0 35px rgba(84,234,212,.16);
  animation: yak-v3-hub-in 2.4s ease both;
}
.yak-v3-site-node strong { font-size: 14px; }
.yak-v3-site-node span { color: #d9fff6; font: 800 8px/1 monospace; }
.yak-v3-hub article {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #2e6470;
  border-radius: 11px;
  background: #092831;
  opacity: 0;
  transform: translateX(14px);
  animation: yak-v3-node-in 2.4s ease forwards;
}
.yak-v3-hub article:nth-of-type(2) { animation-delay: .22s; }
.yak-v3-hub article:nth-of-type(3) { animation-delay: .44s; }
.yak-v3-hub article b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: rgba(84,234,212,.12); color: var(--yak); font-size: 16px; }
.yak-v3-hub article span { font-size: 12px; font-weight: 900; }
.yak-v3-branch { position: absolute; z-index: -1; left: 34%; top: 50%; width: 29%; height: 1px; background: var(--yak); box-shadow: 0 -74px var(--yak),0 74px var(--yak); }
.yak-v3-hub > em { position: absolute; left: 39%; width: 9px; height: 9px; border-radius: 50%; background: var(--yak); box-shadow: 0 0 16px var(--yak); animation: yak-v3-pulse-route 1.15s ease-in-out infinite; }
.yak-v3-hub > em:nth-of-type(1) { top: 18%; }
.yak-v3-hub > em:nth-of-type(2) { top: 49%; animation-delay: .2s; }
.yak-v3-hub > em:nth-of-type(3) { top: 80%; animation-delay: .4s; }
.yak-v3-caption { position: absolute; left: 50%; bottom: 6%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); padding: 8px 12px; border-radius: 999px; background: rgba(84,234,212,.12); color: var(--yak); white-space: nowrap; }
.yak-v3-caption b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--yak); color: #06252b; font-size: 9px; }
.yak-v3-caption span { font: 900 8px/1 monospace; letter-spacing: .08em; }

.yak-v3-result-grid {
  position: absolute;
  inset: 15% 6% 25%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.yak-v3-result-grid article { display: grid; place-content: center; justify-items: center; gap: 11px; border-radius: 14px; background: #092831; opacity: 0; transform: translateY(18px); animation: yak-v3-result-in 2.2s ease forwards; }
.yak-v3-result-grid article:nth-child(2) { animation-delay: .22s; }
.yak-v3-result-grid article:nth-child(3) { animation-delay: .44s; }
.yak-v3-result-grid article > b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--yak); background: rgba(84,234,212,.12); font-size: 23px; }
.yak-v3-result-grid article strong { font-size: 13px; }
.yak-v3-result-grid article > i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #06252b; background: #65e9ba; font: 1000 19px/1 sans-serif; font-style: normal; }
.yak-v3-result-grid .is-pass { border: 1px solid #36bd96; }
.yak-v3-result-grid .is-fail { border: 2px solid var(--danger); background: rgba(92,24,43,.55); animation-name: yak-v3-result-fail; }
.yak-v3-result-grid .is-fail > b { color: #ff91aa; background: rgba(255,79,121,.14); }
.yak-v3-result-grid .is-fail > i { color: #fff; background: var(--danger); box-shadow: 0 0 22px rgba(255,79,121,.35); }
.yak-v3-result-label { position: absolute; left: 50%; bottom: 9%; display: grid; justify-items: center; gap: 4px; transform: translateX(-50%); white-space: nowrap; }
.yak-v3-result-label span { color: var(--yak); font: 900 8px/1 monospace; }
.yak-v3-result-label strong { color: #ff91aa; font-size: 17px; }

.yak-v3-compare-grid {
  position: absolute;
  inset: 10% 7% 12%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.yak-v3-compare-grid > i { color: var(--yak); font: 1000 27px/1 sans-serif; font-style: normal; animation: yak-v3-arrow 2.3s ease both; }
.yak-v3-compare-grid article { display: grid; place-content: center; justify-items: center; gap: 9px; height: 86%; border-radius: 15px; background: #092831; opacity: 0; animation: yak-v3-compare-in 2.3s ease forwards; }
.yak-v3-compare-grid .is-before { border: 1px solid #36bd96; }
.yak-v3-compare-grid .is-now { border: 2px solid var(--danger); background: rgba(95,25,45,.48); animation-delay: .35s; }
.yak-v3-compare-grid small { color: #9fc2c5; font: 900 8px/1 monospace; letter-spacing: .13em; }
.yak-v3-compare-grid article > div { position: relative; display: grid; place-items: center; width: 90px; height: 90px; border-radius: 18px; background: rgba(84,234,212,.1); }
.yak-v3-compare-grid article > div b { font-size: 43px; color: var(--yak); }
.yak-v3-compare-grid article > div i { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #65e9ba; color: #06252b; font: 1000 19px/1 sans-serif; font-style: normal; }
.yak-v3-compare-grid .is-now article > div,
.yak-v3-compare-grid .is-now > div { background: rgba(255,79,121,.1); }
.yak-v3-compare-grid .is-now > div b { color: #ff91aa; }
.yak-v3-compare-grid .is-now > div i { background: var(--danger); color: #fff; }
.yak-v3-compare-grid article > strong { font-size: 16px; }
.yak-v3-compare-grid article > span { font-size: 11px; font-weight: 900; color: #65e9ba; }
.yak-v3-compare-grid .is-now > span { color: #ff91aa; }

.yak-v3-flow {
  position: absolute;
  inset: 7% 17% 14%;
  display: grid;
  grid-template-rows: 1fr auto 1fr auto 1fr;
  justify-items: center;
  align-items: center;
}
.yak-v3-flow article { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #2e6470; border-radius: 11px; background: #092831; box-sizing: border-box; opacity: 0; animation: yak-v3-flow-node 2.5s ease forwards; }
.yak-v3-flow article:nth-of-type(2) { animation-delay: .28s; }
.yak-v3-flow article:nth-of-type(3) { animation-delay: .56s; }
.yak-v3-flow article.is-risk { border-color: var(--danger); background: rgba(92,24,43,.52); }
.yak-v3-flow article > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(84,234,212,.12); color: var(--yak); font-style: normal; }
.yak-v3-flow article.is-risk > b { background: var(--danger); color: #fff; }
.yak-v3-flow article strong { font-size: 12px; }
.yak-v3-flow article code { color: #86b0b3; font-size: 8px; }
.yak-v3-flow > i { color: var(--yak); font: 1000 18px/1 sans-serif; font-style: normal; }
.yak-v3-related-label { position: absolute; right: 9%; bottom: 6%; padding: 7px 11px; border-radius: 999px; background: rgba(84,234,212,.12); color: var(--yak); font: 900 8px/1 monospace; }

.yak-v3-desktop { position: absolute; inset: 5% 4% 8%; overflow: hidden; border-radius: 14px; background: radial-gradient(circle at 72% 22%,rgba(84,234,212,.16),transparent 28%),linear-gradient(145deg,#07151e,#020a10); box-shadow: inset 0 0 0 1px rgba(84,234,212,.35); }
.yak-v3-desktop-site { position: absolute; inset: 8% 8% 18%; overflow: hidden; border: 1px solid #2e6470; border-radius: 11px; background: #0d9c79; opacity: .78; }
.yak-v3-desktop-site header { height: 34px; display: flex; align-items: center; padding: 0 11px; background: #10272f; color: #a8c3c5; font: 800 8px/1 monospace; }
.yak-v3-desktop-site main { display: grid; gap: 10px; padding: 22px; }
.yak-v3-desktop-site main strong { font-size: 14px; }
.yak-v3-desktop-site main i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.43); }
.yak-v3-desktop-site main i:nth-of-type(2) { width: 74%; }
.yak-v3-desktop-site main i:nth-of-type(3) { width: 48%; }
.yak-v3-tray { position: absolute; z-index: 3; right: 5%; bottom: 11%; width: 54%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 13px; border: 1px solid rgba(84,234,212,.7); border-radius: 12px; background: rgba(5,28,37,.97); box-shadow: 0 18px 50px rgba(0,0,0,.52); animation: yak-v3-tray-in 2.3s cubic-bezier(.18,.9,.2,1) both; }
.yak-v3-tray > b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--yak); color: #06252b; font-size: 15px; }
.yak-v3-tray > div { display: grid; gap: 4px; }
.yak-v3-tray small { color: var(--yak); font: 900 7px/1 monospace; letter-spacing: .1em; }
.yak-v3-tray strong { font-size: 15px; }
.yak-v3-tray span { color: #9fc2c5; font-size: 8px; font-weight: 750; }
.yak-v3-dock { position: absolute; left: 50%; bottom: 3%; display: flex; gap: 8px; transform: translateX(-50%); padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(4,18,25,.84); }
.yak-v3-dock i { width: 14px; height: 14px; border-radius: 4px; background: #214c58; }
.yak-v3-dock i:nth-child(3) { background: var(--yak); }

.yak-v3-value-site { position: absolute; inset: 7% 8% 43%; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 12px; padding: 18px; border: 1px solid #2fbf9d; border-radius: 13px; background: linear-gradient(145deg,#0c8b70,#10ae87); box-sizing: border-box; animation: yak-v3-value-site 2.4s ease both; }
.yak-v3-value-site > strong { font-size: 16px; }
.yak-v3-value-site > span { color: #dffff6; font: 900 7px/1 monospace; }
.yak-v3-value-site > div { grid-column: 1 / -1; display: grid; gap: 7px; }
.yak-v3-value-site > div i { height: 6px; border-radius: 4px; background: rgba(255,255,255,.43); }
.yak-v3-value-site > div i:nth-child(2) { width: 76%; }
.yak-v3-value-site > div i:nth-child(3) { width: 49%; }
.yak-v3-value-steps { position: absolute; left: 8%; right: 8%; top: 62%; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.yak-v3-value-steps article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; padding: 9px; border: 1px solid #2e6470; border-radius: 9px; background: #092831; opacity: 0; animation: yak-v3-value-step 2.4s ease forwards; }
.yak-v3-value-steps article:nth-child(2) { animation-delay: .2s; }
.yak-v3-value-steps article:nth-child(3) { animation-delay: .4s; }
.yak-v3-value-steps b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(84,234,212,.13); color: var(--yak); font-size: 7px; }
.yak-v3-value-steps span { font-size: 7px; font-weight: 850; }
.yak-v3-value-steps i { color: #65e9ba; font-style: normal; }
.yak-v3-value-line { position: absolute; left: 50%; bottom: 5%; display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 8px; transform: translateX(-50%); white-space: nowrap; }
.yak-v3-value-line > b { grid-row: 1 / 3; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--yak); color: #06252b; font-size: 14px; }
.yak-v3-value-line > strong { font-size: 15px; }
.yak-v3-value-line > span { color: var(--yak); font: 900 8px/1 monospace; letter-spacing: .08em; }

@keyframes yak-v3-window-in { 0%{opacity:0;transform:translateY(16px) scale(.97)} 18%,100%{opacity:1;transform:none} }
@keyframes yak-v3-green { 0%,18%{background:#ff7a45} 48%,100%{background:#119b78;box-shadow:inset 0 0 40px rgba(84,234,212,.22)} }
@keyframes yak-v3-presence-in { 0%,47%{opacity:0;transform:translateY(10px)} 66%,100%{opacity:1;transform:none} }
@keyframes yak-v3-blink { 50%{opacity:.25} }
@keyframes yak-v3-hub-in { 0%{opacity:0;transform:scale(.92)} 22%,100%{opacity:1;transform:none} }
@keyframes yak-v3-node-in { 18%,100%{opacity:1;transform:none} }
@keyframes yak-v3-pulse-route { 0%{opacity:0;transform:translateX(0)} 25%{opacity:1} 100%{opacity:0;transform:translateX(145px)} }
@keyframes yak-v3-result-in { 18%,100%{opacity:1;transform:none} }
@keyframes yak-v3-result-fail { 0%,18%{opacity:0;transform:translateY(18px)} 48%{opacity:1;transform:none} 62%{transform:scale(1.04)} 76%,100%{opacity:1;transform:none} }
@keyframes yak-v3-compare-in { 18%,100%{opacity:1;transform:none} }
@keyframes yak-v3-arrow { 0%,35%{opacity:0;transform:translateX(-10px)} 55%,100%{opacity:1;transform:none} }
@keyframes yak-v3-flow-node { 18%,100%{opacity:1;transform:none} }
@keyframes yak-v3-tray-in { 0%,38%{opacity:0;transform:translateX(24px)} 58%,100%{opacity:1;transform:none} }
@keyframes yak-v3-value-site { 0%{opacity:0;transform:scale(.96)} 20%,100%{opacity:1;transform:none} }
@keyframes yak-v3-value-step { 15%,100%{opacity:1;transform:none} }

@media (max-width:600px) {
  .yak-v3-browser { inset: 5% 3% 14%; }
  .yak-v3-browser > header { height: 31px; padding: 0 9px; font-size: 6px; }
  .yak-v3-green-site { inset: 31px 0 0; }
  .yak-v3-green-site nav { padding: 16px 10px; font-size: 9px; }
  .yak-v3-green-site section { gap: 7px; padding: 18px 13px; }
  .yak-v3-green-site section > i { height: 5px; }
  .yak-v3-green-site button { right: 12px; bottom: 12px; padding: 6px 9px; font-size: 6px; }
  .yak-v3-presence { right: 5%; bottom: 5%; padding: 7px 9px; }
  .yak-v3-presence span { font-size: 7px; }
  .yak-v3-hub { inset: 7% 4% 18%; grid-template-columns: 37% 1fr; gap: 8px 20px; }
  .yak-v3-site-node { height: 72%; }
  .yak-v3-site-node strong { font-size: 10px; }
  .yak-v3-hub article { gap: 7px; padding: 10px; }
  .yak-v3-hub article b { width: 26px; height: 26px; font-size: 13px; }
  .yak-v3-hub article span { font-size: 10px; }
  .yak-v3-branch { left: 33%; width: 31%; box-shadow:0 -62px var(--yak),0 62px var(--yak); }
  .yak-v3-hub > em { left: 38%; }
  .yak-v3-caption { bottom: 5%; padding: 7px 10px; }
  .yak-v3-caption span { font-size: 7px; }
  .yak-v3-result-grid { inset: 12% 4% 27%; gap: 7px; }
  .yak-v3-result-grid article { gap: 8px; border-radius: 11px; }
  .yak-v3-result-grid article > b { width: 36px; height: 36px; font-size: 19px; }
  .yak-v3-result-grid article strong { font-size: 9px; }
  .yak-v3-result-grid article > i { width: 27px; height: 27px; font-size: 16px; }
  .yak-v3-result-label strong { font-size: 14px; }
  .yak-v3-compare-grid { inset: 8% 4% 12%; gap: 9px; }
  .yak-v3-compare-grid article { gap: 7px; }
  .yak-v3-compare-grid small { font-size: 7px; }
  .yak-v3-compare-grid article > div { width: 68px; height: 68px; border-radius: 14px; }
  .yak-v3-compare-grid article > div b { font-size: 34px; }
  .yak-v3-compare-grid article > div i { width: 27px; height: 27px; font-size: 16px; }
  .yak-v3-compare-grid article > strong { font-size: 12px; }
  .yak-v3-compare-grid article > span { font-size: 9px; }
  .yak-v3-flow { inset: 5% 8% 14%; }
  .yak-v3-flow article { gap: 8px; padding: 10px; }
  .yak-v3-flow article strong { font-size: 10px; }
  .yak-v3-flow article code { font-size: 6px; }
  .yak-v3-related-label { right: 6%; bottom: 5%; font-size: 7px; }
  .yak-v3-desktop { inset: 4% 3% 7%; }
  .yak-v3-desktop-site { inset: 6% 5% 18%; }
  .yak-v3-tray { right: 4%; bottom: 10%; width: 67%; gap: 8px; padding: 10px; }
  .yak-v3-tray > b { width: 31px; height: 31px; font-size: 12px; }
  .yak-v3-tray strong { font-size: 12px; }
  .yak-v3-tray span { font-size: 7px; }
  .yak-v3-value-site { inset: 5% 5% 45%; padding: 14px; }
  .yak-v3-value-site > strong { font-size: 12px; }
  .yak-v3-value-steps { left: 5%; right: 5%; top: 60%; gap: 5px; }
  .yak-v3-value-steps article { grid-template-columns: auto 1fr; gap: 5px; padding: 7px; }
  .yak-v3-value-steps article i { display: none; }
  .yak-v3-value-steps span { font-size: 6px; }
  .yak-v3-value-line { bottom: 4%; }
  .yak-v3-value-line > b { width: 34px; height: 34px; font-size: 12px; }
  .yak-v3-value-line > strong { font-size: 12px; }
  .yak-v3-value-line > span { font-size: 7px; }
}
