/* LastStop redesign: account area styles (stage 4: People, Access, Company, Modules, Audit log, Sync, Export, Companies,
   Your settings). Uses only the role tokens from tokens.css and the components from components.css; never restyles a
   component, only lays out the account screens' own classes (acct-*) and the older admin markup they still carry. */

/* ---------- the app's account screens' head (public/assets/app.js: Your settings, Sync, Export): the title or the hero with its
   actions; the server pages' list heads are the core .lh since stage 6 ---------- */
.ls-shell .pane-list > .acct-head { position: relative; z-index: auto; display: flex; align-items: center; justify-content: flex-start; gap: 12px 14px; flex-wrap: wrap; padding: 28px 16px 18px; border: 0; box-shadow: none; background: transparent; }
@media (min-width: 1024px) { .ls-shell .pane-list > .acct-head { padding: 48px 6px 22px; } }
.acct-head > .acct-title { flex: 1 1 auto; min-width: 0; }
.acct-word { font-size: var(--fs-5); }
.acct-title { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .14em; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-5); line-height: 1.05; letter-spacing: -.02em; color: var(--heading); min-width: 0; }
.acct-title .hero-figure { margin-right: .06em; font-size: 64px; } /* the same hero size as every list head (.lh, stage 6) */
@media (max-width: 759px) { .acct-title .hero-figure { font-size: 52px; } }
.acct-title .acct-word { font-size: var(--fs-4); font-weight: 600; }
.acct-title .hero-figure .fig { position: relative; z-index: 1; }
.acct-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ls-shell .pane-list > .list-body { padding: 0 8px; }
.acct-rows { margin: 0; }
.acct-rows > li { list-style: none; }
.acct-row .pill { margin-left: auto; }
.acct-row.is-inactive .row-name { color: var(--muted); }
/* paging links show only once every row shows (ls-ui.js trims the list until "Show all"; without JavaScript nothing is trimmed) */
.acct-after { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 8px 0; }
[data-ls-list]:not(.is-all):has(> .is-over) ~ .acct-after { display: none; }
.acct-after .showall { width: auto; padding: 0 20px; margin: 0; }
@media (min-width: 1024px) {
  .ls-shell .pane-list > .list-body { padding: 0; }
}

