/* home-tent-hub.css — Home Tent bento dashboard (fits one screen, panels scroll
   internally). Dark cosmic glass; cyan/violet/teal; Space Grotesk + Inter. */

/* ── Bento grid ────────────────────────────────────────────────────────────── */
/* Comfortable fixed-height rows — the hub grows to ~900px and the PAGE scrolls if
   the viewport is shorter, instead of cramming 6 panels into one screen. Each
   panel still scrolls internally for long lists. */
.ht-hub {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 350px 308px 256px;
}
.ht-panel-inventory { grid-column: 1; grid-row: 1; }
.ht-panel-todo      { grid-column: 2; grid-row: 1; }
.ht-panel-buylist   { grid-column: 3; grid-row: 1; }
.ht-panel-schedule  { grid-column: 1 / 3; grid-row: 2; }
.ht-panel-doing     { grid-column: 3; grid-row: 2; }
.ht-panel-receipts  { grid-column: 1 / -1; grid-row: 3; }

.ht-panel {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 16px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.05), transparent 55%),
    rgba(13, 19, 36, 0.6);
}
.ht-panel-hd {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.ht-panel-hd-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ht-panel-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; color: #7dd3fc; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.22); }
.ht-panel-title { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #f1f5ff; }
.ht-panel-count { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; color: rgba(148, 163, 184, 0.85); background: rgba(148, 163, 184, 0.12); border: 1px solid rgba(148, 163, 184, 0.2); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ht-panel-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.ht-panel-body::-webkit-scrollbar { width: 8px; }
.ht-panel-body::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 8px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.hth-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.24); color: rgba(203, 213, 225, 0.9); transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease; }
.hth-btn:hover { background: rgba(148, 163, 184, 0.18); }
.hth-btn:active { transform: scale(0.97); }
.hth-btn-primary { color: #fff; background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(124, 58, 237, 0.85)); border-color: rgba(56, 189, 248, 0.5); }
.hth-btn-primary:hover { box-shadow: 0 8px 24px -10px rgba(56, 189, 248, 0.7); }
.ht-panel-hd .hth-btn { padding: 6px 10px; }
.ht-icon-btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.18); color: rgba(203, 213, 225, 0.85); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.ht-icon-btn:hover { background: rgba(148, 163, 184, 0.16); color: #e8eef7; }
.ht-del:hover { background: rgba(248, 113, 113, 0.16); color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }
.ht-buy-link:hover { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.4); }

/* ── Animated checkbox ─────────────────────────────────────────────────────── */
.ht-check { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: rgba(8, 12, 26, 0.6); border: 1.5px solid rgba(148, 163, 184, 0.35); color: #4ade80; transition: background 0.16s ease, border-color 0.16s ease; }
.ht-check:hover { border-color: rgba(74, 222, 128, 0.6); }
.ht-check .ht-check-path { opacity: 0; transition: opacity 0.16s ease; }
.is-done .ht-check, .is-bought .ht-check { background: rgba(22, 101, 52, 0.4); border-color: rgba(74, 222, 128, 0.7); }
.is-done .ht-check .ht-check-path, .is-bought .ht-check .ht-check-path { opacity: 1; }

/* ── Inventory panel ───────────────────────────────────────────────────────── */
.ht-inv-actions { display: flex; align-items: center; gap: 6px; }
.ht-inv-body { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ht-inv-ring { flex: 0 0 auto; }
.ht-inv-ring-pct { fill: #f1f5ff; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 22px; font-weight: 700; }
.ht-inv-ring-sub { fill: rgba(148, 163, 184, 0.7); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ht-inv-racks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.ht-inv-rack { border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; background: rgba(8, 12, 26, 0.45); padding: 9px 10px; }
.ht-inv-rack-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.ht-inv-rack-label { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c7b6ff; }
.ht-inv-rack-occ { font-size: 12px; font-weight: 700; color: #e8eef7; font-variant-numeric: tabular-nums; }
.ht-inv-rack-occ i { color: rgba(148, 163, 184, 0.6); font-style: normal; font-size: 10px; }
.ht-inv-shelves { display: flex; flex-direction: column; gap: 4px; }
.ht-inv-shelf { position: relative; height: 16px; border-radius: 4px; background: rgba(148, 163, 184, 0.08); overflow: hidden; }
.ht-inv-shelf-fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; transition: width 0.4s cubic-bezier(0.22,1,0.32,1); }
.ht-inv-shelf-n { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 700; color: rgba(226,232,240,0.85); font-variant-numeric: tabular-nums; }
.ht-inv-rack-bar { height: 5px; border-radius: 3px; background: rgba(148, 163, 184, 0.12); margin-top: 8px; overflow: hidden; }
.ht-inv-rack-barfill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #a78bfa); transition: width 0.5s cubic-bezier(0.22,1,0.32,1); }

/* ── Inventory host (off-screen by default; full-screen for the 3D view) ──────
   The inventory module renders here. Off-screen, its own full-screen Quick Add /
   Overview modals (position:fixed) still open over the dashboard — so they work
   standalone, no 3D required. The 3D button toggles .is-fullscreen. No z-index
   while off-screen so those fixed modals aren't trapped in a stacking context. */
/* Off-screen but with a high z so its (position:fixed) Quick Add / Overview
   modals paint above the dashboard. (position:fixed always makes a stacking
   context, so the host's z sets the level its modals render at — below the WIP
   banner at z:999999, above everything else.) */
.ht-inv-host { position: fixed; left: -99999px; top: 0; width: 720px; height: 480px; z-index: 99999; }
.ht-inv-host .ht-inv-mount { width: 100%; height: 100%; }
.ht-inv-host .ht-inv-host-close { display: none; }
.ht-inv-host.is-fullscreen {
  left: 0; top: 0; width: 100vw; height: 100dvh; z-index: 2147483600;
  background: linear-gradient(180deg, rgba(10, 13, 26, 0.99), rgba(6, 9, 20, 0.99));
  padding: 2.2vh 2.2vw;
}
.ht-inv-host.is-fullscreen .ht-inv-host-close {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 14px; right: 14px; z-index: 5; cursor: pointer;
  width: 34px; height: 34px; border-radius: 9px;
  color: rgba(203, 213, 225, 0.9); background: rgba(20, 24, 42, 0.8); border: 1px solid rgba(148, 163, 184, 0.22);
}
.ht-inv-host.is-fullscreen .ht-inv-host-close:hover { background: rgba(248, 113, 113, 0.16); color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
/* Inside the full-screen 3D, keep the inventory's own modals above the canvas. */
.ht-inv-host.is-fullscreen .ht-qa-backdrop,
.ht-inv-host.is-fullscreen .ht-overview { z-index: 2147483646 !important; }

/* ── Pop-in animation for opened modals ────────────────────────────────────── */
@keyframes ht-pop-in { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
.ht-modal-overlay.active .ht-modal,
.ht-inv-host .ht-qa-backdrop.is-open .ht-qa-modal { animation: ht-pop-in 0.34s cubic-bezier(0.22, 1, 0.32, 1) both; }
/* The inventory's Overview slides up into view when opened from the dashboard. */
.ht-inv-host .ht-overview[aria-hidden="false"] { animation: ht-pop-in 0.34s cubic-bezier(0.22, 1, 0.32, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .ht-modal-overlay.active .ht-modal,
  .ht-inv-host .ht-qa-backdrop.is-open .ht-qa-modal,
  .ht-inv-host .ht-overview[aria-hidden="false"] { animation: none; }
}

/* ── To-Do ─────────────────────────────────────────────────────────────────── */
.ht-todo-add { display: flex; gap: 7px; margin-bottom: 11px; }
.ht-todo-input, .ht-todo-prio { background: rgba(8, 12, 26, 0.7); border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 9px; color: #f1f5ff; font-size: 12.5px; padding: 8px 10px; outline: 0; }
.ht-todo-input { flex: 1 1 auto; min-width: 0; }
.ht-todo-input:focus { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16); }
.ht-todo-prio { flex: 0 0 auto; cursor: pointer; font-weight: 600; }
.ht-todo-list { display: flex; flex-direction: column; gap: 7px; }
.ht-todo-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(8, 12, 26, 0.45); border: 1px solid rgba(148, 163, 184, 0.12); border-left: 3px solid var(--prio, #38bdf8); transition: opacity 0.2s ease; }
.ht-todo-card.is-done { opacity: 0.55; }
.ht-todo-main { flex: 1 1 auto; min-width: 0; }
.ht-todo-text { font-size: 13px; font-weight: 500; color: #eef2ff; }
.ht-todo-card.is-done .ht-todo-text { text-decoration: line-through; color: rgba(148, 163, 184, 0.8); }
.ht-todo-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 10.5px; color: rgba(148, 163, 184, 0.7); }
.ht-prio-pill { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; border: 1px solid; }

/* ── Schedule ──────────────────────────────────────────────────────────────── */
.ht-sched-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 100%; }
.ht-sched-col { border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 11px; background: rgba(8, 12, 26, 0.4); padding: 7px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ht-sched-col.is-today { border-color: rgba(56, 189, 248, 0.45); background: rgba(8, 30, 50, 0.4); }
.ht-sched-colhd { display: flex; align-items: center; gap: 5px; padding-bottom: 5px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.ht-sched-day { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(203, 213, 225, 0.85); }
.ht-sched-col.is-today .ht-sched-day { color: #7dd3fc; }
.ht-sched-todaytag { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #0b1020; background: #38bdf8; padding: 1px 4px; border-radius: 3px; }
.ht-sched-add { width: 20px; height: 20px; margin-left: auto; }
.ht-sched-entries { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 0; }
.ht-sched-entry { position: relative; padding: 6px 8px; border-radius: 8px; background: rgba(13, 19, 36, 0.7); border: 1px solid rgba(148, 163, 184, 0.14); border-left: 2.5px solid #38bdf8; }
.ht-sched-time { display: block; font-size: 9px; font-weight: 700; color: #7dd3fc; }
.ht-sched-title { display: block; font-size: 11.5px; font-weight: 600; color: #eef2ff; line-height: 1.3; }
.ht-sched-notes { display: block; font-size: 10px; color: rgba(148, 163, 184, 0.75); margin-top: 2px; line-height: 1.3; }
.ht-sched-del { position: absolute; top: 3px; right: 4px; width: 15px; height: 15px; border: 0; border-radius: 4px; background: transparent; color: rgba(148, 163, 184, 0.5); font-size: 13px; line-height: 1; cursor: pointer; }
.ht-sched-del:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.15); }
.ht-sched-empty { font-size: 10px; color: rgba(148, 163, 184, 0.3); text-align: center; padding: 6px 0; }

/* ── Buy List ──────────────────────────────────────────────────────────────── */
.ht-buy-list { display: flex; flex-direction: column; gap: 7px; }
.ht-buy-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(8, 12, 26, 0.45); border: 1px solid rgba(148, 163, 184, 0.12); transition: opacity 0.2s ease; }
.ht-buy-card.is-bought { opacity: 0.5; }
.ht-buy-main { flex: 1 1 auto; min-width: 0; }
.ht-buy-row1 { display: flex; align-items: baseline; gap: 8px; }
.ht-buy-name { font-size: 13px; font-weight: 600; color: #f1f5ff; }
.ht-buy-card.is-bought .ht-buy-name { text-decoration: line-through; }
.ht-buy-qty { font-size: 10.5px; color: rgba(148, 163, 184, 0.7); font-weight: 600; }
.ht-buy-price { margin-left: auto; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #86efac; font-variant-numeric: tabular-nums; }
.ht-buy-why { font-size: 11.5px; color: rgba(203, 213, 225, 0.8); margin-top: 3px; line-height: 1.35; }
.ht-buy-meta { display: flex; gap: 5px; margin-top: 4px; font-size: 10px; color: rgba(148, 163, 184, 0.65); }
.ht-buy-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.ht-buy-bought { margin-top: 12px; }
.ht-buy-bought > summary { cursor: pointer; font-size: 11px; font-weight: 600; color: rgba(148, 163, 184, 0.75); padding: 5px 2px; list-style: none; }
.ht-buy-bought > summary::-webkit-details-marker { display: none; }
.ht-buy-bought > summary::before { content: "▸ "; }
.ht-buy-bought[open] > summary::before { content: "▾ "; }
.ht-buy-bought .ht-buy-list { margin-top: 7px; }

/* ── Empty states ──────────────────────────────────────────────────────────── */
.ht-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; }
.ht-empty-svg { color: rgba(124, 92, 220, 0.5); }
.ht-empty-msg { font-size: 12px; color: rgba(148, 163, 184, 0.7); }

/* ── Add/edit modal ────────────────────────────────────────────────────────── */
.ht-modal-overlay { position: fixed; inset: 0; z-index: 2147483630; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 4, 12, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }
.ht-modal-overlay.active { opacity: 1; pointer-events: auto; }
.ht-modal { --mc: #38bdf8; width: min(440px, 94vw); max-height: 90vh; overflow-y: auto; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, rgba(20, 24, 42, 0.99), rgba(12, 15, 28, 0.99)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.ht-modal-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.ht-modal-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mc); }
.ht-modal-title { margin: 4px 0 0; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 18px; font-weight: 600; color: #f1f5ff; }
.ht-modal-body { padding: 4px 18px 8px; display: flex; flex-direction: column; gap: 11px; }
.hth-field { display: flex; flex-direction: column; gap: 5px; }
.hth-field-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: rgba(148, 163, 184, 0.8); }
.hth-field-lbl i { color: #fca5a5; font-style: normal; }
.ht-input { background: rgba(8, 12, 26, 0.8); border: 1px solid rgba(148, 163, 184, 0.26); border-radius: 10px; color: #f1f5ff; font-family: inherit; font-size: 13px; padding: 9px 11px; outline: 0; width: 100%; resize: vertical; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.ht-input:focus { border-color: var(--mc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mc) 22%, transparent); }
.ht-modal-err { font-size: 11.5px; color: #fca5a5; }
.ht-modal-foot { display: flex; gap: 9px; padding: 8px 18px 18px; }
.ht-modal-foot .hth-btn { flex: 1 1 0; justify-content: center; padding: 10px; }
.ht-modal-foot .hth-btn-primary { background: linear-gradient(135deg, var(--mc), color-mix(in srgb, var(--mc) 55%, #7c3aed)); border-color: color-mix(in srgb, var(--mc) 60%, transparent); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ht-hub { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; min-height: 0; }
  .ht-panel-inventory { grid-column: 1; grid-row: auto; }
  .ht-panel-todo      { grid-column: 2; grid-row: auto; }
  .ht-panel-buylist   { grid-column: 1; grid-row: auto; }
  .ht-panel-doing     { grid-column: 2; grid-row: auto; }
  .ht-panel-schedule  { grid-column: 1 / -1; grid-row: auto; }
  .ht-panel-receipts  { grid-column: 1 / -1; grid-row: auto; }
  .ht-panel { max-height: 70vh; }
}
@media (max-width: 680px) {
  .ht-hub { grid-template-columns: 1fr; }
  .ht-panel { grid-column: 1 !important; }
  .ht-sched-board { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-modal-overlay, .ht-check .ht-check-path, .ht-inv-shelf-fill, .ht-inv-rack-barfill { transition: none; }
}

/* ── Grow cycle: bar above the board + (CYCLE) entry variant ─────────────────*/
/* Schedule body stacks the cycle bar over the board; the board fills the rest. */
.ht-panel-schedule .ht-panel-body { display: flex; flex-direction: column; gap: 10px; }
.ht-panel-schedule .ht-sched-board { flex: 1 1 0; height: auto; min-height: 0; }

.ht-cycle-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 12px;
  border-radius: 11px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(10, 14, 28, 0.55); }
.ht-cycle-bar.is-active { border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.14), rgba(56, 189, 248, 0.07)); }
.ht-cycle-bar.is-due { border-color: rgba(56, 189, 248, 0.45); }
.ht-cycle-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(203, 213, 225, 0.85); }
.ht-cycle-status b { color: #eef2ff; font-weight: 700; }
.ht-cycle-sub { margin-left: 6px; font-size: 10.5px; font-weight: 600; color: rgba(148, 163, 184, 0.7); }
.ht-cycle-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: rgba(148, 163, 184, 0.45); }
.ht-cycle-dot.on { background: #a78bfa; }
.ht-cycle-bar.is-due .ht-cycle-dot { background: #38bdf8; }
.ht-cycle-track { flex: 1 1 110px; min-width: 90px; height: 6px; border-radius: 4px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.ht-cycle-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #38bdf8, #a78bfa); transition: width 0.5s cubic-bezier(0.22, 1, 0.32, 1); }
.ht-cycle-bar.is-over .ht-cycle-fill { background: linear-gradient(90deg, #a78bfa, #f472b6); }
.ht-cycle-bar .hth-btn { margin-left: auto; }

.ht-sched-entry.is-cycle { border-left-color: #a78bfa; background: linear-gradient(120deg, rgba(124, 58, 237, 0.16), rgba(13, 19, 36, 0.7)); }
.ht-sched-entry.is-cycle .ht-sched-title { display: flex; align-items: center; gap: 4px; color: #ddd6fe; }
.ht-sched-cyc-ic { flex: 0 0 auto; color: #a78bfa; }

@media (prefers-reduced-motion: no-preference) {
  .ht-cycle-dot.on, .ht-cycle-bar.is-due .ht-cycle-dot { animation: htCycPulse 2.4s ease-in-out infinite; }
  @keyframes htCycPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5); } 50% { box-shadow: 0 0 0 5px rgba(167, 139, 250, 0); } }
}

/* ── Confirmation modal (cycle start / end) ─────────────────────────────────*/
.ht-modal-confirm { max-width: 440px; }
.ht-confirm-msg { font-size: 13px; line-height: 1.55; color: rgba(203, 213, 225, 0.9); }
.ht-confirm-msg p { margin: 0 0 10px; }
.ht-confirm-msg p:last-child { margin-bottom: 0; }
.ht-confirm-msg b { color: #eef2ff; font-weight: 700; }
.ht-confirm-list { list-style: none; margin: 12px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ht-confirm-list li { display: flex; align-items: flex-start; padding: 9px 11px; border-radius: 9px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid rgba(148, 163, 184, 0.12); font-size: 12.5px; line-height: 1.45; }
.ht-confirm-ic { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 6px 9px 0 0; flex: 0 0 7px; }
.ht-confirm-ic.ic-fill { background: #a78bfa; }
.ht-confirm-ic.ic-clock { background: #38bdf8; }
.ht-confirm-range { color: rgba(148, 163, 184, 0.85); font-weight: 600; white-space: nowrap; }
.ht-confirm-note { font-size: 12px; color: rgba(148, 163, 184, 0.8); }
.ht-modal-foot .hth-btn-danger { background: linear-gradient(135deg, #fbbf24, #f97316); border-color: rgba(251, 191, 36, 0.55); color: #1a1206; }
.ht-modal-foot .hth-btn-danger:hover { box-shadow: 0 8px 24px -10px rgba(251, 191, 36, 0.7); }

/* ── Currently Doing — live bento panel ─────────────────────────────────────*/
.ht-doing-body { display: flex; flex-direction: column; gap: 9px; }
.ht-doing-card { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border-radius: 12px;
  background: rgba(13, 19, 36, 0.7); border: 1px solid rgba(148, 163, 184, 0.14); border-left: 2.5px solid #22d3ee; }
.ht-doing-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #04121c; background: linear-gradient(135deg, #22d3ee, #a78bfa); }
.ht-doing-main { flex: 1 1 0; min-width: 0; }
.ht-doing-row1 { display: flex; align-items: baseline; gap: 8px; }
.ht-doing-name { font-size: 13px; font-weight: 700; color: #eef2ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-doing-when { font-size: 10px; color: rgba(148, 163, 184, 0.7); margin-left: auto; white-space: nowrap; }
.ht-doing-activity { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: #67e8f9;
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.22); padding: 2px 9px; border-radius: 999px; }
.ht-doing-note { margin-top: 6px; font-size: 11px; color: rgba(148, 163, 184, 0.8); line-height: 1.4; }
.ht-doing-card .ht-del { width: 24px; height: 24px; }

/* ── Chip picker (modal preset selections) ──────────────────────────────────*/
.hth-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hth-chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: rgba(203, 213, 225, 0.9);
  background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.22);
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease; }
.hth-chip:hover { background: rgba(148, 163, 184, 0.16); color: #eef2ff; }
.hth-chip:active { transform: scale(0.96); }
.hth-chip.is-active { color: #04121c; background: var(--mc, #38bdf8); border-color: var(--mc, #38bdf8); font-weight: 700; box-shadow: 0 6px 18px -8px var(--mc, #38bdf8); }
.hth-chip-other { color: rgba(148, 163, 184, 0.85); border-style: dashed; }
.hth-chip-other.is-active { color: #04121c; }
.hth-chip-custom { display: none; margin-top: 8px; }
.hth-chip-custom.show { display: block; }

/* ── Modal header icon + large variant ──────────────────────────────────────*/
.ht-modal-ic { flex: 0 0 auto; margin-top: 2px; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; color: var(--mc);
  background: color-mix(in srgb, var(--mc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--mc) 32%, transparent); }
.ht-modal-htext { flex: 1 1 0; min-width: 0; }

.ht-modal-lg { width: min(560px, 94vw); }
.ht-modal-lg .ht-modal-hd { padding: 22px 22px 14px; gap: 13px; }
.ht-modal-lg .ht-modal-title { font-size: 21px; }
.ht-modal-lg .ht-modal-body { padding: 6px 22px 12px; gap: 16px; }
.ht-modal-lg .ht-modal-foot { padding: 12px 22px 22px; }
.ht-modal-lg .hth-field-lbl { font-size: 12px; }
.ht-modal-lg .ht-input { font-size: 14px; padding: 12px 13px; border-radius: 11px; }
.ht-modal-lg .ht-modal-foot .hth-btn { padding: 12px; font-size: 13px; }

/* ── Dropdown (select) field ────────────────────────────────────────────────*/
.hth-select-wrap { position: relative; width: 100%; }
.hth-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 34px; cursor: pointer; }
.hth-select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: rgba(148, 163, 184, 0.85); pointer-events: none; }
.hth-select option { background: #12182a; color: #f1f5ff; }
.hth-custom { display: none; margin-top: 8px; }
.hth-custom.show { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   POLISH PASS — per-panel accents, glass depth, hover lift, motion graphics.
   Continuous motion is gated behind prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════════════ */

/* Per-panel accent colour (inherited by descendants via var) */
.ht-panel-inventory { --accent: #38bdf8; }
.ht-panel-todo      { --accent: #a78bfa; }
.ht-panel-buylist   { --accent: #34d399; }
.ht-panel-schedule  { --accent: #38bdf8; }
.ht-panel-doing     { --accent: #22d3ee; }

/* Panel glass: top light-reflection line + accent hover glow (no layout shift) */
.ht-panel { position: relative; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.ht-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent, #38bdf8) 60%, transparent), transparent); }
.ht-panel:hover { border-color: color-mix(in srgb, var(--accent, #38bdf8) 30%, rgba(148, 163, 184, 0.14));
  box-shadow: 0 18px 46px -28px color-mix(in srgb, var(--accent, #38bdf8) 75%, transparent); }

/* Header icon badge: accent tint + soft breathing glow */
.ht-panel-ic { color: var(--accent, #7dd3fc); background: color-mix(in srgb, var(--accent, #38bdf8) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent, #38bdf8) 32%, transparent); }
.ht-panel-count { color: color-mix(in srgb, var(--accent, #94a3b8) 78%, #e2e8f0);
  background: color-mix(in srgb, var(--accent, #94a3b8) 12%, transparent); border-color: color-mix(in srgb, var(--accent, #94a3b8) 26%, transparent); }

/* Card hover lift + accent shadow (keeps left-accent borders intact) */
.ht-todo-card, .ht-buy-card, .ht-doing-card { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.2s ease; }
.ht-todo-card:hover, .ht-buy-card:hover, .ht-doing-card:hover { transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--accent, #38bdf8) 80%, transparent); }
.ht-sched-entry { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ht-sched-entry:hover { transform: translateY(-1px); box-shadow: 0 7px 18px -12px color-mix(in srgb, var(--accent, #38bdf8) 80%, transparent); }
.ht-sched-col { transition: border-color 0.2s ease, background 0.2s ease; }
.ht-sched-col:hover { border-color: color-mix(in srgb, var(--accent, #38bdf8) 28%, rgba(148, 163, 184, 0.12)); }

/* Inventory: soft glow behind the occupancy ring */
.ht-inv-ring { position: relative; isolation: isolate; }
.ht-inv-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%); z-index: -1; }

/* Currently Doing: avatar presence pulse + activity equalizer (the "live" feel) */
.ht-doing-av-wrap { position: relative; flex: 0 0 32px; }
.ht-doing-pulse { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #34d399; border: 2px solid #0c1020; }
.ht-doing-activity { display: inline-flex; align-items: center; gap: 6px; }
.ht-doing-eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.ht-doing-eq i { width: 2px; height: 40%; border-radius: 1px; background: currentColor; }

/* Focus-visible rings (keyboard nav) */
.hth-btn:focus-visible, .ht-icon-btn:focus-visible, .ht-input:focus-visible, .hth-chip:focus-visible, .ht-check:focus-visible, .ht-cycle-start:focus-visible, .ht-cycle-end:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #38bdf8) 70%, transparent); outline-offset: 2px; }

/* Empty-state art: subtle drop-shadow */
.ht-empty-svg { filter: drop-shadow(0 6px 16px rgba(124, 92, 220, 0.28)); }

@media (prefers-reduced-motion: no-preference) {
  .ht-panel-ic { animation: htIcGlow 4.5s ease-in-out infinite; }
  @keyframes htIcGlow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 16px -3px color-mix(in srgb, var(--accent, #38bdf8) 55%, transparent); } }

  .ht-inv-ring::before { animation: htRingGlow 3.6s ease-in-out infinite; }
  @keyframes htRingGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

  .ht-doing-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid #34d399; animation: htPresence 2s ease-out infinite; }
  @keyframes htPresence { 0% { transform: scale(0.6); opacity: 0.85; } 100% { transform: scale(1.9); opacity: 0; } }

  .ht-doing-eq i { animation: htEq 0.9s ease-in-out infinite; }
  .ht-doing-eq i:nth-child(2) { animation-delay: 0.16s; }
  .ht-doing-eq i:nth-child(3) { animation-delay: 0.32s; }
  @keyframes htEq { 0%, 100% { height: 28%; } 50% { height: 100%; } }

  .ht-empty-svg { animation: htFloat 3.6s ease-in-out infinite; }
  @keyframes htFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}

/* ── Reimbursements panel ────────────────────────────────────────────────────*/
.ht-panel-receipts { --accent: #fbbf24; }
.ht-rcpt-list { display: flex; flex-direction: column; gap: 8px; }
.ht-rcpt-card { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; row-gap: 8px; padding: 9px 12px; border-radius: 12px;
  background: rgba(8, 12, 26, 0.45); border: 1px solid rgba(148, 163, 184, 0.12); border-left: 3px solid var(--st, #fbbf24);
  transition: transform 0.16s ease, box-shadow 0.16s ease; }
.ht-rcpt-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--st, #fbbf24) 75%, transparent); }
.ht-rcpt-thumb { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(8, 12, 26, 0.6); color: rgba(148, 163, 184, 0.5);
  display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.15s ease, transform 0.15s ease; }
.ht-rcpt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-rcpt-thumb.is-empty { cursor: default; }
.ht-rcpt-thumb:not(.is-empty):hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1.04); }
.ht-rcpt-amt { flex: 0 0 auto; min-width: 74px; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: #fde68a; font-variant-numeric: tabular-nums; }
.ht-rcpt-main { flex: 1 1 160px; min-width: 0; }
.ht-rcpt-for { font-size: 13px; font-weight: 600; color: #f1f5ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-rcpt-meta { font-size: 11px; color: rgba(148, 163, 184, 0.78); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-rcpt-note { color: rgba(203, 213, 225, 0.72); }
.ht-rcpt-status { flex: 0 0 auto; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.ht-rcpt-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ht-rcpt-act { padding: 6px 11px; font-size: 11.5px; }
.ht-rcpt-decline:hover { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.12); }

/* ── Image dropzone (modal) ──────────────────────────────────────────────────*/
.hth-drop { position: relative; min-height: 92px; border: 1.5px dashed rgba(148, 163, 184, 0.35); border-radius: 11px;
  background: rgba(8, 12, 26, 0.5); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease; }
.hth-drop:hover, .hth-drop:focus-visible, .hth-drop.is-drag { outline: none; border-color: color-mix(in srgb, var(--mc, #fbbf24) 65%, transparent); background: rgba(8, 12, 26, 0.72); }
.hth-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px; text-align: center; color: rgba(148, 163, 184, 0.8); font-size: 12px; }
.hth-drop.has-img .hth-drop-empty { display: none; }
.hth-drop-preview { display: none; position: relative; width: 100%; }
.hth-drop.has-img .hth-drop-preview { display: block; }
.hth-drop-preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #06080f; }
.hth-drop-clear { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(8, 12, 26, 0.85); }
.hth-drop-clear:hover { background: rgba(248, 113, 113, 0.7); }

/* ── Prefixed input ($) ──────────────────────────────────────────────────────*/
.hth-prefixwrap { position: relative; }
.hth-prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: rgba(148, 163, 184, 0.9); font-size: 14px; font-weight: 600; }
.hth-prefixwrap .ht-input { padding-left: 26px; }

/* ── Receipt photo lightbox ──────────────────────────────────────────────────*/
.ht-photo-view { position: fixed; inset: 0; z-index: 2147483640; display: flex; align-items: center; justify-content: center; padding: 5vh 5vw; cursor: zoom-out;
  background: rgba(2, 4, 12, 0.9); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity 0.18s ease; }
.ht-photo-view.active { opacity: 1; }
.ht-photo-view img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); cursor: default; }
.ht-photo-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #e2e8f0; background: rgba(20, 24, 42, 0.85); border: 1px solid rgba(148, 163, 184, 0.3); }
.ht-photo-close:hover { background: rgba(248, 113, 113, 0.3); color: #fecaca; }
@media (prefers-reduced-motion: no-preference) {
  .ht-photo-view.active img { animation: ht-pop-in 0.32s cubic-bezier(0.22, 1, 0.32, 1) both; }
}

/* ── Buy List add modal: link-first + Manual toggle + Suggest ────────────────*/
.ht-buy-modes { display: flex; gap: 6px; padding: 2px 22px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.ht-buy-mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 13px; border: 0; background: transparent;
  border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 12px; font-weight: 600; color: rgba(148, 163, 184, 0.85); transition: color 0.15s ease; }
.ht-buy-mode:hover { color: #e8eef7; }
.ht-buy-mode.is-active { color: #6ee7b7; border-bottom-color: #34d399; }
.ht-buy-modal .ht-modal-body { padding-top: 14px; }
.ht-buy-hint { margin: -3px 0 2px; font-size: 11px; line-height: 1.45; color: rgba(148, 163, 184, 0.72); }
.ht-buy-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 11px; }
.ht-why-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ht-suggest { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.32); transition: background 0.15s ease; }
.ht-suggest:hover { background: rgba(52, 211, 153, 0.22); }
/* Manual mode just sends the link field to the bottom and hides the hint */
.ht-buy-modal .ht-modal-body[data-mode="manual"] .ht-buy-linkfield { order: 5; }
.ht-buy-modal .ht-modal-body[data-mode="manual"] .ht-buy-hint { display: none; }
.ht-buy-modal .ht-modal-err { order: 10; }

/* ── Buy modal: link auto-fetch + product preview ───────────────────────────*/
.ht-buy-linkrow { display: flex; gap: 8px; align-items: stretch; }
.ht-buy-linkrow .ht-input { flex: 1 1 auto; min-width: 0; }
.ht-buy-linkrow .hth-btn { flex: 0 0 auto; padding: 0 16px; }
.ht-buy-fetchstatus { margin-top: 7px; font-size: 11.5px; line-height: 1.4; display: flex; align-items: center; gap: 7px; }
.ht-buy-fetchstatus.is-loading { color: rgba(148, 163, 184, 0.9); }
.ht-buy-fetchstatus.is-ok { color: #6ee7b7; }
.ht-buy-fetchstatus.is-warn { color: #fcd34d; }
.ht-spin { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, 0.3); border-top-color: #34d399; animation: ht-spin 0.7s linear infinite; }
@keyframes ht-spin { to { transform: rotate(360deg); } }
.ht-buy-imgwrap { position: relative; align-self: center; max-width: 180px; border-radius: 11px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.18); background: #06080f; }
.ht-buy-imgwrap img { display: block; width: 100%; max-height: 160px; object-fit: contain; }
.ht-buy-imgclear { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 7px; cursor: pointer; color: #fff; background: rgba(8, 12, 26, 0.8); display: inline-flex; align-items: center; justify-content: center; }
.ht-buy-imgclear:hover { background: rgba(248, 113, 113, 0.7); }

/* ── Buy card: product thumbnail + scraped description ──────────────────────*/
.ht-buy-thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: #06080f; border: 1px solid rgba(148, 163, 184, 0.16); display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.15s ease; }
.ht-buy-thumb:hover { border-color: rgba(52, 211, 153, 0.45); }
.ht-buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ht-buy-desc { font-size: 11px; color: rgba(148, 163, 184, 0.78); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Buy List calculator (subtotal · WA tax · total) ────────────────────────*/
.ht-buy-totals { flex: 0 0 auto; border-top: 1px solid rgba(148, 163, 184, 0.14); padding: 9px 14px 11px;
  background: linear-gradient(180deg, rgba(8, 12, 26, 0.4), rgba(8, 12, 26, 0.62)); font-size: 12.5px; }
.ht-buy-trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; color: rgba(203, 213, 225, 0.85); }
.ht-buy-trow b { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; color: #e8eef7; font-variant-numeric: tabular-nums; }
.ht-buy-trow i { font-style: normal; color: rgba(148, 163, 184, 0.6); font-size: 11px; }
.ht-buy-taxlbl { display: inline-flex; align-items: center; gap: 7px; }
.ht-buy-rate { display: inline-flex; align-items: center; gap: 2px; }
.ht-buy-rate input { width: 54px; text-align: right; background: rgba(8, 12, 26, 0.8); border: 1px solid rgba(148, 163, 184, 0.26); border-radius: 7px;
  color: #f1f5ff; font-size: 12px; padding: 3px 6px; outline: 0; font-variant-numeric: tabular-nums; }
.ht-buy-rate input:focus { border-color: #34d399; box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18); }
.ht-buy-rate i { font-style: normal; color: rgba(148, 163, 184, 0.7); }
.ht-buy-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 0 3px; }
.ht-buy-presets-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: rgba(148, 163, 184, 0.6); margin-right: 1px; }
.ht-buy-presets button { cursor: pointer; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  color: rgba(203, 213, 225, 0.85); background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.2); transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease; }
.ht-buy-presets button:hover { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
.ht-buy-grand { margin-top: 4px; padding-top: 7px; border-top: 1px dashed rgba(148, 163, 184, 0.2); }
.ht-buy-grand span { font-weight: 600; color: #e8eef7; }
.ht-buy-grand b { font-size: 15px; color: #86efac; display: inline-block; transform-origin: right center; }

/* ── Per-module expand-to-modal ─────────────────────────────────────────────*/
.ht-panel-hd-r { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ht-panel-expand { width: 26px; height: 26px; }

.ht-exp-overlay { position: fixed; inset: 0; z-index: 90000; display: flex; align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(2, 4, 12, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.2s ease; }
.ht-exp-overlay.active { opacity: 1; }
.ht-exp-wrap { position: relative; width: min(980px, 95vw); height: min(84vh, 820px); }
.ht-exp-panel { width: 100%; height: 100%; box-shadow: 0 40px 110px rgba(0, 0, 0, 0.62); }
.ht-exp-close { position: absolute; top: -16px; right: -16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #e2e8f0; background: rgba(20, 24, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); transition: background 0.15s ease, color 0.15s ease; }
.ht-exp-close:hover { background: rgba(248, 113, 113, 0.3); color: #fecaca; }
.ht-exp-panel .ht-panel-expand { display: none; }            /* no expand-in-expand */
.ht-panel-inventory .ht-panel-expand { display: none; }      /* Inventory expands via its own 3D / Overview */
.ht-exp-panel .ht-panel-hd { padding: 16px 18px; }
.ht-exp-panel .ht-panel-title { font-size: 17px; }
.ht-exp-panel .ht-panel-ic { width: 32px; height: 32px; }
.ht-exp-panel .ht-panel-body { padding: 16px 18px; }

@media (max-width: 560px) {
  .ht-exp-wrap { width: 94vw; height: 88vh; }
  .ht-exp-close { top: 8px; right: 8px; background: rgba(20, 24, 42, 0.85); }
}

/* ════════════════════════════════════════════════════════════════════════════
   ── Light theme ──
   This file shipped with ZERO light overrides, so every dark-glass panel,
   white-tint fill, near-white label and bright violet/emerald/amber accent
   read as illegible dark-on-light (or invisible-on-light) blocks under
   html[data-theme="light"]. Everything below is scoped to that selector, so
   DARK MODE IS UNTOUCHED. Mapping used:
     dark panel fill  rgba(13,19,36,x)         → frosted white glass (--glass-*)
     white glass      rgba(255,255,255,0.02–.1)→ subtle purple-tint / --glass-*
     slate borders    rgba(148,163,184,x)      → rgba(130,100,200,0.18/.32)
     near-white text  #f1f5ff / #eef2ff / #e8eef7 → #13103a / #0f172a
     violet text      #c7b6ff / rgba(196,181,253,x) → purple #7c3aed / #5b21b6
     emerald text     #86efac / #6ee7b7        → emerald #059669 / #047857
     amber text       #fde68a / rgba(252,211,77,1) → amber #b45309 / #92400e
     cyan text        #67e8f9 / #7dd3fc        → cyan #0369a1 / #0284c7
     black shadow     rgba(0,0,0,0.4–0.6)      → rgba(80,90,160,0.12–0.20)
   Modal/lightbox backdrop scrims are LEFT dark-tinted (they're dim layers).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Bento panels ─────────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-panel {
  border-color: rgba(130, 100, 200, 0.18);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(2, 132, 199, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.68);
}
html[data-theme="light"] .ht-panel-hd { border-bottom-color: rgba(130, 100, 200, 0.16); }
html[data-theme="light"] .ht-panel-title { color: #13103a; }
html[data-theme="light"] .ht-panel-count {
  color: rgba(19, 16, 58, 0.72);
  background: rgba(130, 100, 200, 0.10);
  border-color: rgba(130, 100, 200, 0.24);
}
html[data-theme="light"] .ht-panel-body::-webkit-scrollbar-thumb { background: rgba(130, 100, 200, 0.30); }
html[data-theme="light"] .ht-panel:hover {
  border-color: color-mix(in srgb, var(--accent, #0284c7) 34%, rgba(130, 100, 200, 0.18));
  box-shadow: 0 18px 46px -28px color-mix(in srgb, var(--accent, #0284c7) 55%, transparent);
}

/* Per-panel accents darkened so the icon badges / hover glows / focus rings
   hit AA on white (the dark-mode --accent hexes are too light on white). */
html[data-theme="light"] .ht-panel-inventory { --accent: #0284c7; }
html[data-theme="light"] .ht-panel-todo      { --accent: #7c3aed; }
html[data-theme="light"] .ht-panel-buylist   { --accent: #059669; }
html[data-theme="light"] .ht-panel-schedule  { --accent: #0284c7; }
html[data-theme="light"] .ht-panel-doing     { --accent: #0891b2; }
html[data-theme="light"] .ht-panel-receipts  { --accent: #d97706; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
html[data-theme="light"] .hth-btn {
  background: rgba(130, 100, 200, 0.08);
  border-color: rgba(130, 100, 200, 0.26);
  color: rgba(19, 16, 58, 0.80);
}
html[data-theme="light"] .hth-btn:hover { background: rgba(130, 100, 200, 0.16); }
/* .hth-btn-primary keeps its vivid gradient + white text — reads fine on light. */
html[data-theme="light"] .ht-icon-btn {
  background: rgba(130, 100, 200, 0.07);
  border-color: rgba(130, 100, 200, 0.22);
  color: rgba(19, 16, 58, 0.72);
}
html[data-theme="light"] .ht-icon-btn:hover { background: rgba(130, 100, 200, 0.15); color: #13103a; }
html[data-theme="light"] .ht-del:hover { background: rgba(225, 29, 72, 0.12); color: #be123c; border-color: rgba(225, 29, 72, 0.40); }
html[data-theme="light"] .ht-buy-link:hover { background: rgba(2, 132, 199, 0.12); color: #0369a1; border-color: rgba(2, 132, 199, 0.40); }

/* ── Animated checkbox ────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-check {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(130, 100, 200, 0.40);
  color: #059669;
}
html[data-theme="light"] .ht-check:hover { border-color: rgba(5, 150, 105, 0.60); }
html[data-theme="light"] .is-done .ht-check,
html[data-theme="light"] .is-bought .ht-check { background: rgba(5, 150, 105, 0.16); border-color: rgba(5, 150, 105, 0.65); }

/* ── Inventory panel ──────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-inv-ring-pct { fill: #13103a; }
html[data-theme="light"] .ht-inv-ring-sub { fill: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-inv-rack {
  border-color: rgba(130, 100, 200, 0.16);
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="light"] .ht-inv-rack-label { color: #7c3aed; }
html[data-theme="light"] .ht-inv-rack-occ { color: #13103a; }
html[data-theme="light"] .ht-inv-rack-occ i { color: rgba(19, 16, 58, 0.50); }
html[data-theme="light"] .ht-inv-shelf { background: rgba(130, 100, 200, 0.10); }
html[data-theme="light"] .ht-inv-shelf-n { color: rgba(19, 16, 58, 0.70); }
html[data-theme="light"] .ht-inv-rack-bar { background: rgba(130, 100, 200, 0.14); }
/* the shelf/rack fill gradients (#38bdf8→#a78bfa) stay vivid — fine on white. */
html[data-theme="light"] .ht-inv-ring::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.16), transparent 68%);
}

/* Full-screen 3D host chrome */
html[data-theme="light"] .ht-inv-host.is-fullscreen {
  background: linear-gradient(180deg, rgba(240, 243, 252, 0.99), rgba(221, 228, 246, 0.99));
}
html[data-theme="light"] .ht-inv-host.is-fullscreen .ht-inv-host-close {
  color: rgba(19, 16, 58, 0.78);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(130, 100, 200, 0.24);
}
html[data-theme="light"] .ht-inv-host.is-fullscreen .ht-inv-host-close:hover {
  background: rgba(225, 29, 72, 0.12); color: #be123c; border-color: rgba(225, 29, 72, 0.40);
}

/* ── To-Do ────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-todo-input,
html[data-theme="light"] .ht-todo-prio {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(130, 100, 200, 0.26);
  color: #13103a;
}
html[data-theme="light"] .ht-todo-input:focus {
  border-color: rgba(2, 132, 199, 0.60);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.16);
}
html[data-theme="light"] .ht-todo-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(130, 100, 200, 0.14);
}
html[data-theme="light"] .ht-todo-text { color: #13103a; }
html[data-theme="light"] .ht-todo-card.is-done .ht-todo-text { color: rgba(19, 16, 58, 0.50); }
html[data-theme="light"] .ht-todo-meta { color: rgba(19, 16, 58, 0.55); }

/* ── Schedule ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-sched-col {
  border-color: rgba(130, 100, 200, 0.14);
  background: rgba(255, 255, 255, 0.50);
}
html[data-theme="light"] .ht-sched-col.is-today {
  border-color: rgba(2, 132, 199, 0.45);
  background: rgba(2, 132, 199, 0.08);
}
html[data-theme="light"] .ht-sched-colhd { border-bottom-color: rgba(130, 100, 200, 0.14); }
html[data-theme="light"] .ht-sched-day { color: rgba(19, 16, 58, 0.72); }
html[data-theme="light"] .ht-sched-col.is-today .ht-sched-day { color: #0284c7; }
html[data-theme="light"] .ht-sched-entry {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(130, 100, 200, 0.16);
}
html[data-theme="light"] .ht-sched-time { color: #0369a1; }
html[data-theme="light"] .ht-sched-title { color: #13103a; }
html[data-theme="light"] .ht-sched-notes { color: rgba(19, 16, 58, 0.60); }
html[data-theme="light"] .ht-sched-del { color: rgba(19, 16, 58, 0.45); }
html[data-theme="light"] .ht-sched-del:hover { color: #be123c; background: rgba(225, 29, 72, 0.12); }
html[data-theme="light"] .ht-sched-empty { color: rgba(19, 16, 58, 0.35); }

/* ── Buy List ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-buy-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(130, 100, 200, 0.14);
}
html[data-theme="light"] .ht-buy-name { color: #13103a; }
html[data-theme="light"] .ht-buy-qty { color: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-buy-price { color: #059669; }
html[data-theme="light"] .ht-buy-why { color: rgba(19, 16, 58, 0.68); }
html[data-theme="light"] .ht-buy-meta { color: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-buy-bought > summary { color: rgba(19, 16, 58, 0.62); }
html[data-theme="light"] .ht-buy-desc { color: rgba(19, 16, 58, 0.62); }
html[data-theme="light"] .ht-buy-thumb { background: #eef0f6; border-color: rgba(130, 100, 200, 0.18); }

/* Buy list totals calculator */
html[data-theme="light"] .ht-buy-totals {
  border-top-color: rgba(130, 100, 200, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.78));
}
html[data-theme="light"] .ht-buy-trow { color: rgba(19, 16, 58, 0.72); }
html[data-theme="light"] .ht-buy-trow b { color: #13103a; }
html[data-theme="light"] .ht-buy-trow i { color: rgba(19, 16, 58, 0.50); }
html[data-theme="light"] .ht-buy-rate input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(130, 100, 200, 0.26);
  color: #13103a;
}
html[data-theme="light"] .ht-buy-rate input:focus { border-color: #059669; box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.18); }
html[data-theme="light"] .ht-buy-rate i { color: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-buy-presets-lbl { color: rgba(19, 16, 58, 0.50); }
html[data-theme="light"] .ht-buy-presets button {
  color: rgba(19, 16, 58, 0.72);
  background: rgba(130, 100, 200, 0.08);
  border-color: rgba(130, 100, 200, 0.20);
}
html[data-theme="light"] .ht-buy-presets button:hover { background: rgba(5, 150, 105, 0.14); color: #047857; border-color: rgba(5, 150, 105, 0.35); }
html[data-theme="light"] .ht-buy-grand { border-top-color: rgba(130, 100, 200, 0.22); }
html[data-theme="light"] .ht-buy-grand span { color: #13103a; }
html[data-theme="light"] .ht-buy-grand b { color: #059669; }

/* Buy add-modal: mode tabs + hint + suggest + link fetch status + image */
html[data-theme="light"] .ht-buy-modes { border-bottom-color: rgba(130, 100, 200, 0.14); }
html[data-theme="light"] .ht-buy-mode { color: rgba(19, 16, 58, 0.62); }
html[data-theme="light"] .ht-buy-mode:hover { color: #13103a; }
html[data-theme="light"] .ht-buy-mode.is-active { color: #047857; border-bottom-color: #059669; }
html[data-theme="light"] .ht-buy-hint { color: rgba(19, 16, 58, 0.58); }
html[data-theme="light"] .ht-suggest {
  color: #047857;
  background: rgba(5, 150, 105, 0.10);
  border-color: rgba(5, 150, 105, 0.32);
}
html[data-theme="light"] .ht-suggest:hover { background: rgba(5, 150, 105, 0.18); }
html[data-theme="light"] .ht-buy-fetchstatus.is-loading { color: rgba(19, 16, 58, 0.65); }
html[data-theme="light"] .ht-buy-fetchstatus.is-ok { color: #047857; }
html[data-theme="light"] .ht-buy-fetchstatus.is-warn { color: #b45309; }
html[data-theme="light"] .ht-spin { border-color: rgba(130, 100, 200, 0.30); border-top-color: #059669; }
html[data-theme="light"] .ht-buy-imgwrap { border-color: rgba(130, 100, 200, 0.18); background: #eef0f6; }
html[data-theme="light"] .ht-buy-imgclear { color: #fff; background: rgba(60, 70, 120, 0.78); }
html[data-theme="light"] .ht-buy-imgclear:hover { background: rgba(225, 29, 72, 0.70); }

/* ── Empty states ─────────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-empty-svg { color: rgba(124, 58, 237, 0.55); }
html[data-theme="light"] .ht-empty-msg { color: rgba(19, 16, 58, 0.60); }

/* ── Add/edit modal ───────────────────────────────────────────────────────── */
/* .ht-modal-overlay scrim left dark — it's the modal dim layer. */
html[data-theme="light"] .ht-modal {
  border-color: rgba(130, 100, 200, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 252, 0.98));
  box-shadow: 0 30px 90px rgba(80, 90, 160, 0.20);
}
html[data-theme="light"] .ht-modal-title { color: #13103a; }
/* Eyebrow + header-icon are --mc-driven (JS sets --mc to a light dark-mode
   accent hex, e.g. #a78bfa / #34d399 / #fbbf24). As small text / a thin badge
   those fail AA on the near-white modal, so pin them to a fixed dark accent
   in light mode. The --mc gradient on the primary button is left intact. */
html[data-theme="light"] .ht-modal-eyebrow { color: #6d28d9; }
html[data-theme="light"] .ht-modal-ic {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.28);
}
html[data-theme="light"] .hth-field-lbl { color: rgba(19, 16, 58, 0.68); }
html[data-theme="light"] .hth-field-lbl i { color: #e11d48; }
html[data-theme="light"] .ht-input {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(130, 100, 200, 0.28);
  color: #13103a;
}
html[data-theme="light"] .ht-modal-err { color: #be123c; }
html[data-theme="light"] .hth-select option { background: #ffffff; color: #13103a; }
html[data-theme="light"] .hth-select-arrow { color: rgba(19, 16, 58, 0.60); }

/* ── Chip picker ──────────────────────────────────────────────────────────── */
html[data-theme="light"] .hth-chip {
  color: rgba(19, 16, 58, 0.72);
  background: rgba(130, 100, 200, 0.08);
  border-color: rgba(130, 100, 200, 0.24);
}
html[data-theme="light"] .hth-chip:hover { background: rgba(130, 100, 200, 0.16); color: #13103a; }
/* .hth-chip.is-active keeps var(--mc) fill + dark text — the JS sets --mc. */
html[data-theme="light"] .hth-chip-other { color: rgba(19, 16, 58, 0.62); }

/* ── Confirmation modal ───────────────────────────────────────────────────── */
html[data-theme="light"] .ht-confirm-msg { color: rgba(19, 16, 58, 0.80); }
html[data-theme="light"] .ht-confirm-msg b { color: #13103a; }
html[data-theme="light"] .ht-confirm-list li {
  background: rgba(130, 100, 200, 0.06);
  border-color: rgba(130, 100, 200, 0.14);
}
html[data-theme="light"] .ht-confirm-range { color: rgba(19, 16, 58, 0.70); }
html[data-theme="light"] .ht-confirm-note { color: rgba(19, 16, 58, 0.65); }
/* ic-fill / ic-clock dots keep their vivid accent — small dots, fine on white.
   The .hth-btn-danger amber gradient + dark text also reads fine on light. */

/* ── Grow-cycle bar ───────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-cycle-bar {
  border-color: rgba(130, 100, 200, 0.18);
  background: rgba(255, 255, 255, 0.55);
}
html[data-theme="light"] .ht-cycle-bar.is-active {
  border-color: rgba(124, 58, 237, 0.40);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(2, 132, 199, 0.06));
}
html[data-theme="light"] .ht-cycle-bar.is-due { border-color: rgba(2, 132, 199, 0.45); }
html[data-theme="light"] .ht-cycle-status { color: rgba(19, 16, 58, 0.75); }
html[data-theme="light"] .ht-cycle-status b { color: #13103a; }
html[data-theme="light"] .ht-cycle-sub { color: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-cycle-dot { background: rgba(130, 100, 200, 0.40); }
html[data-theme="light"] .ht-cycle-dot.on { background: #7c3aed; }
html[data-theme="light"] .ht-cycle-bar.is-due .ht-cycle-dot { background: #0284c7; }
html[data-theme="light"] .ht-cycle-track { background: rgba(130, 100, 200, 0.16); }
/* .ht-cycle-fill gradient stays vivid. */
html[data-theme="light"] .ht-sched-entry.is-cycle {
  border-left-color: #7c3aed;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.70));
}
html[data-theme="light"] .ht-sched-entry.is-cycle .ht-sched-title { color: #5b21b6; }
html[data-theme="light"] .ht-sched-cyc-ic { color: #7c3aed; }

/* ── Currently Doing ──────────────────────────────────────────────────────── */
html[data-theme="light"] .ht-doing-card {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(130, 100, 200, 0.16);
  border-left-color: #0891b2;
}
html[data-theme="light"] .ht-doing-name { color: #13103a; }
html[data-theme="light"] .ht-doing-when { color: rgba(19, 16, 58, 0.55); }
html[data-theme="light"] .ht-doing-activity {
  color: #0e7490;
  background: rgba(8, 145, 178, 0.10);
  border-color: rgba(8, 145, 178, 0.28);
}
html[data-theme="light"] .ht-doing-note { color: rgba(19, 16, 58, 0.65); }
html[data-theme="light"] .ht-doing-pulse { border-color: #ffffff; }
/* .ht-doing-avatar keeps its vivid cyan→violet gradient with dark text. */

/* ── Reimbursements panel ─────────────────────────────────────────────────── */
html[data-theme="light"] .ht-rcpt-card {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(130, 100, 200, 0.14);
}
html[data-theme="light"] .ht-rcpt-thumb {
  border-color: rgba(130, 100, 200, 0.18);
  background: #eef0f6;
  color: rgba(19, 16, 58, 0.45);
}
html[data-theme="light"] .ht-rcpt-amt { color: #b45309; }
html[data-theme="light"] .ht-rcpt-for { color: #13103a; }
html[data-theme="light"] .ht-rcpt-meta { color: rgba(19, 16, 58, 0.62); }
html[data-theme="light"] .ht-rcpt-note { color: rgba(19, 16, 58, 0.58); }
html[data-theme="light"] .ht-rcpt-decline:hover { color: #be123c; border-color: rgba(225, 29, 72, 0.40); background: rgba(225, 29, 72, 0.10); }

/* ── Image dropzone (modal) ───────────────────────────────────────────────── */
html[data-theme="light"] .hth-drop {
  border-color: rgba(130, 100, 200, 0.35);
  background: rgba(255, 255, 255, 0.60);
}
html[data-theme="light"] .hth-drop:hover,
html[data-theme="light"] .hth-drop:focus-visible,
html[data-theme="light"] .hth-drop.is-drag { background: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .hth-drop-empty { color: rgba(19, 16, 58, 0.62); }
html[data-theme="light"] .hth-drop-preview img { background: #eef0f6; }
html[data-theme="light"] .hth-drop-clear { color: #fff; background: rgba(60, 70, 120, 0.82); }
html[data-theme="light"] .hth-drop-clear:hover { background: rgba(225, 29, 72, 0.70); }

/* ── Prefixed ($) input ───────────────────────────────────────────────────── */
html[data-theme="light"] .hth-prefix { color: rgba(19, 16, 58, 0.70); }

/* ── Receipt photo lightbox ───────────────────────────────────────────────── */
/* .ht-photo-view scrim left dark — it's the lightbox dim layer. */
html[data-theme="light"] .ht-photo-view img { box-shadow: 0 30px 90px rgba(80, 90, 160, 0.28); }
html[data-theme="light"] .ht-photo-close {
  color: rgba(19, 16, 58, 0.78);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(130, 100, 200, 0.26);
}
html[data-theme="light"] .ht-photo-close:hover { background: rgba(225, 29, 72, 0.16); color: #be123c; }

/* ── Per-module expand-to-modal ───────────────────────────────────────────── */
/* .ht-exp-overlay scrim left dark. */
html[data-theme="light"] .ht-exp-panel { box-shadow: 0 40px 110px rgba(80, 90, 160, 0.22); }
html[data-theme="light"] .ht-exp-close {
  color: rgba(19, 16, 58, 0.78);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(130, 100, 200, 0.26);
  box-shadow: 0 8px 28px rgba(80, 90, 160, 0.18);
}
html[data-theme="light"] .ht-exp-close:hover { background: rgba(225, 29, 72, 0.16); color: #be123c; }
@media (max-width: 560px) {
  html[data-theme="light"] .ht-exp-close { background: rgba(255, 255, 255, 0.90); }
}
