/* The Ohmix MG answer gets the screen (owner-approved redesign 2026-10-29):
 *   L2  one scroll area; the composer is one line that grows while typing;
 *   T2  the verification seal on top of each answer;
 *   L4  a 1–2 sentence lead at ~16.5 px in normal weight, key values as spec
 *       cards, numbered steps, one quiet note for warnings, small ghost actions;
 *   L5  one 300 px source panel beside the answer (it was "Sources used" and
 *       "Manual pages cited", below it, since Day 2f);
 *   S3  the progress trace while an answer is being researched.
 * Colours from the trust palette (ohmix-ui.css): signal blue for actions and
 * the spec card's top border, emerald only as the seal's fill, red only where
 * the answer itself marks HV safety. Loaded after mg-answer-layout.css.
 */
:root{--ux-src-w:300px;--ux-lead-size:1.03rem}

/* ---- L2: the composer, one line that grows -------------------------------- */
.app:has(.panel.on > #manual-ask-content:not([hidden])) .ask-card.mg-composer{padding-top:.45rem;padding-bottom:calc(.55rem + env(safe-area-inset-bottom,0px))}
.mg-chat .mg-box{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.2rem .35rem;padding:.3rem .35rem .3rem .95rem;border-radius:22px;box-shadow:0 4px 18px rgba(11,31,58,.08)}
/* 4 Nov: the composer's keyboard ring. The shadow above out-ranked workspace.html's .mg-box:focus-within ring, so the
   message box showed no focus at all; the signal-blue 2 px ring is back, the soft shadow under it. */
.mg-chat .mg-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent),0 4px 18px rgba(11,31,58,.08)}
.mg-chat .mg-box .mg-chips{flex:1 0 100%;margin:.25rem 0 0}
.mg-chat .mg-box>label{position:absolute}
.ask-card.mg-composer .mg-box textarea{flex:1 1 14rem;min-width:0;width:auto;padding:.5rem 0;line-height:1.45;font-size:.95rem}
.ask-card.mg-composer .mg-box .mg-tools{flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;gap:.3rem;margin:0;padding:0}
.mg-chat .mg-tools .ask-gap{display:none}
.mg-chat .mg-tools .mg-tool{width:2.3rem;height:2.3rem;padding:0;display:inline-grid;place-items:center;border-radius:50%}
.mg-chat .mg-tools .mg-tool>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.mg-chat .mg-tools .mg-lang{height:2.3rem;max-width:14rem;font-size:.78rem;border-color:transparent;background-color:var(--bg-2)}
.mg-chat .mg-tools #askGo.mg-send{width:2.3rem;height:2.3rem}
/* The model prompt (ADR-184) on one line above the composer. */
.mg-chat .mg-vneed{gap:.25rem .5rem;margin:0 0 .35rem;padding:.3rem .65rem;font-size:.8rem;border-radius:10px}
.mg-chat .mg-vneed p{margin:0}
.mg-chat .mg-vneed .fnote{display:none}
.mg-chat .mg-vneed .btn.sm{min-height:0;padding:.15rem .55rem;font-size:.76rem}
.mg-chat .mg-fine{margin-top:.3rem}

/* ---- T2: the seal ------------------------------------------------------- */
.ux-seal{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .85rem;margin:0 0 .95rem;padding:.55rem .85rem;border-radius:10px;font-size:.86rem;line-height:1.35}
.ux-seal strong{font-weight:600}
.ux-seal-ic{width:1.15rem;height:1.15rem;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ux-seal-m{display:inline-flex;align-items:center;gap:.85rem}
.ux-seal-meta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem .85rem}
.ux-seal-m::before{content:"";width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.55}
.ux-seal.is-verified{background:var(--seal-soft);color:var(--seal-ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--seal) 40%,transparent),inset 4px 0 0 var(--seal)}
.ux-seal.is-verified .ux-seal-ic circle{fill:var(--seal);stroke:var(--seal)}
.ux-seal.is-verified .ux-seal-ic path{stroke:#fff}
.ux-seal.is-partial{background:var(--bg-2);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.ux-seal.is-partial .ux-seal-ic{color:var(--ink-dim)}
.ux-seal-check{color:var(--ink-dim)}

/* ---- L4: the answer's anatomy --------------------------------------------- */
.mg-chat .ask-manual-answer{border:0;background:transparent;box-shadow:none;padding:0}
.mg-chat .ask-manual-answer>.ask-scope-line{display:none}   /* the scope line: said by the vehicle chip and the seal */
/* The composer's scope sentence: the vehicle chip says the model, the progress trace the pages searched. */
.mg-chat .mg-read>#askScope{display:none}
.mg-shell .mr-headline,.mg-shell .mr-proc-one{font-size:var(--ux-lead-size);font-weight:400;line-height:1.6;color:var(--ink)}
.mg-shell .mr-headline>strong{font-weight:400}
.mg-shell .mr-headline>strong strong,.mg-shell .mr-proc-one strong{font-weight:600}
.ux-h{margin:1.2rem 0 .55rem;font-size:.9rem;font-weight:600;color:var(--ink)}
.ux-muted{color:var(--ink-dim);font-weight:500}
.ux-spec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(12.5rem,1fr));gap:.6rem}
.ux-spec{display:flex;flex-direction:column;gap:.25rem;min-width:0;padding:.7rem .85rem .65rem;background:var(--surface);
  border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px}
.ux-spec-k{font-size:.78rem;font-weight:500;color:var(--ink-dim);line-height:1.35}
.ux-spec-v{font-size:1.45rem;font-weight:650;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ux-spec-flags{display:flex;flex-wrap:wrap;gap:.25rem}
.ux-spec-src{margin-top:auto;padding-top:.2rem;font-size:.76rem;color:var(--ink-dim)}
/* One quiet note for warnings; the answer's own HV safety line keeps its red rule. */
.mg-chat .ask-manual-answer .note:not([style*="--bad"]){border:1px solid var(--line);border-left:3px solid var(--amber);background:var(--surface);border-radius:10px;font-size:.88rem}
.mg-chat .ask-manual-answer .note.ask-next{border-left-color:var(--accent)}
/* Small ghost actions. */
.mg-chat .ask-acts{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:1.1rem !important}
.mg-chat .ask-acts .btn{min-height:0;padding:.3rem .65rem;font-size:.78rem;font-weight:500;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink-dim)}
.mg-chat .ask-acts .btn.danger{color:var(--ink-dim)}
/* 2 Nov (dark-mode palette check on main): a flag is neither HV nor do-not-release, so "Save flag" is an ordinary
   action, never red. */
.mg-chat .ask-flagform .btn.danger{color:var(--ink);border-color:var(--line-strong)}
.mg-chat .ask-acts .btn:hover,.mg-chat .ask-acts .btn:focus-visible{color:var(--ink);background:var(--bg-2);border-color:var(--line-strong)}

/* ---- Only what the dealer needs (owner feedback 2026-10-29, the MG5 page) --
 * Out of the main view, kept one tap away: the case strip (level, "still
 * needed", the next check — the next check is the answer's own "What to do
 * next"; the level is in Case details), the first guidance once the research
 * answer is there, the scope lines, the source cards and page thumbnails (in
 * the drawer behind "Sources (n)" and the citation chips), and the research
 * record (behind "How Ohmix found this"). */
/* The strip never shows the level, "still needed" or the next check; before
   any answer it keeps only the record's own question chip, and once an answer
   is on screen it is gone. */
