/* css/mk-studio.css */
/* ==========================================================================
   R70 · /features/studio (Content OS & Video Studio). Prefix: mkso-. Mobile first; light and dark via tokens
   (the page sets [data-theme] with mk-theme.js). Motion runs only while on screen ([data-art].is-live, toggled by
   mk-art-b.js) and never with prefers-reduced-motion: the final state is shown instead.
   ========================================================================== */
@layer components {
  .mkso-page { background: var(--canvas); color: var(--text); }
  .mkso { overflow-x: clip; }
  /* off screen (and before mk-art-b.js marks it live) a stage shows its designed still frame: no animation at all */
  .mkso [data-art]:not(.is-live) *, .mkso [data-art]:not(.is-live) { animation: none !important; }
  .mkso .kicker { color: var(--accent-text); }
  .mkso .mk-h2 { color: var(--ink); }
  .mkso-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
  .mkso-truth { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--assist-soft); color: var(--text); font-size: 14.5px; line-height: 1.5; max-width: 520px; }
  .mkso-truth svg { flex: none; width: 18px; height: 18px; color: var(--assist-text); margin-top: 2px; }

  /* ---- Hero -------------------------------------------------------------------------------------------------- */
  .mkso-hero { padding: 10px clamp(10px, 2vw, 20px) 0; }
  .mkso-hero-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(24px, 4vw, 40px); background: #06140F; color: #F4FBF7; padding: clamp(100px, 11vw, 140px) clamp(18px, 5vw, 64px) clamp(32px, 6vw, 72px); }
  .mkso-aurora { position: absolute; inset: 0; z-index: -1; }
  .mkso-aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: mkso-drift 16s ease-in-out infinite alternate; }
  .mkso-aurora i:nth-child(1) { background: radial-gradient(circle, #0BC284 0, transparent 60%); top: -30vmax; inset-inline-start: -18vmax; }
  .mkso-aurora i:nth-child(2) { background: radial-gradient(circle, #7C5CFF 0, transparent 62%); bottom: -34vmax; inset-inline-end: -20vmax; animation-delay: -5s; }
  .mkso-aurora i:nth-child(3) { background: radial-gradient(circle, #E5487F 0, transparent 60%); top: 20%; inset-inline-start: 40%; width: 34vmax; height: 34vmax; opacity: .3; animation-delay: -9s; }
  .mkso-hero-in { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; max-width: 1240px; margin: 0 auto; }
  .mkso-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-size: 13.5px; color: rgb(255 255 255 / .82); }
  .mkso-pill b { color: #fff; }
  .mkso-pill-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #C2F45B; color: #06140F; }
  .mkso-pill-ico svg { width: 15px; height: 15px; }
  .mkso-title { font-family: var(--font-display); font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); line-height: .98; letter-spacing: -0.05em; font-weight: 700; margin: 18px 0 16px; color: #fff; }
  .mkso-title em { display: block; font-family: var(--font-accent, var(--font-display)); font-style: italic; font-weight: 400; letter-spacing: -0.02em; background: linear-gradient(95deg, #C2F45B, #5FE6AE 40%, #C4B5FF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
  .mkso-lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); line-height: 1.6; color: rgb(255 255 255 / .76); max-width: 560px; }
  .mkso-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .mkso-cta, .mkso-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform var(--t-base, .2s) var(--ease-out), background var(--t-base, .2s); }
  .mkso-cta { background: #C2F45B; color: #06140F; }
  .mkso-cta:hover { transform: translateY(-2px); }
  .mkso-cta-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #06140F; color: #C2F45B; }
  .mkso-cta-ico svg { width: 16px; height: 16px; }
  .mkso-ghost { padding: 6px 20px; color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); }
  .mkso-ghost:hover { background: rgb(255 255 255 / .14); }
  .mkso-ghost svg { width: 16px; height: 16px; }
  .mkso-proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: rgb(255 255 255 / .7); }
  .mkso-proof li { display: inline-flex; align-items: center; gap: 7px; }
  .mkso-proof svg { width: 16px; height: 16px; color: #5FE6AE; }
  .mkso-hero-art { position: relative; padding: 18px 0 36px; }
  .mkso-window { margin: 0; border-radius: 18px; overflow: hidden; background: #0E1A15; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .8); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); animation: mkso-float 8s var(--ease-out) infinite alternate; }
  [dir="rtl"] .mkso-window { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
  .mkso-window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgb(255 255 255 / .05); font-size: 11.5px; color: rgb(255 255 255 / .6); }
  .mkso-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .2); }
  .mkso-window-bar b { margin-inline-start: 8px; font-weight: 600; }
  .mkso-window img { display: block; width: 100%; height: auto; }
  .mkso-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 14px; background: rgb(255 255 255 / .94); color: #0B0F0D; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); font-size: 12.5px; line-height: 1.2; animation: mkso-bob 5s ease-in-out infinite alternate; }
  .mkso-float svg { width: 18px; height: 18px; color: #6441F2; flex: none; }
  .mkso-float span { display: grid; }
  .mkso-float b { color: #0B0F0D; }
  .mkso-float small { color: #5A6660; font-size: 11.5px; }
  .mkso-float.f1 { top: 2px; inset-inline-start: 6%; }
  .mkso-float.f2 { bottom: 4px; inset-inline-start: 2%; animation-delay: -1.6s; }
  .mkso-float.f2 svg { color: #07A06C; }
  .mkso-float.f3 { bottom: 46px; inset-inline-end: -2%; animation-delay: -3s; }
  .mkso-float.f3 svg { color: #E5487F; }
  @media (min-width: 960px) {
    .mkso-hero-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .mkso-hero-art { padding: 24px 0 44px; }
  }
  @keyframes mkso-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); } }
  @keyframes mkso-float { from { translate: 0 0; } to { translate: 0 -10px; } }
  @keyframes mkso-bob { from { translate: 0 0; } to { translate: 0 -8px; } }

  /* ---- Product film ------------------------------------------------------------------------------------------ */
  .mkso-film { position: relative; border-radius: clamp(18px, 3vw, 28px); overflow: hidden; background: #06140F; box-shadow: var(--e3); aspect-ratio: 16 / 9; }
  .mkso-video { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mkso-film-btn { position: absolute; inset-inline-end: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(6 20 15 / .6); color: #fff; backdrop-filter: blur(8px); cursor: pointer; }
  .mkso-film-btn svg { width: 18px; height: 18px; }
  .mkso-film-btn .is-play, .mkso-film-btn.is-paused .is-pause { display: none; }
  .mkso-film-btn.is-paused .is-play { display: block; }
  .mkso-film-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

  /* ---- Split sections ---------------------------------------------------------------------------------------- */
  .mkso-split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
  @media (min-width: 960px) {
    .mkso-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .mkso-split.is-flip > .mkso-copy { order: 2; }
  }
  .mkso-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
  .mkso-points li { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 600; }
  .mkso-points span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
  .mkso-points svg { width: 17px; height: 17px; }
  .mkso-stage { position: relative; border-radius: 26px; padding: clamp(14px, 3vw, 22px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2); overflow: hidden; }
  .mkso-stage-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
  .mkso-stage-label svg { width: 16px; height: 16px; color: var(--accent-text); }

  /* ---- Timeline mock ----------------------------------------------------------------------------------------- */
  .mkso-tl-preview { position: relative; aspect-ratio: 16 / 8; border-radius: 16px; background: linear-gradient(135deg, #0B7A55, #0BC284 55%, #6441F2); overflow: hidden; display: grid; place-items: center; }
  .mkso-tl-badge { position: absolute; top: 10%; padding: 4px 10px; border-radius: 6px; background: #5FE6AE; color: #062A1E; font-weight: 800; font-size: clamp(11px, 1.6vw, 14px); }
  .mkso-tl-caps { position: absolute; bottom: 14%; inset-inline: 6%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 2.6vw, 24px); color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .35); }
  .mkso-tl-caps b { display: inline-block; animation: mkso-word 6s var(--ease-spring, ease-out) infinite; animation-delay: calc(var(--i) * .32s); }
  .mkso-tl-caps b:nth-child(3), .mkso-tl-caps b:nth-child(7) { color: #C2F45B; }
  .mkso-tl-time { position: absolute; top: 10px; inset-inline-end: 12px; font-family: var(--font-mono); font-size: 11px; color: rgb(255 255 255 / .8); }
  .mkso-tl-time b { color: #fff; }
  .mkso-tl-tracks { position: relative; margin-top: 12px; display: grid; gap: 6px; padding-top: 2px; }
  .mkso-tl-ruler { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-subtle); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
  .mkso-tl-row { display: flex; gap: 4px; height: 22px; align-items: stretch; }
  .mkso-tl-row.is-cap i { width: var(--w); border-radius: 6px; background: var(--violet-500, #7C5CFF); opacity: .25; animation: mkso-capon 6s infinite; animation-delay: calc(var(--i) * .7s); }
  .mkso-tl-row.is-clips { height: 46px; }
  .mkso-tl-row.is-clips i { position: relative; display: flex; align-items: flex-start; padding: 5px 7px; border-radius: 9px; border: 2px solid transparent; overflow: hidden; }
  .mkso-tl-row.is-clips b { font-size: 10.5px; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 5px; background: rgb(0 0 0 / .35); white-space: nowrap; }
  .mkso-tl-row.is-clips .c1 { flex: 0 0 26%; background: linear-gradient(90deg, #067C55, #0BC284); }
  .mkso-tl-row.is-clips .c2 { flex: 0 0 40%; background: linear-gradient(90deg, #0BC284, #25D695 60%, #067C55); border-color: #C2F45B; animation: mkso-trim 6s var(--ease-out) infinite; }
  .mkso-tl-row.is-clips .c3 { flex: 1 1 auto; background: linear-gradient(90deg, #E5487F, #A08BFF); }
  .mkso-tl-row.is-clips .c2::before, .mkso-tl-row.is-clips .c2::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: #fff; }
  .mkso-tl-row.is-clips .c2::before { inset-inline-start: 3px; }
  .mkso-tl-row.is-clips .c2::after { inset-inline-end: 3px; }
  .mkso-tl-row.is-audio { position: relative; height: 30px; border-radius: 8px; background: var(--info-soft, #E4EDFF); padding: 3px 6px; }
  .mkso-tl-wave { display: flex; align-items: center; gap: 2px; width: 100%; }
  .mkso-tl-wave i { flex: 1; height: var(--h); border-radius: 2px; background: var(--info, #3B6FE0); opacity: .75; transform-origin: center; animation: mkso-duck 6s ease-in-out infinite; }
  .mkso-tl-duck { position: absolute; inset-inline-start: 8px; top: 50%; translate: 0 -50%; display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 10.5px; font-weight: 700; box-shadow: var(--e1); animation: mkso-ducklabel 6s ease-in-out infinite; }
  .mkso-tl-duck svg { width: 12px; height: 12px; color: var(--info, #3B6FE0); }
  .mkso-tl-head { position: absolute; top: 0; bottom: -4px; inset-inline-start: 0; width: 2px; background: var(--ink); border-radius: 2px; animation: mkso-head 6s linear infinite; }
  .mkso-tl-head::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 12px; border-radius: 3px 3px 6px 6px; background: var(--ink); }
  @keyframes mkso-head { from { inset-inline-start: 0; } to { inset-inline-start: calc(100% - 2px); } }
  @keyframes mkso-word { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 6%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-4px); } }
  @keyframes mkso-capon { 0%, 8% { opacity: .25; } 14%, 70% { opacity: .9; } 85%, 100% { opacity: .25; } }
  @keyframes mkso-trim { 0%, 25% { flex-basis: 40%; } 45%, 85% { flex-basis: 28%; } 100% { flex-basis: 40%; } }
  @keyframes mkso-duck { 0%, 20% { transform: scaleY(1); } 30%, 70% { transform: scaleY(.35); } 80%, 100% { transform: scaleY(1); } }
  @keyframes mkso-ducklabel { 0%, 24% { opacity: 0; } 32%, 68% { opacity: 1; } 76%, 100% { opacity: 0; } }

  /* ---- Transcript edit --------------------------------------------------------------------------------------- */
  .mkso-tx-text { margin: 0; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.75; color: var(--ink); font-weight: 550; }
  .mkso-tx-w { transition: none; }
  .mkso-tx-w.is-cut { position: relative; color: var(--danger); border-radius: 5px; animation: mkso-cut 7s var(--ease-out) infinite; animation-delay: calc(var(--i) * .45s); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 55%; background-size: 0 2px; }
  @keyframes mkso-cut {
    0%, 8% { color: var(--text-muted); background-size: 0 2px; background-color: transparent; opacity: 1; }
    16% { color: var(--danger); background-size: 100% 2px; background-color: var(--danger-soft); opacity: 1; }
    40%, 82% { color: var(--danger); background-size: 100% 2px; background-color: var(--danger-soft); opacity: .45; }
    92%, 100% { color: var(--text-muted); background-size: 0 2px; background-color: transparent; opacity: 1; }
  }
  .mkso-tx-clip { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
  .mkso-tx-bar { flex: 1; height: 40px; border-radius: 10px; background: var(--surface-sunken); overflow: hidden; }
  .mkso-tx-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: repeating-linear-gradient(90deg, #0BC284 0 22%, #07A06C 22% 23%), #0BC284; animation: mkso-shrink 7s var(--ease-out) infinite; }
  .mkso-tx-len { position: relative; min-width: 46px; font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
  .mkso-tx-len b { display: block; }
  .mkso-tx-len .is-b { position: absolute; inset: 0; color: var(--accent-text); opacity: 0; animation: mkso-swap 7s infinite; }
  .mkso-tx-len .is-a { animation: mkso-swap 7s infinite reverse; }
  .mkso-tx-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
  .mkso-tx-note svg { width: 15px; height: 15px; }
  @keyframes mkso-shrink { 0%, 30% { width: 100%; } 46%, 84% { width: 82%; } 94%, 100% { width: 100%; } }
  @keyframes mkso-swap { 0%, 36% { opacity: 0; } 44%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }

  /* ---- Studio AI --------------------------------------------------------------------------------------------- */
  .mkso-ai { background: linear-gradient(160deg, var(--surface), var(--assist-soft)); }
  .mkso-ai-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
  .mkso-ai-head svg { width: 18px; height: 18px; color: var(--assist); }
  .mkso-ai-prompt { margin-top: 14px; min-height: 52px; padding: 14px 16px; border-radius: 16px; background: var(--surface-sunken); color: var(--ink); font-weight: 600; line-height: 1.4; }
  .mkso-ai-caret { display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -2px; background: var(--assist); animation: mkso-blink 1s steps(1) infinite; }
  .mkso-ai.is-run .mkso-ai-caret, .mkso-ai.is-done .mkso-ai-caret { opacity: 0; animation: none; }
  .mkso-ai-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
  .mkso-ai-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text); opacity: .35; }
  .mkso-ai-ico { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
  .mkso-ai-ico svg { width: 18px; height: 18px; color: var(--success); opacity: 0; }
  .mkso-ai-ico .is-spin { position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--assist); }
  .mkso-ai.is-run .mkso-ai-steps li { animation: mkso-step-in .3s var(--ease-out) both; animation-delay: calc(var(--i) * 1.05s); }
  .mkso-ai.is-run .mkso-ai-ico .is-spin { animation: mkso-spin .8s linear infinite, mkso-out .2s forwards; animation-delay: 0s, calc(var(--i) * 1.05s + .9s); }
  .mkso-ai.is-run .mkso-ai-ico svg { animation: mkso-in .25s var(--ease-out) forwards; animation-delay: calc(var(--i) * 1.05s + .9s); }
  .mkso-ai.is-done .mkso-ai-steps li { opacity: 1; animation: none; }
  .mkso-ai.is-done .mkso-ai-ico .is-spin { opacity: 0; animation: none; }
  .mkso-ai.is-done .mkso-ai-ico svg { opacity: 1; animation: none; }
  .mkso-ai-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--assist); font-size: 13.5px; color: var(--text-muted); opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s var(--ease-out); }
  .mkso-ai-done b { font-family: var(--font-mono); color: var(--ink); }
  .mkso-ai-done em { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; font-style: normal; font-weight: 700; color: var(--text); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
  .mkso-ai-done em svg { width: 14px; height: 14px; }
  .mkso-ai.is-done .mkso-ai-done { opacity: 1; translate: 0 0; }
  @keyframes mkso-blink { 50% { opacity: 0; } }
  @keyframes mkso-spin { to { transform: rotate(360deg); } }
  @keyframes mkso-step-in { from { opacity: .35; } to { opacity: 1; } }
  @keyframes mkso-in { to { opacity: 1; } }
  @keyframes mkso-out { to { opacity: 0; } }

  /* ---- Board + planner --------------------------------------------------------------------------------------- */
  .mkso-duo { display: grid; gap: 16px; }
  @media (min-width: 960px) { .mkso-duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
  .mkso-kb-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .mkso-kb-col { display: grid; align-content: start; gap: 6px; min-height: 190px; padding: 8px 6px; border-radius: 14px; background: var(--surface-sunken); }
  .mkso-kb-col > b { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mkso-kb-col > b i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
  .mkso-kb-col.tone-violet { --tc: #7C5CFF; } .mkso-kb-col.tone-blue { --tc: #3B6FE0; } .mkso-kb-col.tone-amber { --tc: #E8A317; } .mkso-kb-col.tone-green { --tc: #0BC284; }
  .mkso-kb-ghost { height: 52px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
  .mkso-kb-ghost.is-short { height: 34px; }
  .mkso-kb-card { position: absolute; top: calc(clamp(14px, 3vw, 22px) + 30px + 30px); inset-inline-start: calc(clamp(14px, 3vw, 22px) + 6px); width: calc((100% - 2 * clamp(14px, 3vw, 22px) - 18px) / 4 - 12px); min-height: 92px; display: grid; gap: 4px; align-content: start; padding: 8px; border-radius: 11px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 16px 30px -16px rgb(0 0 0 / .45); font-size: 11px; animation: mkso-move 9s var(--ease-out) infinite; }
  .mkso-kb-card small { color: var(--accent-text); font-weight: 700; font-size: 10px; }
  .mkso-kb-card b { color: var(--ink); line-height: 1.25; font-size: 11.5px; overflow-wrap: anywhere; hyphens: auto; }
  .mkso-kb-card { overflow: hidden; }
  @media (max-width: 520px) { .mkso-kb-card { padding: 6px; font-size: 10px; } .mkso-kb-card b { font-size: 10.5px; } .mkso-kb-card small { font-size: 9px; } .mkso-kb-col > b { font-size: 10px; } .mkso-tl-time { display: none; } }
  .mkso-kb-card > span { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .mkso-kb-card i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; color: var(--text-muted); font-size: 10px; }
  .mkso-kb-card i svg { width: 11px; height: 11px; }
  .mkso-kb-stamp { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 800; font-size: 9.5px; color: var(--success); opacity: 0; animation: mkso-stampin 9s infinite; }
  .mkso-kb-stamp svg { width: 10px; height: 10px; }
  /* one column = (track - 3 gaps) / 4 + gap; moves To do → In progress → Under review → Ready and back */
  @keyframes mkso-move {
    0%, 14% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(0) rotate(-3deg) scale(1.04); }
    28%, 38% { transform: translateX(calc(100% + 18px)) rotate(0); }
    46%, 58% { transform: translateX(calc(200% + 36px)) rotate(0); }
    66%, 92% { transform: translateX(calc(300% + 54px)) rotate(0); }
    100% { transform: translateX(0); }
  }
  [dir="rtl"] .mkso-kb-card { animation-name: mkso-move-rtl; }
  @keyframes mkso-move-rtl {
    0%, 14% { transform: translateX(0); } 28%, 38% { transform: translateX(calc(-100% - 18px)); } 46%, 58% { transform: translateX(calc(-200% - 36px)); } 66%, 92% { transform: translateX(calc(-300% - 54px)); } 100% { transform: translateX(0); }
  }
  @keyframes mkso-stampin { 0%, 60% { opacity: 0; } 68%, 92% { opacity: 1; } 100% { opacity: 0; } }

  .mkso-wk-grid { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .mkso-wk-day { display: grid; gap: 4px; }
  .mkso-wk-day > b { font-size: 11px; color: var(--text-muted); text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .mkso-wk-slot { height: 46px; border-radius: 8px; background: var(--surface-sunken); }
  .mkso-wk-chip { position: absolute; top: calc(19px + var(--s) * 50px); inset-inline-start: calc(var(--d) * (100% + 4px) / 7); width: calc((100% - 24px) / 7); height: 46px; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 8px; font-size: 9.5px; font-weight: 700; line-height: 1.15; color: var(--ink); overflow: hidden; background: var(--nc-soft); border-inline-start: 3px solid var(--nc); animation: mkso-fill 10s var(--ease-spring, ease-out) infinite; animation-delay: calc(var(--i) * .4s); }
  .mkso-wk-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--nc); flex: none; }
  .mkso-n-ig { --nc: #E5487F; --nc-soft: #FFE6F0; } .mkso-n-in { --nc: #0A66C2; --nc-soft: #E2EEFB; } .mkso-n-yt { --nc: #E53935; --nc-soft: #FDE7E7; } .mkso-n-fb { --nc: #1877F2; --nc-soft: #E4EDFF; } .mkso-n-x { --nc: #3A3F3C; --nc-soft: #ECEEEC; }
  :root[data-theme="dark"] .mkso-wk-chip { --nc-soft: color-mix(in srgb, var(--nc) 22%, var(--surface)); }
  @keyframes mkso-fill { 0% { opacity: 0; transform: scale(.6); } 5%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: scale(.9); } }

  /* ---- Repurpose fan-out ------------------------------------------------------------------------------------- */
  .mkso-rp { display: grid; gap: 22px; align-items: center; }
  .mkso-rp-src { display: grid; justify-items: start; gap: 6px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #062A1E, #067C55); color: #fff; }
  .mkso-rp-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .16); }
  .mkso-rp-play svg { width: 20px; height: 20px; }
  .mkso-rp-src b { color: #fff; }
  .mkso-rp-src small { color: rgb(255 255 255 / .7); }
  .mkso-rp-outs { display: grid; gap: 12px; }
  .mkso-rp-out { position: relative; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); animation: mkso-fan 8s var(--ease-out) infinite; animation-delay: calc(.4s + var(--i) * .5s); }
  .mkso-rp-out > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
  .mkso-rp-out > span:first-child svg { width: 16px; height: 16px; color: var(--accent-text); }
  .mkso-rp-out > i { display: block; height: 7px; border-radius: 6px; background: var(--surface-sunken); }
  .mkso-rp-out em { font-style: normal; font-size: 12px; color: var(--assist-text); font-weight: 700; }
  .mkso-rp-slides { display: flex; gap: 6px; }
  .mkso-rp-slides i { flex: 1; aspect-ratio: 4 / 5; border-radius: 8px; background: linear-gradient(160deg, var(--accent-soft-2), var(--assist-soft)); border: 1px solid var(--line); }
  .mkso-w90 { width: 90%; } .mkso-w80 { width: 80%; } .mkso-w70 { width: 70%; } .mkso-w60 { width: 60%; } .mkso-w50 { width: 50%; }
  /* connectors: vertical on phones, horizontal beside the source on wide screens */
  .mkso-rp-out::before { content: ""; position: absolute; inset-inline-start: 50%; bottom: 100%; width: 2px; height: 12px; background: var(--accent); transform-origin: bottom; }
  .mkso-rp-out:first-child::before { height: 22px; }
  @media (min-width: 600px) {
    .mkso-rp { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
    .mkso-rp-out::before, .mkso-rp-out:first-child::before { inset-inline-start: auto; inset-inline-end: 100%; bottom: auto; top: 50%; width: 40px; height: 2px; transform-origin: right; }
    [dir="rtl"] .mkso-rp-out::before { transform-origin: left; }
  }
  @keyframes mkso-fan { 0% { opacity: 0; transform: translateX(-14px) scale(.96); } 8%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

  /* ---- Spot-art tiles ---------------------------------------------------------------------------------------- */
  .mkso-tiles { display: grid; gap: 14px; }
  @media (min-width: 640px) { .mkso-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .mkso-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .mkso-tile { padding: 14px 14px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
  .mkso-tile h3 { display: flex; align-items: center; gap: 10px; margin: 16px 6px 6px; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.015em; }
  .mkso-tile p { margin: 0 6px; color: var(--text-muted); line-height: 1.55; font-size: 15px; }
  .mkso-tile-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
  .mkso-tile-ico svg { width: 16px; height: 16px; }
  .mkso-spot { position: relative; height: 150px; border-radius: 18px; background: var(--surface-sunken); overflow: hidden; display: grid; place-content: center; gap: 10px; padding: 16px; }
  .mkso-spot.is-voice { place-content: stretch; align-content: center; }
  .mkso-sl { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--text); }
  .mkso-sl i { height: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .mkso-sl em { display: block; height: 100%; width: var(--v); background: var(--grad-brand, var(--accent)); border-radius: inherit; animation: mkso-slide 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
  @keyframes mkso-slide { from { width: calc(var(--v) - 18%); } to { width: var(--v); } }
  .mkso-doc { display: grid; gap: 8px; width: 150px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .mkso-doc i { height: 7px; border-radius: 6px; background: var(--surface-sunken); }
  .mkso-stamp { position: absolute; inset-inline-end: 22%; bottom: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 2px solid var(--success); color: var(--success); font-weight: 800; font-size: 12px; background: var(--surface); rotate: -8deg; animation: mkso-stamp 4s var(--ease-spring, ease-out) infinite; }
  .mkso-stamp svg { width: 14px; height: 14px; }
  @keyframes mkso-stamp { 0%, 20% { opacity: 0; transform: scale(1.8); } 30%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  .mkso-net { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); }
  .mkso-net i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-sunken); }
  .mkso-net svg { width: 14px; height: 14px; }
  .mkso-net.is-on { color: var(--ink); border-color: var(--accent); animation: mkso-pulse 2.6s ease-in-out infinite; }
  .mkso-net.is-on i { background: var(--accent); color: #fff; }
  @keyframes mkso-pulse { 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
  .mkso-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
  .mkso-bars i { width: 22px; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--accent-soft-2)); transform-origin: bottom; animation: mkso-grow 4s var(--ease-out) infinite; animation-delay: calc(var(--i) * .12s); }
  @keyframes mkso-grow { 0% { transform: scaleY(.15); } 25%, 85% { transform: none; } 100% { transform: scaleY(.15); } }
  .mkso-spot.is-ideas { display: flex; align-items: center; justify-content: center; gap: 0; }
  .mkso-note { display: grid; gap: 6px; width: 84px; height: 84px; padding: 12px; margin-inline: -6px; border-radius: 10px; rotate: var(--r); box-shadow: var(--e1); align-content: start; animation: mkso-note 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
  .mkso-note i { height: 6px; border-radius: 4px; background: rgb(0 0 0 / .14); }
  .mkso-note.tone-violet { background: #E6DFFF; } .mkso-note.tone-lime { background: #E6FBB7; } .mkso-note.tone-amber { background: #FFE6B8; }
  @keyframes mkso-note { from { translate: 0 0; } to { translate: 0 -8px; } }
  .mkso-wave2 { display: flex; align-items: center; gap: 4px; height: 90px; }
  .mkso-wave2 i { width: 5px; height: var(--h); border-radius: 4px; background: var(--info, #3B6FE0); opacity: .8; animation: mkso-eq 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
  @keyframes mkso-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

  /* ---- Real screens ------------------------------------------------------------------------------------------ */
  .mkso-rail { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 640px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .mkso-rail:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 16px; }
  .mkso-rail > li { scroll-snap-align: start; }
  .mkso-rail > li:has(.is-phone) { width: min(62vw, 250px); }
  .mkso-fig { margin: 0; }
  .mkso-fig img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--e2); background: var(--surface); }
  .mkso-fig.is-phone img { border-radius: 26px; }
  .mkso-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); font-weight: 600; }
  /* light/dark screenshots follow the page theme (only the shown one loads) */
  .mkso-shot.is-dark { display: none; }
  :root[data-theme="dark"] .mkso-shot.is-dark { display: block; }
  :root[data-theme="dark"] .mkso-shot.is-light { display: none; }

  .mkso .mkso-final .mk-h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); }
  .mkso .mkso-final p { color: rgb(255 255 255 / .78); }
  .mkso-final { background: radial-gradient(120% 140% at 0% 0%, #0B7A55 0, transparent 50%), radial-gradient(120% 140% at 100% 100%, #6441F2 0, transparent 50%), #06140F; color: #fff; }

  /* staggered pieces hold their first keyframe during their delay (no flash of the still frame) */
  .mkso-tl-caps b, .mkso-tl-row.is-cap i, .mkso-wk-chip, .mkso-rp-out, .mkso-tx-w.is-cut, .mkso-bars i { animation-fill-mode: backwards; }

  /* ---- Reduced motion: final states, nothing moves ----------------------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mkso *, .mkso *::before, .mkso *::after { animation: none !important; transition: none !important; }
    .mkso-tl-caps b, .mkso-wk-chip, .mkso-rp-out, .mkso-kb-stamp, .mkso-tl-duck, .mkso-stamp { opacity: 1; }
    .mkso-tl-row.is-clips .c2 { flex-basis: 28%; }
    .mkso-tl-head { inset-inline-start: 46%; }
    .mkso-tl-wave i { transform: scaleY(.6); }
    .mkso-tx-w.is-cut { color: var(--danger); background-size: 100% 2px; background-color: var(--danger-soft); opacity: .55; }
    .mkso-tx-bar i { width: 82%; }
    .mkso-tx-len .is-a { opacity: 0; } .mkso-tx-len .is-b { opacity: 1; }
    .mkso-kb-card { transform: translateX(calc(300% + 54px)); }
    [dir="rtl"] .mkso-kb-card { transform: translateX(calc(-300% - 54px)); }
    .mkso-window { transform: none; }
  }
}
