/* Dazpy help chat (help round, 2026-11-25). Ink & Spark, light and dark,
   on dazpy.com and in the app: apps/app/public/help-chat.css is a
   byte-for-byte copy. Colours come from the page's own tokens (the site's
   --paper/--sand/--ink, or the app's --surface/--soft/--ink); the only
   colour of its own is the logo spark, #E8933A. */
.hc {
  --hc-panel: var(--paper, var(--surface, #FFFFFF));
  --hc-soft: var(--sand, var(--soft, #ECEBE7));
  --hc-ink: var(--ink, #18181B);
  --hc-muted: var(--muted, #5F5F67);
  --hc-line: var(--line, #E1DFDA);
  --hc-spark: #E8933A;
  --hc-shadow: var(--sh-2, 0 2px 6px rgba(24,24,27,.07), 0 40px 80px -34px rgba(24,24,27,.38));
  --hc-serif: var(--f-d, 'DM Serif Display', Georgia, serif);
  --hc-sans: var(--f-b, Manrope, 'Segoe UI', system-ui, sans-serif);
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90;
  font-family: var(--hc-sans); color: var(--hc-ink); font-size: 15px; line-height: 1.5;
}
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
/* The site's dark sand sits darker than its dark paper, so answers there use the next sand up. */
:root[data-theme="dark"] .hc { --hc-soft: var(--sand-2, var(--soft)); }
.hc-sr, .hc-pot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hc-launch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 16px;
  border: 1px solid var(--hc-ink); border-radius: 999px; cursor: pointer;
  background: var(--hc-ink); color: var(--hc-panel);
  font: 700 15px/1 var(--hc-sans); letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(24,24,27,.10), 0 18px 36px -16px rgba(24,24,27,.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hc-launch:hover { transform: translateY(-1px); box-shadow: 0 1px 2px rgba(24,24,27,.12), 0 22px 40px -16px rgba(24,24,27,.6); }
.hc-launch svg { flex: none; }
.hc-launch::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hc-spark); margin-inline-start: 2px; }
.hc-open .hc-launch { display: none; }

.hc-panel {
  position: absolute; right: 0; bottom: 0;
  width: min(392px, calc(100vw - 40px)); height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hc-panel); border: 1px solid var(--hc-line); border-radius: 22px; box-shadow: var(--hc-shadow);
  animation: hc-rise .2s ease-out;
}
.hc-panel[hidden] { display: none; }
/* The panel can read right to left on a left-to-right page: it keeps to the page's side. */
.hc:dir(rtl) .hc-panel { right: auto; left: 0; }
@keyframes hc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hc-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 14px 18px; border-bottom: 1px solid var(--hc-line); }
[dir="rtl"] .hc-head { padding: 16px 18px 14px 12px; }
.hc-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; }
.hc-mark svg { display: block; width: 30px; height: 30px; }
.hc-head-text { flex: 1; min-width: 0; }
.hc .hc-title { margin: 0; font: 400 22px/1.1 var(--hc-serif); letter-spacing: -.01em; color: var(--hc-ink); }
.hc .hc-ai { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: var(--hc-muted); }
.hc-new, .hc-x {
  flex: none; min-height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--hc-muted); cursor: pointer;
  font: 600 13px/1 var(--hc-sans);
}
.hc-new { padding: 0 10px; }
.hc-x { width: 36px; display: grid; place-items: center; padding: 0; }
.hc-new:hover, .hc-x:hover { background: var(--hc-soft); color: var(--hc-ink); }

.hc-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hc-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.hc-msg p { margin: 0; line-height: inherit; }
.hc-msg p + p, .hc-msg p + ul, .hc-msg ul + p { margin-top: 8px; }
.hc-msg ul { margin: 0; padding-inline-start: 18px; }
.hc-msg li + li { margin-top: 3px; }
.hc-msg a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hc-spark) 70%, transparent); text-underline-offset: .18em; }
.hc-bot { align-self: flex-start; background: var(--hc-soft); border-end-start-radius: 6px; }
.hc-you { align-self: flex-end; background: var(--hc-ink); color: var(--hc-panel); border-end-end-radius: 6px; white-space: pre-wrap; }
.hc-note { color: var(--hc-muted); }
.hc-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--hc-muted); font-size: 14px; }
.hc-dots { width: 22px; height: 6px; background: radial-gradient(circle, currentColor 2.2px, transparent 2.6px) 0 50% / 7.3px 6px repeat-x; animation: hc-dots 1s steps(3) infinite; opacity: .8; }
@keyframes hc-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hc .hc-crisis { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--hc-panel); border: 1px solid var(--hc-line); border-inline-start: 3px solid var(--hc-spark); font-size: 14px; line-height: 1.45; }

.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.hc-chips[hidden] { display: none; }
.hc-chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hc-line); background: var(--hc-panel); color: var(--hc-ink); font: 600 13px/1.2 var(--hc-sans);
}
.hc-chip:hover { border-color: var(--hc-ink); }

.hc-form { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 6px 6px 6px 14px; border: 1px solid var(--hc-line); border-radius: 18px; background: var(--hc-panel); }
[dir="rtl"] .hc-form { padding: 6px 14px 6px 6px; }
.hc-form:focus-within { border-color: var(--hc-ink); }
.hc-q {
  flex: 1; min-width: 0; min-height: 40px; max-height: 132px; resize: none; border: 0; outline: 0; padding: 9px 0; margin: 0;
  background: transparent; color: var(--hc-ink); font: 400 16px/1.4 var(--hc-sans);
}
.hc-q::placeholder { color: var(--hc-muted); opacity: .85; }
.hc-send {
  flex: none; width: 40px; height: 40px; min-height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--hc-ink); color: var(--hc-panel);
}
.hc-send:disabled { opacity: .45; cursor: wait; }

.hc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; padding: 10px 16px 14px; font-size: 12px; color: var(--hc-muted); }
.hc-foot a { color: var(--hc-muted); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; min-height: 0; }
.hc-foot a:hover { color: var(--hc-ink); }
.hc .hc-private { flex-basis: 100%; margin: 2px 0 0; text-align: center; font-size: 11.5px; opacity: .9; }

/* The page's own element rules stay out: the site styles every footer,
   and the app tints every hovered button. */
.hc .hc-foot { border: 0; margin: 0; background: transparent; }
.hc .hc-launch:hover:not(:disabled), .hc .hc-send:hover:not(:disabled) { background: var(--hc-ink); }
.hc .hc-chip:hover:not(:disabled) { background: var(--hc-panel); }
.hc button:focus-visible, .hc a:focus-visible { outline: 3px solid var(--hc-ink); outline-offset: 2px; }
.hc-q:focus-visible { outline: none; }

@media (max-width: 560px) {
  .hc { inset-inline-end: 12px; bottom: 12px; }
  .hc-open { inset: auto 8px 8px 8px; }
  .hc-panel { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); max-height: 680px; border-radius: 20px; }
  .hc-launch { min-height: 46px; padding: 0 16px 0 13px; }
}
@media (prefers-reduced-motion: reduce) { .hc-panel, .hc-dots { animation: none; } .hc-launch { transition: none; } }
@media print { .hc { display: none; } }
