/* FireTEK web manual - one page per chapter. Mobile first: 16 px text, images max-width 100 %, no horizontal page scroll
   at 360 px (wide tables and code scroll inside their own box), light / dark theme after the system.
   Copied to docs/manual/out/site/ by docs/manual/tools/build_manual_outputs.py. */
:root {
  --bg: #ffffff; --bg2: #f4f6f9; --bg3: #e8edf3; --fg: #15191e; --fg2: #4b5562; --line: #d5dbe2;
  --acc: #c8102e; --link: #0b5cad; --head: #0d2a4a; --mark: #ffe066; --code: #eef1f5;
  --side-w: 300px; --bar-h: 56px; --shadow: 0 6px 24px rgba(0,0,0,.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d; --bg2: #1b2128; --bg3: #252d36; --fg: #e3e7ec; --fg2: #a5afba; --line: #333d48;
    --acc: #ff5a6e; --link: #6fb3ff; --head: #cfe2ff; --mark: #8a6d00; --code: #232b34;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
/* HELP-UX 2026-11-05 (owner: "font subțire... să evităm fonturile subțiri peste tot în manual, cel puțin pe telefon"): the font
   of the phone right after Segoe UI (Roboto on Android, San Francisco on iOS, both with a real bold; system-ui last, some phones
   map it to a light brand font), never a thin weight: body 400, labels and buttons 600, titles 700 (set below, not left to a
   font's default); font-synthesis lets a font without its own bold still draw one */
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont,
  "Helvetica Neue", system-ui, Arial, sans-serif; font-synthesis: weight; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .88em Consolas, "Cascadia Mono", "Courier New", monospace; background: var(--code); padding: 1px 4px; border-radius: 3px;
  overflow-wrap: anywhere; }
pre { background: var(--bg2); border: 1px solid var(--line); padding: 8px 10px; overflow-x: auto; border-radius: 4px; max-width: 100%; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
img { max-width: 100%; height: auto; }
.ib { display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; color: var(--fg);
  font-size: 20px; min-width: 40px; height: 40px; border-radius: 8px; cursor: pointer; padding: 0 6px; }
.ib:hover { background: var(--bg3); text-decoration: none; }
.lnk { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }

/* top bar */
#bar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); display: flex; align-items: center; gap: 8px; padding: 0 8px;
  background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 30; }
.brand { white-space: nowrap; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--acc); font-size: 18px; letter-spacing: .5px; }
.brand span { color: var(--fg2); margin-left: 4px; }
.sbox { position: relative; flex: 1 1 auto; min-width: 0; max-width: 640px; margin-left: auto; }
#q { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 20px; padding: 0 14px; font: inherit; font-size: 16px;
  background: var(--bg); color: var(--fg); outline: none; }
#q:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(11,92,173,.18); }
#langBtn { font-size: 14px; font-weight: 700; border: 1px solid var(--line); color: var(--fg); }
#sugg { position: absolute; top: 46px; left: 0; right: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); max-height: 75vh; overflow-y: auto; z-index: 40; }
#sugg .sh { padding: 6px 12px; font-size: 12px; color: var(--fg2); background: var(--bg2); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px; }
#sugg .dym { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
#sugg .it { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
#sugg .it:last-child { border-bottom: 0; }
#sugg .it.act, #sugg .it:hover { background: var(--bg3); }
#sugg .it .t { font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
#sugg .it .c { font-size: 13px; color: var(--fg2); }
#sugg .it .s { font-size: 14px; color: var(--fg2); margin-top: 2px; overflow-wrap: anywhere; }
#sugg mark { background: var(--mark); color: inherit; padding: 0; }
#sugg .empty { padding: 10px 12px; color: var(--fg2); }

/* side menu: fixed on a wide screen, a drawer behind the hamburger on a phone / tablet */
#side { position: fixed; top: var(--bar-h); bottom: 0; left: 0; width: var(--side-w); overflow-y: auto; background: var(--bg2);
  border-right: 1px solid var(--line); padding: 8px 0 60px; z-index: 25; font-size: 14.5px; -webkit-overflow-scrolling: touch; }
#side ul { list-style: none; margin: 0; padding: 0; }
#side .row { display: flex; align-items: flex-start; }
#side .tg { flex: 0 0 28px; height: 30px; border: 0; background: none; color: var(--fg2); cursor: pointer; padding: 0; }
#side .tg::before { content: "\25B8"; font-size: 12px; }
#side li.open > .row > .tg::before { content: "\25BE"; }
#side .tg.none::before { content: ""; }
#side a { flex: 1; display: block; padding: 5px 10px 5px 0; color: var(--fg); line-height: 1.35; border-radius: 4px; }
#side a:hover { background: var(--bg3); text-decoration: none; }
#side li.cur > .row > a { color: var(--acc); font-weight: 700; }
#side ul ul { display: none; padding: 0 0 4px 30px; font-size: 13.5px; }
#side ul ul a { padding: 3px 8px 3px 0; color: var(--fg2); }
#side li.open > ul { display: block; }
#scrim { display: none; }