/* ---------- the detail (the panel on desktop, the sheet on a phone) ---------- */
body.is-admin .ls-shell[data-pane="detail"] .pane-detail .detail-inner { padding: 4px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  body.is-admin .ls-shell[data-pane="detail"] .pane-detail .detail-inner { padding: 4px 28px 40px; }
  body.is-admin[data-section="admin.access"] .ls-shell { --panel-w: 640px; }
}
.acct-dtop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 12px; }
.acct-dhead { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.acct-dtitle { margin: 0; overflow-wrap: anywhere; }
.acct-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.acct-dsub { font-size: 13.5px; color: var(--muted); }
.acct-dacts { flex: none; gap: 10px; }
/* with a primary action the actions take their own line under the title; "..." alone sits beside the title */
.acct-dacts:has(> .is-primary) { flex: 1 1 100%; }
.acct-dacts > .is-primary { flex: 1 1 auto; max-width: 340px; }
.acct-reveal:not(:has(.reveal, .form-notice, .form-error:not([hidden]))) { display: none; }
.acct-reveal { display: flex; flex-direction: column; gap: 10px; }
.reveal-slot:empty { display: none; }
.acct-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* label and value facts */
.acct-facts { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px 16px; margin: 0; padding: 14px 16px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.acct-facts dt { margin: 0; color: var(--muted); font-size: 13px; }
.acct-facts dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.acct-facts dd .chips-inline { display: inline-flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 759px) {
  .acct-facts { grid-template-columns: 1fr; gap: 2px; }
  .acct-facts dd + dt { margin-top: 10px; }
}
.signin-panel { display: flex; flex-direction: column; gap: 12px; }
.access-signin { margin: 4px 0 14px; }
.access-signin a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.signin-panel .form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 759px) { .signin-panel .form-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* sections */
.acct-folds { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct-fold .fold-title { margin: 0; }
.acct-fold .fold-b { padding: 4px 6px 22px; }
.acct-fold.is-open .fold-h .t { color: var(--accent-text); }

/* forms inside the account screens: the older field markup on the theme */
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-form .form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acct-form .segments { background: var(--surface-2); border: 1px solid var(--line); }
.acct-form .segment.is-active { background: var(--surface); color: var(--heading); box-shadow: 0 0 0 1px var(--line-2); }
.acct-form .check-row { color: var(--ink); }
.acct-form .check-row small { display: block; color: var(--muted); font-size: 12.5px; }
.acct-form .scope-list { display: flex; flex-direction: column; padding: 4px 0 0 4px; }
.acct-form .scope-list[hidden] { display: none; }
.acct-form fieldset { border: 0; padding: 0; margin: 0; }
.acct-form legend { padding: 0; margin-bottom: 6px; }

/* the older admin markup still carried inside the account screens */
.is-admin .pane-detail .form-notice { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.btn.is-danger-text, .menu .mi.is-danger-text { color: var(--bad); }
html[data-theme="dark"] .btn.is-danger-text, html[data-theme="dark"] .menu .mi.is-danger-text { color: #ff6b5f; }

/* ---------- Access: one section per module, each page's none / view / edit control inside ---------- */
.access-matrix .access-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.access-matrix .access-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.access-matrix .access-row:first-child { border-top: 0; }
.access-matrix .access-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.access-matrix .access-label { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--heading); }
.access-matrix .access-default { font-size: 12.5px; color: var(--muted); }
.access-matrix .access-default b { color: var(--ink-2); font-weight: 600; }
.access-matrix .access-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.access-matrix .segments { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.access-matrix .segment { border-radius: 999px; min-height: 34px; padding: 0 12px; color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; }
.access-matrix .segment:disabled { cursor: default; opacity: .45; }
.access-matrix .segment.is-active { background: var(--accent-fill); color: var(--accent-ink); opacity: 1; box-shadow: none; }
html[data-theme="dark"] .access-matrix .segment.is-active { box-shadow: 0 0 16px -4px var(--accent-glow); }
.access-matrix .has-override .segment.is-active { background: var(--rev); color: #1a1d14; }
.access-matrix .custom-mark { color: var(--rev); font-family: var(--font-head); }
.access-matrix .reset-cell { color: var(--accent-text); font-family: var(--font-head); font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; }
.access-group.is-off .fold-h .t { color: var(--muted); }

/* ---------- a screen that is one page (Company, Your settings): the head, then the sections ---------- */
body.is-admin .ls-shell[data-pane="page"] .pane-detail .detail-inner, .ls-shell[data-ctx="settings"][data-pane="page"] .pane-detail .detail-inner { display: flex; flex-direction: column; gap: 18px; padding: 24px 16px 32px; max-width: var(--col); }
@media (min-width: 1024px) {
  body.is-admin .ls-shell[data-pane="page"] .pane-detail .detail-inner, .ls-shell[data-ctx="settings"][data-pane="page"] .pane-detail .detail-inner { padding: 20px 6px 40px; margin: 0 auto; }
}
.acct-phead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.acct-phead .acct-title { flex: 0 1 auto; }
.acct-phead .acct-acts { margin-left: auto; }

/* the Company form: Save shows once a field changed (app.js marks the form is-clean until then; without JavaScript it shows) */
.company-form.is-clean [data-save-bar] { display: none; }
.acct-savebar { position: sticky; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: ls-slide-down var(--t) var(--ease); }
@media (max-width: 1023px) { .acct-savebar { bottom: calc(var(--dock-h) + var(--sab) + 12px); } }
.company-form .color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.company-form .color-field { display: flex; flex-direction: column; gap: 6px; }
.company-form .color-inputs { display: flex; align-items: center; gap: 8px; }
.company-form input[type="color"] { width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-2); background: none; cursor: pointer; flex: none; }
.company-form .contrast-line { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-2); font-size: 14px; }
.company-form .contrast-line.is-ok { background: var(--ok-soft); color: var(--ok); }
.company-form .contrast-line.is-bad { background: var(--bad-soft); color: var(--bad); }
.company-form .logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.company-form .logo-text { display: flex; flex-direction: column; gap: 10px; flex: 1 1 200px; }
.company-form .theme-segments { align-self: flex-start; }
.company-form .brand-preview { border-radius: var(--r-3); overflow: hidden; }
.acct-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.acct-fold .flat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-fold .flat-list > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.acct-fold .flat-list > li:first-child { border-top: 0; }
.acct-fold .flat-title { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--heading); }
.acct-fold .flat-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.acct-block { display: flex; flex-direction: column; gap: 10px; }
.acct-h2 { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--heading); }
.acct-block .kv { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.acct-block .kv dt { color: var(--muted); }
.acct-block .kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.acct-facts code, .acct-block code { font-size: 13px; color: var(--ink-2); }
.acct-fold .module-toggle-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.acct-fold .module-toggle-row .flat-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* J70: a company's Locations on Admin > Companies: one row per location, Rename opens its form below the row. */
.acct-fold .loc-row { display: block; }
.acct-fold .loc-row.is-archived, .acct-fold .loc-edit > summary { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.acct-fold .loc-edit > summary { list-style: none; cursor: pointer; }
.acct-fold .loc-edit > summary::-webkit-details-marker { display: none; }
.acct-fold .loc-row .flat-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.acct-fold .loc-row.is-inactive .flat-title { color: var(--muted); }
.acct-fold .loc-edit[open] > summary .btn { visibility: hidden; }
.acct-fold .loc-edit > form { margin-top: 12px; }
.acct-fold .loc-add { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-foot { margin: 24px 16px 0; font-size: 13px; color: var(--muted); }
.acct-foot a { color: var(--accent-text); }

/* ---------- the app's account screens (public/assets/app.js): Your settings, Sync, Export ---------- */
.ls-shell[data-ctx="sync"][data-pane="detail"] .pane-detail .detail-inner, .ls-shell[data-ctx="export"][data-pane="detail"] .pane-detail .detail-inner { padding: 4px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) {
  .ls-shell[data-ctx="sync"][data-pane="detail"] .pane-detail .detail-inner, .ls-shell[data-ctx="export"][data-pane="detail"] .pane-detail .detail-inner { padding: 4px 28px 40px; }
  .ls-shell[data-ctx="sync"], .ls-shell[data-ctx="export"] { --panel-w: 680px; }
}
.ls-shell .pane-list > .acct-head .tabsel { order: 3; }
.ls-shell .pane-list > .acct-head .acct-acts { order: 4; }
.ls-shell .pane-list > .acct-head .tabsel > summary { min-height: 44px; }
.menu .mi .mi-l { flex: 1; min-width: 0; }
/* the older panels inside these details, on the theme */
.ls-shell[data-ctx="sync"] .pane-detail .panel, .ls-shell[data-ctx="export"] .pane-detail .panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: none; }
.ls-shell .pane-detail .acct-facts.kv { display: grid; }

/* Sync's overview */
.sync-stop-block { margin: 0 0 14px; }
.sync-stop-block .btn.is-stop { width: 100%; min-height: 52px; background: var(--bad); border-color: var(--bad); color: #fff; font-size: 16px; }
html[data-theme="dark"] .sync-stop-block .btn.is-stop { background: #d92d20; border-color: #d92d20; box-shadow: 0 0 0 1px rgba(228, 55, 43, .25), 0 10px 30px -8px rgba(228, 55, 43, .55); }
.sync-stopped { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-3); background: var(--bad-soft); color: var(--bad); font-size: 14px; line-height: 1.45; }
.sync-stopped .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.sync-stopped b { color: inherit; }
.sync-stopped .form-actions { margin-top: 8px; }
.sync-runner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 6px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); }
.sync-runner.is-stale { border-color: var(--bad); }
.sync-runner-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sync-runner-t { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--heading); }
.sync-runner-s { font-size: 13px; color: var(--muted); }
.sync-sub { margin: 18px 6px 6px; }
.sync-note { margin: 8px 6px; }
.acct-row.is-static { cursor: default; }
.acct-row.is-static:hover { background: none; }
.sync-mode-block { display: flex; flex-direction: column; gap: 8px; }
.sync-mode-block .segments { display: flex; width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sync-mode-block .segment { flex: 1; border-radius: 999px; min-height: 40px; background: none; border: 0; color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sync-mode-block .segment.is-active { background: var(--accent-fill); color: var(--accent-ink); }
.sync-mode-block .segment:disabled:not(.is-active) { opacity: .45; cursor: default; }
.sync-filter-fold { margin: 0 0 8px; }
.sync-filter-fold .sync-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; background: none; padding: 0; position: static; }
.acct-fold .allow-list, .acct-fold .tab-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Export */
.acct-fold .export-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-fold .export-part { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.acct-fold .export-part:first-child { border-top: 0; }
.acct-fold .export-part .ep-name { font-family: var(--font-head); font-weight: 600; color: var(--heading); overflow-wrap: anywhere; }
.acct-fold .export-part .ep-rows { color: var(--ink-2); }
.acct-fold .export-part .ep-sha { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.acct-fold .export-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.acct-fold .panel-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.acct-fold .panel-note, .acct-fold .panel-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.acct-fold .mode-help, .acct-fold .trip-help { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.acct-fold .trip-help li { display: flex; flex-direction: column; gap: 2px; }
.acct-fold .trip-help b { color: var(--heading); }
.export-progress { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.export-progress .export-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.export-progress .export-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width var(--t) var(--ease); }
html[data-theme="dark"] .export-progress .export-bar-fill { box-shadow: 0 0 12px var(--accent-glow); }
.export-progress.is-done .export-bar-fill { background: var(--ok); }
.export-progress.is-error { border-color: var(--bad); color: var(--bad); }

/* Your settings */
.acct-settings .acct-phead .acct-title { font-size: var(--fs-5); }
@media (max-width: 759px) { .acct-head .acct-acts { margin-left: 0; } }
@media (max-width: 759px) { .acct-phead .acct-acts { margin-left: 0; } }
/* J668: Sync as one health line (accurate status from the live sources and heartbeat), the pill tabs under it */
.sync-top { display: grid; gap: 10px; margin-top: 8px; }
.sync-health { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); color: var(--heading); font-weight: 600; text-decoration: none; }
.sync-health.is-cur { border-color: var(--accent); }
.sync-health-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.sync-health.is-ok .sync-health-dot { background: var(--ok, var(--accent)); }
.sync-health.is-bad .sync-health-dot { background: var(--bad, var(--danger)); }
.sync-health.is-bad .sync-health-t { color: var(--bad, var(--danger)); }
/* J668: Modules as one list, the description on the row, no drawers */
.module-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.module-item { border: 1px solid var(--line); border-radius: var(--r-3); padding: 4px 4px 8px; background: var(--surface-2); }
.module-item .module-row { display: flex; align-items: center; gap: 10px; }
.module-item .module-row .row-name { flex: 1; }
.module-desc { margin: 2px 12px 0; font-size: 13px; color: var(--muted); }
.module-pages { margin: 6px 12px 0; }
.acct-h2row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-tech { margin-top: 12px; }
.audit-tech summary { cursor: pointer; color: var(--accent-text); font-size: 13px; }

/* J669 (item 39): Change password, Account and privacy and the legal pages inside the app shell, with a Back link */
.ls-back-row { margin: 0 0 10px; }
.ls-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 6px; border-radius: var(--r-2, 10px); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.ls-back:hover { background: var(--surface-2); color: var(--ink); }
.ls-back .icon { width: 18px; height: 18px; }
.is-account-page .pane-detail .detail-inner { max-width: 820px; }
.acct-page { display: flex; flex-direction: column; gap: 14px; }
.acct-page.legal, .legal.legal-inshell { max-width: none; margin: 0; padding: 0 0 32px; color: var(--ink); }
.legal.legal-inshell a, .acct-page.legal a:not(.btn) { color: var(--accent-text); }
.legal-inshell .legal-meta, .acct-page .legal-meta { color: var(--muted); }
.legal-tabs { margin: 0 0 14px; }
.is-account-page .sp-card { background: var(--surface); border-color: var(--line); }
.is-account-page .sp-fact dt { color: var(--muted); }
.acct-page .acct-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-3, 14px); background: var(--surface); }
.acct-page .acct-card h2 { margin: 0 0 8px; font-size: 17px; }
.acct-pw-form { max-width: 440px; }
/* J669 (item 39): Delete my account starts folded; opening it shows the same steps and confirmations */
.acct-danger > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 40px; }
.acct-danger > summary::-webkit-details-marker { display: none; }
.acct-danger > summary h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.acct-danger > summary .acct-danger-hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.acct-danger > summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.acct-danger[open] > summary .chev { transform: rotate(180deg); }
.acct-danger[open] > summary h2 { color: var(--bad); }
.acct-danger:not([open]) { background: transparent; }
/* J669 (items 7 and 38): Your settings' own Theme choice */
.acct-theme { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 14px; }
.acct-theme-t { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.acct-theme .theme-segments { align-self: flex-start; }
.acct-theme-note { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- J747: Help (src/pages/help.mjs): Getting started, the how-to list, a topic's steps; the welcome card ---------- */
.help .help-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.help .help-steps li { padding-left: 2px; line-height: 1.5; }
.help .help-topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.help .help-topics li + li { border-top: 1px solid var(--line); }
.help .help-topic { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 2px; color: var(--heading); text-decoration: none; }
.help .help-ic { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--neu-soft); color: var(--ink-2); flex: none; }
.help .help-ic .icon { width: 18px; height: 18px; }
.help .help-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.help .help-tt b { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.help .help-tt span { font-size: 13.5px; color: var(--muted); }
.help .help-topic .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.help-welcome { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h, 0px) + var(--sab, 0px) + 12px); z-index: 40; max-width: 460px; margin: 0 auto; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow); }
.help-welcome h2 { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--heading); }
.help-welcome p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.45; }
.help-welcome .help-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 1024px) { .help-welcome { left: auto; right: 24px; bottom: 24px; margin: 0; } }
.acct-page.help .acct-card { margin: 0; }
.acct-page.help ol.help-steps { list-style: decimal outside; }
.acct-page.help ol.help-steps > li { display: list-item; list-style: inherit; }
.acct-page.help ol.help-steps > li::marker { color: var(--muted); font-weight: 600; }
.acct-page.help a.help-topic, .acct-page.help a.help-topic b { color: var(--heading); }

