/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
/* Демо v4: стили ограничены блоком .sd; локальная копия утверждённого эталона. */

/* ---------- tokens (copy of site-canvas/boards/tokens.css, same names) ---------- */
.sd, .sd .t-light {
  --bg-canvas: #F7F6F2;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #EFEEE9;
  --bg-surface-pressed: #E6E5E0;
  --bg-inverse: #0D0E11;
  --text-primary: #0B0C0E;
  --text-secondary: #60636B;
  --text-tertiary: #8C8E94;
  --text-inverse: #F7F6F2;
  --text-accent: #0060FF;
  --icon-primary: #0B0C0E;
  --icon-secondary: #60636B;
  --icon-accent: #0060FF;
  --action-primary-fill: #0B0C0E;
  --action-primary-text: #F7F6F2;
  --action-secondary-fill: #FFFFFF;
  --action-secondary-text: #0B0C0E;
  --action-accent: #0060FF;
  --selection-border: #0060FF;
  --selection-fill: #E3EDFF;
  --divider-default: rgba(11, 12, 14, 0.12);
  --divider-strong: rgba(11, 12, 14, 0.22);
  --overlay-scrim: rgba(0, 0, 0, 0.48);
  --overlay-media-chrome: rgba(0, 0, 0, 0.32);
  --feedback-success: #167A46;
  --feedback-warning: #9A5B00;
  --feedback-error: #C93333;
  --feedback-info: #0060FF;
  --wave-idle: #8C8E94;
  --text-on-media: #F7F6F2;
  --spark: #C7FF3D;
  --brand-blue: #0060FF;
  --shadow-low: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-floating: 0 8px 28px rgba(0, 0, 0, 0.14);
}
.sd.t-dark, .sd .t-dark {
  --bg-canvas: #0D0E11;
  --bg-surface: #14161A;
  --bg-surface-subtle: #1B1D22;
  --bg-surface-pressed: #25282E;
  --bg-inverse: #F7F6F2;
  --text-primary: #F7F6F2;
  --text-secondary: #B8BBC2;
  --text-tertiary: #7C8089;
  --text-inverse: #0B0C0E;
  --text-accent: #4D8FFF;
  --icon-primary: #F7F6F2;
  --icon-secondary: #B8BBC2;
  --icon-accent: #4D8FFF;
  --action-primary-fill: #F7F6F2;
  --action-primary-text: #0B0C0E;
  --action-secondary-fill: #1B1D22;
  --action-secondary-text: #F7F6F2;
  --action-accent: #4D8FFF;
  --selection-border: #4D8FFF;
  --selection-fill: #0B2A66;
  --divider-default: rgba(247, 246, 242, 0.12);
  --divider-strong: rgba(247, 246, 242, 0.22);
  --overlay-scrim: rgba(0, 0, 0, 0.54);
  --overlay-media-chrome: rgba(0, 0, 0, 0.38);
  --feedback-success: #62D894;
  --feedback-warning: #FFBF5B;
  --feedback-error: #FF7777;
  --feedback-info: #4D8FFF;
  --wave-idle: #60636B;
  --text-on-media: #F7F6F2;
  --spark: #C7FF3D;
  --brand-blue: #0060FF;
  --shadow-low: none;
  --shadow-floating: none;
}
.sd {
  --ease-edit: cubic-bezier(0.2, 0, 0, 1);
  --ease-standard: cubic-bezier(0.3, 0, 0.1, 1);
  --ease-cut: cubic-bezier(0.9, 0, 0.1, 1);
}

/* ---------- base ---------- */
:where(.sd) *, :where(.sd) *::before, :where(.sd) *::after { box-sizing: border-box; }
html.sd-lock { overflow: hidden; }
:where(.sd) [hidden] { display: none !important; }
:where(.sd) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.sd) button:disabled { cursor: default; }
:where(.sd) a { color: inherit; }
:where(.sd) img, :where(.sd) video, :where(.sd) svg { display: block; }
:where(.sd) :focus-visible { outline: 3px solid var(--text-accent); outline-offset: 3px; border-radius: 6px; }
.sd-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* ---------- page block ---------- */
.sd {
  background: var(--bg-canvas);
  color: var(--text-primary);
  padding-block: clamp(40px, 8vw, 72px);
  overflow-x: clip;
}
.sd-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
.sd-copy { display: contents; }
.sd-head { order: 1; width: 100%; max-width: 560px; }
.sd-stage { order: 2; }
.sd-progress { order: 3; }
.sd-cta { order: 4; }
.sd-progress, .sd-cta { width: 100%; max-width: 560px; }

.sd-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-secondary); }
.sd-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.sd-h { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.sd-lead { margin: 20px 0 0; max-width: 460px; font-size: 18px; line-height: 26px; color: var(--text-secondary); text-wrap: pretty; }

/* шаги — карточки без рамок в две колонки, порядок чтения слева направо и сверху вниз; пятая на всю ширину и с акцентом */
.sd-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd-steps li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 16px 18px 18px; border-radius: 20px; background: var(--bg-surface-subtle); transition: background 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard); }
.sd-stt { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.sd-steps b { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--bg-surface-pressed); color: var(--text-secondary); transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard); }
.sd-sd { font-size: 15px; line-height: 20px; color: var(--text-secondary); text-wrap: pretty; }
.sd-big { margin-top: 2px; font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
.sd-steps li.is-now { background: var(--bg-surface-pressed); }
.sd-steps li.is-now b { background: var(--action-accent); color: #fff; }
.sd-steps li.is-done b { color: transparent; background: color-mix(in srgb, var(--action-accent) 24%, transparent); }
.sd-steps li.is-done b::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 5px; margin: -4px 0 0 -5px; border-left: 2px solid var(--text-accent); border-bottom: 2px solid var(--text-accent); transform: rotate(-45deg); }
.sd-steps li.is-done .sd-stt { color: var(--text-secondary); }
.sd-steps li.sd-go { grid-column: 1 / -1; gap: 4px; padding: 18px 20px 20px; background: var(--brand-blue); color: var(--text-on-media); }
.sd-go .sd-stt, .sd-go .sd-sd, .sd-steps li.sd-go.is-done .sd-stt { color: var(--text-on-media); }
.sd-go .sd-sd { margin-top: 2px; }
.sd-steps .sd-go b { background: rgba(247, 246, 242, 0.2); color: var(--text-on-media); }
.sd-steps li.sd-go.is-now { background: var(--brand-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 32%, transparent), 0 16px 48px color-mix(in srgb, var(--brand-blue) 30%, transparent); }
.sd-steps li.sd-go.is-now b { background: var(--text-on-media); color: var(--brand-blue); }
.sd-steps li.sd-go.is-done b { background: var(--text-on-media); }
.sd-steps li.sd-go.is-done b::before { border-color: var(--brand-blue); }
@media (max-width: 400px) { .sd-steps li { padding: 14px 14px 16px; } .sd-stt { font-size: 16px; gap: 8px; } .sd-sd { font-size: 14px; line-height: 19px; } .sd-big { font-size: 22px; line-height: 26px; } }

.sd-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.sd-pbtn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 18px; background: var(--action-primary-fill); color: var(--action-primary-text); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; }
.sd-pbtn:active { transform: scale(0.985); }
.sd-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text-accent); text-decoration: none; }
.sd-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sd-proof { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; line-height: 19px; color: var(--text-tertiary); }

