/* ee_music.css -- dashboard music dock + appointment quiet mode chips/settings. 2026-10-15 (d1460)
   static/js/ee_music.js, static/js/ee_quiet.js. Light by default; dark when html/body[data-dark="1"]
   (themes.js raises it for every dark theme). */
.lhm-dock, .lhq-chip, .lhq-focus, .lhm-ov, .lhq-set {
  --lhm-bg: #ffffff; --lhm-ink: #192024; --lhm-soft: #5b6b63; --lhm-line: #c8e4f2; --lhm-accent: #1a4459;
  --lhm-accent-ink: #ffffff; --lhm-field: #f4f9fc; --lhm-warn-bg: #FFF4E5; --lhm-warn-ink: #8a4b00; --lhm-err: #B71C1C;
}
[data-dark="1"] .lhm-dock, [data-dark="1"] .lhq-chip, [data-dark="1"] .lhq-focus, [data-dark="1"] .lhm-ov, [data-dark="1"] .lhq-set {
  --lhm-bg: #111619; --lhm-ink: #e4f2f9; --lhm-soft: #82c2e2; --lhm-line: #29343a; --lhm-accent: #669fbb;
  --lhm-accent-ink: #0a1012; --lhm-field: #0c1113; --lhm-warn-bg: #3a2a10; --lhm-warn-ink: #ffcc80; --lhm-err: #ff8a80;
}

/* ── dock ─────────────────────────────────────────────────────────────────────── */
.lhm-dock { margin: 18px 0 8px; padding: 12px 14px; background: var(--lhm-bg); color: var(--lhm-ink);
  border: 1px solid var(--lhm-line); border-radius: 14px; box-sizing: border-box; font-size: 13px; max-width: 100%; }
.lhm-dock[hidden] { display: none !important; }
.lhm-head { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.lhm-title { font-weight: 900; font-size: 14px; white-space: nowrap; }
.lhm-now { color: var(--lhm-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.lhm-tools { display: flex; gap: 6px; margin-left: auto; }
.lhm-dock button, .lhm-ov button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 36px; min-width: 36px;
  border: 1px solid var(--lhm-line); background: var(--lhm-field); color: var(--lhm-ink); padding: 0 10px; font-weight: 800; }
.lhm-dock button:focus-visible, .lhm-dock input:focus-visible, .lhm-dock select:focus-visible, .lhm-ov button:focus-visible,
.lhq-focus button:focus-visible { outline: 2px solid var(--lhm-accent); outline-offset: 2px; }
.lhm-form { display: flex; gap: 6px; margin-top: 8px; }
.lhm-input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--lhm-line);
  background: var(--lhm-field); color: var(--lhm-ink); font-size: 16px; box-sizing: border-box; }
.lhm-dock .lhm-play { background: var(--lhm-accent); color: var(--lhm-accent-ink); border-color: var(--lhm-accent); min-height: 40px; }
.lhm-dock .lhm-star { font-size: 18px; min-height: 40px; color: #E6A100; }
.lhm-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.lhm-fav { min-height: 36px; max-width: 100%; border-radius: 10px; border: 1px solid var(--lhm-line); background: var(--lhm-field);
  color: var(--lhm-ink); padding: 0 8px; font: inherit; font-size: 13px; }
.lhm-links { color: var(--lhm-soft); font-size: 12px; }
.lhm-links a { color: var(--lhm-accent); font-weight: 700; }
.lhm-warn { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--lhm-warn-bg); color: var(--lhm-warn-ink); font-weight: 800; }
.lhm-msg { font-size: 12px; margin-top: 4px; min-height: 0; color: var(--lhm-soft); }
.lhm-msg.lhm-err { color: var(--lhm-err); font-weight: 700; }
.lhm-player { margin-top: 0; }
.lhm-player.lhm-on { margin-top: 10px; }
.lhm-frame { display: block; width: 100%; border: 0; border-radius: 12px; background: transparent; }
.lhm-help { margin-top: 8px; color: var(--lhm-soft); font-size: 12px; line-height: 1.45; }
.lhm-help ul { margin: 0; padding-left: 18px; }
@media (max-width: 480px) {
  .lhm-dock { padding: 10px; }
  .lhm-links { width: 100%; }
}

/* ── settings modal (dock gear) ───────────────────────────────────────────────── */
.lhm-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100001; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .lhm-ov { align-items: center; } }
.lhm-box { background: var(--lhm-bg); color: var(--lhm-ink); width: min(560px, 100%); max-height: 92vh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 14px 16px; box-sizing: border-box; }
@media (min-width: 700px) { .lhm-box { border-radius: 16px; } }
.lhm-box-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.lhm-box-h .lhm-x { margin-left: auto; border: 0; background: none; font-size: 18px; }

/* ── settings rows (Settings page + modal) ────────────────────────────────────── */
.lhq-set { color: inherit; }
.lhq-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--lhm-line); cursor: pointer; }
.lhq-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lhq-l { font-weight: 800; font-size: 13px; }
.lhq-s { font-size: 11.5px; color: var(--lhm-soft, #666); line-height: 1.4; }
.lhq-row input[type="number"] { width: 72px; min-height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--lhm-line);
  background: var(--lhm-field); color: var(--lhm-ink); font-size: 16px; box-sizing: border-box; flex: none; }
.lhq-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--lhm-accent); flex: none; }
.lhq-tip { margin: 10px 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--lhm-field); font-size: 12px; line-height: 1.45; }
.lhq-today { font-size: 12px; margin-top: 6px; }
.lhq-today ul { margin: 4px 0 0; padding-left: 18px; }
.lhq-msg { font-size: 12px; font-weight: 700; margin-top: 6px; min-height: 16px; color: var(--lhm-accent); }

/* ── chips ────────────────────────────────────────────────────────────────────── */
.lhq-chip { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9990;
  background: var(--lhm-bg); color: var(--lhm-ink); border: 1.5px solid var(--lhm-line); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 800; box-shadow: 0 4px 16px rgba(0,0,0,.18); max-width: calc(100vw - 24px);
  box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhq-chip small { font-weight: 600; color: var(--lhm-soft); }
.lhq-chip[hidden], .lhq-focus[hidden] { display: none !important; }
.lhq-focus { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 9991;
  width: min(460px, calc(100vw - 32px)); box-sizing: border-box; background: var(--lhm-bg); color: var(--lhm-ink);
  border: 1.5px solid var(--lhm-accent); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 8px 28px rgba(0,0,0,.22); display: flex; gap: 10px; align-items: flex-start; animation: lhqIn .25s ease-out; }
.lhq-focus .lhq-how { margin-top: 6px; font-size: 12px; color: var(--lhm-soft); }
.lhq-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.lhq-focus button { min-height: 34px; border-radius: 9px; border: 1px solid var(--lhm-line); background: var(--lhm-field); color: var(--lhm-ink); font: inherit; font-weight: 800; cursor: pointer; padding: 0 10px; }
@keyframes lhqIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .lhq-focus { animation: none; } }

/* ── appointment quiet mode: this app's pop-ups / auto tips stay out of the way ──── */
html.lhq-quiet .lg-bubble.lg-compact, html.lhq-quiet .lg-toast, html.lhq-quiet #lg-off-toast,
html.lhq-quiet #ee-motiv, html.lhq-quiet #bigsale-wrap, html.lhq-quiet .lat-root { display: none !important; }
