/* Sia Eu Jin — Stage. Project shows.
   Each project is a tall section: the words scroll on the left while a sticky "desk" on the
   right recreates the work in macOS-style windows. scripts/site.js sets .is-on on every
   [data-on] element whose step list includes the current step.
   The desk is sized in em and its font-size comes from the stage's container units, so the
   whole composition scales as one picture. The windows are the one place rounded corners
   and shadows are allowed: they are drawings of another system's chrome. */

/* ---------- Layout ---------- */
.ej-show { position: relative; display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); background: var(--void); border-top: 1px solid var(--void-line); }
.ej-show__stage { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: var(--screen-height); overflow: hidden; isolation: isolate; container-type: size; display: grid; place-items: center; }
.ej-show__stage > .ej-grain { z-index: 1; }
.ej-show__steps { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.ej-show__step { min-height: var(--screen-height); display: flex; flex-direction: column; justify-content: center; padding: var(--space-24) var(--space-12) var(--space-24) var(--frame-inset); transition: opacity .5s ease; }
.has-shows .ej-show__step { opacity: .28; }
.has-shows .ej-show__step.is-active { opacity: 1; }
.ej-show__step > * + * { margin-top: var(--space-4); }
.ej-show__step .ej-headline { margin-top: var(--space-4); font-size: clamp(30px, 3.5vw, 64px); }
.ej-show__step .ej-lead { font-size: clamp(16px, 1.25vw, 19px); }
.ej-show__k { display: flex; gap: var(--space-3); align-items: baseline; }
.ej-show__k b { font-weight: 600; color: var(--white); }
.ej-show__step .ej-facts { margin-top: var(--space-10); }
.ej-inline { font-family: var(--font-mono); font-size: .86em; padding: .1em .4em; color: var(--white); background: var(--void-raised); border: 1px solid var(--void-line); white-space: nowrap; }

/* The flow diagram that sits in the QA text */
.ej-flow { display: grid; gap: 0; margin-top: var(--space-8) !important; max-width: var(--measure); border-left: 1px solid var(--void-line); }
.ej-flow li { position: relative; padding: var(--space-2) 0 var(--space-4) var(--space-6); }
.ej-flow li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 9px; height: 9px; background: var(--void); border: 1px solid var(--white); }
.ej-flow li:last-child::before { background: var(--heat); border-color: var(--heat); }
.ej-flow b { display: block; font-weight: 700; font-size: 16px; }
.ej-flow span { font-size: 14px; color: var(--white-soft); }

/* ---------- The desk ---------- */
.ej-desk { position: relative; z-index: 2; width: 64em; height: 42em; font-size: 11px; font-size: min(calc(100cqw / 65.5), calc(100cqh / 45)); }
.ej-show__stage > .ej-frame { z-index: 3; }

/* State changes */
.ej-st { opacity: 0; visibility: hidden; transform: translateY(1.4em) scale(.975);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s; }
.ej-st.is-on { opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s ease .1s, transform .7s cubic-bezier(.2, .8, .2, 1) .1s, visibility 0s; }
.ej-st--right { transform: translateX(4em); }
.ej-st--pop { transform: scale(.92); }
.ej-sw { opacity: 0; transform: scale(.85); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.ej-sw.is-on { opacity: 1; transform: none; }

/* ---------- Window chrome ---------- */
.mac { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--mac-radius); background: var(--mac-bg); color: var(--mac-text);
  font-family: var(--font-ui); line-height: 1.35; letter-spacing: 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 1.4em 3.2em rgb(0 0 0 / .6), 0 .3em .8em rgb(0 0 0 / .35); }
