/* Modern player designs — player/modern/{studio,guide,showcase}.html.
 *
 * Three candidates for the next player, sharing one stylesheet: the common
 * pieces first (page shell, picture box, Plyr skin, scrub-bar chapter ticks,
 * More menu, resource tiles, design switcher), then one section per design.
 * Theme colours arrive as --sv-* on :root (player/modern/_vars.html); each
 * design derives its own surfaces from them so a black brand, a grey one and
 * the house navy all read well.
 */

/* ---- shared ------------------------------------------------------------ */
.mp-body { font-family: var(--mp-font, 'Inter', ui-sans-serif, system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.mp-main { flex: 1 1 auto; }
.mp { font-family: var(--mp-font, 'Inter', ui-sans-serif, system-ui, sans-serif); }
.mp-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
@media (max-width: 767px) { .mp-wrap { padding-left: 14px; padding-right: 14px; } }
.mp *:focus-visible { outline: 2px solid var(--sv-accent); outline-offset: 2px; }
.mp button { font-family: inherit; }
.mp [hidden] { display: none !important; }

.mp-stage-box { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: var(--mp-r, 14px); }
.mp-stage-box video, .mp-stage-box > .plyr { width: 100%; height: 100%; }
.mp-stage-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Plyr skin. Thinner bar, softer gradient, brand accent everywhere. */
.mp .plyr {
  --plyr-color-main: var(--sv-accent);
  --plyr-video-control-color-hover: #fff;
  --plyr-video-control-background-hover: var(--sv-accent);
  --plyr-control-icon-size: 18px;
  --plyr-control-spacing: 12px;
  --plyr-control-radius: 8px;
  --plyr-range-track-height: 4px;
  --plyr-range-thumb-height: 14px;
  --plyr-video-controls-background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.72));
  --plyr-font-family: inherit;
  --plyr-font-size-base: 13px;
  --plyr-tooltip-radius: 6px;
  font-family: inherit;
}
.mp .plyr__control--overlaid { background: var(--sv-accent); color: var(--sv-text); padding: 22px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.mp .plyr__control--overlaid svg { width: 26px; height: 26px; }
.mp .plyr--video .plyr__controls { padding-top: 34px; }
.mp .plyr__captions { font-size: 16px; }
@media (min-width: 768px) { .mp .plyr__captions { font-size: 19px; } }

/* Chapter ticks on the scrub bar (player_markers.js). */
.plyr__progress { position: relative; }
.sv-marks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sv-mark { position: absolute; top: 50%; width: 3px; height: 11px; margin-left: -1.5px; transform: translateY(-50%); border-radius: 1px; background: #fff; opacity: .5; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transition: opacity .15s ease, height .15s ease, background .15s ease; }
.sv-mark.active { background: var(--sv-accent); opacity: 1; height: 14px; }
.sv-mark.hover { background: var(--sv-accent); opacity: 1; height: 18px; width: 5px; margin-left: -2.5px; }
.sv-chapter-label { position: absolute; bottom: 100%; margin-bottom: 40px; transform: translateX(-50%); z-index: 4; max-width: 80%; padding: 5px 9px; border-radius: 6px; background: rgba(12,14,20,.92); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.sv-chapter-label.show { opacity: 1; }

/* Buttons. */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; line-height: 1; border-radius: 999px; padding: 0 16px; height: 44px; white-space: nowrap; transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.mp-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mp-btn:active { transform: scale(.97); }
.mp-btn--play svg { width: 20px; height: 20px; }
.mp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%); }

/* The More menu (player/_menu.html + player_menu.js). Opens upward, over
   the bottom of the picture. */
.sv-menu { position: relative; }
.sv-menu-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0; font: inherit; font-weight: 600; font-size: 14px; }
.sv-menu-btn svg { width: 16px; height: 16px; }
.sv-menu-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 40; min-width: 220px; max-width: min(320px, 90vw); padding: 6px; border-radius: 12px; background: var(--mp-menu-bg, #fff); color: var(--mp-menu-fg, #14171c); box-shadow: 0 16px 40px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.sv-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; text-align: left; font: inherit; font-size: 14px; font-weight: 500; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: transparent; border: 0; cursor: pointer; }
.sv-menu-item svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: .7; }
.sv-menu-item span { overflow: hidden; text-overflow: ellipsis; }
.sv-menu-item:hover, .sv-menu-item:focus-visible { background: var(--mp-menu-hover, rgba(0,0,0,.06)); outline: none; }
.sv-menu-caret { transition: transform .15s ease; }
.sv-menu.open .sv-menu-caret { transform: rotate(180deg); }
.btn-3d .lbl-video { display: none; }
.btn-3d.active .lbl-3d { display: none; }
.btn-3d.active .lbl-video { display: inline; }

/* Resource tiles (player/modern/_resources.html). */
.mp-res { display: grid; gap: 10px; }
.mp-res__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--mp-tile-bg, #fff); border: 1px solid var(--mp-tile-line, #e6e8ec); color: inherit; text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.mp-res__item:hover { border-color: var(--sv-accent); transform: translateY(-1px); }
.mp-res__ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--mp-tile-ic, rgba(0,0,0,.05)); color: var(--mp-accent-text, var(--sv-main)); }
.mp-res__ic svg { width: 20px; height: 20px; }
.mp-res__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; text-overflow: ellipsis; }
.mp-res__k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mp-muted, #6b7280); }

