/* Help Center (2026-11-07). Views/Help/*, Views/Shared/_HelpPublicLayout.cshtml.
   Everything is scoped under .help-app / .help-public / .hs-* so it cannot change other pages.
   Colours follow theme.css tokens, with fallbacks for the public layout. */

.help-app, .help-public {
	--h-primary: var(--app-primary, #2563eb);
	--h-primary-dark: var(--app-primary-dark, #1d4ed8);
	--h-ink: var(--app-ink, #0f172a);
	--h-muted: var(--app-muted, #64748b);
	--h-line: var(--app-line, #e2e8f0);
	--h-soft: var(--app-soft, #f1f5f9);
	--h-card: var(--app-card-bg, #ffffff);
	--h-page: var(--app-page-bg, #f6f8fb);
	--h-success-bg: var(--app-success-bg, #ecfdf5);
	--h-success-ink: var(--app-success-ink, #047857);
	--h-warning-bg: var(--app-warning-bg, #fffbeb);
	--h-warning-ink: var(--app-warning-ink, #b45309);
	--h-info-bg: var(--app-info-bg, #eff6ff);
	--h-info-ink: var(--app-info-ink, #1d4ed8);
	--h-danger-bg: var(--app-danger-bg, #fef2f2);
	--h-danger-ink: var(--app-danger-ink, #b91c1c);
	--h-radius: 14px;
	--h-radius-sm: 9px;
	--h-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
	--h-mk: #f97316;
	font-family: var(--app-font, "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif);
	color: var(--h-ink);
}

/* ------------------------------------------------------------------ public layout */
body.help-public { margin: 0; background: var(--h-page); min-height: 100vh; display: flex; flex-direction: column; }
.help-public-header {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--h-line);
}
.help-public-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--h-ink); }
.help-public-brand img { height: 38px; width: auto; max-width: 120px; object-fit: contain; }
.help-public-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.help-public-brand small { color: var(--h-muted); font-weight: 600; font-size: 12px; }
.help-public-actions { display: flex; gap: 8px; align-items: center; }
.help-public-main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 18px 20px 32px; box-sizing: border-box; }
.help-public-footer { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 16px; color: var(--h-muted); font-size: 13px; border-top: 1px solid var(--h-line); background: #fff; }
.help-public .help-tree-toggle { display: none; }

/* ------------------------------------------------------------------ frame */
.help-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.help-app *, .help-app *::before, .help-app *::after { box-sizing: border-box; }
.help-side { position: sticky; top: var(--help-top, 76px); max-height: calc(var(--help-view-h, 100vh) - var(--help-top, 76px) - 16px); overflow: auto; background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-radius); box-shadow: var(--h-shadow); }
.help-side-inner { padding: 14px 12px 18px; }
.help-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.help-side-home { font-weight: 800; color: var(--h-ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.help-side-home:hover, .help-side-home.is-current { background: var(--h-soft); color: var(--h-primary); }
.help-side-close { display: none; border: 0; background: transparent; font-size: 18px; color: var(--h-muted); cursor: pointer; }
.help-main { min-width: 0; }
.help-btn.help-topics-btn { display: none; margin-bottom: 12px; }
.help-backdrop { display: none; }

/* search */
.help-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--h-line); border-radius: 10px; padding: 0 10px; background: var(--h-soft); margin-bottom: 10px; }
.help-search i { color: var(--h-muted); }
.help-search input { border: 0; background: transparent; outline: none; padding: 9px 0; width: 100%; font: inherit; font-size: 14px; color: var(--h-ink); }
.help-search:focus-within { border-color: var(--h-primary); background: #fff; box-shadow: 0 0 0 3px rgba(14, 165, 168, .15); }

.help-viewas { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--h-warning-bg); color: var(--h-warning-ink); font-size: 13px; font-weight: 700; }
.help-viewas select { flex: 1; min-width: 0; border: 1px solid var(--h-line); border-radius: 8px; padding: 4px 6px; font: inherit; font-weight: 600; background: #fff; color: var(--h-ink); }
.help-tree-empty { color: var(--h-muted); font-size: 13px; padding: 8px; }

/* ------------------------------------------------------------------ tree */
.help-tree { display: flex; flex-direction: column; gap: 2px; }
.ht-toggle { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; text-align: left; font: inherit; font-size: 14px; font-weight: 700; color: var(--h-ink); }
.ht-toggle:hover { background: var(--h-soft); }
.ht-icon { width: 20px; text-align: center; color: var(--h-primary); }
.ht-label { flex: 1; min-width: 0; }
.ht-count { font-size: 11px; font-weight: 700; color: var(--h-muted); background: var(--h-soft); border-radius: 999px; padding: 1px 7px; }
.ht-chevron { font-size: 11px; color: var(--h-muted); transition: transform .15s ease; }
.is-open > .ht-toggle > .ht-chevron { transform: rotate(90deg); }
.ht-children { display: none; padding-left: 14px; margin-left: 10px; border-left: 1px solid var(--h-line); }
.is-open > .ht-children { display: block; }
.ht-toggle-group { font-size: 13px; font-weight: 700; color: var(--h-muted); padding: 6px 8px; }
.ht-leaf { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--h-ink); text-decoration: none; }
.ht-leaf:hover { background: var(--h-soft); color: var(--h-primary); }
.ht-leaf.is-current { background: var(--h-info-bg); color: var(--h-primary-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--h-primary); }
.help-result-list mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
.help-tree [hidden] { display: none !important; }

/* ------------------------------------------------------------------ shared bits */
.help-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.help-btn-primary { background: var(--h-primary); color: #fff; }
.help-btn-primary:hover { background: var(--h-primary-dark); color: #fff; }
.help-btn-ghost { background: #fff; border-color: var(--h-line); color: var(--h-ink); }
.help-btn-ghost:hover { border-color: var(--h-primary); color: var(--h-primary); }
.help-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--h-soft); color: var(--h-ink); font-size: 12.5px; font-weight: 700; }
.help-chip a { color: var(--h-primary); }
.help-chip-green { background: var(--h-success-bg); color: var(--h-success-ink); }
.help-chip-amber { background: var(--h-warning-bg); color: var(--h-warning-ink); }
.help-section-title { font-size: 17px; font-weight: 800; margin: 26px 0 12px; display: flex; gap: 9px; align-items: center; }
.help-section-title i { color: var(--h-primary); }
.help-callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--h-radius-sm); font-size: 14.5px; line-height: 1.55; margin: 12px 0; }
.help-callout > i { margin-top: 3px; }
.help-callout-info { background: var(--h-info-bg); color: var(--h-info-ink); }
.help-callout-success { background: var(--h-success-bg); color: var(--h-success-ink); }
.help-callout-warning { background: var(--h-warning-bg); color: var(--h-warning-ink); }
.help-callout strong { color: inherit; }

/* ------------------------------------------------------------------ home */
.help-hero { background: linear-gradient(135deg, var(--app-navy, #071b2e) 0%, var(--app-navy-2, #0d2b45) 45%, var(--h-primary-dark) 100%); color: #fff; border-radius: 18px; padding: 30px 30px 24px; box-shadow: var(--h-shadow); }
.help-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; opacity: .9; }
.help-hero h1 { font-size: 30px; font-weight: 800; margin: 8px 0 6px; color: #fff; }
.help-hero p { margin: 0 0 18px; max-width: 720px; opacity: .92; font-size: 15px; }
.help-hero-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 0 16px; max-width: 760px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.help-hero-search i { color: var(--h-muted); font-size: 17px; }
.help-hero-search input { border: 0; outline: none; padding: 14px 0; width: 100%; font: inherit; font-size: 16px; color: var(--h-ink); background: transparent; }
.help-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.help-hero-meta .help-chip { background: rgba(255, 255, 255, .16); color: #fff; }
.help-hero-meta .help-chip a { color: #fff; text-decoration: underline; }
.help-hero-meta .help-chip-amber { background: #fef3c7; color: #92400e; }

.help-popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.help-popular-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-radius); text-decoration: none; color: var(--h-ink); transition: border-color .15s, transform .15s; }
.help-popular-card:hover { border-color: var(--h-primary); transform: translateY(-1px); }
.help-popular-card > i { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--h-info-bg); color: var(--h-primary); }
.help-popular-card span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.help-popular-card small { color: var(--h-muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.help-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.help-cat-card { background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-radius); padding: 16px; box-shadow: var(--h-shadow); display: flex; flex-direction: column; }
.help-cat-card header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.help-cat-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 3px; }
.help-cat-card p { margin: 0; color: var(--h-muted); font-size: 13px; line-height: 1.45; }
.help-cat-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--h-info-bg); color: var(--h-primary); font-size: 17px; }
.help-cat-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.help-cat-card li a { display: flex; gap: 8px; align-items: baseline; padding: 5px 4px; border-radius: 7px; color: var(--h-ink); text-decoration: none; font-size: 14px; }
.help-cat-card li a i { color: var(--h-muted); font-size: 11px; }
.help-cat-card li a:hover { background: var(--h-soft); color: var(--h-primary); }
.help-cat-more { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--h-primary); text-decoration: none; }

.help-results { margin-top: 6px; }
.help-result-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.help-result-list a { display: block; padding: 12px 14px; background: var(--h-card); border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); text-decoration: none; color: var(--h-ink); }
.help-result-list a:hover { border-color: var(--h-primary); }
.help-result-list small { display: block; color: var(--h-muted); margin-top: 3px; }
.help-result-list .help-result-cat { font-size: 12px; font-weight: 700; color: var(--h-primary); }

.help-contact { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--h-radius); background: var(--h-card); border: 1px dashed var(--h-line); }
.help-contact h2 { font-size: 17px; margin: 0 0 4px; font-weight: 800; display: flex; gap: 9px; align-items: center; }
.help-contact p { margin: 0; color: var(--h-muted); }
.help-contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.help-admin { margin-top: 18px; padding: 16px 18px; border-radius: var(--h-radius); background: var(--h-warning-bg); color: #713f12; font-size: 14px; }
.help-admin h2 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.help-admin code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }
.help-admin-issues { margin-top: 10px; }
.help-admin-issues ul { max-height: 260px; overflow: auto; font-size: 12.5px; }
.help-ok { color: var(--h-success-ink); font-weight: 700; margin: 8px 0 0; }

/* ------------------------------------------------------------------ article */
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--h-muted); margin-bottom: 10px; }
.help-crumbs a { color: var(--h-primary); text-decoration: none; font-weight: 700; }
.help-crumbs i { font-size: 10px; }
.help-article { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 18px; padding: 26px 30px 22px; box-shadow: var(--h-shadow); }
.help-article-head { display: flex; gap: 16px; align-items: flex-start; }
.help-article-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--h-info-bg); color: var(--h-primary); font-size: 22px; }
.help-article-head h1 { font-size: 27px; font-weight: 800; margin: 2px 0 6px; line-height: 1.2; }
.help-lead { font-size: 16px; color: #334155; margin: 0; line-height: 1.6; }
.help-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 0; }
.help-meta-label { font-size: 13px; font-weight: 700; color: var(--h-muted); margin-right: 4px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }
.help-menupath { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--h-muted); margin-right: auto; padding: 6px 10px; background: var(--h-soft); border-radius: 10px; }
.help-menupath strong { color: var(--h-ink); }
.help-menupath-sep { font-size: 10px; }
/* Section bar, pinned at the top of the guide while reading. Sticky offsets come from variables help.js measures:
   --help-pin (the line the bar pins to: under the public header, or the top edge of the main layout's scroll box),
   --help-top (where the topic tree starts) and --help-toc-h (the bar's own height), so one CSS fits both layouts. */
.help-toc-sentinel { height: 1px; margin-top: 13px; }
.help-toc {
	position: sticky; top: var(--help-pin, 64px); z-index: 25;
	display: flex; align-items: center; gap: 12px; margin: 0 -30px 4px; padding: 10px 30px 12px;
	background: var(--h-card); border-bottom: 1px solid transparent; transition: box-shadow .15s, border-color .15s;
}
.help-toc.is-stuck { border-bottom-color: var(--h-line); box-shadow: 0 8px 16px -10px rgba(15, 23, 42, .18); border-radius: 0; }
.help-toc-title { display: none; font-weight: 800; font-size: 14px; color: var(--h-ink); flex: 0 1 auto; max-width: 24%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-toc.is-stuck .help-toc-title { display: block; }
.help-in-box .help-toc.is-stuck .help-toc-title { display: none; } /* main layout: the page header already shows the title */
.help-toc-links { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
/* pinned: one row; chips scroll sideways when they do not fit (help.js keeps the current one in view) */
.help-toc.is-stuck .help-toc-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.help-toc.is-stuck .help-toc-links::-webkit-scrollbar { display: none; }
.help-toc a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--h-primary); text-decoration: none; padding: 5px 11px; border-radius: 999px; background: var(--h-info-bg); border: 1px solid transparent; transition: background .15s, color .15s; white-space: nowrap; }
.help-toc a i { font-size: 11.5px; opacity: .85; }
.help-toc a:hover { border-color: var(--h-primary); }
.help-toc a.is-active { background: var(--h-primary); color: #fff; }
.help-toc a.is-active i { opacity: 1; }
.help-toc-count { font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .75); color: var(--h-primary); }
.help-toc a.is-active .help-toc-count { background: rgba(255, 255, 255, .25); color: #fff; }
.help-toc-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; overflow: hidden; }
.help-toc-progress > span { display: block; height: 100%; width: 0; background: var(--h-primary); transition: width .1s linear; }
.help-section { margin-top: 22px; scroll-margin-top: calc(var(--help-pin, 64px) + var(--help-toc-h, 56px) + 14px); }
.help-h2 { font-size: 19px; font-weight: 800; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.help-h2 i { color: var(--h-primary); font-size: 17px; }
.help-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.help-checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); font-size: 14.5px; line-height: 1.5; }
.help-checklist i { color: var(--h-success-ink); margin-top: 3px; }

/* steps + drawing side by side */
.help-steps-layout.has-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.help-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: none; }
.help-step { display: flex; gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.help-step:hover, .help-step.is-hot { background: var(--h-soft); border-color: var(--h-line); }
.help-step-num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--h-primary); color: #fff; font-weight: 800; font-size: 14px; }
.help-step-body { min-width: 0; }
.help-step h3 { font-size: 16px; font-weight: 800; margin: 4px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #334155; }
.help-substeps { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #475569; }
.help-substeps li { margin: 3px 0; }
/* The drawing stays beside the steps and scrolls on its own: help.js keeps the marker of the step being read in view.
   The column must be as tall as the steps (stretch), otherwise the sticky box has no room to stay put. */
.help-steps-layout.has-visual > .help-visual { align-self: stretch; }
.help-visual-sticky { position: sticky; top: calc(var(--help-pin, 64px) + var(--help-toc-h, 56px) + 14px); max-height: calc(var(--help-view-h, 100vh) - var(--help-pin, 64px) - var(--help-toc-h, 56px) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 10px 10px 4px 2px; margin: -10px -10px 0 -2px; }
.help-visual-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; position: sticky; top: -10px; z-index: 5; background: var(--h-card); padding: 6px 0; }
.help-step.is-reading { border-color: var(--h-line); background: var(--h-soft); box-shadow: inset 3px 0 0 var(--h-primary); }
.hs-mk.is-reading { background: #dc2626; transform: scale(1.25); transition: transform .15s; }
.help-visual-tab { border: 1px solid var(--h-line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--h-muted); cursor: pointer; }
.help-visual-tab.is-active { background: var(--h-ink); color: #fff; border-color: var(--h-ink); }
.help-visual-pane { display: none; }
.help-visual-pane.is-active { display: block; }
.help-visual-note { font-size: 12.5px; color: var(--h-muted); margin: 8px 2px 0; display: flex; gap: 6px; align-items: baseline; }
.help-shot { margin: 0; }
.help-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--h-line); box-shadow: var(--h-shadow); }
.help-shot figcaption { font-size: 12.5px; color: var(--h-muted); margin-top: 6px; }

.help-table-wrap { overflow-x: auto; border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); }
.help-fields { width: 100%; border-collapse: collapse; font-size: 14px; }
.help-fields th, .help-fields td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--h-line); line-height: 1.5; }
.help-fields thead th { background: var(--h-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--h-muted); }
.help-fields tbody th { width: 30%; font-weight: 800; }
.help-fields tr:last-child th, .help-fields tr:last-child td { border-bottom: 0; }
.help-tips { margin-top: 14px; padding: 14px 18px; border-radius: var(--h-radius-sm); background: #faf5ff; }
.help-tips .help-h2 i { color: #7c3aed; }
.help-tips ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.help-faq { display: flex; flex-direction: column; gap: 8px; }
.help-faq details { border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); background: #fff; }
.help-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; gap: 10px; align-items: center; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::before { content: "\f059"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--h-warning-ink); }
.help-faq details[open] summary { border-bottom: 1px solid var(--h-line); }
.help-faq details > div { padding: 12px 14px; font-size: 14.5px; line-height: 1.6; color: #334155; }
.help-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.help-related a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); text-decoration: none; color: var(--h-ink); }
.help-related a:hover { border-color: var(--h-primary); }
.help-related small { color: var(--h-muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.help-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--h-line); }
.help-pager a { display: flex; flex-direction: column; gap: 3px; max-width: 48%; padding: 10px 14px; border: 1px solid var(--h-line); border-radius: var(--h-radius-sm); text-decoration: none; color: var(--h-ink); }
.help-pager a:hover { border-color: var(--h-primary); }
.help-pager small { color: var(--h-muted); font-weight: 700; }
.help-pager-next { margin-left: auto; text-align: right; }

/* ------------------------------------------------------------------ page sketch (hs-*) */
.hs-screen { margin: 0; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; background: #f8fafc; box-shadow: var(--h-shadow); font-size: 12.5px; color: #1e293b; }
.hs-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #e2e8f0; border-bottom: 1px solid #cbd5e1; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.hs-dot:nth-child(1) { background: #f87171; } .hs-dot:nth-child(2) { background: #fbbf24; } .hs-dot:nth-child(3) { background: #34d399; }
.hs-chrome-title { margin-left: 8px; font-weight: 800; font-size: 12.5px; color: #334155; }
.hs-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hs-caption { padding: 8px 12px; font-size: 12px; color: var(--h-muted); background: #fff; border-top: 1px solid #e2e8f0; }
.hs-block { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; padding: 10px; }
.hs-b-tabs, .hs-b-note, .hs-b-split, .hs-b-modal { background: transparent; border: 0; padding: 0; }
.hs-block-title { font-weight: 800; font-size: 12px; margin-bottom: 8px; color: #334155; }
.hs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.hs-form { display: grid; gap: 8px 10px; }
.hs-cols-1 { grid-template-columns: 1fr; } .hs-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hs-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-form-buttons { margin-top: 10px; }
.hs-ctl { position: relative; display: inline-flex; flex-direction: column; gap: 3px; min-width: 110px; flex: 1 1 120px; }
.hs-form .hs-ctl { min-width: 0; }
.hs-ctl-label { font-size: 11px; font-weight: 700; color: #475569; }
.hs-input { display: flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 7px; padding: 6px 8px; background: #fff; min-height: 30px; color: #94a3b8; }
.hs-textarea { min-height: 52px; align-items: flex-start; }
.hs-input-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-input-glyph, .hs-input-icon { font-size: 11px; color: #64748b; }
.hs-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; font-weight: 700; font-size: 12px; border: 1px solid #cbd5e1; background: #fff; color: #334155; white-space: nowrap; }
.hs-btn-primary { background: var(--h-primary); border-color: var(--h-primary); color: #fff; }
.hs-btn-success { background: #16a34a; border-color: #16a34a; color: #fff; }
.hs-btn-danger { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.hs-btn-link { border-color: transparent; background: transparent; color: var(--h-primary); text-decoration: underline; padding-left: 2px; padding-right: 2px; }
.hs-btn-icon { padding: 6px 8px; }
.hs-btn-sm { padding: 3px 7px; font-size: 11px; }
.hs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hs-check { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #334155; padding: 6px 0; }
.hs-check-box { width: 14px; height: 14px; border: 1.5px solid #94a3b8; border-radius: 3px; background: #fff; }
.hs-check-radio .hs-check-box { border-radius: 50%; }
.hs-check-toggle .hs-check-box { width: 26px; height: 15px; border-radius: 999px; background: #cbd5e1; border: 0; position: relative; }
.hs-check-toggle .hs-check-box::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.hs-table-wrap { overflow-x: auto; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.hs-table th { text-align: left; background: #f1f5f9; padding: 6px 8px; font-weight: 800; color: #334155; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.hs-table td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; }
.hs-bar { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; min-width: 24px; }
.hs-actions { white-space: nowrap; }
.hs-actions .hs-btn { margin-right: 4px; }
.hs-map { position: relative; height: 210px; border-radius: 7px; overflow: hidden; background-color: #e8f0e4; background-image: linear-gradient(rgba(255, 255, 255, .7) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .7) 2px, transparent 2px), linear-gradient(35deg, transparent 46%, #fde68a 46%, #fde68a 50%, transparent 50%); background-size: 46px 46px, 46px 46px, 100% 100%; }
.hs-pin { position: absolute; font-size: 20px; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.hs-tone-green { color: #16a34a; } .hs-tone-amber { color: #f59e0b; } .hs-tone-red { color: #dc2626; } .hs-tone-blue { color: #2563eb; } .hs-tone-grey { color: #64748b; }
.hs-map-zoom { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.hs-map-zoom i { padding: 5px 7px; font-size: 10px; color: #334155; }
.hs-map-label { position: absolute; bottom: 8px; right: 8px; background: rgba(255, 255, 255, .92); border-radius: 6px; padding: 3px 8px; font-weight: 700; font-size: 11px; color: #334155; }
.hs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hs-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #f8fafc; border-left: 4px solid currentColor; }
.hs-card-value { font-size: 16px; font-weight: 800; color: #0f172a; min-height: 18px; }
.hs-card-label { font-size: 11px; font-weight: 700; color: #475569; }
.hs-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #e2e8f0; }
.hs-tab { position: relative; padding: 6px 12px; font-weight: 700; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.hs-tab.is-active { color: var(--h-primary); border-bottom-color: var(--h-primary); }
.hs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hs-list li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; background: #f8fafc; font-weight: 600; }
.hs-list-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.hs-chart { min-height: 110px; }
.hs-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 0 6px; }
.hs-bars span { flex: 1; background: #93c5fd; border-radius: 4px 4px 0 0; }
.hs-line { width: 100%; height: 90px; }
.hs-line polyline { fill: none; stroke: #3b82f6; stroke-width: 2.5; }
.hs-pie { width: 90px; height: 90px; border-radius: 50%; margin: 6px auto; background: conic-gradient(#3b82f6 0 45%, #22c55e 45% 72%, #f59e0b 72% 88%, #ef4444 88% 100%); }
.hs-note { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.hs-note-info { background: #eff6ff; color: #1d4ed8; } .hs-note-success { background: #ecfdf5; color: #047857; } .hs-note-warning { background: #fffbeb; color: #b45309; } .hs-note-danger { background: #fef2f2; color: #b91c1c; }
.hs-modal-backdrop { background: rgba(15, 23, 42, .45); border-radius: 9px; padding: 16px; }
.hs-modal { background: #f8fafc; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); overflow: hidden; max-width: 520px; margin: 0 auto; }
.hs-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid #e2e8f0; font-weight: 800; }
.hs-modal-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.hs-split { display: grid; gap: 10px; }
.hs-r11 { grid-template-columns: 1fr 1fr; } .hs-r12 { grid-template-columns: 1fr 2fr; } .hs-r21 { grid-template-columns: 2fr 1fr; } .hs-r13 { grid-template-columns: 1fr 3fr; } .hs-r31 { grid-template-columns: 3fr 1fr; }
.hs-split-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hs-text { color: #475569; }

/* numbered markers (sketch + steps) */
.hs-mk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--h-mk); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, .25); z-index: 2; line-height: 1; font-family: inherit; }
.hs-mk-block { position: absolute; top: -9px; right: -9px; }
.hs-mk-item { position: absolute; top: -9px; right: -9px; }
.hs-mk-inline { margin-left: 6px; position: relative; }
.hs-mk-ref { box-shadow: none; }
.hs-mk.is-hot { background: #dc2626; transform: scale(1.35); transition: transform .15s; }
.hs-mk.is-hot { animation: hs-pulse 1s ease-in-out infinite; }
@keyframes hs-pulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(220, 38, 38, .35); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 9px rgba(220, 38, 38, 0); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1200px) {
	.help-steps-layout.has-visual { grid-template-columns: 1fr; }
	.help-visual { order: -1; }
	.help-visual-sticky { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; }
	.help-visual-tabs { position: static; }
}
@media (max-width: 991px) {
	.help-app { grid-template-columns: 1fr; }
	.help-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; z-index: 1060; border-radius: 0 14px 14px 0; transform: translateX(-105%); transition: transform .2s ease; }
	.help-app.tree-open .help-side { transform: none; }
	.help-side-close { display: inline-block; }
	.help-btn.help-topics-btn { display: inline-flex; }
	.help-public .help-tree-toggle { display: inline-flex; }
	.help-public .help-btn.help-topics-btn { display: none; } /* the public header already has a Topics button */
	.help-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 1050; }
	body.help-tree-open .help-backdrop { display: block; }
	.help-article { padding: 20px 18px; }
	.help-toc { margin: 0 -18px 4px; padding: 8px 18px 10px; }
	.help-toc-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.help-toc-links::-webkit-scrollbar { display: none; }
	.help-toc.is-stuck .help-toc-title { display: none; }
	.help-hero { padding: 22px 18px 18px; }
	.help-hero h1 { font-size: 24px; }
}
@media (max-width: 600px) {
	.help-public-header { padding: 8px 12px; }
	.help-public-main { padding: 12px 12px 24px; }
	.help-article-head { flex-direction: column; gap: 10px; }
	.help-article-head h1 { font-size: 22px; }
	.hs-cols-2, .hs-cols-3, .hs-split { grid-template-columns: 1fr; }
	.help-pager { flex-direction: column; }
	.help-pager a { max-width: none; }
	.help-fields tbody th { width: 40%; }
}

/* ------------------------------------------------------------------ print: the article only */
@media print {
	/* Inside the main layout the page scrolls in .main-content (full-height flex box with overflow), so print would
	   only get the part on screen: let every wrapper grow to its content (same fix as reportAnalysis.css). This file
	   loads only on Help pages, so these rules touch nothing else. */
	html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
	#app-wrapper.layout-wrapper, .layout-wrapper, .main-wrapper {
		display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important;
		width: 100% !important; margin: 0 !important;
	}
	main.main-content { margin: 0 !important; padding: 0 !important; height: auto !important; overflow: visible !important; }
	.help-app, .help-main, .help-article { height: auto !important; max-height: none !important; overflow: visible !important; }
	.help-visual-sticky { position: static !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; }
	.hs-mk.is-reading, .help-step.is-reading { transform: none; box-shadow: none; }
	.help-side, .help-topics-btn, .help-actions .help-btn, .help-toc, .help-pager, .help-backdrop, .help-public-header, .help-public-footer,
	.sidebar, .top-header, .help-visual-tabs { display: none !important; }
	.help-app { display: block; }
	.help-article { border: 0; box-shadow: none; padding: 0; }
	.help-steps-layout.has-visual { display: block; }
	.help-visual-pane { display: block !important; margin: 10px 0; break-inside: avoid; }
	.help-faq details > div { display: block; }
	.help-step { break-inside: avoid; }
}