.mac__bar { position: relative; flex: none; display: flex; align-items: center; gap: .5em; height: 2.2em; padding: 0 .9em; background: var(--mac-bar); border-bottom: 1px solid var(--mac-line); }
.mac__bar > i { width: .76em; height: .76em; border-radius: 50%; background: var(--mac-red); }
.mac__bar > i:nth-of-type(2) { background: var(--mac-amber); }
.mac__bar > i:nth-of-type(3) { background: var(--mac-green); }
.mac__title { position: absolute; left: 6em; right: 6em; text-align: center; font-size: .74em; font-weight: 600; color: var(--mac-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac__body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mac--paper { background: var(--mac-paper); color: var(--mac-ink); }
.mac--paper .mac__bar { background: var(--mac-paper-bar); border-color: #d8d8dd; }
.mac--paper .mac__title { color: #55555d; }
.mac--term { background: #141416; }

/* ---------- Code ---------- */
.ej-code { margin: 0; padding: 1.1em 0; font-family: var(--font-mono); font-size: .62em; line-height: 1.62; color: var(--mac-text); white-space: pre; counter-reset: ln; overflow: hidden; tab-size: 4; }
.ej-code .ln { position: relative; display: block; padding: 0 1em 0 4.6em; }
.ej-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 3.2em; text-align: right; color: #5c5c64; }
.ej-code .ln.is-add { background: var(--code-add); }
.ej-code .ln.is-del { background: var(--code-del); }
.ej-code .ln.is-add::after, .ej-code .ln.is-del::after { position: absolute; left: 3.7em; }
.ej-code .ln.is-add::after { content: "+"; color: #5fd38d; }
.ej-code .ln.is-del::after { content: "−"; color: #ff8a80; }
.c-key { color: var(--code-key); }
.c-str { color: var(--code-str); }
.c-fn { color: var(--code-fn); }
.c-num { color: var(--code-num); }
.c-com { color: var(--code-com); }
.ej-file { padding: .5em 1.2em; font-family: var(--font-mono); font-size: .56em; color: var(--mac-dim); background: #232327; border-bottom: 1px solid var(--mac-line); }
.ej-file + .ej-code { padding-top: .6em; }
.ej-code + .ej-file { border-top: 1px solid var(--mac-line); }

.ide { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); height: 100%; }
.ide__side { padding: .9em .7em; background: #19191c; border-right: 1px solid var(--mac-line); font-size: .62em; color: var(--mac-dim); }
.ide__side p { padding: .35em .6em; border-radius: .3em; }
.ide__side p.is-cur { background: #2e2e35; color: var(--mac-text); }
.ide__side small { display: block; margin: 0 0 .6em .6em; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Terminal ---------- */
.term { padding: 1.1em 1.3em; font-family: var(--font-mono); font-size: .7em; line-height: 1.6; white-space: pre; color: #d6d6da; }
.term .p { color: #5fd38d; }
.term .h { color: #e8c46a; }
.term .d { color: #7f8c98; }
.term .b { color: #67b7f7; }
.term .me { color: var(--flare); }

/* ---------- Google Sheets ---------- */
.sheet { font-size: .66em; color: #202124; }
.sheet__fx { display: flex; align-items: center; height: 2.8em; border-bottom: 1px solid #e1e3e6; color: #5f6368; }
.sheet__fx span:first-child { width: 6em; padding-left: 1em; border-right: 1px solid #e1e3e6; }
.sheet__fx span + span { padding-left: 1em; }
.sheet__band { margin: .9em 1em .7em 3.4em; padding: .7em 1em; background: #fdefc9; font-weight: 700; line-height: 1.6; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th { background: #000; color: #fff; font-weight: 700; text-align: left; padding: .8em .7em; }
.sheet td { padding: .95em .7em; border-bottom: 1px solid #e6e7e9; vertical-align: middle; }
.sheet td:first-child, .sheet th:first-child { width: 3em; padding: 0; text-align: center; background: #f8f9fa; color: #80868b; font-weight: 400; border-right: 1px solid #e1e3e6; }
.sheet .w-no { width: 3em; } .sheet .w-st { width: 8.5em; } .sheet .w-id { width: 13em; }
.sheet__hot td { transition: background .4s; }
.sheet__hot.is-on td { background: #e8f0fe; }
.sheet__st { position: relative; height: 3.2em; }
.sheet__st.is-on { box-shadow: inset 0 0 0 2px #1a73e8; }
.sheet__st .pill { position: absolute; left: .7em; top: 50%; margin-top: -.85em; }
.pill { display: inline-block; padding: .2em .8em; border-radius: 1em; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.pill--pass { background: #d9f2d3; color: #137333; }
.pill--fail { background: #fce8e6; color: #c5221f; }
.pill--old { text-decoration: line-through; font-weight: 400; }

/* The confirm dialog (ConfirmDialog.html) */
.ej-dim { position: absolute; border-radius: var(--mac-radius); background: rgb(0 0 0 / .38); }
.gdlg { width: 25em; padding: 1.3em 1.5em 1.4em; border-radius: .6em; background: #fff; color: #202124; font-family: Arial, var(--font-ui); box-shadow: 0 1.2em 3em rgb(0 0 0 / .5); }
.gdlg__t { display: flex; justify-content: space-between; font-size: .95em; font-weight: 400; margin-bottom: .9em; }
.gdlg__t span:last-child { color: #5f6368; }
.gdlg p { font-size: .72em; margin-top: .7em; }
.gdlg__line { font-size: .8em !important; }
.gdlg__line s { color: #888; }
.gdlg__line b { color: #137333; }
.gdlg__btns { display: flex; gap: .6em; margin-top: 1em; }
.gdlg__btns span { padding: .55em 1.2em; border-radius: .3em; font-size: .7em; border: 1px solid #c8c8cc; }
.gdlg__btns .ok { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.gdlg__msg { position: relative; height: 1.4em; margin-top: .8em; font-size: .68em; color: #137333; }
.gdlg__msg span { position: absolute; left: 0; top: 0; opacity: 0; }
.gdlg.is-on .ok { animation: ej-press .25s ease 2.2s both; }
.gdlg.is-on .gdlg__msg span:first-child { animation: ej-blip 1s ease 2.4s both; }
.gdlg.is-on .gdlg__msg span:last-child { animation: ej-hold .4s ease 3.4s both; }
@keyframes ej-press { 50% { transform: scale(.93); filter: brightness(1.2); } 100% { opacity: .55; } }
@keyframes ej-blip { 0%, 100% { opacity: 0; } 20%, 80% { opacity: 1; } }
@keyframes ej-hold { to { opacity: 1; } }

.ej-cursor { position: absolute; width: 1.5em; height: 2.1em; z-index: 9; filter: drop-shadow(0 .15em .25em rgb(0 0 0 / .5)); }
.ej-cursor.is-on { animation: ej-glide 1.6s cubic-bezier(.35, .1, .2, 1) .4s both; }
@keyframes ej-glide { from { transform: translate(16em, 9em); } to { transform: none; } }

/* ---------- macOS notification ---------- */
.ej-notif { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: .15em .8em; align-items: start; width: 24em; padding: .9em 1em; border-radius: 1.1em;
  background: rgb(46 46 51 / .9); -webkit-backdrop-filter: blur(1.4em) saturate(1.4); backdrop-filter: blur(1.4em) saturate(1.4); font-family: var(--font-ui);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 1em 2.4em rgb(0 0 0 / .5); z-index: 8; }
.ej-notif__icon { grid-row: span 3; width: 2.6em; height: 2.6em; border-radius: .6em; background: linear-gradient(160deg, #4ea1ff, #1a5fe0); display: grid; place-items: center; }
.ej-notif__icon svg { width: 1.5em; fill: none; stroke: #fff; stroke-width: 1.6; }
.ej-notif__app { font-size: .6em; letter-spacing: .06em; text-transform: uppercase; color: var(--mac-dim); }
.ej-notif__time { font-size: .6em; color: var(--mac-dim); }
.ej-notif__t { grid-column: 2 / 4; font-size: .74em; font-weight: 700; color: var(--mac-text); }
.ej-notif__b { grid-column: 2 / 4; font-size: .7em; color: #c9c9ce; }

/* ---------- Mail ---------- */
.mail__head { padding: 1em 1.4em .9em; border-bottom: 1px solid #e6e6ea; font-size: .72em; color: #5f6368; line-height: 1.7; }
.mail__head b { color: #202124; font-weight: 600; }
.mail__subj { font-size: 1.35em; color: #202124; font-weight: 600; margin-bottom: .3em; }
.mail__card { margin: 1.1em 1.4em; border: 1px solid #e0e0e0; border-radius: .5em; overflow: hidden; font-family: Arial, var(--font-ui); font-size: .74em; color: #202124; }
.mail__card > div { padding: 1.1em 1.4em; }
.mail__top { background: #f8f9fa; border-bottom: 1px solid #e0e0e0; }
.mail__cap { font-size: .82em; letter-spacing: .05em; text-transform: uppercase; color: #5f6368; margin-bottom: .7em; }
.mail__card .pill { font-size: 1.05em; }
.mail__card h4 { font-size: 1.2em; margin: 0 0 .25em; }
.mail__meta { color: #5f6368; margin-bottom: 1.1em; }
.mail__issue { border: 1px solid #e0e0e0; border-radius: .4em; padding: .9em; background: #fafafa; margin: .5em 0 1.1em; }
.mail__btn { display: inline-block; margin-top: 1em; padding: .65em 1.3em; border-radius: .3em; background: #1a73e8; color: #fff; }
.mail__foot { background: #f8f9fa; border-top: 1px solid #e0e0e0; color: #9aa0a6; font-size: .85em; padding: .8em 1.4em !important; }

/* ---------- Docs ---------- */
.docs { height: 100%; padding: 1.4em 2.2em 0; background: #f1f3f4; }
.docs__page { height: 100%; padding: 2em 2.4em; background: #fff; box-shadow: 0 0 0 1px #dadce0; font-family: Arial, var(--font-ui); color: #202124; }
.docs__page h4 { font-size: 1.5em; margin: 0 0 .2em; }
.docs__page > p { font-size: .8em; color: #5f6368; }
.docs__page ol { margin-top: 1.2em; padding: 0; counter-reset: dstep; }
.docs__page li { counter-increment: dstep; position: relative; padding: 0 0 1.1em 2em; font-size: .8em; line-height: 1.5; }
.docs__page li::before { content: counter(dstep); position: absolute; left: 0; top: 0; width: 1.4em; height: 1.4em; border-radius: 50%; background: #1a73e8; color: #fff; text-align: center; font-size: .9em; line-height: 1.4em; }
.docs__page li b { display: block; }
.docs__page code { font-family: var(--font-mono); font-size: .92em; background: #f1f3f4; padding: .05em .3em; border-radius: .2em; }

/* ---------- The merchant portal (recreated UI, sample data) ---------- */
.app { height: 100%; display: flex; flex-direction: column; font-size: .66em; color: #1f2329; background: #fafafa; }
.app__top { display: flex; align-items: center; gap: .8em; padding: 1em 1.4em .6em; font-weight: 600; font-size: 1.1em; }
.app__top i { width: 1.6em; height: 1.6em; border-radius: .4em; background: #ececef; display: grid; place-items: center; font-style: normal; font-size: .8em; color: #555; }
.app__tabs { display: inline-flex; gap: .2em; margin: 0 1.4em .9em; padding: .25em; border-radius: .5em; background: #efeff2; align-self: flex-start; }
.app__tabs span { padding: .4em 1.2em; border-radius: .35em; color: #6b6f76; }
.app__tabs span.is-cur { background: #fff; color: #1f2329; box-shadow: 0 0 0 1px #d6d6db; }
.app__bar { display: flex; gap: .6em; padding: 0 1.4em .8em; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .4em .9em; border-radius: 2em; background: #fff; border: 1px solid #dcdce1; color: #444; white-space: nowrap; }
.chip b { font-weight: 600; color: #1f2329; }
.chip--on { border-color: #1a73e8; background: #eef4ff; }
.grid { margin: 0 1.4em; border: 1px solid #e3e3e8; border-radius: .5em; background: #fff; overflow: hidden; }
.grid table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.grid th { text-align: left; font-weight: 600; color: #6b6f76; padding: .8em 1em; background: #f6f6f8; border-bottom: 1px solid #e3e3e8; white-space: nowrap; }
.grid td { padding: .8em 1em; border-bottom: 1px solid #efeff2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid th.is-f { color: #1a73e8; }
.grid th.is-f::after { content: " ▾"; }
.grid tr.is-hit td { background: #fffbe6; }
.pop { position: absolute; z-index: 3; width: 14em; padding: .5em; border-radius: .6em; background: #fff; box-shadow: 0 0 0 1px #dcdce1, 0 .8em 2em rgb(0 0 0 / .18); }
.pop p { display: flex; align-items: center; gap: .6em; padding: .45em .5em; border-radius: .35em; }
.pop p::before { content: ""; width: .95em; height: .95em; border-radius: .2em; border: 1px solid #b9b9c0; flex: none; }
.pop p.is-ck { background: #eef4ff; }
.pop p.is-ck::before { background: #1a73e8 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='white' stroke-width='1.6'/></svg>") center / 80% no-repeat; border-color: #1a73e8; }
.pop small { display: block; padding: .3em .5em .5em; color: #8a8d93; font-size: .85em; letter-spacing: .06em; text-transform: uppercase; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15em; text-align: center; }
.cal span { padding: .35em 0; border-radius: .3em; color: #444; }
.cal span.d { color: #9a9ca2; font-size: .85em; }
.cal span.is-sel { background: #1a73e8; color: #fff; font-weight: 600; }

/* Wogi function tab */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; padding: 1em 3em 0; }
.cards > div { height: 9.5em; padding: 1.1em 1.3em; border-radius: .9em; display: flex; align-items: flex-end; font-weight: 800; font-size: 1.45em; letter-spacing: -.01em; }
.cards .c1 { background: #c8eadb; color: #2a8a59; }
.cards .c2 { background: #c2e2fb; color: #1a7fd6; }
.cards .c3 { background: #fdd19d; color: #e8650a; }
.cards .c4 { background: #fde9e7; color: #d9442f; }
.cards--sm { gap: .6em; padding: .2em 1.4em 0; }
.cards--sm > div { height: 5.4em; padding: .7em .9em; border-radius: .7em; font-size: 1.02em; }
.is-on .cards > div { animation: ej-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.is-on .cards > div:nth-child(2) { animation-delay: .12s; }
.is-on .cards > div:nth-child(3) { animation-delay: .24s; }
.is-on .cards > div:nth-child(4) { animation-delay: .36s; }
@keyframes ej-rise { from { opacity: 0; transform: translateY(1.4em); } }

/* Postman */
.pm { display: flex; flex-direction: column; background: #1c1c1c; }
.pm__req { display: flex; align-items: center; margin: .9em 1em .7em; font-size: .66em; }
.pm__m { padding: .5em .8em; border-radius: .3em 0 0 .3em; background: #2b2b2b; color: #6bdd9a; font-weight: 700; }
.pm__url { flex: 1; min-width: 0; padding: .5em .8em; margin-right: .6em; border-left: 1px solid #3a3a3a; border-radius: 0 .3em .3em 0; background: #2b2b2b; color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm__send { padding: .5em 1.2em; border-radius: .3em; background: #ff6c37; color: #fff; font-weight: 600; }
.pm__tabs { display: flex; gap: 1.4em; margin: 0 1.6em; border-bottom: 1px solid #333; font-size: .6em; color: #9a9a9a; }
.pm__tabs span { padding-bottom: .5em; }
.pm__tabs .is-cur { color: #fff; border-bottom: 2px solid #ff6c37; }
.pm__res { display: flex; gap: 1.2em; align-items: baseline; margin: .8em 1.6em 0; font-size: .6em; color: #9a9a9a; }
.pm__res b { color: #6bdd9a; font-weight: 600; }
.pm .ej-code { padding-top: .5em; }

/* pgAdmin */
.pg { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); height: 100%; background: #222428; }
.pg__tree { padding: .8em .6em; border-right: 1px solid var(--mac-line); background: #1b1c20; font-size: .6em; color: var(--mac-dim); }
.pg__tree small { display: block; margin: 0 0 .7em .4em; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; }
.pg__tree p { padding: .3em .4em; white-space: nowrap; }
.pg__tree .i1 { padding-left: 1.2em; } .pg__tree .i2 { padding-left: 2em; } .pg__tree .i3 { padding-left: 2.8em; } .pg__tree .i4 { padding-left: 3.6em; }
.pg__tree .is-cur { background: #2e3f5c; color: #fff; border-radius: .3em; }
.pg__main { display: flex; flex-direction: column; min-width: 0; }
.pg__main .ej-code { flex: none; padding: .8em 0; background: #1a1b1e; border-bottom: 1px solid var(--mac-line); }
.pg__cap { display: flex; justify-content: space-between; padding: .7em 1.2em; font-size: .6em; color: var(--mac-dim); }
.pg__cap b { color: var(--mac-text); font-weight: 600; }
.pg__grid { width: calc(100% - 1.4em); margin: 0 .7em; border-collapse: collapse; table-layout: fixed; font-family: var(--font-mono); font-size: .58em; color: var(--mac-text); }
.pg__grid th { text-align: left; padding: .5em .8em; background: #2c2e34; color: var(--mac-dim); font-weight: 600; border: 1px solid #3a3c43; }
.pg__grid td { padding: .5em .8em; border: 1px solid #34363c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg__grid th:first-child { width: 4.5em; } .pg__grid th:last-child { width: 6.5em; }
.pg__grid .nil { color: #7f8c98; }

/* Merchant brand: codes list + details */
.merch { display: grid; grid-template-columns: minmax(0, 1fr) 21em; height: 100%; font-size: .64em; color: #1f2329; background: #fff; }
.merch__codes { padding: 1em; background: #f6f6f8; overflow: hidden; }
.merch__codes h5, .merch__det h5 { margin: 0 0 .9em; font-size: 1.15em; font-weight: 500; }
.qr-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: .9em; align-items: center; padding: .7em; margin-bottom: .6em; border: 1px solid #e3e3e8; border-radius: .5em; background: #fff; }
.qr-row svg { width: 4.6em; height: 4.6em; }
.qr-row small { display: block; color: #9a9ca2; font-size: .85em; }
.qr-row .act { display: flex; gap: .5em; }
.qr-row .act span { width: 2em; height: 2em; border-radius: .4em; border: 1px solid #dcdce1; display: grid; place-items: center; color: #555; }
.qr-row .act svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.qr-row.is-flash { animation: ej-flash 2.4s ease 1s both; }
@keyframes ej-flash { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 0 0 2px #1a73e8; } }
.merch__det { padding: 1em 1.2em; border-left: 1px solid #e3e3e8; }
.merch__tabs { display: flex; gap: .2em; padding: .25em; border-radius: .5em; background: #efeff2; margin-bottom: 1.2em; }
.merch__tabs span { flex: auto; text-align: center; padding: .5em .3em; border-radius: .35em; color: #6b6f76; font-size: .86em; }
.merch__tabs span.is-cur { background: #1f2329; color: #fff; }
.merch__det dt { margin-top: 1em; color: #1f2329; font-weight: 500; }
.merch__det dd { margin-top: .5em; display: flex; flex-wrap: wrap; gap: .4em 1em; color: #333; }
.radio::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .35em; border-radius: 50%; border: 1px solid #8a8d93; vertical-align: -.1em; }
.radio.is-ck::before { border: .28em solid #1f2329; width: .45em; height: .45em; }
.merch__fee { display: block !important; padding: .8em 1em; border-radius: .5em; background: #f2f2f4; line-height: 1.6; }
.merch__save { margin-top: 1.4em; text-align: right; }
.merch__save span { display: inline-block; padding: .6em 1.6em; border-radius: .4em; background: #1f2329; color: #fff; font-weight: 600; }

/* ---------- Narrow screens: the desk sticks to the top, words scroll beneath ---------- */
@media (max-width: 900px) {
  .ej-show { display: block; }
  .ej-show__stage { position: sticky; top: 0; z-index: 3; height: 52svh; background: var(--void); border-bottom: 1px solid var(--void-line); }
  .ej-show__stage > .ej-frame { display: none; }
  .ej-show__step { min-height: 72svh; justify-content: flex-start; padding: var(--space-12) var(--space-6) var(--space-16); }
  .ej-show__step:last-child { min-height: 48svh; }
}

@media (prefers-reduced-motion: reduce) {
  .ej-st, .ej-st.is-on, .ej-sw { transform: none !important; transition: opacity .2s ease, visibility 0s; }
  .ej-cursor.is-on, .gdlg.is-on .ok, .is-on .cards > div, .qr-row.is-flash { animation: none; }
  .gdlg.is-on .gdlg__msg span:last-child { animation: none; opacity: 1; }
}
