/* The engine explainer: the pipeline band, the chapters and their drawn scenes, the closing band.
   Every colour is the section's scheme, so each part reads on a light and a dark band alike. Physical directions are
   never used: the page mirrors whole in a right-to-left language. */

/* ── Pipeline ── */

.ep-pipe { display: grid; gap: 14px; margin-block-start: 40px; }
.ep-pipe__end { display: flex; margin: 0; }
.ep-pipe__end span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border: 1.5px solid var(--color-text); border-radius: 9999px;
  font-size: 0.9375rem; font-weight: 600;
}
.ep-pipe__end--in span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-text); }
.ep-pipe__end--out span { background: var(--color-accent); color: var(--color-accent-text, #000); border-color: var(--color-text); box-shadow: 4px 4px 0 var(--color-text); }
.ep-pipe__stages { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
/* The line the stages hang on: down the start edge on narrow screens, across on wide ones. */
.ep-pipe__stages::before {
  content: ""; position: absolute; inset-block: -14px; inset-inline-start: 31px; width: 0;
  border-inline-start: 2px dashed var(--color-text); opacity: 0.35;
}
.ep-stage { position: relative; display: flex; }
.ep-stage__card {
  position: relative; display: grid; gap: 8px; width: 100%; padding: 18px 20px;
  border: 1.5px solid var(--color-text); border-radius: var(--radius-card, 20px);
  background: var(--color-background); color: var(--color-text); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
a.ep-stage__card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--color-text); }
[dir="rtl"] a.ep-stage__card:hover { transform: translate(3px, -3px); box-shadow: -6px 6px 0 var(--color-text); }
a.ep-stage__card:focus-visible { outline: 3px solid var(--color-text); outline-offset: 3px; box-shadow: 0 0 0 7px var(--color-accent); }
.ep-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ep-stage__number {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-text); color: var(--color-background); font-size: 0.8125rem; font-weight: 700;
}
.ep-stage__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-accent); color: var(--color-accent-text, #000); }
.ep-stage__icon svg { width: 24px; height: 24px; }
.ep-stage__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.ep-stage__text { color: var(--color-text-secondary); font-size: 0.9375rem; line-height: 1.5; }
a.ep-stage__card .ep-stage__title::after { content: " \2193"; content: " \2193" / ""; font-weight: 400; opacity: 0; transition: opacity 0.2s; }
a.ep-stage__card:hover .ep-stage__title::after,
a.ep-stage__card:focus-visible .ep-stage__title::after { opacity: 1; }

@media (min-width: 1000px) {
  .ep-pipe { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
  .ep-pipe__stages { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px; }
  .ep-pipe__stages::before { inset-block: 50% auto; inset-inline: -18px; width: auto; height: 0; border-inline-start: 0; border-block-start: 2px dashed var(--color-text); }
  .ep-pipe__end span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 10px; }
  .ep-pipe__end--in span::before { margin-block-end: 2px; }
  [dir="rtl"] .ep-pipe__end span { transform: none; }
  .ep-stage__card { align-content: start; height: 100%; }
}

/* ── Chapter ── */

.ep-ch__grid { display: grid; gap: 40px; }
.ep-ch__number {
  margin: 0 0 4px; font-size: clamp(4rem, 9vw, 7rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em;
  color: var(--color-background); -webkit-text-stroke: 2.5px var(--color-text); paint-order: stroke fill;
}
.ep-ch__title { margin: 0 0 16px; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.ep-ch__lead { max-width: 46ch; margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--color-text-secondary); }
.ep-ch__art { margin-block-start: 32px; container-type: inline-size; }
.ep-ch__body { display: grid; gap: 28px; align-content: start; min-width: 0; }

@media (min-width: 1000px) {
  .ep-ch__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .ep-ch--end .ep-ch__head { order: 2; }
  .ep-ch__body { padding-block-start: 12px; }
  .ep-ch--plain .ep-ch__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ep-ch--plain .ep-ch__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
  .ep-ch--plain .ep-ch__lead { max-width: 62ch; }
}
.ep-mech { position: relative; padding-block-start: 20px; border-block-start: 1.5px solid var(--color-text); }
.ep-mech__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.ep-mech__title::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--color-text); border-radius: 4px; background: var(--color-accent); transform: translateY(-1px); }
.ep-mech__text { color: var(--color-text-secondary); font-size: 1.0625rem; line-height: 1.65; }
.ep-mech__text strong { color: var(--color-text); }
.ep-mech__text a { color: var(--color-text); }