/* content */
#content { margin-left: var(--side-w); padding: calc(var(--bar-h) + 14px) 28px 40px; min-width: 0; }
#content article { max-width: 920px; }
h1, h2, h3, h4, h5, h6 { color: var(--head); line-height: 1.25; overflow-wrap: anywhere; }
h1 { font-size: 1.75em; margin: .2em 0 .6em; padding-bottom: 6px; border-bottom: 3px solid var(--acc); }
h2 { font-size: 1.4em; margin: 1.6em 0 .6em; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.18em; margin: 1.3em 0 .5em; }
h4 { font-size: 1.05em; margin: 1.1em 0 .4em; }
p, li { overflow-wrap: break-word; }
blockquote { margin: 1em 0; padding: 6px 14px; border-left: 4px solid var(--acc); background: var(--bg2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.tw { max-width: 100%; overflow-x: auto; margin: .8em 0 1.2em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 5px 8px; vertical-align: top; text-align: left; }
th { background: var(--bg3); }
td img, th img { max-width: none; }
.untr { padding: 8px 12px; border: 1px solid #e3b5bd; background: #fdf3f5; color: #7a1020; border-radius: 6px; }
mark.f { background: var(--mark); color: inherit; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--mark); } 100% { background: transparent; } }

/* the chapter's own table of contents */
details.ctoc { border: 1px solid var(--line); background: var(--bg2); border-radius: 8px; padding: 6px 14px; margin: 0 0 1.4em; }
details.ctoc summary { cursor: pointer; font-weight: 700; color: var(--head); padding: 4px 0; }
details.ctoc ul { margin: 4px 0 6px; padding-left: 20px; }
details.ctoc ul ul { font-size: 14.5px; }
details.ctoc li { margin: 2px 0; }

/* the quick guide card of the table of contents */
a.card { display: block; border: 1px solid var(--line); border-left: 5px solid var(--acc); background: var(--bg2); border-radius: 8px;
  padding: 12px 16px; margin: 0 0 1.4em; color: var(--fg); }
a.card:hover { text-decoration: none; background: var(--bg3); }
a.card b { display: block; color: var(--head); font-size: 1.1em; }
a.card span { color: var(--fg2); }
/* stage M7: the three parts of the manual side by side (one column on a phone) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.cards a.card { margin: 0; }

/* previous / next */
nav.pn { display: flex; justify-content: space-between; gap: 12px; max-width: 920px; margin-top: 2.5em; border-top: 1px solid var(--line);
  padding-top: 14px; }
nav.pn a { display: flex; flex-direction: column; max-width: 48%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
nav.pn a:hover { text-decoration: none; background: var(--bg2); }
nav.pn a.next { text-align: right; margin-left: auto; }
nav.pn small { color: var(--fg2); }
nav.pn span { overflow-wrap: anywhere; }
footer { max-width: 920px; margin-top: 2em; font-size: 13px; color: var(--fg2); }

@media (max-width: 599px) {
  .brand span { display: none; }
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.28em; }
  nav.pn a { max-width: 49%; font-size: 15px; }
}
@media (max-width: 380px) {
  .brand { display: none; }
}

/* language chooser (site root) */
body.chooser main { max-width: 520px; margin: 0 auto; padding: 40px 16px; }
body.chooser h1 { border: 0; font-weight: 700; }
body.chooser h1 b { color: var(--acc); }
body.chooser .fw { color: var(--fg2); font-size: 14px; }
ul.langs { list-style: none; padding: 0; margin: 24px 0; }
ul.langs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg); background: var(--bg2); font-size: 18px; }
ul.langs a:hover { text-decoration: none; background: var(--bg3); }
ul.langs a span { color: var(--fg2); font-size: 14px; }

@media print {
  #bar, #mbar, #side, #scrim, nav.pn, details.ctoc, .tabs, .schips, .home, .devpick, .coach { display: none !important; }
  #content { margin: 0; padding: 0; }
}
p.dl a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); font-weight: 600; }
p.dl a:hover { text-decoration: none; background: var(--bg3); }

/* stage M2 (PWA): the update banner, the install box, the firmware channels of chapter 31 */
.pwa-upd { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 24px); padding: 10px 12px 10px 16px; background: var(--head); color: var(--bg);
  border-radius: 10px; box-shadow: var(--shadow); font-size: 15px; }
.pwa-upd button { flex: none; background: var(--acc); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit;
  font-weight: 600; cursor: pointer; }
.pwa-install { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0; padding: 12px 14px;
  border: 1px dashed var(--line); border-radius: 10px; background: var(--bg2); }
.pwa-install[hidden], .pwa-standalone .pwa-install { display: none; }
.pwa-install button { background: var(--acc); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit;
  font-weight: 600; cursor: pointer; }
.pwa-install span { color: var(--fg2); font-size: 14px; flex: 1 1 200px; min-width: 0; }
#fw-channels .fw-none { font-weight: 600; }
#fw-channels .fw-ch h3 { margin-bottom: 4px; }
#fw-channels .tw { overflow-x: auto; max-width: 100%; }
#fw-channels code.sha { font-size: .75em; overflow-wrap: anywhere; }

