/* Research controls use the Oasis slate and teal palette. Tables retain the
   shared chrome so this view belongs to the wider workspace. */
.operator-topics-layout { max-width: none; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
.operator-topics-layout .operator-geo-panel { min-height: calc(100dvh - var(--lane-tabbar-h) - 54px); padding: 20px 16px; }
.operator-topics-layout .operator-geo-heading { min-height: 36px; text-transform: uppercase; letter-spacing: .055em; font-size: 11px; }
.operator-topics-layout .operator-geo-heading strong { color: var(--ctp-subtext0); }
.operator-geo-section { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border-radius: 7px; background: color-mix(in srgb, var(--ctp-teal) 20%, transparent); color: var(--ctp-teal); font-size: 12px; font-weight: 650; }
.operator-geo-section svg { width: 16px; height: 16px; }
.operator-topics-content { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 16px; color: var(--ctp-text); }
.operator-topics-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 8px 0 0; box-shadow: none; }
.operator-topics-identity { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.operator-topics-heading-icon { display: inline-flex; width: 28px; height: 28px; object-fit: contain; flex: none; }
.operator-topics-heading-icon svg { display: block; width: 100%; height: 100%; }
.operator-topics-identity h1 { margin: 0; color: var(--ctp-text); font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.operator-topics-identity .hero-info { margin-left: auto; flex: none; }
.operator-topics-scope { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding-left: 14px; border-left: 1px solid var(--ctp-surface1); color: var(--ctp-subtext0); font-size: 12px; white-space: nowrap; }
.operator-topics-scope img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.operator-topics-tier { margin-left: 3px; color: var(--ctp-overlay1); }
.operator-topics-tier::before { content: '·'; margin-right: 7px; }
.operator-topics-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.operator-topics-table-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 6px; background: color-mix(in srgb, var(--ctp-teal) 20%, transparent); color: var(--ctp-teal); font-size: 12px; font-weight: 650; flex: none; }
.operator-topics-table-label svg { width: 16px; height: 16px; }
.operator-topics-tabs { display: flex; align-items: center; gap: 28px; min-width: 0; overflow-x: auto; border-bottom: 1px solid var(--ctp-surface1); scrollbar-width: thin; }
.operator-topics-tabs button { position: relative; flex: none; padding: 12px 0 13px; border: 0; border-radius: 0; background: transparent; color: var(--ctp-subtext0); font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.operator-topics-tabs button::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: transparent; border-radius: 2px 2px 0 0; }
.operator-topics-tabs button:hover { color: var(--ctp-text); }
.operator-topics-tabs button[aria-pressed="true"] { color: var(--ctp-teal); }
.operator-topics-tabs button[aria-pressed="true"]::after { background: var(--ctp-teal); }
.operator-topics-filters { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-width: 0; }
.operator-topics-categories { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.operator-topics-categories button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ctp-subtext0); font-size: 12px; line-height: 1.4; font-weight: 500; white-space: nowrap; }
.operator-topics-categories button:hover { color: var(--ctp-text); background: var(--ctp-mantle); }
.operator-topics-categories button[aria-pressed="true"] { color: var(--ctp-teal); border-color: color-mix(in srgb, var(--ctp-teal) 24%, transparent); background: color-mix(in srgb, var(--ctp-teal) 7%, var(--ctp-base)); font-weight: 650; }
.operator-topics-search { display: flex; align-items: center; flex: 0 1 280px; gap: 9px; margin-left: auto; padding: 0 12px; min-width: 210px; min-height: 38px; border: 1px solid var(--ctp-surface1); border-radius: 8px; background: var(--ctp-base); color: var(--ctp-overlay1); transition: border-color .15s, box-shadow .15s; }
.operator-topics-search > svg { width: 17px; height: 17px; flex: none; }
.operator-topics-search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; outline: none; color: var(--ctp-text); font: inherit; font-size: 12px; line-height: 1.5; }
.operator-topics-search input::placeholder { color: var(--ctp-overlay1); }
.operator-topics-search:focus-within { border-color: var(--ctp-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ctp-teal) 10%, transparent); }
.operator-topics-coverage, .operator-topics-footer { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; color: var(--ctp-subtext0); font-size: 11px; line-height: 1.6; }
.operator-topics-coverage { padding: 10px 14px; border: 1px solid var(--ctp-surface0); border-radius: 8px; background: var(--ctp-mantle); }
.operator-topics-updated { color: var(--ctp-overlay1); }
.operator-topics-error { padding: 12px 14px; border: 1px solid var(--ctp-red); border-radius: 8px; color: var(--ctp-red); font-size: 12px; }
.operator-topics-error button { font-weight: 600; text-decoration: underline; margin-left: 8px; }
.operator-topics-table-wrap { min-width: 0; max-height: calc(100dvh - 270px); border-radius: 0; }
.main-content .operator-topics-table, .main-content .operator-topics-members { display: table; min-width: 960px; max-width: none; overflow: visible; }
.operator-topics-table th button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.operator-topics-table td { vertical-align: middle; padding-block: 8px; }
.operator-topics-table th + th, .operator-topics-table td + td { border-left: 1px solid color-mix(in srgb, var(--ctp-surface1) 40%, transparent); }
.operator-topics-table > caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.operator-topics-topic { display: flex; align-items: center; gap: 8px; text-align: left; min-width: 180px; max-width: 300px; white-space: normal; color: var(--ctp-text); line-height: 1.5; }
.operator-topics-topic > span { font-size: 18px; color: var(--ctp-overlay1); width: 10px; flex: none; }
.operator-topics-topic strong { font-weight: 500; }
.operator-topics-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 200px; margin-inline: auto; }
.operator-topics-table .badge { white-space: nowrap; }
.operator-topics-number { white-space: nowrap; }
.operator-topics-partial { display: block; font-size: 10px; color: var(--ctp-overlay1); font-weight: 400; }
.operator-topics-table .operator-topics-best { color: var(--ctp-green); font-weight: 750; }
.operator-topics-geo { display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.operator-topics-geo img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.operator-topics-evidence { min-width: 125px; max-width: 185px; font-size: 11px; }
.operator-topics-evidence small { display: block; color: var(--ctp-overlay1); font-size: 10px; margin-top: 2px; }
.operator-topics-leaders { display: flex; flex-direction: column; gap: 4px; min-width: 165px; font-size: 11.5px; }
.operator-topics-table > tbody > tr > td > .operator-topics-leaders { flex-direction: row; flex-wrap: wrap; gap: 5px 10px; max-width: 340px; }
.operator-topics-leaders a { display: flex; align-items: center; gap: 6px; color: var(--ctp-text); }
.operator-topics-leaders a:hover { color: var(--ctp-sapphire); }
.operator-topics-leaders a > span:last-child { overflow-wrap: anywhere; }
.operator-topics-leaders b { min-width: 24px; font-weight: 650; color: var(--ctp-teal); font-size: 10px; font-variant-numeric: tabular-nums; }
.operator-topics-leaders img, .operator-topics-leader-initials { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex: none; }
.operator-topics-leader-initials { display: inline-flex; align-items: center; justify-content: center; font-size: 8px; background: var(--ctp-surface0); color: var(--ctp-overlay1); }
.operator-topics-muted { color: var(--ctp-overlay1); font-size: 11px; }
.operator-topics-brand { display: flex; align-items: center; gap: 8px; min-width: 180px; color: var(--ctp-text); }
.operator-topics-brand > img, .operator-topics-initials { width: 26px; height: 26px; border-radius: 6px; flex: none; object-fit: contain; background: var(--ctp-mantle); }
.operator-topics-initials { display: flex; align-items: center; justify-content: center; color: var(--ctp-teal); font-size: 10px; font-weight: 650; }
.operator-topics-brand strong { font-weight: 650; display: block; }
.operator-topics-brand small { font-size: 10px; display: block; color: var(--ctp-overlay1); margin-top: 2px; }
.operator-topics-expanded > td { padding: 12px 16px !important; background: var(--ctp-mantle); }
.main-content .operator-topics-members { min-width: 800px; background: var(--ctp-base); }
.operator-topics-members caption { text-align: left; font-size: 11px; font-weight: 650; padding-bottom: 8px; color: var(--ctp-teal); }
.operator-topics-members thead th { position: static; }
.operator-topics-table .operator-topics-empty { height: 200px; text-align: center !important; vertical-align: middle; white-space: normal; }
.operator-topics-empty strong { display: block; font-size: 13px; font-weight: 650; }
.operator-topics-empty span { display: block; max-width: 460px; margin: 8px auto 0; color: var(--ctp-overlay1); font-size: 12px; line-height: 1.6; font-weight: 400; }
.operator-topics-empty-message { white-space: normal; }
.operator-topics-pagination { display: flex; align-items: center; gap: 9px; }
.operator-topics-pagination button { min-width: 26px; font-size: 15px; padding: 0 7px; }
.operator-topics-pagination button:disabled { opacity: .4; cursor: default; }
.operator-content-planner .v2-crumb-leaf { color: var(--ctp-green); }
.main-content .operator-content-planner .operator-topics-table { min-width: 640px; }
.operator-type-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: color-mix(in srgb, var(--ctp-teal) 9%, transparent); color: var(--ctp-subtext0); font-size: 11px; line-height: 18px; white-space: nowrap; font-weight: 500; }
.operator-type-tag > img, .operator-type-tag > svg { width: 17px; height: 17px; object-fit: contain; flex: none; }
.operator-type-sweepstakes { background: color-mix(in srgb, var(--ctp-green) 11%, transparent); }
.operator-type-casino { background: color-mix(in srgb, var(--ctp-blue) 9%, transparent); }
.operator-type-crypto { background: color-mix(in srgb, var(--ctp-yellow) 12%, transparent); }
.operator-type-sportsbook { background: color-mix(in srgb, var(--ctp-teal) 10%, transparent); }
.operator-topics-categories .operator-type-tag { padding: 0; background: none; color: inherit; font-size: inherit; }
.operator-topic-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 180px; max-width: 420px; white-space: normal; }
.operator-topic-name > strong { font-size: 12px; font-weight: 600; }
.operator-topic-name .operator-topics-topic { min-width: 0; font-weight: 500; color: var(--ctp-text); }
.operator-topic-edit { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--ctp-overlay1); border-radius: 5px; flex: none; }
.operator-topic-edit:hover { color: var(--ctp-teal); background: color-mix(in srgb, var(--ctp-teal) 12%, transparent); }
.operator-topic-edit svg { width: 13px; height: 13px; }
.operator-topic-name-form { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; width: 100%; min-width: 200px; }
.operator-topic-name-form .input { height: 30px; font-size: 12px; width: 190px; max-width: 100%; }
.operator-topic-save-error { flex-basis: 100%; color: var(--ctp-red); font-size: 11px; white-space: normal; }
.operator-topic-not-found { padding: 24px; text-align: center; }
.operator-topic-not-found > strong { margin-top: 30px; }
.operator-topic-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.operator-topic-back { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--ctp-surface1); }
.operator-topic-back > a { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.operator-topic-back > a > svg, .operator-topic-keyword-tools button > svg { width: 14px; height: 14px; }
.operator-topic-breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: var(--ctp-overlay1); font-size: 11px; }
.operator-topic-breadcrumb > img { width: 18px; height: 13px; border-radius: 2px; }
.operator-topic-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--ctp-subtext0); font-size: 11px; }
.operator-topic-metadata b { color: var(--ctp-text); font-weight: 650; }
.operator-topic-keyword-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.operator-topic-keyword-tools .input { margin-left: auto; width: 220px; min-width: 0; height: 30px; font-size: 12px; }
.operator-topic-keyword-tools button { display: inline-flex; align-items: center; gap: 6px; }
.operator-topic-keyword-tools button[aria-pressed=true] { color: var(--ctp-teal); border-color: var(--ctp-teal); }
.operator-topic-keywords-wrap { max-height: calc(100dvh - 240px); border-radius: 0; }
.main-content .operator-topic-keywords { display: table; min-width: 760px; max-width: none; overflow: visible; }
.operator-topic-keywords > caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.operator-topic-keywords th button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.operator-topic-keywords th + th, .operator-topic-keywords td + td { border-left: 1px solid color-mix(in srgb, var(--ctp-surface1) 40%, transparent); }
.operator-topic-keywords input[type=checkbox] { accent-color: var(--ctp-teal); }
.operator-topic-keyword-name { display: inline-flex; align-items: center; gap: 5px; color: var(--ctp-text); font-weight: 500; }
.operator-topic-keyword-name svg { width: 14px; height: 14px; flex: none; }
.operator-topic-keyword-name svg.open { transform: rotate(90deg); }
.operator-keyword-main { margin-left: 8px; font-size: 9px; padding: 2px 5px; border-radius: 4px; background: color-mix(in srgb, var(--ctp-teal) 15%, transparent); color: var(--ctp-teal); font-weight: 600; }
.operator-keyword-selected td { background: color-mix(in srgb, var(--ctp-teal) 7%, transparent); }
.operator-topic-ranking-brand { display: inline-flex; align-items: center; gap: 7px; }
.operator-topic-ranking-brand img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
@media (max-width: 1199px) {
  .operator-topics-layout .operator-geo-panel { min-height: 0; }
}
.operator-topics-content button:focus-visible, .operator-topics-content input:focus-visible:not(.operator-topics-search input), .operator-topics-table-wrap:focus-visible { outline: 2px solid var(--ctp-teal); outline-offset: 3px; }
@media (max-width: 1000px) {
  .operator-topics-search { flex: 1 1 100%; margin-left: 0; }
  .operator-topics-viewbar { flex-wrap: wrap; }
  .operator-topics-table-wrap { max-height: 65dvh; }
}
@media (max-width: 640px) {
  .operator-topic-back { gap: 8px; }
  .operator-topic-back .operator-topic-name { flex-basis: 100%; }
  .operator-topic-keyword-tools .input { order: 2; width: 100%; font-size: 16px; }
  .operator-topic-keywords-wrap { max-height: 60dvh; }
  .operator-content-planner .operator-topics-empty { padding: 0; }
  .operator-topics-empty-message { position: sticky; left: 0; width: calc(100vw - 28px); padding: 20px; }
  .operator-topics-content { width: 100%; gap: 14px; }
  .operator-topics-toolbar { gap: 12px; }
  .operator-topics-identity { gap: 8px; }
  .operator-topics-identity h1 { font-size: 18px; }
  .operator-topics-heading-icon { width: 26px; height: 26px; }
  .operator-topics-scope { order: 2; flex-basis: 100%; padding-left: 34px; border-left: 0; }
  .operator-topics-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; }
  .operator-topics-toolbar nav.operator-topics-tabs button { min-width: 0; font-size: 12px; padding-block: 12px; white-space: normal; text-align: left; }
  .operator-topics-categories { gap: 3px; }
  .operator-topics-categories button { min-height: 36px; padding-inline: 9px; }
  .operator-topics-search input { font-size: 16px; }
  .operator-topics-coverage, .operator-topics-footer { font-size: 11px; }
}
