/* Amazon Keywords/styles.css — the page's own looks. Loaded BEFORE shell.css on
   purpose (RULEBOOK House Standard: the shell's rules win over a page's). Split
   out of keywords.html on 2026-09-03. */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f6fa; color: #2d3436; }

  /* Sidebar (classic skeleton — shell.js restyles it) */
  .sidebar { position: fixed; top: 0; left: 0; width: 150px; height: 100vh; background: #1a1f2e; color: #fff; display: flex; flex-direction: column; z-index: 100; }
  .sidebar .logo { padding: 14px 10px; border-bottom: 1px solid #2d3450; display: flex; align-items: center; gap: 8px; }
  .sidebar .logo svg { width: 28px; height: 28px; flex-shrink: 0; }
  .sidebar .logo span { font-size: 16px; font-weight: 800; font-style: italic; letter-spacing: 1.5px; color: #e8eaed; }
  .sidebar nav { flex: 1; padding: 12px 0; }
  .sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: #8892a4; text-decoration: none; font-size: 13px; font-weight: 500; transition: all .15s; }
  .sidebar nav a:hover { background: #252b3d; color: #fff; }
  .sidebar nav a.active { background: #252b3d; color: #ff9900; border-left: 3px solid #ff9900; }
  .sidebar nav a .icon { width: 18px; text-align: center; font-size: 15px; }
  .sidebar .sidebar-footer { padding: 14px 14px; border-top: 1px solid #2d3450; font-size: 11px; color: #555e70; }

  .main { margin-left: 150px; }
  .topbar { background: #232f3e; color: #fff; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
  .topbar h1 { font-size: 18px; font-weight: 600; letter-spacing: .3px; }
  .topbar .subtitle { font-size: 12px; color: #a0aec0; margin-top: 2px; }

  .content { padding: var(--cg-row, 14px) var(--cg-gutter, 28px); }   /* page rhythm: gaps come from --cg-row / --cg-gutter (shell.css, RULEBOOK Rule 6) */
  .app-notice { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 14px; }
  .app-notice.info { background: #e9f5ff; color: #1e3a8a; }
  .app-notice.danger { background: #fef2f2; color: #b42318; font-weight: 600; }
  /* the "Potential missing keywords" tab's list (topbar tab, 2026-09-03) —
     the page's own popover look (.ssel-pop, the model picker), anchored under
     the tab instead of fixed */
  .pmk-pop { position: absolute; top: calc(100% + 6px); right: 0; left: auto; min-width: 380px; max-width: 520px; padding: 6px 12px 8px; }
  .pmk-head { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #636e72; padding: 8px 0 2px; }
  .pm-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; border-top: 1px solid #eef0f3; }
  .pm-row:first-child { border-top: 0; }
  .pm-row .kw-tag { margin-left: 0; flex: 0 0 auto; }
  .pm-row .pm-kw { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
  .pm-row .pm-why { flex: 0 0 auto; color: #636e72; font-size: 12px; white-space: nowrap; }
  .pm-row .pmk-add { flex: 0 0 auto; padding: 2px 9px; font-size: 11px; }
  .pm-note { font-size: 11px; color: #98a1b0; padding: 8px 0 0; }
  /* the chart's date range — two native date boxes in the house input look */
  .trend-range { display: flex; align-items: center; gap: 6px; }
  .trend-date { min-width: 0; padding: 4px 7px; font-size: 12.5px; }

  /* Filters bar (house style — the SQP/Sales filter bar) */
  .filters-bar { display: flex; align-items: flex-start; gap: 18px; padding: 14px 18px; background: #fff; border-radius: 10px; margin-bottom: var(--cg-row, 14px); box-shadow: 0 1px 3px rgba(0,0,0,.06); flex-wrap: wrap; }
  .filter-group { display: flex; flex-direction: column; gap: 6px; }
  .filter-group > label { font-size: 11px; font-weight: 600; color: #636e72; text-transform: uppercase; letter-spacing: .5px; }
  .filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-chip { padding: 4px 12px; border: 1px solid #cbd5e0; border-radius: 16px; font-size: 12px; cursor: pointer; user-select: none; transition: all .15s; background: #fff; }
  .filter-chip:hover { border-color: #2563eb; }
  .filter-chip.active { background: #2563eb; color: #fff; border-color: #2563eb; }
  .model-select { border: 1px solid #cbd5e0; border-radius: 7px; padding: 5px 9px; font-size: 13px; font-family: inherit; color: #2d3436; background: #fff; min-width: 220px; }

  /* Searchable model picker (ssel) — same component/UX as the Orders model picker */
  .ssel { position: relative; display: inline-block; }
  .ssel-btn { font: inherit; font-size: 13px; min-width: 220px; max-width: 320px; padding: 6px 9px; border: 1px solid #cbd5e0; border-radius: 7px; background: #fff; color: #2d3436; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; white-space: nowrap; }
  .ssel-btn:hover { border-color: #90a4c4; }
  .ssel-lbl { overflow: hidden; text-overflow: ellipsis; }
  .ssel-lbl.gray { color: #98a1b0; }
  .ssel-caret { color: #8a94a6; font-size: 9px; }
  .ssel-pop { position: fixed; z-index: 2000; background: #fff; border: 1px solid #cbd5e0; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); min-width: 220px; max-width: 340px; }
  .ssel-search { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #edf2f7; padding: 8px 10px; font-size: 13px; outline: none; border-radius: 8px 8px 0 0; font-family: inherit; }
  .ssel-list { max-height: 320px; overflow: auto; padding: 3px; }
  .ssel-opt { padding: 6px 9px; font-size: 13px; color: #2d3436; cursor: pointer; white-space: nowrap; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; }
  .ssel-opt:hover, .ssel-opt.active { background: #2563eb; color: #fff; }
  .ssel-opt:hover .ssel-brand, .ssel-opt.active .ssel-brand { color: #dbe6ff; }
  .ssel-opt.sel { font-weight: 600; }
  .ssel-brand { color: #8a94a6; }
  .ssel-empty { padding: 8px 10px; font-size: 12px; color: #8a94a6; }

  .table-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden; margin-bottom: var(--cg-row, 14px); }
  .table-card h2 { font-size: 14px; padding: 14px 18px; border-bottom: 1px solid #eef0f3; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
  .table-card h2 .asof { font-size: 11.5px; font-weight: 400; color: #98a1b0; }
  .period-pill { display: inline-block; margin-left: 10px; padding: 3px 11px; border-radius: 999px; background: #eaf1fe; color: #1d4ed8; font-size: 12px; font-weight: 700; vertical-align: 1px; cursor: help; }
  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  /* Every column centered (house standard, like the Sales/PPC tables) — except
     the Keyword column, which stays left-aligned. */
  /* header COLOURS come from the shell's house table tokens (Rule 6 §5a) */
  /* header alignment / wrapping / vertical centring: the shell's HOUSE TABLE STANDARD owns them (not declared here) */
  thead th { padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; }
  /* Keyword column: left-aligned, never wraps the search term, gets room */
  th.kw-col, td.kw-col { text-align: left; white-space: nowrap; min-width: 160px; }
  /* Sales-style frozen pane (house standard): the strip is a height-capped
     scroll pane so its horizontal scrollbar is always on screen, the header
     row sticks to the pane top, and the Keyword column sticks left. */
  .table-scroll { max-height: calc(100vh - 150px); overflow: auto; }
  thead th { position: sticky; top: 0; z-index: 11; box-shadow: inset 0 -1px 0 var(--cg-th-line); }
  th.kw-col, td.kw-col { position: sticky; left: 0; background: #fff; z-index: 12; }
  /* Frozen-column separators (2026-08-05): collapsed borders don't travel with
     sticky cells, so the frozen Keyword column lost its lines when the table
     scrolled sideways. Inset shadows are painted by the cell itself. */
  tbody td.kw-col { box-shadow: inset 0 1px 0 #eef0f3, inset -1px 0 0 #dfe4ea; }
  /* the frozen column's own header — above the headers that slide under it */
  thead th.kw-col { --cg-th-z: 21; }
  tbody tr:hover td.kw-col { background: #f7f9fc; }
  /* "top 5 by units sold" tags, inside the keyword cell. Two colours because
     they are two different facts: SQP = what Amazon's shoppers bought, PPC =
     what our ads sold. A keyword can wear both. */
  .kw-tag { display: inline-block; vertical-align: 1px; margin-left: 5px; padding: 1px 5px; border-radius: 4px;
            font-size: 9.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: help; }
  .kw-tag-sqp { background: #e0ecfd; color: #1d4ed8; }
  .kw-tag-ppc { background: #f1e6fd; color: #7c3aed; }
  /* The list is the users' own (migration 278): a tick box in the keyword cell
     picks rows for the Archive / Restore / Delete buttons in the title bar.
     Archived rows sit greyed at the bottom, under one divider, only while
     "Show archived" is on. A keyword with no SQP rows this month shows "—". */
  .kw-tick { width: 14px; height: 14px; margin: 0 8px 0 0; vertical-align: -2px; accent-color: #2563eb; cursor: pointer; }
  tbody tr.kw-row.archived td { color: #98a1b0; }
  tbody tr.kw-row.archived td.kw-col .fname { color: #98a1b0; }
  tbody tr.kw-row.archived td.kw-col .kw-term { text-decoration: line-through; text-decoration-color: #c5cdd8; }
  tbody tr.kw-sep td { background: #f7f9fc; color: #8a94a6; font-size: 11.5px; text-align: left; padding: 6px 14px; text-transform: uppercase; letter-spacing: .04em; }
  .kw-toolbar { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .kw-btn { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 7px; border: 1px solid #cbd5e0; background: #fff; color: #2d3436; cursor: pointer; }
  .kw-btn:hover { border-color: #90a4c4; }
  .kw-btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
  .kw-btn.primary:hover { background: #1e4fd1; }
  .kw-btn.danger { color: #c0392b; border-color: #f1b8b1; }
  .kw-btn[disabled] { opacity: .45; cursor: default; }
  .kw-btn .cnt { display: inline-block; min-width: 14px; padding: 0 5px; border-radius: 999px; background: #eaf1fe; color: #1d4ed8; font-size: 11px; margin-left: 4px; }
  .kw-btn.danger .cnt { background: #fdecec; color: #c0392b; }
  .kw-run { font-size: 11.5px; font-weight: 400; color: #5b6472; }
  .kw-run.good { color: #1e8e3e; }
  .kw-run.warn { color: #b7791f; }
  .kw-run.bad { color: #c0392b; }
  .kw-src { color: #b0b8c4; font-size: 10px; margin-left: 5px; }

  tbody tr.kw-row.charted td.kw-col { background: #eaf1fe; }
  tbody tr.kw-row.charted:hover td.kw-col { background: #dfeafd; }
  tbody td { padding: 9px 14px; border-top: 1px solid #eef0f3; }   /* alignment: the shell (figures .num centred, identity left) */
  tbody tr.kw-row { cursor: pointer; }
  tbody tr.kw-row:hover { background: #f7f9fc; }
  tbody tr.kw-row.charted { background: #eaf1fe; }
  tbody tr.kw-row.charted:hover { background: #dfeafd; }
  td .fname { font-weight: 600; color: #1a1d23; }
  td.nowrap, th.nowrap { white-space: nowrap; }
  td.gray, .gray { color: #98a1b0; }
  /* Marketplace badge — the shared house convention (SQP dashboard): US grey, CA yellow/purple */
  .marketplace-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
  .badge-us { background: #dfe6e9; color: #2d3436; }
  .badge-ca { background: #ffeaa7; color: #6c5ce7; }
  .chart-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 0; background: #d7dbe2; }
  .loading, .empty { padding: 28px; text-align: center; color: #98a1b0; font-size: 13px; line-height: 1.6; }
  .spark { display: block; margin: 0 auto; }
  .spark polyline { fill: none; stroke: #2563eb; stroke-width: 1.5; }
  .spark circle { fill: #2563eb; }
  .spark-rank polyline { stroke: #f59e0b; }   /* rank trend: amber, flipped axis (up = better) */
  .spark-rank circle { fill: #f59e0b; }

  /* Organic-rank cell — smart average across states, coloured by strength */
  .rank-badge { display: inline-block; min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 12.5px; cursor: help; }
  /* Four states, and RED means one thing only: not on page 1 at all. A #28 is a
     real position — worth improving, but it is not the same news as being off
     the page, so it must not wear the same colour. */
  .rank-badge.good { background: #e7f7ee; color: #1a7f4b; }   /* top 8 */
  .rank-badge.mid  { background: #fff4e5; color: #b7791f; }   /* 9–20 */
  .rank-badge.low  { background: #fdf0e3; color: #9c5221; }   /* 21+ — still ON page 1 */
  .rank-badge.bad  { background: #fdecec; color: #c0392b; }   /* >pg1 only */
  .rank-badge.none { background: #eef0f3; color: #98a1b0; font-weight: 600; }
  .rank-date { border: 1px solid #cbd5e0; border-radius: 7px; padding: 5px 9px; font-size: 13px; font-family: inherit; color: #2d3436; background: #fff; }

  /* Rank breakdown — click the rank to expand who ranks for the keyword
     (house pattern: Sales dashboard sku-subrow expandables) */
  .rank-cell { cursor: pointer; }
  .rank-cell:hover .rank-badge { box-shadow: 0 0 0 2px #ffe0b2; }
  /* App-standard expand affordance (identical to the PPC/Sales tree .expand-icon):
     an orange ▶ that sits BEFORE the value and rotates 90° when open. */
  .rank-caret { display: inline-block; width: 14px; font-size: 9px; color: #ff9900; margin-right: 4px; transition: transform .15s; vertical-align: 1px; }
  .rank-caret.open { transform: rotate(90deg); }
  tr.rank-breakdown > td { background: #f7fafc; padding: 0; border-top: 1px dashed #e2e8f0; text-align: left; }
  .rk-wrap { padding: 10px 14px 12px 28px; cursor: default; }   /* no text (I-beam) cursor over the breakdown */
  .rk-wrap a { cursor: pointer; }
  .rk-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6472; margin-bottom: 7px; }
  .rk-list { display: flex; flex-direction: column; max-width: 680px; border-top: 1px solid #edf2f7; }
  .rk-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid #edf2f7; }  /* mild separators, like the Sales sub-rows */
  .rk-row:last-child { border-bottom: 0; }
  .rk-row.ours { background: #eaf1fe; font-weight: 600; }
  /* The two ★ summary lines are a separate info box — amber frame, distinct
     from the blue "ours" product rows below (they were blending together). */
  .rk-row.rk-usline { background: #fff8ea; border: 1px solid #f2ddab; border-bottom: 1px solid #f2ddab; border-radius: 7px; margin: 2px 0; }
  .rk-row.top3 .rk-pos { color: #b7791f; }
  .rk-row.rk-unranked .rk-who { color: #98a1b0; font-style: italic; }
  .rk-pos { min-width: 34px; text-align: center; font-weight: 700; color: #2d3436; flex: none; padding: 2px 6px; border-radius: 5px; }
  /* soft red when the ASIN is missing from some states (rank is from where it shows); deepens with more missing, never dark */
  .rk-pos.miss1 { background: #fdeeee; }
  .rk-pos.miss2 { background: #fadcdc; }
  .rk-pos.miss3 { background: #f6cccc; }
  .rk-medal { width: 18px; text-align: center; flex: none; }
  .rk-asin { font-family: 'IBM Plex Mono', monospace; flex: none; }
  .rk-asin a { color: #2563eb; text-decoration: none; }
  .rk-asin a:hover { text-decoration: underline; }
  .rk-who { color: #636e72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rk-states { color: #98a1b0; font-size: 11px; margin-left: 8px; font-weight: 400; }
  .rk-ourtag { color: #1a1d1f; font-weight: 700; }
  .rk-star { color: #f1c40f; }
  .rk-empty, .rk-loading { font-size: 12px; color: #98a1b0; padding: 6px 8px; }
  .rk-note { font-size: 11px; color: #98a1b0; padding: 2px 8px 6px; line-height: 1.5; }

  /* Copy-ASIN chip + "check & search on Amazon" toolbar (shared house look —
     same as the Market page). Copy chip uses the house ⧉→✓ convention. */
  /* the copy chip's look moved to Shared Data/shell.css on 2026-08-30 */
  .rk-checkcell { width: 16px; flex: none; text-align: center; }
  .amz-check, .amz-check-all { accent-color: #ff9900; cursor: pointer; margin: 0; vertical-align: middle; }
  .rk-tools { display: flex; align-items: center; gap: 14px; padding: 2px 8px 10px; flex-wrap: wrap; }
  .rk-foot { padding: 10px 8px 2px; }
  .rk-selall { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5b6472; cursor: pointer; user-select: none; }
  .amz-search-btn { background: #2563eb; color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
  .amz-search-btn:hover:not(:disabled) { background: #ff9900; color: #131a22; }
  .amz-search-btn:disabled { opacity: .45; cursor: default; }

  /* Chart card */
  .chart-wrap { position: relative; height: 280px; padding: 12px 18px 8px; }
  #trendHost { overflow: hidden; }
  /* the graph's hover card (HTML, so it can carry a product picture) */
  .trend-tip { position: absolute; z-index: 3000; pointer-events: none; opacity: 0; transition: opacity .08s; background: #232f3e; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 340px; }
  .trend-tip .tt-title { font-weight: 700; margin-bottom: 4px; color: #dfe6ec; }
  .trend-tip .tt-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; white-space: nowrap; }
  .trend-tip .tt-row img, .trend-tip .tt-noimg { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; background: #fff; flex: 0 0 auto; }
  .trend-tip .tt-noimg { background: #3b4756; }
  .trend-tip .tt-sw { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
  .trend-tip .tt-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
  /* the little i beside "Charts" — the shell's click-card opens on it */
  .kw-info { display: inline-block; vertical-align: 2px; width: 15px; height: 15px; line-height: 15px; margin-left: 4px; border-radius: 50%; background: var(--cg-th-chip, #dbe6fb); color: var(--cg-th-fg, #5b6a85); font-size: 10px; font-weight: 700; font-style: normal; text-align: center; }
  .chart-empty { padding: 40px 18px; text-align: center; color: #98a1b0; font-size: 13px; }


  /* Click-to-open cell popups (replace hover tooltips in the table) */
  .haspop, .cellpop { cursor: pointer; }
  .cellpop { text-decoration: underline dotted #cbd5e0; text-underline-offset: 3px; }
  thead th.haspop:hover, .cellpop:hover { color: #2563eb; }
  /* Sortable headers: the house look — a caret pinned in the corner so the
     header text keeps its own two lines and never jumps as sorting changes. */
  thead th.sortable { cursor: pointer; user-select: none; position: sticky; }
  thead th.sortable:hover { color: #2563eb; }
  thead th.sorted { color: #2563eb; }
  thead th.sortable .sort-arrow { position: absolute; right: 4px; bottom: 3px; font-size: 8px; line-height: 1; }
  /* the ⓘ, pinned in the opposite corner so it never overlaps the sort caret */
  .th-i { position: absolute; top: 3px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
          border: 1px solid #c3cbd6; color: #8a93a0; font-size: 8.5px; font-weight: 700; line-height: 11px;
          text-align: center; font-style: italic; cursor: help; background: #fff; }
  .th-i:hover { border-color: #2563eb; color: #2563eb; }
  /* The figures in these columns are 1–4 digits, so the column would be sized
     far under its own two-line header and clip it ("SQP our purchases" showed
     as "SQP our purcha…"). This is a WIDTH floor, not table geometry. */
  thead th.num { min-width: 84px; }
  #cellPopup { position: fixed; z-index: 3000; display: none; background: #fff; border: 1px solid #cbd5e0;
    border-radius: 9px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 11px 13px; font-size: 12.5px;
    color: #2d3436; line-height: 1.5; max-width: 340px; }
  #cellPopup .pop-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6472; margin: 0 18px 6px 0; }
  #cellPopup .pop-sub { font-size: 11.5px; color: #98a1b0; margin-bottom: 6px; }
  #cellPopup .pop-row { padding: 2px 0; }
  #cellPopup .pop-help { color: #4a5568; }
  /* sectioned help: a short bold label, then its line — never one long blob */
  #cellPopup .pop-sec { margin-bottom: 9px; }
  #cellPopup .pop-sec:last-child { margin-bottom: 0; }
  #cellPopup .pop-sec > b { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase;
                            letter-spacing: .05em; color: #98a1b0; margin-bottom: 2px; }
  #cellPopup .pop-sec > div { color: #2d3436; line-height: 1.45; }
  #cellPopup .pop-list { max-height: 260px; overflow: auto; margin-top: 2px; }
  #cellPopup .pop-close { position: absolute; top: 7px; right: 9px; cursor: pointer; color: #b0b8c0; font-size: 13px; line-height: 1; }
  #cellPopup .pop-close:hover { color: #5b6472; }

/* ── KW search volume tab (2026-09-03) ── */
/* Compact on big screens (owner 2026-09-04): this tab's blocks cap their width
   instead of stretching across a wide monitor. */
#t-sv .filters-bar, #t-sv .table-card { max-width: 1360px; }
/* the two spans wear two tints in their headers (owner: "monthly and yearly
   column headers should be in slightly different colors") — colour only,
   never geometry (the house table standard owns that) */
/* #svWrap on purpose: the shell's own header rule outranked a bare th.class,
   so only the sorted column (the shell's blue) looked tinted (owner 2026-09-04) */
#svWrap th.sv-th-m, #svWrap th.sv-th-m small { color: #1d4ed8; }
#svWrap th.sv-th-y, #svWrap th.sv-th-y small { color: #b45309; }
/* the info button beside the two buttons (owner 2026-09-04): the house kw-info
   dot, a little bigger so it reads as a button */
.sv-partial { color: #b45309; font-weight: 600; }
.sv-how-btn { width: 20px; height: 20px; line-height: 20px; font-size: 12px; cursor: pointer; }
/* the header's second line: the dates, quiet and lower-case (owner: "render
   the headers, they look like shit") — type and colour only, no geometry */
#svWrap th small { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #8a93a3; }
.sv-input { width: 100%; min-height: 84px; font: inherit; font-size: 13px; color: #2d3436; border: 1px solid #cbd5e0; border-radius: 7px; padding: 7px 10px; resize: vertical; box-sizing: border-box; }
.sv-input:focus { outline: none; border-color: #2563eb; }
.sv-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-avg { cursor: pointer; border-bottom: 1px dotted #90a4c4; }
.sv-spark { cursor: pointer; display: inline-block; vertical-align: middle; }
.sv-spark:hover path { stroke-width: 2; }
/* wider than the house dialog: the graph needs room (the shell's .cg-modal rule is more specific, so this one names the shell too) */
html[data-shell="v2"] .cg-modal.sv-modal, .cg-modal.sv-modal { width: 92vw; max-width: 940px; }
.sv-chart-wrap { position: relative; height: 400px; margin: 6px 0 10px; }
.sv-note { font-size: 12.5px; color: #5b6472; line-height: 1.55; margin-bottom: 12px; }
/* the header's "Potential missing keywords" tab belongs to the KW rank tab */
body.sv-tab-on #pmkHost { display: none !important; }
/* rows the system added (KW search volume): tinted, under the typed keyword.
   TWO kinds, deliberately two colours (owner 2026-09-09) — amber = a twin
   spelling (the SAME keyword), violet = a similar keyword (a DIFFERENT one the
   system found). One colour for both would say they are the same thing. */
tr.sv-twin td { background: #fff7e6; }
.sv-twin-arrow { color: #b45309; font-weight: 700; }
tr.sv-sim td { background: #f5f2fe; }
.sv-sim-arrow { color: #6d28d9; font-weight: 700; }
.kw-tag.sv-tag-you { background: #e0ecfd; color: #1d4ed8; }
.kw-tag.sv-tag-sys { background: #fde8c8; color: #b45309; }
.kw-tag.sv-tag-sim { background: #ece5fd; color: #6d28d9; }