/* the short presentation v2: devices side by side, accessories beside their text, the 'Who runs the show' cards */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0; }
.duo img { margin: 0; }
.side { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.side img { flex: 0 0 auto; margin: 0; }
.side p { margin: 0; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.who > div { border: 1px solid rgba(128,128,128,.45); border-left: 4px solid #c8102e; border-radius: 6px; padding: 6px 10px; display: flex; align-items: flex-start; gap: 10px; }
.who > div img { flex: 0 0 auto; margin: 2px 0; }
.who > div p { margin: 0; }

/* Photo help (2026-11-04): <ll>/photo.html in the layout chosen by the owner, mockup M3 "Cards" (rapoarte/ocr_mockups/M3.html):
   a centred column (max 440 px), the device as a segmented control, the screens as full-width cards to swipe, the sections as
   chips, a floating "New photo" + gallery, buttons of 48 px or more; the report as a bottom sheet */
:root { --cam: #e8710a; --cam-fg: #ffffff; --cam-glow: rgba(232,113,10,.35); --ok: #1f8a4c; --ok-fg: #ffffff; --card: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --cam: #ff8a2a; --cam-fg: #1c1004; --cam-glow: rgba(255,138,42,.22); --ok: #4cc283; --ok-fg: #06210f; --card: #1b2128; } }
#photoBtn { border: 1px solid var(--line); }
.ph-page { max-width: 440px; margin: 0 auto; padding-bottom: 120px; }
.ph-page h1 { text-align: center; font-size: 1.5em; border-bottom: 0; margin-bottom: .2em; }
.ph-lead { text-align: center; color: var(--fg2); margin: 0 auto 10px; }
.ph-privacy, .ph-hint { color: var(--fg2); font-size: 14px; text-align: center; margin: 6px 0; }
.ph-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 12px 0 4px; border-radius: 16px; background: var(--bg3); }
.ph-seg button { min-height: 48px; border: 0; border-radius: 12px; background: none; color: var(--fg2); font: inherit; font-size: 15px;
  font-weight: 600; padding: 0 2px; cursor: pointer; }
.ph-seg button[aria-pressed="true"] { background: var(--card); color: var(--head); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.ph-status { min-height: 1.4em; text-align: center; color: var(--fg2); }
.ph-status.err { color: var(--acc); }
.ph-count { text-align: center; color: var(--fg2); margin: 4px 0 10px; }
.ph-count b { color: var(--head); font-size: 17px; }
.ph-rail { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 22px 10px; margin: 0 -16px;
  scrollbar-width: none; }
.ph-rail::-webkit-scrollbar { display: none; }
.ph-slide { flex: 0 0 calc(100% - 44px); scroll-snap-align: center; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card);
  overflow: hidden; }
.ph-slide.best { border: 2px solid var(--ok); box-shadow: var(--shadow); }
.ph-pic { padding: 10px 10px 0; }
.ph-lcd { display: block; width: 100%; height: auto; border-radius: 10px; background: #000; border: 5px solid #0b0d10; }
.ph-body { padding: 10px 16px 16px; text-align: center; }
.ph-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 14px;
  font-weight: 700; background: var(--ok); color: var(--ok-fg); margin: 2px 0 6px; }
.ph-body h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.25; color: var(--head); overflow-wrap: anywhere; }
.ph-devtag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600;
  background: var(--bg3); color: var(--fg2); }
.ph-lbl { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--fg2); margin: 14px 0 8px; }
.ph-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ph-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 22px; border: 1.5px solid var(--link);
  color: var(--link); font-weight: 600; font-size: 15px; line-height: 1.25; }
.ph-chips a:hover { text-decoration: none; background: var(--bg2); }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; margin-top: 12px;
  border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; border: 0; cursor: pointer; text-align: center; }
.ph-btn:hover { text-decoration: none; }
.ph-pri { background: var(--link); color: #fff; }
.ph-ghost { background: transparent; color: var(--link); border: 1.5px solid var(--line); }
.ph-ghost.on { border-color: var(--ok); color: var(--ok); }
.ph-plain { background: transparent; color: var(--fg2); }
.ph-btn:disabled { opacity: .5; cursor: progress; }
.ph-row { display: flex; gap: 10px; }
.ph-row .ph-btn { margin-top: 6px; }
.ph-dots { display: flex; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.ph-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ph-dots i.on { width: 26px; border-radius: 5px; background: var(--cam); }
details.ph-exp { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); margin: 12px 0; overflow: hidden; }
details.ph-exp > summary { display: flex; align-items: center; min-height: 56px; padding: 0 16px; font-weight: 700; color: var(--head); cursor: pointer; }
details.ph-exp > div, details.ph-exp > p { padding: 0 12px; }
details.ph-exp > div:last-child { padding-bottom: 12px; }
.ph-wrap { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; touch-action: none; overflow: hidden; border-radius: 8px; }
#phCanvas { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; }
#phBox { position: absolute; border: 2px solid #ffd400; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); cursor: move; touch-action: none; }
#phBox i { position: absolute; width: 26px; height: 26px; background: #ffd400; border-radius: 50%; border: 2px solid #000; }
#phBox i[data-h="tl"] { left: -14px; top: -14px; }
#phBox i[data-h="tr"] { right: -14px; top: -14px; }
#phBox i[data-h="bl"] { left: -14px; bottom: -14px; }
#phBox i[data-h="br"] { right: -14px; bottom: -14px; }
.ph-catdev > summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.ph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-bottom: 8px; }
.ph-tile { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--card); color: var(--fg); font-size: 13px; }
.ph-tile:hover { text-decoration: none; border-color: var(--link); }
.ph-tile img { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; margin-bottom: 4px; }
.ph-pass { font-size: 13px; color: var(--fg2); margin: 6px 0 2px; }
#phDebugBody pre { white-space: pre-wrap; font-size: 12px; }
.ph-fab { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 20; display: flex; justify-content: center; gap: 12px; pointer-events: none; }
@media (min-width: 900px) { .ph-fab { left: var(--side-w); } }
.ph-fab label { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; cursor: pointer; overflow: hidden; }
.ph-fab input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ph-cam { height: 60px; padding: 0 26px; border-radius: 30px; background: var(--cam); color: var(--cam-fg); font-size: 17px;
  box-shadow: 0 8px 22px var(--cam-glow), 0 2px 6px rgba(0,0,0,.25); }
.ph-gal { width: 60px; height: 60px; border-radius: 50%; background: var(--card); color: var(--link); border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ph-again { display: none; }
body.ph-has-photo .ph-first { display: none; }
body.ph-has-photo .ph-again { display: inline; }
.ph-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(13,42,74,.45); display: flex; align-items: flex-end; justify-content: center; }
.ph-sheet[hidden] { display: none; }
.ph-sheet-in { width: 100%; max-width: 480px; background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 18px 24px; box-shadow: var(--shadow); }
.ph-sheet-in h2 { margin: 0 0 8px; font-size: 19px; color: var(--head); border: 0; }
.ph-sheet-in p { margin: 0 0 6px; color: var(--fg2); }
@media print { .ph-fab, .ph-sheet { display: none !important; } }
.ph-note { display: block; font-size: 14px; color: var(--fg2); margin: 8px 0 0; }
.ph-note textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); resize: vertical; }
.ph-wait .ph-sheet-in { text-align: center; }
.ph-bar { height: 6px; border-radius: 3px; background: var(--bg3); overflow: hidden; margin: 10px 0 4px; }
.ph-bar i { display: block; height: 100%; width: 0; background: var(--cam); transition: width .4s ease; }
.ph-page [hidden], .ph-fab [hidden] { display: none !important; }