/* J759 (J746 Phase B): "How to use this" on a section's screen (public/assets/ls/tour.js, src/pages/tours.mjs). The round ?
   beside the title, the once-per-device offer (same card as the J747 welcome), and the walkthrough: a dim layer with a
   spotlight hole over the real control and a step card beside it. */
.tour-q { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 10px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 13px/1 var(--font-body, inherit); cursor: pointer; white-space: nowrap; }
.tour-q:hover { border-color: var(--accent); color: var(--heading); }
.tour-q:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.tour-q-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text, var(--accent)); font-weight: 700; font-size: 13px; }
@media (max-width: 639px) { .tour-q { padding: 3px; } .tour-q-tx { display: none; } }
.tour-offer { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h, 0px) + var(--sab, 0px) + 12px); z-index: 40; max-width: 420px; margin: 0 auto; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow); }
.tour-offer h2 { margin: 0 0 6px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--heading); }
.tour-offer p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 1024px) { .tour-offer { left: auto; right: 24px; bottom: 24px; margin: 0; } }
.tour-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tour-offer .tour-acts { justify-content: flex-start; }
.tour-layer { position: fixed; inset: 0; z-index: 90; }
.tour-shield { position: absolute; inset: 0; }
.tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 12, 20, .58); outline: 2px solid var(--accent); outline-offset: 0; pointer-events: none; transition: top var(--t, .2s) ease, left var(--t, .2s) ease, width var(--t, .2s) ease, height var(--t, .2s) ease; }
.tour-card { position: fixed; padding: 16px 18px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow); }
.tour-card .tour-count { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tour-card .tour-title { margin: 0 0 6px; padding-right: 28px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--heading); }
.tour-card .tour-text { margin: 0 0 12px; color: var(--ink-2); line-height: 1.45; }
.tour-card .tour-more { margin: -4px 0 12px; font-size: 14px; }
.tour-card .tour-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.tour-card .tour-x:hover { background: var(--surface-2); color: var(--heading); }
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }

/* J774: Help in look 2, Briefing (task first), with look 3's step search (src/pages/help.mjs, public/assets/ls/help-search.js) */
.help.h2b-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }
.help .h2b-browse, .help .h2b-results { display: flex; flex-direction: column; gap: 14px; }
.help .h2b-browse[hidden], .help .h2b-results[hidden] { display: none; }
.help .h2b-title { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.help .h2b-sub { margin: -4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.help .h2b-hello { margin: 0; font: 600 19px/1.25 var(--font-head); color: var(--heading); }
.help .h2b-want { font-size: 17px; margin-top: 4px; }
.help .h2b-meta { margin: 0; font-size: 13px; color: var(--muted); }
.help .h2b-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); margin: 0; }
.help .h2b-card h2 { margin: 0 0 8px; font: 600 17px/1.2 var(--font-head); color: var(--heading); }
.help .h2b-card p { margin: 0; line-height: 1.5; color: var(--ink); }
.help .h2b-ask { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 52px; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--input-bg, var(--surface)); margin: 0; }
.help .h2b-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, transparent); }
.help .h2b-ask .icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.help .h2b-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 12px 0; }
.help .h2b-ask input::placeholder { color: var(--muted); }
.help .h2b-group { padding: 4px 18px 6px; }
.help .h2b-group h2 { margin: 0; padding: 10px 0 6px; font: 600 12px/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.help .h2b-tasks { list-style: none; margin: 0; padding: 0; display: block; }
.help .h2b-tasks li + li { border-top: 1px solid var(--line); }
.help .h2b-task { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 0; color: var(--heading); text-decoration: none; font-size: 15.5px; line-height: 1.3; }
.help .h2b-task em { font-style: normal; color: var(--muted); flex: none; }
.help .h2b-task > span:not(.h2b-tag):not(.n), .help .h2b-task .t { flex: 1; min-width: 0; }
.help .h2b-task .t b { display: block; font-weight: 500; }
.help .h2b-task .t small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.help .h2b-task .chev { width: 16px; height: 16px; color: var(--muted); flex: none; }
.help .h2b-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--neu-soft); color: var(--ink-2); font: 600 12px/1 var(--font-head); white-space: nowrap; flex: none; }
.help .h2b-res .n, .help .h2b-step .n { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--neu-soft); color: var(--heading); display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-head); }
.help .h2b-short { background: var(--surface-2); }
.help .h2b-short h2 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.help .h2b-short p { font-size: 16px; line-height: 1.45; }
.help .h2b-sech { margin: 6px 0 8px; font: 600 15px/1.2 var(--font-head); color: var(--heading); }
.help .help-steps.h2b-stepline { list-style: none; padding: 0; gap: 8px; }
.help .h2b-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.help .h2b-step .n { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
.help .h2b-step .t { flex: 1; min-width: 0; padding-top: 7px; }
.help .h2b-step .t b { display: block; font: 500 15.5px/1.4 var(--font-body); color: var(--heading); }
.help .h2b-step:target { border-color: var(--accent); }
.help .h2b-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.help .h2b-acts .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
.help .h2b-acts .help-tour { display: contents; margin: 0; }
.help .h2b-acts .btn .icon { width: 18px; height: 18px; margin-right: 6px; }
.help ol.help-steps.h2b-stepline > li.h2b-step { display: flex; list-style: none; padding: 14px 16px; }
.help .h2b-acts .btn, .help .h2b-acts .btn:hover { text-decoration: none; }
.help .h2b-res em { display: none; }
.help .h2b-acts .help-tour .btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--heading); }