/* An example: what came in beside what the page shows, on one card with a hard shadow. */
.ep-ex {
  margin: 0; overflow: hidden; border: 1.5px solid var(--color-text); border-radius: var(--radius-card, 20px);
  background: var(--color-card-background); box-shadow: 6px 6px 0 var(--color-text);
}
[dir="rtl"] .ep-ex { box-shadow: -6px 6px 0 var(--color-text); }
.ep-ex__caption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-block-end: 1.5px solid var(--color-text); }
.ep-ex__label { padding: 3px 10px; border-radius: 9999px; background: var(--color-text); color: var(--color-background); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ep-ex__title { font-weight: 600; }
.ep-ex__pair { display: grid; margin: 0; }
.ep-ex__side { display: grid; gap: 6px; padding: 16px 18px; }
.ep-ex__side + .ep-ex__side { border-block-start: 1.5px dashed color-mix(in srgb, var(--color-text) 40%, transparent); }
.ep-ex__side dt { display: flex; align-items: center; gap: 8px; color: var(--color-text-secondary); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ep-ex__side dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; overflow-wrap: anywhere; }
.ep-ex__side--before dd { color: var(--color-text-secondary); }
.ep-ex__side--after { background: var(--color-background); }
.ep-ex__verdict { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-text, #000); }
.ep-ex__verdict svg { width: 14px; height: 14px; }
[dir="rtl"] .ep-ex--changed .ep-ex__verdict svg { transform: scaleX(-1); }
.ep-ex--left_out .ep-ex__verdict { background: var(--color-text); color: var(--color-background); }
.ep-ex--left_out .ep-ex__side--after dd { color: var(--color-text-secondary); }

@media (min-width: 640px) {
  .ep-ex__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ep-ex__side + .ep-ex__side { border-block-start: 0; border-inline-start: 1.5px dashed color-mix(in srgb, var(--color-text) 40%, transparent); }
}

.ep-note { padding: 18px 20px; border: 1.5px dashed var(--color-text); border-radius: var(--radius-card, 20px); }
.ep-note__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 700; }
.ep-note__title::before { content: "i"; content: "i" / ""; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--color-text); color: var(--color-background); font-size: 0.8125rem; font-weight: 700; font-style: italic; }
.ep-note__text { color: var(--color-text-secondary); line-height: 1.6; }

/* ── Closing band ── */

.ep-cta .kx__in { display: grid; justify-items: start; }
.ep-cta .kx-actions .btn svg { width: 18px; height: 18px; }
[dir="rtl"] .ep-cta .kx-actions .btn svg { transform: scaleX(-1); }

/* ── Scenes ──
   A scene is a fixed-ratio card; its parts are placed in percentages, so it scales as one picture. Hidden parts are
   only ever hidden while the chapter is armed (assets/engine.js) and the scene is not yet in view. */

.ep-scene {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1.5px solid var(--color-text); border-radius: var(--radius-card, 20px);
  background: var(--color-card-background); box-shadow: 8px 8px 0 var(--color-text);
  font-size: clamp(0.625rem, 2.9cqi, 1rem); line-height: 1.25; color: var(--color-text);
}
[dir="rtl"] .ep-scene { box-shadow: -8px 8px 0 var(--color-text); }
.ep-scene .ep-pop { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--ep-delay, 0s); }
.ep-armed .ep-scene:not(.is-in) .ep-pop { opacity: 0; transform: translateY(14px) scale(0.96); }
.ep-scene svg { display: block; }