/* =====================================================================================================================================
   The phone layout S1 "Reader" + the device choice D1 "Chip row" (2026-11-04; the owner: "mergem pe S1 Reader: bară de taburi jos:
   cuprins, capitol, meniu, foto, căutare, instalare", "mergem pe D1"). Mockups: rapoarte/site_mockups/S1_*, D1_*. On a phone (< 900 px):
   the bottom tab bar, the sticky title with the reading progress, the section chips, the contents as a bottom sheet, 17 px text,
   16-20 px gutters, every target 44-48 px or more. From 900 px: the tabs are a top nav in the bar, the contents a fixed side column. */
:root { --mbar-h: 60px; --tabs-h: 64px; --pri-fg: #ffffff; --scrim: rgba(13,42,74,.45); }
@media (prefers-color-scheme: dark) { :root { --pri-fg: #0c1624; --scrim: rgba(0,0,0,.6); } }

/* the device filter: html[data-device] (site.js, remembered per viewer) hides every element tagged for other devices */
html[data-device="c"] [data-dv]:not([data-dv*="c"]), html[data-device="m"] [data-dv]:not([data-dv*="m"]),
html[data-device="s"] [data-dv]:not([data-dv*="s"]), html[data-device="b"] [data-dv]:not([data-dv*="b"]),
html[data-device="a"] [data-dv]:not([data-dv*="a"]) { display: none !important; }
.dev-one, .dhead, .sp-one { display: none; }
html[data-device] .dev-one { display: block; }
html[data-device] .dev-all, html[data-device] .sp-all, html[data-device] body.k-home article,
html[data-device] body.k-home nav.pn { display: none; }
html[data-device] .sp-one { display: inline; }
html[data-device="c"] .dhead[data-for="c"], html[data-device="m"] .dhead[data-for="m"], html[data-device="s"] .dhead[data-for="s"],
html[data-device="b"] .dhead[data-for="b"], html[data-device="a"] .dhead[data-for="a"] { display: flex; }

/* the device chips (the UI of the choice; any element with data-set-device works) */
.devpick .dp-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.devpick .dp-row::-webkit-scrollbar { display: none; }
.devpick button { flex: none; height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--fg); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.devpick button[aria-pressed="true"] { background: var(--cam); border-color: var(--cam); color: var(--cam-fg); }
.home-pick { position: sticky; top: var(--mbar-h); z-index: 19; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px; }
.side-pick { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-pick { margin: 0 0 10px; }
.coach { position: relative; z-index: 18; max-width: 640px; margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px; background: #0d2a4a;
  color: #fff; text-align: center; font-size: 15.5px; line-height: 1.45; box-shadow: var(--shadow); }
.coach[hidden] { display: none; }
.coach::before { content: ""; position: absolute; top: -9px; left: 64px; border: 9px solid transparent; border-top: 0; border-bottom-color: #0d2a4a; }
.coach b { display: block; font-size: 17px; margin-bottom: 4px; }
.coach button { display: block; width: 100%; margin-top: 12px; min-height: 48px; border: 0; border-radius: 14px; background: var(--cam);
  color: var(--cam-fg); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
@media (prefers-color-scheme: dark) { .coach { background: var(--bg3); color: var(--fg); } .coach::before { border-bottom-color: var(--bg3); } }
.dbadge { display: inline-block; padding: 0 8px; border-radius: 9px; background: var(--cam); color: var(--cam-fg); font-weight: 700; font-size: 11.5px;
  line-height: 18px; vertical-align: 1px; }

/* the Manual tab home */
.home { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.spill { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; margin: 16px 0 12px; border-radius: 26px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--fg2); font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.spill:hover { text-decoration: none; border-color: var(--link); }
.resume { display: block; padding: 12px 16px; border-radius: 16px; background: #0d2a4a; color: #fff; text-align: center; margin: 0 0 6px; }
.resume[hidden] { display: none; }
.resume:hover { text-decoration: none; }
@media (prefers-color-scheme: dark) { .resume { background: var(--bg3); color: var(--fg); } }
.resume small { display: block; opacity: .8; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.resume b { display: block; font-size: 18px; margin: 2px 0 8px; }
.resume > i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.resume > i > i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--cam); }
.home h2.gt { font-size: 15px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--fg2); margin: 18px 2px 8px;
  text-align: center; border: 0; padding: 0; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dcard { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 112px; padding: 12px 6px 10px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--head); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.dcard:hover { text-decoration: none; border-color: var(--link); }
.dcard img { height: 64px; width: 100%; object-fit: contain; margin: 0; }
.dcard b { font-size: 14.5px; line-height: 1.2; text-align: center; }
.dcard .dc-ic { display: flex; align-items: center; justify-content: center; height: 64px; color: var(--link); }
.dcard.ph { background: var(--cam); border-color: var(--cam); color: var(--cam-fg); }
.dcard.ph .dc-ic { color: var(--cam-fg); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.tcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 8px 4px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line); color: var(--link); }
.tcard:hover { text-decoration: none; border-color: var(--link); }
.tcard b { color: var(--head); font-size: 14.5px; text-align: center; line-height: 1.2; }
.dhead { align-items: center; gap: 14px; margin: 16px 0 4px; padding: 10px 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.dhead .dpic { width: 74px; height: 64px; object-fit: contain; flex: none; margin: 0; }
.dhead .dc-ic { display: flex; align-items: center; justify-content: center; color: var(--link); }
.dhead b { display: block; font-size: 19px; color: var(--head); }
.dhead small { display: block; color: var(--fg2); font-size: 14px; line-height: 1.35; }
.crows { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); margin: 4px 0 12px; }
.crow { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: -1px;
  color: var(--fg); font-size: 16.5px; line-height: 1.3; }
.crow:hover { text-decoration: none; background: var(--bg2); }
.crow .t { flex: 1; min-width: 0; }
.crow .chev { color: var(--fg2); flex: none; }
.allrow { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px;
  border: 1.5px dashed var(--line); background: none; color: var(--link); font: inherit; font-weight: 700; margin-bottom: 20px; cursor: pointer; }

/* search (the Search tab page and the results) */
.spage { max-width: 680px; margin: 0 auto; }
.sfield { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 4px 0 16px; margin: 14px 0 10px; border-radius: 27px;
  border: 2px solid var(--link); background: var(--bg); color: var(--fg2); }
.sfield input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 18px; }
.sfield input::-webkit-search-cancel-button { display: none; }
.sfield #q { border: 0; border-radius: 0; box-shadow: none; padding: 0; height: 48px; }
.sfield .ib[hidden] { display: none; }
.sres .sh { display: flex; justify-content: center; gap: 12px; font-size: 14px; color: var(--fg2); margin: 4px 0 8px; }
.sres .dym { padding: 6px 2px 10px; font-size: 15px; }
.sres .it { display: block; border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; cursor: pointer; }
.sres .it:hover, .sres .it.act { border-color: var(--link); }
.sres .it .t { font-weight: 700; color: var(--head); font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.sres .it .c { font-size: 14px; color: var(--link); margin-top: 2px; }
.sres .it .s { font-size: 15px; color: var(--fg2); margin-top: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.sres mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.sres .empty { padding: 14px 4px; color: var(--fg2); text-align: center; }
.moreres { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 4px 0 12px; padding: 6px 14px;
  border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--link); font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer; }
.moreres::after { content: "\25BE"; margin-left: 8px; }
.moreres[aria-expanded="true"]::after { content: "\25B4"; }
#sugg .moreres { width: calc(100% - 24px); margin: 8px 12px; }

/* tap to zoom */
article img.zoomable { cursor: zoom-in; }
#zoom { position: fixed; inset: 0; z-index: 90; background: rgba(8,12,18,.94); display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; }
#zoom[hidden] { display: none; }
#zoom img { max-width: 100%; max-height: 100%; transform-origin: center center; background: #fff; user-select: none; -webkit-user-drag: none;
  will-change: transform; }
#zoom .zx { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.18); color: #fff; font-size: 22px; cursor: pointer; }
#zoom .zh { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center;
  color: #cfd6df; font-size: 14px; pointer-events: none; }
body.zooming, body.sheetopen { overflow: hidden; }

/* the install sheet (pwa.js) */
.inst-sheet { position: fixed; inset: 0; z-index: 85; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.inst-sheet[hidden] { display: none; }
.inst-sheet .in { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.inst-sheet .handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.inst-sheet .app { display: inline-flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 6px; }
.inst-sheet .app img { border-radius: 15px; box-shadow: 0 3px 10px rgba(0,0,0,.25); margin: 0; }
.inst-sheet .app b { display: block; font-size: 18px; color: var(--head); }
.inst-sheet .app small { color: var(--fg2); font-size: 14px; }
.inst-sheet h2 { font-size: 21px; line-height: 1.25; color: var(--head); margin: 6px 0; border: 0; padding: 0; }
.inst-sheet .sub { color: var(--fg2); margin: 0 0 12px; font-size: 15.5px; line-height: 1.45; }
.inst-sheet .ben { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; text-align: left; }
.inst-sheet .ben li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.inst-sheet .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; color: var(--ok); flex: none; }
.inst-sheet .btns { display: grid; gap: 8px; }
.inst-sheet .btns button { min-height: 52px; border-radius: 14px; border: 0; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.inst-sheet .b-inst { background: var(--cam); color: var(--cam-fg); box-shadow: 0 4px 14px var(--cam-glow); }
.inst-sheet .b-later { background: transparent; color: var(--fg2); }
.inst-sheet .once { color: var(--fg2); font-size: 13px; margin: 10px 0 0; }
.inst-sheet .iosh { padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-weight: 600; margin: 0 0 12px; }
.inst-sheet.m-prompt .iosh { display: none; }
.inst-sheet:not(.m-prompt) .b-inst { display: none; }

/* ---------------------------------------------------------------- wide screen (from 900 px): the site of before + the top nav */
@media (min-width: 900px) {
  #mbar, .tabs, .schips, #side .sh-h { display: none !important; }
  .tnav { display: flex; gap: 2px; margin-left: 10px; }
  .tnav a { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; color: var(--fg2); font-weight: 600;
    font-size: 15px; white-space: nowrap; }
  .tnav a:hover { text-decoration: none; background: var(--bg3); }
  .tnav a.on { color: var(--cam); background: color-mix(in srgb, var(--cam) 14%, transparent); }
  .tnav svg { width: 20px; height: 20px; }
  .home-pick { top: var(--bar-h); margin: -14px -28px 0; padding: 10px 28px; }
  .side-pick .dp-row { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .side-pick button { height: 34px; padding: 0 12px; font-size: 14px; }
  .spage h1 { border: 0; }
  .coach { margin-left: 0; }
}
@media (min-width: 900px) and (max-width: 1199px) { .tnav svg { display: none; } }

/* ---------------------------------------------------------------- phone / tablet (below 900 px) */
@media (max-width: 899px) {
  #bar, .tnav { display: none; }
  html { scroll-padding-top: calc(var(--mbar-h) + 70px); }
  body { font-size: 17px; line-height: 1.65; padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
  #mbar { position: sticky; top: 0; z-index: 30; height: var(--mbar-h); display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
    padding: 0 4px; background: var(--bg2); border-bottom: 1px solid var(--line); }
  #mbar .ib { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; margin: auto; }
  #mbar .brand { text-align: center; font-size: 18px; }
  #mbar .brand span { display: inline; }
  body.t-photo #content { padding-bottom: 120px; }
  #mbar .ttl { text-align: center; font-size: 18px; font-weight: 700; color: var(--head); }
  #mbar .lng { width: 44px; height: 36px; min-width: 44px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); border-radius: 10px; }
  #mbar .tt { min-width: 0; text-align: center; line-height: 1.2; }
  #mbar .tt small { display: block; font-size: 12.5px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mbar .tt b { display: block; font-size: 16.5px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #mbar .rprog { position: absolute; left: 0; bottom: -1px; height: 4px; width: 0; background: var(--cam); border-radius: 0 2px 2px 0; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px env(safe-area-inset-bottom); background: var(--bg2);
    border-top: 1px solid var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--fg2);
    font-size: 13px; font-weight: 600; line-height: 1.2; border-radius: 14px; }
  .tabs a:hover { text-decoration: none; }
  .tabs a.on { color: var(--cam); }
  .tabs a.on svg { background: color-mix(in srgb, var(--cam) 16%, transparent); border-radius: 12px; padding: 2px 10px; width: 46px; height: 28px; }
  .schips { position: sticky; top: var(--mbar-h); z-index: 19; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; background: var(--bg);
    border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .schips::-webkit-scrollbar { display: none; }
  .schips a { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line);
    color: var(--fg); font-size: 15px; font-weight: 600; white-space: nowrap; }
  .schips a:hover { text-decoration: none; }
  .schips a.on { background: var(--head); border-color: var(--head); color: var(--bg); }
  .schips code { background: none; padding: 0; font: inherit; }
  /* the contents as a bottom sheet */
  #side { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: calc(100% - 48px); border-right: 0; border-radius: 22px 22px 0 0;
    transform: translateY(105%); transition: transform .22s ease; z-index: 50; padding: 0 0 calc(28px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0,0,0,.25); font-size: 16.5px; visibility: hidden; }
  body.sideopen { overflow: hidden; }
  body.sideopen #side { transform: none; visibility: visible; }
  body.sideopen #scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 45; }
  #side .sh-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px;
    background: var(--bg2); border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
  #side .sh-h b { font-size: 19px; color: var(--head); }
  #side .side-pick { padding: 10px 16px; }
  #side ul.chap { padding: 4px 8px; }
  #side .row { align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); }
  #side .tg { flex: 0 0 40px; height: 48px; }
  #side .tg::before { font-size: 14px; }
  #side a { padding: 10px 8px 10px 0; }
  #side ul ul { padding: 2px 0 6px 40px; font-size: 15.5px; }
  #side ul ul a { padding: 10px 8px; border-radius: 10px; }
  #side li.here > a { background: var(--bg3); color: var(--head); font-weight: 700; }
  /* the page */
  #content { margin-left: 0; padding: 0 0 24px; }
  #content article { max-width: 680px; margin: 0 auto; padding: 6px 18px 8px; }
  article h1 { font-size: 26px; text-align: center; padding-bottom: 10px; margin-top: 16px; }
  article h2 { font-size: 21px; }
  article h3 { font-size: 18.5px; }
  article img { border-radius: 10px; }
  article .tw { border: 1px solid var(--line); border-radius: 12px; }
  article table { font-size: 15px; }
  details.ctoc { border-radius: 12px; }
  nav.pn.big { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 10px; max-width: 680px; margin: 24px auto 8px; padding: 0 16px; border-top: 0; }
  nav.pn.big > span:empty { display: none; }
  nav.pn.big a { max-width: none; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 16px;
    border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--head); font-weight: 700; font-size: 16.5px; }
  nav.pn.big a.next { background: var(--link); border-color: var(--link); color: var(--pri-fg); text-align: right; margin-left: 0; }
  nav.pn.big small { font-weight: 600; opacity: .85; font-size: 13px; color: inherit; }
  footer { padding: 0 16px; margin: 1em auto 0; text-align: center; max-width: 680px; }
  .spage { padding: 0 16px; }
  .spage h1 { display: none; }
  .sres .sh .kh { display: none; }
  .pwa-upd { bottom: calc(var(--tabs-h) + 12px + env(safe-area-inset-bottom)); }
  .ph-fab { bottom: calc(var(--tabs-h) + 14px + env(safe-area-inset-bottom)); }
  .ph-page { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .tabs a { font-size: 12px; }
  .dgrid, .tgrid { gap: 8px; }
  .dcard b, .tcard b { font-size: 13.5px; }
}

/* light pages and centred figures (2026-11-04; the owner: "jump-ul la o pagină durează și face un fel de scroll", "pozele și totul să
   fie centrat pe ecran"): jumps are instant (no smooth scrolling), every picture has its size in the page (no shift after a jump), a
   paragraph of pictures, a table and the column itself are centred */
html { scroll-behavior: auto; }
article p.fig { text-align: center; }
article p.fig img { display: inline-block; vertical-align: top; margin: 6px auto; }
article .tw { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
#content article, nav.pn, footer { margin-left: auto; margin-right: auto; }
@media (max-width: 899px) {
  html { scroll-padding-top: 0; }
  article [id], #sres { scroll-margin-top: calc(var(--mbar-h) + 66px); }
  body.k-home article [id] { scroll-margin-top: calc(var(--mbar-h) + 72px); }
}
article > img, article li > img:only-child, article blockquote > img { display: block; margin-left: auto; margin-right: auto; }

/* Help (2026-11-04 ~22:30; plan PLAN_PWA_SUPORT_LIVE_AI_INVATARE_2026-11-04): the strip at the end of every page ("Was this page
   helpful?", Report a problem, Chat on WhatsApp), the Help tab (the report form, WhatsApp, System check, Known issues, the usage
   switch) and the one-time consent banner of the anonymous usage counters */
:root { --wa: #128c4a; --wa-fg: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --wa: #3ccf7a; --wa-fg: #052012; } }
.hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--link); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  max-width: 100%; text-align: center; }
.hbtn:hover { text-decoration: none; background: var(--bg3); }
.hbtn.hpri { background: var(--link); border-color: var(--link); color: #fff; }
.hbtn.hwa { background: var(--wa); border-color: var(--wa); color: var(--wa-fg); }
.hbtn.hbig { min-height: 52px; font-size: 16.5px; padding: 0 22px; }
.hbtn svg { flex: none; }
.hstrip { max-width: 680px; margin: 22px auto 6px; padding: 0 16px; display: grid; gap: 12px; }
.hstrip > div { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--bg2); display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 12px; }
.hstrip b { font-size: 15.5px; color: var(--head); flex: 1 1 200px; }
.hfb-b, .hneed-b { display: flex; flex-wrap: wrap; gap: 8px; }
.hfb-more { flex: 1 1 100%; display: grid; gap: 8px; }
.hfb-more label, .hform label { display: grid; gap: 4px; font-size: 14.5px; color: var(--fg2); }
.hform [hidden], .hfb [hidden] { display: none !important; }   /* review 2026-11-04: the hidden fields of the form (about) and of the feedback strip */
.hfb-ok { margin: 0; color: var(--ok); font-weight: 600; }
.hpage { max-width: 680px; margin: 0 auto; padding: 0 16px 24px; }
.hpage h1 { text-align: center; }
.hlead { color: var(--fg2); text-align: center; }
.hpage section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 6px; }
.hjump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.hjump a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg2); color: var(--head); font-weight: 600; font-size: 15px; }
.hjump a:hover { text-decoration: none; background: var(--bg3); }
.hform { display: grid; gap: 12px; margin: 12px 0; }
.hform select, .hform input:not([type=checkbox]), .hform textarea, .hfb-more textarea { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
.hform textarea, .hfb-more textarea { min-height: 88px; resize: vertical; }
.hcons { display: flex !important; gap: 10px; align-items: flex-start; color: var(--fg) !important; }
.hcons input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.hfrom { margin: 0; font-size: 14px; color: var(--fg2); }
.hmsg { margin: 0; font-size: 15px; color: var(--head); font-weight: 600; }
.hmsg:empty { display: none; }
.hnum { font-weight: 700; color: var(--head); white-space: nowrap; }
.hnote { color: var(--fg2); font-size: 14px; }
.sc-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; counter-reset: sc; }
.sc-list li { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg2); }
.sc-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.sc-row input { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.sc-row span { display: grid; gap: 2px; min-width: 0; }
.sc-row small { color: var(--fg2); font-size: 14px; line-height: 1.45; }
.sc-row input:checked + span b { text-decoration: line-through; color: var(--ok); }
.sc-see { margin: 4px 0 0 36px; font-size: 14px; }
.sc-count { font-weight: 700; color: var(--head); margin: 6px 0; }
.sc.sc-all .sc-count { color: var(--ok); }
.ki-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ki { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg2); }
.ki p { margin: 4px 0; font-size: 15px; }
.ki small { color: var(--fg2); font-weight: 700; }
.ki-none { color: var(--fg2); }
.hconsent { position: fixed; left: 8px; right: 8px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 16px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.hconsent p { margin: 0; font-size: 14.5px; }
.hconsent span { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 899px) { .hconsent { bottom: calc(var(--tabs-h) + 10px + env(safe-area-inset-bottom)); } }
@media print { .hstrip, .hconsent, .hjump { display: none !important; } }

/* Ask about the manual (HELP-AI, 2026-11-05): the question box of the Help page and the answer with its sources */
.hask { display: flex; gap: 8px; align-items: stretch; margin: 10px 0 6px; }
.hask textarea { flex: 1; min-height: 52px; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); resize: vertical; }
.hask .hbtn { flex: 0 0 auto; }
.hask-ex { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.hask-ex .hask-x { font-size: 14px; min-height: 36px; padding: 4px 10px; }
.hask-out { border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 14px 8px; margin: 10px 0; }
.hask-a ol, .hask-a ul { padding-left: 22px; }
.hask-a li { margin: 4px 0; }
.hask-src { font-size: 14px; }
.hask-wait { opacity: .75; }
.hask-fb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Known issues: the tabs "Common mistakes" / "Known issues" (2026-11-05); without JavaScript both lists one under the other */
.ki-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.ki-bar [aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ki-js .ki-h { display: none; }
.ki-m { border-left: 5px solid #e8a33d; }
/* the install sheet on an iPhone outside Safari (2026-11-05): the button that copies the address */
.inst-sheet .cpl { margin: -4px 0 12px; }
.inst-sheet .b-copy { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--fg); font-weight: 700; }
/* the screen texts of Help / System check / Known issues (owner 2026-11-05: "textul e prea subtire"): bold, bigger, dark ground,
   green = OK, red = a problem, yellow = to check; the same in light and dark mode */
code.st { font: 700 1.02em/1.35 Consolas, "Cascadia Mono", "Courier New", monospace; background: #0b1220; border: 1px solid #2a3a52;
  padding: 1px 6px; border-radius: 5px; letter-spacing: .02em; }
code.st-ok { color: #39ff7a; }
code.st-bad { color: #ff5c5c; }
code.st-warn { color: #ffd84a; }
.sc-row b { font-size: 17px; }
.sc-row small { color: var(--fg); font-size: 16px; line-height: 1.5; }
.ki b { font-size: 17px; }
.ki p { font-size: 16px; color: var(--fg); }
.ki small { color: var(--head); font-size: 15px; }
/* the files of the system in the problem report (2026-11-05) */
.hfiles { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px 4px; margin: 0; display: grid; gap: 6px; }
.hfiles legend { font-weight: 700; padding: 0 4px; }

/* ---------------------------------------------------------------------------------------------- HELP-UX 2026-11-05 */
/* no thin weights anywhere: every title, label, button and table head has an explicit weight */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: 0; }
th, summary, legend, dt, a.card b, .dcard b, .tcard b, .dhead b, #mbar .tt b { font-weight: 700; }
button, .hbtn, .lnk, label, nav a, .schips a, .devpick button, .hjump a { font-weight: 600; }
.hform label, .hfb-more label, .hcons span { font-weight: 500; }
input, select, textarea { font-weight: 400; }
button { font-family: inherit; }
#side a, .gtoc a, details.ctoc li a { font-weight: 500; }
#side li.cur > .row > a { font-weight: 700; }
small { font-weight: 500; }
@media (max-width: 699px) {
  /* the phone: bigger, solid titles */
  h1, article h1 { font-size: 27px; line-height: 1.25; }
  h2, article h2 { font-size: 22.5px; line-height: 1.3; }
  h3, article h3 { font-size: 19.5px; line-height: 1.3; }
  h4, article h4 { font-size: 17.5px; }
  #sugg .it .t, a.card b { font-weight: 700; }
}

/* the suggested questions, folded (owner: "a clear label... collapsed by default") */
details.hask-sug { margin: 8px 0; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg2); }
details.hask-sug > summary { cursor: pointer; padding: 10px 14px; min-height: 44px; color: var(--head); list-style: none; display: flex;
  align-items: center; gap: 8px; }
details.hask-sug > summary::-webkit-details-marker { display: none; }
details.hask-sug > summary::before { content: "\25B8"; font-size: 18px; line-height: 1; transition: transform .15s; }
details.hask-sug[open] > summary::before { transform: rotate(90deg); }
details.hask-sug .hask-ex { padding: 0 12px 10px; margin: 0; }
/* the recent questions of this device */
.hask-hist { margin: 10px 0; }
.hask-hh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hask-hh b { color: var(--head); font-size: 15.5px; }
.hask-hist ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.hask-hq { width: 100%; text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--link); font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.hask-hq::before { content: "\21BA\00a0\00a0"; color: var(--fg2); }
.hask-hist .hnote { margin: 4px 0; font-size: 13.5px; }
/* typeahead under the question field */
.hask { position: relative; }
.hask-ta { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 40; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: grid; }
.hask-ta[hidden] { display: none; }
.hask-ti { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-weight: 600;
  font-size: 15.5px; padding: 11px 14px; min-height: 46px; cursor: pointer; }
.hask-ti:last-child { border-bottom: 0; }
.hask-ti:hover, .hask-ti.act { background: var(--bg3); }
.hask-ti small { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--fg2);
  border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; margin-right: 4px; }
/* the answer sheet (a modal panel over the page; a bottom sheet on a phone) */
html.hask-lock, html.hask-lock body { overflow: hidden; }
.hask-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.hask-sheet[hidden] { display: none; }
.hask-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hask-panel { position: relative; width: 100%; max-width: 720px; max-height: 92vh; max-height: 92dvh; background: var(--bg); color: var(--fg);
  border-radius: 18px 18px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 760px) { .hask-sheet { align-items: center; } .hask-panel { border-radius: 18px; max-height: 86vh; } }
.hask-top { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.hask-qh { flex: 1; min-width: 0; }
.hask-qh small { display: block; color: var(--fg2); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hask-qh h2 { margin: 2px 0 0; padding: 0; border: 0; font-size: 19px; line-height: 1.3; color: var(--head); overflow-wrap: anywhere; }
.hask-x-btn { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--fg);
  font-size: 18px; font-weight: 700; cursor: pointer; }
.hask-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 18px 12px; flex: 1; }
.hask-foot { border-top: 1px solid var(--line); padding: 8px 14px; display: flex; justify-content: flex-end; }
.hask-foot .hbtn { min-width: 120px; justify-content: center; }
.hask-body .hask-a { font-size: 16.5px; }
.hask-rel { margin: 14px 0 8px; }
.hask-rel > b, .hask-bg-l { display: block; color: var(--head); font-size: 15px; margin-bottom: 6px; }
.hask-rel > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hask-chip { font-size: 14.5px; min-height: 40px; padding: 6px 12px; text-align: left; }
.hask-bgbox { margin: 12px 0; }
.hask-bgoffer { width: 100%; justify-content: flex-start; text-align: left; min-height: 46px; border-style: dashed !important; }
.hask-bg { border: 1.5px solid var(--line); border-left: 5px solid #8a6dd8; border-radius: 12px; padding: 8px 12px; background: var(--bg2); }
.hask-bg .hask-bg-l { text-transform: uppercase; letter-spacing: .4px; font-size: 12.5px; color: var(--fg2); }
.hask-act { display: flex; flex-wrap: wrap; gap: 8px; }
/* "Back to where I was" (site.js FTKNav): above the bottom tabs on a phone, bottom left on a wide screen */
.navback { position: fixed; left: 10px; bottom: 14px; z-index: 55; display: flex; align-items: stretch; max-width: calc(100% - 20px);
  border-radius: 24px; background: var(--head); color: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
@media (max-width: 899px) { .navback { bottom: calc(var(--tabs-h, 64px) + 10px + env(safe-area-inset-bottom)); } }
.navback button { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; min-height: 46px; }
.navback .nb-go { padding: 0 8px 0 16px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.navback .nb-x { padding: 0 14px 0 8px; font-size: 15px; opacity: .8; border-left: 1px solid rgba(127,127,127,.4); }
body.has-navback main { padding-bottom: 72px; }
@media print { .navback, .hask-sheet { display: none !important; } }
