/* SearchAble's product page: its windows drawn as the app draws them (345: ui/theme.py DARK, ui/main_window.py,
   ui/results.py, ui/start_page.py, ui/chat_page.py), at the app's own sizes, scaled to fit by searchable.js.
   Loaded after v2.css; only adds. */

.grad-sa { background: linear-gradient(90deg, #22d3ee, #3b82f6 45%, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-word--grad.sa-grad { background-image: linear-gradient(90deg, #22d3ee, #3b82f6 45%, #a855f7); }

/* ---------- the app's dark tokens ---------- */
.sa {
  --bg: #131314; --surf: #1E1F20; --s1: #282A2C; --s2: #333537; --s3: #3C4043;
  --pri: #A8C7FA; --pri-c: #004A77; --on-pri-c: #C2E7FF; --on-pri: #062E6F;
  --tx: #E3E3E3; --mu: #C4C7C5; --fa: #8E918F; --ol: #5F6368; --olv: #3C4043;
  --hl: rgba(251, 188, 4, .42); --hl-soft: rgba(251, 188, 4, .13); --ring: #FBBC04;
  --ok: #6DD58C;
  direction: inherit; color: var(--tx); font-size: 14px; line-height: 1.45; text-align: start;
}
.sa svg.si { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa bdi, .sa .ltr { direction: ltr; unicode-bidi: isolate; }

/* the window is drawn at its own size and scaled down to the space it has */
.sa-fit { position: relative; width: 100%; }
.sa-fit > .sa-win { position: absolute; top: 0; inset-inline-start: 0; transform-origin: top right; transform: scale(var(--k, 1)); }
[dir="ltr"] .sa-fit > .sa-win { transform-origin: top left; }
.sa-win { width: var(--w, 1060px); height: var(--h, 640px); display: grid; grid-template-columns: 76px 1fr; grid-template-rows: 36px 36px 1fr 38px; background: var(--bg); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4); overflow: hidden; }

.sa-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding-inline: 14px 10px; font-size: 14px; color: var(--tx); }
.sa-title img { width: 18px; height: 18px; }
.sa-title__ctl { margin-inline-start: auto; display: flex; gap: 30px; color: var(--mu); direction: ltr; padding-inline: 8px; }
[dir="rtl"] .sa-title__ctl { flex-direction: row-reverse; }
.sa-title__ctl svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }

.sa-tabs { grid-column: 2; display: flex; align-items: flex-end; gap: 6px; padding-inline: 12px; }
.sa-tab { display: flex; align-items: center; gap: 10px; height: 34px; padding-inline: 14px 10px; border-radius: 10px 10px 0 0; background: var(--surf); font-size: 13.5px; font-weight: 600; min-width: 210px; }
.sa-tab .si { width: 15px; height: 15px; color: var(--mu); }
.sa-tab__x { margin-inline-start: auto; color: var(--mu); }
.sa-tab__x .si { width: 14px; height: 14px; }
.sa-tabs__add { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mu); }

.sa-rail { grid-row: 3; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 10px; }
.sa-rail__it { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--mu); padding-bottom: 6px; }
.sa-rail__it i { width: 52px; height: 32px; border-radius: 16px; display: grid; place-items: center; }
.sa-rail__it.is-on { color: var(--tx); }
.sa-rail__it.is-on i { background: var(--pri-c); color: var(--on-pri-c); }
.sa-rail__it--end { margin-top: auto; }

.sa-surf { grid-row: 3; grid-column: 2; position: relative; margin-inline-end: 12px; border-radius: 16px; background: var(--surf); display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.sa-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-inline: 76px 14px; font-size: 12.5px; color: var(--mu); }
.sa-status__pill { display: inline-flex; align-items: center; gap: 12px; height: 28px; padding-inline: 12px 14px; border-radius: 14px; background: var(--s1); color: var(--tx); }
.sa-status__pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); }
.sa-status__pill a { color: var(--pri); font-weight: 600; }
.sa-status__dev { margin-inline-start: auto; color: var(--fa); }