/* Header + footer. */
.mp-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.mp-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; color: inherit; }
.mp-brand img { max-height: 44px; max-width: min(240px, 50vw); width: auto; object-fit: contain; object-position: left; }
.mp-brand__name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-nav { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.mp-nav a { display: inline-flex; align-items: center; gap: 4px; color: var(--mp-nav-fg, #4b5563); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s ease; }
.mp-nav a:hover { color: var(--mp-nav-fg-hover, #111); }
.mp-nav svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .mp-header__in { height: 64px; } .mp-brand img { max-height: 34px; } .mp-nav { gap: 14px; } .mp-nav a { font-size: 13px; } }
.mp-header--chip .mp-brand { background: #fff; border-radius: 12px; padding: 7px 14px; }
.mp-header--chip .mp-brand img { max-height: 32px; }
.mp-header--chip .mp-brand__name { color: #111; font-size: 17px; }
@media (max-width: 767px) { .mp-header--chip .mp-brand img { max-height: 26px; } }

.mp-footer { margin-top: auto; }
.mp-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 28px; font-size: 12.5px; color: var(--mp-muted, #6b7280); }
.mp-footer__by { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.mp-footer__by img { height: 16px; width: auto; opacity: .8; }

/* Design switcher, mockup pages only. */
.mp-switch { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(14,16,22,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 36px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); font: 500 13px/1 'Inter', system-ui, sans-serif; }
.mp-switch a { padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s ease, background .15s ease; }
.mp-switch a:hover { color: #fff; }
.mp-switch a.on { background: #fff; color: #111; font-weight: 600; }
.mp-switch__k { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45) !important; padding-left: 12px !important; }
.mp-switch__classic { border-left: 1px solid rgba(255,255,255,.12); border-radius: 0 !important; margin-left: 4px; }
@media (max-width: 480px) { .mp-switch a { padding: 9px 9px; font-size: 12px; } .mp-switch__k { display: none; } }

.mp-eyebrow { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.mp-sub { line-height: 1.55; }

/* =========================================================================
   STUDIO — dark, cinematic
   ========================================================================= */
.mp-body--studio {
  --mp-font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mp-bg: color-mix(in oklab, var(--sv-main) 26%, #090b10);
  --mp-panel: color-mix(in oklab, var(--sv-main) 34%, #10131a);
  --mp-line: rgba(255,255,255,.08);
  --mp-muted: rgba(255,255,255,.55);
  --mp-nav-fg: rgba(255,255,255,.65);
  --mp-nav-fg-hover: #fff;
  --mp-menu-bg: #161922; --mp-menu-fg: #fff; --mp-menu-hover: rgba(255,255,255,.1);
  --mp-tile-bg: var(--mp-panel); --mp-tile-line: var(--mp-line); --mp-tile-ic: rgba(255,255,255,.08);
  /* Accent as text on a dark surface: lifted toward white so a grey or very
     dark brand accent (Sorelle's #777) still reads against the panels. */
  --mp-accent-text: color-mix(in oklab, var(--sv-accent) 62%, #fff);
  background: var(--mp-bg); color: #fff;
}
.mp-body--studio .mp-header { border-bottom: 1px solid var(--mp-line); background: rgba(0,0,0,.15); }

.mp--studio .mp-stage { padding: 28px 0 8px; }
.mp-stage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) { .mp-stage__grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.mp-screen { position: relative; }
.mp-glow { position: absolute; left: -5%; top: -6%; width: 110%; height: 112%; border-radius: 40px; filter: blur(54px) saturate(1.6); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; z-index: 0; }
.mp-glow.is-on { opacity: .5; }
.mp-screen__frame { position: relative; z-index: 1; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07); }
.mp-screen__frame .mp-stage-box { --mp-r: 16px; }

.mp-deck { position: relative; z-index: 1; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--mp-panel); border: 1px solid var(--mp-line); }
.mp-deck__now { min-width: 0; }
.mp-deck__k { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mp-muted); font-weight: 600; }
.mp-deck__k b { color: var(--mp-accent-text); font-weight: 700; }
.mp-deck__label { display: block; font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.mp-deck__ctl { display: flex; align-items: center; gap: 6px; }
.mp-deck__ctl .mp-btn { width: 44px; height: 44px; padding: 0; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; }
.mp-deck__ctl .mp-btn:hover { background: rgba(255,255,255,.15); }
.mp-deck__ctl .mp-btn--play { width: 66px; height: 56px; margin: 0 4px; border-radius: 14px; background: var(--sv-accent); color: var(--sv-text); box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--sv-accent) 70%, transparent); }
.mp-deck__ctl .mp-btn--play:hover { filter: brightness(1.12); }
.mp-deck__ctl .mp-btn--play span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mp-deck__ctl .mp-btn--play svg { width: 24px; height: 24px; }
.mp-deck__right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.mp-time { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--mp-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-time b { color: #fff; font-weight: 500; }
.mp-deck__right .sv-menu-btn { height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; }
.mp-deck__right .sv-menu-btn:hover { background: rgba(255,255,255,.15); }
@media (max-width: 767px) {
  .mp-deck { grid-template-columns: 1fr; gap: 10px; padding: 12px; text-align: center; }
  .mp-deck__ctl, .mp-deck__right { justify-content: center; }
  .mp-deck__ctl .mp-btn { width: 40px; height: 40px; }
  .mp-deck__ctl .mp-btn--play { width: 60px; height: 50px; }
}

.mp-rail { display: flex; flex-direction: column; min-height: 0; background: var(--mp-panel); border: 1px solid var(--mp-line); border-radius: 16px; overflow: hidden; }
.mp-rail__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--mp-muted); border-bottom: 1px solid var(--mp-line); }
.mp-rail__count { background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px 9px; color: #fff; letter-spacing: 0; font-family: 'Geist Mono', monospace; }
.mp-rail__list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.mp-ch { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; align-items: center; width: 100%; padding: 11px 12px 13px; border: 0; border-radius: 10px; background: transparent; color: #fff; text-align: left; cursor: pointer; font: inherit; transition: background .15s ease, opacity .15s ease; }
.mp-ch:hover { background: rgba(255,255,255,.06); }
.mp-ch__num { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--mp-muted); }
.mp-ch__body { min-width: 0; }
.mp-ch__label { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-ch__time { display: block; font-size: 12px; color: var(--mp-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.mp-ch__check { opacity: 0; color: var(--mp-accent-text); transition: opacity .2s ease; }
.mp-ch__check svg { width: 16px; height: 16px; }
.mp-ch__bar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); opacity: 0; overflow: hidden; transition: opacity .2s ease; }
.mp-ch__bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: var(--sv-accent); transition: width .3s linear; }
.mp-ch.active { background: rgba(255,255,255,.09); box-shadow: inset 3px 0 0 var(--sv-accent); }
.mp-ch.active .mp-ch__num { color: var(--mp-accent-text); font-weight: 600; }
.mp-ch.active .mp-ch__label { font-weight: 600; }
.mp-ch.active .mp-ch__bar { opacity: 1; }
.mp-ch.done { opacity: .5; }
.mp-ch.done:hover { opacity: 1; }
.mp-ch.done .mp-ch__check { opacity: 1; }
@media (max-width: 1023px) {
  .mp-rail__list { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; }
  .mp-rail__list::-webkit-scrollbar { display: none; }
  .mp-ch { flex: 0 0 auto; width: 210px; scroll-snap-align: start; grid-template-columns: 26px minmax(0, 1fr); }
  .mp-ch__check { display: none; }
  .mp-ch.active { box-shadow: inset 0 -3px 0 var(--sv-accent); }
}

.mp--studio .mp-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 72px; }
@media (max-width: 1023px) { .mp--studio .mp-about { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 96px; } }
.mp--studio .mp-eyebrow { color: var(--mp-accent-text); }
.mp--studio h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 12px 0 0; color: #fff; }
.mp--studio .mp-sub { color: var(--mp-muted); font-size: 17px; margin-top: 14px; max-width: 60ch; }
.mp--studio .mp-res__h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--mp-muted); margin: 0 0 12px; }
.mp--studio .mp-res__item { color: #fff; }
.mp--studio .mp-res__item:hover { background: rgba(255,255,255,.06); }
.mp--studio .mp-res__k { color: var(--mp-muted); }
.mp-footer--dark { border-top: 1px solid var(--mp-line); }
.mp-footer--dark .mp-footer__in { color: var(--mp-muted); }

/* =========================================================================
   GUIDE — light, step-by-step manual
   ========================================================================= */
.mp-body--guide {
  --mp-font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mp-ink: #14171c;
  --mp-muted: #6b7280;
  --mp-line: #e5e7eb;
  --mp-soft: #f3f4f6;
  --mp-nav-fg: #4b5563; --mp-nav-fg-hover: #111;
  --mp-tile-bg: #fff; --mp-tile-line: var(--mp-line); --mp-tile-ic: color-mix(in srgb, var(--sv-main) 8%, #fff);
  background: #f7f7f8; color: var(--mp-ink);
}
.mp-body--guide .mp-header { background: #fff; border-bottom: 1px solid var(--mp-line); }

.mp--guide .mp-title { padding: 34px 0 22px; max-width: 920px; }
.mp--guide .mp-eyebrow { color: var(--mp-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mp--guide .mp-eyebrow b { color: var(--sv-main); font-weight: 600; }
.mp--guide h1 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 650; letter-spacing: -.028em; line-height: 1.08; margin: 12px 0 0; color: var(--mp-ink); }
.mp--guide .mp-sub { font-size: 18px; color: var(--mp-muted); margin-top: 10px; max-width: 70ch; }

.mp-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 22px; padding: 10px; box-shadow: 0 1px 2px rgba(20,23,28,.04), 0 28px 60px -28px rgba(20,23,28,.28); }
.mp-card .mp-stage-box { --mp-r: 14px; }

.mp-guide-deck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 8px 6px; }
.mp-arrow { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); cursor: pointer; display: grid; place-items: center; transition: background .15s ease, border-color .15s ease; }
.mp-arrow svg { width: 20px; height: 20px; }
.mp-arrow:hover { background: var(--mp-soft); border-color: #d1d5db; }
.mp-guide-now { min-width: 0; }
.mp-guide-now__k { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--mp-muted); font-weight: 600; }
.mp-guide-now__k b { color: var(--sv-main); font-weight: 700; }
.mp-guide-now__t { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 21px; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mp-guide-now__bar { height: 4px; border-radius: 4px; background: #eceef1; margin-top: 10px; overflow: hidden; }
.mp-guide-now__bar i { display: block; height: 100%; width: 0; background: var(--sv-accent); transition: width .3s linear; }
.mp-guide-ctl { display: flex; gap: 6px; align-items: center; }
.mp-guide-ctl .mp-btn { height: 46px; border-radius: 14px; background: var(--mp-soft); color: var(--mp-ink); padding: 0 14px; }
.mp-guide-ctl .mp-btn:hover { background: #e8eaee; }
.mp-guide-ctl .mp-btn--play { background: var(--sv-main); color: var(--sv-text); padding: 0 22px; min-width: 112px; }
.mp-guide-ctl .mp-btn--play:hover { background: var(--sv-hover); }
.mp-guide-ctl .sv-menu { margin-left: 4px; }
.mp-guide-deck .sv-menu-btn { height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--mp-line); color: var(--mp-ink); padding: 0 14px; }
.mp-guide-deck .sv-menu-btn:hover { background: var(--mp-soft); }
@media (max-width: 899px) {
  .mp-guide-deck { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mp-guide-ctl { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
  .mp-guide-now__t { font-size: 18px; }
}

.mp-stepper { position: relative; display: flex; overflow-x: auto; padding: 22px 6px 6px; margin-top: 10px; scrollbar-width: none; }
.mp-stepper::-webkit-scrollbar { display: none; }
.mp-step { position: relative; flex: 1 0 auto; min-width: 92px; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; padding: 0 4px; font: inherit; color: var(--mp-muted); }
.mp-step::before { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--mp-line); z-index: 0; }
.mp-step:last-child::before { display: none; }
.mp-step.done::before { background: var(--sv-accent); }
.mp-step__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #d1d5db; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--mp-muted); font-variant-numeric: tabular-nums; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mp-step__dot svg { width: 14px; height: 14px; display: none; }
.mp-step:hover .mp-step__dot { border-color: var(--sv-main); color: var(--sv-main); }
.mp-step.done .mp-step__dot { background: var(--sv-accent); border-color: var(--sv-accent); color: var(--sv-text); }
.mp-step.done .mp-step__dot i { display: none; }
.mp-step.done .mp-step__dot svg { display: block; }
.mp-step.active .mp-step__dot { background: var(--sv-main); border-color: var(--sv-main); color: var(--sv-text); transform: scale(1.18); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sv-main) 14%, transparent); }
.mp-step__label { font-size: 11.5px; line-height: 1.25; text-align: center; max-width: 120px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-step.active .mp-step__label { color: var(--mp-ink); font-weight: 600; }

.mp-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin: 26px 0 72px; align-items: start; }
@media (max-width: 1023px) { .mp-guide-grid { grid-template-columns: 1fr; margin-bottom: 96px; } }
.mp-panel { background: #fff; border: 1px solid var(--mp-line); border-radius: 18px; padding: 8px; }
.mp-panel__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 12px 8px; font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: 15px; }
.mp-panel__h small { font-size: 12px; color: var(--mp-muted); font-weight: 500; font-family: var(--mp-font); }
.mp-steplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
@media (max-width: 639px) { .mp-steplist { grid-template-columns: 1fr; } }
.mp-steprow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; color: var(--mp-ink); cursor: pointer; transition: background .15s ease; }
.mp-steprow:hover { background: var(--mp-soft); }
.mp-steprow__n { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--mp-muted); }
.mp-steprow__t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-steprow__d { font-size: 12px; color: var(--mp-muted); font-variant-numeric: tabular-nums; }
.mp-steprow.active { background: color-mix(in srgb, var(--sv-main) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sv-main) 24%, transparent); }
.mp-steprow.active .mp-steprow__n { color: var(--sv-main); font-weight: 600; }
.mp-steprow.active .mp-steprow__t { font-weight: 600; }
.mp-steprow.done { color: var(--mp-muted); }
.mp-steprow.done .mp-steprow__n { color: var(--sv-accent); }
.mp-side { display: grid; gap: 16px; align-content: start; }
.mp-side__h { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.mp-help { background: var(--sv-main); color: var(--sv-text); border-radius: 18px; padding: 22px; }
.mp-help h3 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.mp-help p { margin: 0; font-size: 14px; opacity: .8; line-height: 1.5; }
.mp-help a { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.14); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s ease; }
.mp-help a:hover { background: rgba(255,255,255,.24); }
.mp-help a svg { width: 16px; height: 16px; }

/* =========================================================================
   SHOWCASE — brand band, product-launch feel
   ========================================================================= */
.mp-body--showcase {
  --mp-font: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --mp-ink: #111318;
  --mp-muted: #697080;
  --mp-line: #e6e8ec;
  --mp-soft: #f1f2f5;
  --mp-nav-fg: color-mix(in srgb, var(--sv-text) 72%, transparent); --mp-nav-fg-hover: var(--sv-text);
  --mp-tile-bg: #fff; --mp-tile-line: var(--mp-line); --mp-tile-ic: color-mix(in srgb, var(--sv-main) 8%, #fff);
  background: #f4f5f7; color: var(--mp-ink);
}
.mp-band { position: relative; overflow: hidden; color: var(--sv-text); background: linear-gradient(135deg, color-mix(in oklab, var(--sv-main) 85%, #000) 0%, var(--sv-main) 55%, color-mix(in oklab, var(--sv-main) 78%, var(--sv-accent)) 100%); padding-bottom: 150px; }
.mp-band::before { content: ''; position: absolute; right: -8%; top: -50%; width: 55%; height: 190%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sv-accent) 32%, transparent), transparent 70%); pointer-events: none; }
.mp-band::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 88px); pointer-events: none; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent); }
.mp-band > * { position: relative; z-index: 1; }
.mp-band .mp-header { border-bottom: 1px solid color-mix(in srgb, var(--sv-text) 12%, transparent); }
.mp-band__in { padding-top: 46px; }
.mp-band .mp-eyebrow { color: var(--sv-text); opacity: .7; }
.mp-band h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 12px 0 0; max-width: 18ch; }
.mp-band .mp-sub { font-size: 18px; opacity: .78; margin-top: 14px; max-width: 62ch; }
@media (max-width: 767px) { .mp-band { padding-bottom: 96px; } .mp-band__in { padding-top: 28px; } }

.mp-card--overlap { position: relative; z-index: 2; margin-top: -120px; background: #fff; border-radius: 24px; padding: 10px; box-shadow: 0 40px 90px -36px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.06); }
.mp-card--overlap .mp-stage-box { --mp-r: 16px; }
@media (max-width: 767px) { .mp-card--overlap { margin-top: -72px; border-radius: 18px; padding: 6px; } .mp-card--overlap .mp-stage-box { --mp-r: 12px; } }
.mp-pills { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 14px 6px 6px; position: relative; }
.mp-pills .mp-btn { background: var(--mp-soft); color: var(--mp-ink); height: 46px; padding: 0 18px; font-weight: 700; }
.mp-pills .mp-btn:hover { background: #e4e6eb; }
.mp-pills .mp-btn--play { background: var(--sv-main); color: var(--sv-text); padding: 0 26px; min-width: 130px; height: 50px; font-size: 15px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--sv-main) 60%, transparent); }
.mp-pills .mp-btn--play:hover { background: var(--sv-hover); }
.mp-pills .sv-menu { margin-left: auto; }
.mp-pills .sv-menu-btn { height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--mp-line); color: var(--mp-ink); font-weight: 700; }
.mp-pills .sv-menu-btn:hover { background: var(--mp-soft); }
@media (max-width: 767px) {
  .mp-pills { padding: 10px 2px 4px; gap: 6px; }
  .mp-pills .mp-btn { padding: 0 12px; height: 42px; font-size: 13px; }
  .mp-pills .mp-btn--play { min-width: 104px; height: 46px; padding: 0 18px; }
  .mp-pills .mp-btn--skip span { display: none; }
  .mp-pills .sv-menu { margin-left: 0; }
  .mp-pills .sv-menu-btn { height: 42px; }
}

