/* HEMS application styles — mobile first, on top of Bootstrap 5.3 */
:root {
  --hems-primary: #0d6efd;
  --hems-secondary: #20c997;
  --sidebar-w: 256px;
  --topbar-h: 60px;
  --bottom-nav-h: 64px;
  --surface: #ffffff;
  --page-bg: #f4f6f9;
  --border: #e3e7ee;
  --muted: #6c757d;
  --radius: 10px;
}
* { -webkit-tap-highlight-color: transparent; }
body.app { background: var(--page-bg); min-height: 100vh; font-size: 15px; }
a { color: var(--hems-primary); }
.btn-primary, .bg-primary { background-color: var(--hems-primary) !important; border-color: var(--hems-primary) !important; }
.btn-outline-primary { color: var(--hems-primary); border-color: var(--hems-primary); }
.btn-outline-primary:hover { background: var(--hems-primary); color: #fff; }
.text-primary { color: var(--hems-primary) !important; }

/* ---------- Sidebar ---------- */
.app-sidebar { width: var(--sidebar-w); background: #1f2937; color: #cbd5e1; display: flex; flex-direction: column; }
.sidebar-light .app-sidebar { background: #fff; color: #334155; border-right: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand a { color: inherit; }
.brand-logo { max-height: 36px; max-width: 44px; object-fit: contain; border-radius: 6px; background: #fff; }
.brand-mark { display: inline-flex; width: 36px; height: 36px; border-radius: 9px; background: var(--hems-primary); color: #fff; align-items: center; justify-content: center; font-weight: 700; }
.brand-mark-lg { width: 64px; height: 64px; font-size: 28px; border-radius: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-app { font-weight: 600; color: #fff; font-size: 15px; }
.sidebar-light .brand-app { color: #111827; }
.brand-org { font-size: 11.5px; opacity: .7; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { overflow-y: auto; padding: 8px 8px 24px; flex: 1; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; padding: 14px 10px 4px; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: 10px; color: inherit; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.sidebar-nav .nav-link i { font-size: 17px; width: 20px; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-light .sidebar-nav .nav-link:hover { background: #f1f5f9; color: #111827; }
.sidebar-nav .nav-link.active { background: var(--hems-primary); color: #fff; }

@media (min-width: 992px) {
  .app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
  .app-main { margin-left: var(--sidebar-w); }
}

/* ---------- Top bar ---------- */
.app-main { min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1020; height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.btn-icon { border: 0; background: transparent; font-size: 20px; padding: 6px 9px; line-height: 1; color: #334155; border-radius: 8px; }
.btn-icon:hover { background: #f1f5f9; }
.topbar-search { flex: 1; position: relative; display: flex; align-items: center; max-width: 640px; }
.topbar-search > .bi-search { position: absolute; left: 12px; color: var(--muted); }
.topbar-search input { padding-left: 36px; border-radius: 20px; background: #f4f6f9; border-color: transparent; }
.topbar-search input:focus { background: #fff; }
.search-suggest { position: absolute; top: 44px; left: 0; right: 0; z-index: 1050; max-height: 70vh; overflow: auto; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.topbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.notif-count { position: absolute; top: 2px; right: 2px; font-size: 10px; }
.user-btn::after { display: none; }

.app-content { padding: 16px; flex: 1; padding-bottom: calc(var(--bottom-nav-h) + 24px); }
@media (min-width: 992px) { .app-content { padding: 24px; padding-bottom: 24px; } }
.app-footer { display: flex; justify-content: space-between; padding: 12px 16px calc(var(--bottom-nav-h) + 12px); font-size: 12px; color: var(--muted); }
@media (min-width: 992px) { .app-footer { padding-bottom: 12px; } }

/* ---------- Bottom navigation (phones) ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); display: flex; z-index: 1030; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #64748b; text-decoration: none; gap: 2px; }
.bottom-nav a i { font-size: 21px; }
.bottom-nav a.active { color: var(--hems-primary); }
.bottom-nav a.bn-primary i { background: var(--hems-primary); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: -18px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* ---------- Page header & cards ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.page-header h1 { font-size: 1.35rem; margin: 0; font-weight: 600; }
.page-header .breadcrumb { margin: 2px 0 0; font-size: 12.5px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; }
.card-header { background: transparent; font-weight: 600; border-bottom: 1px solid var(--border); }
.stat-card { padding: 14px 16px; display: flex; gap: 12px; align-items: center; height: 100%; text-decoration: none; color: inherit; }
.stat-card .stat-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: color-mix(in srgb, var(--hems-primary) 12%, white); color: var(--hems-primary); }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); }
.stat-warn .stat-icon { background: #fff4e5; color: #d97706; }
.stat-danger .stat-icon { background: #fdecec; color: #dc2626; }
.stat-ok .stat-icon { background: #e7f7ef; color: #059669; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: #1f2937; font-size: 13px; text-align: center; }
.quick-actions a i { font-size: 24px; color: var(--hems-primary); }
.quick-actions a:hover { border-color: var(--hems-primary); }

/* ---------- Badges ---------- */
.badge { font-weight: 500; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-dark { background: #e5e7eb; color: #111827; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ---------- Tables: stacked cards on phones ---------- */
.table { margin-bottom: 0; font-size: 14px; }
.table th { font-weight: 600; color: #475569; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border-bottom: 1px solid var(--border); padding: 10px 12px; }
  .table-cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex-shrink: 0; }
  .table-cards td[data-label=""]::before { content: none; }
  .table-cards td.td-main { font-weight: 600; text-align: left; justify-content: flex-start; font-size: 15px; }
  .table-cards td.td-main::before { content: none; }
  .table-cards td.td-actions { justify-content: flex-end; padding-top: 8px; }
  .table-cards td.td-actions::before { content: none; }
}
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.filters .form-control, .filters .form-select { font-size: 14px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state i { font-size: 40px; display: block; margin-bottom: 8px; opacity: .5; }

/* ---------- Forms ---------- */
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
@media (max-width: 767.98px) {
  .form-actions { position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: var(--page-bg); padding: 10px 0; z-index: 5; }
  .form-actions .btn { flex: 1; padding: 10px; }
  .form-control, .form-select { font-size: 16px; } /* prevents iOS zoom */
}
.line-items .line-row { border: 1px dashed var(--border); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fbfcfe; }
dl.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.detail-list dt { color: var(--muted); font-weight: 500; font-size: 13px; }
dl.detail-list dd { margin: 0; }
@media (max-width: 575.98px) { dl.detail-list { grid-template-columns: 1fr; gap: 0; } dl.detail-list dd { margin-bottom: 8px; } }

/* ---------- Timeline (asset history) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 14px 26px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--hems-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.timeline .tl-meta { font-size: 12px; color: var(--muted); }

/* ---------- Search results / equipment card ---------- */
.locator { border-left: 4px solid var(--hems-primary); }
.locator .loc-big { font-size: 1.1rem; font-weight: 600; }

/* ---------- Auth ---------- */
body.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--hems-primary), #0b1f3a); background-size: cover; background-position: center; padding: 16px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-logo { max-height: 72px; max-width: 200px; object-fit: contain; }

/* ---------- Misc ---------- */
.offline-banner { background: #fef3c7; color: #92400e; padding: 8px 16px; font-size: 13px; }
.install-fab { position: fixed; right: 16px; bottom: calc(var(--bottom-nav-h) + 16px); z-index: 1040; border-radius: 24px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
@media (min-width: 992px) { .install-fab { bottom: 20px; } }
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.scan-box { max-width: 480px; margin: 0 auto; }
#scanVideo { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 1 / 1; object-fit: cover; }
.kbd-hint { font-size: 12px; color: var(--muted); }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-explain { font-size: 12px; color: var(--muted); }
.sticky-summary { position: sticky; top: calc(var(--topbar-h) + 12px); }
.label-sheet { display: grid; gap: 4mm; }

@media print {
  .app-sidebar, .app-topbar, .bottom-nav, .app-footer, .page-actions, .no-print, .install-fab, .filters { display: none !important; }
  .app-main { margin: 0 !important; }
  .app-content { padding: 0 !important; }
  body.app { background: #fff; }
  .card, .table-wrap { border: 0; }
}

/* ---------- Day / night switch ---------- */
.theme-toggle .theme-icon-light { display: none; }
[data-bs-theme=dark] .theme-toggle .theme-icon-light { display: inline; }
[data-bs-theme=dark] .theme-toggle .theme-icon-dark { display: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.lang-btn .lang-label { font-size: 13px; font-weight: 500; }
@media (max-width: 575.98px) { .lang-btn .lang-label { display: none; } .topbar-search input::placeholder { font-size: 13px; } }
.auth-prefs { display: flex; justify-content: flex-end; gap: 4px; margin: -12px -8px 4px 0; }
.auth-prefs .lang-btn .lang-label { display: inline; }

/* ---------- Night (dark) theme ---------- */
[data-bs-theme=dark] {
  --surface: #1b2230;
  --page-bg: #111723;
  --border: #2c3647;
  --muted: #9aa6b8;
  color-scheme: dark;
}
[data-bs-theme=dark] body.app { background: var(--page-bg); color: #e5e9f0; }
[data-bs-theme=dark] .app-topbar, [data-bs-theme=dark] .bottom-nav, [data-bs-theme=dark] .card,
[data-bs-theme=dark] .table-wrap, [data-bs-theme=dark] .filters, [data-bs-theme=dark] .quick-actions a { background: var(--surface); border-color: var(--border); color: #e5e9f0; }
[data-bs-theme=dark] .btn-icon { color: #cbd5e1; }
[data-bs-theme=dark] .btn-icon:hover { background: #263043; }
[data-bs-theme=dark] .topbar-search input { background: #111723; color: #e5e9f0; border-color: var(--border); }
[data-bs-theme=dark] .topbar-search input:focus { background: #0d1320; }
[data-bs-theme=dark] .sidebar-light .app-sidebar { background: var(--surface); color: #cbd5e1; border-color: var(--border); }
[data-bs-theme=dark] .sidebar-light .brand-app, [data-bs-theme=dark] .sidebar-light .sidebar-nav .nav-link:hover { color: #fff; }
[data-bs-theme=dark] .sidebar-light .sidebar-nav .nav-link:hover { background: #263043; }
[data-bs-theme=dark] .app-sidebar { background: #0d1320; }
[data-bs-theme=dark] .bottom-nav a { color: #9aa6b8; }
[data-bs-theme=dark] .table { --bs-table-bg: transparent; color: #e5e9f0; }
[data-bs-theme=dark] .table th { color: #9aa6b8; }
[data-bs-theme=dark] .table-cards tr { border-color: var(--border); }
[data-bs-theme=dark] .line-items .line-row { background: #161d2a; border-color: var(--border); }
[data-bs-theme=dark] .form-actions { background: var(--page-bg); }
[data-bs-theme=dark] .quick-actions a { color: #e5e9f0; }
[data-bs-theme=dark] .stat-card .stat-icon { background: color-mix(in srgb, var(--hems-primary) 22%, #1b2230); }
[data-bs-theme=dark] .stat-warn .stat-icon { background: #3a2a10; color: #fbbf24; }
[data-bs-theme=dark] .stat-danger .stat-icon { background: #3b1717; color: #f87171; }
[data-bs-theme=dark] .stat-ok .stat-icon { background: #0f2e22; color: #34d399; }
[data-bs-theme=dark] .badge-success { background: #0f2e22; color: #6ee7b7; }
[data-bs-theme=dark] .badge-primary { background: #172554; color: #93c5fd; }
[data-bs-theme=dark] .badge-info { background: #0c2a3a; color: #7dd3fc; }
[data-bs-theme=dark] .badge-warning { background: #3a2a10; color: #fcd34d; }
[data-bs-theme=dark] .badge-danger { background: #3b1717; color: #fca5a5; }
[data-bs-theme=dark] .badge-dark { background: #374151; color: #f3f4f6; }
[data-bs-theme=dark] .badge-secondary { background: #2c3647; color: #cbd5e1; }
[data-bs-theme=dark] .badge-orange { background: #3b2112; color: #fdba74; }
[data-bs-theme=dark] .offline-banner { background: #3a2a10; color: #fcd34d; }
[data-bs-theme=dark] .timeline li::after { border-color: var(--surface); }
[data-bs-theme=dark] .auth-card { background: #1b2230; color: #e5e9f0; }
[data-bs-theme=dark] body.auth-page { background: linear-gradient(135deg, #0b1220, #111827); }
[data-bs-theme=dark] .search-suggest .list-group-item { background: var(--surface); color: #e5e9f0; border-color: var(--border); }
[data-bs-theme=dark] .bg-light { background-color: #161d2a !important; }
@media print { [data-bs-theme=dark] body, [data-bs-theme=dark] .card, [data-bs-theme=dark] .table { background: #fff !important; color: #000 !important; } }

/* ---------- Subscription banner ---------- */
.license-banner { display: flex; gap: 10px; align-items: center; padding: 9px 16px; font-size: 13.5px; flex-wrap: wrap; }
.license-expiring { background: #fef3c7; color: #92400e; }
.license-grace { background: #ffedd5; color: #9a3412; }
.license-read_only { background: #fee2e2; color: #991b1b; font-weight: 500; }
.license-banner a { color: inherit; font-weight: 600; text-decoration: underline; }
[data-bs-theme=dark] .license-expiring { background: #3a2a10; color: #fcd34d; }
[data-bs-theme=dark] .license-grace { background: #3b2112; color: #fdba74; }
[data-bs-theme=dark] .license-read_only { background: #3b1717; color: #fca5a5; }

/* ---------- Help & guide ---------- */
.help-link { font-size: .6em; vertical-align: middle; margin-left: .25rem; color: var(--bs-secondary-color); text-decoration: none; }
.help-link:hover { color: var(--bs-primary); }
.help-card { transition: box-shadow .15s, transform .15s; }
.help-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.help-article { font-size: 15.5px; line-height: 1.65; }
.help-article h3 { font-size: 1.1rem; margin: 1.4rem 0 .6rem; font-weight: 600; }
.help-article h4 { font-size: 1rem; margin: 1rem 0 .5rem; font-weight: 600; }
.help-article ol, .help-article ul { padding-left: 1.4rem; }
.help-article li { margin-bottom: .35rem; }
.help-ui { display: inline-block; padding: 0 .4em; border: 1px solid var(--bs-border-color); border-radius: 5px; background: var(--bs-tertiary-bg); font-size: .92em; font-weight: 500; white-space: nowrap; }
.help-tip { display: flex; gap: .6rem; padding: .7rem .9rem; margin: .8rem 0; border-left: 4px solid #f59e0b; background: rgba(245,158,11,.1); border-radius: 6px; }
.help-tip .bi { color: #d97706; }
.help-table th { background: var(--bs-tertiary-bg); }
.help-print-group { font-size: 1.3rem; margin: 2rem 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--bs-border-color); }
@media print {
  .help-print section, .help-article { break-inside: avoid-page; }
  .help-print-group { break-before: page; }
  .help-ui { border-color: #999; background: #f3f3f3; }
  .help-card, .help-article { box-shadow: none !important; }
}

/* ---------- Handover with customer code (OTP) ---------- */
.handover .step-no { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--bs-primary); color: #fff; font-size: 13px; font-weight: 600; margin-right: 6px; }
.otp-channels { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.otp-channel { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--bs-border-color); border-radius: 10px; cursor: pointer; }
.otp-channel input { margin-top: 4px; }
.otp-channel:has(input:checked) { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); }
.otp-channel.disabled { opacity: .55; cursor: not-allowed; }
.otp-channel .bi { font-size: 1.1rem; }
.otp-channel .bi-whatsapp { color: #25d366; }
.otp-input { font-size: 2rem; letter-spacing: .5em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding-left: .5em; }
.otp-input::placeholder { letter-spacing: .3em; }

/* ---------- Suggestions ---------- */
.suggest-dup { margin-top: 4px; }
#customerResults .list-group-item.active, .suggest-dup .list-group-item.active { color: inherit; background: rgba(var(--bs-primary-rgb), .12); border-color: rgba(var(--bs-primary-rgb), .3); }
.return-suggest .list-group-item.active { color: inherit; background: rgba(var(--bs-primary-rgb), .12); border-color: rgba(var(--bs-primary-rgb), .3); }
.return-suggest mark { padding: 0; background: rgba(255, 193, 7, .45); }

/* ---------- Branch-grouped reports ---------- */
.report-table tr.report-group th { background: rgba(var(--bs-primary-rgb), .10); color: var(--bs-emphasis-color); font-size: .95rem; padding: .55rem .6rem; border-top: 2px solid rgba(var(--bs-primary-rgb), .35); }
.report-table tr.report-subtotal td { background: var(--bs-tertiary-bg); font-weight: 600; }
@media (max-width: 767.98px) {
  .table-cards tr.report-group { display: block; border: 0; background: none; box-shadow: none; margin: 1rem 0 .25rem; }
  .table-cards tr.report-group th { display: block; border-radius: 8px; }
  .table-cards tr.report-subtotal { background: var(--bs-tertiary-bg); }
}

/* ---------- Phone fit: nothing may push the page sideways ---------- */
.topbar-search, .topbar-search input { min-width: 0; }
fieldset { min-width: 0; }
.app-main, .app-content, main { min-width: 0; }
@media (max-width: 575.98px) {
  .app-topbar { gap: 4px; padding: 0 6px; }
  .topbar-actions { gap: 0; flex-shrink: 0; }
  .app-topbar .btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .topbar-search .btn-icon { flex-shrink: 0; }
  .app-topbar .user-btn.dropdown-toggle::after { display: none; }
  .page-header { flex-wrap: wrap; }
  .page-header .page-actions, .page-actions { flex-wrap: wrap; }
}
code, .text-break-all { overflow-wrap: anywhere; word-break: break-word; }
.form-select, .form-control { max-width: 100%; }
.form-select { text-overflow: ellipsis; }
.row > * { min-width: 0; }
pre.text-wrap, pre.text-wrap code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }

/* ---------- Export bar ---------- */
.export-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.export-bar .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .export-bar { width: 100%; }
  .export-bar .btn { flex: 1 1 auto; padding: .3rem .4rem; font-size: .8rem; }
}
.help-code { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 8px; padding: .75rem; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