.mg-chat #mgCaseStrip :is(.mg-strip-line,.mg-strip-next,.mg-strip-open,.mg-unread){display:none}
.mg-chat #mgCaseStrip .mg-strip{border:0;background:transparent;padding:0;margin:.6rem 0 0}
.mg-chat #mgCaseStrip:not(:has(.mg-qchip)),.mg-chat:has(.ask-manual-answer) #mgCaseStrip{display:none}
/* …except a case that could not be loaded: that strip says so and carries Try again, and must always show. */
.mg-chat #mgCaseStrip:has(.mg-strip-err){display:block}
.mg-chat #mgCaseStrip .mg-strip.mg-strip-err{margin:.8rem 0 .2rem;padding:.55rem .75rem;border:1px solid var(--warn);border-radius:var(--r-2,10px);background:var(--surface)}
.mg-chat #mgCaseStrip .mg-strip-err .mg-strip-line{display:block}
.mg-chat .mg-first.is-superseded{display:none}
.mg-shell .mg-answer-grid{display:block}
.mg-shell .mg-answer-grid>.mg-sources{display:none}
.mg-chat .mg-answer-main .ask-trace,.mg-chat .mg-answer-main .ask-record-sources,.mg-chat .mg-answer-main .ask-trace-failed{display:none}
.ux-srclink-row{margin:1rem 0 0}
.ux-srclink{padding:0;border:0;background:none;color:var(--accent);font:500 .84rem/1.4 var(--font-sans);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ux-srclink:hover{text-decoration-thickness:2px}
.mg-shell .chip.acc[data-cite]{font-size:.72rem}
/* The drawer: from the right, at every width. */
.mg-drawer{position:fixed;top:0;right:0;bottom:0;z-index:47;display:flex;flex-direction:column;width:min(var(--ux-src-w,300px) + 120px,100vw);
  box-sizing:border-box;background:var(--surface);border-left:1px solid var(--line);box-shadow:-12px 0 40px rgba(11,31,58,.28)}
.mg-drawer[hidden]{display:none}
.mg-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .9rem;border-bottom:1px solid var(--line)}
.mg-drawer-head h2{margin:0;font-size:.98rem;font-weight:600}
.mg-drawer-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.8rem .9rem 1.2rem}
.mg-drawer-body .ux-sources>.ux-h{display:none}
.mg-drawer-body .rsec{margin-top:0 !important;border:0;background:transparent}
.mg-drawer-body .ask-trace>h3{display:none}
#mgDrawerScrim:not([hidden]){display:block;position:fixed;inset:0;z-index:45;background:rgba(11,31,58,.38);border:0;padding:0;margin:0;width:auto;cursor:default}
.ux-src.is-target{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.mg-shell .mg-sources .ux-sources-host{display:block}
.ux-sources .ux-h{margin:0 0 .6rem}
.ux-src-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.ux-src{display:grid;grid-template-columns:58px minmax(0,1fr);gap:.65rem;align-items:start;padding:.55rem;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.ux-src-thumb{display:grid;place-items:center;width:58px;height:76px;box-sizing:border-box;margin:0;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--bg-2);color:var(--ink-dim);font:500 .72rem/1 var(--font-sans);cursor:pointer;overflow:hidden}
.ux-src-thumb.is-web{cursor:default}
.ux-src-thumb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}
.ux-src>.pgshot.ux-thumb{width:58px;height:76px;margin:0;padding:0;border:0}
.ux-src>.pgshot.ux-thumb figcaption{display:none}
.ux-src>.pgshot.ux-thumb .pgshot-frame{display:grid;place-items:center;width:58px;height:76px;min-height:0;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--bg-2);overflow:hidden;cursor:pointer}
.ux-src>.pgshot.ux-thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.ux-src>.pgshot.ux-thumb .pgshot-note{font-size:.6rem;padding:.2rem;text-align:center;color:var(--ink-dim)}
.ux-src-body{display:flex;flex-direction:column;gap:.12rem;min-width:0}
.ux-src-doc{font-size:.84rem;font-weight:600;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.ux-src-meta{font-size:.75rem;color:var(--ink-dim)}
.ux-src-sup{font-size:.78rem;line-height:1.4;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ux-src-open{align-self:flex-start;margin-top:.25rem;padding:0;border:0;background:none;color:var(--accent);font:500 .78rem/1.3 var(--font-sans);text-decoration:none;cursor:pointer}
.ux-src-open:hover{text-decoration:underline}
.ux-badge-ext{display:inline-block;margin-left:.3rem;padding:.05rem .4rem;border:1px solid var(--line-strong);border-radius:999px;font-size:.66rem;font-weight:600;color:var(--ink-dim);vertical-align:.1em}

/* ---- S3: the progress trace ------------------------------------------------ */
.mg-turn.is-working .mg-typing{display:none}
.ux-trace{list-style:none;margin:.2rem 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.35rem;font-size:.86rem}
.ux-trace li{display:flex;align-items:center;gap:.55rem;color:var(--ink-faint)}
.ux-trace li.is-done{color:var(--ink-dim)}
.ux-trace li.is-now{color:var(--ink);font-weight:500}
.ux-trace-dot{width:.6rem;height:.6rem;flex:0 0 auto;border-radius:50%;border:2px solid currentColor;box-sizing:border-box}
.ux-trace li.is-done .ux-trace-dot{background:var(--accent);border-color:var(--accent)}
.ux-trace li.is-now .ux-trace-dot{border-color:var(--accent);animation:uxPulse 1.2s ease-in-out infinite}
.ux-trace-t{color:var(--ink-dim);font-weight:400;font-variant-numeric:tabular-nums}
@keyframes uxPulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 4px transparent}}
@media (prefers-reduced-motion:reduce){ .ux-trace li.is-now .ux-trace-dot{animation:none} }
#manual-ask-content:has(#askLive.is-working) #askProgress{display:none}
.ux-stream-more{margin:.6rem 0 0;font-size:.82rem;color:var(--ink-dim)}

/* ---- Photos and documents from the phone (owner request 2026-10-29) --------
 * "+" opens Take photo / Photo library / File; staged photos are thumbnails
 * with a remove button above the message; the conversation shows what was
 * sent, each file with its own progress; a photo opens full size. */
.mg-chat .mg-attach{position:relative;display:inline-flex}
.mg-chat .mg-tools .mg-tool svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mg-attach-menu{position:absolute;left:0;bottom:calc(100% + .5rem);z-index:20;display:flex;flex-direction:column;gap:.1rem;min-width:15rem;padding:.35rem;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(11,31,58,.22)}
.mg-attach-menu[hidden]{display:none}
.mg-attach-item{display:flex;align-items:center;gap:.65rem;width:100%;min-height:44px;margin:0;padding:.45rem .7rem;border:0;border-radius:8px;background:transparent;
  color:var(--ink);font:500 .9rem/1.25 var(--font-sans);text-align:left;cursor:pointer}