.mp-car-sec { margin-top: 30px; }
.mp-sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mp-sec-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.mp-sec-head__k { font-size: 13px; color: var(--mp-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-sec-head__k b { color: var(--sv-main); }
.mp-car-arrows { margin-left: auto; display: flex; gap: 6px; }
.mp-car-arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mp-line); background: #fff; color: var(--mp-ink); cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.mp-car-arrows button:hover { background: var(--mp-soft); }
.mp-car-arrows svg { width: 18px; height: 18px; }
.mp-carousel { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 18px; margin: 0 -6px; scrollbar-width: none; }
.mp-carousel::-webkit-scrollbar { display: none; }
.mp-cardch { position: relative; flex: 0 0 224px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 16px 20px; min-height: 132px; border-radius: 18px; background: #fff; border: 1px solid var(--mp-line); text-align: left; font: inherit; color: var(--mp-ink); cursor: pointer; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease; }
.mp-cardch:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.28); }
.mp-cardch__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.mp-cardch__num { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--sv-main); background: color-mix(in srgb, var(--sv-main) 9%, #fff); padding: 5px 9px; border-radius: 999px; }
.mp-cardch__done { width: 20px; height: 20px; border-radius: 50%; background: var(--sv-accent); color: var(--sv-text); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.mp-cardch__done svg { width: 12px; height: 12px; }
.mp-cardch__label { font-weight: 700; font-size: 15px; line-height: 1.28; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-cardch__meta { margin-top: auto; font-size: 12px; color: var(--mp-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-cardch__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #eef0f3; }
.mp-cardch__bar::after { content: ''; position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: var(--sv-accent); transition: width .3s linear; }
.mp-cardch.active { border-color: var(--sv-main); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-main) 16%, transparent), 0 18px 40px -18px rgba(0,0,0,.3); }
.mp-cardch.active .mp-cardch__num { background: var(--sv-main); color: var(--sv-text); }
.mp-cardch.done { opacity: .62; }
.mp-cardch.done:hover { opacity: 1; }
.mp-cardch.done .mp-cardch__done { opacity: 1; transform: scale(1); }
.mp-cardch.done .mp-cardch__bar::after { width: 100%; }
@media (max-width: 767px) { .mp-cardch { flex-basis: 176px; min-height: 118px; padding: 14px 14px 18px; } }

.mp-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 72px; }
@media (max-width: 1023px) { .mp-info-grid { grid-template-columns: 1fr 1fr; margin-bottom: 96px; } }
@media (max-width: 639px) { .mp-info-grid { grid-template-columns: 1fr; } }
.mp-info { background: #fff; border: 1px solid var(--mp-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.mp-info h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.mp-info h3 svg { width: 18px; height: 18px; color: var(--sv-main); }
.mp-info p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mp-muted); }
.mp-info--brand { background: var(--sv-main); color: var(--sv-text); border-color: transparent; }
.mp-info--brand h3 svg, .mp-info--brand p { color: inherit; opacity: .85; }
.mp-info--brand .mp-btn { margin-top: auto; align-self: flex-start; background: rgba(255,255,255,.16); color: inherit; margin-top: 18px; }
.mp-info--brand .mp-btn:hover { background: rgba(255,255,255,.28); }
.mp-info .mp-res__item { padding: 10px 12px; }
.mp-info .mp-res__item:hover { background: var(--mp-soft); }
.mp-qr { display: flex; align-items: center; gap: 16px; }
.mp-qr img { width: 104px; height: 104px; flex: 0 0 auto; border-radius: 14px; border: 1px solid var(--mp-line); background: #fff; padding: 4px; }
.mp-qr code { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--mp-ink); background: var(--mp-soft); padding: 3px 7px; border-radius: 6px; }

/* =========================================================================
   WORKBENCH — a guided work session, not a player
   ========================================================================= */
.mp-body--workbench {
  --mp-font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --wb-bg: #0c0f14;
  --wb-panel: #151a22;
  --wb-panel-2: #1c222c;
  --wb-line: rgba(255,255,255,.09);
  --wb-muted: rgba(255,255,255,.55);
  --wb-go: #22c55e;
  --wb-go-ink: #052e16;
  --mp-muted: var(--wb-muted); --mp-line: var(--wb-line);
  --mp-menu-bg: #1c222c; --mp-menu-fg: #fff; --mp-menu-hover: rgba(255,255,255,.1);
  --mp-tile-bg: var(--wb-panel); --mp-tile-line: var(--wb-line); --mp-tile-ic: rgba(255,255,255,.08);
  --mp-accent-text: color-mix(in oklab, var(--sv-accent) 62%, #fff);
  background: var(--wb-bg); color: #fff;
}
.mp--workbench { padding-bottom: 32px; }
.mp--workbench .mp-res__item { color: #fff; }

.wb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--wb-line); }
.wb-top__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wb-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 6px 12px; flex: 0 0 auto; text-decoration: none; }
.wb-chip img { max-height: 26px; max-width: 150px; width: auto; object-fit: contain; }
.wb-chip--text { color: #111; font-weight: 700; font-size: 15px; }
.wb-top__title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.85); }
.wb-top__status { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.wb-top__link { color: var(--wb-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.wb-top__link:hover { color: #fff; }
.wb-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; }
.wb-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--wb-go); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wb-go) 25%, transparent); }
.wb-pill--voice i { background: #f43f5e; box-shadow: 0 0 0 3px rgba(244,63,94,.25); animation: wb-blink 1.2s ease-in-out infinite; }
@keyframes wb-blink { 50% { opacity: .35; } }
@media (max-width: 767px) { .wb-top { padding: 10px 14px; } .wb-top__title { display: none; } .wb-pill span { display: none; } .wb-pill { padding: 6px 8px; } }

.wb-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 20px 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--sv-accent) 18%, var(--wb-panel)); border: 1px solid color-mix(in srgb, var(--sv-accent) 40%, transparent); font-size: 15px; }
.wb-resume > span { flex: 1 1 auto; }