.sd-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; min-width: 0; }
/* «начать заново»: круглая кнопка слева от телефона, появляется после первого действия в демо */
.sd-ctl { position: absolute; z-index: 2; top: 0; left: calc(50% - 207px * var(--sd-k, 1) - 64px); display: flex; gap: 8px; align-items: center; }
.sd-again { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-surface-subtle); color: var(--text-primary); transition: background 150ms var(--ease-standard); animation: sd-again-in 240ms var(--ease-standard) backwards; }
.sd-again svg { transition: transform 360ms var(--ease-edit); animation: sd-again-spin 560ms var(--ease-edit) backwards; }
.sd-again:hover { background: var(--bg-surface-pressed); }
.sd-again:hover svg { transform: rotate(70deg); }
.sd-again:active svg { transform: rotate(140deg); }
.sd-again:focus-visible { border-radius: 50%; }
.sd-again-tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 10px; background: var(--bg-surface-pressed); color: var(--text-primary); font-size: 13px; line-height: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease-standard); }
.sd-again:hover .sd-again-tip, .sd-again:focus-visible .sd-again-tip { opacity: 1; }
@keyframes sd-again-in { from { opacity: 0; } }
@keyframes sd-again-spin { from { transform: rotate(-200deg); } }
.sd-sbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--bg-surface-subtle); color: var(--text-primary); font-size: 14px; line-height: 18px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--divider-default); }
.sd-sbtn:hover:not(:disabled) { background: var(--bg-surface-pressed); }
.sd-sbtn.sd-only-narrow { display: none; }
@media (prefers-reduced-motion: reduce) { .sd-again, .sd-again svg { animation: none; } .sd-again svg { transition: none; } .sd-again:hover svg, .sd-again:active svg { transform: none; } }
.sd-screen > .sd-nojs { margin: 96px 20px 0; padding: 0; background: none; }
.sd-nojs { max-width: 420px; margin: 0; padding: 24px; border-radius: 18px; background: var(--bg-surface); color: var(--text-secondary); font-size: 16px; line-height: 22px; }

/* measures the window height for the phone scale; never visible */
.sd-probe { position: fixed; left: 0; top: 0; width: 0; height: 100vh; visibility: hidden; pointer-events: none; }
@supports (height: 100svh) { .sd-probe { height: 100svh; } }

@media (min-width: 920px) {
  .sd { padding-block: clamp(48px, 8svh, 112px); }
  /* Две колонки одной высоты: верх телефона на уровне «Try it», низ подписи под телефоном на уровне последней строки слева. */
  /* та же сетка, что у первого экрана и How wild: 1160 px контента, текст у левого края, телефон у правого */
  .sd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 720px) auto;
    justify-content: space-between;
    column-gap: clamp(48px, 6vw, 104px);
    align-items: center;
    justify-items: stretch;
    max-width: 1200px;
    padding-inline: 20px;
  }
  .sd-head { max-width: 480px; }
  .sd-copy { display: flex; flex-direction: column; gap: 32px; grid-column: 1; grid-row: 1; height: var(--sd-col, auto); }
  /* лишняя высота (телефон чуть выше текста) уходит в карточки шагов, без пустых промежутков */
  .sd-progress { flex: 1 0 auto; display: flex; flex-direction: column; }
  .sd-steps { flex: 1 0 auto; }
  .sd-stage { grid-column: 2; grid-row: 1; justify-self: end; }
  .sd-progress, .sd-cta { max-width: none; }
  /* шире колонка — крупнее текст в карточках */
  .sd-steps { gap: 10px; }
  .sd-steps li { padding: 20px 22px 22px; border-radius: 22px; }
  .sd-stt { font-size: 19px; line-height: 24px; }
  .sd-sd { font-size: 16px; line-height: 22px; }
  .sd-steps li.sd-go { padding: 22px 24px 24px; }
  .sd-big { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
  /* низкое окно: сначала плотнее заголовок и лид (.is-compact), если мало, то и карточки (.is-tight); телефон вровень с колонкой */
  .sd.is-compact .sd-copy { gap: 20px; }
  .sd.is-compact .sd-eyebrow { margin-bottom: 12px; }
  .sd.is-compact .sd-h { font-size: clamp(36px, 3.8vw, 52px); }
  .sd.is-compact .sd-lead { margin-top: 12px; font-size: 16px; line-height: 23px; }
  .sd.is-tight .sd-steps li { padding: 12px 14px 14px; gap: 4px; border-radius: 16px; }
  .sd.is-tight .sd-steps li.sd-go { padding: 14px 16px 16px; gap: 2px; }
  .sd.is-tight .sd-stt { font-size: 15px; line-height: 20px; gap: 8px; }
  .sd.is-tight .sd-steps b { width: 22px; height: 22px; font-size: 12px; }
  .sd.is-tight .sd-sd { font-size: 14px; line-height: 18px; }
  .sd.is-tight .sd-big { font-size: 21px; line-height: 25px; }
  .sd.is-compact .sd-pbtn { height: 48px; }
}

/* ---------- device: a fixed 414 x 868 phone, scaled as a whole by --sd-k so the block fits the window height ---------- */
.sd-fit { position: relative; flex: none; width: calc(414px * var(--sd-k, 1)); height: calc(868px * var(--sd-k, 1)); }
.sd-device {
  position: absolute;
  left: 0;
  top: 0;
  width: 414px;
  padding: 12px;
  border-radius: 58px;
  background: #1E2025;
  box-shadow: 0 0 0 1.5px rgba(247, 246, 242, 0.2), 0 0 0 5px #0D0E11, 0 0 0 6px rgba(247, 246, 242, 0.08), 0 36px 90px rgba(0, 0, 0, 0.55);
  transform: scale(var(--sd-k, 1));
  transform-origin: 0 0;
}
.sd-screen {
  --pt: 54px;
  --pb: 46px;
  position: relative;
  width: 390px;
  height: 844px;
  margin: 0 auto;
  border-radius: 46px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Instrument Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
}
.sd-island { position: absolute; z-index: 60; top: 11px; left: 50%; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; pointer-events: none; }
.sd-home { position: absolute; z-index: 60; bottom: 8px; left: 50%; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: var(--text-primary); opacity: 0.9; pointer-events: none; transition: background 200ms var(--ease-standard); }
.sd-screen.on-media .sd-home { background: #fff; }

.sd-view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--pt) - 10px * var(--sq, 0)) 0 calc(var(--pb) - 6px * var(--sq, 0)); background: var(--bg-canvas); }
.sd-view.is-in { animation: sd-in 220ms var(--ease-standard) both; }
@keyframes sd-in { from { opacity: 0; } to { opacity: 1; } }

