/* ============================================================
   IV Consulting · Foundation page v2 (experimental redesign)
   Layered ON TOP of landing.css. Everything is scoped under
   body.v2 so the original stage-1.html is never affected.
   Adds: bento hero, bento stat/deliverable grids, two-tier
   trust, SVG icons, a 2nd (cool) accent, scroll-reveal,
   a scroll-progress rail, and a roadmap "spotlight".
   ============================================================ */

/* ---- second accent (cool) for hierarchy + reveal token ---- */
body.v2 { --accent-cool: #8aa2c4; --accent-cool-tint: rgba(138,162,196,0.16); --rv-ease: cubic-bezier(.2,.7,.2,1); }
:root[data-theme="light"] body.v2 { --accent-cool: #3f5b86; --accent-cool-tint: rgba(63,91,134,0.10); }

/* ---- scroll-progress rail ---- */
.v2-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #a8cc3a);
  box-shadow: 0 0 12px var(--glow);
  z-index: 60; transition: width .08s linear;
}

/* ---- scroll reveal ---- */
body.v2 [data-rv] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--rv-ease), transform .6s var(--rv-ease);
  transition-delay: calc(var(--rv-i, 0) * 55ms);
  will-change: opacity, transform;
}
body.v2 [data-rv].rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.v2 [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================
   HERO — split bento (copy left, live workspace right)
   ===================================================== */
.v2-hero { padding: 1.5rem 0 3.5rem; text-align: left; }
.v2-hero .wrap { max-width: 1180px; }
.v2-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 920px) { .v2-hero-grid { grid-template-columns: 1fr; gap: 2.4rem; } }
.v2-hero .eyebrow { margin-bottom: 1.4rem; }
.v2-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  max-width: none; margin: 0; text-align: left;
}
.v2-hero .sub { margin: 1.4rem 0 0; text-align: left; max-width: 52ch; }
.v2-hero .cta-wrap { margin-top: 2rem; align-items: flex-start; }
.v2-hero .cta-note { text-align: left; max-width: 42ch; }
@media (max-width: 640px) { .v2-hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.4rem); } }

.v2-hero-visual { position: relative; padding: 8px 6px; }
@media (max-width: 920px) { .v2-hero-visual { padding: 0; width: 100%; max-width: 520px; margin: 0 auto; } }
.v2-frame {
  position: relative; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 36px 90px rgba(0,0,0,.5);
  transform: perspective(1500px) rotateY(-7deg) rotateX(2.5deg);
  transform-origin: 60% 50%;
}
:root[data-theme="light"] body.v2 .v2-frame { box-shadow: 0 34px 70px rgba(15,15,15,.18); }
@media (max-width: 920px) { .v2-frame { transform: none; } }

/* floating bento chips on the visual */
.v2-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .65rem .85rem;
  box-shadow: 0 16px 34px rgba(0,0,0,.4);
}
:root[data-theme="light"] body.v2 .v2-chip { box-shadow: 0 16px 30px rgba(15,15,15,.14); }
.v2-chip .ci {
  height: 30px; width: 30px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2);
}
.v2-chip .ci svg { width: 16px; height: 16px; }
.v2-chip .ct { line-height: 1.15; }
.v2-chip .ct b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: .95rem; }
.v2-chip .ct span { font-size: .72rem; color: var(--muted); }
.v2-chip.owned { left: -14px; bottom: 26px; animation: v2-bob 5s ease-in-out infinite; }
.v2-chip.metric { right: -10px; top: 22px; animation: v2-bob 6s ease-in-out infinite .6s; }
@keyframes v2-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .v2-chip { animation: none !important; } }
@media (max-width: 540px) { .v2-chip { display: none; } }

/* =====================================================
   BENTO STAT BAND
   ===================================================== */
