/* ============================================================================
   All Hours Assistant — SHARED STYLES (do not edit per-site; use --ahr-*
   custom properties to re-theme, or pass a "theme" object in the config).
   Defaults = All Hours Records dark/gold.
   ============================================================================ */
#ahr-assistant-root {
  --ahr-bg: #0a0a09;
  --ahr-surface: #121210;
  --ahr-header-bg: #14100a;
  --ahr-ink: #f4f1e9;
  --ahr-muted: #a8a49a;
  --ahr-line: rgba(244,241,233,.14);
  --ahr-gold: #ca913f;
  --ahr-gold-2: #eec27a;
  --ahr-online: #35d07f;
  position: fixed; z-index: 99999; inset: auto 0 0 auto;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
#ahr-assistant-btn {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--ahr-gold-2); cursor: pointer;
  background: linear-gradient(135deg, var(--ahr-gold-2) 0%, var(--ahr-gold) 100%);
  box-shadow: 0 6px 28px rgba(202,145,63,.45), 0 2px 8px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
#ahr-assistant-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(202,145,63,.55), 0 2px 8px rgba(0,0,0,.5); }
#ahr-assistant-btn svg { width: 28px; height: 28px; stroke: var(--ahr-bg); }
#ahr-assistant-btn .ahr-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ahr-online); border: 2px solid var(--ahr-bg);
}
#ahr-assistant-panel {
  position: fixed; right: 22px; bottom: 94px; width: min(384px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 130px)); min-height: 380px;
  background: var(--ahr-surface); color: var(--ahr-ink); border: 1px solid var(--ahr-line);
  border-top: 2px solid var(--ahr-gold); border-radius: 14px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(202,145,63,.12);
}
#ahr-assistant-root.ahr-open #ahr-assistant-panel { display: flex; }
#ahr-assistant-root.ahr-open #ahr-assistant-btn .ahr-chat-ic { display: none; }
#ahr-assistant-root:not(.ahr-open) #ahr-assistant-btn .ahr-close-ic { display: none; }
.ahr-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--ahr-line); background: var(--ahr-header-bg); }
.ahr-head h2 { margin: 0; font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--ahr-gold-2); }
.ahr-head .ahr-status { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 11.5px; color: var(--ahr-muted); }
.ahr-head .ahr-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ahr-online); box-shadow: 0 0 8px var(--ahr-online); }
.ahr-disclosure { padding: 8px 16px; font-size: 11px; line-height: 1.5; color: var(--ahr-muted); border-bottom: 1px solid var(--ahr-line); background: rgba(202,145,63,.05); }
#ahr-assistant-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.ahr-msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; }
.ahr-msg p { margin: 0 0 6px; } .ahr-msg p:last-child { margin: 0; }
.ahr-msg a { color: var(--ahr-gold-2); text-decoration: underline; text-underline-offset: 2px; }
.ahr-bot { align-self: flex-start; background: rgba(244,241,233,.07); border: 1px solid var(--ahr-line); border-top-left-radius: 4px; }
.ahr-user { align-self: flex-end; background: linear-gradient(135deg, var(--ahr-gold-2), var(--ahr-gold)); color: var(--ahr-bg); font-weight: 500; border-bottom-right-radius: 4px; }
.ahr-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.ahr-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ahr-muted); animation: ahr-blink 1.1s infinite; }
.ahr-typing span:nth-child(2) { animation-delay: .18s; } .ahr-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes ahr-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ahr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 2px; }
.ahr-chip {
  font-size: 12px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ahr-gold-2); border: 1px solid var(--ahr-gold);
}
.ahr-chip:hover { background: rgba(202,145,63,.14); }
.ahr-input-row { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--ahr-line); }
#ahr-assistant-input {
  flex: 1; background: var(--ahr-bg); border: 1px solid var(--ahr-line); border-radius: 10px;
  color: var(--ahr-ink); font-size: 13.5px; padding: 10px 12px; outline: none; min-width: 0;
}
#ahr-assistant-input:focus { border-color: var(--ahr-gold); }
#ahr-assistant-send {
  background: linear-gradient(135deg, var(--ahr-gold-2), var(--ahr-gold)); border: none; border-radius: 10px;
  width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none;
}
#ahr-assistant-send svg { width: 18px; height: 18px; stroke: var(--ahr-bg); }
.ahr-form { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.ahr-form label { font-size: 12px; color: var(--ahr-muted); display: flex; flex-direction: column; gap: 5px; }
.ahr-form input[type="text"], .ahr-form input[type="tel"], .ahr-form input[type="email"], .ahr-form textarea {
  background: var(--ahr-bg); border: 1px solid var(--ahr-line); border-radius: 10px;
  color: var(--ahr-ink); font-size: 13.5px; padding: 10px 12px; outline: none; font-family: inherit; resize: vertical;
}
.ahr-form input:focus, .ahr-form textarea:focus { border-color: var(--ahr-gold); }
.ahr-form .ahr-check { flex-direction: row; align-items: center; gap: 9px; font-size: 13px; color: var(--ahr-ink); cursor: pointer; }
.ahr-form .ahr-check input { width: 16px; height: 16px; accent-color: var(--ahr-gold); }
.ahr-form button[type="submit"] {
  background: linear-gradient(135deg, var(--ahr-gold-2), var(--ahr-gold)); color: var(--ahr-bg); border: none; border-radius: 10px;
  font-size: 14px; font-weight: 700; padding: 12px; cursor: pointer;
}
.ahr-form button[type="submit"]:disabled { opacity: .55; cursor: default; }
.ahr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #ahr-assistant-btn, .ahr-typing span { animation: none; transition: none; }
}