.wb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 20px 0; max-width: 1560px; margin: 0 auto; }
@media (min-width: 1024px) { .wb-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
@media (max-width: 767px) { .wb-grid { padding: 12px 12px 0; gap: 12px; } }

.wb-frame { position: relative; border-radius: 18px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07); }
.wb-frame .mp-stage-box { --mp-r: 18px; }
.wb-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6,8,12,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 18px; }
.wb-overlay__card { text-align: center; max-width: 560px; }
.wb-overlay__k { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--mp-accent-text); }
.wb-overlay__t { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.wb-overlay__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.wb-overlay--finish .wb-overlay__k { color: var(--wb-go); }
@media (max-width: 767px) { .wb-overlay { padding: 12px; } .wb-overlay__btns { margin-top: 14px; } .wb-overlay .wb-btn { height: 44px; font-size: 14px; padding: 0 16px; } }

.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: rgba(255,255,255,.1); text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .12s ease, filter .15s ease; -webkit-tap-highlight-color: transparent; }
.wb-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.wb-btn:hover { background: rgba(255,255,255,.18); }
.wb-btn:active { transform: scale(.97); }
.wb-btn--ghost { background: rgba(255,255,255,.08); border: 1px solid var(--wb-line); }
.wb-btn--go { background: var(--wb-go); color: var(--wb-go-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--wb-go) 70%, transparent); }
.wb-btn--go:hover { background: #34d46c; filter: none; }
.wb-btn--big { height: 68px; font-size: 19px; width: 100%; border-radius: 18px; }
.wb-btn--big svg { width: 24px; height: 24px; }
.wb-btn--small { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 10px; background: var(--sv-accent); color: var(--sv-text); }
.wb-btn--small.wb-btn--ghost { background: transparent; color: #fff; }

.wb-transport { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wb-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 48px; height: 48px; border-radius: 13px; border: 0; background: var(--wb-panel); color: #fff; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; transition: background .15s ease; }
.wb-tbtn:hover { background: var(--wb-panel-2); }
.wb-tbtn svg { width: 20px; height: 20px; }
.wb-tbtn--play { width: 64px; background: var(--sv-accent); color: var(--sv-text); }
.wb-tbtn--play:hover { filter: brightness(1.12); background: var(--sv-accent); }
.wb-tbtn--play span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wb-tbtn--play svg { width: 24px; height: 24px; }
.wb-tbtn--menu { width: auto; padding: 0 16px; }
.wb-transport__time { margin-left: auto; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--wb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-transport__time b { color: #fff; font-weight: 500; }
.wb-transport .sv-menu { margin-left: 0; }
@media (max-width: 767px) { .wb-transport__time { width: 100%; margin-left: 0; text-align: center; font-size: 12px; } }

.wb-modes { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .wb-modes { grid-template-columns: 1fr 1fr; } }
.wb-mode { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--wb-panel); border: 1px solid var(--wb-line); cursor: pointer; color: #fff; text-align: left; font: inherit; }
.wb-mode > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wb-mode b { font-size: 14.5px; font-weight: 600; }
.wb-mode small { font-size: 12.5px; color: var(--wb-muted); line-height: 1.35; }
.wb-mode input { position: absolute; opacity: 0; width: 0; height: 0; }
.wb-switch { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .2s ease; }
.wb-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.wb-mode input:checked + .wb-switch { background: var(--wb-go); }
.wb-mode input:checked + .wb-switch::after { transform: translateX(18px); }
.wb-mode input:focus-visible + .wb-switch { outline: 2px solid var(--sv-accent); outline-offset: 2px; }
.wb-mic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s ease, box-shadow .2s ease; }
.wb-mic svg { width: 20px; height: 20px; }
.wb-mode--btn.is-on { border-color: rgba(244,63,94,.5); }
.wb-mode--btn.is-on .wb-mic { background: #f43f5e; box-shadow: 0 0 0 6px rgba(244,63,94,.2); }
.wb-mode--note { cursor: default; opacity: .7; }

.wb-side { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1024px) { .wb-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; padding-right: 2px; } }
.wb-now { background: var(--wb-panel); border: 1px solid var(--wb-line); border-radius: 22px; padding: 22px; text-align: center; }
.wb-ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.wb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wb-ring__track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 8; }
.wb-ring__fill { fill: none; stroke: var(--wb-go); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * (1 - var(--done, 0))); transition: stroke-dashoffset .5s ease; }
.wb-ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.wb-ring__num small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-muted); font-weight: 600; }
.wb-ring__num b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.wb-now__label { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 16px; }
.wb-now__bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); margin: 14px 0 18px; overflow: hidden; }
.wb-now__bar i { display: block; height: 100%; width: 0; background: var(--sv-accent); transition: width .3s linear; }
.wb-now__btns { display: grid; gap: 10px; }
.wb-now__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wb-now__row .wb-btn { padding: 0 10px; font-size: 14px; height: 46px; }