.v2-bento-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr; gap: 1rem;
}
@media (max-width: 760px) { .v2-bento-stats { grid-template-columns: 1fr 1fr; } }
.v2-st {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  transition: transform .2s var(--rv-ease), border-color .2s ease;
}
.v2-st:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.v2-st .big {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.v2-st .cap { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.v2-st.cool .big { color: var(--accent-cool); }
.v2-st.hero-tile {
  grid-column: span 2; grid-row: span 2;
  background: var(--accent); color: var(--on-accent);
  border-color: color-mix(in srgb, var(--accent) 60%, #000);
  justify-content: flex-end; gap: .5rem;
}
@media (max-width: 760px) { .v2-st.hero-tile { grid-column: span 2; grid-row: span 1; } }
.v2-st.hero-tile .big { font-size: clamp(3rem, 7vw, 4.4rem); color: var(--on-accent); }
.v2-st.hero-tile .cap { color: color-mix(in srgb, var(--on-accent) 72%, transparent); font-size: 1rem; font-weight: 500; }
.v2-st.hero-tile .badge {
  align-self: flex-start; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: color-mix(in srgb, var(--on-accent) 12%, transparent);
  color: var(--on-accent); padding: .25rem .6rem; border-radius: 9999px; margin-bottom: auto;
}

/* =====================================================
   TWO-TIER TRUST  (named case logos + client marquee)
   ===================================================== */
.v2-feat-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.v2-feat-logos a {
  display: grid; place-items: center; height: 56px; padding: 0 1.5rem;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
  transition: transform .2s var(--rv-ease), border-color .2s ease;
}
.v2-feat-logos a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.v2-feat-logos img { height: 23px; width: auto; display: block; }
.v2-trust-sep {
  margin: 1.8rem auto 1.3rem; max-width: 280px;
  text-align: center; font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); position: relative;
}

/* =====================================================
   SVG ICON SWAPS (replace emoji)
   ===================================================== */
/* pain "x" chips */
body.v2 .pain li .x { font-size: 0; }
body.v2 .pain li .x svg { width: 12px; height: 12px; display: block; }
/* before / after marks → circular chips with svg */
body.v2 .ba-col li { color: var(--muted); align-items: flex-start; }
body.v2 .ba-col.after li { color: var(--fg); }
body.v2 .ba-col li .mk {
  flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 9999px; margin-top: 1px;
}
body.v2 .ba-col.before li .mk { background: color-mix(in srgb, #e0564a 16%, transparent); }
body.v2 .ba-col.after li .mk { background: color-mix(in srgb, var(--accent) 20%, transparent); }
body.v2 .ba-col li .mk svg { width: 12px; height: 12px; display: block; }
/* walk-list / reassure / deliverable ticks */
body.v2 .walk-list .tk { font-size: 0; }
body.v2 .walk-list .tk svg { width: 14px; height: 14px; display: block; }
body.v2 .reassure .ic { display: grid; place-items: center; color: var(--accent-2); }
body.v2 .reassure .ic svg { width: 22px; height: 22px; display: block; }

/* =====================================================
   BENTO DELIVERABLES
   ===================================================== */
.v2-bento-deliver { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
@media (max-width: 860px) { .v2-bento-deliver { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .v2-bento-deliver { grid-template-columns: 1fr; } }
.v2-dc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .85rem;
  transition: transform .2s var(--rv-ease), border-color .2s ease;
}
.v2-dc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.v2-dc .ic { height: 42px; width: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2); }
.v2-dc .ic svg { width: 20px; height: 20px; }
.v2-dc p { color: var(--fg); font-size: 1rem; line-height: 1.5; }
.v2-dc p b { color: var(--accent-2); white-space: nowrap; }
.v2-dc.feat {
  grid-column: span 2;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
@media (max-width: 540px) { .v2-dc.feat { grid-column: span 1; } }
.v2-dc.feat p { font-size: 1.12rem; }

/* =====================================================
   TESTIMONIALS — featured card stat
   ===================================================== */
body.v2 .tcard.feat { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
body.v2 .v2-tstat { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--accent-2); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
body.v2 .v2-tstat span { display: block; font-family: "DM Sans", sans-serif; font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .35rem; }

/* =====================================================
   ROADMAP SPOTLIGHT + card hover polish
   ===================================================== */
body.v2 section.v2-spotlight {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 9%, var(--ink)), var(--ink));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
body.v2 section.v2-spotlight .section-label { color: var(--accent-cool); }
body.v2 .gcard a { transition: transform .25s var(--rv-ease), border-color .2s ease; }
body.v2 .gcard a:hover { transform: translateY(-4px); }

/* "How it works" label uses the cool accent for variety */
body.v2 .v2-cool-label { color: var(--accent-cool); }

/* ---- integrations marquee ("tools we automate") ---- */
body.v2 .v2-intwall { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2.4rem; }
body.v2 .v2-introw { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
body.v2 .v2-inttrack { display: flex; gap: 0.8rem; width: max-content; animation: v2int-scroll 64s linear infinite; }
body.v2 .v2-introw.rev .v2-inttrack { animation-direction: reverse; animation-duration: 76s; }
body.v2 .v2-introw:hover .v2-inttrack { animation-play-state: paused; }
@keyframes v2int-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { body.v2 .v2-inttrack { animation: none; } body.v2 .v2-introw { overflow-x: auto; } }
body.v2 .v2-ipill {
  flex: none; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 1.05rem 0.42rem 0.45rem; border: 1px solid var(--line);
  background: var(--surface); border-radius: 9999px; font-weight: 600; font-size: 0.92rem;
  color: var(--fg); white-space: nowrap; transition: border-color .2s ease, transform .2s ease;
}
body.v2 .v2-ipill:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
body.v2 .v2-ipill .ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 8px; }
body.v2 .v2-ipill .ic img { max-width: 20px; max-height: 20px; width: auto; height: auto; object-fit: contain; display: block; }

/* ===== Step-2 router node (detailed automation flow) ===== */
body.v2 .mx-nd.rt { color: var(--accent-2); }
@keyframes mx-pulse2 { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== Step-3 Claude Cowork UI ===== */
body.v2 .mx-cw { position: absolute; top: 24px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; overflow: hidden; }
body.v2 .mx-cwtabs { display: flex; gap: 4px; }
body.v2 .mx-cwtab { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
body.v2 .mx-cwtab.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent-2); }
body.v2 .mx-cwtab img { height: 9px; width: auto; display: block; }
body.v2 .mx-cwtitle { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; color: var(--fg); }
body.v2 .mx-cwtitle .pill { font-size: 6.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 5px; padding: 1px 5px; }
body.v2 .mx-steps { display: flex; flex-direction: column; gap: 5px; margin-top: 1px; }
body.v2 .mx-step { display: flex; align-items: center; gap: 7px; font-size: 8px; color: var(--muted); }
body.v2 .mx-step .num { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.4px solid var(--line); display: grid; place-items: center; font-size: 6.5px; font-weight: 800; color: var(--muted); }
body.v2 .mx-step .num svg { width: 8px; height: 8px; }
body.v2 .mx-step.done { color: var(--fg); }
body.v2 .mx-step.done .num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.v2 .mx-step.done .t { text-decoration: line-through; opacity: .65; }
body.v2 .mx-step.now .num { border-color: var(--accent-2); color: var(--accent-2); animation: mx-pulse2 1.6s ease-in-out infinite; }
body.v2 .mx-step.now { color: var(--fg); }
body.v2 .mx-cwfoot { margin-top: auto; display: flex; gap: 5px; align-items: center; border-top: 1px solid var(--line); padding-top: 7px; }
body.v2 .mx-cwfoot .c { display: inline-flex; align-items: center; gap: 4px; font-size: 7px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
body.v2 .mx-cwfoot .c img { height: 9px; width: auto; display: block; }

/* ===== Step-4 SOP doc ===== */
body.v2 .mx-sop { position: absolute; top: 24px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; overflow: hidden; }
body.v2 .mx-sop .sop-k { font-size: 6.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
body.v2 .mx-sop .sop-h { font-size: 13px; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; color: var(--fg); line-height: 1.08; letter-spacing: -.01em; }
body.v2 .mx-sop .sop-uc { font-size: 8px; color: var(--muted); line-height: 1.4; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line)); padding-left: 7px; }
body.v2 .mx-sop .sop-steps { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
body.v2 .mx-sop .sop-step { display: flex; gap: 7px; align-items: flex-start; font-size: 8px; color: var(--fg); line-height: 1.3; }
body.v2 .mx-sop .sop-step .n { width: 14px; height: 14px; flex: none; border-radius: 4px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2); display: grid; place-items: center; font-size: 7px; font-weight: 800; margin-top: .5px; }
body.v2 .mx-sop .sop-meta { margin-top: auto; display: flex; gap: 10px; font-size: 7px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 7px; }
body.v2 .mx-sop .sop-meta b { color: var(--fg); font-weight: 700; }

/* ===== Step-1: lead slides from Discovery into Proposal ===== */
body.v2 .mx-card.lead { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
body.v2 .mx-card.slidein { animation: mx-slidein 5s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes mx-slidein { 0% { transform: translateX(-135%); opacity: 0; } 16% { opacity: 1; } 30%, 100% { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.v2 .mx-card.slidein { animation: none; } }

/* ===== Step-2: green packets running through the scenario ===== */
body.v2 .mx-flow .mx-run { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 1px color-mix(in srgb, var(--accent) 70%, transparent); transform: translate(-50%,-50%); z-index: 4; pointer-events: none; }
body.v2 .mx-flow .mx-run.a { animation: mx-run-wp 4.2s linear infinite; }
body.v2 .mx-flow .mx-run.b { animation: mx-run-ig 4.2s linear infinite 1.4s; }
body.v2 .mx-flow .mx-run.c { animation: mx-run-li 4.2s linear infinite 2.8s; }
@keyframes mx-run-wp { 0%{left:7%;top:50%;opacity:0} 6%{opacity:1} 18%{left:22%;top:50%} 34%{left:37%;top:50%} 50%{left:52%;top:50%} 68%{left:73%;top:22%} 88%{left:93%;top:50%} 95%{opacity:1} 100%{left:93%;top:50%;opacity:0} }
@keyframes mx-run-ig { 0%{left:7%;top:50%;opacity:0} 6%{opacity:1} 18%{left:22%;top:50%} 34%{left:37%;top:50%} 50%{left:52%;top:50%} 70%{left:78%;top:50%} 88%{left:93%;top:50%} 95%{opacity:1} 100%{left:93%;top:50%;opacity:0} }
@keyframes mx-run-li { 0%{left:7%;top:50%;opacity:0} 6%{opacity:1} 18%{left:22%;top:50%} 34%{left:37%;top:50%} 50%{left:52%;top:50%} 68%{left:73%;top:78%} 88%{left:93%;top:50%} 95%{opacity:1} 100%{left:93%;top:50%;opacity:0} }
@media (prefers-reduced-motion: reduce) { body.v2 .mx-flow .mx-run { animation: none; opacity: .9; } }

/* ===== Step-3: checklist completes 1 -> 5, then loops ===== */
body.v2 .mx-step .num svg { width: 8px; height: 8px; }
body.v2 .mx-steps .mx-step .t { color: var(--fg); }
body.v2 .mx-steps .mx-step:nth-child(1) .num { animation: mx-chk1 7s linear infinite; }
body.v2 .mx-steps .mx-step:nth-child(2) .num { animation: mx-chk2 7s linear infinite; }
body.v2 .mx-steps .mx-step:nth-child(3) .num { animation: mx-chk3 7s linear infinite; }
body.v2 .mx-steps .mx-step:nth-child(4) .num { animation: mx-chk4 7s linear infinite; }
body.v2 .mx-steps .mx-step:nth-child(5) .num { animation: mx-chk5 7s linear infinite; }
@keyframes mx-chk1 { 0%,7% { background:transparent; border-color:var(--line); color:transparent; } 11%,90% { background:var(--accent); border-color:var(--accent); color:var(--on-accent); } 96%,100% { background:transparent; border-color:var(--line); color:transparent; } }
@keyframes mx-chk2 { 0%,19% { background:transparent; border-color:var(--line); color:transparent; } 23%,90% { background:var(--accent); border-color:var(--accent); color:var(--on-accent); } 96%,100% { background:transparent; border-color:var(--line); color:transparent; } }
@keyframes mx-chk3 { 0%,31% { background:transparent; border-color:var(--line); color:transparent; } 35%,90% { background:var(--accent); border-color:var(--accent); color:var(--on-accent); } 96%,100% { background:transparent; border-color:var(--line); color:transparent; } }
@keyframes mx-chk4 { 0%,43% { background:transparent; border-color:var(--line); color:transparent; } 47%,90% { background:var(--accent); border-color:var(--accent); color:var(--on-accent); } 96%,100% { background:transparent; border-color:var(--line); color:transparent; } }
@keyframes mx-chk5 { 0%,55% { background:transparent; border-color:var(--line); color:transparent; } 59%,90% { background:var(--accent); border-color:var(--accent); color:var(--on-accent); } 96%,100% { background:transparent; border-color:var(--line); color:transparent; } }
@media (prefers-reduced-motion: reduce) { body.v2 .mx-steps .mx-step .num { animation: none !important; background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }

/* ===== Step-4: SOP with flowchart on the right ===== */
body.v2 .mx-sop { flex-direction: row; gap: 13px; align-items: stretch; }
body.v2 .mx-sop .sop-main { flex: 1.25; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
body.v2 .mx-sop .sop-flow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--line); padding-left: 11px; }
body.v2 .mx-sop .sop-fbox { width: 100%; text-align: center; font-size: 7px; font-weight: 700; color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, var(--surface)); border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px; }
body.v2 .mx-sop .sop-fbox.ai { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-2); }
body.v2 .mx-sop .sop-farrow { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 5px solid color-mix(in srgb, var(--fg) 38%, transparent); margin: 3px 0; }

/* ===== Hero: live operations cockpit ===== */
@property --oshrs { syntax: "<integer>"; inherits: false; initial-value: 12; }
body.v2 .mx-os { position: absolute; top: 24px; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; overflow: hidden; }
body.v2 .mx-oskpi { display: flex; gap: 6px; align-items: stretch; }
body.v2 .mx-osk { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: color-mix(in srgb, var(--fg) 3%, var(--surface)); }
body.v2 .mx-osk .k { font-size: 6.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
body.v2 .mx-osk .v { font-size: 13px; font-weight: 800; font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; color: var(--fg); line-height: 1.2; font-variant-numeric: tabular-nums; }
body.v2 .mx-osk.hi .v { color: var(--accent-2); }
body.v2 .mx-oscount { counter-reset: oh var(--oshrs); animation: mx-hrs 5s ease-in-out infinite alternate; }
body.v2 .mx-oscount::after { content: counter(oh); }
@keyframes mx-hrs { from { --oshrs: 11; } to { --oshrs: 13; } }
body.v2 .mx-osnight { flex: none; display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 7px; color: var(--muted); }
body.v2 .mx-osnight svg { width: 9px; height: 9px; color: var(--accent-2); }
body.v2 .mx-osbody { flex: 1; display: flex; gap: 8px; min-height: 0; }
body.v2 .mx-osagents { width: 41%; flex: none; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: color-mix(in srgb, var(--fg) 2.5%, var(--surface)); }
body.v2 .mx-osa-h, body.v2 .mx-osf-h { font-size: 6.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 4px; }
body.v2 .mx-osa { display: flex; align-items: center; gap: 6px; font-size: 8px; color: var(--fg); }
body.v2 .mx-osa .dot { width: 6px; height: 6px; border-radius: 50%; background: #6bd968; flex: none; }
body.v2 .mx-osa .dot.idle { background: #9aa3ad; }
body.v2 .mx-osa.run .dot { background: var(--accent-2); animation: mx-pulse2 1.4s ease-in-out infinite; }
body.v2 .mx-osa .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .mx-osa .ct { font-size: 6.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
body.v2 .mx-osfeed { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: color-mix(in srgb, var(--fg) 2.5%, var(--surface)); overflow: hidden; }
body.v2 .mx-osf-h .live { width: 5px; height: 5px; border-radius: 50%; background: #e0564a; animation: mx-pulse2 1.2s ease-in-out infinite; }
body.v2 .mx-osrow { display: flex; align-items: center; gap: 6px; font-size: 8px; color: var(--fg); opacity: 0; animation: mx-feedin 6s ease-in-out infinite; }
body.v2 .mx-osrow:nth-child(2) { animation-delay: -4.5s; }
body.v2 .mx-osrow:nth-child(3) { animation-delay: -3s; }
body.v2 .mx-osrow:nth-child(4) { animation-delay: -1.5s; }
body.v2 .mx-osrow:nth-child(5) { animation-delay: 0s; }
body.v2 .mx-osrow .ck { width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); display: grid; place-items: center; flex: none; }
body.v2 .mx-osrow .ck svg { width: 7px; height: 7px; }
body.v2 .mx-osrow .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .mx-osrow .tm { margin-left: auto; font-size: 6px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
@keyframes mx-feedin { 0% { opacity: 0; transform: translateY(5px); } 6% { opacity: 1; transform: none; } 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(5px); } }
body.v2 .mx-osstack { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; background: color-mix(in srgb, var(--fg) 2.5%, var(--surface)); }
body.v2 .mx-osstack .lbl { font-size: 6.5px; color: var(--muted); white-space: nowrap; margin-right: 2px; }
body.v2 .mx-osstack .chip { width: 17px; height: 17px; border-radius: 5px; background: #fff; display: grid; place-items: center; flex: none; }
body.v2 .mx-osstack .chip img { max-width: 12px; max-height: 12px; width: auto; height: auto; }
body.v2 .mx-osstack .arw { color: var(--muted); display: grid; place-items: center; }
body.v2 .mx-osstack .arw svg { width: 11px; height: 11px; }
body.v2 .mx-osstack .chip.claude { margin-left: auto; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); animation: mx-pulse2 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.v2 .mx-oscount, body.v2 .mx-osa.run .dot, body.v2 .mx-osf-h .live, body.v2 .mx-osrow, body.v2 .mx-osstack .chip.claude { animation: none; } body.v2 .mx-osrow { opacity: 1; transform: none; } }