.mg-attach-item[hidden]{display:none}
.mg-attach-item:hover,.mg-attach-item:focus-visible{background:var(--bg-2);outline:none}
.mg-attach-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}   /* 1 Nov (J4) */
.mg-attach-item svg{width:1.2rem;height:1.2rem;flex:0 0 auto;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mg-attach-item small{display:block;font-size:.74rem;font-weight:400;color:var(--ink-dim)}
/* The tray: photos as thumbnails, files as chips. */
.mg-chat .mg-chips{gap:.45rem;align-items:flex-end}
.mg-chat .mg-chip.is-photo{position:relative;display:inline-flex;flex-direction:column;align-items:stretch;gap:.2rem;width:4.75rem;padding:0;border:0;background:transparent}
.mg-chat .mg-chip.is-photo .mg-chip-img{order:-1;display:block;width:4.75rem;height:4.75rem;padding:0;border:1px solid var(--line-strong);border-radius:10px;overflow:hidden;background:var(--bg-2);cursor:zoom-in}
.mg-chat .mg-chip.is-photo .mg-chip-img img{display:block;width:100%;height:100%;object-fit:cover}
.mg-chat .mg-chip.is-photo .mg-chip-img.is-broken img{display:none}
.mg-chat .mg-chip.is-photo .mg-chip-img.is-broken::after{content:"Photo";display:grid;place-items:center;height:100%;font-size:.72rem;color:var(--ink-dim)}
.mg-chat .mg-chip.is-photo .mg-chip-name{font-size:.68rem;line-height:1.2;color:var(--ink-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-chat .mg-chip.is-photo .mg-chip-meta{display:none}
.mg-chat .mg-chip.is-photo.is-lead .mg-chip-img{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.mg-chat .mg-chip.is-photo .mg-chip-x{position:absolute;top:-.4rem;right:-.4rem;display:grid;place-items:center;width:1.6rem;height:1.6rem;padding:0;border:2px solid var(--surface);border-radius:50%;
  background:var(--ink);color:var(--surface);font-size:.9rem;line-height:1;cursor:pointer}
@media (pointer:coarse){ .mg-chat .mg-chip.is-photo .mg-chip-x{width:2rem;height:2rem;top:-.55rem;right:-.55rem} }
/* The sent turn. */
.mg-chat .mg-bubble.mg-files{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-start}
.mg-file{display:inline-flex;flex-direction:column;gap:.2rem;max-width:9rem;font-size:.78rem}
.mg-file:not(.is-photo){flex-direction:row;align-items:center;gap:.35rem;max-width:100%;padding:.3rem .55rem;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.mg-file-img{display:block;width:6rem;height:6rem;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;cursor:zoom-in;background:var(--bg-2)}
.mg-file-img img{display:block;width:100%;height:100%;object-fit:cover}
.mg-file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.mg-file-st{color:var(--ink-dim);font-size:.72rem}
.mg-file[data-st="up"] .mg-file-st{color:var(--accent)}
.mg-file[data-st="failed"] .mg-file-st{color:var(--bad)}
.mg-bubble-photo{display:block;margin-top:.45rem;padding:0;border:0;border-radius:10px;overflow:hidden;background:transparent;cursor:zoom-in}
.mg-bubble-photo img{display:block;max-height:140px;max-width:100%;border-radius:10px}
/* Full size. */
.mg-lightbox{max-width:min(96vw,1400px);max-height:94vh;padding:0;border:0;border-radius:12px;background:#000;color:#fff;overflow:hidden}
.mg-lightbox::backdrop{background:rgba(5,12,24,.82)}
.mg-lightbox img{display:block;max-width:min(96vw,1400px);max-height:calc(94vh - 2.5rem);object-fit:contain;margin:auto}
.mg-lightbox-cap{margin:0;padding:.45rem .8rem;font-size:.8rem;color:#cfd8e6}
.mg-lightbox-cap:empty{display:none}
.mg-lightbox-x{position:absolute;top:.5rem;right:.5rem;width:2.5rem;height:2.5rem;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:1.1rem;cursor:pointer}
.mg-lightbox-x:focus-visible{outline:2px solid var(--focus-navy,#8DB5F7);outline-offset:2px}
/* Drop. */
#manual-ask-content.is-dropping .mg-box{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.mg-drop-hint{margin:.35rem 0 0;text-align:center;font-weight:500;color:var(--accent)}
.mg-drop-hint[hidden]{display:none}

/* ---- Phones: one column, the composer pinned, sources as a bottom sheet --- */
@media (max-width:640px){
  /* The seal on a phone: the verdict on its line, what backs it on the next, aligned with the text, no leading dot. */
  .ux-seal-check,.ux-seal-meta{flex-basis:100%;padding-left:calc(1.15rem + .85rem)}
  .ux-seal-meta .ux-seal-m:first-child::before{display:none}
  .mg-drawer{top:auto;left:0;right:0;bottom:0;width:100%;max-height:82vh;max-height:82dvh;border-left:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0;
    box-shadow:0 -12px 40px rgba(11,31,58,.28);padding-bottom:env(safe-area-inset-bottom,0px)}
  .mg-drawer-head{position:relative;padding-top:1.1rem}
  .mg-drawer-head::before{content:"";position:absolute;top:.45rem;left:50%;width:2.5rem;height:4px;margin-left:-1.25rem;border-radius:2px;background:var(--line-strong)}
  .mg-attach-menu{position:fixed;left:.6rem;right:.6rem;bottom:calc(5.5rem + env(safe-area-inset-bottom,0px));min-width:0}
  .mg-attach-item{min-height:48px;font-size:1rem}
  .mg-chat .mg-tools .mg-tool{width:2.75rem;height:2.75rem}
  .mg-chat .mg-tools #askGo.mg-send{width:2.75rem;height:2.75rem}
  .mg-chat .mg-tools .mg-lang{max-width:15rem;height:2.75rem}
  /* The tools row is under the text on a phone: full width, send at the right edge, the language readable. */
  .ask-card.mg-composer .mg-box .mg-tools{flex:1 1 100%}
  .mg-chat .mg-tools .ask-gap{display:block;flex:1 1 auto}
  .ux-src{grid-template-columns:52px minmax(0,1fr)}
  .ux-src-thumb,.ux-src>.pgshot.ux-thumb,.ux-src>.pgshot.ux-thumb .pgshot-frame{width:52px;height:68px}
  .mg-chat #askPhotoHint{display:none !important}   /* the tray says it; the long hint costs a phone its conversation */
  .mg-shell .ux-spec-grid{grid-template-columns:1fr 1fr}
  .mg-shell .ux-spec-v{font-size:1.25rem}
}
/* The answer check's own list, for admins only (31 Oct): folded under the seal. */
.ux-seal-audit{flex-basis:100%;margin-top:.2rem;font-size:.78rem;color:var(--ink-dim)}
.ux-seal-audit summary{cursor:pointer;width:max-content}
.ux-seal-audit ul{margin:.3rem 0 0 1.1rem;padding:0}

/* Your models, first in the vehicle chooser. */
.mg-vfav{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin:0 0 .55rem}
.mg-vfav[hidden]{display:none}
.mg-vfav-k{font-size:.76rem;color:var(--ink-dim);margin-right:.15rem}
.mg-vfav button{min-height:32px;padding:.25rem .7rem;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);font:500 .82rem/1.2 var(--font-sans);cursor:pointer}
.mg-vfav button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}

/* D2 (31 Oct): case filters and the answer search in the case list. */
.mg-filters{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.35rem;margin:.45rem 0 0}
.mg-filters select{min-width:0;height:2.1rem;padding:0 .4rem;font-size:.78rem;border-radius:8px}
.mg-search-note{margin:.35rem 0 0;font-size:.76rem;color:var(--ink-dim)}
.mg-search-note:empty{display:none}
.mg-side-foundblock{margin-top:.5rem;padding-top:.4rem;border-top:1px dashed var(--line)}
.mg-side-sub{margin:.2rem 0 .3rem;font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-dim)}
@media (max-width:640px){ .mg-filters{grid-template-columns:1fr 1fr} .mg-filters select{height:2.6rem;font-size:.9rem} .mg-filters select:first-child{grid-column:1 / -1} }   /* 390: "Any model" was cut to "Any mod" (31 Oct) */

/* D3 (31 Oct): the cited text on each source card, highlighted on the card a chip opened; and under the page viewer's title. */
.ux-src-quote{margin:.35rem 0 .1rem;padding:.35rem .55rem;border-left:3px solid var(--line-strong);border-radius:0 6px 6px 0;background:var(--bg-2);font-size:.8rem;line-height:1.45;color:var(--ink)}
.ux-src.is-target .ux-src-quote{border-left-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface))}
.pv-cite{margin:0 0 .5rem;padding:.45rem .65rem;border-radius:8px;background:var(--accent-soft);font-size:.84rem;line-height:1.45;color:var(--ink)}
.pv-cite[hidden]{display:none}
.pv-cite-k{display:block;font-size:.7rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--accent)}
.pv-cite mark{background:color-mix(in srgb,var(--accent) 18%,transparent);color:inherit;padding:0 .1em;border-radius:2px}   /* 2 Nov: the palette's blue, not a new yellow */
/* D3: the flag says which part is wrong. */
.ask-flagparts{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.25rem .8rem;margin:0 0 .5rem;padding:.55rem .75rem;border:1px solid var(--line);border-radius:10px}
.ask-flagparts legend{padding:0 .3rem;font-size:.82rem;font-weight:600;color:var(--ink)}
.ask-flagparts label{display:flex;align-items:center;gap:.4rem;min-height:32px;font-size:.86rem;color:var(--ink)}
.ask-flagparts .ask-flagitem{grid-column:1 / -1}
.ask-flagparts .ask-flagitem[hidden]{display:none}
.ask-flagform textarea{width:100%;box-sizing:border-box}
@media (max-width:640px){ .ask-flagparts label{min-height:40px} }
.ask-flagparts input[type=radio]{width:auto;height:auto;flex:0 0 auto;margin:0;padding:0}
.ask-flagparts label{justify-content:flex-start;text-align:left}
.ask-flagparts .ask-flagitem{flex-direction:column;align-items:stretch;gap:.25rem}

/* D4 (31 Oct): phone pass at 390 px — every control the thumb uses is at
   least 40–44 px, without changing how the answer reads. */
@media (max-width:640px){
  .top #mgSideToggle,.top .mg-vchip{min-height:44px}
  #mgSideClose,#mgDrawerClose{min-width:44px;min-height:44px}
  /* Citation chips stay inline in the text; their tap area grows invisibly around them. */
  .ask-manual-answer .chip[data-cite],.mg-chat .chip[data-cite]{position:relative}
  .ask-manual-answer .chip[data-cite]::after,.mg-chat .chip[data-cite]::after{content:"";position:absolute;inset:-12px -6px}
  .mg-chat .ask-acts .btn{min-height:40px;padding-inline:.75rem}
  .ux-src-open{display:inline-flex;align-items:center;min-height:40px}
  .ux-srclink{display:inline-flex;align-items:center;min-height:40px}
  #mgNewContent{min-height:40px}
  #askQ{min-height:44px}
  .mg-vpop input,.mg-vpop select,.mg-vpop .btn,.mg-search{min-height:44px;height:auto}
}
/* Key values too long for a card, read as lines under the cards (31 Oct). */
.ux-spec-notes{margin:.2rem 0 .6rem;padding-left:1.1rem;font-size:.92rem;line-height:1.5;color:var(--ink)}

/* 1 Nov (overnight, the 8 live gold answers) ------------------------------- */
/* The dealer's readings, shown back as a table. */
.ux-readings{margin:1rem 0}
.ux-readings-wrap{overflow-x:auto;max-width:var(--prose-max,74ch)}
.ux-readings table{width:auto;min-width:min(100%,30rem);border-collapse:collapse;font-size:.92rem}
.ux-readings th,.ux-readings td{padding:.45rem .6rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.ux-readings thead th{font-size:.78rem;font-weight:600;color:var(--ink-dim);text-transform:none;letter-spacing:0}
.ux-reading-v{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:650}
/* The check's result → meaning table: never red (red is HV safety and the release verdict only). */
.mg-check-exp{margin:.45rem 0;line-height:1.55}
.mg-check-exp .mg-k{display:inline-block;min-width:5.2rem;font-weight:600;color:var(--ink-dim)}
.mg-rm-wrap{overflow-x:auto;margin:.55rem 0}
.mg-rm{width:100%;border-collapse:collapse;font-size:.9rem}
.mg-rm caption{caption-side:top;text-align:left;padding:0 0 .35rem;font-weight:600;font-size:.86rem}
.mg-rm th,.mg-rm td{padding:.45rem .6rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;line-height:1.5}
.mg-rm thead th{font-size:.78rem;font-weight:600;color:var(--ink-dim);text-transform:none;letter-spacing:0}
.mg-rm tbody th{width:28%;min-width:8rem;font-size:.9rem;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink);border-left:3px solid var(--line-strong)}
.mg-rm tr.is-ok th{border-left-color:var(--good,#1f8a4c)}
.mg-rm tr.is-no th{border-left-color:var(--warn,#b7791f)}
/* The release verdict from the lead sits right under the seal. */
.ux-release{margin:.4rem 0 .8rem}
.ask-next-list ol,.ask-next-list ul{margin:.35rem 0 0 1.2rem}
@media (max-width:640px){
  .mg-rm thead{display:none}
  .mg-rm,.mg-rm tbody,.mg-rm tr,.mg-rm th,.mg-rm td{display:block;width:auto}
  .mg-rm tbody th{border-left-width:3px;border-bottom:0;padding-bottom:.1rem}
  .mg-rm td{padding-top:.1rem;border-left:3px solid transparent}
}
/* R24: an owner-approved correction (accent, never red: it is not a warning). */
.ux-correction{margin:.4rem 0 .8rem;padding:.6rem .8rem;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-left:4px solid var(--accent);border-radius:10px;background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.ux-correction p{margin:.15rem 0;line-height:1.5}
.ux-correction-why{font-size:.88rem;color:var(--ink-dim)}
.ux-correction-k{margin-top:.45rem !important;font-size:.8rem;font-weight:600;color:var(--ink-dim)}
.ux-correction-rep{margin:.15rem 0 0;padding-left:1.1rem;font-size:.9rem}
.ux-correction-rep s{color:var(--ink-dim)}
.cite-correction{display:inline-block;padding:0 .4rem;border:1px solid color-mix(in srgb,var(--accent) 45%,transparent);border-radius:999px;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent);font:600 .72rem/1.5 var(--font-sans);vertical-align:.08em;white-space:nowrap}
.ux-badge-corr{display:inline-block;margin-left:.3rem;padding:0 .4rem;border-radius:999px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-size:.7rem;font-weight:600;vertical-align:.1em}
.ux-src-thumb.is-corr{display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}
.ux-src-thumb.is-corr svg{width:22px;height:22px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* A11y (1 Nov, axe): a page chip on a tinted note (the HV safety note) keeps 4.5:1 — it sits on the surface, not the tint. */
.ask-manual-answer .note .chip.acc{background:var(--surface)}

/* ---- Known fixes (1 Nov, AQF-109): software and campaigns first, then solved before.
   Trust palette: a neutral block; signal blue only on the openers (actions). Never the seal's
   emerald, the open case's amber or the HV / release red: a reference is a lead, not a verdict. */
.kf{margin:.8rem 0 1rem;padding:.75rem .9rem;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.kf .ux-h{margin:0 0 .2rem}
.kf-note{margin:0 0 .4rem;font-size:.84rem;color:var(--ink-dim)}
.kf-h{margin:.65rem 0 .3rem;font-size:.8rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink-dim)}
.kf-list{margin:0;padding:0;list-style:none;display:grid;gap:.4rem}
.kf-item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem .6rem;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.kf-main{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.kf-kind{font-size:.74rem;font-weight:600;color:var(--ink-dim)}
.kf-item[data-kf-decision="campaign"] .kf-kind,.kf-item[data-kf-decision="update"] .kf-kind{color:var(--ink)}
.kf-item[data-kf-decision="applied"]{opacity:.85}
.kf-line{font-size:.92rem;line-height:1.45;overflow-wrap:anywhere}
.kf-ref{font-variant-numeric:tabular-nums}
.kf-desc{color:var(--ink)}
.kf-open{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:.3rem .75rem;border:1px solid var(--accent);border-radius:999px;background:transparent;color:var(--accent);font:600 .8rem/1.2 var(--font-sans);text-decoration:none;cursor:pointer;white-space:nowrap}
.kf-open:hover{background:var(--accent-soft)}
.kf-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.kf-confirm{margin:.6rem 0 0;font-size:.9rem;line-height:1.5}
.kf-k{font-weight:600}
@media (max-width:640px){
  .kf-item{flex-direction:column;align-items:stretch}
  .kf-open{justify-content:center;min-height:44px}
}
/* The vehicle chip's "Software" badge: open campaigns / updates for this VIN, from the latest answer. */
.top .mg-swwrap{position:relative}
.top .mg-swwrap:has(#mgSwChip[hidden]){display:none}   /* no empty wrapper (and no flex gap) while the chip is hidden */
.top .mg-swchip{display:inline-flex;align-items:center;gap:.3rem;height:34px;padding:0 .6rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:transparent;color:var(--navy-ink,#E9EEF7);font:600 .78rem/1 var(--font-sans);cursor:pointer;white-space:nowrap}
.top .mg-swchip[hidden]{display:none}
.top .mg-swchip .ic{width:16px;height:16px}
.top .mg-swchip-n{display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .3rem;border-radius:999px;background:#fff;color:var(--navy,#0B1F3A);font-size:.72rem}
.top .mg-swchip:focus-visible{outline:2px solid var(--focus-navy,#8DB5F7);outline-offset:2px}
.top .mg-swpop{width:min(26rem,92vw);right:0;left:auto;padding:.7rem}
.kf-pop-h{margin:0 0 .45rem;font-weight:600;font-size:.88rem;color:var(--ink)}
@media (max-width:640px){ .top .mg-swchip>span:not(.mg-swchip-n){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} }
/* 390: with the Software chip shown, the vehicle chip gives up width so the account avatar stays on screen. */
@media (max-width:640px){
  /* On a phone the Software chip sits ON the vehicle chip's corner as a 24 px badge: no width taken from the bar. */
  .top .top-veh{position:relative}
  .top .mg-swwrap{position:absolute;top:-5px;right:-6px;z-index:2}
  .top .mg-swchip{height:24px;min-width:24px;padding:0 .3rem;gap:.15rem;border:2px solid var(--navy,#0B1F3A);background:#fff;color:var(--navy,#0B1F3A)}
  .top .mg-swchip .ic{width:13px;height:13px}
  .top .mg-swchip-n{min-width:0;height:auto;padding:0;background:transparent;color:inherit}
  .top .mg-swpop{position:fixed;left:8px;right:8px;top:60px;width:auto;max-height:calc(100dvh - 76px);overflow:auto}
}
/* 1 Nov: the dealer's photo, small, beside "What the photo shows"; it opens full size. */
.ux-photo-obs .hyphead{display:flex;align-items:center;gap:.6rem}
.ux-photo-thumb{flex:0 0 auto;width:56px;height:56px;padding:0;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden;background:var(--bg-2);cursor:zoom-in}
.ux-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ux-photo-thumb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* 1 Nov: upload progress on each file in the conversation (signal blue: an action in progress). */
.mg-file{position:relative}
.mg-file-bar{position:absolute;left:6px;right:6px;bottom:2px;height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.mg-file-bar>span{display:block;height:100%;width:35%;border-radius:2px;background:var(--accent);animation:mgUp 1.1s ease-in-out infinite}
.mg-file[data-pct] .mg-file-bar>span{width:var(--p,0%);animation:none;transition:width .2s}
.mg-file[data-st="done"] .mg-file-bar,.mg-file[data-st="failed"] .mg-file-bar{display:none}
@keyframes mgUp{0%{transform:translateX(-100%)}100%{transform:translateX(290%)}}
@media (prefers-reduced-motion:reduce){ .mg-file-bar>span{animation:none;width:60%} }
/* 1 Nov (speed perception): the answer's shape while it is researched; what arrives takes its place. */
.ux-skel{display:flex;flex-direction:column;gap:.55rem;margin:.6rem 0 1rem;max-width:var(--prose-max,74ch)}
.ux-skel .sk{border-radius:8px}
.ux-skel-seal{height:2.4rem;border-radius:10px}
.ux-skel-line{height:.95rem}
.ux-skel-line.is-short{width:62%}
.ux-skel-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin-top:.5rem}
.ux-skel-card{height:5.6rem;border-radius:12px}
@media (max-width:640px){ .ux-skel-cards{grid-template-columns:repeat(2,minmax(0,1fr))} .ux-skel-card:nth-child(3){display:none} }
/* 3 Nov (overnight 2): an answer that arrives within 3 s (the deterministic ones: about 2 s) never shows a skeleton.
   The skeleton holds the answer's room from the send, invisible for 3 s; only a slower answer fades it in, and the
   answer then takes its place as before. Opacity only: the room is held from the start, so nothing moves when it
   appears (a height animation pushed the progress line down on a phone: layout shift 0.106). */
/* 4 Nov (launch): 4.5 s, so an answer ready at about 3 s (polled every 0.4 s) is on screen well before it. */
#askAnswer > .ux-skel{animation:uxSkIn .3s ease-out 4.5s both}
@keyframes uxSkIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ #askAnswer > .ux-skel{animation-duration:0s} }
/* 1 Nov (speed perception, no layout shift): while an answer is researched the progress trace and the
   "keep working" note sit UNDER the answer's skeleton, so when they go at the end nothing above moves;
   the status line under the composer keeps its height while hidden, so the composer does not jump. */
#askLive .mg-botbody{display:flex;flex-direction:column}
#askLive .mg-botbody>#askAnswer{order:1}
#askLive .mg-botbody>#askTrace{order:2}
#askLive .mg-botbody>#askWait{order:3}
#manual-ask-content:has(#askLive.is-working) #askProgress{display:block;visibility:hidden}
#askLive #askTrace.is-streaming,#askLive #askWait.is-streaming{display:none}

/* 1 Nov (J2): copy one value or one step. A quiet icon button on each value card,
   capacity / fluid line and procedure step; signal blue on hover and focus (an
   action), a blue check once copied (never the seal's emerald). 32 px on a desk,
   40 px on a phone. */
.ux-copy{display:inline-grid;place-items:center;flex:0 0 auto;width:32px;height:32px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink-faint);cursor:pointer;line-height:1}
.ux-copy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ux-copy:hover{color:var(--accent);background:var(--accent-soft)}
.ux-copy:focus-visible{outline:2px solid var(--accent);outline-offset:1px;color:var(--accent)}
.ux-copy.is-done{color:var(--accent)}
.ux-copy.is-done svg{display:none}
.ux-copy.is-done::after{content:"✓";font:700 15px/1 var(--font-sans)}
.ux-spec{position:relative}
.ux-spec>.ux-copy{position:absolute;top:.3rem;right:.3rem}
.ux-spec>.ux-spec-k{padding-right:1.9rem}
.ux-spec-notes>li>.ux-copy,.mr-cap-row>.ux-copy,.mr-cap-fluid>.ux-copy{width:28px;height:28px;vertical-align:middle;margin-left:.15rem}
.mr-proc-step{grid-template-columns:1.9rem minmax(0,1fr) auto}
.mr-proc-step>.ux-copy{grid-column:3;grid-row:1;align-self:start;margin:-.2rem -.3rem 0 0}
.mr-proc-step>.mr-proc-body{grid-column:2;grid-row:1}
.mg-legacy-step>.ux-copy{position:absolute;top:.4rem;right:.4rem}
@media (hover:hover){
  .ux-spec>.ux-copy,.mr-proc-step>.ux-copy,.mr-cap-row>.ux-copy,.mr-cap-fluid>.ux-copy,.ux-spec-notes>li>.ux-copy,.mg-legacy-step>.ux-copy{opacity:.6}
  .ux-spec:hover>.ux-copy,.mr-proc-step:hover>.ux-copy,.mr-cap-row:hover>.ux-copy,.mr-cap-fluid:hover>.ux-copy,.ux-spec-notes>li:hover>.ux-copy,.mg-legacy-step:hover>.ux-copy,.ux-copy:focus-visible,.ux-copy.is-done{opacity:1}
}
@media (max-width:640px){
  .ux-copy{width:40px;height:40px}
  .ux-spec-notes>li>.ux-copy,.mr-cap-row>.ux-copy,.mr-cap-fluid>.ux-copy{width:36px;height:36px}
  .ux-spec>.ux-spec-k{padding-right:2.4rem}
  .mr-proc-step>.ux-copy{margin:-.45rem -.5rem 0 0}
}
@media print{ .ux-copy{display:none} }

/* 1 Nov (J5): the empty Ohmix MG — the mark, one line, six questions for the vehicle. */
.mg-empty .mg-empty-mark{width:56px;height:56px;margin:0 0 .9rem;border-radius:14px;display:block}
.mg-empty .ask-lede{max-width:34rem}
.mg-try-k{margin:1.5rem 0 0;font-size:.8rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-dim)}
.mg-try.mg-suggest{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.6rem;max-width:46rem}
.mg-try .mg-sug{display:flex;align-items:center;min-height:3.25rem}
@media (max-width:640px){
  .mg-empty .mg-empty-mark{width:44px;height:44px;margin-bottom:.6rem}
  .mg-try.mg-suggest{grid-template-columns:minmax(0,1fr);gap:.45rem}
  .mg-try .mg-sug{min-height:2.9rem;padding:.6rem .8rem}
}

/* 2 Nov (case history): the VIN's last six, shown only while the search matches it. */
.mg-side-item .mg-side-vin{font-variant-numeric:tabular-nums;font-size:.72rem;font-weight:600;color:var(--ink-dim);letter-spacing:.02em}
.mg-side-item .mg-side-vin[hidden]{display:none}
.mg-turn-opening .mg-bubble{opacity:.85}

/* ---- 2 Nov (answer polish): one typographic scale for the answer -----------
   Six sizes, two line heights, the same in the live answer, a reopened case and
   the case conversation:
     --ux-fs-verdict 1.25rem   the drive / release verdict
     --ux-fs-lead    1.125rem  the one-line answer, the procedure's title
     --ux-fs-value   1.375rem  a value's figure (tabular)
     --ux-fs-head    1rem      section titles: Key values, Procedure, Next check…
     --ux-fs-body    1rem      steps, next actions, the check, explanations
     --ux-fs-label   .8125rem  small labels: a value's qualifier, "Expected", kickers
   Body text at 1.6, everything set tight at 1.3. */
.mg-shell{--ux-fs-verdict:1.25rem;--ux-fs-lead:1.125rem;--ux-fs-value:1.375rem;--ux-fs-head:1rem;--ux-fs-body:1rem;--ux-fs-label:.8125rem;--ux-lh-body:1.6;--ux-lh-tight:1.3;--ux-lead-size:var(--ux-fs-lead)}
.mg-shell .mr-release.ux-verdict-first .mr-release-head,.mg-shell .mr-release-head{font-size:var(--ux-fs-verdict);line-height:var(--ux-lh-tight)}
.mg-shell .mr-headline,.mg-shell .mr-proc-one{font-size:var(--ux-fs-lead);line-height:var(--ux-lh-body)}
.mg-shell .mr-proc-title,.mg-shell .ask-manual-answer .mr-proc-title{font-size:var(--ux-fs-lead);line-height:var(--ux-lh-tight)}
.mg-shell .ux-h,.mg-shell .mg-check h3,.mg-shell .ask-manual-answer section>h3:not(.mr-proc-title),.mg-shell .ask-next>strong:first-child{font-size:var(--ux-fs-head);line-height:var(--ux-lh-tight);font-weight:650}
.mg-shell .mr-proc-act,.mg-shell .mr-proc-detail,.mg-shell .ask-next,.mg-shell .ask-next li,.mg-shell .ask-next p,.mg-shell .mg-check>p,.mg-shell .mg-check-exp,.mg-shell .ask-manual-answer section p:not(.mr-proc-one):not(.mr-k):not(.mr-proc-k),.mg-shell .ux-spec-notes{font-size:var(--ux-fs-body);line-height:var(--ux-lh-body)}
.mg-shell .mr-k,.mg-shell .mr-proc-k,.mg-shell .mr-k-inline,.mg-shell .mg-k,.mg-shell .ux-v-pre,.mg-shell .ux-spec-src{font-size:var(--ux-fs-label);line-height:var(--ux-lh-tight)}
.mg-shell .mr-cap-val{font:650 var(--ux-fs-value)/var(--ux-lh-tight) var(--font-sans);font-variant-numeric:tabular-nums}

/* The key values as one table: label · qualifier · figure (right) · unit (left) · page · copy.
   The rows share the table's columns (subgrid), so figures and units line up. */
.mg-shell .ux-vt{display:grid;grid-template-columns:minmax(0,1fr) max-content max-content minmax(2.4rem,max-content) max-content 32px;gap:0 .55rem;border-top:1px solid var(--line)}
.mg-shell .ux-vt>.ux-spec{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:baseline;row-gap:0;padding:.55rem .25rem;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;min-width:0}
.mg-shell .ux-vt .ux-spec-k{grid-column:1;padding-right:0;font-size:var(--ux-fs-body);font-weight:500;line-height:var(--ux-lh-tight);color:var(--ink)}
.mg-shell .ux-vt .ux-spec-v{display:contents}
.mg-shell .ux-vt .ux-v-pre{grid-column:2;text-align:right;color:var(--ink-dim);font-weight:500}
.mg-shell .ux-vt .ux-v-num{grid-column:3;text-align:right;font-size:var(--ux-fs-value);font-weight:650;line-height:var(--ux-lh-tight);font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.mg-shell .ux-vt .ux-v-unit{grid-column:4;text-align:left;font-weight:600;color:var(--ink);white-space:nowrap}
.mg-shell .ux-vt .ux-v-text{grid-column:2/5;font-size:var(--ux-fs-body);font-weight:650;color:var(--ink);text-align:right}
.mg-shell .ux-vt .ux-spec-src{grid-column:5;margin:0;padding:0;white-space:nowrap}
.mg-shell .ux-vt .ux-spec-flags{display:inline-flex;margin-left:.3rem}
.mg-shell .ux-vt>.ux-spec>.ux-copy{grid-column:6;position:static;align-self:center;justify-self:end}
.mg-shell .ux-vt>.ux-spec:hover{background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}
@media (max-width:640px){
  /* A phone: the label on its own line, the figures under it, still aligned. */
  .mg-shell .ux-vt{grid-template-columns:max-content max-content minmax(2rem,max-content) minmax(0,1fr) 40px}
  .mg-shell .ux-vt .ux-spec-k{grid-column:1/-2;grid-row:1;padding-bottom:.15rem}
  .mg-shell .ux-vt .ux-v-pre{grid-column:1;grid-row:2;text-align:left}
  .mg-shell .ux-vt .ux-v-num{grid-column:2;grid-row:2}
  .mg-shell .ux-vt .ux-v-unit{grid-column:3;grid-row:2}
  .mg-shell .ux-vt .ux-v-text{grid-column:1/4;grid-row:2;text-align:left}
  .mg-shell .ux-vt .ux-spec-src{grid-column:4;grid-row:2;justify-self:end}
  .mg-shell .ux-vt>.ux-spec>.ux-copy{grid-column:5;grid-row:1/3}
}

/* 2 Nov (side viewer): the page as a stage — zoom widens it (100–300 %), the
   marks sit on it in % of the page, so they follow every zoom; signal blue,
   faint, so the page reads through. */
.pv-stage{position:relative;width:100%;margin:0 auto;line-height:0}
.pv-stage img{width:100%;max-width:none;height:auto;display:block}
.pv-marks{position:absolute;inset:0;pointer-events:none}
.pv-mark{position:absolute;background:color-mix(in srgb,var(--accent) 20%,transparent);box-shadow:0 0 0 2px var(--accent);border-radius:3px;mix-blend-mode:multiply}
.pv-zoom{display:inline-flex;gap:.2rem}
.pv-zoom .btn{min-width:2.25rem;justify-content:center}
.pv-zoom-v{font-variant-numeric:tabular-nums;min-width:3.6rem}
.pv-go{width:4.4rem;min-height:2rem;padding:.2rem .4rem;font:inherit;font-size:.82rem;text-align:center;font-variant-numeric:tabular-nums}
.pv-cite-v{font-variant-numeric:tabular-nums}
.pv-mark-note{display:block;margin-top:.25rem;font-size:.76rem;color:var(--ink-dim)}
.pv-mark-note:empty{display:none}
@media (max-width:820px){
  .pv-head{gap:.35rem}
  .pv-zoom .btn,.pv-head .btn{min-height:40px}
  .pv-go{min-height:40px;width:4rem}
}

/* 2 Nov (slow answers): what a stage found, beside it; after 20 s, one sentence on what is running. */
.ux-trace-note{color:var(--ink-dim);font-weight:400;font-size:var(--ux-fs-label,.8125rem)}
.ux-trace-note::before{content:"· "}
.ux-trace-slow{margin:.1rem 0 .6rem;padding:.45rem .7rem;border-left:3px solid var(--line-strong);background:var(--bg-2);border-radius:0 8px 8px 0;font-size:.86rem;line-height:1.5;color:var(--ink-dim)}

/* 2 Nov (network drops): above the box that keeps the question. Neutral: a dropped
   connection is not a fault of the answer. */
.mg-net{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;margin:0 0 .5rem;padding:.55rem .8rem;border:1px solid var(--line-strong);border-left:3px solid var(--ink-faint);border-radius:10px;background:var(--surface);font-size:.86rem;line-height:1.45;color:var(--ink)}
.mg-net[hidden]{display:none}
.mg-net .btn{min-height:2.25rem}
@media (max-width:640px){ .mg-net .btn{min-height:40px} }

/* 2 Nov (QA matrix, 5 languages): a translated status is often longer than the English
   ("bereit für die Diagnose"): on a phone a chip in a card wraps instead of leaving the card. */
@media (max-width:640px){
  .card .chip,.cards .chip{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:left}
}

/* 2 Nov (answer feedback, behind OHMIX.ANSWER_FEEDBACK; js/answer-feedback.js): "Was this answer
   right?" with two thumbs, and a "wrong value" flag beside each value's copy button. Neutral ink,
   signal blue when pressed or focused: red stays for HV and do-not-release only. */
.afb-bar{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .5rem;margin:.9rem 0 .4rem;font-size:var(--ux-fs-label, .8125rem);color:var(--ink-dim)}
.afb-q{font-weight:600;color:var(--ink-dim)}
.afb-thumb{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--field-line, var(--line-strong));border-radius:999px;background:var(--surface);color:var(--ink-dim);cursor:pointer;padding:0}
.afb-thumb svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.afb-thumb:hover{color:var(--accent);border-color:var(--accent)}
.afb-thumb:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.afb-thumb[aria-pressed="true"]{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}
.afb-thumb:disabled:not([aria-pressed="true"]){opacity:.45;cursor:default}
.afb-said{color:var(--ink-dim)}
.ux-copy.afb-wrong svg{fill:none}
.ux-copy.afb-wrong.is-sent{color:var(--accent);opacity:1}
.afb-form{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:end;gap:.4rem .6rem;margin:.4rem 0 .2rem;padding:.55rem .65rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);line-height:var(--ux-lh-body, 1.5)}
.afb-form label{display:flex;flex-direction:column;gap:.2rem;font-size:var(--ux-fs-label, .8125rem);font-weight:600;color:var(--ink);flex:1 1 14rem}
.afb-form input{font:inherit;font-weight:400;padding:.45rem .55rem;border:1px solid var(--field-line, var(--line-strong));border-radius:8px;background:var(--bg);color:var(--ink);min-height:40px}
.afb-form input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.afb-opt{font-weight:400;color:var(--ink-dim)}
.afb-acts{display:flex;gap:.4rem}
.afb-note{flex:1 0 100%;font-size:var(--ux-fs-label, .8125rem);color:var(--ink-dim)}
.mg-shell .ux-vt.has-afb{grid-template-columns:minmax(0,1fr) max-content max-content minmax(2.4rem,max-content) max-content 32px 32px}
.mg-shell .ux-vt.has-afb>.ux-spec>.afb-wrong{grid-column:7;position:static;align-self:center;justify-self:end}
.ux-spec>.afb-wrong{position:absolute;top:.3rem;right:2.3rem}
@media (max-width:640px){
  .mg-shell .ux-vt.has-afb{grid-template-columns:max-content max-content minmax(2rem,max-content) minmax(0,1fr) 40px 40px}
  .mg-shell .ux-vt.has-afb .ux-spec-k{grid-column:1/-3}
  .mg-shell .ux-vt.has-afb>.ux-spec>.ux-copy{grid-column:5;grid-row:1/3}
  .mg-shell .ux-vt.has-afb>.ux-spec>.afb-wrong{grid-column:6;grid-row:1/3}
  .afb-thumb{width:44px;height:44px}
}

/* 2 Nov (early line, answer quality 700a8bd6): the first line from the pages read, in the headline's place; the
   research line (the MG pages being read) as a plain line with a quiet pulse; the checked answer fades in where
   it stood (opacity only — nothing moves). */
.ux-early-line strong{font-weight:600}
.ux-early-k{margin:.25rem 0 0;font-size:var(--ux-fs-label, .8125rem);color:var(--ink-dim)}
.ux-early-research{display:flex;align-items:baseline;gap:.5rem;margin:.2rem 0 0;font-size:var(--ux-fs-body, 1rem);color:var(--ink-dim);line-height:var(--ux-lh-body, 1.5)}
.ux-early-dot{flex:none;width:.5rem;height:.5rem;border-radius:50%;background:var(--accent);opacity:.7;transform:translateY(-.1rem);animation:uxEarlyPulse 1.6s ease-in-out infinite}
@keyframes uxEarlyPulse{0%,100%{opacity:.25}50%{opacity:.85}}
.ux-swap{animation:uxSwap .24s ease-out}
@keyframes uxSwap{from{opacity:.6}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ux-early-dot,.ux-swap{animation:none}}

/* 2 Nov (photo answers): "What the photo shows" — the thumbnail and the SHOWS lines in the dealer's language. */
.ux-shows{border-left:3px solid var(--accent)}
.ux-shows-list{list-style:none;margin:.45rem 0 0;padding:0;display:grid;gap:.3rem}
.ux-shows-list li{font-size:var(--ux-fs-body, 1rem);line-height:var(--ux-lh-body, 1.5);color:var(--ink);overflow-wrap:anywhere}
.ux-shows-k{font-weight:600;color:var(--ink-dim)}
.ux-shows-h{font-size:var(--ux-fs-label, .8125rem);font-weight:600;color:var(--ink-dim);margin-top:.2rem}
.ux-shows-note{margin:.45rem 0 0}

/* 2 Nov (mobile pass, 390×844): every tap target in an answer and in the composer is at least 44 px on a phone.
   Inline citation chips keep their size in the text and take a 44 px hit area (an invisible ::after); buttons,
   copy and flag icons, source links, folds and step checkboxes grow to 44. The camera button sits beside "+". */
.mg-cam[hidden]{display:none}
@media (max-width:640px){
  #askAnswer :is(.chip[data-cite],.chip.tg-src), .mg-thread :is(.chip[data-cite],.chip.tg-src){position:relative;z-index:1}
  #askAnswer :is(.chip[data-cite],.chip.tg-src)::after, .mg-thread :is(.chip[data-cite],.chip.tg-src)::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:44px;transform:translateY(-50%)}
  #askAnswer .btn.sm, #askAnswer .ux-srclink, #askForm .btn.sm, .mg-thread .btn.sm{min-height:44px}
  #askAnswer .ux-copy, .mg-thread .ux-copy{width:44px;height:44px}
  .mg-shell .ux-vt{grid-template-columns:max-content max-content minmax(2rem,max-content) minmax(0,1fr) 44px}
  .mg-shell .ux-vt.has-afb{grid-template-columns:max-content max-content minmax(2rem,max-content) minmax(0,1fr) 44px 44px}
  #askAnswer summary, .mg-thread summary{min-height:44px;box-sizing:border-box;padding-top:.6rem;padding-bottom:.6rem}
  #askAnswer label:has(> input[type="checkbox"]), .mg-thread label:has(> input[type="checkbox"]){min-height:44px;display:flex;align-items:center;gap:.5rem}
  #askAnswer input[type="checkbox"], .mg-thread input[type="checkbox"]{width:22px;height:22px;flex:none}
  .mg-cam{width:44px;height:44px;padding:0;display:inline-grid;place-items:center}
  /* 2 Nov (error review in Italian): "Automatica (segui la mia domanda)" pushed Send half off a 390 screen.
     The buttons keep their 44 px; the language select gives way and truncates. */
  .mg-chat .mg-tools > :is(div,.mg-tool,.mg-cam,#askGo){flex:none}
  .mg-chat .mg-tools .mg-lang{flex:0 1 auto;min-width:0;width:auto;max-width:15rem;text-overflow:ellipsis}
  .ask-card.mg-composer .mg-box .mg-tools{min-width:0;max-width:100%}
}
@media (max-width:640px){
  /* The answer's blocks keep content-visibility:auto (AQF-13), which clips paint at their edge: 14 px of room inside
     each block lets a chip on its first or last line keep its whole 44 px hit area. The room is padding, never a
     negative margin: a contained block paints as its own layer, so an overlapping neighbour would cover the chip. */
  .mg-chat .ask-manual-answer>:is(section,.tablewrap,.rsec){padding-block:14px;margin-block:0}
  .mg-chat .ask-manual-answer>.note{padding-top:max(.85rem,14px);padding-bottom:max(.85rem,14px)}
  /* The end of the answer never sits flush on the composer. */
  .mg-scroll{scroll-padding-bottom:24px}
  .mg-chat #askAnswer{padding-bottom:24px}
}

/* First login of a dealer technician (2 Nov, pilot launch; js/first-login.js): one screen in the empty Ohmix MG,
   not a dialog. Neutral surfaces, signal blue for the choice made; no reserved colour. */
.mg-empty.is-first{justify-content:flex-start;text-align:left;padding-top:1.4rem}
.fl{width:100%;max-width:560px;margin:0 auto}
.fl-h{font-size:clamp(1.3rem,2.6vw,1.6rem);margin:0 0 .35rem}
.fl-sub{margin:0 0 1.1rem;color:var(--ink-dim)}
.fl-form{display:flex;flex-direction:column;gap:1rem}
.fl-set{border:0;margin:0;padding:0;min-width:0}
.fl-k{display:block;font-weight:600;font-size:.9rem;margin:0 0 .4rem;padding:0;color:var(--ink)}
.fl-in{width:100%;min-height:44px;box-sizing:border-box;font:inherit;font-size:1rem;padding:.55rem .7rem;border:1px solid var(--line-strong);border-radius:8px;background:var(--bg);color:var(--ink)}
.fl-langs,.fl-models{display:flex;flex-wrap:wrap;gap:.45rem}
.fl-lang,.fl-model{min-height:44px;min-width:44px;padding:.45rem .85rem;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg);color:var(--ink);font:500 .92rem/1.2 var(--font-sans);cursor:pointer}
.fl-lang[aria-checked="true"],.fl-model[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--accent)}
.fl-model[aria-pressed="true"]::before{content:"✓ ";color:var(--accent)}
.fl-lang:focus-visible,.fl-model:focus-visible,.fl-in:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.fl-note{margin:.45rem 0 0;font-size:.84rem;color:var(--ink-dim)}
.fl-acts{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.fl-acts .btn{min-height:44px;padding-inline:1.2rem}
.fl-status{margin:0;min-height:1.2em;font-size:.86rem;color:var(--ink-dim)}
@media (max-width:640px){.mg-empty.is-first{padding-top:.6rem}.fl-acts .fl-go{flex:1 1 auto}}
/* 3 Nov (overnight 1): the deterministic warning-photo answer's light card (js/mg-answer-ux.js warningLightHtml). The
   handbook's own sentence quoted with its page, on a neutral surface with the signal-blue rule every cited block has;
   the verdict block above carries the stop, so nothing here is red, amber or emerald. */
.ux-light{margin:1rem 0;padding:.9rem 1rem;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:10px;background:var(--surface,var(--bg))}
.mg-chat .ask-manual-answer .ux-light .ux-h,.ux-light .ux-h{margin:0 0 .45rem}
.ux-light-name{margin:0 0 .5rem;font-size:var(--ux-fs-body,1rem);line-height:var(--ux-lh-body,1.5);color:var(--ink)}
.ux-light-k{color:var(--ink-dim);font-weight:600}
.ux-light-fig{margin:0}
.ux-light-quote{margin:0;padding:.55rem .8rem;border-radius:8px;background:var(--bg-2);color:var(--ink);font-size:var(--ux-fs-body,1rem);line-height:var(--ux-lh-body,1.5);overflow-wrap:anywhere}
.ux-light-cap{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .5rem;margin-top:.45rem;font-size:.84rem;color:var(--ink-dim)}
.ux-light-doc{font-weight:600;color:var(--ink-dim);overflow-wrap:anywhere}
.ux-light-open{margin-left:auto}
.ux-light-from{margin:.6rem 0 0;font-size:.84rem;color:var(--ink-dim)}
.ux-shows-cite{margin-left:.15rem}
@media (max-width:640px){
  .ux-light{padding:.8rem .85rem}
  .ux-light-open{min-height:44px;margin-left:0}
  .ux-light-cap .chip[data-cite], .ux-shows .ux-shows-cite{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
}

/* 4 Nov (owner: answers readable): the answer's short head, the same on every answer type and in every language,
   phone first — one big line, a compact values table (what / value / page), at most three numbered steps, one
   "Next check" line; the answer as written behind "More detail". Ink and signal blue only. */
.rd{margin:.9rem 0 .4rem;display:flex;flex-direction:column;gap:.7rem}
.rd-lead,.mg-chat .ask-manual-answer .rd .rd-lead{margin:0;font-size:clamp(1.18rem,1.05rem + .5vw,1.3rem);line-height:1.4;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.rd-value{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .6rem}
.rd-value-k{flex:1 0 100%;font-size:.9rem;font-weight:600;color:var(--ink-dim)}
.rd-value-v,.mg-chat .ask-manual-answer .rd .rd-value-v{font-size:clamp(1.9rem,1.5rem + 1.6vw,2.4rem);line-height:1.1;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.rd-values-wrap{max-width:var(--prose-max,74ch)}
.rd-values{width:100%;border-collapse:collapse;font-size:.95rem}
.rd-values th,.rd-values td{padding:.45rem .5rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:baseline}
.rd-values thead th{font-size:.74rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-dim)}
.rd-values tbody th{font-weight:500;color:var(--ink);text-transform:none;letter-spacing:normal}
.rd-values .rd-v{font-weight:700;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.rd-values .rd-v.is-long{white-space:normal;overflow-wrap:anywhere;font-weight:600}
.rd-values .rd-p{white-space:nowrap;width:1%}
.rd-values .rd-p .chip{white-space:nowrap}
.rd-steps{margin:0;padding-left:1.4rem;display:grid;gap:.4rem;font-size:1rem;line-height:1.5;color:var(--ink)}
.rd-steps li::marker{font-weight:700;color:var(--accent)}
.rd-next,.mg-chat .ask-manual-answer .rd .rd-next{margin:0;padding:.6rem .8rem;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:var(--bg-2);font-size:1rem;line-height:1.5;color:var(--ink)}
.rd-more-note{margin:.2rem 0 0;font-size:.84rem;color:var(--ink-dim)}
.ux-more{margin:.6rem 0 .2rem;border-top:1px solid var(--line)}
.ux-more>.ux-more-sum{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;gap:.4rem;font-weight:600;color:var(--accent)}
.ux-more>.ux-more-sum::-webkit-details-marker{display:none}
.ux-more>.ux-more-sum::before{content:"▸";display:inline-block;transition:transform .15s}
.ux-more[open]>.ux-more-sum::before{transform:rotate(90deg)}
.ux-more>.ux-more-sum:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){ .ux-more>.ux-more-sum::before{transition:none} }
@media (max-width:640px){
  .rd{margin-top:.7rem}
  .rd-values{font-size:.92rem}
  .rd-values th,.rd-values td{padding:.5rem .35rem}
  .rd-values .rd-p .chip{min-height:44px;display:inline-flex;align-items:center}
}
/* 4 Nov: the answer as written now sits under "More detail" (.ux-more-body); the rules written for the answer's
   direct children follow it there — the scope line stays hidden, long blocks keep content-visibility (AQF-13), and
   on a phone a chip on a block's edge keeps its 44 px hit area. */
.mg-chat .ask-manual-answer .ux-more-body>.ask-scope-line{display:none}
.mg-chat .ask-manual-answer .ux-more-body>:is(section,.tablewrap,.rsec,.note){content-visibility:auto;contain-intrinsic-size:auto 300px}
@media (max-width:640px){
  .mg-chat .ask-manual-answer .ux-more-body>:is(section,.tablewrap,.rsec){padding-block:14px;margin-block:0}
  .mg-chat .ask-manual-answer .ux-more-body>.note{padding-top:max(.85rem,14px);padding-bottom:max(.85rem,14px)}
}

/* 5 Nov (owner): the answer's actions — two primary (Job card, Copy for DMS), 👍 / 👎, the rest behind "⋯";
   two or three questions to ask next; "Open TAC case" at the end. Signal blue for actions, nothing else coloured. */
.mg-chat .ask-acts{align-items:center;gap:.4rem}
.mg-chat .ask-acts .btn.ask-main{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff);font-weight:600}
.mg-chat .ask-acts .btn.ask-main:hover,.mg-chat .ask-acts .btn.ask-main:focus-visible{background:color-mix(in srgb,var(--accent) 85%,var(--ink));color:var(--accent-ink,#fff);border-color:var(--accent)}
.mg-chat .ask-acts .ask-fb{display:inline-flex;gap:.25rem}
.mg-chat .ask-acts .btn.ask-thumb{min-width:2.4rem;justify-content:center;font-size:1rem;line-height:1;padding:.3rem .55rem}
.mg-chat .ask-acts .btn.ask-thumb[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.mg-chat .ask-acts .ask-more{position:relative;display:inline-flex}
.mg-chat .ask-acts .btn.ask-more-btn{min-width:2.4rem;justify-content:center;font-size:1.05rem;line-height:1}
.mg-chat .ask-acts .ask-more-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:30;display:flex;flex-direction:column;gap:.15rem;min-width:13rem;padding:.35rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(11,31,58,.22)}
.mg-chat .ask-acts .ask-more-menu[hidden]{display:none}
.mg-chat .ask-acts .ask-more-menu .btn{display:flex;justify-content:flex-start;text-align:left;width:100%;border-color:transparent;color:var(--ink);font-size:.86rem}
.mg-chat .ask-acts .ask-more-menu .btn:hover,.mg-chat .ask-acts .ask-more-menu .btn:focus-visible{background:var(--bg-2)}
.ask-next-qs{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.9rem 0 0}
.ask-next-qs-k{font-size:.82rem;font-weight:600;color:var(--ink-dim)}
.ask-next-q{min-height:36px;padding:.35rem .8rem;border:1px solid var(--accent);border-radius:999px;background:var(--accent-soft);color:var(--ink);font:500 .88rem/1.25 var(--font-sans);text-align:left;cursor:pointer}
.ask-next-q:hover{background:color-mix(in srgb,var(--accent) 22%,var(--surface))}
.ask-next-q:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ask-tac-row{margin:.7rem 0 0}
.mg-chat .ask-tac-row .btn.ask-tac{border:1px solid var(--accent);color:var(--accent);background:transparent;font-weight:600}
.mg-chat .ask-tac-row .btn.ask-tac:hover,.mg-chat .ask-tac-row .btn.ask-tac:focus-visible{background:var(--accent-soft)}
@media (max-width:640px){
  .mg-chat .ask-acts .btn{min-height:44px}
  .mg-chat .ask-acts .btn.ask-thumb,.mg-chat .ask-acts .btn.ask-more-btn{min-width:44px}
  .mg-chat .ask-acts .ask-more-menu{left:auto;right:0}
  .ask-next-q,.mg-chat .ask-tac-row .btn.ask-tac{min-height:44px}
}

/* 6 Nov (progressive answer): the safety note keeps the HV red edge wherever it is drawn, in the stream too (red is the
   trust palette's HV colour; a plain note's edge is amber, which belongs to open investigations). */
.ask-safety,.mg-chat .ask-safety{border-left:4px solid var(--bad)}
.ask-safety .ask-safety-list{margin:.3rem 0 0 1.1rem}
.ux-stream .rd{margin-top:.6rem}

/* ---- 6 Nov: the "Verified procedure" badge (verified-answers library; flag OHMIX.VERIFIED_LIBRARY, off) -------------
   The seal's family: the seal's emerald and its shape, a shield with a check, directly under the seal. Emerald is the
   seal's colour only; this badge is part of it (an approved library procedure), never a status of its own. */
.ux-vproc{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .85rem;margin:-.45rem 0 .95rem;padding:.6rem .85rem;border-radius:10px;
  background:var(--seal-soft);color:var(--seal-ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--seal) 40%,transparent),inset 4px 0 0 var(--seal);font-size:.86rem;line-height:1.35}
.ux-vproc-ic{width:1.3rem;height:1.3rem;flex:0 0 auto;fill:var(--seal);stroke:var(--seal);stroke-width:1.6;stroke-linejoin:round}
.ux-vproc-ic path+path{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round}
.ux-vproc-b{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .6rem;min-width:0}
.ux-vproc-b strong{font-weight:700;letter-spacing:.01em}
.ux-vproc-t{color:var(--seal-ink);opacity:.92}
.ux-vproc-meta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.25rem .85rem}
.ux-vproc-m{display:inline-flex;align-items:center;gap:.85rem}
.ux-vproc-m+.ux-vproc-m::before{content:"";width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.55}
@media (max-width:640px){   /* a phone: the shield on the left, the name, the procedure and the approval stacked beside it */
  .ux-vproc{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.65rem;row-gap:.2rem;align-items:start}
  .ux-vproc-ic{grid-row:1 / span 2}
  .ux-vproc-b{flex-direction:column;gap:.1rem}
  .ux-vproc-meta{gap:.15rem .9rem} .ux-vproc-m+.ux-vproc-m::before{display:none}   /* a wrapped row never starts with a dot */
}

/* ---- 6 Nov (AQ-NOBOOK): no MG manual for the model ---------------------------------------------------------------
   Not an answer (no seal, no answer actions) and not an error (no red, no amber: nothing went wrong, a book is missing).
   A quiet card on the neutral surface, a muted edge and a book icon; the HV safe instruction keeps its red edge. */
.ask-nobook{margin:.6rem 0 .4rem;padding:.9rem 1rem;border-radius:12px;background:var(--bg-2);color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--line),inset 4px 0 0 var(--ink-faint);max-width:var(--prose-max,74ch)}
.ask-nobook-head{display:flex;align-items:center;gap:.55rem;margin:0 0 .5rem;font-size:1rem;color:var(--ink)}
.ask-nobook-head strong{font-weight:650}
.ask-nobook-ic{width:1.25rem;height:1.25rem;flex:0 0 auto;fill:none;stroke:var(--ink-dim);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ask-nobook-t{margin:.35rem 0 .7rem;font-size:1rem;line-height:1.5;color:var(--ink)}
.ask-nobook .ask-safety{margin:.4rem 0 .6rem}
.ask-nobook-acts{margin:0}
.ask-nobook-admin{margin:.8rem 0 0;padding-top:.65rem;border-top:1px dashed var(--line-strong,var(--line));font-size:.84rem;line-height:1.45;color:var(--ink-dim)}
.ask-nobook-admin-k{display:inline-block;margin-right:.35rem;padding:.05rem .45rem;border-radius:999px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);
  font-size:.72rem;font-weight:600;letter-spacing:.02em;color:var(--ink-dim)}
.ask-nobook-lib{white-space:nowrap}
@media (max-width:640px){ .ask-nobook{padding:.8rem .85rem} .ask-nobook-acts .btn{min-height:44px} }

/* ---- 6 Nov (R101): "Nel tuo caso" / "In your case" — a quiet section label on the paragraph that applies the answer
   to this dealer's own codes and readings. Small, muted, no colour of its own: it names the paragraph, it is not news.
   On its own line above the paragraph; inline (same look) inside a one-line slot such as the next check. */
.ux-incase{font-size:.72rem;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-dim);white-space:nowrap}
.ux-incase.is-block{display:block;margin:0 0 .2rem;line-height:1.4}
.ux-incase:not(.is-block){display:inline-block;margin-right:.15rem;vertical-align:.08em}
.ux-incase:not(.is-block)::after{content:" ·"}

/* ---- 6 Nov (UX-GD-1): a model held out of the pilot start, greyed with one line ("in arrivo"). Not an error and not a
   warning (no red, no amber): the neutral surface, muted text, a dashed edge that says "not yet". */
.mg-try-held{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;margin:1.5rem auto 0;max-width:36rem;padding:.65rem .9rem;border-radius:10px;
  background:var(--bg-2);box-shadow:inset 0 0 0 1px var(--line);border:1px dashed var(--line-strong,var(--line));color:var(--ink-dim);font-size:.9rem;line-height:1.45;text-align:left}
.mg-try-held-m{font-weight:600;color:var(--ink-dim)}
.mg-try-held-t{color:var(--ink-dim)}
