/* Snap Translate - product page v2 (demo). On top of v2.css. */

/* One strong colour: the blue of the logo's "A". Navy, a blue light from the top, a warm one from the bottom. */
.snap .v2-hero { background: radial-gradient(55% 60% at 50% 0%, rgba(59, 130, 246, .2), transparent 62%), radial-gradient(60% 55% at 50% 92%, rgba(255, 122, 26, .12), transparent 62%), linear-gradient(180deg, #090e1c, #070b17 70%, var(--bg)); }
.snap .v2-word--grad, .sn-grad { background: linear-gradient(270deg, #7dd3fc 0%, #4f8bff 55%, #6366f1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.snap .v2-step__n { color: #4f8bff; }
.snap .v2-files__glow { background: radial-gradient(closest-side, rgba(59, 130, 246, .2), transparent), radial-gradient(closest-side at 30% 60%, rgba(255, 122, 26, .1), transparent); }
.snap .v2-points li > .i { color: #60a5fa; }
.snap .v2-path::after { background: linear-gradient(90deg, #6366f1, #4f8bff, #7dd3fc); box-shadow: 0 0 14px rgba(79, 139, 255, .6); }
.snap .v2-path.is-in .v2-path__node { border-color: rgba(79, 139, 255, .6); box-shadow: 0 0 0 6px rgba(79, 139, 255, .08), 0 0 30px -6px rgba(79, 139, 255, .8); }
.snap .v2-specs dt .i { color: #60a5fa; }
.snap .v2-caret { background: #4f8bff; }

/* The button while it translates the screen: the busy disc and a blue arc (styles.BTN_LOADING, BTN_ARC). */
.v2-fb[data-state="busy"] { --top: rgb(42, 60, 92); --bottom: rgb(20, 34, 56); }
.v2-fb[data-state="busy"] .track { opacity: 1; }
.v2-fb[data-state="busy"] .arc { opacity: 1; stroke: #3b82f6; stroke-width: 4; }

/* ---------- Text that is translated in place ---------- */
.sn-t { transition: background-color .3s, box-shadow .3s, color .3s; border-radius: 4px; }
.sn-t.is-found { background: rgba(59, 130, 246, .1); box-shadow: 0 0 0 1.5px rgba(59, 130, 246, .55); }
.sn-t.is-swap { animation: sn-swap .45s var(--v2-out); }
@keyframes sn-swap { 0% { filter: blur(0); opacity: 1; } 40% { filter: blur(6px); opacity: 0; } 100% { filter: blur(0); opacity: 1; } }
.sn-t[dir="rtl"] { text-align: left; }
.sn-scan { position: absolute; z-index: 3; inset-inline: 0; top: 0; height: 70px; margin-top: -70px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .16)); border-bottom: 2px solid rgba(59, 130, 246, .85); box-shadow: 0 8px 22px -6px rgba(59, 130, 246, .7); transform: translateY(var(--y, 0)); }
.sn-scan.is-on { opacity: 1; }

/* ---------- Hero: a web page ---------- */
.sn-browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12); }
.sn-browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid #dfe3eb; direction: ltr; }
.sn-browser__dots { display: flex; gap: 6px; }
.sn-browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e2; }
.sn-browser__url { flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; color: #6b7280; font-size: 12.5px; }
.sn-browser__url .i { width: 12px; height: 12px; }
.sn-page { position: relative; overflow: hidden; padding: 16px 22px 26px; min-height: 300px; color: #111827; direction: ltr; text-align: left; font-size: 14px; line-height: 1.55; }
.sn-page__nav { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #eef0f4; color: #4b5563; font-size: 13px; }
.sn-brand { font-weight: 800; color: #0f172a; margin-right: auto; letter-spacing: -.01em; }
.sn-page__body { display: grid; grid-template-columns: 1fr 34%; gap: 22px; }
.sn-page article { display: grid; gap: 8px; align-content: start; }
.sn-page h3 { font-size: 21px; line-height: 1.25; font-weight: 800; color: #0f172a; }
.sn-page p { margin: 0; color: #374151; }
.sn-tag { justify-self: start; font-size: 11.5px; font-weight: 600; color: #2563eb; text-transform: none; }
.sn-btn { justify-self: start; margin-top: 4px; padding: 7px 14px; border-radius: 8px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 600; }
.sn-btn[dir="rtl"] { justify-self: start; }
.sn-page aside { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 10px; background: #f6f7fb; font-size: 13px; color: #374151; }
.sn-aside__title { font-weight: 700; color: #0f172a; font-size: 12px; letter-spacing: .02em; }
.snap .v2-mail, .snap .v2-type { display: none; }

/* ---------- Scroll story: an app window ---------- */
.sn-stage { grid-template-rows: auto 1fr auto; gap: 18px; }
.sn-app { width: min(100%, 470px); border-radius: 14px; overflow: hidden; background: #f7f8fb; color: #111827; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); direction: ltr; text-align: left; transition: opacity .6s, transform .6s var(--v2-out), filter .6s; }
.sn-app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #e9ecf3; font-size: 13px; font-weight: 600; color: #374151; }
.sn-app__bar i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #9aa3b5; }
.sn-app__bar i:first-of-type { margin-left: auto; border: 0; border-top: 1.5px solid #9aa3b5; border-radius: 0; height: 0; }
.sn-app__body { position: relative; overflow: hidden; padding: 8px 16px 16px; }
.sn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e5e8ef; font-size: 15px; }
.sn-row--btn { border: 0; justify-content: flex-start; gap: 10px; padding-top: 14px; }
.sn-primary { padding: 7px 14px; border-radius: 8px; background: #2563eb; color: #fff; font-weight: 600; font-size: 14px; }
.sn-ghost { padding: 7px 14px; border-radius: 8px; border: 1px solid #cfd5e1; color: #374151; font-size: 14px; }
.sn-keep { position: relative; flex: none; font: 600 13.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #1f2937; padding: 2px 8px; border-radius: 6px; transition: background-color .4s, box-shadow .4s, color .4s; }
.sn-keep.is-kept { background: #dcfce7; color: #166534; box-shadow: 0 0 0 1.5px #86efac; }
.sn-keep.is-kept::after { content: "נשמר"; position: absolute; top: -18px; right: 0; font: 600 10.5px/1 var(--font); color: #16a34a; }
[lang="en"] .sn-keep.is-kept::after { content: "Kept"; }
.sn-stage__dock { display: flex; align-items: center; gap: 2px; justify-self: start; direction: rtl; }
[lang="en"] .sn-stage__dock { justify-self: end; min-width: 0; max-width: 100%; } /* on the right, as in Hebrew */
[lang="en"] .sn-stage__dock .v2-pill { direction: ltr; }
.sn-stage__dock[data-state="idle"] .v2-pill, .sn-stage__dock[data-state="done"] .v2-pill { opacity: 0; transform: translateX(-8px); }
.v2-story__stage.sn-stage[data-step="1"] .sn-app, .v2-story__stage.sn-stage[data-step="2"] .sn-app, .v2-story__stage.sn-stage[data-step="3"] .sn-app { opacity: 1; filter: none; transform: scale(1.03); }
.v2-story__stage.sn-stage .sn-stage__dock { opacity: 1; filter: none; transform: none; }

/* ---------- Before / after frame ---------- */
.sn-compare { position: relative; max-width: 1160px; margin-inline: auto; }
.sn-compare::before { content: ""; position: absolute; inset: 60px -4% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 70%); filter: blur(30px); }
.sn-compare .ba { border-radius: 22px; border-color: var(--v2-line); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1), var(--v2-hi); }

/* ---------- Bento ---------- */
.sn-feed { position: relative; flex: 1; display: grid; gap: 10px; align-content: center; margin-top: 8px; }
.sn-msg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--v2-line); transition: border-color .4s, background-color .4s; }
.sn-msg__lang { flex: none; width: 38px; padding: 3px 0; border-radius: 7px; text-align: center; font: 700 11.5px/1.4 var(--font); letter-spacing: .04em; color: var(--muted); background: rgba(255, 255, 255, .06); transition: color .3s, background-color .3s, box-shadow .3s; }
.sn-msg__text { flex: 1; font-size: 15.5px; color: var(--text); text-align: left; direction: ltr; }
.sn-msg__text[dir="rtl"] { text-align: left; direction: rtl; }
.sn-msg.is-detect .sn-msg__lang { color: #fff; background: #2563eb; box-shadow: 0 0 16px -2px rgba(59, 130, 246, .8); }
.sn-msg.is-done { border-color: rgba(79, 139, 255, .35); background: rgba(59, 130, 246, .06); }
.sn-msg.is-done .sn-msg__lang { color: #93c5fd; background: rgba(59, 130, 246, .16); }

.sn-anchors { flex: 1.2; }
.sn-anchors__line { margin: 0; padding: 16px 18px; border-radius: 14px; background: #f7f8fb; color: #111827; font-size: 16px; line-height: 1.9; min-height: 64px; text-align: left; }
.sn-anchors__line[dir="rtl"] { text-align: left; }
.sn-anchors__line .sn-w { transition: opacity .3s, filter .3s; }
.sn-anchors__line .sn-w.is-out { opacity: 0; filter: blur(4px); }
.sn-lock { display: inline-block; padding: 0 6px; border-radius: 6px; font: 600 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; direction: ltr; unicode-bidi: isolate; transition: background-color .3s, box-shadow .3s, color .3s; }
.sn-anchors.is-locked .sn-lock { background: #dcfce7; color: #166534; box-shadow: 0 0 0 1.5px #86efac; }

.sn-photo { position: relative; flex: 1.3; min-height: 170px; border-radius: 14px; overflow: hidden; }
.sn-photo__scene { position: absolute; inset: 0; background: linear-gradient(180deg, #1e1b4b 0%, #312e81 45%, #0f172a 100%); }
.sn-photo__scene i { position: absolute; bottom: 0; background: #0b1020; border-radius: 4px 4px 0 0; }
.sn-photo__scene i:nth-child(1) { left: 6%; width: 30%; height: 62%; }
.sn-photo__scene i:nth-child(2) { left: 40%; width: 24%; height: 48%; background: #111733; }
.sn-photo__scene i:nth-child(3) { right: 4%; width: 28%; height: 70%; }
.sn-sign { position: absolute; top: 18%; left: 9%; padding: 8px 14px; border-radius: 8px; background: rgba(15, 23, 42, .85); border: 2px solid #f472b6; box-shadow: 0 0 22px rgba(244, 114, 182, .6), inset 0 0 12px rgba(244, 114, 182, .35); }
.sn-sign--sm { top: 46%; left: auto; right: 9%; border-color: #38bdf8; box-shadow: 0 0 18px rgba(56, 189, 248, .55), inset 0 0 10px rgba(56, 189, 248, .3); }
.sn-sign__text { display: block; font: 800 17px/1.2 var(--font); color: #fdf2f8; letter-spacing: .06em; text-shadow: 0 0 10px rgba(244, 114, 182, .9); white-space: nowrap; }
.sn-sign--sm .sn-sign__text { font-size: 13px; color: #e0f2fe; text-shadow: 0 0 8px rgba(56, 189, 248, .9); }

.sn-look { flex: 1.3; display: grid; gap: 14px; }
.sn-look__ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sn-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--v2-line); }
.sn-seg b { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s; }
.sn-seg b.is-on { background: #2563eb; color: #fff; }
.sn-size { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.sn-size small { font-size: 11px; }
.sn-size i { position: relative; width: 90px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.sn-size em { position: absolute; top: 50%; left: var(--k, 30%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: left .5s var(--v2-out); }
.sn-look__sample { padding: 14px 16px; border-radius: 12px; background: rgba(10, 15, 30, .92); color: #e6eaf2; border: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs, 15px); line-height: 1.5; transition: background-color .45s, color .45s, font-size .45s var(--v2-out), border-color .45s; }
.sn-look__sample.is-light { background: #ffffff; color: #111827; border-color: #e5e7eb; }

/* ---------- Documents film ---------- */
.sn-ext--pdf { background: #4a1d1d; color: #fca5a5; }
.sn-ext--pptx { background: #4a2a16; color: #fdba74; }
.sn-ext--xlsx { background: #14361f; color: #86efac; }
.sn-ext--docx { background: #1b3b8a; color: #fff; }
.sn-docs .v2-tw { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "opts opts" "drop drop" "qhead doc" "queue doc" "total total"; column-gap: 18px; row-gap: 12px; }
.sn-docs .v2-tw__opts { grid-area: opts; }
.sn-docs .v2-tw__drop { grid-area: drop; }
.sn-qhead { grid-area: qhead; display: flex; align-items: baseline; gap: 10px; font-size: 14px; transition: opacity .5s; }
.sn-qsum { color: var(--muted); font-size: 13px; }
.sn-queue { grid-area: queue; display: grid; gap: 8px; align-content: start; transition: opacity .5s; }
.sn-docs .v2-tw__row { padding: 11px 14px; gap: 12px; }
.sn-docs .v2-tw__row .v2-ext { width: 38px; height: 38px; font-size: 10.5px; }
.sn-docs .v2-tw__info b { font-size: 14.5px; }
.sn-doc { grid-area: doc; position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--v2-out); }
.sn-docs.has-doc .sn-doc { opacity: 1; transform: none; }
.sn-sheet { position: absolute; inset: 0; padding: 18px 20px; color: #1f2937; font-size: 12.5px; line-height: 1.6; display: grid; gap: 8px; align-content: start; background: #fff; }
.sn-sheet b { font-size: 17px; color: #0f172a; }
.sn-sheet p { margin: 0; }
.sn-sheet table, .sn-mini table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sn-sheet th, .sn-sheet td, .sn-mini th, .sn-mini td { padding: 4px 6px; border-bottom: 1px solid #e5e7eb; text-align: start; }
.sn-sheet th, .sn-mini th { background: #eff6ff; color: #1e3a8a; font-weight: 700; }
.sn-chart { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 66px; padding: 6px 10px 18px; border-radius: 8px; background: #f8fafc; }
.sn-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #60a5fa, #2563eb); }
.sn-chart span { position: absolute; bottom: 2px; inset-inline: 10px; font-size: 10.5px; color: #64748b; }
.sn-sheet--he { clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0); }
.sn-doc__line { position: absolute; inset-inline: 0; top: calc(var(--p, 0) * 100%); height: 2px; background: #3b82f6; box-shadow: 0 0 14px 2px rgba(59, 130, 246, .7); opacity: 0; transition: opacity .3s; }
.sn-docs[data-act="2"] .sn-doc__line { opacity: 1; }
.sn-total { grid-area: total; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); transition: opacity .5s; }
.sn-total .v2-tw__bar { flex: 1; margin: 0; }
.sn-total .v2-tw__bar i { background: #a77bff; }
.sn-docs .v2-tw__row.is-done .v2-tw__bar i { background: var(--green); }
.sn-docs .v2-tw__drop.is-hot { border-color: #4aa8ff; background: rgba(74, 168, 255, .08); color: #cfe6ff; }
.sn-docs[data-act="2"] .v2-tw__drop, .sn-docs[data-act="3"] .v2-tw__drop { opacity: 1; max-height: 70px; padding-block: 16px; margin-block: 0; border-width: 1.5px; }
.sn-docs[data-act="2"] .v2-tw__opts, .sn-docs[data-act="3"] .v2-tw__opts { opacity: 1; }
.sn-docs.is-outs .sn-qhead, .sn-docs.is-outs .sn-queue, .sn-docs.is-outs .sn-doc, .sn-docs.is-outs .sn-total, .sn-docs.is-outs .v2-tw__drop { opacity: 0; }
.sn-docs .v2-outs { inset: 120px 0 0; }
.sn-docs .v2-out { opacity: 0; transform: translateY(-60px) scale(.7); }
.sn-docs.is-outs .v2-out { opacity: 1; }
.sn-docs.is-outs .sn-out--pdf { transform: rotate(-2deg); }
.sn-docs.is-outs .sn-out--pptx { transform: rotate(1.5deg) translateY(24px); transition-delay: .12s; }
.sn-docs.is-outs .sn-out--xlsx { transform: rotate(3deg) translateY(6px); transition-delay: .24s; }
.sn-out--pdf { inset-inline-start: 0; width: 34%; z-index: 3; }
.sn-out--pptx { inset-inline-start: 33%; width: 34%; z-index: 2; display: block; top: 40px; }
.sn-out--xlsx { inset-inline-end: 0; width: 30%; z-index: 1; top: 40px; }
.sn-docs .v2-out { display: block; }
.sn-mini { border-radius: 8px; background: #fff; color: #1f2937; padding: 14px; font-size: 12px; line-height: 1.6; min-height: 190px; }
.sn-mini b { display: block; font-size: 15px; color: #0f172a; margin-bottom: 6px; }
.sn-mini p { margin: 0 0 8px; }
.sn-mini--slide { position: relative; aspect-ratio: 16 / 10; min-height: 0; background: linear-gradient(135deg, #1e3a8a, #312e81); color: #e0e7ff; }
.sn-mini--slide b { color: #fff; font-size: 16px; }
.sn-mini--slide ul { margin: 0; padding-inline-start: 18px; }
.sn-mini__img { position: absolute; left: 12px; bottom: 12px; width: 34%; height: 38%; border-radius: 6px; background: linear-gradient(135deg, #f59e0b, #ef4444); opacity: .85; }
.sn-mini--grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 0; overflow: hidden; min-height: 0; }
.sn-mini--grid span { padding: 7px 10px; border-bottom: 1px solid #e5e7eb; border-inline-start: 1px solid #e5e7eb; font-size: 12px; }
.sn-mini--grid span:nth-child(-n+2) { background: #ecfdf5; color: #065f46; font-weight: 700; }
.sn-mini--grid span:nth-child(even) { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.sn-mini--grid span:nth-last-child(-n+2) { font-weight: 700; border-bottom: 0; }
.sn-files { gap: 6px; padding: 10px 16px 10px 10px; }
.sn-files .v2-ext { width: 34px; height: 34px; font-size: 9.5px; }
.sn-files b { margin-left: 6px; direction: rtl; }
[dir="ltr"] .sn-files b { direction: ltr; }

/* ---------- Model choice ---------- */
.sn-config { border-radius: 26px; padding: 26px; background: var(--v2-glass), #0a1020; border: 1px solid var(--v2-line); box-shadow: var(--v2-hi), 0 40px 100px -40px rgba(0, 0, 0, .9); display: grid; gap: 20px; }
.sn-config__group { display: grid; gap: 8px; }
.sn-config__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.sn-choice { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.sn-choice button { display: grid; gap: 2px; padding: 11px 10px; border-radius: 13px; border: 1px solid var(--v2-line); background: #0f1729; text-align: center; transition: border-color .3s, background-color .3s, box-shadow .3s, opacity .3s; }
.sn-choice button b { font-size: 15px; direction: ltr; }
.sn-choice button small { font-size: 12px; color: var(--muted); }
.sn-choice button:hover { border-color: var(--border-strong); }
.sn-choice button[aria-pressed="true"] { border-color: rgba(79, 139, 255, .75); background: rgba(59, 130, 246, .12); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.sn-choice button:disabled { opacity: .35; cursor: not-allowed; }
.sn-config__out { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--v2-line); }
.sn-config__size { display: flex; align-items: baseline; gap: 10px; }
.sn-config__gb { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #9aa6c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sn-config__size small { color: var(--muted); font-size: 14px; }
.sn-config__def { margin-inline-start: auto; align-self: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #93c5fd; background: rgba(59, 130, 246, .14); transition: opacity .3s; }
.sn-config__def.is-hidden { opacity: 0; }
.sn-meter { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.sn-meter i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sn-meter em { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .6s var(--v2-out); }
.sn-q { background: linear-gradient(90deg, #6366f1, #4f8bff); }
.sn-s { background: linear-gradient(90deg, #22c55e, #86efac); }
.sn-config__note { margin: 0; font-size: 12.5px; color: #6b7690; }

.sn-cta { background: radial-gradient(80% 70% at 50% 0%, rgba(59, 130, 246, .22), transparent 60%), radial-gradient(70% 60% at 50% 100%, rgba(255, 122, 26, .16), transparent 60%), #090e1c; }
.sn-cta .v2-cta__rings i { border-color: rgba(79, 139, 255, .5); }
.sn-cta .v2-cta__orb { box-shadow: 0 0 60px -10px rgba(59, 130, 246, .6), inset 0 1px 0 rgba(255, 255, 255, .15); animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sn-docs.v2-film__stage { height: 780px; }
  .sn-docs .v2-tw { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto 1fr auto; grid-template-areas: "opts" "drop" "qhead" "queue" "doc" "total"; }
  .sn-docs .v2-outs { inset: 110px 0 60px; }
  .sn-out--pdf { width: 62%; }
  .sn-out--pptx { inset-inline-start: auto; inset-inline-end: 0; width: 56%; top: 200px; }
  .sn-out--xlsx { inset-inline-end: auto; inset-inline-start: 4%; width: 60%; top: 360px; }
  .sn-stage .sn-app { font-size: 14px; }
}
@media (max-width: 700px) {
  .sn-page__body { grid-template-columns: 1fr; }
  .sn-page aside { display: none; }
  .sn-page { min-height: 250px; padding: 14px 16px 20px; }
  .sn-page h3 { font-size: 18px; }
  .sn-page__nav .sn-t:nth-of-type(3) { display: none; }
  .sn-choice button { padding: 10px 6px; }
  .sn-choice button b { font-size: 14px; }
  .sn-row { font-size: 13.5px; padding: 8px 0; }
  .sn-docs .v2-tw__opts .v2-opt:nth-child(n+2) { display: none; }
  .sn-out--pdf, .sn-out--pptx, .sn-out--xlsx { width: 78%; }
  .sn-msg__text { font-size: 14px; }
}

/* Hero fit: a longer first line than Swift Speak's; badges off the page's text */
.snap .v2-display { font-size: clamp(40px, 5.3vw, 74px); }
.snap .v2-float--a { top: auto; bottom: -24px; inset-inline-end: 10%; }
.snap .v2-float--b { top: -22px; inset-inline-start: auto; inset-inline-end: 6%; }
.snap .v2-float--c { display: none; }
[lang="en"] .snap .v2-float--a { inset-inline-end: auto; left: 10%; }
[lang="en"] .snap .v2-float--b { inset-inline-end: auto; left: 6%; right: auto; }

/* Documents film: an empty queue before the files arrive; the button in the free top corner */
.sn-empty { grid-row: 3 / 5; grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 12px; color: #4f5a76; font-size: 14.5px; transition: opacity .4s; }
.sn-empty .i { width: 40px; height: 40px; stroke-width: 1.5; color: #39445f; }
.sn-docs.has-rows .sn-empty { display: none; }
.sn-docs .v2-film__orb { top: 22px; bottom: auto; left: 26px; right: auto; }
@media (max-width: 960px) { .sn-docs .v2-film__orb { top: 14px; left: 14px; } .sn-empty { grid-row: 3 / 6; } }
/* English: the button keeps the Hebrew corner, so the options start after it */
[lang="en"] .sn-docs .v2-tw__opts { padding-left: 84px; }

/* PDF: the page keeps its layout; each Hebrew line starts where the English one did (pdf.py, src_rtl) */
.sn-sheet--he [dir="rtl"], .sn-mini--doc [dir="rtl"] { text-align: left; }

/* Story on phones: room for the keys, the window and the button with its label */
@media (max-width: 960px) {
  .v2-story__stage.sn-stage { height: 450px; gap: 10px; padding: 16px; }
  .snap .v2-story__steps { padding-top: 470px; }
  .snap .v2-story__sticky::before { height: 496px; }
  .sn-stage .v2-key { min-width: 44px; padding: 8px 10px 11px; font-size: 13px; }
  .sn-stage .sn-row { padding: 7px 0; }
  .sn-stage .sn-row--btn { padding-top: 10px; }
  .sn-stage .sn-app__body { padding: 4px 14px 12px; }
  .v2-story__stage.sn-stage[data-step] .sn-app { transform: none; }
}

/* Documents film on phones: room for the page under the queue; the button clear of the drop zone */
@media (max-width: 700px) {
  .sn-docs.v2-film__stage { height: 980px; }
  .sn-docs .v2-tw__opts { min-height: 58px; align-items: flex-start; }
  .sn-docs .v2-film__orb .v2-fb { transform: scale(.82); transform-origin: top left; }
  [lang="en"] .sn-docs .v2-tw__opts { padding-left: 62px; }
  .sn-doc { min-height: 300px; }
}