.wb-list__h { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 6px 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--wb-muted); }
.wb-list__h b { color: var(--wb-go); }
.wb-list { display: flex; flex-direction: column; gap: 4px; }
.wb-row { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; background: var(--wb-panel); color: #fff; text-align: left; font: inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.wb-row:hover { background: var(--wb-panel-2); }
.wb-row__box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; color: var(--wb-go-ink); transition: background .2s ease, border-color .2s ease; }
.wb-row__box svg { width: 13px; height: 13px; opacity: 0; }
.wb-row.is-done .wb-row__box { background: var(--wb-go); border-color: var(--wb-go); }
.wb-row.is-done .wb-row__box svg { opacity: 1; }
.wb-row.is-done .wb-row__t { color: var(--wb-muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.wb-row__n { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--wb-muted); }
.wb-row__t { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-row__d { font-size: 12px; color: var(--wb-muted); font-variant-numeric: tabular-nums; }
.wb-row.active { border-color: color-mix(in srgb, var(--sv-accent) 60%, transparent); background: color-mix(in srgb, var(--sv-accent) 14%, var(--wb-panel)); }
.wb-row.active .wb-row__t { font-weight: 700; }
.wb-row.active .wb-row__n { color: var(--mp-accent-text); }

/* Phone: the one action that matters is pinned under the thumb. The side
   panel's own big button hides so there is exactly one. */
.wb-dock { display: none; }
@media (max-width: 1023px) {
  .wb-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12,15,20,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--wb-line); }
  .wb-dock .wb-btn--ghost { width: 60px; padding: 0; height: 60px; border-radius: 16px; flex: 0 0 auto; }
  .wb-dock .wb-btn--big { height: 60px; font-size: 17px; }
  .wb-now__btns > .wb-btn--big { display: none; }
  .mp--workbench { padding-bottom: 150px; }
  .mp-body--workbench .mp-switch { bottom: 92px; }
  .wb-ring { width: 108px; height: 108px; }
  .wb-ring__num b { font-size: 36px; }
  .wb-now { padding: 18px; }
  .wb-now__label { font-size: 20px; }
}

/* =========================================================================
   FOCUS — one step at a time, nothing else on the screen
   ========================================================================= */
.mp-body--focus {
  --mp-font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fc-ink: #111318;
  --fc-muted: #6b7280;
  --fc-line: #e6e8ec;
  --fc-soft: #f3f4f6;
  --fc-ok: #16a34a;
  --mp-muted: var(--fc-muted); --mp-line: var(--fc-line);
  --mp-tile-bg: #fff; --mp-tile-line: var(--fc-line); --mp-tile-ic: var(--fc-soft);
  --mp-accent-text: var(--fc-ink);
  background: #fff; color: var(--fc-ink);
}
.mp--focus { padding-bottom: 40px; }