/* Shared drawn parts. */
.ep-chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35em 0.8em; border: 1.5px solid var(--color-text); border-radius: 9999px; background: var(--color-background); font-weight: 600; white-space: nowrap; }
.ep-chip--on { background: var(--color-accent); color: var(--color-accent-text, #000); }
.ep-chip--on::before { content: "\2713"; }
.ep-appicon { display: grid; place-items: center; width: 3.4em; height: 3.4em; border: 1.5px solid var(--color-text); border-radius: 0.9em; background: var(--color-accent); color: var(--color-accent-text, #000); }
.ep-appicon--lg { width: 5.6em; height: 5.6em; border-radius: 1.4em; }
.ep-appicon__mark { width: 70%; height: 70%; }
.ep-lines { display: grid; gap: 0.5em; }
.ep-lines i { display: block; height: 0.5em; border-radius: 0.25em; background: color-mix(in srgb, var(--color-text) 22%, transparent); }
.ep-lines i:nth-child(3n) { width: 72%; }
.ep-lines i:nth-child(3n + 2) { width: 88%; }
.ep-phone { display: grid; align-content: start; gap: 0.35em; padding: 0.7em 0.45em; border: 1.5px solid var(--color-text); border-radius: 0.9em; background: var(--color-background); }
.ep-phone i { display: block; height: 0.6em; border-radius: 0.3em; background: color-mix(in srgb, var(--color-text) 18%, transparent); }
.ep-phone i:first-child { height: 2.6em; background: var(--color-accent); }
.ep-page { position: absolute; display: grid; align-content: start; gap: 0.7em; padding: 0.9em; border: 1.5px solid var(--color-text); border-radius: 0.9em; background: var(--color-background); }
.ep-page__bar { display: flex; gap: 0.3em; }
.ep-page__bar i { width: 0.5em; height: 0.5em; border-radius: 50%; background: color-mix(in srgb, var(--color-text) 30%, transparent); }
.ep-arrow { position: absolute; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--color-text); color: var(--color-background); }
.ep-arrow svg { width: 60%; height: 60%; }
[dir="rtl"] .ep-arrow svg { transform: scaleX(-1); }
.ep-block { display: block; border-radius: 0.5em; }
.ep-block--hero { height: 3.2em; background: var(--color-accent); border: 1.5px solid var(--color-text); }
.ep-block--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.ep-block--row i { height: 2.4em; border-radius: 0.45em; border: 1.5px solid var(--color-text); background: var(--color-card-background); }

/* input: the tool's form, filled in. */
.ep-scene--input { display: grid; place-items: center; }
.ep-form { display: grid; gap: 0.8em; width: 82%; padding: 1.2em; border: 1.5px solid var(--color-text); border-radius: 1em; background: var(--color-background); }
.ep-form__label { font-weight: 700; }
.ep-form__field { overflow: hidden; padding: 0.6em 0.8em; border: 1.5px solid var(--color-text); border-radius: 0.6em; white-space: nowrap; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.ep-caret { display: inline-block; width: 2px; height: 1em; margin-inline-start: 2px; vertical-align: -0.15em; background: currentColor; }
.ep-form__chips { display: flex; flex-wrap: wrap; gap: 0.4em; }
.ep-form__tick { display: flex; align-items: center; gap: 0.5em; color: var(--color-text-secondary); }
.ep-form__tick b { display: grid; place-items: center; width: 1.2em; height: 1.2em; border: 1.5px solid var(--color-text); border-radius: 0.3em; background: var(--color-text); }
.ep-form__tick b::after { content: "\2713"; color: var(--color-background); font-size: 0.8em; }
.ep-form__button { justify-self: start; padding: 0.6em 1.2em; border-radius: 9999px; background: var(--color-text); color: var(--color-background); font-weight: 700; }

/* listing: the store page, its facts flying out. */
.ep-scene--listing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 7%; padding: 7%; }
.ep-store { display: grid; grid-template-columns: auto 1fr; gap: 0.4em 0.8em; align-items: center; padding: 1em; border: 1.5px solid var(--color-text); border-radius: 1em; background: var(--color-background); }
.ep-store .ep-appicon { grid-row: span 2; }
.ep-store__name { font-weight: 700; }
.ep-store__meta { color: var(--color-text-secondary); }
.ep-store__shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; margin-block-start: 0.4em; }
.ep-store__shots i { aspect-ratio: 9 / 16; border: 1.5px solid var(--color-text); border-radius: 0.4em; background: color-mix(in srgb, var(--color-accent) 55%, var(--color-background)); }
.ep-facts { display: flex; flex-wrap: wrap; gap: 0.45em; margin: 0; padding: 0; list-style: none; }

/* brand: the logo and screens in, a palette and the feel out. */
.ep-scene--brand { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; padding: 7%; }
.ep-brand__in { display: flex; align-items: flex-end; gap: 0.6em; }
.ep-phone--sm { width: 4.4em; height: 8.4em; }
.ep-brand__out { display: grid; gap: 0.9em; }
.ep-swatches { display: flex; gap: 0.35em; }
.ep-swatches i { width: 2.6em; height: 2.6em; border: 1.5px solid var(--color-text); border-radius: 50%; }
.ep-swatches i:nth-child(1) { background: var(--color-accent); }
.ep-swatches i:nth-child(2) { background: var(--color-text); }
.ep-swatches i:nth-child(3) { background: color-mix(in srgb, var(--color-accent) 40%, var(--color-background)); }
.ep-swatches i:nth-child(4) { background: var(--color-background); }
.ep-slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5em; font-size: 0.85em; color: var(--color-text-secondary); }
.ep-slider em { font-style: normal; }
.ep-slider b { position: relative; height: 0.4em; border-radius: 0.2em; background: color-mix(in srgb, var(--color-text) 22%, transparent); }
.ep-slider b i { position: absolute; inset-block-start: 50%; inset-inline-start: var(--ep-at, 50%); width: 1.1em; height: 1.1em; border: 1.5px solid var(--color-text); border-radius: 50%; background: var(--color-accent); transform: translate(-50%, -50%); }
[dir="rtl"] .ep-slider b i { transform: translate(50%, -50%); }

/* design: three themes, one picked; type that holds the language's script. */
.ep-scene--design { display: grid; grid-template-rows: 1fr auto; gap: 6%; padding: 8%; }
.ep-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.ep-theme { position: relative; display: grid; align-content: start; gap: 0.4em; padding: 0.55em; border: 1.5px solid var(--color-text); border-radius: 0.7em; background: var(--color-background); }
.ep-theme i { display: block; height: 0.5em; border-radius: 0.25em; background: color-mix(in srgb, var(--color-text) 18%, transparent); }
.ep-theme i:first-child { height: 2.4em; }
.ep-theme--picked { outline: 3px solid var(--color-text); outline-offset: 3px; }
.ep-theme--picked i:first-child { background: var(--color-accent); }
.ep-theme b { position: absolute; inset-block-start: -0.8em; inset-inline-end: -0.8em; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--color-text); color: var(--color-background); }
.ep-theme b svg { width: 60%; }
.ep-type { display: flex; align-items: center; gap: 0.8em; padding: 0.6em 0.9em; border: 1.5px solid var(--color-text); border-radius: 9999px; background: var(--color-background); }
.ep-type__sample { font-size: 1.8em; font-weight: 700; line-height: 1; }
.ep-type__scripts { color: var(--color-text-secondary); letter-spacing: 0.04em; }