.sd-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px; }
.sd-ib { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--icon-primary); }
.sd-ib:active { background: var(--bg-surface-pressed); }
.sd-sp { width: 44px; height: 44px; }
.sd-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 24px 20px 0; }
/* --sq (0..1) is set by JS on the S16 view when the screen is shorter than its content; everything below gives up space in proportion */
/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site
   Края встроенного экрана передают вертикальный жест странице. */
.sd-main.is-scroll { overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: none; padding-bottom: calc(12px - 8px * var(--sq, 0)); }
.sd-main.is-scroll::-webkit-scrollbar { display: none; }
.sd-main.is-tight { padding-top: calc(12px - 8px * var(--sq, 0)); }
.sd-main.is-tight .sd-title.is-sm { font-size: calc(min(40px, 11.4cqw) - 8px * var(--sq, 0)); }
.sd-main.is-tight .sd-pg { margin-top: calc(12px - 4px * var(--sq, 0)); --pgh: calc(50px - 22px * var(--sq, 0)); }
.sd-main.is-tight .sd-meta { margin-top: calc(14px - 6px * var(--sq, 0)); gap: calc(4px - 2px * var(--sq, 0)); }
.sd-main.is-tight .sd-mr { min-height: calc(24px - 2px * var(--sq, 0)); }
.sd-main.is-tight .sd-fmt { margin-top: calc(12px - 4px * var(--sq, 0)); gap: calc(10px - 4px * var(--sq, 0)); }
.sd-main.is-tight .sd-wild { margin-top: calc(12px - 6px * var(--sq, 0)); }
.sd-main.is-tight .sd-wild-d { margin-top: calc(4px - 2px * var(--sq, 0)); }
.sd-main.is-tight .sd-hm-empty { margin-top: 40px; }
.sd-bottom { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 12px 20px 0; position: relative; }
.sd-bottom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(180deg, rgba(247, 246, 242, 0), var(--bg-canvas)); pointer-events: none; opacity: 0; transition: opacity 200ms; }
.sd-bottom.has-fade::before { opacity: 1; }

.sd-title { margin: 0; font-size: min(48px, 13.5cqw); line-height: 0.98; font-weight: 600; letter-spacing: -0.038em; outline: none; }
.sd-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sd-title-row .sd-count { font-size: min(48px, 13.5cqw); line-height: 0.98; font-weight: 600; letter-spacing: -0.038em; font-variant-numeric: tabular-nums; }
.sd-title.is-sm { font-size: min(40px, 11.4cqw); line-height: 1.025; letter-spacing: -0.032em; }
.sd-sub { margin: 14px 0 0; max-width: 300px; font-size: 16px; line-height: 22px; color: var(--text-secondary); }
.sd-hint { margin: 10px 0 0; font-size: 14px; line-height: 19px; color: var(--text-tertiary); }

.sd-btn { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 20px; border-radius: 18px; background: var(--action-primary-fill); color: var(--action-primary-text); font-size: 16px; line-height: 20px; font-weight: 600; transition: opacity 200ms var(--ease-standard), transform 80ms; }
.sd-btn:active:not(:disabled) { transform: scale(0.99); }
.sd-btn:disabled { opacity: 0.28; }
.sd-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.sd-price { flex: none; height: 26px; padding: 0 10px; display: flex; align-items: center; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 14px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sd-tbtn { height: 44px; padding: 0 12px; margin-right: -12px; border-radius: 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-accent); }
.sd-tbtn:active { background: var(--bg-surface-pressed); }

/* the hint: a soft ring on "Create new snip" and on step 1, both driven by one class on the block */
@keyframes sd-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--action-accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--action-accent) 0%, transparent); }
}
@keyframes sd-ring-b {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--action-accent) 80%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--action-accent) 0%, transparent); }
}
.sd.is-hint .sd-btn[data-act="create"]::after { animation: sd-ring 1600ms var(--ease-standard) 3; }
.sd.is-hint .sd-steps li:first-child b::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; animation: sd-ring-b 1600ms var(--ease-standard) 3; }

/* S06 Home */
.sd-wm { display: flex; align-items: center; height: 44px; padding-left: 12px; }
.sd-lg-i { fill: var(--text-primary); }
.sd-lg-b { fill: var(--brand-blue); }
.sd-acc img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; outline: 1px solid var(--divider-default); outline-offset: -1px; }
.sd-main.sd-hm { padding-bottom: calc(var(--pb) + 56px + 40px); }
.sd-bal { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-balbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; justify-content: center; text-align: left; border-radius: 8px; }
.sd-bal-n { display: flex; align-items: center; gap: 4px; font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.018em; font-variant-numeric: tabular-nums; }
.sd-bal-n svg { color: var(--icon-secondary); }
.sd-bal-note { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.sd-bal-note.is-low { color: var(--feedback-warning); }
.sd-getmore { flex: none; min-width: 88px; }
.sd-hm-empty { margin-top: 120px; display: flex; flex-direction: column; gap: 16px; }
.sd-hm-empty h3 { margin: 0; font-size: min(48px, 13.5cqw); line-height: 0.98; font-weight: 600; letter-spacing: -0.038em; }
.sd-hm-empty p { margin: 0; max-width: 300px; font-size: 16px; line-height: 22px; color: var(--text-secondary); }
.sd-recent { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.sd-recent h3 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.012em; }
.sd-rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd-mt { position: relative; display: block; width: 100%; height: 228px; border-radius: 14px; overflow: hidden; background: var(--bg-surface-subtle); }
.sd-mt img { width: 100%; height: 100%; object-fit: cover; }
.sd-mt-dur { position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: var(--overlay-media-chrome); color: var(--text-on-media); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.008em; font-variant-numeric: tabular-nums; }
.sd-mt.is-stub { background: repeating-linear-gradient(135deg, var(--bg-surface-subtle) 0 9px, var(--bg-surface-pressed) 9px 18px); }
.sd-mt-stub { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--feedback-warning); }
.sd-cta-wrap { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; padding: 32px 20px var(--pb); background: linear-gradient(180deg, rgba(247, 246, 242, 0) 0, var(--bg-canvas) 28px); }

/* S06 review badge, also used in the S16 bar */
.sd-rev { display: inline-flex; align-items: center; height: 26px; margin-right: 4px; padding: 0 10px; border-radius: 13px; font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; color: var(--feedback-warning); background: color-mix(in srgb, var(--feedback-warning) 12%, var(--bg-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--feedback-warning) 38%, transparent); }

