/* ShopMyWay page CSS. The layout, type, buttons, nav and footer come from the kit in assets/.
   Everything here sits inside a visual: the drawn product UI (sm-*) and its three animated sequences. */

/* ---------- shared UI tokens ---------- */
.ui { --fx-accent: #f6e016; --fx-accent-ink: #0d2a1c; --fx-ink: #0d2a1c; --fx-muted: #5f6b64; --ui-radius: 14px;
  --sm-ok: #17673f; --sm-ok-bg: #e4f3ea; --sm-no: #a3271b; --sm-no-bg: #fbe9e6; --sm-sun: #fdf6b8;
  font-family: var(--font-text); color: var(--u-ink); font-size: 13px; line-height: 1.4; }
.ui b { font-weight: 600; } .ui small { font-size: 12px; color: var(--u-muted); display: block; }
.ui svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.sm-win, .sm-deal, .sm-card, .sm-console { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.sm-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); font-size: 12px; white-space: nowrap; }
.sm-bar__t { overflow: hidden; text-overflow: clip; }
.sm-dots { display: inline-flex; gap: 5px; } .sm-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--u-fill-3); }
.sm-tag { margin-left: auto; font-size: 11px; line-height: 1; padding: 5px 8px; border-radius: 99px; color: var(--u-muted); background: var(--u-fill); border: 1px dashed var(--u-line-2); white-space: nowrap; flex: none; }
.sm-ava, .sm-shop, .sm-trophy, .sm-shield, .sm-spark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none; }
.sm-ava--you { background: #0d2a1c; color: #f7f7f7; border-radius: 50%; }
.sm-shop svg, .sm-ava svg, .sm-trophy svg { width: 18px; height: 18px; }
.sm-shop--a { background: #e4f3ea; color: #17673f; } .sm-shop--b { background: #fdeedd; color: #9a5a12; }
.sm-shop--c { background: #e3f0f6; color: #1d5f7c; } .sm-shop--d { background: #f4e8ee; color: #8c3157; }
.sm-trophy { background: var(--sm-sun); color: #0d2a1c; } .sm-shield { background: var(--sm-ok-bg); color: var(--sm-ok); }
.sm-spark { width: 22px; height: 22px; border-radius: 7px; background: var(--sm-sun); color: #0d2a1c; }
.sm-spark svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sm-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--u-fill-2); font-size: 12px; white-space: nowrap;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, box-shadow .2s; }
.sm-chip.is-off, .sm-ref.is-off { opacity: 0; transform: translateY(4px) scale(.96); }
.sm-ref { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 6px; border-radius: 99px; font-size: 12px; white-space: nowrap; color: var(--sm-ok); background: var(--sm-ok-bg);
  transition: opacity .3s var(--ease), transform .3s var(--ease-enter, cubic-bezier(.22,1,.36,1)); }
.sm-ref svg { width: 14px; height: 14px; }
.sm-ref.is-stamp { animation: sm-stamp .45s cubic-bezier(.22,1,.36,1); }
@keyframes sm-stamp { from { transform: scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 1. hero: the live negotiation ---------- */
.hero__art { background:
    radial-gradient(70% 60% at 18% 10%, color-mix(in oklab, var(--ground-surface, #e3ebe2) 70%, white), transparent 70%),
    radial-gradient(60% 50% at 92% 100%, color-mix(in oklab, var(--ground-bg, #cfdccd) 82%, #f6e016), transparent 70%),
    var(--ground-bg, #cfdccd); }
.sm-win .sm-body { padding: 14px var(--ly-cut-room, 48px) 0 14px; display: grid; gap: 10px; }
.sm-intent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--u-fill); border: 1px solid var(--u-line); }
.sm-intent__txt { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.sm-caret { display: none; width: 2px; height: 16px; margin-left: 2px; background: currentColor; vertical-align: -3px; }
.is-typing .sm-caret { display: inline-block; animation: sm-blink 1s steps(1) infinite; }
@keyframes sm-blink { 50% { opacity: 0; } }
.sm-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0d2a1c; color: #f7f7f7; flex: none; }
.sm-send svg { width: 14px; height: 14px; stroke-width: 1.7; }
.sm-status { display: flex; align-items: center; gap: 8px; color: var(--u-muted); font-size: 12px; min-height: 22px; }
.sm-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; border: 1px solid var(--u-line);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s, background .3s, box-shadow .3s; }
.sm-row.is-wait { opacity: 0; transform: translateY(8px); }
.sm-row.is-best { border-color: #0d2a1c; background: color-mix(in oklab, #f6e016 12%, white); box-shadow: 0 0 0 3px color-mix(in oklab, #f6e016 55%, transparent); }
.sm-row__main { display: grid; gap: 4px; min-width: 0; }
.sm-row__main > b, .sm-row__main > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-lane { display: grid; grid-template-columns: 8px 56px 8px minmax(0, 1fr); align-items: center; gap: 6px; height: 22px; margin-top: 2px; }
.sm-lane__a, .sm-lane__s { width: 8px; height: 8px; border-radius: 50%; background: #0d2a1c; }
.sm-lane__s { background: var(--u-fill-3); border: 1px solid var(--u-line-2); }
.sm-lane__line { position: relative; height: 1px; background: var(--u-line-2); }
.sm-lane__dot { position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #f6e016; box-shadow: 0 0 0 1px #0d2a1c; opacity: 0; transform: translateX(0); }
.sm-lane.go-s .sm-lane__dot { opacity: 1; transform: translateX(50px); transition: transform .55s cubic-bezier(.65,0,.35,1), opacity .1s; }
.sm-lane.go-a .sm-lane__dot { opacity: 1; transform: translateX(0); transition: transform .55s cubic-bezier(.65,0,.35,1), opacity .1s; }
.sm-lane.at-s .sm-lane__dot { transform: translateX(50px); }
.sm-say { font-size: 12px; color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; transition: opacity .2s; }
.sm-say.is-off { opacity: 0; }
.sm-price { text-align: right; min-width: 52px; }
.sm-price b { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.sm-price b.is-flip { animation: sm-flip .4s cubic-bezier(.22,1,.36,1); }
@keyframes sm-flip { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.sm-row--last { opacity: .72; }

.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.sm-deal { padding: 14px 16px 12px; display: grid; gap: 0; }
.sm-deal__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; font-size: 14px; }
.sm-pill-ok { margin-left: auto; font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--sm-ok-bg); color: var(--sm-ok); }
.sm-deal__line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
.sm-deal__line s { color: var(--u-muted); } .sm-deal__line em { font-style: normal; color: var(--sm-ok); font-weight: 600; }
.sm-deal__line--big b { font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
[data-sm-deal] { transition: opacity .35s var(--ease), transform .35s var(--ease); }
[data-sm-deal].is-off { opacity: 0; transform: translateY(6px); }
.sm-deal.is-pop { animation: sm-pop .5s cubic-bezier(.22,1,.36,1); }
@keyframes sm-pop { from { transform: translateY(10px) scale(.97); } to { transform: none; } }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
@media (max-width: 639px) {
  .sm-win .sm-bar .sm-bar__t { display: none; } .sm-win .sm-bar .sm-tag { margin-left: auto; }
  .sm-win .sm-body { padding: 10px calc(var(--ly-cut-room, 48px) - 8px) 0 10px; gap: 8px; }
  .sm-intent { padding: 8px 10px; } .sm-intent__txt { font-size: 14px; }
  .sm-row { padding: 10px; gap: 10px; } .sm-row .sm-lane { display: none; }
  .sm-status { display: none; }
}

/* ---------- 2. how it works: three drawn cards in the moment's frame ---------- */
[data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit { background:
    radial-gradient(70% 60% at 18% 10%, color-mix(in oklab, var(--ground-surface, #e3ebe2) 70%, white), transparent 70%), var(--ground-bg, #cfdccd); }
.sm-card { padding: 18px; display: grid; gap: 12px; width: min(100%, 400px); }
.sm-step__top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sm-quote { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; margin: 0; color: var(--u-ink); }
.sm-lock { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--sm-ok-bg); color: var(--sm-ok); font-size: 12px; }
.sm-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--u-line); }
.sm-mini > span:nth-of-type(1):not(.sm-shop), .sm-mini > .sm-shop + span { flex: 1; min-width: 0; }
.sm-mini .sm-shop { width: 26px; height: 26px; border-radius: 8px; } .sm-mini .sm-shop svg { width: 15px; height: 15px; }
.sm-tick, .sm-cross { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--sm-ok-bg) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.800 6.300l2.200 2.200 4.200-4.600' fill='none' stroke='%2317673f' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sm-cross { background-color: var(--sm-no-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.500 3.500l5 5M8.500 3.500l-5 5' fill='none' stroke='%23a3271b' stroke-width='1.600' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sm-before { display: flex; align-items: flex-end; gap: 14px; padding: 6px 0 2px; }
.sm-before > span { display: grid; gap: 2px; } .sm-before s { font-size: 22px; color: var(--u-muted); letter-spacing: -0.02em; }
.sm-before b { font-size: 34px; line-height: 1; letter-spacing: -0.035em; }
.sm-before > svg { width: 26px; height: 13px; margin-bottom: 9px; color: var(--u-muted); }
.sm-before .sm-back { align-self: flex-end; margin-bottom: 4px; padding: 4px 9px; border-radius: 99px; background: var(--sm-sun); font-weight: 600; font-size: 12px; }
.sm-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--u-line-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.sm-btn--go { background: #0d2a1c; color: #f7f7f7; border-color: #0d2a1c; }
.sm-btn.is-tap, .sm-chip.is-tap { transform: scale(.95); box-shadow: 0 0 0 4px color-mix(in oklab, #f6e016 70%, transparent); }
@media (max-width: 639px) { .sm-card { padding: 14px; gap: 9px; } .sm-quote { font-size: 18px; } .sm-step .sm-tag { display: none; } }

/* ---------- 3. buyers: the cockpit window (the kit's app-frame recipe) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane--list::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.sm-thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px; position: absolute; inset: 40px 0 0 0; overflow: hidden; }
.sm-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--u-fill); display: grid; gap: 4px; flex: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.sm-msg.is-off { display: none; }
.sm-msg.is-in { animation: sm-in .4s cubic-bezier(.22,1,.36,1); }
@keyframes sm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sm-msg p { margin: 0; font-size: 13px; color: var(--u-ink); max-width: none; }
.sm-who { font-size: 11px; color: var(--u-muted); }
.sm-msg--agent { align-self: flex-end; background: #0d2a1c; } .sm-msg--agent p { color: #f7f7f7; } .sm-msg--agent .sm-who { color: #b9c6be; }
.sm-msg--seller { align-self: flex-start; } .sm-msg--seller .sm-ref { justify-self: start; }
.sm-msg--you { align-self: flex-end; background: var(--sm-sun); border: 1px dashed color-mix(in oklab, #0d2a1c 35%, transparent); }
.sm-offer { padding: 22px 24px; display: grid; gap: 18px; align-content: start; height: 100%; }
.sm-offer__head { display: flex; align-items: center; gap: 12px; } .sm-offer__head > div { min-width: 0; } .sm-offer__head b { font-size: 15px; }
.sm-offer__head .sm-shop { width: 40px; height: 40px; border-radius: 12px; } .sm-offer__head .sm-shop svg { width: 22px; height: 22px; }
.sm-offer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.200fr); gap: 20px; align-items: start; padding: 18px; border-radius: 14px; background: var(--u-fill); }
.sm-offer__price b { display: block; font-size: 56px; line-height: 1; letter-spacing: -0.045em; font-weight: 600; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.sm-offer__price b.is-flip { animation: sm-flip .45s cubic-bezier(.22,1,.36,1); }
.sm-win-line { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 99px; background: var(--sm-sun); font-size: 12px; font-weight: 600; white-space: nowrap; transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
.sm-win-line.is-off { opacity: 0; transform: scale(.9); }
.sm-terms { margin: 0; display: grid; gap: 0; }
.sm-terms > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--u-line); } .sm-terms > div:first-child { border-top: 0; padding-top: 2px; }
.sm-terms dt { color: var(--u-muted); } .sm-terms dd { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.sm-terms dd.is-good { color: var(--sm-ok); } .sm-terms dd.is-flip { animation: sm-flip .4s cubic-bezier(.22,1,.36,1); }
.sm-coach { display: grid; gap: 8px; }
.sm-chip--tap { height: 30px; padding: 0 12px; background: var(--u-bg); border: 1px solid var(--u-line-2); font-size: 13px; }
.sm-chip--tap.is-used { background: var(--sm-sun); border-color: color-mix(in oklab, #0d2a1c 35%, transparent); }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: 190px auto; margin-top: var(--s-6); }
  .sm-thread { padding: 10px; gap: 8px; } .sm-msg { padding: 7px 10px; }
  .sm-offer { padding: 14px; gap: 12px; } .sm-offer__head .sm-tag { display: none; }
  .sm-offer__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; } .sm-offer__price b { font-size: 40px; margin: 2px 0 6px; }
  .sm-coach .sm-chip:nth-child(n+3) { display: none; } .sm-acts .sm-btn:nth-child(2) { display: none; }
}

/* ---------- 4. sellers: the console ---------- */
.sm-facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sm-facts li { padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-body); }
.sm-console__body { padding: 16px 18px 18px; display: grid; gap: 16px; }
.sm-sec { display: grid; gap: 8px; } .sm-sec__t { font-size: 12px; color: var(--u-muted); }
.sm-slider { display: grid; grid-template-columns: 124px minmax(0, 1fr) 48px; gap: 12px; align-items: center; height: 30px; }
.sm-slider output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-track { position: relative; height: 6px; border-radius: 99px; background: var(--u-fill-3); }
.sm-track i { position: absolute; inset: 0; border-radius: inherit; background: #0d2a1c; clip-path: inset(0 calc(100% - var(--v)) 0 0 round 99px); transition: clip-path .7s cubic-bezier(.65,0,.35,1); }
.sm-track { --w: 100%; } .sm-slider { --vn: var(--v); }
.sm-track b { position: absolute; top: 50%; left: var(--v); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid #0d2a1c; box-shadow: 0 2px 6px rgb(0 0 0 / .18); transition: left .7s cubic-bezier(.65,0,.35,1), box-shadow .2s; }
.sm-slider.is-grab .sm-track b { box-shadow: 0 0 0 5px color-mix(in oklab, #f6e016 70%, transparent), 0 2px 6px rgb(0 0 0 / .18); }
.sm-levers { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.sm-lever { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px; border: 1px solid var(--u-line-2); font-size: 12px; color: var(--u-muted); }
.sm-lever::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--u-fill-3); }
.sm-lever.is-on { color: var(--u-ink); } .sm-lever.is-on::before { background: var(--sm-ok); }
.sm-check { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--u-line); transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s, border-color .3s; }
.sm-check.is-off { opacity: 0; transform: translateX(-12px); }
.sm-check.is-blocked { background: var(--sm-no-bg); border-color: color-mix(in oklab, var(--sm-no) 30%, transparent); }
.sm-check.is-sent { background: var(--sm-ok-bg); border-color: color-mix(in oklab, var(--sm-ok) 30%, transparent); }
.sm-check.is-pending .sm-verdict { opacity: 0; }
.sm-verdict { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: opacity .25s; }
.sm-verdict svg { width: 14px; height: 14px; }
.sm-verdict--ok { color: var(--sm-ok); } .sm-verdict--no { color: var(--sm-no); }
.sm-check .sm-verdict.is-stamp { animation: sm-stamp .45s cubic-bezier(.22,1,.36,1); }
.sm-out { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sm-out > div { padding: 10px 12px; border-radius: 12px; background: var(--u-fill); display: grid; gap: 2px; }
.sm-out dt { font-size: 12px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-out dd { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sm-out dd.is-flip { animation: sm-flip .4s cubic-bezier(.22,1,.36,1); }
@media (max-width: 1023px) { .sm-console { margin-top: var(--s-6); } }
@media (max-width: 639px) {
  .sm-console .sm-bar__t { display: none; } .sm-console__body { padding: 12px; gap: 12px; }
  .sm-slider { grid-template-columns: 104px minmax(0, 1fr) 40px; gap: 8px; height: 26px; }
  .sm-levers { display: none; } .sm-check { padding: 7px 10px; flex-wrap: wrap; gap: 2px 10px; }
  .sm-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sm-out dd { font-size: 18px; } .sm-out > div { padding: 7px 10px; }
  .sm-facts li:nth-child(n+2) { display: none; }
}

/* ---------- 5. guardrails: three still cards ---------- */
#guardrails .panel { --p-h: 300px; display: grid; place-items: center; padding: 24px; background:
    radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface, #e3ebe2) 70%, white), transparent 70%), var(--ground-bg, #cfdccd); }
.sm-still { width: 100%; max-width: 340px; gap: 4px; padding: 16px; }
.sm-still .sm-step__top { padding-bottom: 8px; }
.sm-still .sm-shield { width: 28px; height: 28px; border-radius: 9px; }
.sm-see { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: var(--u-fill-2); white-space: nowrap; }
.sm-see--you { background: var(--sm-sun); } .sm-see--none { background: var(--sm-ok-bg); color: var(--sm-ok); }
.sm-mini--log code { font-family: var(--font-mono); font-size: 12px; color: var(--u-muted); }
.sm-mini--log > span { flex: 1; }
@media (max-width: 1279px) { .sm-still .sm-tag { display: none; } }
@media (max-width: 639px) { #guardrails .panel { --p-h: 196px; padding: 14px; } .sm-still { padding: 12px; } .sm-still .sm-mini { padding: 6px 0; } .sm-still .sm-step__top { padding-bottom: 4px; }
  #guardrails .card > p { display: none; } }

/* ---------- 6. connections: the diagram panel ---------- */
.sm-dgpanel { --p-h: 480px; }
@media (max-width: 1023px) { .sm-dgpanel { --p-h: 380px; margin-top: var(--s-6); } }
@media (max-width: 639px) { .sm-dgpanel { --p-h: 300px; } }

/* ---------- 7. pilot close ---------- */
.sm-pilot { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.sm-pilot li { display: grid; gap: var(--s-2); padding: var(--s-5) 0 0; border-top: 1px solid var(--line-strong, var(--line)); }
.sm-pilot b { font-family: var(--font-display); font-weight: 500; font-size: var(--t-h3); letter-spacing: -0.02em; line-height: 1.15; }
.sm-pilot span { font-size: var(--t-body); max-width: 44ch; }
.sm-legal-note { color: var(--muted); }
@media (max-width: 639px) { .sm-pilot { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } .sm-pilot li { padding-top: var(--s-4); } }

/* ---------- reduced motion: every sequence rests on its finished picture ---------- */
@media (prefers-reduced-motion: reduce) {
  .ui *, .ui *::before, .ui *::after { animation: none !important; transition: none !important; }
}

/* ---------- fixes after the first look ---------- */
.ui, .hero__art .ui, .mo-pc__visual .ui, #guardrails .panel .ui { --fx-bg: #ffffff; --fx-surface: #f4f5f3; }
.sm-win > .sm-bar { padding-right: calc(var(--ly-cut-room, 48px) + 2px); }
.app > .app__pane--list::after { display: none; }
.sm-thread { padding-bottom: 20px; }
#sellers .stack-5 > * + * { margin-top: var(--s-5); }
#sellers .sm-facts { margin-top: var(--s-6); }
@media (min-width: 1024px) {
  .sm-console__body { padding: 22px 24px 24px; gap: 24px; }
  .sm-console .sm-sec { gap: 12px; }
  .sm-console .sm-slider { height: 40px; grid-template-columns: 136px minmax(0, 1fr) 52px; }
  .sm-console .sm-check { padding: 14px 16px; }
  .sm-console .sm-out > div { padding: 14px 16px; gap: 4px; }
  .sm-console .sm-out dd { font-size: 28px; }
  .sm-console .sm-lever { height: 30px; }
}
#guardrails .panel { --p-h: 400px; }
#guardrails .sm-still { max-width: 360px; padding: 20px; gap: 6px; } #guardrails .sm-still .sm-mini { padding: 12px 0; }
.panel.sm-dgpanel { height: 560px; min-height: 0; }
.panel.sm-dgpanel > .dg { width: 100%; height: 100%; }
@media (max-width: 1023px) { .panel.sm-dgpanel { height: 380px; } }
@media (max-width: 639px) { .panel.sm-dgpanel { height: 300px; } #guardrails .panel { --p-h: 196px; } #guardrails .sm-still { padding: 12px; } #guardrails .sm-still .sm-mini { padding: 6px 0; } }
.sm-pilot.grid { gap: var(--s-5) var(--gutter, 24px); }
.sm-thread { gap: 8px; }
/* at rest on a narrow screen the thread shows its last messages only */
@media (max-width: 1023px) { .app:not(.is-sm-live) .sm-msg:nth-last-child(n+4) { display: none; } }
@media (max-width: 639px) { .app:not(.is-sm-live) .sm-msg:nth-last-child(n+3) { display: none; } .sm-pilot.grid > li { grid-column: 1 / -1; } }

/* the film: 16:9, shown whole on the film's own dark ground */
.sm-film { --ratio: 56.25%; background: #0d2a1c; }
.frame.sm-film > .frame__img { object-fit: contain; background: #0d2a1c; }
.sm-film > video:focus-visible { outline: 3px solid #f7f7f7; outline-offset: -8px; }
ol.sm-chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; color: var(--p-ink); }
ol.sm-chapters li { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0; }
.sm-chapters span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--p-muted); }
@media (max-width: 639px) {
  .sm-chapters { display: grid; gap: 0; font-size: 16px; }
  .sm-chapters li { min-height: 46px; align-items: center; border-top: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
  .sm-chapters li:last-child { border-bottom: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); }
}
/* the cockpit thread shows the newest messages whole: older ones leave, none is cut at the top */
@media (max-width: 1023px) { .app.is-sm-live .sm-msg:has(~ .sm-msg:not(.is-off) ~ .sm-msg:not(.is-off) ~ .sm-msg:not(.is-off)) { display: none; } }
@media (max-width: 639px) {
  .app.ui { grid-template-rows: 214px auto; }
  .app.is-sm-live .sm-msg:has(~ .sm-msg:not(.is-off) ~ .sm-msg:not(.is-off)) { display: none; }
}
/* the seller that walks away: quiet mark, text at full strength */
.sm-row--last { opacity: 1; }
.sm-row--last .sm-shop { opacity: .55; }
@media (max-width: 639px) {
  ol.sm-chapters li { min-height: 56px; flex-direction: row-reverse; justify-content: space-between; }
  #how:not(.is-live) .mo-pc__step + .mo-pc__step { margin-top: 44px; }
}
#close-h { hyphens: manual; }

/* the hero: a dark ground, the words on the left, the live negotiation scene (a canvas, no frame) on the right;
   on a phone the scene sits under the words */
.sm-hero { background: #0d2a1c; }
.sm-hero .hero__text { align-self: start; }
.sm-hero__zone { position: relative; align-self: stretch; min-height: 0; }
.sm-hero__stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sm-hero .btn--secondary { --ink: #0d2a1c; --bg: #f7f7f7; }
@media (max-width: 1023px) { .sm-hero__zone { min-height: clamp(240px, 36svh, 320px); } }
.sm-hero h1 { hyphens: manual; font-size: clamp(38px, 4.4vw, 64px); }
