/* Riff manual animations. One stage per page: a 720x450 canvas (390x600 on phones), scaled to fit.
   The site side is steel and greyscale; the panel is cream with the orange pedal; orange marks what Riff did. */

/* ------------------------------------------------------------------ the frame on the page */

.scene { margin: 26px 0 34px; }
.scene-frame {
  position: relative; width: 100%; aspect-ratio: 720 / 450; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2, #c9ced3); border-radius: 20px; background: #e7e9eb;
  box-shadow: 0 30px 56px -40px rgba(27, 30, 34, .6);
}
.scene-frame.is-tall { aspect-ratio: 390 / 600; }
.scene figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 12px; }
.scene-cap { font-size: 14.5px; line-height: 1.45; color: var(--ink-2, #4a5057); padding-top: 6px; }
.scene-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2, #c9ced3); border-radius: 999px; background: #fff; color: #1b1e22;
  font: 650 13px/1 var(--font, sans-serif); cursor: pointer;
}
.scene-btn:hover { border-color: #1b1e22; }
.scene-btn[hidden] { display: none; }
.scene--dark .scene-frame { border-color: #353a40; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
.scene--dark .scene-cap { color: #bac0c6; }
.scene--dark .scene-btn { background: transparent; border-color: #4a5057; color: #fff3e3; }
.scene--dark .scene-btn:hover { border-color: #fff3e3; }

/* ------------------------------------------------------------------ the canvas */

.sc-canvas {
  --steel: #e7e9eb; --line: #d4d8dc; --ink: #1b1e22; --ink-2: #4a5057; --ink-3: #6b727a; --enamel: #ff6a1a; --cream: #fff3e3; --cream-line: #ead9c4;
  position: absolute; left: 0; top: 0; width: 720px; height: 450px; overflow: hidden;
  transform: scale(var(--k, 1)); transform-origin: 0 0;
  background: var(--steel); color: var(--ink);
  font: 400 12.5px/1.42 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.sc-canvas.is-tall { width: 390px; height: 600px; }
.sc-canvas *, .sc-canvas *::before, .sc-canvas *::after { box-sizing: border-box; }
.sc-canvas p { margin: 0; }
.sc-instant *, .sc-instant *::before, .sc-instant *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
.is-paused .sc-canvas *, .is-paused .sc-canvas *::before, .is-paused .sc-canvas *::after { animation-play-state: paused !important; }
.sc-canvas .is-gone { display: none !important; }
.sc-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.sc-ic svg, .sx-wave svg, .sp-icb svg, .sc-ext svg { width: 100%; height: 100%; display: block; }
.sc-canvas mark { background: rgba(255, 106, 26, .2); color: inherit; border-radius: 3px; padding: 0 1px; }
.sc-canvas mark.sc-link { background: none; color: #1d6fb8; text-decoration: underline; text-underline-offset: 2px; }

@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes sc-blink { 50% { opacity: .25; } }
@keyframes sc-caret { 50% { opacity: 0; } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-bump { 40% { transform: scale(1.14); } }
@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 106, 26, 0); } }
@keyframes sc-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .0); } 25% { box-shadow: 0 0 0 4px rgba(255, 106, 26, .35); } 100% { box-shadow: 0 0 0 4px rgba(255, 106, 26, 0); } }
@keyframes sc-flashtext { 0%, 100% { background-color: transparent; } 30% { background-color: rgba(255, 106, 26, .22); } }
@keyframes sc-drop { 0% { background-color: #fff; } 25% { background-color: #ffe7d9; } 100% { background-color: #fff; } }
@keyframes sc-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
@keyframes sc-bounce { 0% { transform: scale(.4); opacity: 0; } 55% { transform: scale(1.2); opacity: 1; } 75% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes sc-ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes sc-wavelet { to { transform: translateX(-6px); } }
@keyframes sc-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 26, .6); } 100% { box-shadow: 0 0 0 10px rgba(255, 106, 26, 0); } }

.sc-in { animation: sc-in .35s cubic-bezier(.2, .8, .25, 1) both; }
.sc-bump { animation: sc-bump .42s ease-out; }
.sc-flash { animation: sc-flash .9s ease-out; }
.sc-flashtext { animation: sc-flashtext 1s ease-out; border-radius: 4px; }
.sc-drop { animation: sc-drop 1s ease-out; }
.sc-shake { animation: sc-shake .4s ease-in-out; }
.sc-bounce { animation: sc-bounce .5s cubic-bezier(.3, .7, .3, 1) both; }
.sc-ping { animation: sc-ping .8s ease-out 2; }
.sc-blinkonce { animation: sc-blink .5s ease-in-out 2; }
@keyframes sc-fadeout { to { opacity: 0; } }
.sc-canvas .sc-fadeout { animation: sc-fadeout .5s ease forwards !important; }
.sc-swap { opacity: 0; transform: translateY(3px); }

/* ------------------------------------------------------------------ the browser window */

.sc-win { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--steel); }
.sc-bar { flex: none; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; background: #d5d9dd; border-bottom: 1px solid #c2c7cc; }
.sc-dots { display: flex; gap: 6px; }
.sc-dots i { width: 10px; height: 10px; border-radius: 50%; background: #b7bdc3; }
.sc-reload { width: 22px; height: 22px; display: grid; place-items: center; color: #6b727a; border-radius: 6px; }
.sc-reload svg { width: 14px; height: 14px; }
.sc-reload.is-spin svg { animation: sc-spin .45s linear 2; }
.sc-url { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: #f2f3f5; color: #6b727a; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.sc-url .sc-ic { width: 11px; height: 11px; }
.sc-url-t { overflow: hidden; text-overflow: ellipsis; }
.sc-exts { display: flex; align-items: center; gap: 4px; }
.sc-ext { width: 28px; height: 26px; display: grid; place-items: center; padding: 4px; border-radius: 8px; color: #5f666e; transition: background-color .2s; }
.sc-ext--riff { padding: 5px 6px; }
.sc-ext.is-on { background: rgba(255, 106, 26, .2); }
.sc-ext.sc-press, .sc-ext.sc-hover { background: #c4c9ce; }
.sc-body { flex: 1; min-height: 0; display: flex; position: relative; }
.sc-page { flex: 1; min-width: 0; position: relative; overflow: hidden; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sc-side { flex: none; width: 300px; position: relative; overflow: hidden; background: var(--cream); border-left: 1px solid #c2c7cc; transition: width .5s cubic-bezier(.2, .8, .25, 1), border-color .5s; }
.sc-side.is-closed { width: 0; border-left-color: transparent; }
.sc-scroll { position: absolute; left: 0; top: 0; width: 300px; padding: 10px 12px 70px; display: flex; flex-direction: column; gap: 9px; transition: transform .52s cubic-bezier(.3, .7, .3, 1); }
.is-tall .sc-body { flex-direction: column; }
.is-tall .sc-page { flex: 0 0 232px; padding: 12px 14px; justify-content: flex-end; }
.is-tall .sc-body:has(> .sc-side.is-closed) > .sc-page { flex: 1 1 auto; justify-content: flex-start; }
.is-tall .sc-side { width: auto; flex: 1 1 auto; border-left: 0; border-top: 1px solid #c2c7cc; max-height: 400px; transition: max-height .5s cubic-bezier(.2, .8, .25, 1); }
.is-tall .sc-side.is-closed { max-height: 0; border-top-color: transparent; }
.is-tall .sc-scroll { width: 390px; padding: 10px 14px 70px; }

.sc-solo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(#cdd2d6 1px, transparent 1.3px) 0 0 / 16px 16px, var(--steel); }
.sc-side--solo { width: 340px; height: 418px; border: 1px solid #c9ced3; border-radius: 18px; box-shadow: 0 30px 50px -30px rgba(27, 30, 34, .55); }
.sc-side--solo .sc-scroll { width: 340px; padding: 12px 14px 70px; }
.is-tall .sc-side--solo { width: 362px; height: 572px; max-height: none; border-top: 1px solid #c9ced3; }
.is-tall .sc-side--solo .sc-scroll { width: 362px; }
.sc-solo--zoom .sc-side--solo { height: 340px; transform: scale(1.22); }
.is-tall .sc-solo--zoom .sc-side--solo { transform: none; }

/* ------------------------------------------------------------------ the sites */

.sc-av { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: hsl(var(--hue, 210) 14% 50%); color: #fff; font-size: 13px; font-weight: 700; }
.sc-av--me { background: var(--enamel); color: #24160d; }
.sx-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sx-post { padding: 13px 15px 7px; }
.sx-head { display: flex; align-items: center; gap: 10px; }
.sx-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sx-who b { font-size: 13.5px; font-weight: 650; }
.sx-who span { font-size: 11.5px; color: #6b727a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-text { margin-top: 9px !important; font-size: 13.5px; line-height: 1.45; color: #2e3338; }
.sx-quote { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: #4a5057; }
.sx-acts { display: flex; align-items: center; justify-content: space-between; margin: 6px -4px 0; color: #7a8189; }
.sx-acts > .sc-ic { width: 30px; height: 30px; padding: 7.5px; }
.sx-acts--labels { margin: 8px -2px 0; padding-top: 4px; border-top: 1px solid #edf0f2; }
.sx-acts--spread { justify-content: space-around; }
.sx-act { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; font-size: 11.5px; font-weight: 650; color: #6b727a; }
.sx-act .sc-ic { width: 16px; height: 16px; }
.sx-acts--ig { justify-content: flex-start; gap: 4px; }
.sx-sp, .sp-sp { flex: 1; }
.sx-wave { width: 30px; height: 30px; display: grid; place-items: center; padding: 6.5px; border-radius: 50%; background: rgba(255, 90, 31, .12); color: #ff5a1f; transition: transform .15s, background-color .2s, box-shadow .3s; }
.sx-wave--inline { width: 24px; height: 24px; padding: 5px; margin-left: 3px; }
.sx-wave.sc-press { transform: scale(.88); background: rgba(255, 90, 31, .3); box-shadow: 0 0 0 6px rgba(255, 90, 31, .16); }
.sx-wave.is-pulse { animation: sc-pulse 1.1s ease-out infinite; }
.sx-replybox { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; transition: opacity .35s, transform .35s; }
.sx-replybox.is-closed { opacity: 0; transform: translateY(-6px); }
.sx-replybox .sc-av { width: 28px; height: 28px; font-size: 11.5px; background: hsl(28 14% 50%); color: #fff; }
.sx-field { position: relative; flex: 1; min-width: 0; min-height: 30px; display: flex; align-items: center; padding: 5px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; line-height: 1.4; color: #2e3338; transition: border-color .2s, box-shadow .25s; }
.sx-field--round { border-radius: 16px; }
.sx-field--bare { border: 0; padding: 5px 0; }
.sx-field.is-focus { border-color: #6b727a; }
.sx-field.is-fill { border-color: var(--enamel); box-shadow: 0 0 0 3px rgba(255, 106, 26, .18); }
.sx-val { display: block; white-space: pre-line; }
.has-ph .sx-ph, .has-ph .sp-ph { color: #858c94; }
.has-val .sx-ph, .has-val .sp-ph { display: none; }
.sx-btn { flex: none; align-self: center; padding: 6px 13px; border-radius: 999px; background: #3a3f45; color: #fff; font-size: 12px; font-weight: 700; transition: box-shadow .2s, background-color .2s; }
.sx-btn.is-dim { background: #e3e6e9; color: #858c94; }
.sx-btn--text { background: none; color: #4a5057; padding: 6px 4px; }
.sx-btn--big { padding: 9px 18px; font-size: 13px; background: #3a3f45; }
.sx-btn.sc-hover, .sx-enter.sc-hover { box-shadow: 0 0 0 4px rgba(255, 106, 26, .28); }
.sx-enter { flex: none; align-self: center; padding: 4px 8px; border: 1px solid #c9ced3; border-bottom-width: 2.5px; border-radius: 7px; background: #fff; color: #4a5057; font-size: 11px; font-weight: 650; line-height: 1.3; transition: box-shadow .2s; }
.sx-post--ig { padding: 11px 14px 6px; }
.sx-photo { margin: 9px -14px 0; height: 128px; overflow: hidden; }
.sx-photo svg { width: 100%; height: 100%; display: block; }
.sx-caption { margin-top: 2px !important; font-size: 12.5px; }
.sx-igcomment { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid #edf0f2; }
.sc-page--ig { padding-top: 10px; }

/* chats */
.sc-page--chat { justify-content: flex-end; align-items: flex-end; }
.sx-ghostpost { position: absolute; left: 18px; top: 16px; right: 18px; height: 150px; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.sx-ghostpost i { display: block; height: 10px; border-radius: 5px; background: #e7e9eb; }
.sx-ghostpost i:first-child { width: 40%; height: 14px; }
.sx-ghostpost i:nth-child(3) { width: 80%; }
.sx-ghostpost--tall { height: 260px; }
.sx-chat { position: relative; z-index: 1; width: 300px; display: flex; flex-direction: column; background: #fff; border: 1px solid #c9ced3; border-radius: 14px 14px 10px 10px; overflow: hidden; box-shadow: 0 20px 36px -22px rgba(27, 30, 34, .55); }
.sx-chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #edf0f2; }
.sx-chat-head .sc-av { width: 28px; height: 28px; font-size: 11.5px; }
.sx-chat-head .sx-who b { font-size: 12.5px; }
.sx-chat-head .sx-who span { font-size: 10.5px; }
.sx-chat-head > .sc-ic { width: 17px; height: 17px; color: #7a8189; }
.sx-msgs { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-height: 120px; justify-content: flex-end; }
.sx-msg { max-width: 84%; padding: 6px 10px; border-radius: 14px 14px 14px 4px; background: #eef0f2; color: #2e3338; font-size: 12px; line-height: 1.4; align-self: flex-start; }
.sx-msg.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #5a6168; color: #fff; }
.sx-compose { display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-top: 1px solid #edf0f2; }
.sx-compose .sx-field { min-height: 30px; }
.sx-compose .sx-wave { width: 28px; height: 28px; padding: 6px; align-self: center; }
.sx-chat-tools { align-self: center; color: #7a8189; }
.sx-chat-tools .sc-ic { width: 18px; height: 18px; }
.sc-page--inbox { flex-direction: row; align-items: stretch; justify-content: flex-start; padding: 0; gap: 0; }
.sc-page--inbox .sx-chat { width: auto; flex: 1; border-radius: 0; border: 0; border-left: 1px solid #d4d8dc; box-shadow: none; }
.sc-page--inbox .sx-msgs { flex: 1; }
.sx-inbox { width: 150px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #fff; }
.sx-inbox > b { padding: 0 6px 6px; font-size: 13px; }
.sx-inbox-row { display: flex; align-items: center; gap: 7px; padding: 6px; border-radius: 9px; }
.sx-inbox-row.is-on { background: #eef0f2; }
.sx-inbox-row .sc-av { width: 26px; height: 26px; font-size: 11px; }
.sx-inbox-row > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sx-inbox-row b { font-size: 11.5px; }
.sx-inbox-row i { font-style: normal; font-size: 10.5px; color: #6b727a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-tall .sc-page--chat .sx-chat { width: 100%; }
.is-tall .sc-page--inbox .sx-inbox { display: none; }
.is-tall .sx-ghostpost { display: none; }
.is-tall .sx-msgs { min-height: 0; }

/* the store page (A1) */
.sx-store { display: flex; align-items: center; gap: 14px; padding: 16px; }
.sx-store-icon { width: 56px; height: 56px; flex: none; }
.sx-store-icon svg { width: 100%; height: 100%; }
.sx-store-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sx-store-main b { font-size: 14px; line-height: 1.25; }
.sx-store-main > span { font-size: 11.5px; color: #6b727a; }
.sx-stars { display: flex; align-items: center; gap: 1px; color: #9aa1a9; }
.sx-stars .sc-ic { width: 12px; height: 12px; }
.sx-store-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-store-shots i { height: 110px; border-radius: 12px; background: #d9dde1; }
.is-tall .sx-store { flex-wrap: wrap; }
.is-tall .sx-store-main { flex: 1 1 180px; }
.is-tall .sx-store > .sx-btn { order: 3; flex: 1 1 100%; text-align: center; }
.is-tall .sx-store-shots i { height: 70px; }
.sc-dialog { position: absolute; z-index: 12; left: 50%; top: 52px; width: 300px; margin-left: -150px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -16px rgba(27, 30, 34, .55); animation: sc-in .3s both; }
.sc-dialog b { font-size: 14px; }
.sc-dialog p { font-size: 12px; color: #4a5057; }
.sc-dialog-row { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.sc-extmenu { position: absolute; z-index: 12; right: 10px; top: 42px; width: 220px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -16px rgba(27, 30, 34, .55); animation: sc-in .25s both; }
.sc-extmenu > b { display: block; margin-bottom: 8px; font-size: 12.5px; }
.sc-extrow { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; background: #f2f3f5; font-size: 12.5px; font-weight: 600; }
.sc-extrow-ic { width: 20px; height: 20px; }
.sc-extrow-ic svg { width: 100%; height: 100%; }
.sc-pin { margin-left: auto; width: 26px; height: 26px; padding: 5px; border-radius: 7px; color: #6b727a; transition: color .2s, background-color .2s; }
.sc-pin.is-on { color: #fff; background: var(--enamel); }

/* troubleshooting pages */
.sc-pagetoast { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #1b1e22; color: #fff3e3; font-size: 12px; animation: sc-in .3s both; }
.sc-inline-mark { width: 16px; height: 16px; display: inline-block; }
.sc-inline-mark svg { width: 100%; height: 100%; }
.sc-clip { position: absolute; right: 18px; top: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--enamel); font-size: 11.5px; font-weight: 650; animation: sc-bounce .45s both; }
.sc-clip .sc-ic { color: var(--enamel); }
.sc-page--diag { background: #fff; }
.sc-page--diag > .sx-card { display: none; }
.sc-diagpage { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; animation: sc-in .3s both; }
.sc-diag-h { font-size: 16px; margin-bottom: 8px; }
.sc-diag-row { display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f2f3f5; }
.sc-diag-row .sc-ic { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #fce3e0; color: #c2281d; }
.sc-diag-row.is-ok .sc-ic { background: #dcf3e5; color: #11804a; }
.sc-diag-note { margin-top: 6px !important; font-size: 11.5px; color: #6b727a; }

/* ------------------------------------------------------------------ the panel */

.sp-head { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.sp-brand { display: inline-flex; align-items: center; gap: 6px; }
.sp-brand svg { width: 21px; height: 21px; }
.sp-brand b { font-size: 17px; font-weight: 850; font-stretch: 125%; letter-spacing: -.035em; line-height: 1; }
.sp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--cream-line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; color: #2e3338; }
.sp-led { width: 8px; height: 8px; border-radius: 50%; background: #22c76f; box-shadow: 0 0 6px #22c76f; transition: background-color .3s, box-shadow .3s; }
.sp-pill[data-state="setup"] .sp-led, .sp-pill[data-state="down"] .sp-led, .sp-pill[data-state="checking"] .sp-led { background: #ffb020; box-shadow: 0 0 6px #ffb020; }
.sp-pill[data-state="down"] .sp-led, .sp-pill[data-state="checking"] .sp-led { animation: sc-blink 1s ease-in-out infinite; }
.sp-pill[data-state="unavail"] .sp-led, .sp-pill[data-state="needs"] .sp-led { background: #f04438; box-shadow: 0 0 6px #f04438; }
.sp-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--cream-line); }
.sp-tab { padding: 2px 0 6px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 600; color: #6b727a; transition: color .2s, border-color .2s; }
.sp-tab.is-on { color: #1b1e22; border-color: #1b1e22; }
.sp-card { padding: 9px 11px; border: 1px solid var(--cream-line); border-radius: 12px; background: #fff; }
.sp-row { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.sp-label { font-size: 12px; font-weight: 650; }
.sp-tag { padding: 0 8px; border: 1px solid #e7a785; border-radius: 999px; background: #f5d5c5; color: #24160d; font-size: 10.5px; font-weight: 650; line-height: 1.6; }
.sp-icb { width: 22px; height: 22px; display: grid; place-items: center; padding: 4px; border-radius: 6px; color: #6b727a; transition: background-color .2s; }
.sp-icb.sc-press { background: #f2f3f5; }
.sp-target-body { margin-top: 6px; }
.sp-person { display: flex; align-items: center; gap: 8px; }
.sp-person .sc-av { width: 26px; height: 26px; font-size: 11px; }
.sp-pname { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sp-pname b { font-size: 12.5px; font-weight: 650; }
.sp-pname span { font-size: 10.5px; color: #6b727a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ptext { margin-top: 6px !important; font-size: 12.5px; line-height: 1.42; color: #2e3338; }
.sp-media { margin-top: 4px !important; font-size: 11px; color: #6b727a; }
.sp-empty { padding: 12px 6px; font-size: 11.5px; line-height: 1.45; color: #6b727a; text-align: center; }
.sp-earlier { margin-top: 7px !important; display: flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: #6b727a; }
.sp-earlier .sc-ic { width: 11px; height: 11px; }
.sp-clabel { margin: 6px 0 4px !important; font-size: 10.5px; font-weight: 650; color: #4a5057; }
.sp-bubble { max-width: 94%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: #f2f3f5; font-size: 12px; line-height: 1.42; }
.sp-bubble.is-mine { margin-left: auto; border-radius: 12px 12px 4px 12px; background: #1b1e22; color: var(--cream); }
.sp-read { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d4d8dc; }
.sp-read.is-idle { display: none; }
.sp-read.is-loading .sp-read-done { display: none; }
.sp-read.is-done .sp-reading { display: none; }
.sp-reading { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: #6b727a; }
.sp-wavelet { display: block; width: 20px; height: 14px; overflow: hidden; color: var(--enamel); }
.sp-wavelet svg { width: 26px; height: 14px; animation: sc-wavelet .5s linear infinite; }
.sp-read-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.sp-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f2f3f5; color: #4a5057; font-size: 10.5px; font-weight: 650; line-height: 1.4; }
.sp-badge--good { background: #dcf3e5; color: #11804a; }
.sp-badge--warn { background: #fcefd2; color: #8f5b00; }
.sp-badge--bad { background: #fce3e0; color: #c2281d; }
.sp-read.is-done .sp-badge { animation: sc-pop .32s ease-out both; }
.sp-read.is-done .sp-badge + .sp-badge { animation-delay: .08s; }
.sp-read-line { margin-top: 5px !important; font-size: 11px; color: #4a5057; animation: sc-in .35s .15s both; }
.sp-read-line b { color: #1b1e22; font-weight: 650; }
.sp-linkbtn { font-size: 11px; font-weight: 600; color: #4a5057; text-decoration: underline; text-decoration-color: #c4c9ce; text-underline-offset: 3px; }
.sp-block { position: relative; display: flex; flex-direction: column; gap: 5px; }
.sp-field { position: relative; min-height: 42px; padding: 6px 10px; border: 1px solid #d4d8dc; border-radius: 10px; background: #fff; font-size: 12px; line-height: 1.42; transition: border-color .2s, box-shadow .2s; }
.sp-field.is-focus { border-color: #6b727a; box-shadow: 0 0 0 3px rgba(255, 106, 26, .2); }
.sp-val { white-space: pre-line; }
.sp-field.sp-field--input { min-height: 30px; padding: 5px 9px; }
.sp-field--input.is-tall { min-height: 44px; }
.sp-pointref { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--cream-line); border-radius: 8px; background: var(--cream); font-size: 10.5px; color: #4a5057; }
.sp-pointref b { color: #1b1e22; }
.sp-x { margin-left: auto; font-size: 13px; line-height: 1; }
.sp-select { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #d4d8dc; border-radius: 9px; background: #fff; font-size: 11.5px; transition: opacity .3s; }
.sp-select .sc-ic { width: 12px; height: 12px; color: #858c94; }
.sp-select.is-off { opacity: .55; text-decoration: line-through; text-decoration-color: #c4c9ce; }
.sp-select--mini { height: 24px; padding: 0 8px; min-width: 96px; }
.sp-note { font-size: 10.5px; color: #6b727a; }
.sp-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: #1b1e22; }
.sp-seg-i { padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; line-height: 1.5; color: #c9cdd2; transition: background-color .25s, color .25s; }
.sp-seg-i.is-on { background: var(--cream); color: #1b1e22; }
.sp-seg--light { background: #f2f3f5; border: 1px solid #d4d8dc; }
.sp-seg--light .sp-seg-i { color: #6b727a; }
.sp-seg--light .sp-seg-i.is-on { background: #fff; color: #1b1e22; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sp-writing { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d4d8dc; }
.sp-intro, .sp-sub { font-size: 11px; line-height: 1.45; color: #4a5057; }
.sp-view { display: flex; flex-direction: column; gap: 8px; }
.sp-input { display: flex; flex-direction: column; gap: 3px; }
.sp-ilabel { font-size: 11px; font-weight: 650; }
.sp-saved { font-size: 10.5px; font-weight: 650; color: #11804a; }
.sp-checkrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.sp-check { width: 16px; height: 16px; flex: none; display: grid; place-items: center; padding: 2px; border: 1.5px solid #9aa1a9; border-radius: 4px; background: #fff; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.sp-check.is-on { background: #1b1e22; border-color: #1b1e22; color: #fff; }
.sp-check svg { width: 100%; height: 100%; stroke-width: 3; }
.sp-sechead b { font-size: 14px; font-weight: 800; font-stretch: 112%; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid #d4d8dc; border-radius: 9px; background: #fff; color: #1b1e22; font-size: 11.5px; font-weight: 650; white-space: nowrap; transition: transform .08s, background-color .2s, border-color .2s; }
.sp-btn .sc-ic { width: 13px; height: 13px; }
.sp-btn--sm { height: 26px; padding: 0 9px; font-size: 11px; }
.sp-btn--ink { background: #1b1e22; border-color: #1b1e22; color: #fff; }
.sp-btn.sc-press { transform: translateY(1px) scale(.98); }
.sp-btn--ink.sc-press { background: #000; }
.sp-btn.is-done { background: #2b3036; border-color: #2b3036; }
.sp-btn.is-done::before { content: '✓'; color: #22c76f; font-weight: 800; }
.sp-btn.is-armed, .sp-del.is-armed { background: #fce3e0; border-color: #f1c2bd; color: #c2281d; animation: sc-blink .8s ease-in-out infinite; }
.sp-del.is-armed { width: auto; padding: 0 7px; font-size: 10.5px; font-weight: 700; }
.sp-form { display: flex; flex-direction: column; gap: 7px; animation: sc-in .3s both; }
.sp-list { display: flex; flex-direction: column; gap: 6px; }
.sp-item { display: flex; align-items: center; gap: 4px; padding: 7px 8px 7px 10px; border: 1px solid var(--cream-line); border-radius: 10px; background: #fff; }
.sp-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sp-item-main b { font-size: 12px; }
.sp-item-main span { font-size: 10.5px; color: #6b727a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item-x { font-size: 10.5px; }
.sp-filter { display: flex; flex-wrap: wrap; gap: 4px; animation: sc-in .3s both; }
.sp-filter .sp-chip { border-color: #c9ced3; color: #4a5057; }
.sp-filter .sp-chip.is-on { background: #1b1e22; border-color: #1b1e22; color: #fff; }
.sp-hist { margin-top: 2px; font-size: 11px; color: #4a5057; }
.sp-hist b { color: #1b1e22; }
.sp-diag { gap: 8px; padding: 8px 0 0; border-top: 1px dashed #d4d8dc; font-size: 10.5px; color: #4a5057; line-height: 1.35; }
.sp-tagword { display: inline-block; margin: 2px; padding: 1px 7px; border-radius: 999px; background: #f2f3f5; font-size: 10.5px; font-weight: 600; transition: background-color .2s, color .2s; }
.sp-tagword.is-hit { background: #fce3e0; color: #c2281d; }
.sc-never { display: flex; flex-wrap: wrap; align-items: center; min-height: 0; }

/* the saved-points and link menus */
.sp-menu { position: absolute; z-index: 8; left: 0; right: 0; top: 24px; display: flex; flex-direction: column; gap: 1px; padding: 6px; border: 1px solid #d4d8dc; border-radius: 12px; background: #fff; box-shadow: 0 20px 36px -18px rgba(27, 30, 34, .55); animation: sc-in .25s both; }
.sp-menu--link { top: 62px; }
.sp-menu hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #edf0f2; }
.sp-menu-act { padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 650; }
.sp-menu-group { padding: 4px 8px 2px; font-size: 10px; font-weight: 800; font-stretch: 112%; color: #6b727a; }
.sp-menu-pt { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 7px; font-size: 11px; line-height: 1.3; transition: background-color .15s; }
.sp-menu-pt span { color: #6b727a; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-menu-pt.sc-hover, .sp-menu-pt.sc-press, .sp-menu-act.sc-press { background: #f2f3f5; }
.sp-menu-pt.is-add { color: #4a5057; }

/* the pedal */
.sp-pedal { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 11px; border-radius: 16px; background: var(--enamel); color: #24160d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 16px 26px -18px rgba(120, 40, 0, .75); }
.sp-screw { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #e85d14; border: 1px solid #c94a08; }
.sp-screw.s1 { left: 5px; top: 5px; } .sp-screw.s2 { right: 5px; top: 5px; } .sp-screw.s3 { left: 5px; bottom: 5px; } .sp-screw.s4 { right: 5px; bottom: 5px; }
.sp-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-pcol { display: flex; flex-direction: column; gap: 6px; }
.sp-plabel { font-size: 11px; font-weight: 800; font-stretch: 125%; }
.sp-pnote { font-size: 10.5px; color: #45230f; min-height: 1em; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-chip { padding: 2px 8px; border: 1.5px solid rgba(36, 22, 13, .45); border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.35; transition: background-color .25s, border-color .25s, color .25s; }
.sp-chip.is-on { background: #1b1e22; border-color: #1b1e22; color: var(--cream); }
.sp-chip.is-picked { background: var(--cream); border-color: #1b1e22; }
.sp-knobs { display: flex; justify-content: space-around; align-items: flex-end; }
.sp-knob { display: flex; flex-direction: column; align-items: center; line-height: 1.15; transition: opacity .3s; }
.sp-knob.is-dim { opacity: .35; }
.sp-knob-svg svg { width: 62px; height: 49px; display: block; }
.sp-knob--big .sp-knob-svg svg { width: 104px; height: 82px; }
.sp-knob b { margin-top: -2px; font-size: 11px; font-weight: 800; font-stretch: 125%; }
.sp-knob--big b { font-size: 13px; }
.sp-knob-v { font-size: 11px; font-weight: 600; }
.sp-knob--big .sp-knob-v { font-size: 12.5px; }
.sp-tick { fill: #24160d; opacity: .3; transition: opacity .3s; }
.sp-tick.is-on { opacity: 1; }
.sp-cap { fill: #1b1e22; }
.sp-rim { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; }
.sp-ptr { transform-box: view-box; transform-origin: 42px 34px; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.sp-ptr line { stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }
.sp-emoji { padding-bottom: 0; }
.sp-lever { position: relative; display: block; width: 30px; height: 49px; }
.sp-lever-led { position: absolute; left: 12px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #6a2116; transition: background-color .2s, box-shadow .2s; }
.sp-lever.is-on .sp-lever-led { background: #22c76f; box-shadow: 0 0 6px #22c76f; }
.sp-lever-arm { position: absolute; left: 7px; top: 16px; width: 16px; height: 28px; border-radius: 5px; background: #1b1e22; }
.sp-lever-arm::after { content: ''; position: absolute; left: 3px; right: 3px; top: 15px; height: 10px; border-radius: 3px; background: var(--cream); transition: top .25s cubic-bezier(.34, 1.56, .64, 1); }
.sp-lever.is-on .sp-lever-arm::after { top: 3px; }
.sp-more { padding-top: 7px; border-top: 1px dashed rgba(36, 22, 13, .35); }
.sp-more .sc-ic { width: 14px; height: 14px; transition: transform .3s; }
.sp-pedal.is-more-open .sp-more .sc-ic { transform: rotate(180deg); }
.sp-morebody { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .8, .25, 1); }
.sp-morebody.is-open { grid-template-rows: 1fr; }
.sp-morein { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.sp-morebody.is-open .sp-morein { padding-top: 2px; }
.sp-dark-select { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: #1b1e22; color: var(--cream); font-size: 10.5px; font-weight: 600; }
.sp-dark-select .sc-ic { width: 11px; height: 11px; }
.sp-fs { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; border-radius: 11px; background: #1b1e22; color: var(--cream); font-size: 13.5px; font-weight: 800; font-stretch: 112%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(0, 0, 0, .35); transition: transform .08s, box-shadow .08s; }
.sp-fs.sc-press { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(0, 0, 0, .35); }
.sp-fs-led { position: absolute; left: 13px; top: calc(50% - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: #4a2a1a; transition: background-color .15s, box-shadow .2s; }
.sp-fs.is-busy .sp-fs-led { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.sp-kbd { padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: #c9cdd2; font-size: 10px; font-weight: 600; }

/* the fresh take */
.sp-out { display: flex; flex-direction: column; gap: 7px; }
.sp-vers { display: inline-flex; gap: 3px; }
.sp-ver { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #d4d8dc; border-radius: 5px; background: #fff; color: #6b727a; font-size: 10px; font-weight: 700; transition: background-color .2s, color .2s; }
.sp-ver.is-on { background: #1b1e22; border-color: #1b1e22; color: #fff; }
.sp-stage { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #6b727a; }
.sp-stage i { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--enamel); box-shadow: 0 0 6px var(--enamel); }
.sp-stage.is-busy i { display: block; animation: sc-blink 1s ease-in-out infinite; }
.sp-draftrow { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.sp-draftrow .sc-av { width: 26px; height: 26px; font-size: 11px; }
.sp-who { font-size: 11px; color: #6b727a; line-height: 1.3; }
.sp-who b { color: #1b1e22; font-weight: 650; }
.sp-draft { margin-top: 2px !important; min-height: 1.45em; font-size: 12.5px; line-height: 1.45; white-space: pre-line; transition: opacity .16s, transform .16s; }
.sc-streaming::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--enamel); animation: sc-caret 1s steps(1) infinite; }
.sc-typing::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.16em; background: var(--enamel); }
.sp-meta { display: flex; align-items: center; gap: 7px; margin-left: 34px; font-size: 10.5px; font-weight: 600; color: #6b727a; }
.sp-ringwrap { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.sp-ring svg { width: 15px; height: 15px; display: block; transform: rotate(-90deg); }
.sp-ring-bg { fill: none; stroke: #d4d8dc; stroke-width: 2.5; }
.sp-ring-fill { fill: none; stroke: #1d9bf0; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dashoffset .12s linear, stroke .2s; }
.sp-ring[data-level="near"] .sp-ring-fill { stroke: #f59e0b; }
.sp-ring[data-level="over"] .sp-ring-fill { stroke: #f04438; }
.sp-ring[data-level="over"] + .sp-count { color: #c2281d; }
.sp-ring[data-level="near"] + .sp-count { color: #8f5b00; }
.sp-fresh { flex: none; white-space: nowrap; animation: sc-pop .32s ease-out both; }
.sp-play { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-langnote { margin-left: 34px !important; padding: 4px 8px; border-radius: 7px; background: #fcefd2; color: #8f5b00; font-size: 10.5px; }
.sp-refines { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 34px; }
.sp-pillbtn { padding: 2px 8px; border: 1px solid #d4d8dc; border-radius: 999px; background: #fff; color: #4a5057; font-size: 10.5px; font-weight: 600; line-height: 1.45; transition: border-color .2s, color .2s, box-shadow .3s; }
.sp-pillbtn.sc-press { border-color: #1b1e22; color: #1b1e22; }
.sp-pillbtn.is-glow { border-color: var(--enamel); color: #1b1e22; box-shadow: 0 0 0 3px rgba(255, 106, 26, .22); }
.sp-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 5px; }

.sp-banner { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--cream-line); border-radius: 12px; background: #fff; }
.sp-banner b { font-size: 12.5px; }
.sp-banner p { font-size: 11px; line-height: 1.45; color: #4a5057; }
.sp-banner .sp-btn { align-self: flex-start; }
.sp-bar { display: block; height: 6px; border-radius: 3px; background: #f2f3f5; overflow: hidden; }
.sp-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--enamel); transition: width .15s linear; }

/* ------------------------------------------------------------------ overlays */

.sc-cursor { position: absolute; left: 0; top: 0; z-index: 30; width: 24px; height: 24px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none; transition-property: transform, opacity; transition-timing-function: cubic-bezier(.2, .8, .25, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.sc-cursor.is-in { opacity: 1; }
.sc-cursor svg { position: absolute; left: 0; top: 0; transition: transform .1s; transform-origin: 4px 3px; }
.sc-cur-hand { display: none; }
.sc-cursor.is-hand .sc-cur-hand { display: block; left: -8px; top: -2px; }
.sc-cursor.is-hand .sc-cur-arrow { display: none; }
.sc-cursor.is-down svg { transform: scale(.84); }
.sc-ripple { position: absolute; left: 0; top: 0; z-index: 29; width: 0; height: 0; pointer-events: none; }
.sc-ripple::after { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 2px solid rgba(255, 106, 26, .85); border-radius: 50%; animation: sc-ripple .6s ease-out forwards; }
.sc-ghost { position: absolute; z-index: 25; max-height: 92px; overflow: hidden; padding: 8px 10px; border: 1.5px solid var(--enamel); border-radius: 10px; background: #fff; box-shadow: 0 18px 30px -16px rgba(27, 30, 34, .6); font-size: 12px; line-height: 1.4; transform-origin: 0 0; pointer-events: none; }
.sc-toast { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 22; padding: 9px 12px; border-radius: 11px; background: #1b1e22; color: var(--cream); font-size: 11.5px; line-height: 1.4; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .25, 1); }
.sc-toast.is-in { opacity: 1; transform: none; }
.sc-keys { position: absolute; left: 50%; bottom: 20px; z-index: 28; display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 14px; background: rgba(27, 30, 34, .92); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .25, 1); }
.sc-keys.is-in { opacity: 1; transform: translate(-50%, 0); }
.sc-key { min-width: 36px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; background: #fff; color: #1b1e22; font-size: 13px; font-weight: 700; box-shadow: 0 3px 0 #9aa1a9; transition: transform .08s, box-shadow .08s, background-color .1s; }
.sc-key.is-down { transform: translateY(3px); box-shadow: 0 0 0 #9aa1a9; background: #ffe2d1; }
.sc-plus { color: #9aa1a9; font-weight: 700; }
.sc-keys--page { left: 210px; }
.is-tall .sc-keys--page { left: 50%; bottom: auto; top: 160px; }
.sc-yps { position: absolute; z-index: 27; width: 132px; padding: 6px 10px; border-radius: 9px; background: #1b1e22; color: var(--cream); font-size: 12px; font-weight: 800; font-stretch: 112%; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.sc-yps.is-in { opacity: 1; transform: none; }
.sc-yps::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: #1b1e22; transform: rotate(45deg); }
.sc-yps.is-below::after { bottom: auto; top: -5px; }
.sc-yps--center { left: 50%; bottom: 22px; width: auto; padding: 9px 16px; font-size: 14px; white-space: nowrap; transform: translateX(-50%); }
.sc-yps--center.is-in { transform: translateX(-50%); }
.sc-yps--center::after { display: none; }
.sc-beat { position: absolute; left: 14px; bottom: 14px; z-index: 26; padding: 6px 12px; border-radius: 999px; background: #1b1e22; color: var(--cream); font-size: 12px; font-weight: 750; white-space: pre; opacity: 0; transition: opacity .25s; }
.sc-beat.is-in { opacity: 1; }
.sc-tip { position: absolute; z-index: 26; width: 210px; padding: 7px 10px; border-radius: 8px; background: #1b1e22; color: var(--cream); font-size: 11px; line-height: 1.4; animation: sc-in .25s both; }
.sc-chromever { position: absolute; right: 18px; top: 18px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #c9ced3; background: #fff; font-size: 12px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s, border-color .3s; }
.sc-chromever.is-in { opacity: 1; transform: none; }
.sc-chromever .sc-ic { width: 14px; height: 14px; color: #6b727a; }
.sc-chromever.is-updating .sc-ic { animation: sc-spin .6s linear infinite; }
.sc-chromever.is-done { border-color: #22c76f; }
.sc-chromever.is-done .sc-ic { color: #11804a; }
.is-tall .sc-chromever { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
.sc-report { display: flex; flex-direction: column; gap: 5px; animation: sc-in .3s both; }
.sc-report > b { font-size: 11.5px; }
.sc-report > p { font-size: 10px; color: #6b727a; }
.sc-report-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: 10.5px; color: #4a5057; }
.sc-report-row i { display: block; height: 7px; border-radius: 4px; background: #1b1e22; width: calc(var(--w) * 100%); animation: sc-grow .6s cubic-bezier(.2, .8, .25, 1) both; transform-origin: 0 50%; }
@keyframes sc-grow { from { transform: scaleX(0); } }

/* ------------------------------------------------------------------ custom stages */

/* A5: the spec plate */
.sc-canvas--plate .sc-plate-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.sc-plate { position: relative; width: 560px; max-width: 100%; padding: 8px 26px; border: 2px solid #1b1e22; border-radius: 22px; background: #f2f3f5; }
.sc-plate .sp-screw { background: #c9ced3; border-color: #9aa1a9; width: 8px; height: 8px; }
.sc-plate .sp-screw.s1 { left: 9px; top: 9px; } .sc-plate .sp-screw.s2 { right: 9px; top: 9px; } .sc-plate .sp-screw.s3 { left: 9px; bottom: 9px; } .sc-plate .sp-screw.s4 { right: 9px; bottom: 9px; }
.sc-plate-row { display: grid; grid-template-columns: 90px 1fr 24px; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #d4d8dc; font-size: 13px; }
.sc-plate-row:first-of-type { border-top: 0; }
.sc-plate-row b { font-size: 12px; font-weight: 800; font-stretch: 125%; }
.sc-tick { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #dfe2e5; color: transparent; transition: background-color .25s, color .25s, transform .3s; transform: scale(.8); }
.sc-tick svg { width: 100%; height: 100%; display: block; stroke-width: 3; }
.sc-plate-row.is-ok .sc-tick { background: #22c76f; color: #fff; transform: scale(1); }
.sc-addr { display: flex; align-items: center; gap: 8px; width: 400px; max-width: 100%; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #c9ced3; font-size: 13px; color: #2e3338; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.sc-addr.is-in { opacity: 1; transform: none; }
.sc-addr .sc-ic { color: #6b727a; }
.is-tall .sc-plate { padding: 6px 16px; }
.is-tall .sc-plate-row { grid-template-columns: 1fr 24px; gap: 2px 10px; }
.is-tall .sc-plate-row b { grid-column: 1 / -1; }

/* B10 / D: a bit more room for the panel */
.sc-solo--dials .sc-side--solo { width: 360px; height: 426px; }
.sc-solo--dials .sc-side--solo .sc-scroll { width: 360px; }
.sc-lowfit { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; animation: sc-in .3s both; }
.sc-spin-note { padding: 0 2px; font-size: 11.5px; font-weight: 650; color: #45230f; text-align: center; }
.sc-fan { position: relative; height: 128px; margin-top: 2px; }
.sc-fan-card { position: absolute; left: 0; right: 0; top: calc(var(--j, 0) * 9px); height: 76px; overflow: hidden; padding: 9px 11px 9px 36px; border: 1px solid var(--cream-line); border-radius: 12px; background: #fff; font-size: 12px; line-height: 1.42; box-shadow: 0 10px 20px -14px rgba(27, 30, 34, .5); transform: translateY(0) scale(calc(1 - var(--j, 0) * .04)); transform-origin: 50% 100%; transition: top .35s cubic-bezier(.2, .8, .25, 1), transform .35s; animation: sc-in .35s both; z-index: calc(10 - var(--j, 0)); }
.sc-fan-card:not(:first-child) { color: transparent; }
.sc-fan-card:not(:first-child) mark { background: transparent; }
.sc-fan-card:not(:first-child) b { opacity: .35; }
.sc-fan-card:nth-child(n+5) { display: none; }
.sc-fan-card b { position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: #1b1e22; color: #fff; font-size: 9.5px; }

/* C4: six rules */
.sc-rules-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 20px 14px; gap: 10px; background: radial-gradient(#cdd2d6 1px, transparent 1.3px) 0 0 / 16px 16px, var(--steel); }
.sc-rules-title { width: 420px; max-width: 100%; }
.sc-rules { position: relative; flex: 0 0 300px; width: 420px; max-width: 100%; }
.is-tall .sc-rules { flex-basis: 270px; }
.sc-rule { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--cream-line); border-radius: 16px; background: var(--cream); opacity: 0; transform: translateX(30px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .25, 1); }
.sc-rule.is-on { opacity: 1; transform: none; }
.sc-rule.is-past { opacity: 0; transform: translateX(-30px); }
.sc-rule-head { display: flex; align-items: center; gap: 10px; }
.sc-rule-head b { font-size: 17px; font-weight: 850; font-stretch: 118%; letter-spacing: -.02em; }
.sc-rule-n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--enamel); color: #24160d; font-size: 12px; font-weight: 850; font-stretch: 125%; }
.sc-rule .sp-bubble { font-size: 13px; }
.sc-rule-point { min-height: 32px; font-size: 11.5px; }
.sc-rule-out { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--cream-line); }
.sc-rule-out .sc-av { width: 28px; height: 28px; font-size: 11.5px; }
.sc-rule-draft { font-size: 13px; line-height: 1.45; min-height: 1.45em; }
.sc-rule-pair { display: flex; gap: 8px; }
.sc-rule-tagline { padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--cream-line); font-size: 11px; font-weight: 700; color: #4a5057; }
.sc-rule-dots { display: flex; gap: 6px; }
.sc-rule-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c4c9ce; transition: background-color .2s, transform .2s; }
.sc-rule-dots i.is-on { background: var(--enamel); transform: scale(1.25); }
.sc-struck { color: #c2281d; text-decoration: none; background-image: linear-gradient(#c2281d, #c2281d); background-size: 0 2px; background-position: 0 55%; background-repeat: no-repeat; transition: background-size .35s ease, opacity .4s ease .5s; }
.sc-struck.is-struck { background-size: 100% 2px; opacity: .55; }
.sc-hl { background: rgba(255, 106, 26, .22); border-radius: 3px; padding: 0 2px; }

/* E3: two laptops */
.sc-canvas--laptops .sc-laptops { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px; }
.sc-lap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sc-lap-title { font-size: 12px; font-weight: 800; font-stretch: 112%; color: #4a5057; }
.sc-lap-screen { position: relative; width: 270px; height: 214px; padding: 12px; border: 7px solid #2b3036; border-radius: 12px 12px 4px 4px; background: var(--cream); overflow: hidden; }
.sc-lap-base { display: block; width: 320px; height: 10px; border-radius: 0 0 10px 10px; background: #9aa1a9; }
.sc-lap-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.sc-lap-h { font-size: 13px; }
.sc-lap-panel p { font-size: 11px; color: #4a5057; line-height: 1.4; }
.sc-arrow { width: 36px; height: 36px; color: #9aa1a9; }
.sc-arrow svg { width: 100%; height: 100%; }
.sc-file { position: absolute; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: #fff; border: 1.5px solid var(--enamel); font-size: 11px; font-weight: 650; box-shadow: 0 14px 24px -14px rgba(27, 30, 34, .6); animation: sc-bounce .45s both; }
.sc-file .sc-ic { color: var(--enamel); }
.is-tall .sc-laptops { flex-direction: column; gap: 10px; }
.is-tall .sc-arrow { transform: rotate(90deg); width: 26px; height: 26px; }
.is-tall .sc-lap-screen { width: 250px; height: 160px; }
.is-tall .sc-lap-base { width: 290px; }

/* F1: on this device */
.sc-canvas--device .sc-device { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 20px; }
.sc-dev { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sc-dev-title { font-size: 12px; font-weight: 800; font-stretch: 112%; color: #4a5057; }
.sc-dev-screen { position: relative; width: 330px; height: 196px; display: grid; grid-template-columns: 1fr 110px; grid-template-rows: 26px 1fr; border: 7px solid #2b3036; border-radius: 12px 12px 4px 4px; background: #e7e9eb; overflow: hidden; }
.sc-dev-tabs { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 4px; padding: 0 6px; background: #d5d9dd; }
.sc-dev-tab { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 6px 0 10px; border-radius: 7px 7px 0 0; background: #e7e9eb; font-size: 10.5px; color: #4a5057; transition: opacity .35s, transform .35s; }
.sc-dev-tab.is-closed { opacity: 0; transform: translateY(8px); }
.sc-dev-x { width: 14px; height: 14px; padding: 2px; border-radius: 4px; color: #6b727a; }
.sc-dev-page { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.sc-dev-page i, .sc-dev-panel i { display: block; height: 8px; border-radius: 4px; background: #c9ced3; }
.sc-dev-page i.short, .sc-dev-panel i.short { width: 60%; }
.sc-dev-panel { display: flex; flex-direction: column; gap: 7px; padding: 10px; background: var(--cream); border-left: 1px solid #c9ced3; }
.sc-dev-panel .sp-brand b { font-size: 13px; }
.sc-dev-panel .sp-brand svg { width: 16px; height: 16px; }
.sc-nano { position: absolute; left: 50%; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #1b1e22; color: var(--cream); font-size: 11px; font-weight: 750; transform: translateX(-60%) scale(.9); opacity: .4; transition: opacity .4s, transform .4s; }
.sc-nano i { width: 7px; height: 7px; border-radius: 50%; background: #4a5057; transition: background-color .3s, box-shadow .3s; }
.sc-nano.is-on { opacity: 1; transform: translateX(-60%) scale(1); }
.sc-nano.is-on i { background: #22c76f; box-shadow: 0 0 6px #22c76f; }
.sc-drawers { display: flex; gap: 10px; margin-top: 6px; }
.sc-drawer { display: flex; flex-direction: column; gap: 3px; width: 160px; padding: 9px 11px; border: 1px solid #c9ced3; border-radius: 12px; background: #fff; font-size: 10.5px; color: #4a5057; }
.sc-drawer b { font-size: 11px; font-weight: 800; font-stretch: 112%; color: #1b1e22; }
.sc-drawer span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 2px; background: var(--enamel); vertical-align: .05em; }
.sc-sess { transition: opacity .4s, transform .4s; }
.sc-drawer--session.is-empty .sc-sess { opacity: 0; transform: translateX(-8px); }
.sc-drawer--session.is-empty::after { content: 'emptied when the tab closed'; font-size: 10px; color: #11804a; font-weight: 650; }
.sc-cloud { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; padding: 16px 10px; border: 1.5px dashed #9aa1a9; border-radius: 16px; color: #6b727a; transition: border-color .3s, color .3s; }
.sc-cloud .sc-ic { width: 26px; height: 26px; }
.sc-cloud b { font-size: 12px; color: #4a5057; }
.sc-cloud span { font-size: 11px; }
.sc-cloud.is-blocked { border-color: #f04438; color: #c2281d; }
.sc-arrows { position: relative; width: 70px; height: 80px; }
.sc-arrows i { position: absolute; left: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--enamel); opacity: 0; }
.sc-arrows i.a1 { top: 20px; } .sc-arrows i.a2 { top: 40px; } .sc-arrows i.a3 { top: 60px; }
.sc-arrows.is-go i { animation: sc-bounceback 1s cubic-bezier(.3, .7, .3, 1) both; }
.sc-arrows.is-go i.a2 { animation-delay: .1s; } .sc-arrows.is-go i.a3 { animation-delay: .2s; }
@keyframes sc-bounceback { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 50% { transform: translateX(50px); background: #f04438; } 100% { opacity: 0; transform: translateX(0); } }
.is-tall .sc-device { flex-direction: column; gap: 10px; }
.is-tall .sc-arrows { transform: rotate(90deg); height: 60px; }
.is-tall .sc-dev-screen { width: 300px; height: 170px; }
.is-tall .sc-drawer { width: 140px; }

/* F2: four sites, four send buttons */
.sc-four { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px 22px 64px; }
.sc-four-site { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 16px; transition: border-color .3s; }
.sc-four-name { font-size: 18px; font-weight: 850; font-stretch: 125%; letter-spacing: -.03em; }
.sc-four-box { display: flex; align-items: center; gap: 8px; }
.sc-four-site.is-held { border-color: var(--enamel); }
.is-tall .sc-four { grid-template-columns: 1fr; padding: 14px 14px 64px; gap: 10px; }

/* F3: the pipeline */
.sc-canvas--pipe .sc-pipe { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; padding: 70px 16px 30px; }
.sc-canvas--pipe .sc-pipe::before { content: 'Every riff, on your computer'; position: absolute; left: 18px; top: 26px; font-size: 15px; font-weight: 850; font-stretch: 118%; letter-spacing: -.02em; }
.sc-pipe-cable { position: absolute; z-index: 0; left: 40px; right: 40px; top: 93px; height: 3px; border-radius: 2px; background: #c4c9ce; overflow: hidden; }
.sc-stage { position: relative; z-index: 1; min-height: 250px; }
.sc-pipe-dot { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; border-radius: 2px; background: var(--enamel); box-shadow: 0 0 8px var(--enamel); opacity: 0; }
.sc-pipe-cable.is-run .sc-pipe-dot { animation: sc-run 6.5s linear forwards; }
@keyframes sc-run { 0% { left: -40px; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.sc-stage { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border: 1.5px solid #c9ced3; border-radius: 16px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s; }
.sc-stage.is-lit { border-color: var(--enamel); box-shadow: 0 0 0 3px rgba(255, 106, 26, .14); }
.sc-stage.is-bounce { animation: sc-shake .45s ease-in-out; }
.sc-stage-head { display: flex; align-items: center; gap: 8px; }
.sc-stage-head b { font-size: 15px; font-weight: 850; font-stretch: 125%; }
.sc-stage-head span { margin-left: auto; font-size: 11px; font-weight: 700; color: #9aa1a9; }
.sc-stage-led { width: 8px; height: 8px; border-radius: 50%; background: #3a2a21; transition: background-color .2s, box-shadow .3s; }
.sc-stage.is-lit .sc-stage-led { background: var(--enamel); box-shadow: 0 0 8px var(--enamel); }
.sc-stage-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sc-mini-post, .sc-mini-draft { font-size: 11.5px; line-height: 1.42; color: #2e3338; }
.sc-mini-post { padding: 7px 9px; border-radius: 9px; background: #f2f3f5; }
.sc-gate { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border-radius: 999px; background: #f2f3f5; font-size: 10.5px; font-weight: 650; color: #4a5057; transition: background-color .25s, color .25s; }
.sc-gate i { width: 12px; height: 12px; border-radius: 50%; background: #c9ced3; transition: background-color .25s; }
.sc-gate.is-ok { background: #dcf3e5; color: #11804a; }
.sc-gate.is-ok i { background: #22c76f; }
.sc-gate.is-bad { background: #fce3e0; color: #c2281d; }
.sc-gate.is-bad i { background: #f04438; }
.sc-junk { display: inline-block; color: #c2281d; transition: opacity .5s, transform .6s cubic-bezier(.5, 0, .75, 0); }
.sc-junk.is-out { opacity: 0; transform: translateY(26px) rotate(14deg); }
.sc-linkchip { padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--enamel); font-size: 10.5px; font-weight: 650; color: #1d6fb8; animation: sc-bounce .45s both; }
.is-tall .sc-pipe { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: 18px 12px; }
.is-tall .sc-pipe-cable { display: none; }

/* H2: limits */
.sc-canvas--chart .sc-chart { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 26px 16px; background: #fff; }
.sc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 11.5px; color: #4a5057; }
.sc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sc-legend em { margin-left: auto; font-style: normal; color: #858c94; }
.sc-legend .sc-tk { position: static; transform: none; }
.sc-chart-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.sc-chart-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; opacity: .25; transition: opacity .3s; }
.sc-chart-row.is-on { opacity: 1; }
.sc-chart-row > b { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; line-height: 1.2; }
.sc-chart-row > b span { font-size: 10.5px; font-weight: 500; color: #858c94; }
.sc-track { position: relative; height: 20px; }
.sc-hbar { position: absolute; left: 0; top: 7px; height: 6px; border-radius: 3px; background: #1b1e22; width: var(--w); transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .8, .25, 1); }
.sc-chart-row.is-on .sc-hbar { transform: scaleX(1); }
.sc-hbar-key { display: inline-block; width: 18px; height: 6px; border-radius: 3px; background: #1b1e22; }
.sc-tk { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; background: var(--enamel); box-shadow: 0 0 0 1px rgba(27, 30, 34, .15); transform: scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1) .35s; }
.sc-tk.t0 { background: #ffb07a; } .sc-tk.t1 { background: #ff8a3d; } .sc-tk.t2 { background: #d9480f; }
.sc-chart-row.is-on .sc-tk { transform: scale(1); }
.sc-lim { position: absolute; top: -13px; transform: translateX(-50%); font-size: 10.5px; font-weight: 750; color: #1b1e22; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-chart-axis { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.sc-axis { position: relative; height: 16px; border-top: 1px solid #d4d8dc; }
.sc-axis span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 10px; color: #858c94; }
.is-tall .sc-chart { padding: 16px 14px; }
.is-tall .sc-chart-row, .is-tall .sc-chart-axis { grid-template-columns: 96px 1fr; gap: 8px; }
.is-tall .sc-chart-row > b { font-size: 11px; }
.is-tall .sc-legend em { margin-left: 0; width: 100%; }

.sx-store-about { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px; }
.sx-store-about b { font-size: 13px; }
.sx-store-about i { display: block; height: 8px; border-radius: 4px; background: #e7e9eb; }
.sx-store-about i.short { width: 55%; }
.is-tall .sc-canvas--pipe .sc-pipe::before { display: none; }
.is-tall .sc-stage { min-height: 0; }
.sc-lap-screen .sc-toast { left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; font-size: 10.5px; }
