/* Help in the right panel (assets/help-panel.js), in the shell Coach uses (side-panel.css, coach-panel.css): the same
   head, composer and turns; flat, space and one hairline between parts. Colours are the --ui-* roles. */
.hp-free { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.hp-free :is(svg, i) { width: 14px; height: 14px; flex: none; color: var(--ui-gain); }
/* Under the Coach / Help switch: the same 8 px as Coach's "Looking at" (.cp-looking), was 4 and stuck to the pills (Igor 30 Nov, 8291 walk). */
.cp-shell .tsb-side-panel-head .hp-free { margin-top: 8px; }
.hp { padding: 20px 20px 24px; color: var(--ui-ink); font: 400 var(--ui-type-body) var(--ui-font); }
.hp :where(h3, p, ol, ul) { margin: 0; }
.hp-intro[hidden] { display: none; }
.hp-h { font: 600 var(--ui-type-lead) var(--ui-font); }
.hp-moved { margin-top: 12px; padding: 0; list-style: none; }
.hp-moved li { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1.2fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ui-line); }
.hp-moved li:first-child { border-top: 0; }
.hp-moved :is(svg, i) { width: 14px; height: 14px; color: var(--ui-ink-3); }
.hp-old { color: var(--ui-ink-2); text-decoration: line-through; text-decoration-color: var(--ui-ink-3); }
.hp-new { font-weight: 500; }
.hp-more { margin-top: 12px; }
.hp .ui-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ui-accent-text); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.hp .ui-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp .ui-link :is(svg, i) { width: 14px; height: 14px; }
.hp-turns:not(:empty) { margin-top: 0; }
.hp-intro:not([hidden]) + .hp-turns:not(:empty) { margin-top: 24px; }
.hp-turn:first-child { padding-top: 0; border-top: 0; }
.hp-passed { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px !important; padding: 8px 12px; border-radius: var(--ui-radius-control, 6px); background: var(--ui-accent-soft); font: 400 var(--ui-type-caption) var(--ui-font); }
.hp-passed :is(svg, i) { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ui-accent-text); }
.hp-headline { margin-top: 12px !important; font: 600 var(--ui-type-title-s) var(--ui-font); letter-spacing: -.01em; text-wrap: pretty; }
.hp-body { margin-top: 8px !important; text-wrap: pretty; }
.hp-steps { margin-top: 12px !important; padding-left: 20px; list-style: decimal; }
.hp-steps li { display: list-item; margin: 4px 0; padding-left: 2px; }
.hp-steps li::marker { color: var(--ui-ink-2); font-variant-numeric: tabular-nums; }
/* The composer's label is for screen readers (Coach's own rule lives in coach-v3.css, loaded only when Coach opens). */
.hp-foot .cv-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px !important; }
.hp-go .app-action-btn { text-decoration: none; }
.hp-mark { display: flex; align-items: center; gap: 6px; margin-top: 16px !important; padding-top: 12px; border-top: 1px solid var(--ui-line); color: var(--ui-ink-2); font: 400 var(--ui-type-caption) var(--ui-font); }
.hp-mark :is(svg, i) { width: 14px; height: 14px; flex: none; }
.hp-thinking { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; color: var(--ui-ink-2); }
.hp-thinking :is(svg, i) { width: 16px; height: 16px; animation: hp-spin 1s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hp-thinking :is(svg, i) { animation: none; } }
.hp-ways { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding-left: 2px; color: var(--ui-ink-3); font: 400 var(--ui-type-caption) var(--ui-font); white-space: nowrap; }
.hp-ways .ui-link { color: var(--ui-ink-2); font-weight: 400; }
.hp-foot .cp-composer[hidden] { display: none; }
/* Coach's turn that Help answered (assets/coach-v3.js): one quiet line and the way to the answer. */
.cv-answer.cv-help-handover { display: grid; gap: 12px; }
.cv-help-handover .cv-read :is(svg, i) { width: 16px; height: 16px; }
@media (max-width: 767px) { .hp { padding: 16px 16px 20px; } }

/* Coach | Help in the panel's head (variant A, Igor 23 Nov «А»): in the title's place; the tab in view is the raised one.
   Igor 24 Nov on the walk («переключалку можно поднять немного и сделать выше их внутри… и выравняется как раз»): 32 px
   tall like the close button and raised onto its line, so both share one centre. */
.cp-shell.has-panel-switch .tsb-side-panel-head h2 { margin-top: -4px; }
.cp-shell .tsb-side-panel-head h2 .hp-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 9px; background: var(--ui-hover); }
.cp-shell .tsb-side-panel-head h2 .hp-switch-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ui-ink-2); font: 500 var(--ui-type-body-size)/28px var(--ui-font); white-space: nowrap; cursor: pointer; }
.cp-shell .tsb-side-panel-head h2 .hp-switch-tab[aria-selected="true"] { background: var(--ui-page); color: var(--ui-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 0 0 1px var(--ui-line); cursor: default; }
.cp-shell .tsb-side-panel-head h2 .hp-switch-tab:not([aria-selected="true"]):hover { color: var(--ui-ink); }
.cp-shell .tsb-side-panel-head h2 .hp-switch-tab:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 1px; }
.cp-shell .tsb-side-panel-head h2 .hp-switch-tab :is(svg, i, .cv-glyph) { width: 16px; height: 16px; flex: none; }

/* The one-time hint for accounts from before the relaunch until they open Help: on the shell's floating stack at the
   bottom right (assets/help-panel.js places it above the voice corner or the folded Get started pill). */
/* Only its two buttons take a click. */
.hp-hint { pointer-events: none; }
.hp-hint :is(.hp-hint-go, .hp-hint-x) { pointer-events: auto; }
.hp-hint { position: fixed; z-index: 1200; display: flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; border-radius: 8px; background: var(--ui-ink, #1d1d22); color: var(--ui-page, #fff); box-shadow: var(--ui-shadow-pop); font: 400 var(--ui-type-caption) var(--ui-font); white-space: nowrap; }
.hp-hint[hidden] { display: none; }
/* The page keeps room for it under its last line, as for the rest of the stack (app-shell.css, say-anywhere.css): the
   hint is 32 px, 8 px over the pill or the corner. */
body.workspace-shell-native:has(> .hp-hint:not([hidden])) { padding-bottom: calc(var(--shell-bottom-reserve, 0px) + 52px); }
@media (max-width: 767px) { body.workspace-shell-native:has(> .hp-hint:not([hidden])) { padding-bottom: calc(var(--shell-bottom-reserve, 0px) + 124px); } }
.hp-hint-go { padding: 4px 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hp-hint-go b { font-weight: 600; }
.hp-hint-x { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; opacity: .72; cursor: pointer; }
.hp-hint-x:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.hp-hint-x :is(svg, i) { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) { .hp-hint { animation: hp-hint-in var(--ui-motion-base, 200ms) var(--ui-ease-out, ease-out); } }
@keyframes hp-hint-in { from { opacity: 0; transform: translateY(4px); } }
