/* In-app Help (js/help.js): a Help button in the top bar, a panel with the manual page for the screen you are on, and small "?"
   marks next to the parts of a screen. Uses the page's colour variables, so both themes fit. */
.hl-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bar-field-line, rgba(255, 255, 255, .3));
  background: var(--bar-field, rgba(255, 255, 255, .08)); color: var(--bar-text, #fff); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.hl-btn:hover, .hl-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .18); }
.hl-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hl { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 61; display: flex; flex-direction: column; background: var(--panel, #fff);
  color: var(--text, #111); border-left: 1px solid var(--line, #ddd); box-shadow: -16px 0 40px rgba(0, 0, 0, .18); }
.hl.hidden { display: none; }
.hl-head { padding: 14px 18px 0; border-bottom: 1px solid var(--line, #ddd); }
.hl-top { display: flex; align-items: center; gap: 8px; } .hl-top b { flex: 1; font-size: 19px; }
.hl-lang { border: 1px solid var(--line-strong, #ccc); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.hl-x { border: 0; background: transparent; color: var(--text); font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.hl-x:hover { background: var(--surface, #f3f3f3); }
.hl-search { position: relative; margin: 12px 0 10px; }
.hl-search input { width: 100%; box-sizing: border-box; height: 40px; border-radius: 10px; border: 1px solid var(--line, #ddd); background: var(--surface, #f6f7fb); color: var(--text);
  padding: 0 12px 0 36px; font: 15px Inter, system-ui, sans-serif; }
.hl-search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; fill: none; stroke: var(--muted, #667); stroke-width: 2; stroke-linecap: round; }
.hl-tabs { display: flex; gap: 18px; }
.hl-tabs button { border: 0; background: none; padding: 10px 2px; font: 600 14px Inter, system-ui, sans-serif; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.hl-tabs button.on { color: var(--accent, #4a3fd8); border-color: var(--accent, #4a3fd8); }
.hl-body { flex: 1; overflow: auto; padding: 16px 18px 20px; line-height: 1.5; }
.hl-crumb { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.hl-body h3 { margin: 2px 0 8px; font-size: 22px; } .hl-body h4 { margin: 18px 0 6px; font-size: 14px; }
.hl-body p { margin: 0 0 8px; } .hl-body ol, .hl-body ul { margin: 0; padding-left: 20px; } .hl-body li { margin-bottom: 5px; }
.hl-img { width: 100%; border: 1px solid var(--line, #ddd); border-radius: 8px; margin: 6px 0 2px; min-height: 60px; background: var(--surface, #f6f7fb); }
.hl-cap { font-size: 12px; color: var(--muted); text-align: center; }
.hl-feat { width: 100%; border-collapse: collapse; font-size: 14px; } .hl-feat td { padding: 7px 6px; border-top: 1px solid var(--line, #e3e6f0); vertical-align: top; }
.hl-feat td:first-child { width: 26px; font-weight: 700; color: var(--accent, #4a3fd8); text-align: center; } .hl-feat b { display: block; }
.hl-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 8px; } .hl-tbl th { text-align: left; background: var(--surface, #f6f7fb); padding: 6px; }
.hl-tbl td { padding: 6px; border-top: 1px solid var(--line, #e3e6f0); vertical-align: top; }
.hl-box { background: var(--surface, #f6f7fb); border-left: 3px solid var(--accent, #4a3fd8); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-top: 6px; }
.hl-box.st { border-left-color: var(--warn, #b7791f); }
.hl-topic { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.hl-topic:hover { background: var(--surface, #f6f7fb); } .hl-topic small { color: var(--muted); display: block; font-size: 13px; }
.hl-grp { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin: 14px 0 4px; }
.hl-back { border: 0; background: none; color: var(--accent, #4a3fd8); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 10px; }
.hl-foot { border-top: 1px solid var(--line, #ddd); padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.hl-foot small { flex: 1; color: var(--muted); font-size: 12px; }
.hl-foot button { border: 0; background: var(--accent, #4a3fd8); color: #fff; border-radius: 10px; padding: 9px 14px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.hl-empty { color: var(--muted); }
/* the app's own table and field rules must not reach inside the panel */
#hl .hl-search { display: block; } #hl .hl-search input { padding-left: 38px; margin: 0; }
#hl td, #hl th { white-space: normal; overflow-wrap: anywhere; } #hl .hl-feat, #hl .hl-tbl { table-layout: fixed; }
/* sample spreadsheet (looks like Excel) */
.hl-xlw { overflow-x: auto; margin: 4px 0 10px; padding: 1px 4px 4px 1px; }
#hl .hl-xl { width: auto; outline: 1px solid #b7bcc4; box-shadow: 0 1px 4px rgba(0,0,0,.15); border-collapse: collapse; font: 12px Calibri, "Segoe UI", Arial, sans-serif; background: #fff; color: #222; }
#hl .hl-xl th, #hl .hl-xl td { white-space: nowrap; overflow-wrap: normal; border: 1px solid #d4d7dc; padding: 3px 7px; }
#hl .hl-xl th { background: #eef0f3; color: #555; font-weight: 400; text-align: center; min-width: 22px; }
#hl .hl-xl td.hd { font-weight: 700; background: #e2efda; }
#hl .hl-xl td.dish { text-align: center; font-weight: 700; font-size: 14px; padding: 6px 7px; }
#hl .hl-xl td.num { text-align: right; }
.hl-xlcap { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #6b7385); margin: 12px 0 2px; }
/* the small "?" marks on a screen */
.hl-q { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--accent-line, #c9cdf0);
  background: var(--accent-soft, #f1f0ff); color: var(--accent, #4a3fd8); font: 700 12px Inter, system-ui, sans-serif; cursor: pointer; vertical-align: middle; padding: 0; }
.hl-q:hover { background: var(--accent, #4a3fd8); color: #fff; }
.hl-pop { position: absolute; z-index: 62; width: min(340px, 90vw); background: #0c1638; color: #fff; border-radius: 12px; padding: 12px 14px; font: 14px/1.45 Inter, system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.hl-pop b { display: block; margin-bottom: 3px; } .hl-pop button { margin-top: 6px; border: 0; background: none; color: #b9b3ff; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
@media (max-width: 700px) { .hl-btn span { display: none; } .hl-btn { padding: 0 10px; } }
@media print { .hl, .hl-btn, .hl-q, .hl-pop { display: none !important; } }

.hl-where { font-size: 13px; margin: 2px 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface, #f6f7fb); color: var(--muted, #4a5466); } .hl-where b { color: var(--text, #1d2433); }
.hl-img { cursor: zoom-in; }
.hl-zoom { position: fixed; inset: 0; z-index: 4000; background: rgba(10,14,25,.82); display: grid; place-items: center; padding: 18px; cursor: zoom-out; overflow: auto; }
.hl-zoom[hidden] { display: none; }
.hl-zoom img { max-width: 100%; max-height: none; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