/* S11 */
.sd-trk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.sd-trk { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 8px 16px 8px 8px; border-radius: 18px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--divider-default); text-align: left; transition: box-shadow 120ms, background 120ms; }
.sd-trk:hover { box-shadow: inset 0 0 0 1.5px var(--divider-strong); }
.sd-trk:active { background: var(--bg-surface-pressed); }
.sd-ico56 { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--bg-surface-subtle); display: grid; place-items: center; color: var(--icon-primary); }
.sd-trk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-trk-n { font-size: 16px; line-height: 20px; font-weight: 600; }
.sd-trk-m { font-size: 14px; line-height: 19px; color: var(--text-secondary); }
.sd-trk-go { color: var(--icon-secondary); }
.sd-picked { display: flex; flex-direction: column; margin-top: 28px; }
.sd-picked-row { display: flex; align-items: center; gap: 16px; }
.sd-wave { margin-top: 24px; width: 100%; height: 84px; overflow: visible; }
.sd-wave rect { fill: var(--wave-idle); transform-box: fill-box; transform-origin: 50% 50%; animation: sd-bar 360ms var(--ease-edit) both; }
@keyframes sd-bar { from { transform: scaleY(0.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.sd-status-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; }
.sd-status-row .sd-mark { margin-top: 5px; }
.sd-status-t { display: flex; flex-direction: column; gap: 2px; }
.sd-status-t b { font-size: 16px; line-height: 20px; font-weight: 600; }
.sd-status-t span { font-size: 14px; line-height: 19px; color: var(--text-secondary); }

/* brand loader mark (194 x 60 units, geometry in %) */
.sd-mark { position: relative; flex: none; overflow: hidden; --lv-ink: var(--text-primary); --lv-blue: var(--brand-blue); }
.sd-mark span { position: absolute; display: block; }
.sd-mark.is-media { --lv-ink: var(--text-on-media); }
.sd-mark span { border-radius: 2px; }
.m-ldr { will-change: left, width, top, height; }

/* S12 */
.sd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--rh, 76px); gap: 8px; margin-top: 16px; }
.sd-grid.is-many { --rh: 62px; }
.sd-tile { position: relative; overflow: hidden; border-radius: 12px; background: var(--bg-surface-subtle); }
.sd-tile img { width: 100%; height: 100%; object-fit: cover; }
.sd-dur { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(11, 12, 14, 0.55); color: #F7F6F2; font-size: 11px; line-height: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* S16 Ready to snip? (canon S16Confirm) */
.sd-pg { --pgh: 64px; margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: var(--pgh) var(--pgh); gap: 8px; }
.sd-pg > * { position: relative; overflow: hidden; border-radius: 10px; background: var(--bg-surface-subtle); }
.sd-pg > :first-child { grid-column: 1 / span 2; grid-row: 1 / span 2; border-radius: 14px; }
.sd-pg > :first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--divider-default); }
.sd-pg img { width: 100%; height: 100%; object-fit: cover; }
.sd-pg-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--overlay-scrim); color: var(--text-on-media); font-size: 20px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sd-meta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: none; }
.sd-mr { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 16px; line-height: 22px; font-variant-numeric: tabular-nums; }
.sd-mr > i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: var(--icon-secondary); }
.sd-mr > span { min-width: 0; }
.sd-mood { display: flex; align-items: center; gap: 8px; margin: -10px 0; }
.sd-mood .sd-mr { flex: 1 1 auto; min-width: 0; }
.sd-mood-add { flex: none; display: flex; align-items: center; justify-content: center; width: 80px; height: 44px; border-radius: 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-accent); opacity: 0.45; cursor: default; }
.sd-fmt { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.sd-lbl { font-size: 16px; line-height: 22px; font-weight: 600; }
.sd-fmt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sd-fmt-b { --ink: var(--icon-secondary); height: 72px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; border-radius: 14px; background: var(--bg-surface-subtle); color: var(--text-primary); }
.sd-fmt-b[aria-checked="true"] { --ink: var(--action-accent); background: var(--bg-surface); box-shadow: inset 0 0 0 2px var(--selection-border); }
.sd-fmt-b:disabled { opacity: 0.45; cursor: default; }
.sd-fmt-i { display: block; box-sizing: border-box; border: 1.8px solid var(--ink); border-radius: 4px; }
.sd-fmt-i.f0 { width: 14px; height: 24px; }
.sd-fmt-i.f1 { width: 19px; height: 24px; }
.sd-fmt-i.f2 { width: 22px; height: 22px; }
.sd-fmt-i.f3 { width: 28px; height: 16px; }
.sd-fmt-t { display: flex; flex-direction: column; align-items: center; }
.sd-fmt-t b { font-size: 14px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sd-fmt-t span { font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-secondary); }

.sd-wild { margin-top: 20px; display: flex; flex-direction: column; flex: none; }
.sd-wild-h { display: flex; align-items: center; justify-content: space-between; }
.sd-wild-name { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-primary); }
.sd-wild-name svg { flex: none; overflow: visible; }
.sd-wi .a { stroke: var(--action-accent); }
.sd-wi .af { fill: var(--action-accent); stroke: none; }
.sd-wi .at { fill: color-mix(in srgb, var(--action-accent) 16%, transparent); }
.sd-w-box { --ws: 1; position: relative; height: 44px; margin: 4px 0 -4px; }
.sd-w-row { position: absolute; left: 0; top: 4px; width: 350px; height: 36px; display: flex; align-items: center; gap: 26px; transform: scale(var(--ws)); transform-origin: left center; }
.sd-w-end { flex: none; display: flex; color: var(--text-tertiary); }
.sd-w-end svg { overflow: visible; }
.sd-w-track { position: relative; flex: none; width: 262px; height: 36px; }
.sd-w-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.sd-w-rest, .sd-w-fill { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sd-w-rest { stroke: var(--divider-default); stroke-width: 4; }
.sd-w-fill { stroke: var(--action-accent); stroke-width: 4; }
.sd-w-dot { position: absolute; top: 14px; width: 8px; height: 8px; margin-left: -4px; border-radius: 999px; background: var(--divider-strong); }
.sd-w-dot.is-passed { visibility: hidden; }
.sd-w-thumb { position: absolute; top: 18px; left: 0; width: 0; height: 0; }
.sd-w-thumb svg { position: absolute; left: -22px; top: -22px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18)); }
.sd-w-round { fill: var(--bg-surface); stroke: var(--divider-strong); stroke-width: 1; }
.sd-w-back, .sd-w-front, .sd-w-hole, .sd-w-rays, .sd-w-spark { display: none; }
.sd-w-thumb[data-level="2"] .sd-w-round { stroke: var(--action-accent); stroke-width: 2.6; }
.sd-w-thumb[data-level="3"] .sd-w-round, .sd-w-thumb[data-level="4"] .sd-w-round { fill: var(--action-accent); stroke: none; }
.sd-w-thumb[data-level="3"] .sd-w-hole, .sd-w-thumb[data-level="4"] .sd-w-hole, .sd-w-thumb[data-level="5"] .sd-w-hole { display: block; fill: var(--bg-surface); }
.sd-w-thumb[data-level="4"] .sd-w-rays { display: block; fill: none; stroke: var(--action-accent); stroke-width: 2.2; stroke-linecap: round; }
.sd-w-thumb[data-level="5"] .sd-w-round { display: none; }
.sd-w-thumb[data-level="5"] .sd-w-back { display: block; fill: var(--bg-canvas); stroke: var(--action-accent); stroke-width: 1.6; }
.sd-w-thumb[data-level="5"] .sd-w-front { display: block; fill: var(--action-accent); }
.sd-w-thumb[data-level="5"] .sd-w-spark { display: block; fill: var(--spark); stroke: var(--text-primary); stroke-width: 1.2; }
.sd-w-in { position: absolute; top: 0; left: calc(26px * var(--ws)); width: calc(298px * var(--ws)); height: 44px; margin: 0; opacity: 0; cursor: pointer; touch-action: pan-y; }
.sd-w-thumb::before { content: ""; position: absolute; left: -19px; top: -19px; width: 34px; height: 34px; border: 2px solid var(--text-accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.sd-w-box:has(.sd-w-in:focus-visible) .sd-w-thumb::before { opacity: 1; box-shadow: 0 0 0 2px var(--bg-surface); }
.sd-wild-d { margin: 4px 0 0; min-height: 38px; font-size: 14px; line-height: 19px; color: var(--text-secondary); }
.sd-uses { margin: 0; text-align: center; font-size: 14px; line-height: 19px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* S17 snipping */
.sd-bar-mark { padding-left: 12px; display: flex; align-items: center; }
.sd-snip-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 20px 0; }
.sd-cgslot { position: relative; flex: none; width: 100%; transition: height 520ms var(--ease-edit); }
.sd-cg { position: absolute; top: 0; left: 0; width: 350px; height: 430px; transform-origin: 0 0; transition: height 520ms var(--ease-edit); }
.sd-cg[data-st="prep"] { height: 350px; }
.sd-cg[data-st="fin"] { height: 300px; }
.sd-e { position: absolute; overflow: hidden; border-radius: 12px; background: var(--bg-surface-subtle); transition-property: left, top, width, height, opacity, border-radius; transition-duration: 520ms; transition-timing-function: var(--ease-edit); }
.sd-e img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-e .pst { opacity: 0; transition: opacity 520ms var(--ease-edit); }
.sd-cg[data-st="fin"] .e3 .pst { opacity: 1; }
.e0 { left: 0; top: 20px; width: 110px; height: 150px; }
.e1 { left: 120px; top: 0; width: 110px; height: 170px; }
.e2 { left: 240px; top: 30px; width: 110px; height: 140px; }
.e3 { left: 0; top: 180px; width: 110px; height: 160px; }
.e4 { left: 120px; top: 180px; width: 110px; height: 130px; }
.e5 { left: 240px; top: 180px; width: 110px; height: 170px; }
.sd-cg[data-st="find"] .e0 { left: 0; top: 0; width: 92px; height: 124px; opacity: 0.5; }
.sd-cg[data-st="find"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0.5; }
.sd-cg[data-st="find"] .e2 { opacity: 0; }
.sd-cg[data-st="find"] .e3 { left: 56px; top: 36px; width: 238px; height: 330px; border-radius: 14px; }
.sd-cg[data-st="find"] .e4 { left: 262px; top: 322px; width: 88px; height: 108px; opacity: 0.5; }
.sd-cg[data-st="find"] .e5 { left: 0; top: 300px; width: 100px; height: 130px; opacity: 0.5; }
.sd-cg[data-st="build"] .e0 { left: 252px; top: 334px; width: 98px; height: 96px; opacity: 0.8; }
.sd-cg[data-st="build"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0; }
.sd-cg[data-st="build"] .e2 { left: 0; top: 322px; width: 118px; height: 108px; opacity: 0.8; }
.sd-cg[data-st="build"] .e3 { left: 56px; top: 36px; width: 238px; height: 330px; border-radius: 14px; opacity: 0; }
.sd-cg[data-st="build"] .e4 { left: 262px; top: 322px; width: 88px; height: 108px; opacity: 0; }
.sd-cg[data-st="build"] .e5 { left: 0; top: 300px; width: 100px; height: 130px; opacity: 0; }
.sd-cg[data-st="fin"] .e0 { left: 0; top: 96px; width: 44px; height: 62px; opacity: 0.3; border-radius: 6px; }
.sd-cg[data-st="fin"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0; }
.sd-cg[data-st="fin"] .e2 { left: 0; top: 322px; width: 118px; height: 108px; opacity: 0; }
.sd-cg[data-st="fin"] .e3 { left: 72px; top: 0; width: 206px; height: 300px; border-radius: 16px; }
.sd-cg[data-st="fin"] .e4 { left: 306px; top: 214px; width: 46px; height: 64px; opacity: 0.25; border-radius: 6px; }
.sd-cg[data-st="fin"] .e5 { left: 306px; top: 28px; width: 44px; height: 62px; opacity: 0.3; border-radius: 6px; }

.sd-crop { position: absolute; left: 118px; top: 36px; width: 128px; height: 330px; border: 2px solid var(--selection-border); border-radius: 4px; opacity: 0; transition: opacity 320ms var(--ease-standard); z-index: 3; }
.sd-cg[data-st="find"] .sd-crop { opacity: 1; animation: m-crop 2600ms var(--ease-cut) infinite; }
.sd-strip { position: absolute; width: 90px; height: 290px; overflow: hidden; border-radius: 6px; opacity: 0; transition: opacity 320ms var(--ease-standard); z-index: 2; }
.sd-strip img { position: absolute; width: 270px; height: 330px; max-width: none; object-fit: cover; }
.sd-strip.s0 { left: 40px; top: 52px; }
.sd-strip.s0 img { left: 0; top: -20px; }
.sd-strip.s1 { left: 130px; top: 12px; }
.sd-strip.s1 img { left: -90px; top: 20px; }
.sd-strip.s2 { left: 220px; top: 38px; }
.sd-strip.s2 img { left: -180px; top: -6px; }
.sd-cg[data-st="build"] .sd-strip { opacity: 1; }
.sd-cg[data-st="build"] .s0 { animation: m-strip-a 3200ms var(--ease-cut) infinite; }
.sd-cg[data-st="build"] .s1 { animation: m-strip-b 3200ms var(--ease-cut) infinite; }
.sd-cg[data-st="build"] .s2 { animation: m-strip-c 3200ms var(--ease-cut) infinite; }
.sd-eline { position: absolute; left: 219px; top: 0; width: 2px; height: 344px; border-radius: 1px; background: var(--action-accent); opacity: 0; transition: opacity 320ms var(--ease-standard); z-index: 4; }
.sd-cg[data-st="build"] .sd-eline { opacity: 1; animation: m-editline 3200ms var(--ease-cut) infinite; }

.sd-mid { position: relative; flex: none; margin-top: 18px; transition: height 520ms var(--ease-edit); }
.sd-mid > * { position: absolute; left: 0; right: 0; top: 0; transition: opacity 220ms var(--ease-standard); }
.sd-mid > .is-off { opacity: 0; pointer-events: none; }
.sd-word { margin: 0; display: flex; align-items: center; white-space: nowrap; font-size: min(56px, 15cqw); line-height: 0.965; font-weight: 600; letter-spacing: -0.04em; outline: none; }
.sd-word.is-split { font-size: min(56px, 14.4cqw); }
.sd-word .cut { display: inline-block; width: 0; height: 0.82em; margin: 0; border-radius: 2px; background: var(--action-accent); transition: width 200ms var(--ease-cut), margin 200ms var(--ease-cut); }
.sd-word.is-split .cut { width: 3px; margin: 0 12px; }
.sd-word.is-split .hl { animation: m-half-l 3200ms var(--ease-cut) infinite; }
.sd-word.is-split .hr { animation: m-half-r 3200ms var(--ease-cut) infinite; }
.sd-dots span { animation: m-dot 2400ms steps(1, end) infinite; }
.sd-dots span:nth-child(2) { animation-delay: 240ms; }
.sd-dots span:nth-child(3) { animation-delay: 480ms; }
@keyframes m-dot { 0%, 12% { opacity: 0; } 16%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }
.sd-note { margin: 0; padding: 12px 16px 16px; border-radius: 18px; background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--divider-default); }
.sd-note-cap { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-accent); }
.sd-note .sd-ptag { margin-top: 10px; }
.sd-note-q { margin: 8px 0 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; }

