/*
  AI training's pictures (docs/pages/service_pages/pictures/ai_training.py), for /services/ai-training, linked after service-page.css
  as the page's picture_css. They follow service-page.css's rules for every picture: sizes in em, the font size from the box's width
  (100cqw divided by --w, set here and never inline), so each scales whole from 2560 px to 320, and a box under 480 px draws the
  wide ones 22 em wide. They reuse its parts (.ui, .ui-box, .ui-label) and add their own: the Example tag, a round tile with an
  initial, and the generic AI app (bubbles, a numbered reply, a box that reads "Type a question"): none of any vendor's mark, colors,
  fonts or layout. Then a call window, a notes list, a phone's text size setting, a list of chats, a call's side panel, a laptop's
  desktop and a reminders list. Flat fills only: no stripes, no grid, no street lines (Rahul's rule against busy line backgrounds).
*/

/* Each picture's width in em: the header's 30, the steps' 24, the parts of the work 26 to 34 */
.ui-call { --w: 30; }
.ui-list, .ui-size, .ui-chats { --w: 24; }
.ui-side, .ui-prac { --w: 26; }
.ui-talk { --w: 28; }
.ui-desk { --w: 34; }

/* ── Shared parts ── */
.ui-example {
  flex: none; margin-left: auto; padding: 0.25em 0.6em; border: 0.0625em solid var(--ui-line); border-radius: 9999px;
  background-color: var(--ui-fill); color: var(--slate); font-size: max(0.64em, min(11px, 0.8em)); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
/* A person on the call: a round tile with an initial, never a photo */
.ui-face { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; border-radius: 9999px; background-color: #0f766e; color: #fff; font-size: 0.9em; font-weight: 650; line-height: 1; }
.ui-face.is-r { background-color: #6d28d9; }

/* The generic AI app: Linda's message to the right in a soft blue bubble, the reply to the left in a gray one beside a plain round
   speech bubble mark, a numbered list and a quieter line inside a reply, and the box at the foot */
.ui-chat { display: grid; gap: 0.65em; }
.ui-msg { max-width: 90%; font-size: 0.8em; line-height: 1.4; }
.ui p.ui-msg.is-me { justify-self: end; padding: 0.6em 0.85em; border-radius: 1.1em 1.1em 0.3em 1.1em; background-color: var(--tint); }
.ui-msg.is-ai { display: flex; align-items: flex-start; gap: 0.55em; justify-self: start; }
.ui-ai__mark { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 9999px; background-color: var(--ui-fill); color: var(--slate); }
.ui-ai__mark svg { width: 1.05em; height: 1.05em; }
.ui-ai__body { min-width: 0; padding: 0.6em 0.85em; border-radius: 0.3em 1.1em 1.1em 1.1em; background-color: #f2f4f7; }
.ui-msg.is-ai ol { margin: 0.35em 0 0; padding-left: 1.45em; list-style: decimal outside; }
.ui-msg.is-ai ol li { padding-left: 0.1em; }
.ui-msg.is-ai small { display: block; margin-top: 0.55em; color: var(--slate); font-size: 0.88em; }
.ui p.ui-box-in { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-top: 0.35em; padding: 0.5em 0.5em 0.5em 0.95em; border: 0.0625em solid #cfd5df; border-radius: 9999px; background-color: #fff; color: #636b78; font-size: 0.8em; }
.ui-box-in i { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 9999px; background-color: var(--night); color: #fff; }
.ui-box-in svg { width: 1.05em; height: 1.05em; stroke-width: 2.6; }

/* ── The header: Linda's private session, a call window ── */
.ui-call { padding: 0; overflow: hidden; }
.ui p.ui-call__bar, .ui div.ui-call__bar { display: flex; align-items: center; gap: 0.6em; padding: 0.8em 1em; background-color: var(--night); color: #fff; font-size: 0.82em; }
.ui-call__bar b { font-weight: 650; }
.ui-call__bar > span:not(.ui-call__rec):not(.ui-example) { color: rgb(255 255 255 / 0.7); }
.ui-call__rec { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 0.5em; background-color: rgb(255 255 255 / 0.14); }
.ui-call__rec svg { width: 1.1em; height: 1.1em; }
.ui-call__bar .ui-example { border-color: rgb(255 255 255 / 0.28); background-color: rgb(255 255 255 / 0.14); color: #fff; font-size: max(0.78em, min(11px, 0.975em)); }
.ui-call__main { padding: 0.9em 1em 1em; background-color: #eef0f4; }
.ui p.ui-call__label { margin-bottom: 0.5em; color: var(--slate); font-size: max(0.7em, min(11px, 0.875em)); font-weight: 600; }
.ui-call__main .ui-chat { padding: 0.9em; border-radius: 0.9em; background-color: #fff; box-shadow: inset 0 0 0 0.0625em var(--ui-line); }
.ui ul.ui-call__tiles { display: flex; justify-content: flex-end; gap: 0.8em; margin-top: 0.8em; padding: 0; list-style: none; }
.ui-call__tiles li { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.ui-call__tiles small { color: var(--slate); font-size: max(0.66em, min(11px, 0.825em)); font-weight: 600; }

/* ── The steps. The three cards share one height and the step card's bottom edge cuts the white under the last part ── */
.svc-shot--step:has(> :is(.ui-list, .ui-size, .ui-chats)) { height: auto; }
.svc-shot--step > :is(.ui-list, .ui-size, .ui-chats) { min-height: 17.8em; margin-bottom: -1em; }

/* Step 1: Linda's list in her phone's notes */
.ui p.ui-list__back, .ui p.ui-size__back { display: flex; align-items: center; gap: 0.15em; color: var(--anchor-deep); font-size: 0.8em; font-weight: 550; }
.ui-list__back svg, .ui-size__back svg { flex: none; width: 1.2em; height: 1.2em; margin-left: -0.3em; }
.ui p.ui-list__title { margin: 0.45em 0 0.5em; font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; }
.ui ol.ui-list__lines { padding: 0; list-style: none; }
.ui-list__lines li { padding: 0.62em 0; border-top: 0.0625em solid var(--ui-line); font-size: 0.82em; font-weight: 550; line-height: 1.3; }

/* Step 2: the Text Size setting, the knob two steps right of the middle */
.ui p.ui-size__title { margin: 0.4em 0 0.7em; font-size: 1.4em; font-weight: 700; letter-spacing: -0.02em; }
.ui p.ui-size__sample { padding: 0.7em 0.85em; border-radius: 0.8em; background-color: var(--ui-fill); font-size: 1.15em; font-weight: 500; line-height: 1.3; }
.ui p.ui-size__line { margin: 0.8em 0 0.5em; color: var(--slate); font-size: max(0.74em, min(11px, 0.925em)); font-weight: 500; }
.ui-size__slider { display: flex; align-items: center; gap: 0.7em; }
.ui-size__a { flex: none; color: var(--night); font-weight: 600; line-height: 1; }
.ui-size__a.is-small { font-size: 0.9em; }
.ui-size__a.is-large { font-size: 1.7em; }
.ui-size__track { position: relative; display: flex; flex: 1; align-items: center; justify-content: space-between; height: 1.7em; }
.ui-size__track::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 0.14em; border-radius: 9999px; background-color: #d5d9e0; transform: translateY(-50%); }
.ui-size__track i { position: relative; width: 0.1em; height: 0.6em; background-color: #aab2c0; }
.ui-size__track i.is-knob { width: 1.6em; height: 1.6em; border-radius: 9999px; background-color: #fff; box-shadow: 0 0.1em 0.4em rgb(12 14 18 / 0.28), 0 0 0 0.0625em #d5d9e0; }

/* Step 3: her list of chats a week later */
.ui p.ui-chats__title { margin: 0 0 0.4em; font-size: 1.4em; font-weight: 700; letter-spacing: -0.02em; }
.ui p.ui-chats__group { margin: 0.9em 0 0.3em; color: var(--slate); font-size: max(0.7em, min(11px, 0.875em)); font-weight: 650; }
.ui p.ui-chats__group:first-of-type { margin-top: 0.3em; }
.ui ul.ui-chats__list { padding: 0; list-style: none; }
.ui-chats__list li { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0; border-top: 0.0625em solid var(--ui-line); font-size: 0.8em; font-weight: 550; line-height: 1.3; }
.ui-chats__list span { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 9999px; background-color: var(--ui-fill); color: var(--slate); }
.ui-chats__list svg { width: 1.05em; height: 1.05em; }

/* ── Row 1: the call's side panel ── */
.ui p.ui-side__head { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.9em; }
.ui-side__head svg { flex: none; width: 1.3em; height: 1.3em; color: var(--slate); }
.ui-side__head b { font-size: 0.95em; font-weight: 650; }
.ui ul.ui-side__who { display: grid; gap: 0.5em; padding: 0; list-style: none; }
.ui-side__who li { display: flex; align-items: center; gap: 0.6em; font-size: 0.84em; font-weight: 600; }
.ui p.ui-side__h { margin: 1em 0 0.4em; color: var(--slate); font-size: max(0.7em, min(11px, 0.875em)); font-weight: 650; }
.ui p.ui-side__msg { display: flex; flex-direction: column; gap: 0.15em; padding: 0.7em 0.85em; border-radius: 0.3em 1em 1em 1em; background-color: var(--tint); font-size: 0.8em; line-height: 1.4; }
.ui-side__msg b { color: var(--anchor-deep); font-size: 0.86em; font-weight: 650; }
.ui p.ui-side__time { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.3em 0.45em; margin-top: 1em; color: var(--slate); font-size: max(0.72em, min(11px, 0.9em)); font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-side__time svg { width: 1.2em; height: 1.2em; }
.ui-side__time i { grid-column: 1 / -1; display: block; height: 0.4em; border-radius: 9999px; background: linear-gradient(90deg, var(--chart) 0 63.33%, var(--ui-fill) 63.33%); }

/* ── Row 2: Linda's laptop, a flat desktop with one window ── */
.ui-desk { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; padding: 1.4em 1.4em 0.8em; background-color: #d9e3f3; }
.ui-desk__win { width: 24em; max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: 0.8em; background-color: #fff; box-shadow: 0 0.2em 1.2em rgb(12 14 18 / 0.18), 0 0 0 0.0625em rgb(12 14 18 / 0.08); }
.ui p.ui-desk__bar { position: relative; display: flex; align-items: center; justify-content: center; padding: 0.55em 0.8em; background-color: #f2f4f7; font-size: max(0.78em, min(11px, 0.975em)); }
.ui-desk__bar b { font-weight: 600; }
.ui-desk__dots { position: absolute; left: 0.8em; display: flex; gap: 0.35em; }
.ui-desk__dots i { width: 0.7em; height: 0.7em; border-radius: 9999px; background-color: #c5cad3; }
.ui-desk__body { padding: 1.4em 1.2em 1.1em; }
.ui p.ui-desk__hi { margin-bottom: 2.2em; font-size: 1.05em; font-weight: 650; line-height: 1.3; text-align: center; text-wrap: balance; }
.ui ul.ui-desk__dock { display: flex; justify-content: center; gap: 0.6em; padding: 0; list-style: none; }
.ui-desk__dock li { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.6em; background-color: rgb(255 255 255 / 0.85); color: #5b6270; }
.ui-desk__dock svg { width: 1.2em; height: 1.2em; }

/* ── Rows 3 and 4: the chats ── */
.ui-talk { padding: 1.4em 1.3em; }

/* ── Row 5: the practice reminders ── */
.ui p.ui-prac__title { margin-bottom: 0.4em; color: var(--anchor-deep); font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; }
.ui ul.ui-prac__list { padding: 0; list-style: none; }
.ui-prac__list li { display: flex; align-items: flex-start; gap: 0.7em; padding: 0.65em 0; border-top: 0.0625em solid var(--ui-line); }
.ui-ring { flex: none; width: 1.3em; height: 1.3em; margin-top: 0.1em; border-radius: 9999px; box-shadow: inset 0 0 0 0.12em #aab2c0; }
.ui-prac__list p { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.ui-prac__list b { font-size: 0.84em; font-weight: 600; line-height: 1.3; }
.ui-prac__list small { color: var(--slate); font-size: max(0.7em, min(11px, 0.875em)); font-weight: 500; }

/* ── Narrow boxes ── */
/* The steps in a card under 340 px (phones, and the three side by side from 1024 to 1365 px): drawn 22 em wide so the words stay readable */
@container (max-width: 339px) {
  .ui-list, .ui-size, .ui-chats { --w: 22; }
  .svc-shot--step > :is(.ui-list, .ui-size, .ui-chats) { min-height: 19.6em; }
}

/* The header's card under 440 px: 22 em wide */
@container (max-width: 439px) {
  .ui-call { --w: 22; }
  .ui-example { font-size: max(0.7em, min(11px, 0.875em)); }
}

/* A box under 480 px (a phone, and the rows from 1024 to 1249 px): the wide pictures 22 em wide */
@container (max-width: 479px) {
  .ui-side, .ui-prac, .ui-talk, .ui-desk { --w: 22; }
  .ui-example { font-size: max(0.7em, min(11px, 0.875em)); }
  .ui-desk { padding: 1em 1em 0.6em; }
}

/* The calm pass (2026-11-17): the step pictures draw larger, and every picture on a phone */
.svc-calm :is(.ui-list, .ui-size, .ui-chats) { --w: 19; }
@media (max-width: 767px) {
  .svc-calm :is(.ui-list, .ui-size, .ui-chats) { --w: 17; }
  .svc-calm :is(.ui-side, .ui-prac, .ui-talk, .ui-desk) { --w: 17.5; }
}
