/* Product-first navigation. Scoped rules avoid altering keyword sticky columns. */
.roster-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.roster-toolbar > label { flex: 1; min-width: 220px; font-size: 12px; color: #6a7e99; }
.roster-toolbar input { width: 100%; }
.segmented { display: flex; padding: 4px; gap: 2px; border-radius: 8px; background: #f0f4fa; }
.segmented button { padding: 9px 12px; background: transparent; color: #6a7e99; border: 0; border-radius: 6px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: white; color: #244ddc; box-shadow: 0 1px 4px #23456812; font-weight: 600; }
.roster-scroll { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.product-roster-table { table-layout: fixed; width: 100%; min-width: 850px; }
.product-roster-table th, .product-roster-table td { position: static; min-width: 0; width: auto; box-shadow: none; text-align: left; padding: 16px 14px; }
.product-roster-table th:first-child, .product-roster-table td:first-child { width: 42%; min-width: 0; max-width: none; position: static; box-shadow: none; }
.product-roster-table th:nth-child(2) { width: 105px; }
.product-roster-table th:last-child { width: 76px; }
.product-roster-table .selected-product td { background: #edf6ff; }
.roster-identity { display: flex; gap: 14px; align-items: center; min-width: 0; }
.roster-image { width: 54px; height: 64px; flex-shrink: 0; border: 1px solid #e5eaf1; border-radius: 7px; color: #9caabd; background: white; display: grid; place-items: center; font-size: 11px; }
.roster-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.roster-label { min-width: 0; }
.product-open { padding: 0; border: 0; background: none; color: #243f5e; text-align: left; font-weight: 600; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.product-open:hover { color: var(--blue); }
.roster-asin, .roster-date { display: block; font-size: 12px; color: #8495aa; margin-top: 5px; overflow-wrap: anywhere; }
.roster-count { color: #244ddc; font-weight: 650; font-size: 18px; }
.source-present { color: #438371; font-size: 13px; }
.product-roster-table .muted { font-size: 12px; }
.product-workspace-nav { padding: 13px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); background: #f8faff; color: #486889; font-size: 13px; }
#product-workspace .data-heading { background: white; padding-top: 16px; padding-bottom: 16px; }
#product-workspace .data-heading h2 { font-size: 17px; }
#product-tabs { gap: 24px; overflow-x: auto; }
#product-tabs .tab { white-space: nowrap; }
.keyword-type-tabs { display: flex; gap: 8px; padding: 14px 24px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.keyword-type-tabs button { background: white; border: 1px solid transparent; border-radius: 20px; padding: 7px 14px; color: #7b8fa7; white-space: nowrap; }
.keyword-type-tabs button[aria-pressed="true"] { color: var(--blue); background: #eef3ff; border-color: #dce6ff; }
.platform-filter .root-query { max-width: 240px; }
.platform-filter select { max-width: 180px; }
.keyword-links { display: flex; gap: 14px; margin-top: 8px; }
.keyword-links .text-button { font-size: 12px; }
#h10-content .table-wrap, #sif-content .table-wrap { max-height: 590px; }
.integrated-table .missing { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-roster-table td:last-child .text-button { white-space: nowrap; }
/* Familiar library hierarchy, backed by the same bounded v2 endpoints. */
#workspace-product-context { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.workspace-source-date { color: #879bb5; padding-left: 14px; border-left: 1px solid #e0e8f3; font-size: 12px; }
#product-tabs { padding: 8px 24px; gap: 8px; border-bottom: 1px solid var(--border); }
#product-tabs .tab { border: 0; border-radius: 10px; padding: 13px 16px; font-size: 15px; color: #7d8fa8; }
#product-tabs .tab.active { color: #2d5bba; background: #eaf1ff; font-weight: 650; }
.library-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); color: #8298b2; }
.library-actions > span { font-size: 15px; white-space: nowrap; }
.library-actions .button-group { flex-wrap: wrap; }
.platform-workspace .keyword-type-tabs { align-items: center; padding: 12px 24px; gap: 6px; }
.type-tabs-note { margin-left: auto; color: #9aacc0; font-size: 12px; white-space: nowrap; padding-left: 20px; }
.platform-workspace .platform-filter { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 24px; }
.platform-workspace .platform-filter label { display: flex; flex-direction: row; align-items: center; gap: 10px; white-space: nowrap; }
.platform-workspace .platform-query { flex: 1.25 1 260px; }
.platform-workspace .platform-root { flex: 1 1 230px; }
.platform-workspace .platform-filter input { flex: 1; min-width: 100px; width: 100%; max-width: none; }
.platform-workspace .platform-filter select { min-width: 110px; max-width: 155px; }
.platform-filter .button { min-height: 42px; }
.platform-toolbar { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.platform-count { color: #8097b2; font-size: 14px; white-space: nowrap; }
.platform-count strong { color: #38597e; font-size: 22px; margin-right: 4px; }
.platform-count small { color: #96a8bd; font-size: 12px; }
.platform-table-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.platform-table-actions > label, .page-size-control { display: flex; flex-direction: row; align-items: center; gap: 10px; color: #879bb4; font-size: 12px; white-space: nowrap; }
.platform-table-actions select { min-height: 40px; font-size: 13px; }
.platform-table-actions .page-size-control { padding-left: 18px; border-left: 1px solid var(--border); }
.page-size-control select { min-width: 80px; padding-right: 27px; }
.platform-source-banner { padding: 20px 24px; gap: 15px; background: #f5f8fe; }
.platform-source-banner.sif { background: #f5fbf8; }
.platform-source-logo { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 10px; background: #e6eefc; color: #3c66a4; font-size: 14px; font-weight: 650; }
.sif .platform-source-logo { color: #328471; background: #e4f3ec; }
.source-banner-copy { flex: 1; min-width: 220px; }
.platform-source-banner h3 { font-size: 16px; color: #507299; }
.platform-source-banner p { font-size: 12px; line-height: 1.7; color: #90a5bc; max-width: 840px; }
.platform-coverage { margin-left: auto; color: #92a7bf; font-size: 12px; text-align: right; max-width: 250px; }
.platform-metric-table { table-layout: fixed; min-width: 100%; }
.platform-metric-table th, .platform-metric-table td { min-width: 180px; width: 180px; padding: 20px 16px; text-align: center; vertical-align: middle; }
.platform-metric-table th { background: #f5f8fc; color: #7790af; font-weight: 500; font-size: 14px; padding-top: 15px; padding-bottom: 15px; }
.platform-metric-table th:first-child, .platform-metric-table td:first-child { width: 310px; min-width: 310px; max-width: 310px; text-align: left; padding-left: 24px; padding-right: 36px; }
.platform-metric-table .metric-value { font-size: 17px; color: #4c6c93; }
.platform-metric-table .metric-meta { font-size: 12px; margin-top: 7px; color: #9aadc4; }
.platform-metric-table th .metric-meta { margin-top: 0; margin-bottom: 5px; font-size: 11px; }
#h10-content thead .metric-meta, #sif-content thead .metric-meta { display: none; }
.platform-metric-table .keyword-detail-link { background: transparent; border: 0; padding: 0; color: #355b86; text-align: left; font-size: 15px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.keyword-detail-link:hover { color: var(--blue); text-decoration: underline; }
.platform-metric-table .keyword-translation { font-size: 13px; color: #8ca1bd; line-height: 1.6; margin-top: 3px; }
.platform-metric-table .keyword-root { font-size: 12px; color: #95abc5; line-height: 1.6; margin-top: 6px; }
.keyword-tags:empty { display: none; }
.keyword-tags { margin-top: 8px; }
.metric-sort-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 8px 5px; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 6px; }
.metric-sort-button:hover { background: #e8efff; color: #285bd1; }
.metric-sort-button:focus-visible { outline: 2px solid #285bd1; outline-offset: 2px; }
.sort-indicator { color: #9aaec5; font-size: 14px; }
.platform-metric-table th[aria-sort="ascending"], .platform-metric-table th[aria-sort="descending"] { color: #285bd1; background: #edf3ff; }
.platform-metric-table th[aria-sort="ascending"] .sort-indicator, .platform-metric-table th[aria-sort="descending"] .sort-indicator { color: #285bd1; }
.platform-metric-table .keyword-menu { position: absolute; right: 10px; top: 14px; margin: 0 !important; }
.keyword-menu summary { cursor: pointer; color: #8ea3bb; font-weight: bold; font-size: 18px; list-style: none; padding: 0 5px; }
.keyword-menu summary::-webkit-details-marker { display: none; }
.keyword-menu[open] { z-index: 4; }
.keyword-menu .keyword-links { position: absolute; right: 0; top: 24px; min-width: 108px; flex-direction: column; gap: 5px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); background: white; box-shadow: 0 5px 15px #24456818; border-radius: 8px; }
.keyword-links .text-button { white-space: nowrap; text-align: left; }
.platform-workspace .table-wrap { scrollbar-gutter: stable; }
.platform-workspace .pagination { background: white; padding: 18px 24px; }
.platform-workspace .pagination-actions { gap: 7px; }
.platform-workspace .page-number { min-width: 39px; }
.platform-workspace .page-number[aria-current="page"] { background: #306dd0; border-color: #306dd0; color: white; box-shadow: 0 3px 8px #306dd025; }
@media (max-width: 1300px) {
  .platform-table-actions { gap: 12px; }
  .platform-source-banner { flex-wrap: wrap; }
  .platform-coverage { max-width: none; }
  .type-tabs-note { display: none; }
}
@media (max-width: 760px) {
  .roster-toolbar { gap: 10px; }
  .roster-toolbar .segmented { width: 100%; }
  .roster-toolbar > label { min-width: 100%; }
  .product-workspace-nav { padding: 12px 18px; flex-wrap: wrap; }
  .keyword-type-tabs { padding: 12px 18px; }
  #product-tabs { padding: 8px 12px; gap: 2px; }
  #product-tabs .tab { font-size: 14px; padding: 10px 12px; }
  .library-actions { padding: 16px 18px; flex-wrap: wrap; }
  .platform-workspace .platform-filter, .platform-toolbar, .platform-source-banner { padding: 16px 18px; }
  .platform-workspace .platform-query, .platform-workspace .platform-root { flex-basis: 100%; }
  .platform-table-actions { gap: 10px; }
  .platform-table-actions .page-size-control { border: 0; padding-left: 0; }
  .platform-coverage { margin-left: 0; text-align: left; }
  .platform-metric-table th:first-child, .platform-metric-table td:first-child { width: 225px; min-width: 225px; max-width: 225px; padding-left: 16px; }
  .platform-workspace .pagination { padding: 16px 18px; }
}