.sd-st { margin-top: 12px; flex: none; }
.sd-st-t { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; outline: none; }
.sd-st-t.is-rise { animation: m-rise 320ms var(--ease-standard) both; }
.sd-st-s { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 16px; line-height: 22px; color: var(--text-secondary); }
.sd-st-s svg { flex: none; }
@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.sd-phase { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 12px 16px 14px; border-radius: 16px; background: var(--bg-surface-subtle); }
.sd-phase > svg { margin-top: 1px; color: var(--icon-primary); }
.sd-phase b { font-size: 16px; line-height: 22px; font-weight: 600; }
.sd-phase .pct { font-size: 14px; line-height: 22px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.sd-phase .sub { grid-column: 2 / span 2; font-size: 14px; line-height: 19px; color: var(--text-secondary); }
.sd-phase .bar { grid-column: 2 / span 2; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--divider-default); overflow: hidden; }
.sd-phase .bar i { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--action-accent); transform: scaleX(0); transform-origin: 0 50%; }
.sd-phase.is-rise { animation: m-rise 320ms var(--ease-standard) both; }
.sd-snip-spacer { flex: 1 1 0; min-height: 8px; }

/* S21 Result (canon S21Result) */
.sd-rview { padding: 0; background: #08090B; color: var(--text-on-media); }
.sd-rv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background: #08090B; will-change: left, top, width, height; transition-property: left, top, width, height, border-radius, box-shadow; transition-duration: 620ms; transition-timing-function: var(--ease-edit); }
.sd-rv.is-hero { box-shadow: var(--shadow-floating); }
.sd-rv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #08090B; }
.sd-stub { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 28px; background: repeating-linear-gradient(135deg, #17191E 0 14px, #1D2026 14px 28px); }
.sd-stub-card { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 280px; padding: 18px 18px 20px; border-radius: 18px; text-align: center; background: rgba(11, 12, 14, 0.78); border: 1px solid rgba(247, 246, 242, 0.14); }
.sd-stub-card b { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.sd-stub-card span { font-size: 14px; line-height: 19px; color: rgba(247, 246, 242, 0.72); }
.sd-stub-card .sd-ptag { align-self: center; margin-top: 4px; }
.sd-rscrim-t { position: absolute; left: 0; right: 0; top: 0; height: 180px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0, rgba(0, 0, 0, 0) 100%); pointer-events: none; transition: opacity 320ms var(--ease-standard); }
.sd-rscrim-b { position: absolute; left: 0; right: 0; bottom: 0; height: 380px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0) 100%); pointer-events: none; transition: opacity 320ms var(--ease-standard), height 240ms var(--ease-standard); }
.sd-rview.is-note .sd-rscrim-b { height: 460px; }
.sd-ready { position: absolute; left: 20px; right: 20px; top: calc(var(--pt) + 58px); margin: 0; font-size: min(56px, 15cqw); line-height: 0.965; font-weight: 600; letter-spacing: -0.04em; color: var(--text-on-media); transition: opacity 320ms var(--ease-standard); pointer-events: none; }
.sd-ctrls { position: absolute; inset: 0; pointer-events: none; transition: opacity 320ms var(--ease-standard), visibility 0s linear 0s; }
.sd-ctrls > * { pointer-events: auto; }
.sd-rview:not(.is-player) .sd-ctrls, .sd-rview:not(.is-player) .sd-rscrim-b { opacity: 0; }
.sd-rview:not(.is-player) .sd-ctrls > * { pointer-events: none; }
.sd-rview.is-player .sd-ready, .sd-rview.is-player .sd-rscrim-t { opacity: 0; }
.sd-rview.is-player .sd-rscrim-t { opacity: 1; }
.sd-rview.is-bare .sd-ctrls, .sd-rview.is-bare .sd-rscrim-b, .sd-rview.is-bare .sd-rscrim-t { opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-standard), visibility 0s linear 320ms; }
.sd-rview.is-bare .sd-ctrls > * { pointer-events: none; }

