/* ═══ NOTIFICATION SETTINGS + HELP (canvas "Notifications and Help",
   Ren 2026-10-30). Screens from notifhelp.js. Same frame as the wallet
   screens; colours are the --ag-* tokens (agreements.css), so dark mode
   follows. Sits above the Notifications page (10040), below its details
   sheet (10050) and the Help chat (10060). ═══ */
body.hlp-lock { overflow: hidden; }
.hlp {
  position: fixed; inset: 0; z-index: 10045; display: flex; justify-content: center;
  background: var(--ag-page); color: var(--ag-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.hlp-in { width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; background: var(--ag-page); position: relative; }
@media (min-width: 901px) {
  .hlp { background: rgba(10, 20, 14, .5); align-items: center; }
  .hlp-in { height: min(860px, 92vh); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
}
.hlp button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.hlp-top { height: 60px; padding: env(safe-area-inset-top, 0px) 12px 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hlp-top b { flex: 1; font-size: 18px; font-weight: 800; }
.hlp-sp { flex: 1; }
.hlp-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--ag-card); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.hlp-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.hlp-body > * { flex-shrink: 0; }
.hlp-body.center { padding: 64px 18px 14px; align-items: center; text-align: center; gap: 14px; }
.hlp-foot { padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; background: var(--ag-card); border-radius: 22px 22px 0 0; }
.hlp-foot.plain { background: transparent; }

/* text */
.hlp-h1 { margin: 0; padding: 2px 2px 0; font-size: 24px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.hlp-h1.sm { font-size: 23px; }
.hlp-h { font-size: 13px; font-weight: 800; color: var(--ag-label); padding: 4px 4px 0; }
.hlp-lead { margin: 0; padding: 0 2px; font-size: 15px; line-height: 1.5; color: var(--ag-text); }
.hlp-body.center .hlp-lead { max-width: 300px; color: var(--ag-label); }
.hlp-crumb { font-size: 14px; font-weight: 700; color: var(--ag-label); padding: 0 2px; margin-top: -4px; }
.hlp-small { margin: 0; padding: 0 4px; font-size: 12px; line-height: 1.45; color: var(--ag-label); }
.hlp-sub { font-size: 13px; color: var(--ag-label); }
.hlp-lbl { font-size: 13px; font-weight: 700; color: var(--ag-label); }
.hlp-lbl i { font-style: normal; font-weight: 500; }
.hlp-b15 { font-size: 15px; font-weight: 800; }
.hlp-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hlp-grow > b { font-size: 14px; font-weight: 700; }
.hlp-grow > span { font-size: 12px; color: var(--ag-label); line-height: 1.4; }

/* tones */
.hlp-t-teal   { background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
.hlp-t-orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.hlp-t-purple { background: var(--ag-purple-bg); color: var(--ag-purple); }
.hlp-t-green  { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.hlp-t-red    { background: var(--ag-pink-bg); color: var(--ag-pink-ink); }
.hlp-t-blue   { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.hlp-t-grey   { background: var(--ag-soft); color: var(--ag-label); }
body.dark-mode .hlp-t-purple { color: #c4b2f0; }
.hlp-c-green { color: var(--ag-green-ink); } .hlp-c-orange { color: var(--ag-orange-ink); }
.hlp-c-red { color: var(--ag-pink-ink); } .hlp-c-grey { color: var(--ag-label); }
.hlp-tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hlp-tile.sm { width: 36px; height: 36px; border-radius: 10px; }
.hlp-tile.sm svg { width: 18px; height: 18px; }
.hlp-tile.big { width: 52px; height: 52px; border-radius: 16px; background: var(--ag-card); }

/* cards and lists */
.hlp-card { background: var(--ag-card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; width: 100%; }
.hlp-row-card { flex-direction: row; align-items: center; gap: 12px; padding: 14px; text-align: left; }
.hlp-state { font-size: 13px !important; font-weight: 700; }
.hlp-list { padding: 2px 14px; gap: 0; }
.hlp .line { border-bottom: 1px solid var(--ag-line); }
.hlp-sw-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; cursor: pointer; }
.hlp-check { width: 22px; height: 22px; margin: 0; accent-color: var(--ag-green); flex-shrink: 0; cursor: pointer; }
.hlp-check:disabled { cursor: default; opacity: .7; }
.hlp-sbtn { height: 38px; padding: 0 12px; border: 1.5px solid var(--ag-line); border-radius: 10px; background: var(--ag-card); color: var(--ag-ink); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hlp-sbtn:disabled { opacity: .5; cursor: default; }
.hlp-sbtn.green { border-color: var(--ag-green); background: var(--ag-green); color: #fff; }
.hlp-btn { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--ag-green); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.hlp-btn.line { background: var(--ag-card); border: 2px solid var(--ag-green); color: var(--ag-green-ink); }
.hlp-btn:disabled { opacity: .45; cursor: default; }
.hlp-two { display: flex; gap: 8px; }
.hlp-two .hlp-btn { flex: 1; font-size: 14px; }
.hlp-note { border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.hlp-note svg { flex-shrink: 0; margin-top: 1px; }
.hlp-note.orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.hlp-note.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }

/* Help home */
.hlp-search { height: 50px; border-radius: 14px; background: var(--ag-card); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ag-label); box-sizing: border-box; }
.hlp-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; color: var(--ag-ink); }
.hlp-search:focus-within { box-shadow: 0 0 0 2px var(--ag-green); }
.hlp-home, .hlp-results { display: flex; flex-direction: column; gap: 12px; }
.hlp-home[hidden], .hlp-results[hidden] { display: none; }
.hlp-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hlp-topic { height: 92px; border: 0; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px; box-sizing: border-box; text-align: left; cursor: pointer; }
.hlp-topic b { font-size: 13px; font-weight: 800; line-height: 1.25; }
.hlp-q { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 0; border-left: 0; border-right: 0; background: none; color: var(--ag-ink); text-align: left; cursor: pointer; }
.hlp-q:not(.line) { border-bottom: 0; }
.hlp-q span { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.hlp-q svg { color: var(--ag-label); flex-shrink: 0; }
.hlp-none { align-items: center; text-align: center; gap: 6px; }
.hlp-none b { font-size: 15px; font-weight: 800; }
.hlp-none span { font-size: 13px; color: var(--ag-label); margin-bottom: 4px; }
.hlp-chip-btn { height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hlp-chip-btn.soft { background: var(--ag-soft); color: var(--ag-ink); }

/* topic */
.hlp-thead { border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.hlp-thead .hlp-grow > b { font-size: 16px; font-weight: 800; }
.hlp-thead .hlp-grow > span { font-size: 13px; color: inherit; opacity: .9; }
.hlp-acc { padding: 0; }
.hlp-acc-q { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 0; border: 0; background: none; color: var(--ag-ink); text-align: left; cursor: pointer; }
.hlp-acc-q span { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.hlp-acc.open .hlp-acc-q span { font-weight: 800; }
.hlp-acc-q svg { color: var(--ag-label); flex-shrink: 0; }
.hlp-acc.open .hlp-acc-q svg { color: var(--ag-ink); }
.hlp-acc-a { padding: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.hlp-acc-a[hidden] { display: none; }
.hlp-acc-a p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ag-text); }
.hlp-acc-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* answer */
.hlp-steps { gap: 14px; }
.hlp-step { display: flex; gap: 12px; align-items: flex-start; }
.hlp-step i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--ag-green-bg); color: var(--ag-green-ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hlp-step span { font-size: 14px; line-height: 1.5; padding-top: 4px; }
.hlp-step.dot i { width: 8px; height: 8px; margin: 10px 10px 0; background: var(--ag-green); }
.hlp-step.dot span { padding-top: 0; }
.hlp-helpful { margin-top: 4px; }
.hlp-helpful b.hlp-grow { font-size: 14px; font-weight: 700; }
.hlp-thanks { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 14px !important; font-weight: 700; color: var(--ag-green-ink) !important; }

/* contact */
.hlp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hlp-chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ag-line); background: var(--ag-card); color: var(--ag-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.hlp-chip.on { border-color: var(--ag-green); background: var(--ag-green); color: #fff; }
.hlp-field { display: flex; flex-direction: column; gap: 6px; }
.hlp-field[hidden] { display: none; }
.hlp-select { position: relative; display: flex; align-items: center; }
.hlp-select select { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--ag-line); padding: 0 36px 0 12px; background: var(--ag-card); color: var(--ag-ink); font-family: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
.hlp-select svg { position: absolute; right: 12px; pointer-events: none; color: var(--ag-label); }
.hlp-field textarea { border-radius: 12px; border: 1.5px solid var(--ag-line); padding: 12px; background: var(--ag-card); font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--ag-ink); resize: none; box-sizing: border-box; width: 100%; }
.hlp-field textarea:focus, .hlp-select select:focus { outline: 0; border-color: var(--ag-green); }
.hlp-add { height: 48px; border: 1.5px dashed var(--ag-track); border-radius: 12px; background: var(--ag-page); color: var(--ag-green-ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.hlp-add[hidden], .hlp-shot[hidden] { display: none; }
.hlp-shot { position: relative; align-self: flex-start; }
.hlp-shot img { display: block; max-width: 160px; max-height: 160px; border-radius: 12px; border: 1px solid var(--ag-line); }
.hlp-shot-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ag-ink); color: var(--ag-card); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* message sent */
.hlp-big { width: 96px; height: 96px; border-radius: 30px; display: flex; align-items: center; justify-content: center; }
.hlp-tl { gap: 0; text-align: left; margin-top: 6px; }
.hlp-tl-row { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.hlp-tl-row.last { padding-bottom: 0; }
.hlp-tl-row:not(.last)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--ag-line); }
.hlp-tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--ag-line); flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; position: relative; }
.hlp-tl-dot.done { background: var(--ag-green); color: #fff; }
.hlp-tl-dot.now { background: var(--ag-card); border: 3px solid var(--ag-orange); }
.hlp-tl-t { display: flex; flex-direction: column; gap: 2px; }
.hlp-tl-t b { font-size: 14px; font-weight: 800; }
.hlp-tl-t span { font-size: 12px; color: var(--ag-label); }
.hlp-tl-t.dim b { color: var(--ag-label); }
.hlp-code { font-size: 14px !important; font-weight: 800 !important; letter-spacing: .3px; }