/* writing: a headline that fits its limit, ending where a phrase ends. */
.ep-scene--writing { display: grid; align-items: center; padding: 8%; }
.ep-scene--writing .ep-page { position: relative; grid-area: 1 / 1; justify-self: start; width: 74%; z-index: 1; }
.ep-scene--writing .ep-page--back { justify-self: end; width: 42%; margin-block-start: 5em; z-index: 0; }
.ep-page__head { font-size: 1.35em; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.ep-ruler { position: relative; display: block; height: 0.9em; border-inline: 1.5px solid var(--color-text); }
.ep-ruler b { position: absolute; inset-inline: 0; inset-block-start: 50%; border-block-start: 1.5px dashed var(--color-text); }
.ep-ruler em { position: absolute; inset-inline-end: 0; inset-block-start: 100%; margin-block-start: 0.25em; padding: 0.1em 0.5em; border-radius: 9999px; background: var(--color-accent); color: var(--color-accent-text, #000); font-style: normal; font-size: 0.8em; font-weight: 600; }
.ep-scene--writing .ep-page .ep-lines { margin-block-start: 1.4em; }

/* checks: each line of copy judged against the listing. */
.ep-scene--checks { display: grid; align-items: center; padding: 7%; }
.ep-checks { display: grid; gap: 0.6em; margin: 0; padding: 0; list-style: none; }
.ep-check { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.65em 0.8em; border: 1.5px solid var(--color-text); border-radius: 0.7em; background: var(--color-background); }
.ep-check__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.ep-check__mark { display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; }
.ep-check__mark svg { width: 62%; }
.ep-check--yes .ep-check__mark { background: var(--color-accent); color: var(--color-accent-text, #000); }
.ep-check--no .ep-check__mark { background: var(--color-text); color: var(--color-background); }
.ep-check--no .ep-check__text { color: var(--color-text-secondary); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* pictures: the screenshots sorted into a phone frame, a wide band and the share card. */
.ep-shots { position: absolute; inset-block-start: 8%; inset-inline: 8%; display: flex; gap: 0.5em; }
.ep-shots i { width: 2.3em; aspect-ratio: 9 / 16; border: 1.5px solid var(--color-text); border-radius: 0.4em; background: color-mix(in srgb, var(--color-accent) 55%, var(--color-background)); }
.ep-shots i.ep-shots__wide { width: 6.5em; aspect-ratio: 2 / 1; background: var(--color-accent); }
.ep-phone--frame { position: absolute; inset-block-end: 8%; inset-inline-start: 8%; width: 24%; aspect-ratio: 9 / 18; border-width: 2.5px; border-radius: 1.2em; }
.ep-band { position: absolute; inset-block-end: 40%; inset-inline: 38% 8%; display: block; padding: 0.4em; border: 1.5px solid var(--color-text); border-radius: 0.7em; background: var(--color-background); }
.ep-band i { display: block; aspect-ratio: 3 / 1; border-radius: 0.4em; background: var(--color-accent); }
.ep-share { position: absolute; inset-block-end: 8%; inset-inline: 38% 8%; display: grid; grid-template-columns: 2.6em 1fr; align-items: center; gap: 0.6em; padding: 0.5em; border: 1.5px solid var(--color-text); border-radius: 0.7em; background: var(--color-background); }
.ep-share i { aspect-ratio: 1.9 / 1; border-radius: 0.3em; background: var(--color-accent); }
.ep-share em { font-style: normal; font-weight: 600; }

/* icon: a plated icon in a dark tab bar, then the clean mark. */
.ep-scene--icon { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4%; padding: 6%; font-size: clamp(0.6875rem, 3.3cqi, 1.125rem); }
.ep-scene--icon .ep-arrow { position: static; }
.ep-tabs { display: grid; gap: 0.6em; justify-items: start; padding: 0.7em; border-radius: 0.8em; background: #1c1c1e; color: #fff; }
.ep-tab { display: flex; align-items: center; gap: 0.5em; max-width: 100%; padding: 0.45em 0.7em; border-radius: 0.5em 0.5em 0 0; background: #2c2c2e; }
.ep-tab em { overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.ep-tab__plate, .ep-tab__mark { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; }
.ep-tab__plate { background: #fff; color: #ff4fd8; border-radius: 0.15em; }
.ep-tab__mark { color: #ff90e8; }
.ep-tab svg { width: 100%; height: 100%; }
.ep-tabs__label { font-size: 0.8em; color: #c7c7cc; }

/* policies: the owner's own document, copied onto the site's page. */
.ep-scene--policies { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4%; padding: 7%; font-size: clamp(0.6875rem, 3.2cqi, 1.125rem); }
.ep-scene--policies .ep-arrow { position: static; }
.ep-scene--policies .ep-page { position: static; }
.ep-doc { display: grid; gap: 0.7em; padding: 1.1em 0.9em 1.6em; border: 1.5px solid var(--color-text); border-radius: 0.3em 1.2em 0.3em 0.3em; background: var(--color-background); }
.ep-doc__title { font-weight: 700; }

/* finish: an empty part taken away, a picture place kept for the owner. */
.ep-scene--finish { display: grid; place-items: center; padding: 7%; }
.ep-scene--finish .ep-page--tall { position: relative; width: 78%; gap: 0.6em; }
.ep-block--empty { display: grid; place-items: center; height: 2.6em; border: 1.5px dashed var(--color-text); background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--color-text) 10%, transparent) 6px 7px); }
.ep-block--empty em { padding: 0.1em 0.6em; border-radius: 9999px; background: var(--color-text); color: var(--color-background); font-style: normal; font-size: 0.85em; font-weight: 600; text-decoration: line-through; }
.ep-block--slot { display: grid; place-items: center; height: 3em; border: 1.5px dashed var(--color-text); background: color-mix(in srgb, var(--color-accent) 25%, var(--color-background)); }
.ep-block--slot em { font-style: normal; font-weight: 600; }

/* result: the site in a browser and a phone, the Keep button and the clock. */
.ep-browser { position: absolute; inset-block-start: 9%; inset-inline: 7% 22%; display: grid; gap: 0.6em; padding: 0 0.8em 0.8em; border: 1.5px solid var(--color-text); border-radius: 0.9em; background: var(--color-background); overflow: hidden; }
.ep-browser__bar { display: flex; align-items: center; gap: 0.3em; margin-inline: -0.8em; padding: 0.5em 0.8em; border-block-end: 1.5px solid var(--color-text); }
.ep-browser__bar i { width: 0.5em; height: 0.5em; border-radius: 50%; background: color-mix(in srgb, var(--color-text) 30%, transparent); }
.ep-browser__bar em { margin-inline-start: 0.5em; padding: 0.15em 0.7em; overflow: hidden; border-radius: 9999px; background: var(--color-card-background); font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.ep-phone--front { position: absolute; inset-block-end: 9%; inset-inline-end: 8%; width: 21%; aspect-ratio: 9 / 18; border-width: 2.5px; border-radius: 1.1em; box-shadow: 4px 4px 0 var(--color-text); }
.ep-keep { position: absolute; inset-block-end: 11%; inset-inline-start: 7%; padding: 0.6em 1.1em; border: 1.5px solid var(--color-text); border-radius: 9999px; background: var(--color-accent); color: var(--color-accent-text, #000); font-weight: 700; box-shadow: 3px 3px 0 var(--color-text); }
.ep-timer { position: absolute; inset-block-end: 12%; inset-inline-start: 46%; padding: 0.3em 0.7em; border-radius: 9999px; background: var(--color-text); color: var(--color-background); font-weight: 600; font-size: 0.85em; }

/* The head column stays in view beside the details only where the screen is tall enough to hold all of it. */
@media (min-width: 1000px) and (min-height: 820px) {
  .ep-ch__sticky { position: sticky; inset-block-start: 104px; }
  .is-editing .ep-ch__sticky { position: static; }
}

@media (max-width: 999px) {
  .ep-ch__art { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-scene .ep-pop, .ep-stage__card { transition: none; }
  a.ep-stage__card:hover { transform: none; }
}

@media print {
  .ep-armed .ep-scene:not(.is-in) .ep-pop { opacity: 1; transform: none; }
  .ep-ch__sticky { position: static; }
}
