body[data-page="price-watch"] .topbar { flex-wrap: wrap; align-items: center; }
body[data-page="price-watch"] .page-nav { flex-wrap: wrap; }
body[data-page="price-watch"] .page-nav a { padding: 0 10px; }
.watch-table { width: 100%; min-width: 1200px; border-collapse: collapse; }
.watch-history { width: 100%; min-width: 650px; border-collapse: collapse; }
#extWatchBody tr[data-candidate="true"] { background: #e6f7ef; }
#extWatchBody td { max-width: 320px; overflow-wrap: anywhere; }
#extWatchStatus { padding: 0 16px; }
.watch-table th, .watch-table td, .watch-history th, .watch-history td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.watch-table th, .watch-history th { background: #f8fafc; white-space: nowrap; }
.watch-table td { max-width: 260px; overflow-wrap: anywhere; }
.watch-table tr[aria-selected="true"] { background: var(--soft); }
.watch-table tbody tr:hover { background: #f0fdfa; cursor: pointer; }
.watch-table a, .watch-table button { color: var(--accent); }
.watch-table button { border: 0; background: transparent; font-weight: 750; padding: 0; }
.watch-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px; align-items: center; }
.watch-actions a { text-decoration: none; font-size: 13px; }
.watch-column-options { padding: 0 16px 16px; }
.watch-column-options label { display: inline-flex; align-items: center; gap: 5px; margin: 6px 12px 6px 0; font-size: 13px; }
.watch-column-options label { white-space: nowrap; }
.watch-column-options input[type="checkbox"], .watch-table input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0; }
.watch-table td:first-child label { display: flex; align-items: center; gap: 5px; }
.watch-filters { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px; }
.watch-filters label { display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.watch-filters input, .watch-filters select { padding: 8px; max-width: 100%; }
body[data-page="price-watch"] .app-shell, body[data-page="price-watch"] .panel { min-width: 0; max-width: 100%; }
.watch-scroll { overflow: auto; max-width: 100%; isolation: isolate; }
.watch-table { table-layout: fixed; width: max-content; min-width: 100%; }
.watch-table th, .watch-table td { box-sizing: border-box; width: var(--column-width, 150px); min-width: var(--column-width, 150px); max-width: var(--column-width, 150px); padding: 12px; }
.watch-table .locked { position: sticky; left: var(--column-left); z-index: 2; background: #fff; }
.watch-table th.locked { background: #f8fafc; z-index: 3; }
.watch-table input:not([type="checkbox"]), .watch-table select { width: 100%; min-width: 0; padding: 8px 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.watch-table small { display: block; margin-top: 5px; color: var(--muted); }
.watch-table .negative { color: var(--danger, #b91c1c); font-weight: 700; }
.watch-table button.memo-button { margin-top: 6px; font-size: 11px; }
.watch-preview { width: min(620px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 14px; box-sizing: border-box; color: var(--ink); }
.watch-preview::backdrop { background: rgb(15 23 42 / 50%); }
.preview-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.preview-heading h2 { font-size: 18px; margin: 6px 0 16px; }
.watch-preview dl { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px; padding: 16px; background: #f8fafc; border-radius: 8px; }
.watch-preview dt { color: var(--muted); font-size: 13px; }
.watch-preview dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.watch-preview iframe { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 8px; }
.watch-preview .watch-actions { padding: 12px 0 0; }
#watchPreviewNotice { font-size: 13px; line-height: 1.6; color: var(--muted); }
.watch-detail { margin-top: 18px; }
.watch-empty { padding: 34px 18px; color: var(--muted); text-align: center; line-height: 1.6; }
.watch-settings { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; padding: 18px; }
.watch-settings label { display: grid; gap: 8px; flex: 1 1 160px; font-size: 13px; color: var(--muted); }
.watch-settings input, .watch-settings select { min-width: 0; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.watch-badge { display: inline-block; background: #fff3d6; color: var(--warning); border-radius: 4px; padding: 2px 6px; font-size: 11px; }
.watch-message, .watch-help { margin: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.watch-message:empty { display: none; }
.watch-message[data-error="true"] { color: var(--danger); }
#watchImported { font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  body[data-page="price-watch"] .topbar { display: grid; gap: 14px; }
  body[data-page="price-watch"] .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="price-watch"] .top-actions { justify-content: start; }
  body[data-page="price-watch"] .file-button, body[data-page="price-watch"] .ghost-button { min-height: 44px; }
  .watch-settings label { flex-basis: 100%; }
  .watch-filters label { flex: 1 1 130px; }
  .watch-preview { padding: 14px; }
  .watch-preview dl { grid-template-columns: 80px minmax(0,1fr); padding: 12px; }
  .watch-table .locked { position: static; }
}