.fc-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 72px; padding: 0 28px; max-width: 1280px; margin: 0 auto; }
.fc-brand { display: inline-flex; align-items: center; justify-self: start; min-width: 0; text-decoration: none; color: inherit; }
.fc-brand img { max-height: 36px; max-width: min(200px, 44vw); width: auto; object-fit: contain; object-position: left; }
.fc-brand__name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.fc-top__title { font-size: 14px; font-weight: 500; color: var(--fc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; min-width: 0; }
.fc-top__nav { display: flex; justify-self: end; gap: 20px; }
.fc-top__nav a { color: var(--fc-muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fc-top__nav a:hover { color: var(--fc-ink); }
@media (max-width: 767px) { .fc-top { grid-template-columns: 1fr auto; height: 60px; padding: 0 16px; } .fc-top__title { display: none; } .fc-brand img { max-height: 30px; } .fc-top__nav { gap: 14px; } .fc-top__nav a { font-size: 13px; } }

/* The track: one segment per step, story-style. Done ones are solid, the
   active one fills as the step plays, the rest are faint. */
.fc-track { display: flex; gap: 4px; padding: 0 28px; max-width: 1280px; margin: 0 auto 22px; }
.fc-seg { position: relative; flex: 1 1 0; min-width: 0; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.fc-seg::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--fc-line); transition: background .2s ease; }
.fc-seg i { position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 2px; background: var(--sv-main); opacity: 0; transition: width .3s linear; }
.fc-seg.active i { opacity: 1; }
.fc-seg.done::before, .fc-seg.is-done::before { background: var(--sv-main); }
.fc-seg:hover::before { background: color-mix(in srgb, var(--sv-main) 35%, var(--fc-line)); }
.fc-seg.done:hover::before { background: var(--sv-hover); }
@media (max-width: 767px) { .fc-track { padding: 0 16px; gap: 3px; margin-bottom: 14px; } .fc-seg::before, .fc-seg i { height: 3px; } }

.fc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 40px; padding: 0 28px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 1024px) { .fc-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
@media (max-width: 767px) { .fc-main { padding: 0 16px; gap: 22px; } }

.fc-frame { position: relative; border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(17,19,24,.35), 0 0 0 1px rgba(17,19,24,.06); }
.fc-frame .mp-stage-box { --mp-r: 16px; }
.fc-wait { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fc-ink); }
.fc-wait__tap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 auto; width: 100%; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; justify-content: center; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
.fc-wait__tap:hover .fc-wait__check { transform: scale(1.06); }
.fc-wait__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--fc-ok); color: #fff; margin-bottom: 8px; box-shadow: 0 14px 34px -12px rgba(22,163,74,.7); transition: transform .2s ease; animation: fc-pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.fc-wait__check svg { width: 30px; height: 30px; }
@keyframes fc-pop { from { transform: scale(.6); opacity: 0; } }
.fc-wait__k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--fc-muted); }
.fc-wait__t { font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.fc-wait__again { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-bottom: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--fc-line); background: #fff; color: var(--fc-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.fc-wait__again svg { width: 18px; height: 18px; }
.fc-wait__again:hover { background: var(--fc-soft); }
.fc-wait__end { display: flex; gap: 8px; flex: 0 0 auto; margin-bottom: 8px; }
.fc-wait--end .fc-wait__tap { cursor: default; }
@media (max-width: 767px) { .fc-wait { padding: 12px; gap: 8px; } .fc-wait__check { width: 48px; height: 48px; } .fc-wait__check svg { width: 22px; height: 22px; } .fc-wait__again { padding: 8px 12px; font-size: 13px; } }

.fc-now { margin-top: 26px; }
.fc-now__k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 13px; color: var(--fc-muted); font-weight: 500; }
.fc-now__k b { color: var(--fc-ink); font-weight: 700; }
.fc-now__time { font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.fc-now__time b { font-weight: 500; }
.fc-now__t { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin: 8px 0 0; }

.fc-actions { margin-top: 22px; display: grid; gap: 14px; }
.fc-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--sv-text); background: var(--sv-main); justify-self: start; min-width: 260px; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--sv-main) 70%, transparent); transition: background .15s ease, transform .12s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.fc-go svg { width: 20px; height: 20px; }
.fc-go:hover { background: var(--sv-hover); }
.fc-go:active { transform: scale(.98); }
.fc-waiting .fc-go { animation: fc-nudge 1.6s ease-in-out infinite; }
@keyframes fc-nudge { 50% { box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--sv-main) 90%, transparent), 0 0 0 6px color-mix(in srgb, var(--sv-main) 14%, transparent); } }
.fc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-row__gap { width: 8px; }
.fc-ctl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fc-line); background: #fff; color: var(--fc-ink); cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; transition: background .15s ease, border-color .15s ease; }
.fc-ctl svg { width: 18px; height: 18px; }
.fc-ctl:hover { background: var(--fc-soft); }
.fc-ctl.btn-play { padding: 0 16px; }
.fc-ctl--menu.sv-menu-btn { height: 42px; }
.fc-link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 0; background: none; color: var(--fc-muted); cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.fc-link svg { width: 16px; height: 16px; }
.fc-link:hover { color: var(--fc-ink); background: var(--fc-soft); }
.fc-pace { margin: 4px 0 0; font-size: 13px; color: var(--fc-muted); line-height: 1.5; }
.fc-pace__sep { margin: 0 6px; }
.fc-textlink { border: 0; background: none; padding: 0; font: inherit; color: var(--fc-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fc-line); text-underline-offset: 3px; cursor: pointer; }
.fc-textlink:hover { text-decoration-color: currentColor; }

.fc-side { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) { .fc-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1d5db transparent; padding-right: 4px; } }
.fc-list__h { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--fc-muted); padding: 0 0 8px; border-bottom: 1px solid var(--fc-line); }
.fc-list__h b { color: var(--fc-ok); }
.fc-side .fc-list__h + .fc-list, .fc-side .fc-list__h + .mp-res { margin-top: -14px; }
.fc-list { list-style: none; margin: 0; padding: 0; }
.fc-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 6px 11px 2px; border: 0; border-bottom: 1px solid var(--fc-line); background: none; color: var(--fc-ink); text-align: left; font: inherit; cursor: pointer; transition: background .15s ease; }
.fc-step:hover { background: var(--fc-soft); }
.fc-step__n { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d1d5db; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--fc-muted); font-variant-numeric: tabular-nums; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.fc-step__n svg { position: absolute; width: 13px; height: 13px; opacity: 0; color: #fff; }
.fc-step__t { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-step__d { font-size: 12px; color: var(--fc-muted); font-variant-numeric: tabular-nums; }
.fc-step.is-done .fc-step__n { background: var(--fc-ok); border-color: var(--fc-ok); }
.fc-step.is-done .fc-step__n i { display: none; }
.fc-step.is-done .fc-step__n svg { opacity: 1; }
.fc-step.is-done .fc-step__t { color: var(--fc-muted); }
.fc-step.active .fc-step__n { border-color: var(--sv-main); color: var(--sv-main); border-width: 2px; }
.fc-step.active.is-done .fc-step__n { background: var(--fc-ok); border-color: var(--fc-ok); }
.fc-step.active .fc-step__t { font-weight: 700; }
.fc-step.active .fc-step__d { color: var(--fc-ink); }

/* Phone: the one action pinned under the thumb; the inline one hides. */
.fc-dock { display: none; }
@media (max-width: 1023px) {
  .fc-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--fc-line); }
  .fc-dock .fc-go { width: 100%; min-width: 0; height: 56px; }
  .fc-actions > .fc-go { display: none; }
  .mp--focus { padding-bottom: 130px; }
  .mp-body--focus .mp-switch { bottom: 88px; }
  .fc-now { margin-top: 18px; }
  .fc-actions { margin-top: 16px; }
}