/* search box and chips */
.sa-box { display: flex; align-items: center; gap: 12px; margin: 14px 14px 8px; height: 48px; padding-inline: 16px 14px; border-radius: 24px; background: var(--s1); font-size: 16px; }
.sa-box .si { color: var(--mu); }
.sa-box__q { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.sa-box__q::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-inline-start: 2px; vertical-align: -.18em; background: var(--tx); animation: sa-caret 1s steps(1) infinite; }
.sa-box__ph { color: var(--fa); }
.sa-box__x, .sa-box__lens { color: var(--mu); display: grid; place-items: center; }
@keyframes sa-caret { 50% { opacity: 0; } }
.sa-chips { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; border-bottom: 1px solid var(--olv); }
.sa-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; border: 1px solid var(--ol); border-radius: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sa-chip .si { width: 16px; height: 16px; }
.sa-count { margin-inline-start: auto; color: var(--mu); font-size: 13px; white-space: nowrap; }

/* body: results on the reading side, the preview beside them */
.sa-body { display: grid; grid-template-columns: 330px 1fr; min-height: 0; }
.sa-results { position: relative; padding: 10px 10px 0; border-inline-end: 1px solid var(--olv); overflow: hidden; display: grid; align-content: start; gap: 6px; }
.sa-results__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px; font-size: 13px; font-weight: 600; color: var(--mu); }
.sa-looks { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--s1); color: var(--mu); }
.sa-looks i { width: 30px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.sa-looks i.is-on { background: var(--pri-c); color: var(--on-pri-c); }
.sa-looks .si { width: 15px; height: 15px; }

.sa-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border-radius: 16px; transition: background-color .3s, opacity .4s, transform .5s var(--v2-out, ease); }
.sa-card.is-sel { background: var(--pri-c); }
.sa-card__main { min-width: 0; display: grid; gap: 1px; }
.sa-card__name { font-size: 15px; font-weight: 600; direction: ltr; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="ltr"] .sa-card__name { text-align: start; }
.sa-card__path { font-size: 12.5px; color: var(--mu); }
.sa-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); }
.sa-dots { display: inline-flex; gap: 3px; direction: ltr; }
.sa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--pri); }
.sa-dots i.o { background: var(--ol); }
.sa-card.is-sel .sa-dots i { background: var(--on-pri-c); }
.sa-card.is-sel .sa-dots i.o { background: rgba(194, 231, 255, .35); }
.sa-card.is-sel .sa-card__path, .sa-card.is-sel .sa-card__meta { color: var(--on-pri-c); }
.sa-card__snip { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.55; max-height: 3.1em; overflow: hidden; color: var(--tx); }
.sa-card__snip .sem { background: var(--hl-soft); border-radius: 3px; box-shadow: 0 0 0 2px var(--hl-soft); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sa-card.is-sel .sa-card__snip .sem { background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.sa mark { background: var(--hl); color: inherit; border-radius: 2px; padding: 0 1px; }
.sa-card__tags { grid-column: 1 / -1; display: flex; justify-content: flex-start; gap: 6px; }
.sa-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; }
.sa-tag .si { width: 14px; height: 14px; }
.sa-tag--vis { background: #4A3A6B; color: #E8DEF8; }
.sa-tag--txt { background: #004A77; color: #C2E7FF; }
.sa-tag--say { background: #0F5223; color: #C4EED0; }
.sa-tag--hits { border: 1px solid rgba(194, 231, 255, .4); color: var(--on-pri-c); background: none; }
.sa-card:not(.is-sel) .sa-tag--hits { border-color: var(--ol); color: var(--pri); }

/* the file kind: a solid tile (theme.TYPE_COLOURS), or a thumbnail with the kind on it */
.sa-kind { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: .02em; direction: ltr; }
.sa-kind--pdf { background: #EA4335; } .sa-kind--doc { background: #4285F4; } .sa-kind--xls { background: #188038; }
.sa-kind--img { background: #12A4B8; } .sa-kind--vid { background: #A142F4; } .sa-kind--aud { background: #E37400; } .sa-kind--txt { background: #5F6368; }
.sa-thumb { position: relative; width: 124px; height: 84px; border-radius: 10px; overflow: hidden; }
.sa-thumb b { position: absolute; inset-inline-start: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 700; direction: ltr; }

/* preview */
.sa-prev { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; background: var(--surf); }
.sa-prev__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--olv); }
.sa-prev__name { min-width: 0; display: grid; }
.sa-prev__name b { font-size: 16px; font-weight: 700; direction: ltr; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="ltr"] .sa-prev__name b { text-align: start; }
.sa-prev__name small { font-size: 12.5px; color: var(--mu); white-space: nowrap; }
.sa-prev__nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px 8px; border-radius: 17px; background: var(--s1); font-size: 13px; white-space: nowrap; }
.sa-prev__nav .si { width: 15px; height: 15px; color: var(--mu); }
.sa-prev__nav + .sa-prev__btns { margin-inline-start: 0; }
.sa-prev__btns { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; color: var(--mu); }
.sa-open { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 16px; border-radius: 18px; background: var(--pri-c); color: var(--on-pri-c); font-size: 14px; font-weight: 600; }
.sa-open .si { width: 16px; height: 16px; }
.sa-prev__view { position: relative; min-height: 0; overflow: hidden; }

/* a document page, with the closest sentence lit and the query's words marked */
.sa-paper { position: absolute; inset: 14px 28px 0 18px; background: #fff; color: #1f1f1f; border-radius: 3px 3px 0 0; padding: 30px 36px; font-size: 13.5px; line-height: 1.85; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
[dir="ltr"] .sa-paper { inset: 14px 18px 0 28px; }
.sa-paper h4 { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #111; }
.sa-paper small { display: block; color: #6b7280; font-size: 12px; margin-bottom: 14px; }
.sa-paper p { margin: 0 0 10px; }
.sa-paper .sem { background: #FEF4D6; box-shadow: 0 0 0 3px #FEF4D6; border-radius: 2px; transition: background-color .5s, box-shadow .5s; }
.sa-paper .sem.is-lit { background: #FCE58F; box-shadow: 0 0 0 3px #FCE58F; }
.sa-paper mark { background: #FCE58F; }
.sa-marks { position: absolute; inset-inline-end: 8px; top: 18px; bottom: 30px; width: 8px; }
.sa-marks i { position: absolute; inset-inline: 0; height: 3px; border-radius: 2px; background: var(--ring); }
.sa-marks i.cur { background: var(--pri); height: 6px; }
.sa-zoom { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; height: 38px; padding-inline: 14px; border-radius: 19px; background: rgba(51, 53, 55, .96); font-size: 13px; color: var(--tx); white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); }
.sa-zoom .si { width: 15px; height: 15px; color: var(--mu); }
.sa-zoom span + span { padding-inline-start: 14px; border-inline-start: 1px solid var(--ol); }

/* a picture: what matched, framed as the app frames it */
.sa-photo { position: absolute; inset: 18px 22px; display: grid; place-items: center; }
.sa-photo__img { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; }
.sa-box2 { position: absolute; border: 2.5px solid var(--ring); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .32); }
.sa-box2 b { position: absolute; bottom: 100%; inset-inline-end: -2.5px; margin-bottom: 6px; padding: 2px 10px; border-radius: 6px; background: var(--ring); color: #241a00; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* a recording: the wave, the player, the moments and the transcript */
.sa-audio { position: absolute; inset: 0; padding: 16px 18px; display: grid; align-content: start; gap: 14px; }
.sa-wave { position: relative; height: 104px; border-radius: 14px; background: var(--s1); display: flex; align-items: center; gap: 2px; padding: 0 16px; direction: ltr; overflow: hidden; }
.sa-wave i { flex: 1; border-radius: 1px; background: #8a8d91; }
.sa-wave i.is-hit { background: #c9a227; }
.sa-wave u { position: absolute; top: 10px; bottom: 10px; width: 2px; background: var(--ring); }
.sa-player { display: flex; align-items: center; gap: 14px; direction: ltr; font-size: 12.5px; color: var(--mu); }
.sa-player .si { color: var(--tx); }
.sa-player__track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--s3); }
.sa-player__track i { position: absolute; inset-block: 0; left: 0; border-radius: inherit; background: #8a7020; }
.sa-player__track b { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--pri); transform: translateY(-50%); }
.sa-sub { font-size: 12.5px; font-weight: 600; color: var(--mu); }
.sa-moment { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--pri-c); color: var(--on-pri-c); font-size: 13.5px; }
.sa-moment time { font-weight: 700; font-size: 15px; direction: ltr; }
.sa-moment em { font-style: normal; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); font-size: 12px; }
.sa-lines { display: grid; gap: 8px; font-size: 13.5px; }
.sa-lines div { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: baseline; }
.sa-lines time { color: var(--mu); direction: ltr; text-align: end; font-size: 12.5px; }
[dir="ltr"] .sa-lines time { text-align: start; }

/* a video frame */
.sa-video { position: absolute; inset: 0; padding: 16px 18px; display: grid; align-content: start; gap: 12px; }
.sa-frame { position: relative; height: 270px; border-radius: 10px; overflow: hidden; }
.sa-frame__bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); direction: ltr; color: #fff; font-size: 12px; }
.sa-frame__bar .si { width: 15px; height: 15px; }
.sa-frame__track { position: relative; flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.sa-frame__track i { position: absolute; top: -3px; width: 3px; height: 9px; border-radius: 2px; background: var(--ring); }
.sa-frame__track b { position: absolute; inset-block: 0; left: 0; background: #ff5a4e; border-radius: inherit; }
.sa-moments { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-moments span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding-inline: 10px 12px; border-radius: 10px; background: var(--s1); font-size: 13px; }
.sa-moments span.is-on { background: var(--pri-c); color: var(--on-pri-c); }
.sa-moments time { font-weight: 700; direction: ltr; }

/* a screenshot read by OCR: dim all but the lines found */
.sa-shot { position: absolute; inset: 18px 22px; border-radius: 6px; overflow: hidden; background: #f6f7f9; color: #1f2937; direction: inherit; }
.sa-shot__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: #e9ecf1; direction: ltr; }
.sa-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c8ccd3; }
.sa-shot__bar span { margin-left: 10px; padding: 2px 12px; border-radius: 10px; background: #fff; font-size: 11px; color: #6b7280; }
.sa-shot__page { padding: 20px 26px; display: grid; gap: 12px; font-size: 13.5px; }
.sa-shot__page h5 { margin: 0; font-size: 18px; color: #0f172a; }
.sa-shot__row { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 #e5e7eb; }
.sa-shot__row b { font-weight: 700; direction: ltr; }
.sa-shot__ocr { position: relative; z-index: 1; outline: 2.5px solid var(--ring); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .38); }

/* ---------- the start screen's four ways to search (ui/start_page.py Capability, dark tints) ---------- */
.sa-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sa-mode { position: relative; display: grid; align-content: start; gap: 8px; min-height: 236px; padding: 22px; border-radius: 20px; color: #E3E3E3; transition: transform .5s var(--v2-out, ease); }
.sa-mode:hover { transform: translateY(-4px); }
.sa-mode--words { background: #17284A; } .sa-mode--meaning { background: #2A1F45; }
.sa-mode--speech { background: #3A2410; } .sa-mode--image { background: #12301C; }
.sa-mode__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); margin-bottom: 6px; }
.sa-mode__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sa-mode h3 { margin: 0; font-size: 20px; }
.sa-mode p { margin: 0; color: #C4C7C5; font-size: 15px; line-height: 1.6; }
.sa-mode__try { margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 600; }
.sa-mode__try span { display: inline-block; padding: 2px 8px; margin-inline-end: 6px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.sa-mode--words .sa-mode__try span { background: #0842A0; color: #D3E3FD; }
.sa-mode--meaning .sa-mode__try span { background: #4A2A8A; color: #E9DDFF; }
.sa-mode--speech .sa-mode__try span { background: #7A3A00; color: #FFDCC2; }
.sa-mode--image .sa-mode__try span { background: #0A3818; color: #C4EED0; }

/* ---------- "what it finds": the tabs over the window ---------- */
.sa-tabsbar { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sa-tabsbar button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 18px; border-radius: 21px; border: 1px solid var(--v2-line); background: rgba(255, 255, 255, .03); color: var(--text-2); font: inherit; font-size: 15px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.sa-tabsbar button .i { width: 17px; height: 17px; }
.sa-tabsbar button[aria-selected="true"] { background: #fff; color: #0b1020; border-color: #fff; font-weight: 600; }
.sa-fit > .sa-scene:not(.is-on) { display: none; }
.sa-scene.is-on .sa-body, .sa-scene.is-on .sa-box__q { animation: sa-in .5s var(--v2-out, ease) both; }
@keyframes sa-in { from { opacity: 0; transform: translateY(6px); } }


/* ---------- chat (ui/chat_page.py) ---------- */
.sa-chat { grid-template-rows: 1fr; grid-template-columns: 260px 1fr; }
.sa-hist { display: grid; align-content: start; gap: 10px; padding: 12px; margin: 12px; margin-inline-end: 0; border-radius: 14px; background: var(--s1); }
.sa-hist__new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 22px; background: var(--pri-c); color: var(--on-pri-c); font-weight: 600; font-size: 14.5px; }
.sa-hist__h { font-size: 14.5px; font-weight: 700; padding: 6px 4px 0; }
.sa-hist__find { display: flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px; border-radius: 20px; background: var(--s2); color: var(--fa); font-size: 13.5px; }
.sa-hist__find .si { width: 16px; height: 16px; }
.sa-hist small { padding: 6px 4px 0; color: var(--mu); font-size: 12.5px; }
.sa-hist__it { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-hist__it.is-on { background: var(--s3); font-weight: 600; }
.sa-conv { position: relative; display: grid; grid-template-columns: 1fr 300px; grid-template-rows: 1fr auto; gap: 0 18px; padding: 16px 18px 14px; min-height: 0; }
.sa-thread { display: grid; align-content: start; gap: 12px; min-width: 0; overflow: hidden; }
.sa-q { justify-self: end; max-width: 86%; padding: 10px 18px; border-radius: 20px; background: var(--pri-c); color: var(--on-pri-c); font-size: 14.5px; }
[dir="rtl"] .sa-q { justify-self: start; }
.sa-a__who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.sa-a__who .si { width: 16px; height: 16px; color: var(--pri); }
.sa-a__who small { margin-inline-start: auto; color: var(--fa); font-weight: 400; font-size: 12.5px; }
.sa-a { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.75; }
.sa-a p { margin: 0; }
.sa-a ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.sa-a .w { opacity: 0; transition: opacity .25s; }
.sa-a .w.is-in { opacity: 1; }
.sa-cite { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 6px 10px; margin-inline-start: 4px; border-radius: 13px; background: var(--s2); font-size: 12.5px; vertical-align: 1px; line-height: 1; white-space: nowrap; direction: ltr; }
[dir="rtl"] .sa-cite { flex-direction: row-reverse; }
.sa-cite i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-style: normal; font-weight: 800; color: #fff; }
.sa-acts { display: flex; gap: 20px; color: var(--mu); padding-top: 2px; }
.sa-acts .si { width: 17px; height: 17px; }
.sa-srcs { grid-row: 1 / 2; display: grid; align-content: start; gap: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--olv); background: var(--bg); overflow: hidden; }
.sa-src { display: grid; grid-template-columns: 1fr 72px; gap: 4px 12px; padding: 12px 2px; border-bottom: 1px solid var(--olv); transition: opacity .4s, transform .5s var(--v2-out, ease); }
.sa-src:last-child { border-bottom: 0; }
.sa-src__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); }
.sa-src__k i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-style: normal; font-weight: 800; color: #fff; }
.sa-src b { font-size: 15px; direction: ltr; text-align: end; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="ltr"] .sa-src b { text-align: start; }
.sa-src p { margin: 0; font-size: 12.5px; color: var(--mu); line-height: 1.5; max-height: 3em; overflow: hidden; }
.sa-src__pg { grid-row: 2 / 4; grid-column: 2; width: 72px; height: 72px; border-radius: 6px; background: #fff; padding: 6px; display: grid; gap: 4px; align-content: start; }
.sa-src__pg i { height: 3px; border-radius: 2px; background: #c9ced6; }
.sa-src__pg i:first-child { width: 60%; background: #4b5563; height: 4px; }
.sa-ask { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; height: 60px; margin-top: 12px; padding-inline: 18px 8px; border-radius: 30px; background: var(--s1); color: var(--fa); font-size: 14.5px; }
.sa-ask__scope { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border: 1px solid var(--ol); border-radius: 10px; color: var(--tx); font-weight: 600; font-size: 14px; }
.sa-ask__scope .si { width: 16px; height: 16px; }
.sa-ask__send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pri-c); color: var(--on-pri-c); }
[dir="rtl"] .sa-ask__send svg { transform: scaleX(-1); }

/* ---------- the background service ---------- */
.sa-agent { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, #121a2f, #0b1122); border: 1px solid var(--v2-line); box-shadow: var(--v2-hi, none), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.sa-agent .sa-status__pill { justify-self: start; height: 34px; font-size: 14px; padding-inline: 14px 16px; transition: opacity .3s; }
.sa-agent__bar { height: 4px; border-radius: 2px; background: #3C4043; overflow: hidden; }
.sa-agent__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #A8C7FA; transition: width .8s var(--v2-out, ease); }
.sa-agent__cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sa-agent__cats div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #282A2C; color: #E3E3E3; font-size: 14px; }
.sa-agent__cats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sa-agent__cats .sa-kind { width: 34px; height: 34px; font-size: 9.5px; }
.sa-agent__log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #C4C7C5; }
.sa-agent__log li { display: flex; align-items: center; gap: 10px; }
.sa-agent__log li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6DD58C; flex: none; }

/* ---------- the CSS "photos" (no photos ship with the page) ---------- */
.ph { position: absolute; inset: 0; }
.ph--doc { background: #f3f4f6; }
.ph--doc::after { content: ""; position: absolute; left: 18%; right: 18%; top: 14%; bottom: 0; background: #fff repeating-linear-gradient(180deg, transparent 0 10px, #d1d5db 10px 12px); background-clip: content-box; padding: 12px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .sa-modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .sa-modes { grid-template-columns: 1fr; }
  .sa-mode { min-height: 0; }
  .sa-tabsbar { gap: 6px; }
  .sa-tabsbar button { height: 38px; padding-inline: 13px; font-size: 14px; }
}


/* layout details */
.sa-body { grid-template-columns: 372px 1fr; }
.sa-thread { grid-column: 1; grid-row: 1; }
.sa-srcs { grid-column: 2; }
.sa-box2 { box-shadow: none; }

/* the scaled window keeps its layout size: clip it to its place (the shadow may spill a little) */
.sa-fit { overflow: hidden; border-radius: 12px; }
.sa-frame { height: 232px; }
.sa-a { font-size: 14px; line-height: 1.65; }
.sa-a ul { list-style: disc; }
#private .v2-split > * { min-width: 0; }
.sa-agent .sa-status__pill { max-width: 100%; height: auto; min-height: 34px; padding-block: 6px; }
@media (max-width: 600px) {
  .sa-agent { padding: 16px; }
  .sa-agent__cats div { padding: 10px; gap: 8px; font-size: 13px; }
  .sa-agent__cats b { font-size: 18px; }
  .sa-agent__cats .sa-kind { width: 28px; height: 28px; font-size: 8.5px; border-radius: 8px; }
}

/* ---------- the hero: the quick search (Ctrl+Alt+F), typing one search after another ---------- */
.sa-spot { position: relative; padding: 14px; border-radius: 22px; background: var(--bg); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(168, 199, 250, .05), 0 30px 80px -50px rgba(59, 130, 246, .55); }
.sa-spot__bar { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; font-size: 13.5px; font-weight: 600; color: var(--tx); }
.sa-spot__bar img { width: 20px; height: 20px; }
.sa-spot__key { margin-inline-start: auto; display: flex; gap: 4px; direction: ltr; }
.sa-spot__key kbd { min-width: 26px; padding: 2px 7px; border-radius: 6px; background: var(--s1); border: 1px solid var(--olv); border-bottom-width: 2px; color: var(--mu); font: 600 11px/1.5 inherit; text-align: center; }
.sa-spot__box { display: flex; align-items: center; gap: 12px; height: 52px; padding-inline: 18px; border-radius: 26px; background: var(--s1); border: 1.5px solid var(--pri); box-shadow: 0 0 0 4px rgba(168, 199, 250, .12); font-size: 16.5px; color: var(--tx); }
.sa-spot__box .si { width: 21px; height: 21px; color: var(--pri); }
.sa-spot__q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-spot__caret { width: 2px; height: 22px; margin-inline-start: -10px; background: var(--pri); animation: sa-blink 1s steps(1) infinite; }
@keyframes sa-blink { 50% { opacity: 0; } }
.sa-spot__kinds { display: flex; align-items: center; gap: 6px; margin: 12px 2px; }
.sa-spot__kinds span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 11px; border-radius: 15px; border: 1px solid var(--olv); color: var(--mu); font-size: 12.5px; transition: background .3s, color .3s, border-color .3s; }
.sa-spot__kinds span .si { width: 15px; height: 15px; }
.sa-spot__kinds span.is-on { background: var(--pri-c); border-color: var(--pri-c); color: var(--on-pri-c); font-weight: 600; }
.sa-spot__kinds .sa-spot__count { margin-inline-start: auto; border: 0; padding: 0; color: var(--fa); font-size: 12px; white-space: nowrap; }
.sa-spot__scenes { position: relative; }
.sa-spot__scene { display: grid; gap: 8px; }
.sa-spot__scene:not(.is-on) { display: none; }
.sa-spot__view { position: relative; height: 250px; border-radius: 14px; overflow: hidden; background: #0c0c0d; }
.sa-spot__rows { display: grid; gap: 4px; }
.sa-spot__row { display: flex; align-items: center; gap: 12px; height: 50px; padding-inline: 8px 14px; border-radius: 12px; }
.sa-spot__row.is-sel { background: var(--surf); box-shadow: inset 0 0 0 1px var(--olv); }
.sa-spot__ic { position: relative; width: 44px; height: 34px; flex: none; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.sa-spot__ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-spot__ic .sa-kind { width: 34px; height: 34px; }
.sa-spot__name { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.sa-spot__name b { font-size: 14px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-spot__name small { font-size: 12px; color: var(--fa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-spot__row .sa-dots { flex: none; }
/* the scene comes in once its search is typed */
.sa-spot.is-wait .sa-spot__view, .sa-spot.is-wait .sa-spot__row, .sa-spot.is-wait .sa-spot__count { opacity: 0; transform: translateY(8px); }
.sa-spot__view, .sa-spot__row, .sa-spot__count { transition: opacity .45s, transform .6s var(--v2-out, ease); }
.sa-spot__row:nth-child(2) { transition-delay: .08s; } .sa-spot__row:nth-child(3) { transition-delay: .16s; }
/* the four views */
.sa-spot__doc { position: absolute; inset: 16px 16px 0; padding: 18px 22px; border-radius: 8px 8px 0 0; background: #fff; color: #1f2937; font-size: 13px; line-height: 1.7; }
.sa-spot__doc h4 { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.sa-spot__doc small { display: block; color: #6b7280; font-size: 11.5px; margin-bottom: 10px; }
.sa-spot__doc p { margin: 0 0 6px; }
.sa-spot__doc .sem { border-radius: 3px; transition: background .6s, box-shadow .6s; }
.sa-spot__doc .sem.is-lit { background: rgba(251, 188, 4, .42); box-shadow: 0 0 0 2px rgba(251, 188, 4, .42); }
.sa-spot__photo { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #1b1c1e, #0c0c0d); }
.sa-spot__img { position: relative; height: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.sa-spot__img > img, .sa-spot__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-spot .sa-box2 b { font-size: 12px; }
.sa-spot__audio { position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; padding: 18px 20px; background: var(--surf); }
.sa-spot__audio .sa-wave { height: 82px; }
.sa-spot__line { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--s1); font-size: 13.5px; }
.sa-spot__line time { color: var(--pri); font-weight: 700; direction: ltr; flex: none; }
.sa-spot__line mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }
.sa-spot__frame { position: absolute; inset: 0; }
.sa-spot__frame .sa-frame__bar { z-index: 1; }
.sa-spot__moment { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 8px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 12.5px; backdrop-filter: blur(6px); }
.sa-spot__moment time { color: var(--ring); font-weight: 700; direction: ltr; }
/* the floating notes: one over the top edge, one on the outer side */
.sa-hstage .v2-float--a { top: -20px; inset-inline-end: 8%; }
.sa-hstage .v2-float--c { top: 54%; bottom: auto; inset-inline-start: auto; inset-inline-end: -26px; }
@media (max-width: 1100px) { .sa-hstage .v2-float--a { inset-inline-end: 6%; } .sa-hstage .v2-float--c { inset-inline-end: -8px; } }
/* the headline: two lines beside the card (the second line is longer than on the other product pages) */
.sa-hcopy .v2-display { font-size: clamp(40px, 4.3vw, 62px); }
html[lang="en"] main .sa-hcopy .v2-display { font-size: clamp(36px, 3.7vw, 54px); }
@media (min-width: 961px) { .sa-hcopy .v2-word { white-space: nowrap; } }
@media (max-width: 600px) {
  .sa-spot { padding: 10px; border-radius: 18px; }
  .sa-spot__box { height: 46px; font-size: 15px; padding-inline: 14px; }
  .sa-spot__kinds { gap: 4px; overflow: hidden; }
  .sa-spot__kinds span { padding-inline: 8px; font-size: 12px; height: 28px; }
  .sa-spot__kinds span .si, .sa-spot__kinds .sa-spot__count { display: none; }
  .sa-spot__view { height: 196px; }
  .sa-spot__row .sa-dots { display: none; }
  .sa-hstage .v2-float--a { top: auto; bottom: -20px; inset-inline-end: 10px; }
  .v2-stats dt small { white-space: normal; }
}

/* ---------- real photos in the windows (Pexels, free licence) ---------- */
.sa-thumb > img, .sa-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sa-photo__img { width: auto; max-width: 100%; aspect-ratio: 4 / 3; }
.sa-photo__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