.sd-hbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(247, 246, 242, 0.25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 320ms var(--ease-standard), visibility 0s linear 320ms; }
.sd-hbar i { display: block; width: var(--p, 0%); height: 3px; background: var(--text-on-media); }
.sd-rview.is-bare .sd-hbar { opacity: 1; visibility: visible; transition: opacity 320ms var(--ease-standard), visibility 0s linear 0s; }

.sd-mround { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-on-media); background: var(--overlay-media-chrome); border: 1px solid rgba(247, 246, 242, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.sd-r-close, .sd-r-more { position: absolute; top: calc(var(--pt) + 4px); }
.sd-r-close { left: 20px; }
.sd-r-more { right: 20px; }
.sd-bigplay { position: absolute; left: 50%; top: 46.5%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-on-media); background: rgba(11, 12, 14, 0.5); border: 1px solid rgba(247, 246, 242, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard); }
.sd-bigplay svg { margin-left: 3px; }
.sd-bigplay:active { transform: scale(0.96); }
.sd-rview.is-playing .sd-bigplay, .sd-rview.is-note .sd-bigplay, .sd-rview.has-layer .sd-bigplay, .sd-rview.is-stub .sd-bigplay { opacity: 0; pointer-events: none; visibility: hidden; }

.sd-rstack { position: absolute; left: 20px; right: 20px; bottom: var(--pb); display: flex; flex-direction: column; gap: 16px; }
.sd-rgroup { display: flex; flex-direction: column; gap: 10px; }
.sd-rnote { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border-radius: 18px; background: rgba(11, 12, 14, 0.6); border: 1px solid rgba(247, 246, 242, 0.14); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: m-rise 240ms var(--ease-standard) both; }
.sd-rnote .cap { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.sd-rnote p { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.sd-ptag { align-self: flex-start; display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: rgba(255, 191, 91, 0.16); color: #FFBF5B; font-size: 11px; line-height: 14px; font-weight: 600; }
.sd-rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--overlay-media-chrome); border: 1px solid rgba(247, 246, 242, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--text-on-media); font-size: 14px; line-height: 18px; font-weight: 600; }
.sd-chip::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; }
.sd-chip svg:last-child { transition: transform 200ms var(--ease-standard); }
.sd-chip[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.sd-rate { display: flex; gap: 8px; }
.sd-rbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-on-media); background: var(--overlay-media-chrome); border: 1px solid rgba(247, 246, 242, 0.18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.sd-rbtn::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.sd-rbtn[aria-pressed="true"] { background: var(--text-on-media); color: #0B0C0E; border-color: var(--text-on-media); }
.sd-rbtn[aria-pressed="true"] svg { fill: currentColor; }
.sd-rbtn.is-down svg { transform: rotate(180deg); }

.sd-scrub { display: flex; align-items: center; gap: 12px; }
.sd-pp .i-pause { display: none; }
.sd-rview.is-playing .sd-pp .i-pause { display: block; }
.sd-rview.is-playing .sd-pp .i-play { display: none; }
.sd-rail { --p: 0%; position: relative; flex: 1 1 auto; min-width: 0; height: 44px; display: flex; align-items: center; }
.sd-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(247, 246, 242, 0.3); }
.sd-rail i { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--text-on-media); width: var(--p); }
.sd-rail b { position: absolute; top: 50%; left: var(--p); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--text-on-media); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.sd-rail input { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; opacity: 0; cursor: pointer; touch-action: pan-y; }
/* рамка только при фокусе с клавиатуры: клик мышью или пальцем её не показывает */
.sd-rail:has(input:focus-visible) { outline: 3px solid #8DB6FF; outline-offset: 2px; border-radius: 8px; }
.sd-rail input:focus-visible { outline: none; }
.sd-time { flex: none; font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-on-media); }
.sd-acts { display: flex; gap: 8px; }
.sd-pill { flex: 1; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 24px; font-size: 15px; line-height: 20px; font-weight: 600; }
.sd-pill.is-media { background: rgba(11, 12, 14, 0.5); border: 1px solid rgba(247, 246, 242, 0.14); color: var(--text-on-media); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.sd-pill.is-solid { background: #F7F6F2; color: #0B0C0E; }
.sd-ract { display: flex; justify-content: center; gap: 4px; }
.sd-tx { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; white-space: nowrap; min-width: 0; border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-on-media); }
.sd-tx:active { background: rgba(247, 246, 242, 0.12); }
.sd-tx .chip { padding: 2px 7px; border-radius: 999px; background: rgba(247, 246, 242, 0.2); font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* layers over the result: menu, alert, sheet */
.sd-rl { position: absolute; inset: 0; z-index: 50; }
.sd-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }
.sd-scrim.is-dim { background: var(--overlay-scrim); }
@keyframes sd-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sd-sheet { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.sd-menu { position: absolute; top: calc(var(--pt) + 54px); right: 20px; width: 262px; padding: 4px 0; border-radius: 16px; overflow: hidden; background: rgba(38, 38, 42, 0.86); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); color: var(--text-on-media); transform-origin: top right; animation: sd-pop 180ms var(--ease-standard) both; }
.sd-mi { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 46px; padding: 0 16px; font-size: 16px; line-height: 21px; text-align: left; color: inherit; }
.sd-mi + .sd-mi { border-top: 1px solid rgba(247, 246, 242, 0.1); }
.sd-mi:active { background: rgba(247, 246, 242, 0.1); }
.sd-mi svg { opacity: 0.8; }
.sd-mi.is-danger { color: #FF7A6E; }
.sd-msep { height: 8px; background: rgba(0, 0, 0, 0.22); }
.sd-msep + .sd-mi { border-top: 0; }
.sd-alert { position: absolute; left: 50%; top: 38%; width: 270px; margin-left: -135px; border-radius: 16px; overflow: hidden; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-floating); text-align: center; animation: sd-pop 180ms var(--ease-standard) both; }
.sd-alert-b { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px 18px; }
.sd-alert-b h2 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.sd-alert-b p { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.sd-alert-r { display: flex; border-top: 1px solid var(--divider-default); }
.sd-alert-r button { flex: 1; height: 48px; font-size: 17px; line-height: 22px; font-weight: 500; color: var(--feedback-error); }
.sd-alert-r button:first-child { font-weight: 600; color: var(--text-accent); border-right: 1px solid var(--divider-default); }
.sd-alert-r button:active { background: var(--bg-surface-pressed); }
.sd-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 8px 20px 34px; border-radius: 24px 24px 0 0; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-floating); animation: sd-sheet 260ms var(--ease-standard) both; }
.sd-sh-top { display: flex; align-items: center; justify-content: space-between; margin: 0 -12px 0 0; }
.sd-sh-sp { width: 44px; }
.sd-sh-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--divider-strong); }
.sd-sh-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--icon-secondary); }
.sd-sheet h2 { margin: 4px 0 0; font-size: 32px; line-height: 34px; font-weight: 600; letter-spacing: -0.025em; }
.sd-sheet > p { margin: 8px 0 0; font-size: 16px; line-height: 22px; color: var(--text-secondary); }
.sd-opts { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sd-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--bg-surface-subtle); text-align: left; }
.sd-opt:active { background: var(--bg-surface-pressed); }
.sd-opt-i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-surface); color: var(--icon-primary); }
.sd-opt-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sd-opt-t b { font-size: 16px; line-height: 20px; font-weight: 600; }
.sd-opt-t span { font-size: 14px; line-height: 19px; color: var(--text-secondary); }