/* =========================================================================
   EMBED MODE — shared by the designs built for customers' iframes
   ========================================================================= */
.mp-body--embed { background: transparent !important; }
.mp-body--embed .mp-main { display: block; }

/* =========================================================================
   PANEL — a self-contained card, after a colleague's gallery-player demo
   ========================================================================= */
.mp-body--panel {
  --mp-font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --pn-ink: #192432;
  --pn-muted: #697585;
  --pn-line: #dce3eb;
  --pn-paper: #f5f7fa;
  --pn-sky: color-mix(in srgb, var(--sv-main) 8%, #fff);
  --pn-dark: color-mix(in oklab, var(--sv-main) 28%, #0b1320);
  --pn-dark-2: color-mix(in oklab, var(--sv-main) 34%, #14203a);
  --pn-dark-line: rgba(255,255,255,.1);
  --mp-menu-bg: #fff; --mp-menu-fg: var(--pn-ink);
  background: var(--pn-paper); color: var(--pn-ink);
}
.mp--panel { max-width: 1240px; margin: 0 auto; padding: 32px 28px 40px; container-type: inline-size; }
.mp-body--embed .mp--panel { max-width: none; padding: 0; }
@media (max-width: 767px) { .mp--panel { padding: 14px 12px 28px; } .mp-body--embed .mp--panel { padding: 0; } }

.pn-card { background: #fff; border: 1px solid var(--pn-line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px -20px rgba(16,32,57,.25); }
.mp-body--embed .pn-card { box-shadow: none; border-radius: 14px; }

/* Toolbar */
.pn-bar { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--pn-line); }
.pn-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; color: inherit; }
.pn-brand img { max-height: 30px; max-width: 150px; width: auto; object-fit: contain; }
.pn-brand__name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.pn-bar__title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--pn-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-bar__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.pn-act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #344252; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.pn-act svg { width: 17px; height: 17px; }
.pn-act:hover { background: var(--pn-sky); color: var(--sv-main); }
.pn-act--icon { padding: 0 9px; }
.pn-qr { position: relative; }
.pn-qr__pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--pn-line); box-shadow: 0 18px 40px -12px rgba(16,32,57,.35); }
.pn-qr__pop img { width: 132px; height: 132px; border-radius: 8px; }
.pn-qr__pop div { display: flex; flex-direction: column; gap: 4px; width: 120px; font-size: 13px; color: var(--pn-muted); }
.pn-qr__pop b { color: var(--pn-ink); font-size: 14px; }

