/* Incremental r18 UI: retain the established palette and semantic status colors. */
#view-hotlist .hotlist-layout { gap: 20px; }
#view-hotlist .hotlist-keywords { border: 0; border-radius: 16px; padding: 12px; gap: 6px; }
#view-hotlist .hotlist-keyword { padding: 14px 12px; border-radius: 10px; }
#view-hotlist .hotlist-keyword.active { background: var(--accent-soft); border-color: transparent; color: var(--nav); box-shadow: inset 3px 0 var(--accent); }
#view-hotlist .hotlist-results { border: 0; border-radius: 16px; container: hotlist / inline-size; }
#view-hotlist .hotlist-result-head { padding: 24px; align-items: center; flex-wrap: wrap; gap: 14px; }
#view-hotlist .hotlist-heading { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }
#view-hotlist .hotlist-result-head h3 { font-size: 19px; line-height: 1.45; }
#view-hotlist .hotlist-result-head p { line-height: 1.8; }
#view-hotlist .hotlist-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#view-hotlist .hotlist-head-actions button { min-height: 40px; padding: 9px 14px; border-radius: 9px; font-size: 12px; }
#view-hotlist [data-capture-hot] { background: var(--nav); color: var(--white); }
#view-hotlist [data-capture-hot]:disabled { opacity: .6; cursor: wait; }
#view-hotlist .hotlist-head-actions .danger-action { background: transparent; color: var(--muted); }
#view-hotlist .hotlist-head-actions .danger-action:hover { color: var(--nav); background: var(--accent-soft); }
#view-hotlist .hot-table { table-layout: fixed; min-width: 0; width: 100%; }
#view-hotlist .hot-table th { padding: 14px 16px; background: rgba(28,53,94,.025); }
#view-hotlist .hot-table td { padding: 22px 16px; vertical-align: top; overflow-wrap: anywhere; }
#view-hotlist .hot-table th:first-child { width: 80px; }
#view-hotlist .hot-table th:nth-child(3) { width: 136px; }
#view-hotlist .hot-table th:nth-child(4) { width: 126px; }
#view-hotlist .hot-table th:last-child { width: 112px; }
#view-hotlist .hot-rank-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 16px; color: var(--nav); font-variant-numeric: tabular-nums; }
#view-hotlist .hot-rank-number.is-top { background: var(--accent-soft); }
#view-hotlist .hot-change { display: block; width: fit-content; margin: 7px 0 0; font-size: 11px; line-height: 1.6; font-weight: 500; font-variant-numeric: tabular-nums; }
#view-hotlist .hot-change.is-neutral { color: var(--muted); font-size: 10px; }
#view-hotlist .rank-up, #view-hotlist .price-falling { color: #08775f; }
#view-hotlist .rank-down, #view-hotlist .price-rising { color: #c13e3e; }
#view-hotlist .hot-product-info { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
#view-hotlist .hot-image { position: relative; flex: 0 0 60px; width: 60px; height: 60px; overflow: hidden; border-radius: 10px; background: rgba(28,53,94,.04); }
#view-hotlist .hot-image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
#view-hotlist .hot-image img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
#view-hotlist .hot-image img[hidden] { display: none; }
#view-hotlist .hot-product-copy { min-width: 0; }
#view-hotlist .hot-product-copy > .product-link, #view-hotlist .hot-product-copy > strong { display: block; font-size: 13px; line-height: 1.7; color: var(--nav); font-weight: 600; overflow-wrap: anywhere; }
#view-hotlist .hot-shop { display: block; margin-top: 7px; font-size: 11px; line-height: 1.7; color: var(--muted); }
#view-hotlist .hot-price > strong { display: block; margin-top: 3px; color: var(--nav); font-size: 17px; line-height: 1.7; font-variant-numeric: tabular-nums; }
#view-hotlist .hot-sales > span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.8; }
#view-hotlist .hot-product-action { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--nav); background: rgba(28,53,94,.04); text-decoration: none; font-size: 11px; white-space: nowrap; }
#view-hotlist .hot-product-action:hover { background: var(--accent-soft); }
#view-hotlist .hot-no-link { display: block; margin-top: 7px; color: var(--muted); }
#view-hotlist .hotlist-notice { margin-block: 18px; }
.module-state { min-height: 240px; padding: 36px 24px; }
.module-state .state-icon { border: 0; background: rgba(28,53,94,.04); color: var(--nav); border-radius: 50%; }
.module-state.is-loading .state-icon { animation: hot-state-spin 1.8s linear infinite; color: var(--nav); }
.module-state.is-error .state-icon { color: var(--nav); background: var(--accent-soft); }
.module-state p { overflow-wrap: anywhere; }
@keyframes hot-state-spin { to { transform: rotate(360deg); } }
#view-targets .product-status-badges .avail-tag { display: inline-flex; align-items: center; gap: 4px; line-height: 18px; border-radius: 5px; }
#view-targets .avail-tag .availability-mark { font-size: 10px; font-weight: 700; }
#hotCaptureDialog { width: min(620px, calc(100vw - 32px)); }
#hotCaptureDialog .capture-dialog-card { width: 100%; padding: 28px; border-radius: 20px; }
#hotCaptureDialog .dialog-head { gap: 16px; margin-bottom: 18px; }
#hotCaptureDialog .dialog-head h2 { font-size: 22px; }
#hotCaptureDialog .capture-context { margin: 0 0 22px; padding: 14px 16px; background: rgba(28,53,94,.035); border-radius: 10px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#hotCaptureDialog .capture-context strong { color: var(--nav); }
#hotCaptureDialog .capture-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#hotCaptureDialog .capture-option { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: left; color: var(--nav); cursor: pointer; font: inherit; }
#hotCaptureDialog .capture-option.is-recommended { border-color: var(--accent-border); background: var(--accent-subtle); }
#hotCaptureDialog .capture-option:hover { background: var(--accent-soft); border-color: var(--accent); }
#hotCaptureDialog .capture-option:focus-visible { outline: 2px solid var(--nav); outline-offset: 3px; }
#hotCaptureDialog .capture-option-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(28,53,94,.055); }
#hotCaptureDialog .capture-option-icon svg { width: 19px; height: 19px; }
#hotCaptureDialog .capture-option strong { font-size: 15px; }
#hotCaptureDialog .capture-option small { color: var(--muted); font-size: 12px; line-height: 1.8; }
#hotCaptureDialog .capture-dismiss-note { margin: 18px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
#hotCaptureDialog .icon-btn { flex: 0 0 44px; height: 44px; }
@container hotlist (max-width: 760px) {
  #view-hotlist .hot-table, #view-hotlist .hot-table tbody { display: block; }
  #view-hotlist .hot-table thead { display: none; }
  #view-hotlist .hot-table tr { display: grid; grid-template-columns: 42px minmax(0,1fr) minmax(0,1fr); gap: 14px 12px; padding: 22px 18px; border-bottom: 1px solid var(--line); }
  #view-hotlist .hot-table tr:last-child { border-bottom: 0; }
  #view-hotlist .hot-table td { display: block; width: auto; padding: 0; border: 0; }
  #view-hotlist .hot-table .hot-rank { grid-column: 1; grid-row: 1 / span 3; }
  #view-hotlist .hot-table .hot-product { grid-column: 2 / -1; }
  #view-hotlist .hot-table .hot-price { grid-column: 2; }
  #view-hotlist .hot-table .hot-sales { grid-column: 3; }
  #view-hotlist .hot-table .hot-link { grid-column: 2 / -1; }
  #view-hotlist .hot-table .hot-price::before, #view-hotlist .hot-table .hot-sales::before { display: block; content: attr(data-label); font-size: 10px; font-weight: 400; color: var(--muted); }
  #view-hotlist .hot-product-action { min-height: 40px; }
  #view-hotlist .hot-image { flex-basis: 52px; width: 52px; height: 52px; }
  #view-hotlist .hot-price > strong { font-size: 16px; }
}
@media (max-width: 600px) {
  #view-hotlist .hotlist-result-head { padding: 20px 18px; }
  #view-hotlist .hotlist-head-actions { width: 100%; }
  #view-hotlist .hotlist-head-actions button { min-height: 44px; }
  #view-hotlist .hot-product-action { min-height: 44px; }
  #view-hotlist .hotlist-keyword { min-height: 64px; }
  #hotCaptureDialog .capture-dialog-card { padding: 22px 18px; max-height: calc(100dvh - 32px); }
  #hotCaptureDialog .capture-options { grid-template-columns: 1fr; }
  #hotCaptureDialog .capture-option { padding: 16px; gap: 8px; }
  #hotCaptureDialog .capture-option-icon { display: none; }
  #hotCaptureDialog .dialog-head h2 { font-size: 20px; }
  .module-state { min-height: 220px; padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) { .module-state.is-loading .state-icon { animation: none; } }
