.pi-page-hero.pi-watchlist-hero { padding-bottom: 1.5rem; }
.pi-section.pi-watchlist-section { padding-top: 0; }
.pi-canonical-watchlist { color: #182c40; background: #fff; border-radius: .75rem; padding: clamp(1rem, 2vw, 1.75rem); max-width: 100%; }
.pi-canonical-watchlist [hidden] { display: none !important; }
.pi-watchlist-date, .pi-watchlist-review { color: #6c4600; font-size: .85rem; }
.pi-watchlist-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.pi-canonical-watchlist .pi-watchlist-heading h2 { margin: 0; color: #182c40; font-size: 1.3rem; line-height: 1.4; letter-spacing: -.02em; }
.pi-canonical-watchlist .pi-watchlist-date { margin: 0; font-size: .78rem; line-height: 1.6; }
.pi-watchlist-filters { display: grid; gap: 1.1rem; margin: 0 0 1.25rem; padding: 1.25rem; border: 1px solid #d9e2e9; border-radius: .75rem; background: #f4f7fa; }
.pi-watchlist-filters p { margin: 0; }
/* WordPress may wrap inline shortcode controls in paragraphs. Keep their layout containers intact. */
.pi-watchlist-market-options > p, .pi-watchlist-filter-actions > p { display: contents; }
.pi-watchlist-filter-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.pi-watchlist-filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pi-watchlist-filters legend, .pi-watchlist-filters label > span { display: block; padding: 0; margin: 0 0 .5rem; color: #41586b; font-size: .75rem; font-weight: 650; line-height: 1.4; }
.pi-watchlist-market-options { display: flex; gap: .25rem; padding: .25rem; border: 1px solid #d0dce5; border-radius: .6rem; background: #e7eef4; }
.pi-watchlist-filters button, .pi-watchlist-filters select { box-sizing: border-box; min-height: 44px; max-width: 100%; margin: 0; font: inherit; font-size: .85rem; line-height: 1.4; }
.pi-watchlist-filters button { cursor: pointer; }
.pi-watchlist-market-options button { flex: 1; min-width: 5rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .4rem; background: transparent; color: #334e63; font-weight: 650; white-space: nowrap; }
.pi-watchlist-market-options button:hover { background: #d9e5ee; color: #182c40; }
.pi-watchlist-market-options button[aria-pressed="true"] { background: #153d5b; color: #fff; border-color: #153d5b; box-shadow: 0 2px 4px #153d5b24; }
.pi-watchlist-filters [data-watchlist-reset] { padding: .6rem .25rem; border: 0; border-radius: .3rem; color: #095a96; background: transparent; font-weight: 600; white-space: nowrap; }
.pi-watchlist-filters [data-watchlist-reset]:hover:not(:disabled) { text-decoration: underline; }
.pi-watchlist-filters [data-watchlist-reset]:disabled { color: #647587; cursor: default; }
.pi-watchlist-filter-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1.2fr; gap: 1rem; }
.pi-watchlist-field, .pi-watchlist-field label { display: block; min-width: 0; }
.pi-watchlist-field select { display: block; width: 100%; min-width: 0; padding: .7rem 2.25rem .7rem .85rem; border: 1px solid #8fa3b4; border-radius: .45rem; background: #fff; color: #243e53; text-overflow: ellipsis; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2341586b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; }
.pi-watchlist-field select:hover { border-color: #345e7e; }
.pi-watchlist-field select[data-active="true"] { border-color: #27658d; background-color: #edf6fc; color: #153d5b; font-weight: 600; }
.pi-watchlist-applied { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 1rem; border-top: 1px solid #d9e2e9; }
.pi-watchlist-applied button { display: inline-flex; align-items: center; gap: .65rem; padding: .45rem .7rem; border: 1px solid #aac1d2; border-radius: .4rem; background: #fff; color: #234b68; font-size: .75rem; text-align: left; }
.pi-watchlist-applied button span:first-child { overflow-wrap: anywhere; }
.pi-watchlist-applied button span:last-child { font-size: 1.1rem; line-height: 1; }
.pi-watchlist-applied button:hover { background: #e7f1f8; border-color: #27658d; }
.pi-watchlist-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin: 0 0 .85rem; }
.pi-canonical-watchlist .pi-watchlist-results-bar p { margin: 0; font-size: .8rem; line-height: 1.5; }
.pi-watchlist-results-bar [data-watchlist-count] { color: #243e53; font-weight: 650; }
.pi-watchlist-sort-note { color: #5c7081; }
.pi-canonical-watchlist [data-watchlist-empty] { padding: 2.5rem 1.25rem; border: 1px dashed #a6b8c6; border-radius: .65rem; background: #f8fafc; color: #41586b; text-align: center; }
.pi-canonical-watchlist :is(a, button, select, summary, [tabindex]):focus-visible { outline: 3px solid #096bb3; outline-offset: 3px; }
.pi-watchlist-table-scroll { overflow-x: auto; border: 1px solid #b9c6d0; border-radius: .65rem; background: #fff; }
.pi-canonical-table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.5; }
.pi-canonical-table th, .pi-canonical-table td { padding: .9rem .7rem; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.pi-canonical-table thead { background: #eef3f6; }
.pi-canonical-table thead th { font-size: .75rem; color: #344e63; }
.pi-canonical-table tbody + tbody { border-top: 2px solid #c9d3dc; }
.pi-canonical-table th[scope="row"] { color: #123e5e; font-size: 1rem; }
.pi-canonical-table a { color: #095a96; text-decoration: underline; }
.pi-watchlist-full .pi-canonical-table { min-width: 1400px; }
.pi-canonical-table th[scope="row"], .pi-canonical-table [data-label="Updated"] { white-space: nowrap; }
.pi-watchlist-detail-row td { padding-top: 0; }
.pi-watchlist-detail-row summary { cursor: pointer; padding: .45rem 0; font-weight: 600; min-height: 32px; }
.pi-watchlist-review { display: inline-block; margin-left: .5rem; font-weight: 600; }
.pi-watchlist-detail-row p { max-width: 85ch; margin: .5rem 0; }
.pi-wl-badge { display: inline-block; padding: .25rem .55rem; border-radius: .3rem; font-size: .78rem; font-weight: 650; background: #e8eef4; color: #25475f; }
.pi-wl-needs-confirmation, .pi-wl-medium { background: #fff1cd; color: #694600; }
.pi-wl-technically-confirmed, .pi-wl-low { background: #dff2eb; color: #13593f; }
.pi-wl-extended-wait, .pi-wl-high { background: #ffead9; color: #7c3808; }
.pi-wl-thesis-under-review, .pi-wl-invalidated, .pi-wl-speculative { background: #fae4e5; color: #852735; }
.pi-wl-archived { background: #e9e9ec; color: #494956; }
@media (max-width: 1599px) {
  .pi-watchlist-full .pi-canonical-table { min-width: 0; }
  .pi-watchlist-full .pi-canonical-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pi-watchlist-full .pi-watchlist-main-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pi-watchlist-full .pi-canonical-table tbody, .pi-watchlist-full .pi-watchlist-detail-row, .pi-watchlist-full .pi-watchlist-detail-row td { display: block; }
  .pi-watchlist-full [data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; color: #445d70; margin-bottom: .25rem; }
}
@media (max-width: 1023px) {
  .pi-watchlist-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pi-watchlist-full .pi-watchlist-main-row, .pi-watchlist-compact .pi-watchlist-main-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-watchlist-compact .pi-canonical-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pi-watchlist-compact .pi-canonical-table tbody, .pi-watchlist-compact .pi-watchlist-detail-row, .pi-watchlist-compact .pi-watchlist-detail-row td { display: block; }
  .pi-watchlist-compact [data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; color: #445d70; margin-bottom: .25rem; }
  .pi-watchlist-filters { padding: 1rem; gap: 1rem; }
  .pi-watchlist-filter-grid { gap: .85rem; }
  .pi-watchlist-filter-top { flex-wrap: wrap; gap: .35rem; }
  .pi-watchlist-filter-top fieldset { width: 100%; }
  .pi-watchlist-market-options button { min-width: 0; padding: .6rem .4rem; }
  .pi-watchlist-filter-actions { margin-left: auto; }
  .pi-watchlist-field select { font-size: 1rem; padding-left: .6rem; }
  .pi-watchlist-review { display: block; margin-left: 0; }
}
@media (max-width: 479px) {
  .pi-watchlist-field:nth-child(-n+2) { grid-column: 1 / -1; }
}