/* Picture + chapters */
.pn-grid { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--pn-dark); color: #fff; }
.pn-screen { min-width: 0; }
.pn-stage { position: relative; }
.pn-stage .mp-stage-box { --mp-r: 0; }
.pn-3d { position: absolute; z-index: 6; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(12,23,37,.82); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.pn-3d svg { width: 16px; height: 16px; }
.pn-3d:hover { background: rgba(12,23,37,.95); border-color: rgba(255,255,255,.5); }

.pn-deck { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px; border-top: 1px solid var(--pn-dark-line); }
.pn-dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; transition: background .15s ease; }
.pn-dbtn svg { width: 18px; height: 18px; }
.pn-dbtn:hover { background: rgba(255,255,255,.16); }
.pn-dbtn--menu.sv-menu-btn { width: auto; padding: 0 12px; }
.pn-deck .sv-menu-btn svg { width: 14px; height: 14px; }
.pn-deck__now { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.pn-deck__k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.55); }
.pn-deck__k b { color: #fff; }
.pn-deck__t { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-deck__time { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 6px; }
.pn-deck__time b { color: #fff; font-weight: 500; }

.pn-side { display: flex; flex-direction: column; min-width: 0; background: var(--pn-dark); border-top: 1px solid var(--pn-dark-line); }
.pn-side__h { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--pn-dark-line); flex: 0 0 auto; }
.pn-side__h strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.pn-side__h span { font-size: 12px; color: rgba(255,255,255,.6); }
.pn-list { display: flex; gap: 6px; padding: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.pn-row { display: grid; grid-template-columns: 26px 86px minmax(0, 1fr); align-items: center; gap: 10px; flex: 0 0 auto; width: 260px; padding: 8px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #fff; cursor: pointer; font: inherit; text-align: left; scroll-snap-align: start; transition: background .15s ease, border-color .15s ease; }
.pn-row:hover { background: var(--pn-dark-2); }
.pn-row.active { background: var(--sv-main); color: var(--sv-text); border-color: color-mix(in srgb, var(--sv-text) 45%, transparent); }
.pn-row__n { width: 25px; height: 25px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-row.active .pn-row__n { background: var(--sv-text); color: var(--sv-main); border-color: var(--sv-text); }
.pn-row.done .pn-row__n { background: rgba(255,255,255,.14); border-color: transparent; }
.pn-row__img { width: 86px; height: 49px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.08); display: block; }
.pn-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-row__img.is-empty { background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.pn-row__t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pn-row__t b { font-size: 13px; line-height: 1.2; font-weight: 650; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pn-row__t small { font-size: 12px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.pn-row.active .pn-row__t small { color: inherit; opacity: .85; }
.pn-row.done .pn-row__t b { opacity: .6; }

/* Wide card: chapters beside the picture, as tall as the picture column. */
@container (min-width: 860px) {
  .pn-grid--list { grid-template-columns: minmax(0, 1fr) 330px; }
  /* height: 0 + min-height: 100% = exactly as tall as the picture column, so the list scrolls instead of stretching the card. */
  .pn-side { border-top: 0; border-left: 1px solid var(--pn-dark-line); height: 0; min-height: 100%; }
  .pn-list { flex-direction: column; gap: 2px; overflow-x: hidden; overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 7px; scroll-snap-type: none; }
  .pn-row { width: 100%; }
}
@container (max-width: 480px) {
  .pn-bar { height: 52px; padding: 0 6px 0 12px; gap: 8px; }
  .pn-brand img { max-height: 24px; max-width: 110px; }
  .pn-bar__title { display: none; }
  .pn-act span { display: none; }
  .pn-act { padding: 0 8px; }
  .pn-deck { height: 54px; padding: 0 8px; gap: 6px; }
  .pn-dbtn { width: 36px; height: 36px; }
  .pn-deck__time { display: none; }
  .pn-row { width: 220px; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 8px; }
  .pn-row__img { width: 64px; height: 36px; }
  .pn-row__n { width: 22px; height: 22px; font-size: 11px; }
}

/* Info row */
.pn-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: #fff; }
.pn-product { display: flex; align-items: center; gap: 20px; padding: 22px 24px; min-width: 0; }
.pn-product img { width: 132px; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px; background: #eef2f6; flex: 0 0 auto; }
.pn-product h2 { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
.pn-product p { margin: 6px 0 0; color: var(--pn-muted); font-size: 14px; line-height: 1.45; }
.pn-product__by { font-weight: 600; color: var(--pn-muted); }
.pn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.pn-tags span { display: inline-block; border: 1px solid color-mix(in srgb, var(--sv-main) 40%, #fff); background: var(--pn-sky); color: var(--sv-main); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; }
.pn-help { margin: 18px; background: var(--pn-sky); border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pn-help b { display: block; font-size: 17px; letter-spacing: -.01em; }
.pn-help span { display: block; color: #566779; font-size: 13px; margin-top: 4px; line-height: 1.4; }
.pn-help a { background: var(--sv-main); color: var(--sv-text); text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 15px; border-radius: 8px; white-space: nowrap; flex: 0 0 auto; transition: background .15s ease; }
.pn-help a:hover { background: var(--sv-hover); }
@container (max-width: 860px) {
  .pn-info { grid-template-columns: 1fr; }
  .pn-help { margin: 0 18px 18px; }
}
@container (max-width: 480px) {
  .pn-product { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
  .pn-product h2 { font-size: 19px; }
  .pn-help { flex-direction: column; align-items: stretch; padding: 16px; margin: 0 12px 12px; }
  .pn-help a { text-align: center; }
}

.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--pn-line); font-size: 12px; color: var(--pn-muted); }
.pn-foot a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.pn-foot a img { height: 14px; width: auto; opacity: .85; }

.pn-toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translateX(-50%); background: #101c2c; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 35px rgba(0,0,0,.25); }
.mp-body--panel .mp-switch { bottom: 18px; }

/* =========================================================================
   FRAME — one box that fills whatever the customer's iframe gives it
   ========================================================================= */
.mp-body--fill { height: 100%; margin: 0; }
html:has(.mp-body--fill) { height: 100%; }
.mp-body--frame {
  --mp-font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fr-bar: 56px;
  --fr-side: 270px;
  --fr-line: color-mix(in srgb, var(--sv-text) 14%, transparent);
  --fr-soft: color-mix(in srgb, var(--sv-text) 8%, transparent);
  --fr-soft-2: color-mix(in srgb, var(--sv-text) 16%, transparent);
  --fr-muted: color-mix(in srgb, var(--sv-text) 62%, transparent);
  --mp-menu-bg: #fff; --mp-menu-fg: #14171c;
  background: #f5f7fa; color: #14171c;
}
.mp--frame { max-width: 1180px; margin: 0 auto; padding: 28px 28px 40px; }
.mp-body--embed .mp--frame { max-width: none; padding: 0; margin: 0; }
.fr-intro { margin-bottom: 16px; }
.fr-intro .mp-eyebrow { color: var(--sv-main); }
.fr-intro p, .fr-note { color: #6b7280; font-size: 15px; margin: 8px 0 0; line-height: 1.5; }
.fr-intro a, .fr-note a { color: var(--sv-main); font-weight: 600; }
.fr-note { margin-top: 18px; }
@media (max-width: 767px) { .mp--frame { padding: 14px 12px 28px; } }

.fr-box { position: relative; container-type: size; overflow: hidden; background: var(--sv-main); color: var(--sv-text); }
.fr-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 100%; height: 100%; }
.fr-box--demo { aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.45); }
.mp-body--embed .fr-box { position: fixed; inset: 0; border-radius: 0; }

.fr-screen { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.fr-stagewrap { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.fr-stage { width: min(100%, calc((100cqh - var(--fr-bar-used, 0px)) * 16 / 9)); max-width: 100%; }
.fr-box:has(.fr-bar) { --fr-bar-used: var(--fr-bar); }
.fr-stage .mp-stage-box { --mp-r: 0; }

.fr-bar { display: flex; align-items: center; gap: 6px; height: var(--fr-bar); padding: 0 8px; border-top: 1px solid var(--fr-line); position: relative; z-index: 6; background: var(--sv-main); }
.fr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; border: 0; background: var(--fr-soft); color: var(--sv-text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; transition: background .15s ease; }
.fr-btn svg { width: 18px; height: 18px; }
.fr-btn:hover { background: var(--sv-hover); }
.fr-btn--menu.sv-menu-btn { width: auto; padding: 0 12px; }
.fr-bar .sv-menu-btn svg { width: 14px; height: 14px; }
.fr-now { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; color: inherit; background: transparent; border: 0; font: inherit; text-align: left; }
.fr-now--btn { cursor: pointer; transition: background .15s ease; }
.fr-now--btn:hover { background: var(--fr-soft); }
.fr-now__n { flex: 0 0 auto; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--fr-muted); font-variant-numeric: tabular-nums; }
.fr-now__n b { color: var(--sv-text); font-size: 15px; font-weight: 700; }
.fr-now__t { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-now__ic { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--fr-soft); }
.fr-now__ic svg { width: 16px; height: 16px; }
.fr-open .fr-now__ic { background: var(--sv-text); color: var(--sv-main); }
.fr-time { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--fr-muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 6px; }
.fr-time b { color: var(--sv-text); font-weight: 500; }

/* The step list: a drawer over the picture by default. */
.fr-side { position: absolute; left: 0; right: 0; bottom: var(--fr-bar); z-index: 5; max-height: calc(100% - var(--fr-bar)); display: flex; flex-direction: column; background: color-mix(in srgb, var(--sv-main) 92%, #000); color: var(--sv-text); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.6); }
.fr-open .fr-side { transform: none; }
.fr-side__h { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 16px; flex: 0 0 auto; border-bottom: 1px solid var(--fr-line); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.fr-side__count { flex: 1 1 auto; color: var(--fr-muted); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.fr-side__close { width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--fr-soft); color: inherit; cursor: pointer; display: grid; place-items: center; }
.fr-side__close svg { width: 16px; height: 16px; }
.fr-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--fr-soft-2) transparent; }
.fr-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; transition: background .15s ease; }
.fr-row:hover { background: var(--fr-soft); }
.fr-row__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--fr-soft-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fr-muted); }
.fr-row__t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-row__d { font-size: 12px; color: var(--fr-muted); font-variant-numeric: tabular-nums; }
.fr-row.active { background: var(--fr-soft-2); }
.fr-row.active .fr-row__n { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.fr-row.active .fr-row__t { font-weight: 700; }
.fr-row.done .fr-row__n { background: var(--fr-soft); border-color: transparent; }
.fr-row.done .fr-row__t { color: var(--fr-muted); }

/* A wide, landscape box: the list gets its own column and the drawer
   mechanics switch off. */
@container (min-width: 640px) and (min-aspect-ratio: 5 / 3), (min-width: 900px) and (min-aspect-ratio: 3 / 2) {
  .fr-in--list { grid-template-columns: minmax(0, 1fr) var(--fr-side); }
  .fr-side { position: static; transform: none; max-height: none; box-shadow: none; border-left: 1px solid var(--fr-line); background: transparent; min-height: 0; }
  .fr-side__close, .fr-now__ic { display: none; }
  .fr-now--btn { cursor: default; }
  .fr-now--btn:hover { background: transparent; }
}
/* Tiny boxes: drop what does not fit. */
@container (max-width: 420px) {
  .fr-time { display: none; }
  .fr-bar { padding: 0 6px; gap: 4px; }
  .fr-btn { width: 36px; height: 36px; }
  .fr-now { padding: 0 6px; gap: 8px; }
  .fr-now__t { font-size: 14px; }
}
@container (max-height: 260px) {
  .mp-body--frame { --fr-bar: 46px; }
  .fr-btn { width: 34px; height: 34px; }
  .fr-now { height: 34px; }
}
.mp-body--frame .mp-switch { bottom: 18px; }
