.watch-sidebar-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.watch-sidebar-head { display: flex; align-items: center; gap: 4px; }
.watch-sidebar-button, .watch-back, .watch-remove, .watch-sidebar-add, .watch-product-entry {
  font: inherit; color: var(--accent); background: transparent; border: 0; cursor: pointer;
}
.watch-sidebar-button {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 8px; min-width: 0;
  color: #d2e5f2; border-radius: 7px; text-align: left; font-size: .88rem; font-weight: 650;
}
.watch-chevron { width: 7px; height: 7px; border: solid #9caebd; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.watch-sidebar-button[aria-expanded="true"] .watch-chevron { transform: translateY(-2px) rotate(45deg); }
.watch-sidebar-add { width: 32px; height: 32px; border-radius: 7px; font-size: 1.12rem; line-height: 1; }
.watch-sidebar-button:hover, .watch-sidebar-add:hover, .watch-product-entry:hover, .watch-back:hover { background: #203347; }
.watch-sidebar-status { padding: 4px 12px; font-size: .79rem; color: var(--subtle); }
.watch-product-entry {
  display: grid; width: 100%; min-width: 0; gap: 3px; padding: 8px 10px 8px 23px;
  border: 1px solid transparent; border-radius: 8px; text-align: left; color: #c8d7e5; font-size: .85rem;
  overflow-wrap: anywhere; line-height: 1.35;
}
.watch-product-entry small { color: var(--subtle); font-size: .71rem; font-variant-numeric: tabular-nums; }
.watch-product-entry[aria-current="page"] { background: #20354a; border-color: #38536b; color: #ecf7ff; }
.watch-chat-heading { font-size: .8rem; color: #b3c8d7; margin: 0 8px 10px; }
.watch-library { width: 100%; min-width: 0; padding: 28px 0 55px; color: #dfedf7; }
.watch-panel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.watch-back { padding: 4px 6px; margin-left: -6px; border-radius: 4px; font-size: .84rem; }
.watch-heading h1 { margin: 0 0 8px; font-size: clamp(1.45rem, 3.4vw, 2.1rem); line-height: 1.3; overflow-wrap: anywhere; }
.watch-heading h1:focus { outline: none; }
.watch-body { min-width: 0; }
#watch-editor { max-width: 640px; margin-top: 20px; }
.watch-library form, .watch-library label { display: grid; gap: 7px; }
.watch-library label { font-size: .9rem; color: #c8d8e6; }
.watch-library input {
  width: 100%; padding: 10px 12px; border: 1px solid #415975; border-radius: 8px;
  background: #101c2b; color: #eef6ff; font: inherit; line-height: 1.45;
}
.watch-selected, .watch-row, .watch-actions { display: flex; align-items: center; gap: 10px; }
.watch-selected, .watch-row { justify-content: space-between; }
.watch-meta, .watch-empty { font-size: .81rem; line-height: 1.55; color: #adbfce; overflow-wrap: anywhere; }
.watch-empty { margin: 16px 0 5px; }
.watch-row {
  width: 100%; min-width: 0; padding: 11px 6px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.watch-row:is(:hover,:focus-visible) { background: #22374a; }
.watch-row > span:first-child, .watch-selected > div { min-width: 0; display: grid; gap: 2px; }
.watch-row strong, .watch-selected strong { font-size: .93rem; font-weight: 630; overflow-wrap: anywhere; }
.watch-tag { color: #aacde2; font-size: .76rem; flex: none; }
#watch-search-area > label { margin-bottom: 7px; }
#watch-search-status { margin: 7px 0 4px; }
.watch-selected { padding: 12px; border: 1px solid #37546a; background: #1b3142; border-radius: 9px; }
.watch-library #watch-settings { gap: 14px; margin: 0; }
.watch-library :is(textarea,select) {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #415975; border-radius: 8px;
  background: #101c2b; color: #eef6ff; font: inherit; line-height: 1.45;
}
.watch-library textarea { resize: vertical; min-height: 65px; max-height: 26dvh; }
#watch-settings p { margin: 0; }
#watch-save { justify-self: end; }
.watch-actions { flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.watch-remove { padding: 6px; color: #ecaca8; font-size: .8rem; margin-left: auto; }
.watch-remove:hover, .watch-back:hover { text-decoration: underline; }
.watch-confirm { margin: 12px 0; padding: 10px; border: 1px solid #765653; border-radius: 8px; }
.watch-confirm p { margin: 0 0 8px; font-size: .84rem; }
#watch-item-meta { margin: 0 0 5px; }
#watch-item-focus { margin: 5px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; }
.watch-run-cost { margin: 9px 0 16px; }
#watch-item-view h3 { margin: 16px 0 6px; font-size: 1rem; }
.watch-run-record { padding: 11px 0; border-top: 1px solid var(--line); }
.watch-run-record summary { cursor: pointer; font-size: .85rem; color: #d3e5f2; }
.watch-run-record p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.6; }
.watch-run-record .research-report { font-size: .9rem; }
#ask-form { position: relative; }
.watch-mentions {
  position: absolute; z-index: 5; left: 0; bottom: calc(100% + 5px); width: min(440px, 100%);
  max-height: min(40dvh, 340px); overflow: auto; border: 1px solid #405970; border-radius: 12px;
  padding: 6px; background: #192b3b; box-shadow: 0 8px 24px #050e1b88;
}
.watch-suggestion-title { padding: 4px 7px; font-size: .75rem; color: #aec7d8; }
.watch-mentions [role="option"] {
  display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; border-radius: 6px;
  padding: 7px; background: transparent; color: #deedf8; font: inherit; text-align: left; cursor: pointer; font-size: .86rem;
}
.watch-mentions [role="option"] span:first-child { overflow-wrap: anywhere; }
.watch-mentions [role="option"] span:last-child { color: #a8bdce; flex: none; font-size: .76rem; }
.watch-mentions [aria-selected="true"], .watch-mentions [role="option"]:hover { background: #29455b; }
.watch-mentions p { color: #bdcdda; font-size: .81rem; margin: 5px 7px; }
.watch-mentions .bank-link { margin: 2px 0 0; padding: 5px 7px; font-size: .78rem; }
@media (max-width: 540px) {
  .watch-library { padding: 18px 0 36px; }
  .watch-actions .watch-remove { margin-left: 0; }
  #watch-mention-trigger { padding-inline: 8px; }
}