.sd-toast { position: absolute; left: 20px; right: 20px; top: calc(var(--pt) + 64px); z-index: 70; display: flex; justify-content: center; pointer-events: none; }
.sd-toast > span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 9px 16px; border-radius: 20px; background: rgba(11, 12, 14, 0.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #F7F6F2; font-size: 14px; line-height: 18px; font-weight: 600; animation: m-rise 240ms var(--ease-standard) both; }
.sd-toast svg { flex: none; }

/* ---------- narrow screens: a phone inside the phone, plus an optional full-screen mode ---------- */
@media (max-width: 520px) {
  .sd-fit { width: 100%; height: auto; }
  .sd-device { position: relative; width: 100%; padding: 6px; border-radius: 42px; transform: none; box-shadow: 0 0 0 1.5px rgba(247, 246, 242, 0.2), 0 24px 60px rgba(0, 0, 0, 0.5); }
  /* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
  .sd-screen { --pt: 54px; --pb: 30px; width: 100%; height: var(--sd-h, clamp(560px, calc(100svh - 190px), 844px)); border-radius: 36px; }
  .sd-island { display: block; }
  .sd-sbtn.sd-only-narrow { display: inline-flex; }
  .sd-ctl { position: static; order: 2; justify-content: center; }
  .sd-again { width: 44px; height: 44px; }
  .sd-again-tip { display: none; }
  .sd-mr { font-size: min(16px, 4.6cqw); }
  .sd-mood { gap: 4px; }
  .sd-mood-add { width: 56px; }
  .sd-tx { padding: 0 8px; gap: 5px; }
}
.sd-stage.is-full { position: fixed; inset: 0; z-index: 1000; gap: 0; justify-content: stretch; align-items: stretch; background: var(--bg-canvas); }
/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site
   Строка Mood помещается в узкий телефон; кнопка сохраняет цель 44 px. */
@container (max-width: 300px) {
  .sd-mood { gap: 2px; }
  .sd-mood .sd-mr { gap: 6px; }
  .sd-mood-add { width: 44px; }
}
.sd-stage.is-full .sd-fit { display: flex; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; }
.sd-stage.is-full .sd-device { position: relative; flex: 1; min-height: 0; width: 100%; padding: 0; display: flex; border-radius: 0; box-shadow: none; background: none; transform: none; }
.sd-stage.is-full .sd-screen { --pt: max(env(safe-area-inset-top), 14px); --pb: max(env(safe-area-inset-bottom), 24px); flex: 1; height: auto; border-radius: 0; margin: 0; }
/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
.sd-stage.is-full .sd-main.is-scroll { overscroll-behavior-y: contain; }
.sd-stage.is-full .sd-ctl { padding: 10px 16px max(env(safe-area-inset-bottom), 10px); }

/* ---------- motion ported from the app canvas (motion.css) ---------- */
@keyframes m-crop {
  0%, 26% { transform: translate3d(0, 0, 0); }
  32%, 58% { transform: translate3d(-46px, 0, 0); }
  64%, 90% { transform: translate3d(38px, 0, 0); }
  96%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-strip-a {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(0, -22px, 0); }
  50%, 72% { transform: translate3d(0, 10px, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-strip-b {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(0, 18px, 0); }
  50%, 72% { transform: translate3d(0, -14px, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-strip-c {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(0, -8px, 0); }
  50%, 72% { transform: translate3d(0, 20px, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-half-l {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(-6px, 0, 0); }
  50%, 72% { transform: translate3d(4px, 0, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-half-r {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(6px, 0, 0); }
  50%, 72% { transform: translate3d(-4px, 0, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-editline {
  0%, 20% { transform: translate3d(0, 0, 0); }
  24%, 46% { transform: translate3d(90px, 0, 0); }
  50%, 72% { transform: translate3d(-90px, 0, 0); }
  76%, 100% { transform: translate3d(0, 0, 0); }
}
@keyframes m-reel {
  0% { left: 103.608%; width: 30.928%; top: 25%; height: 50%; background-color: var(--lv-ink); opacity: 0; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  15%, 25% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  40%, 50% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  65%, 75% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  90%, 100% { left: -34.536%; width: 30.928%; top: 25%; height: 50%; background-color: var(--lv-ink); opacity: 0; }
}
.m-reel { animation: m-reel 2600ms linear infinite; }
@keyframes m-ga-0 {
  0%, 12% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 0%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 0%; width: 13.402%; top: 16.667%; height: 66.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 0%; width: 13.402%; top: 30%; height: 40%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 0%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.m-ga-0 { animation: m-ga-0 2600ms linear infinite; }
@keyframes m-ga-1 {
  0%, 12% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 17.526%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 17.526%; width: 13.402%; top: 26.667%; height: 46.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 17.526%; width: 13.402%; top: 20%; height: 60%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 17.526%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.m-ga-1 { animation: m-ga-1 2600ms linear infinite; }
@keyframes m-ga-2 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 35.052%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 35.052%; width: 7.216%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 35.052%; width: 7.216%; top: 3.333%; height: 93.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 35.052%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.m-ga-2 { animation: m-ga-2 2600ms linear infinite; }
@keyframes m-ga-3 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 46.392%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 46.392%; width: 7.216%; top: 6.667%; height: 86.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 46.392%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 46.392%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.m-ga-3 { animation: m-ga-3 2600ms linear infinite; }
@keyframes m-ga-4 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 57.732%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 57.732%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 57.732%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 57.732%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.m-ga-4 { animation: m-ga-4 2600ms linear infinite; }
@keyframes m-ga-5 {
  0%, 12% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 69.072%; width: 13.402%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 69.072%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 69.072%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 69.072%; width: 13.402%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.m-ga-5 { animation: m-ga-5 2600ms linear infinite; }
@keyframes m-ga-6 {
  0%, 12% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 86.598%; width: 13.402%; top: 28.333%; height: 43.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 86.598%; width: 13.402%; top: 16.667%; height: 66.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 86.598%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 86.598%; width: 13.402%; top: 28.333%; height: 43.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.m-ga-6 { animation: m-ga-6 2600ms linear infinite; }
@keyframes m-sn-l {
  0%, 10% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 21.2% { left: 0%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  25.2% { left: 0%; width: 30.928%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  33.2%, 68% { left: 0%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); }
}
.m-sn-l { animation: m-sn-l 2800ms linear infinite; }
@keyframes m-sn-c {
  0%, 10% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 37.5% { left: 35.052%; width: 29.897%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  41.5% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  49.5%, 68% { left: 35.052%; width: 29.897%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); }
}
.m-sn-c { animation: m-sn-c 2800ms linear infinite; }
@keyframes m-sn-r {
  0%, 10% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 53.7% { left: 69.072%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  57.7% { left: 69.072%; width: 30.928%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  65.7%, 68% { left: 69.072%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); }
}
.m-sn-r { animation: m-sn-r 2800ms linear infinite; }
@keyframes m-sn-head {
  0%, 12% { left: -4.124%; opacity: 0; }
  16% { left: -4.124%; opacity: 1; }
  62% { left: 93.567%; opacity: 1; }
  66%, 100% { left: 102.062%; opacity: 0; }
}
.m-sn-head { animation: m-sn-head 2800ms linear infinite; }


/* ---------- reduced motion: no looping motion, layout changes crossfade ---------- */
@media (prefers-reduced-motion: reduce) {
  .sd *, .sd *::before, .sd *::after { animation: none !important; }
  .sd-e, .sd-cg, .sd-cgslot, .sd-mid, .sd-rv, .sd-word .cut { transition-property: opacity !important; transition-duration: 200ms !important; }
  .sd-e .pst { transition-duration: 200ms; }
  .sd-dots span { opacity: 1; }
  .sd-wave rect { transform: none; opacity: 1; }
  .sd-phase .bar i { transition: none; }
  .sd.is-hint .sd-btn[data-act="create"]::after,
  .sd.is-hint .sd-steps li:first-child b::after { box-shadow: 0 0 0 4px color-mix(in srgb, var(--action-accent) 45%, transparent); }
}

/* ---------- место на странице: тёмная карточка, как How wild и финальный экран ---------- */
.sd { margin: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0; border-radius: clamp(28px, 3vw, 44px);
  font-family: "Instrument Sans", -apple-system, system-ui, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
#wild { margin-top: clamp(8px, 1.2vw, 16px); }
#join { margin-top: clamp(8px, 1.2vw, 16px); }

/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
.sd-rv .sd-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-rv > video { opacity: 0; transition: opacity 180ms ease-out; }
.sd-rv > video.is-decoded { opacity: 1; }
.sd-stage.is-full .sd-island { display: none; }
@media(prefers-reduced-motion:reduce) { .sd-rv > video { transition: none; } }
