.fake-red, .fake-red a { color: #b00020 !important; }   /* V303: anything in a report row that is not a real country, sector or company */
    body { font-family: Arial; margin: 10px; }
    table { width: 100%; border-collapse: collapse; margin-bottom: 20px; table-layout: fixed; word-wrap: break-word; }
    th, td { padding: 6px; border: 1px solid #ccc; text-align: left; font-size: 14px; }
    th { word-break: keep-all; overflow-wrap: normal; }
    td { overflow-wrap: anywhere; word-break: normal; }
    #company-table td:nth-child(n+3) { overflow-wrap: anywhere; word-break: break-word; }
    #company-table th { word-break: normal; overflow-wrap: break-word; }
    th { background-color: #f4f4f4; text-align: center; vertical-align: middle; }
    input[type="text"], input[type="number"] { width: 100%; box-sizing: border-box; font-size: 14px; }
    h2 { margin-top: 30px; font-size: 18px; }
    h1 { font-size: 20px; }
    button { margin-right: 5px; padding: 6px 10px; font-size: 14px; }
    /* V645 / V646 (owner 2026-11-11): before an analysis Portfolio Reports looks normal (not greyed), keeps its red note and its arrow, and cannot be opened */
    #reports.reports-idle #reportsCard > h2 { cursor: default; }
    #reports.reports-idle .sec-body button:not(.sec-arrow), #reports.reports-idle .sec-body input, #reports.reports-idle .sec-body select, #reports.reports-idle .sec-body a, #reports.reports-idle .sec-body label { pointer-events: none; }
    #reportsIdleNote { color: #c62828; font-size: 14px; font-weight: normal; margin-left: 12px; }
    #reports:not(.reports-idle) #reportsIdleNote { display: none; }
    .report-note { font-size: 0.8em; font-weight: normal; }
    /* V304: on a phone the portfolio table scrolls sideways and the # Shares column is wide enough for a full number */
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    @media (max-width: 600px), (pointer: coarse) { .table-scroll { scrollbar-width: none; } .table-scroll::-webkit-scrollbar { display: none; } }   /* V351: no grey scroll bar under the portfolio table on a phone (the box still scrolls sideways) */
    /* V539 (owner 2026-11-02): the portfolio table on a phone, portrait AND landscape (a touch screen up to 1,000 px wide): real pixel widths, so the headings and the helper text under them do not squeeze into tall narrow columns */
    @media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {
      #portfolio-table { min-width: 1560px; }
      /* V541 (owner 2026-11-02): the # of Holdings column is as wide as its widest value, on one line (the other columns keep their pixel widths) */
      #portfolio-table { table-layout: auto; }
      #portfolio-table td.holdings { white-space: nowrap; }
      #portfolio-table th:nth-child(1) { width: 36px !important; }
      #portfolio-table th:nth-child(2) { width: 100px !important; }
      #portfolio-table th:nth-child(3) { width: 95px !important; }
      #portfolio-table th:nth-child(4) { width: 95px !important; }
      #portfolio-table th:nth-child(5) { width: 200px !important; }
      #portfolio-table th:nth-child(6) { width: 100px !important; }
      #portfolio-table th:nth-child(7) { width: 80px !important; }
      #portfolio-table th:nth-child(8) { width: 1px !important; }
      #portfolio-table th:nth-child(9) { width: 110px !important; }
      #portfolio-table th:nth-child(10) { width: 110px !important; }
      #portfolio-table th:nth-child(11) { width: 120px !important; }
      #portfolio-table th:nth-child(12) { width: 80px !important; }
      /* V311 / V434: phone only: the # and Ticker columns stay in view while the table scrolls sideways */
      #portfolio-table thead th:nth-child(-n+2),
      #portfolio-table tbody tr:not(.filter-row) td:nth-child(-n+2),
      #portfolio-table tfoot td:first-child {
        position: sticky !important; z-index: 2; background-color: #fff;   /* !important: createRow writes an inline position:relative on the Ticker cell */
      }
      #portfolio-table thead th:nth-child(1), #portfolio-table tbody tr:not(.filter-row) td:nth-child(1), #portfolio-table tfoot td:first-child { left: 0; }
      #portfolio-table thead th:nth-child(2), #portfolio-table tbody tr:not(.filter-row) td:nth-child(2) { left: 36px; }
      #portfolio-table thead th:nth-child(-n+2) { background-color: #f4f4f4; z-index: 3; }
      #portfolio-table tbody tr.sub-etf-row td:nth-child(-n+2) { background-color: #f9f9f9; }
    }
    @media (max-width: 600px) {
      th, td, input, button { font-size: 12px; }
      h1 { font-size: 18px; }
      h2 { font-size: 16px; }
    }

    /* V351: phone only: every report scrolls sideways with its first two columns (# and the name) pinned; columns have real pixel widths */
    /* V554 (owner 2026-11-04): also a phone held sideways (a touch screen up to 1,000 px wide); before, only the portrait width pinned the # and name columns, so in landscape the whole table slid */
    @media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {
      #reports h2 > button:not(.sec-arrow) { display: block; margin: 8px 0 0 0 !important; }   /* V351: Show Details button on its own line under the title, left aligned with the report */
      #allocation-table { width: 536px !important; min-width: 536px; }
      #allocation-table th:nth-child(1) { width: 36px !important; } #allocation-table th:nth-child(2) { width: 100px !important; }
      #allocation-table th:nth-child(3) { width: 200px !important; } #allocation-table th:nth-child(4) { width: 110px !important; }
      #allocation-table th:nth-child(5) { width: 90px !important; }
      #allocation-table th, #sector-table th, #country-table th, #company-table th { box-sizing: border-box; }
      #sector-table.hide-details, #country-table.hide-details { width: 349px !important; min-width: 349px; }
      #sector-table:not(.hide-details), #country-table:not(.hide-details) { width: 896px !important; min-width: 896px; }
      #sector-table th:nth-child(1), #country-table th:nth-child(1) { width: 36px !important; }
      #sector-table th:nth-child(2), #country-table th:nth-child(2) { width: 120px !important; }
      #sector-table th:nth-child(3), #country-table th:nth-child(3) { width: 220px !important; }
      #sector-table th:nth-child(4), #country-table th:nth-child(4) { width: 320px !important; }
      #sector-table th:nth-child(5), #country-table th:nth-child(5) { width: 110px !important; }
      #sector-table th:nth-child(6), #country-table th:nth-child(6) { width: 90px !important; }
      #sector-table.hide-details th:nth-child(5), #country-table.hide-details th:nth-child(5) { width: 105px !important; }
      #sector-table.hide-details th:nth-child(6), #country-table.hide-details th:nth-child(6) { width: 88px !important; }
      #company-table.hide-details { width: 936px !important; min-width: 936px; }   /* V351: + Normalized Value (120 px); V586: + Change from Previous Day (120 px) */
      #company-table:not(.hide-details) { width: 1876px !important; min-width: 1876px; }
      #company-table th:nth-child(1) { width: 36px !important; } #company-table th:nth-child(2) { width: 130px !important; }
      #company-table th:nth-child(3) { width: 120px !important; } #company-table th:nth-child(4) { width: 70px !important; } #company-table th:nth-child(5) { width: 120px !important; }
      #company-table th:nth-child(6) { width: 130px !important; } #company-table th:nth-child(7) { width: 130px !important; }
      #company-table th:nth-child(8) { width: 250px !important; } #company-table th:nth-child(9) { width: 150px !important; }
      #company-table th:nth-child(10) { width: 150px !important; } #company-table th:nth-child(11) { width: 150px !important; }
      #company-table th:nth-child(12) { width: 110px !important; } #company-table th:nth-child(13) { width: 120px !important; }
      #company-table th:nth-child(14) { width: 120px !important; } #company-table th:nth-child(15) { width: 90px !important; }
      #allocation-table th:nth-child(-n+2), #allocation-table td:nth-child(-n+2),
      #sector-table th:nth-child(-n+2), #sector-table td:nth-child(-n+2),
      #country-table th:nth-child(-n+2), #country-table td:nth-child(-n+2),
      #company-table th:nth-child(-n+2), #company-table td:nth-child(-n+2) { position: sticky; z-index: 2; background-color: #fff; }
      #allocation-table th:nth-child(-n+2), #sector-table th:nth-child(-n+2), #country-table th:nth-child(-n+2), #company-table th:nth-child(-n+2) { background-color: #f4f4f4; z-index: 3; }
      #allocation-table th:nth-child(1), #allocation-table td:nth-child(1), #sector-table th:nth-child(1), #sector-table td:nth-child(1),
      #country-table th:nth-child(1), #country-table td:nth-child(1), #company-table th:nth-child(1), #company-table td:nth-child(1) { left: 0; box-shadow: inset 1px 0 0 #ccc; }
      #allocation-table th:nth-child(2), #allocation-table td:nth-child(2), #sector-table th:nth-child(2), #sector-table td:nth-child(2),
      #country-table th:nth-child(2), #country-table td:nth-child(2), #company-table th:nth-child(2), #company-table td:nth-child(2) { left: 36px; box-shadow: inset -1px 0 0 #bbb, 3px 0 4px -2px rgba(0,0,0,0.18); }
    }

    /* V351: the four reports (Asset Allocation, Sector, Country, Company), on phone and computer alike: column headers 14 px, everything in the
       body and the footer rows 12 px (inline sizes included), the '(* Direct Position)' note in a header 12 px, the company filter 14 px. */
    #allocation-table th, #sector-table th, #country-table th, #company-table th { font-size: 14px; }
    #allocation-table td, #allocation-table td *, #sector-table td, #sector-table td *, #country-table td, #country-table td *,
    #company-table td, #company-table td * { font-size: 12px !important; }
    #company-table th .cmp-legend { font-size: 12px; font-weight: normal; }
    html:not(.etfw-on) #company-table th:nth-child(14), html:not(.etfw-on) #company-table td:nth-child(14), html:not(.etfw-on) .etfw-help { display: none !important; }
    html:not(.cpp-on) #company-table th:nth-child(15), html:not(.cpp-on) #company-table td:nth-child(15), html:not(.cpp-on) .cpp-help { display: none !important; }   /* V699: the Company Current Price day-change column and its help sentence show only for users the owner switched on */   /* V668: the ETF Weight day-change column and its help sentence show only for users the owner switched on */
    #company-table th b { font-weight: 800; }   /* V666: the "based on ..." part of the two Change from Previous Day headings */
    #company-filter, #company-filter * { font-size: 14px !important; }
    /* V354: Company Overlap Report: the same font scheme (headers 14 px, cells 12 px), first two columns pinned on a phone */
    #overlap-table th { font-size: 14px; }
    #overlap-table td, #overlap-table td * { font-size: 12px !important; }
    #overlap-table th .cmp-legend { font-size: 12px; font-weight: normal; }
    #overlap-table td { vertical-align: top; }
    /* V357: every report table and the portfolio inputs scroll inside their own window (70% of the screen high) so the header row stays in view */
    .vscroll { max-height: 70vh; overflow: auto; margin-bottom: 20px; }
    .vscroll > table { margin-bottom: 0; }
    @media print { .vscroll { max-height: none; overflow: visible; } }   /* a printout shows every row, not the window */
    /* V461 (owner 2026-10-25): printing. Landscape; the table is shrunk to the page width by printSection(); the footer (totals) prints once after
       the last row instead of at the bottom of every page; header colours and borders are forced to print. */
    @page { size: landscape; margin: 0.4in; }
    /* V463 (owner 2026-10-26): the Source Ticker(s) / % ETF Weight column is a little smaller (11 px) in the Sector, Country and Company reports */
    #sector-table td:nth-child(4), #sector-table td:nth-child(4) *, #country-table td:nth-child(4), #country-table td:nth-child(4) *,
    #company-table td:nth-child(8), #company-table td:nth-child(8) * { font-size: 11px !important; }
    /* V464 (owner 2026-10-26): the portfolio table's '# of Holdings in ETF / Total % Weight ... / Source' column is a little smaller (12 px instead of 14 px) */
    #portfolio-table td.holdings { font-size: 12px; }
    .print-only { display: none; }
    .print-filters { color: #c62828; flex: 0 0 100%; }
    .print-only.print-acct { margin: 0 0 8px; font-size: 14px; color: #c62828; }
    .print-only.print-pf { margin: 0 0 8px; font-size: 14px; color: #0E1726; }
    @media print { .print-only { display: block !important; } }
    .print-only.print-head { text-align: center; margin: 0 0 14px; }
    .print-only.print-head img { display: block; margin: 0 auto; width: 100%; max-width: 460px; height: auto; }
    .print-only.print-head .verline { margin-top: 6px; font-size: 13px; }
    .print-only.print-foot { margin-top: 18px; font: 13px/1.55 'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif; color: #4A5670; }
    .print-only.print-foot a { color: #1F5FE0; text-decoration: none; }
    .print-btn { font-size: 12px !important; font-weight: normal; padding: 2px 10px; margin-left: 12px; cursor: pointer; vertical-align: middle; }
    .card.collapsed > h2 .print-btn { display: none !important; }   /* V465: also on a phone, where '#reports h2 > button { display: block }' would show it on a folded section */
    @media print {
      * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      .print-hide, .print-btn, .sec-arrow { display: none !important; }
      .print-target button, .print-target #aiBox { display: none !important; }   /* V476: a settings section prints without its buttons; the Connect ETF True Holdings to My Own AI box (it can hold a key) never prints */
      body { background: #fff !important; }
      body:has(.print-target) { padding: 0 !important; }   /* V502 (owner 2026-10-28): only a printout made with our Print buttons drops the side padding; Windows print of the whole page keeps it, so the footer lines up with the cards */
      .print-target { box-shadow: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; }
      .print-target .table-scroll { overflow: visible !important; }
      .print-target th, .print-target td { position: static !important; }
      .print-target #company-filter, .print-target #overlap-filter, .print-target .details-line { display: none !important; }
      .print-target .countbar { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; margin: 6px 0 12px; }   /* V532: the count line moved out of the filter box; the printout keeps its grey frame */
      .print-target #portfolioBar, .print-target .btnrow, .print-target .controls { display: none !important; }
      thead { display: table-header-group; } tfoot { display: table-row-group; } tr { break-inside: avoid; }
    }
    .vscroll thead th { position: sticky; top: 0; z-index: 4; background-color: #f4f4f4; box-shadow: inset 0 -1px 0 #ccc; }
    /* the pinned corner cells (the first two columns of a header) stay above the other headers; the id rules above set a lower z-index */
    #allocation-table thead th:nth-child(-n+2), #sector-table thead th:nth-child(-n+2), #country-table thead th:nth-child(-n+2),
    #company-table thead th:nth-child(-n+2), #overlap-table thead th:nth-child(-n+2), #portfolio-table thead th:nth-child(-n+2) { z-index: 6; }
    #overlap-table th, #overlap-table td { box-sizing: border-box; }
    #overlap-table th:nth-child(-n+2), #overlap-table td:nth-child(-n+2) { position: sticky; z-index: 2; background-color: #fff; }
    #overlap-table th:nth-child(-n+2) { background-color: #fff; z-index: 3; }
    #overlap-table th:nth-child(1), #overlap-table td:nth-child(1) { left: 0; text-align: center; color: #666; }
    #overlap-table th:nth-child(2), #overlap-table td:nth-child(2) { left: 56px; }   /* V523 (owner 2026-10-31): the # column is wider */
      .name-link { text-decoration: underline; color: #0645ad; display: inline-block; word-break: break-word; max-width: 100%; }
    .name-link:visited { color: #0b0080; }

    .api-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin-top: 8px; }
    .blk-t { font-size: 16px; font-weight: 700; color: #0E1726; }
    .own-tbl input.tbl-in { font-size: 13px; padding: 3px 6px; width: 100px; box-sizing: border-box; border: 1px solid #cfd8e6; border-radius: 4px; }
    .own-tbl td input.tbl-in[type=number] { width: 84px; }
    .api-form input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
    .api-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
    /* Right-align numeric columns */
    #portfolio-table td.price, #portfolio-table td.subprice, #portfolio-table td.subtot,
    #portfolio-table td.total,
    #portfolio-table td.dchg,
    #grand-change,
    #portfolio-table td.pctHoldings,
    #grand-total,
    #portfolio-pct-total { text-align: right; }
    .chg { font-size: 12px; } .chg .nw { white-space: nowrap; }   /* the amount and the percent never split; a narrow column may put the percent on its own line */   /* V554: the change from the previous trading day, under a value */
    .chg.up { color: #1B7F3B; } .chg.dn { color: #C62828; } .chg.flat { color: #666; }
    /* V299: Asset Allocation report - same look as the other three: rank column 36 px, the rest percentages (97%) */
    #allocation-table td { vertical-align: top; }
    #allocation-table th:nth-child(1), #allocation-table td:nth-child(1) { width: 36px; text-align: center; }
    #allocation-table th:nth-child(2) { width: 18%; }
    #allocation-table th:nth-child(3) { width: 43%; }
    #allocation-table th:nth-child(4) { width: 20%; }
    #allocation-table th:nth-child(5) { width: 16%; }
    #allocation-table td.right, #allocation-table tfoot td.right { text-align: right; }
    #sector-table td, #country-table td, #company-table td { vertical-align: top; }
    #sector-table.hide-details th:nth-child(3), #sector-table.hide-details td:nth-child(3),
    #sector-table.hide-details th:nth-child(4), #sector-table.hide-details td:nth-child(4),
    #country-table.hide-details th:nth-child(3), #country-table.hide-details td:nth-child(3),
    #country-table.hide-details th:nth-child(4), #country-table.hide-details td:nth-child(4),
    #company-table.hide-details th:nth-child(n+7):nth-child(-n+12), #company-table.hide-details td:nth-child(n+7):nth-child(-n+12) { display: none; }   /* V351: columns 6-11 are the details; 12 (Normalized Value) is always shown */
    #sector-table td:nth-child(3),
    #sector-table td:nth-child(4),
    #sector-table td:nth-child(5),
    #sector-table td:nth-child(6),
    #country-table td:nth-child(3),
    #country-table td:nth-child(4),
    #country-table td:nth-child(5),
    #country-table td:nth-child(6) { text-align: right; }
    #company-table td:nth-child(8),
    #company-table td.right,
    #company-table tfoot td.right { text-align: right; }
    /* Center Type column in company table */
    #company-table td:nth-child(3),
    #company-table td:nth-child(4),
    #company-table td:nth-child(5),
    #company-table td:nth-child(6) { text-align: center; }
    #company-table td.cmp-list { text-align: left; }
    /* V277-V279: rank column (1 = largest share of the portfolio), the same fixed 36 px in the sector, country and company reports */
    #sector-table th:nth-child(1), #sector-table td:nth-child(1), #country-table th:nth-child(1), #country-table td:nth-child(1),
    #company-table th:nth-child(1), #company-table td:nth-child(1) { text-align: center; color: #666; padding-left: 2px; padding-right: 2px; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }

    /* V279: column widths of the three report tables, the same scheme for all three (rank column = fixed 36 px; the other
       columns are percentages adding up to 97% in each state, so almost no slack is left over for the rank column) */
    #sector-table th:nth-child(1), #country-table th:nth-child(1), #company-table th:nth-child(1) { width: 36px; }
    #sector-table th:nth-child(2), #country-table th:nth-child(2) { width: 16%; }
    #sector-table th:nth-child(3), #country-table th:nth-child(3) { width: 21%; }
    #sector-table th:nth-child(4), #country-table th:nth-child(4) { width: 32%; }
    #sector-table th:nth-child(5), #country-table th:nth-child(5) { width: 16%; }
    #sector-table th:nth-child(6), #country-table th:nth-child(6) { width: 12%; }
    #sector-table.hide-details th:nth-child(2), #country-table.hide-details th:nth-child(2) { width: 40%; }
    #sector-table.hide-details th:nth-child(5), #country-table.hide-details th:nth-child(5) { width: 30%; }
    #sector-table.hide-details th:nth-child(6), #country-table.hide-details th:nth-child(6) { width: 27%; }
    #company-table th:nth-child(2) { width: 11%; }
    #company-table th:nth-child(3) { width: 7%; }
    #company-table th:nth-child(4) { width: 5%; }
    #company-table th:nth-child(5) { width: 7%; }
    #company-table th:nth-child(6) { width: 7%; }
    #company-table th:nth-child(7) { width: 10%; }
    #company-table th:nth-child(8) { width: 17%; }
    #company-table th:nth-child(9) { width: 7%; }
    #company-table th:nth-child(10) { width: 8%; }
    #company-table th:nth-child(11) { width: 8%; }
    #company-table th:nth-child(12) { width: 6%; }
    #company-table th:nth-child(13) { width: 6%; }
    #company-table th:nth-child(14) { width: 6%; }
    #company-table th:nth-child(15) { width: 5%; }
    #company-table.hide-details th:nth-child(2) { width: 27%; }
    #company-table.hide-details th:nth-child(3) { width: 12%; }
    #company-table.hide-details th:nth-child(4) { width: 10%; }
    #company-table.hide-details th:nth-child(5) { width: 16%; }
    #company-table.hide-details th:nth-child(6) { width: 18%; }
    #company-table.hide-details th:nth-child(13) { width: 14%; }
    #company-table.hide-details th:nth-child(14) { width: 14%; }
    #company-table.hide-details th:nth-child(15) { width: 12%; }

    /* Sub-ETF expansion styling */
    .expand-sub-etfs {
      font-size: 11px;
      color: #0066cc;
      cursor: pointer;
      margin-top: 4px;
      display: inline-block;
      user-select: none;
    }
    .expand-sub-etfs:hover { text-decoration: underline; }
    .sub-etf-row { background-color: #f9f9f9; }
    /* V434 (owner 2026-10-24): the # column of the portfolio table, the same look as the # column of the reports */
    .lbl-note { font-weight: 400; color: #999; }
    #portfolio-table td.seqn, #portfolio-table th:nth-child(1) { text-align: center; color: #666; padding-left: 2px; padding-right: 2px; white-space: nowrap; width: 36px; min-width: 36px; max-width: 36px; box-sizing: border-box; overflow: hidden; }
    .sub-etf-row td:nth-child(2) { position: relative; }

/* INSPECTOR_FRAME_LAYOUT */
.frame-box iframe {
  width: 100% !important;
  height: 520px !important;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.frame-box { width: 100%; }
.frame-box.hidden { display: none; }

    /* Spinner overlay */
    #spinnerOverlay {
      position: fixed;
      inset: 0;
      background: rgba(255,255,255,0.75);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
    }
    #spinnerBox{
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 16px 18px;
      display: flex;
      align-items: center;
      justify-content: flex-start;   /* V633: spinner and text stay at the left */
      gap: 12px;
      width: 360px;   /* V646 (owner 2026-11-11): Cancel on the right again, in a narrower box so the gap is small */
      max-width: 100%;
      box-sizing: border-box;
    }
    #spinner {
      width: 22px;
      height: 22px;
      border: 3px solid #e5e5e5;
      border-top-color: #666;
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
      flex: 0 0 auto;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    #spinnerText { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; min-height: 40px; justify-content: center; text-align: left; }
    #spinnerMsg { font-size: 14px; }
    #spinnerDetail { font-size: 12px; color: #6A7690; min-height: 16px; }   /* V633: the window keeps its height with or without a sub-line */
    #spinnerBox #cancelBtn { margin-left: auto; flex: 0 0 auto; }

    /* Autocomplete dropdown */
    .autocomplete-dropdown {
      position: absolute;
      background: white;
      border: 1px solid #ccc;
      border-top: none;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      display: none;
    }
    .autocomplete-item {
      padding: 8px 12px;
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
      font-size: 13px;
    }
    .autocomplete-item:hover, .autocomplete-item.active {
      background-color: #f0f0f0;
    }
    .autocomplete-ticker {
      font-weight: bold;
      color: #0645ad;
    }
    .autocomplete-name {
      color: #666;
      margin-left: 8px;
    }
    .autocomplete-exchange {
      font-size: 11px;
      color: #999;
      margin-left: 8px;
    }


    /* Report table sortable headers */
    .rpt-sortable { cursor: pointer; }
    .rpt-sortable::after { content: '⇅'; display: block; text-align: center; color: #aaa; font-size: 10px; line-height: 1.2; }
    .rpt-sort-asc::after { content: '▲'; display: block; text-align: center; color: #333; font-size: 10px; line-height: 1.2; }
    .rpt-sort-desc::after { content: '▼'; display: block; text-align: center; color: #333; font-size: 10px; line-height: 1.2; }
#authMsg:empty { display: none; }   /* V593: no reserved blank space on the sign-in screens; the robot box and messages push the form down only when they appear */


/* Application Theme */
/* ═══ V358 THEME (design canvas "ETF True Holdings Design Concepts", concept 3: Portfolio and reports) ═══
       Only looks: colours, fonts, cards, pill buttons, table style. No logic. Fonts: Plus Jakarta Sans, numbers in IBM Plex Mono.
       Owner decision 2026-10-17: the canvas wins over the old '14 px headers / 12 px cells' rule: report headers 12 px muted, cells 14 px. */
    html { background: linear-gradient(180deg, #E3ECFB 0, #F3F6FB 520px) no-repeat #F3F6FB; }
    html, body { overscroll-behavior-y: contain; }   /* V372: pulling the page down at the top does not make Chrome on the phone refresh it (it reloaded the whole portfolio) */
    body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0E1726; background: transparent;
           margin: 0; padding: 20px 16px 40px; max-width: none; box-sizing: border-box; }   /* full width, a small side padding */
    a { color: #1F5FE0; text-decoration: none; } a:hover { color: #1747B0; text-decoration: underline !important; }
    p a, li a, label a, th a, .sec-help a, .small a { text-decoration: underline; }   /* V534 (owner 2026-10-31): links inside sentences are underlined, the rest only on hover */
    h1, h2, h3 { color: #0E1726; }
    h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
    .report-note { font-size: 12px !important; font-weight: 500 !important; color: #6A7690; }
    .card { background: #fff; border-radius: 20px; padding: 24px 28px; margin: 0 0 20px !important; box-shadow: 0 1px 2px rgba(14,23,38,.06); box-sizing: border-box; }
    #accountBar.card { font-size: 14px; color: #333; }

    /* top bar */
    .navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; background: #fff; border-radius: 999px;
              padding: 12px 16px 12px 28px; box-shadow: 0 1px 2px rgba(14,23,38,.06); margin: 0 0 24px; }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .02em; color: #0E1726; }
    .brand i { width: 26px; height: 26px; border-radius: 8px; background: #1F5FE0; display: inline-block; }
    .brand .brandver { font-size: 12px; font-weight: 600; letter-spacing: 0; color: #6A7690; margin-left: 4px; }
    .navlinks { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; font-weight: 600; }
    .navlinks a { color: #0E1726; } .navlinks a.active { color: #1F5FE0; }
    .navright { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: #4A5670; }
    .topbrand { text-align: center; margin: 0 0 18px; }
    .topbrand img { display: block; margin: 0 auto; width: 100%; max-width: 420px; height: auto; }
    .verline { margin-top: 6px; font-size: 15px; color: #4A5670; }

    /* buttons: pills; Analyze is the blue call to action */
    button { font-family: inherit; font-weight: 700; border-radius: 999px !important; border: 1px solid #1F5FE0; background: #fff; color: #1F5FE0; cursor: pointer; }   /* V648 (owner 2026-11-11): every button has blue text on white; red is only for a pending Save / Apply and for danger */
    button:disabled { opacity: 1; cursor: default; color: #8A93A6; border-color: #CBD5E6; }
    /* V383 (owner 2026-11-09): THE SHARED CLASSES. New page elements use these; no inline font-size / padding / colour on a button, label or sub-heading (tests/page/v623_style_rules_test.js checks it).
       Buttons: btn-sm (12 px, the usual small button), btn-xs (in a table row), btn-md (14 px, dialogs), btn-auth (sign-in screens); colours btn-blue / btn-red / btn-accent / btn-grey, btn-warn = red text.
       Labels: fld-l (a field's label; blk = own line, inl = inline, sm = 13 px, b = bold), chk-l (a check box or radio row; top = text starts at the top, sm, b).
       Sub-heading: h3.pref-h (gap = more space above). Notes under a control: note (12 px grey; warn = amber), msg-err (12 px red), help text: sec-help. Tables of the owner: own-tbl. */
    button.btn-sm { font-size: 12px; padding: 4px 12px; }
    button.btn-xs { font-size: 12px; padding: 2px 10px; }
    button.btn-md { font-size: 14px; padding: 7px 14px; }
    button.btn-glyph { font-size: 16px; }
    button.btn-auth { width: 100%; font-size: 16px; padding: 10px; }
    button.btn-blue { background: #fff; color: #1F5FE0; border-color: #1F5FE0; }
    button.btn-red { background: #b00020; color: #fff; border-color: #b00020; }
    button.btn-accent { background: #fff; color: #1F5FE0; border-color: #1F5FE0; }
    button.btn-grey { background: #fff; color: #1F5FE0; border-color: #1F5FE0; }
    button.btn-warn { color: #b00020; }
    .fld-l { font-size: 14px; cursor: pointer; }
    .fld-l.sm, .chk-l.sm { font-size: 13px; color: #333; }
    .fld-l.blk { display: block; margin-bottom: 6px; }
    .run-grp { margin: 0 0 14px; }   /* V724: one run group = label, box, button, stacked */
    .run-grp .fld-l { display: block; margin-bottom: 6px; }
    .run-grp input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
    /* V730 (owner 2026-11-26): the Data Refresh card (the full redesign of Scraper Control) and its popup */
    .dr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 14px; }
    .dr-pill { font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: #EEF1F6; color: #4A5670; }
    .dr-pill.run { background: #E6EEFD; color: #1F5FE0; } .dr-pill.wait { background: #FFF4DE; color: #8A5A00; } .dr-pill.bad { background: #FDECEC; color: #b00020; }
    .dr-next { font-size: 13px; color: #4A5670; }
    .dr-top .dr-new { margin-left: auto; }
    .dr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin: 0 0 14px; }
    .dr-tile { background: #F6F8FC; border: 1px solid #E6ECF6; border-radius: 12px; padding: 10px 14px; }
    .dr-tile .k { font-size: 12px; color: #4A5670; }
    .dr-tile .v { font-size: 22px; font-weight: 600; color: #0E1726; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
    .dr-tile.warn .v { color: #8A5A00; } .dr-tile.bad .v { color: #b00020; }
    .dr-run { border: 1px solid #D5DEEE; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
    .dr-run-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: #0E1726; }
    .dr-meta { color: #4A5670; font-size: 13px; }
    .dr-run-h .dr-stop { margin-left: auto; }
    .dr-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
    .dr-bar { height: 8px; border-radius: 4px; background: #EEF1F6; overflow: hidden; }
    .dr-bar > i { display: block; height: 100%; background: #1F5FE0; border-radius: 4px; }
    .dr-bar.done > i { background: #1B7F3B; } .dr-bar.bad > i { background: #b00020; }
    .dr-stage-l { font-size: 12px; color: #4A5670; margin-top: 4px; }
    .dr-now { font-size: 12px; color: #4A5670; margin-top: 8px; }
    .dr-wbar { display: flex; flex-direction: column; gap: 3px; width: 120px; margin-bottom: 3px; }
    .dr-wbar i { display: block; height: 6px; border-radius: 3px; background: #1F5FE0; max-width: 100%; }
    .dr-wbar i.cur { background: #B8C2D3; } .dr-wbar i.low { background: #D98A00; }
    .dr-folds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
    .dr-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 6px; }
    .dr-dot, .dr-sq { display: inline-block; width: 10px; height: 10px; background: #B8C2D3; }
    .dr-dot { border-radius: 50%; margin-right: 6px; vertical-align: -1px; } .dr-sq { border-radius: 2px; margin-right: 3px; }
    .dr-dot.ok, .dr-sq.ok { background: #1B7F3B; } .dr-dot.bad, .dr-sq.failed, .dr-sq.partial { background: #b00020; } .dr-dot.running, .dr-sq.running, .dr-sq.queued { background: #1F5FE0; }
    .dr-st { font-weight: 600; } .dr-st.ok { color: #1B7F3B; } .dr-st.bad { color: #b00020; } .dr-st.run { color: #1F5FE0; } .dr-st.wait { color: #8A5A00; }
    .own-tbl tr.dr-click { cursor: pointer; } .own-tbl tr.dr-click:hover td { background: #F6F8FC; }
    .own-tbl td.dr-err { white-space: pre-wrap !important; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: #b00020; min-width: 260px !important; max-width: 420px !important; }
    #drModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14,23,38,0.5); z-index: 10001; align-items: center; justify-content: center; }
    #drModal .dr-box { background: #fff; border-radius: 16px; width: 94%; max-width: 780px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
    #drModal .dr-head { padding: 18px 20px 6px; }
    #drModal .dr-title { font-size: 18px; font-weight: 700; color: #0E1726; }
    #drModal .dr-sub { font-size: 13px; color: #4A5670; margin-top: 4px; }
    #drModal .dr-body { padding: 8px 20px 12px; overflow: auto; }
    #drModal .dr-foot { padding: 12px 20px 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; border-top: 1px solid #E6ECF6; }
    .dr-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #D5DEEE; border-radius: 10px; overflow: hidden; margin: 4px 0 12px; }
    .dr-seg button { border: 0; background: #fff; color: #4A5670; font-size: 13px; padding: 7px 14px; cursor: pointer; }
    .dr-seg button.on { background: #E6EEFD; color: #1F5FE0; font-weight: 600; }
    .dr-search { position: relative; }
    .dr-search .srch-x { width: 100%; }
    .dr-search input { font-size: 14px; padding: 8px 30px 8px 10px; border: 1px solid #cfd8e6; border-radius: 8px; }
    .dr-sugg { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #D5DEEE; border-radius: 8px; margin-top: 4px; z-index: 3; max-height: 260px; overflow: auto; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
    .dr-sugg div { padding: 7px 10px; font-size: 13px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
    .dr-sugg div.on, .dr-sugg div:hover { background: #F0F4FB; }
    .dr-sugg small { color: #4A5670; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dr-kind { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
    .dr-kind.fund { background: #E3F4EF; color: #0F6E56; } .dr-kind.source { background: #EEEDFE; color: #3C3489; } .dr-kind.step { background: #EEF1F6; color: #4A5670; } .dr-kind.unknown { background: #FDECEC; color: #b00020; }
    .dr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
    .dr-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px solid #D5DEEE; background: #fff; color: #33405A; }
    .dr-chip.fund { background: #E3F4EF; border-color: #9FE1CB; color: #085041; } .dr-chip.source { background: #EEEDFE; border-color: #CECBF6; color: #3C3489; }
    .dr-chip.step { background: #F1F3F7; } .dr-chip.unknown { background: #FDECEC; border-color: #F7C1C1; color: #b00020; }
    .dr-chip button.dr-x { border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: inherit; padding: 0 5px; }
    .dr-plan { background: #F6F8FC; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #33405A; margin: 8px 0; }
    .dr-modes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 2px; }
    .dr-steps { columns: 2 260px; column-gap: 24px; }
    .dr-grp { break-inside: avoid; margin-bottom: 12px; }
    .dr-grp-h { font-size: 13px; font-weight: 700; color: #0E1726; margin: 0 0 4px; }
    .dr-steps .chk-l { font-size: 13px; margin: 4px 0; }
    .dr-hint { color: #4A5670; font-size: 12px; }
    .dr-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 10px; }
    .dr-cmp .dr-tile .v { font-size: 18px; }
    .dr-sec { font-size: 14px; font-weight: 700; color: #0E1726; margin: 14px 0 4px; }
    @media (max-width: 600px) { .dr-stages { grid-template-columns: 1fr; } .dr-top .dr-new { margin-left: 0; } #drModal .dr-box { width: 98%; max-height: 92vh; } .dr-cmp { grid-template-columns: 1fr; } .dr-search .srch-x { width: 100%; } }
    .fld-l.inl { display: inline-flex; align-items: center; gap: 6px; }
    .fld-l.b, .chk-l.b { font-weight: 700; }
    .chk-l { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
    .chk-l.top { align-items: flex-start; }
    h3.pref-h.gap { margin-top: 30px; }
    div.note, span.note, p.note { font-size: 12px; color: #666; }
    div.note.warn, span.note.warn { color: #b36b00; }
    .msg-err { font-size: 12px; color: #c62828; }
    .wbox { background: #fff7e0; border: 1px solid #e8c766; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 13px; color: #7a4a00; }
    .wbox > div { margin-top: 3px; } .wbox .wbox-n { color: #8a6d3b; }
    .wbox-info { background: #f4f4f4; border-color: #d8d8d8; color: #555; }
    .wbox-err { background: #fdecea; border-color: #e6a4a0; color: #b00020; }
    .wbox-err .wbox-retry { margin-top: 8px; }
    #portfolioCard > button { font-size: 14px; padding: 11px 22px; }
    .btnrow button { font-size: 12px; padding: 4px 10px; }   /* V431: the same small size as the buttons of Your Account */
    .btnrow { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
    .pf-break { display: none; }
    /* V432 (phone, owner 2026-10-24): the selector sits beside Rename, Save / Delete share the next row evenly, and the four buttons under the table form a 2 x 2 block; wider screens keep one row */
    @media (max-width: 600px) {
      .pfsel { gap: 6px !important; }
      .pfsel button { margin: 0 !important; }
      .btnrow button { margin: 0 !important; }
      .pfsel strong { flex: 1 1 100%; }
      .pfsel select { flex: 1 1 0; min-width: 0; }
      .pfsel #pf-rename-btn, .pfsel #pf-export-btn { flex: 0 0 auto; white-space: nowrap; }
      .pfsel .pf-break { display: block; flex: 1 1 100%; height: 0; }
      .pfsel #pf-save-btn, .pfsel #pf-delete-btn { flex: 1 1 calc(50% - 4px); white-space: nowrap; }
      .btnrow { display: grid; grid-template-columns: 1fr 1fr; }
      .btnrow button { width: 100%; }
    }

    /* form controls */
    select, input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="date"], input[type="search"], input:not([type]) {
      font-family: inherit; border: 1px solid #CBD5E6 !important; border-radius: 10px !important; color: #0E1726; background: #fff; }
    #portfolio-table input.symbol, #portfolio-table input.shares, #portfolio-table input.account { border-radius: 8px !important; }
    #portfolioBar { background: #F3F6FB; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px !important; }
    #authOverlay { background: linear-gradient(180deg, #E3ECFB 0, #F3F6FB 520px) #F3F6FB !important; }
    #authOverlay > div > div:last-child, #authOverlay form { font-family: inherit; }
    #authOverlay > div { background: transparent; }
    #authOverlay > div > div[data-ui~="max-width-380px"] { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 1px 2px rgba(14,23,38,.06); }
    #authSubmit { margin-top: 14px; border-radius: 999px !important; background: #1F5FE0 !important; color: #fff !important; padding: 12px !important; }   /* V658: white text (V648's blue button text was invisible on this solid blue button) */
    .authbrand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .02em; margin: 8px 0 22px; }
    .authbrand i { width: 30px; height: 30px; border-radius: 9px; background: #1F5FE0; display: inline-block; }

    /* tables: muted 12 px headers, 14 px cells, hairline row lines, numbers in the mono face */
    table { margin-bottom: 0; }
    th { background-color: #fff; color: #4A5670; font-size: 14px; font-weight: 600; text-align: center; border: 1px solid #D5DEEE; padding: 10px 8px; }
    td { border: 1px solid #D5DEEE; padding: 10px 8px; font-size: 14px; }
    .vscroll thead th { background-color: #fff; box-shadow: inset 0 1px 0 #D5DEEE, inset 0 -1px 0 #D5DEEE; }   /* a sticky header cell loses its collapsed top border: draw the top and bottom lines inside the cell */
    .vscroll > table { border-top: 1px solid #D5DEEE; }
    #allocation-table th:nth-child(-n+2), #sector-table th:nth-child(-n+2), #country-table th:nth-child(-n+2), #company-table th:nth-child(-n+2),
    #overlap-table th:nth-child(-n+2), #portfolio-table thead th:nth-child(-n+2) { background-color: #fff; }
    td.right, td.price, td.total, td.dchg, td.subprice, td.subtot, td.pctHoldings, td.num { font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
    #allocation-table th, #sector-table th, #country-table th, #company-table th, #overlap-table th, #portfolio-table th { font-size: 14px; }   /* headers 14 px, bigger than the 12 px cells (owner 2026-10-18) */
    #reports th, #portfolio-table th { color: #4A5670; text-align: center !important; }
    #allocation-table td, #sector-table td, #country-table td, #company-table td, #overlap-table td { font-size: 12px !important; }
    #allocation-table td *, #sector-table td *, #country-table td *, #company-table td *, #overlap-table td * { font-size: 12px !important; }
    #company-table th .cmp-legend, #overlap-table th .cmp-legend { font-size: 12px; font-weight: 500; }
    tfoot td { border: 1px solid #D5DEEE; }
    .rpt-sort-asc::after, .rpt-sort-desc::after { color: #1F5FE0; }
    .table-scroll { border-radius: 12px; }

    /* V479 / V483 (owner 2026-10-27): Data Quality Report: same scheme as the report tables (headers 14 px, cells 12 px, numbers in IBM Plex Mono, one 1 px line between cells);
       the # and Ticker columns stay in place while the table scrolls sideways; the filter box looks like the Company Exposure filter box */
    #dq-table { table-layout: fixed; width: 3552px; min-width: 3552px; border-collapse: separate; border-spacing: 0; border-top: 0; }   /* V486: fixed column widths, so a sort never moves a column */
    #dq-table th { font-size: 14px; font-weight: 600; color: #4A5670; text-align: center; background-color: #fff; border: 0; border-top: 1px solid #D5DEEE; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; padding: 10px 8px; cursor: pointer; white-space: normal; }
    #dq-table th:first-child { cursor: default; }
    #dq-table td, #dq-table td * { font-size: 12px !important; }
    #dq-table td { border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; padding: 10px 8px; vertical-align: top; background-color: #fff; }
    #dq-table th:first-child, #dq-table td:first-child { border-left: 1px solid #D5DEEE; }
    #dq-table td.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
    #dq-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    #dq-scroll::-webkit-scrollbar { display: block; height: 8px; width: 8px; } #dq-scroll::-webkit-scrollbar-thumb { background: #b9c4d8; border-radius: 4px; }
    #dq-table th:nth-child(1), #dq-table td:nth-child(1) { position: sticky; left: 0; width: 52px; min-width: 52px; max-width: 52px; box-sizing: border-box; text-align: center; color: #666; padding-left: 2px; padding-right: 2px; white-space: nowrap; }
    #dq-table th:nth-child(2), #dq-table td:nth-child(2) { position: sticky; left: 52px; white-space: nowrap; }
    #dq-table td:nth-child(1), #dq-table td:nth-child(2) { z-index: 2; }
    #dq-table thead th:nth-child(-n+2) { z-index: 6; }
    #dq-table a.dq-tk { color: #1F5FE0; text-decoration: none; } #dq-table a.dq-tk:hover { text-decoration: underline; }
    .dq-gap { margin-bottom: 18px; }
    .dq-sumtbl { width: 100%; max-width: 1100px; min-width: 260px; border-collapse: separate; border-spacing: 0; margin: 0 0 18px; }
    .dq-sumtbl th { font-size: 14px; font-weight: 600; color: #4A5670; background: #fff; text-align: center; border-top: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; border-right: 1px solid #D5DEEE; padding: 8px 14px; }
    .dq-sumtbl th:first-child, .dq-sumtbl td:first-child { border-left: 1px solid #D5DEEE; } .dq-sumtbl td:first-child { text-align: left; }
    .dq-sumtbl th:nth-child(n+2), .dq-sumtbl td:nth-child(n+2) { width: 110px; }   /* V490: the # of Funds column is narrow, the Status column takes the rest so a status does not wrap on a laptop */
    .dq-sumtbl td { font-size: 12px; background: #fff; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; padding: 8px 14px; }
    .dq-sumtbl td.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
    .dq-sumtbl tr.dq-total td { font-weight: 700; }
    #dq-sum th:nth-child(2), #dq-sum td:nth-child(2), #dq-types th:nth-child(2), #dq-types td:nth-child(2) { width: auto; }   /* V495: the What It Means column takes the rest */
    #dq-sum td:nth-child(2), #dq-types td:nth-child(2) { text-align: left; }
    #dq-sum th:nth-child(n+3), #dq-sum td:nth-child(n+3), #dq-types th:nth-child(n+3), #dq-types td:nth-child(n+3) { width: 110px; }
    .dq-sumtbl tr.dq-sub td:first-child { padding-left: 34px; }   /* V493: the ranges sit under their status */
    #dq-iss, #dq-run { width: auto; min-width: 260px; border-collapse: separate; border-spacing: 0; margin: 0 0 18px; }
    #dq-iss-scroll { max-height: 320px; overflow: auto; margin-bottom: 18px; }
    #dq-run-scroll { margin-bottom: 18px; overflow-x: auto; overflow-y: visible; }   /* V495: the refresh list is a fixed list and all of it shows; V509 (owner 2026-10-29): every quality table scrolls sideways when the screen is narrow */
    #dq-sum, #dq-types { min-width: 640px; }   /* V509: below this width the table scrolls sideways instead of squeezing */
    /* V510 (owner 2026-10-29): while a quality table scrolls sideways its first columns stay in place: refresh = # and Stage, summary = Status, asset class = Asset Class (the scorecard and Fund Details already pin theirs) */
    #dq-run th:nth-child(-n+2), #dq-run td:nth-child(-n+2), #dq-sum th:first-child, #dq-sum td:first-child, #dq-types th:first-child, #dq-types td:first-child, #dq-ftypes th:first-child, #dq-ftypes td:first-child, #dq-exch-sum th:first-child, #dq-exch-sum td:first-child { position: sticky; z-index: 2; background: #fff; }
    #dq-run th:nth-child(-n+2), #dq-sum th:first-child, #dq-types th:first-child, #dq-ftypes th:first-child, #dq-exch-sum th:first-child { z-index: 6; }
    #dq-run th:nth-child(1), #dq-run td:nth-child(1) { left: 0; white-space: nowrap; box-sizing: border-box; }   /* V521 (owner 2026-10-30): the # and Stage columns take the width of their content (the list is short and has no paging, so the widths cannot jump) */
    #dq-run th:nth-child(2), #dq-run td:nth-child(2) { left: var(--dq-run-c1, 56px); box-sizing: border-box; white-space: nowrap; }   /* the left edge is the measured width of the # column */
    #dq-sum th:first-child, #dq-sum td:first-child, #dq-types th:first-child, #dq-types td:first-child, #dq-ftypes th:first-child, #dq-ftypes td:first-child, #dq-exch-sum th:first-child, #dq-exch-sum td:first-child { left: 0; width: 190px; min-width: 190px; max-width: 190px; box-sizing: border-box; white-space: normal; }
    #dq-nol { min-width: 640px; table-layout: fixed; }   /* V516: the no-holdings-by-issuer table follows the asset-class table */
    #dq-nol th:first-child, #dq-nol td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; width: 190px; min-width: 190px; max-width: 190px; box-sizing: border-box; white-space: normal; }
    #dq-nol th:first-child { z-index: 6; }
    #dq-nol th:nth-child(2) { width: auto; } #dq-nol td:nth-child(2) { text-align: left; }
    #dq-nol th:nth-child(n+3), #dq-nol td:nth-child(n+3) { width: 110px; }
    #dq-nol-scroll { scrollbar-width: thin; }
    @media (max-width: 700px) { #dq-nol th:first-child, #dq-nol td:first-child { width: 120px; min-width: 120px; max-width: 120px; } #dq-nol { min-width: 600px; } }
    #dq-run td, #dq-sum td, #dq-types td, #dq-ftypes td, #dq-exch-sum td, #dq-iss td, #dq-table td, #dq-nol td { vertical-align: top; }   /* V511 (owner 2026-10-29): the cells of every quality table are top aligned, not centered */
    #dq-run { table-layout: auto; width: auto; min-width: 0; max-width: none; }
    #dq-run td { white-space: nowrap; }   /* V521: every cell of this short list stays on one line (a long date or name widens its column; the table scrolls sideways on a narrow screen) */   /* V521: the columns size themselves to their content (the page's general fixed layout is switched off for this short list) */
    #dq-run th, #dq-run td { padding: 8px 8px; }
    #dq-iss th, #dq-run th { font-size: 14px; font-weight: 600; color: #4A5670; background: #fff; text-align: center; border-top: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; border-right: 1px solid #D5DEEE; padding: 8px 14px; position: sticky; top: 0; }
    #dq-iss th:first-child, #dq-iss td:first-child, #dq-run th:first-child, #dq-run td:first-child { border-left: 1px solid #D5DEEE; text-align: left; }
    #dq-iss th:first-child, #dq-iss td:first-child { text-align: center; color: #666; width: 44px; min-width: 44px; max-width: 44px; box-sizing: border-box; }
    #dq-iss th:nth-child(-n+2), #dq-iss td:nth-child(-n+2) { position: sticky; z-index: 2; background: #fff; }   /* V491: # and Issuer stay in place while the table scrolls sideways */
    #dq-iss th:nth-child(-n+2) { z-index: 6; }
    #dq-iss th:nth-child(1), #dq-iss td:nth-child(1) { left: 0; }
    #dq-iss th:nth-child(2), #dq-iss td:nth-child(2) { left: 44px; min-width: 150px; }
    #dq-run th:first-child, #dq-run td:first-child { text-align: center; color: #666; } #dq-run td:nth-child(2) { text-align: left; }
    #dq-iss th:nth-child(7), #dq-iss td:nth-child(7) { width: 150px; }   /* V490: the Average Match Rate column is narrower, its title wraps */
    #dq-iss { min-width: 760px; } #dq-iss td { white-space: nowrap; } #dq-iss th { cursor: pointer; white-space: normal; } #dq-iss th:first-child { cursor: default; }
    #dq-iss th:nth-child(8), #dq-iss td:nth-child(8) { width: 320px; min-width: 320px; white-space: normal; text-align: left; }   /* V550: the Missing Data reason beside the issuer's counts */
    #dq-iss { min-width: 1080px; }
    #dq-iss th, #dq-sum th, #dq-types th, #dq-ftypes th, #dq-exch-sum th, #dq-run th, #dq-table th, #ex-country th, #ex-sector th, .own-tbl th, #chatRep th { text-align: center !important; }   /* V596 (owner 2026-11-06): every column heading is centered, always */
    #dq-iss-scroll, #dq-run-scroll, #dq-sum-scroll, #dq-types-scroll, #dq-ftypes-scroll, #dq-exch-sum-scroll { scrollbar-width: thin; } #dq-iss-scroll::-webkit-scrollbar, #dq-run-scroll::-webkit-scrollbar, #dq-sum-scroll::-webkit-scrollbar, #dq-types-scroll::-webkit-scrollbar, #dq-ftypes-scroll::-webkit-scrollbar, #dq-exch-sum-scroll::-webkit-scrollbar { display: block; height: 8px; width: 8px; } #dq-iss-scroll::-webkit-scrollbar-thumb, #dq-run-scroll::-webkit-scrollbar-thumb, #dq-sum-scroll::-webkit-scrollbar-thumb, #dq-types-scroll::-webkit-scrollbar-thumb, #dq-ftypes-scroll::-webkit-scrollbar-thumb, #dq-exch-sum-scroll::-webkit-scrollbar-thumb { background: #b9c4d8; border-radius: 4px; }   /* V489: the sideways scroll bar also shows on a phone */
    #dq-iss td, #dq-run td { font-size: 12px; background: #fff; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; padding: 8px 14px; }
    #dq-iss td.num, #dq-run td.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
    #dq-run td.bad { color: #c62828; font-weight: 700; }
    /* V515 (owner 2026-10-29): the Funds by Country / Sector Reports: a fixed layout, # and the name pinned while the table scrolls sideways, like the other quality tables */
    #ex-country, #ex-sector { table-layout: fixed; min-width: 660px; }
    #ex-country th:nth-child(1), #ex-country td:nth-child(1), #ex-sector th:nth-child(1), #ex-sector td:nth-child(1) { width: 52px; min-width: 52px; max-width: 52px; box-sizing: border-box; text-align: center; color: #666; padding-left: 2px; padding-right: 2px; left: 0; }
    #ex-country th:nth-child(2), #ex-country td:nth-child(2), #ex-sector th:nth-child(2), #ex-sector td:nth-child(2) { width: 190px; min-width: 190px; max-width: 190px; box-sizing: border-box; text-align: left; white-space: normal; left: 52px; }
    #ex-country th:nth-child(3), #ex-country td:nth-child(3), #ex-sector th:nth-child(3), #ex-sector td:nth-child(3), #ex-country th:nth-child(5), #ex-country td:nth-child(5), #ex-sector th:nth-child(5), #ex-sector td:nth-child(5) { width: 130px; }
    #ex-country th:nth-child(4), #ex-country td:nth-child(4), #ex-sector th:nth-child(4), #ex-sector td:nth-child(4) { width: 150px; }
    #ex-country th:nth-child(-n+2), #ex-country td:nth-child(-n+2), #ex-sector th:nth-child(-n+2), #ex-sector td:nth-child(-n+2) { position: sticky; z-index: 2; background: #fff; }
    #ex-country th:nth-child(-n+2), #ex-sector th:nth-child(-n+2) { z-index: 6; }
    #ex-country th, #ex-sector th { cursor: pointer; white-space: normal; } #ex-country th:first-child, #ex-sector th:first-child { cursor: default; }
    #ex-country td, #ex-sector td { vertical-align: top; }
    #ex-country-scroll, #ex-sector-scroll { scrollbar-width: thin; } #ex-country-scroll::-webkit-scrollbar, #ex-sector-scroll::-webkit-scrollbar { display: block; height: 8px; width: 8px; } #ex-country-scroll::-webkit-scrollbar-thumb, #ex-sector-scroll::-webkit-scrollbar-thumb { background: #b9c4d8; border-radius: 4px; }
    @media (max-width: 600px), (pointer: coarse) {
      #ex-country th:nth-child(2), #ex-country td:nth-child(2), #ex-sector th:nth-child(2), #ex-sector td:nth-child(2) { width: 120px; min-width: 120px; max-width: 120px; }
      #ex-country, #ex-sector { min-width: 590px; }
    }
    /* V512 (owner 2026-10-29, phone screenshots): fixed column widths. A fixed table layout with a minimum width keeps 'What It Means' wide enough to read and the pinned columns narrow enough to leave room to scroll */
    #dq-sum, #dq-types, #dq-ftypes, #dq-exch-sum { table-layout: fixed; }
    #dq-sum { min-width: 1000px; } #dq-types { min-width: 780px; }
    #dq-sum th:nth-child(2), #dq-types th:nth-child(2) { width: auto; }
    #dq-iss th:nth-child(2), #dq-iss td:nth-child(2) { width: 150px; min-width: 150px; max-width: 150px; white-space: normal; box-sizing: border-box; }
    @media (max-width: 600px), (pointer: coarse) {
      #dq-sum th:first-child, #dq-sum td:first-child, #dq-types th:first-child, #dq-types td:first-child, #dq-ftypes th:first-child, #dq-ftypes td:first-child, #dq-exch-sum th:first-child, #dq-exch-sum td:first-child { width: 120px; min-width: 120px; max-width: 120px; }
      #dq-sum { min-width: 930px; } #dq-types { min-width: 710px; }
      #dq-iss th:nth-child(2), #dq-iss td:nth-child(2) { width: 120px; min-width: 120px; max-width: 120px; }
    }
    #dq-iss-filter { margin-bottom: 12px; }
    #dq-filter, #dq-iss-filter, #dq-mine-bar { display: flex; flex-direction: column; gap: 14px; padding: 12px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 8px; }
    #dq-filter, #dq-filter *, #dq-iss-filter, #dq-iss-filter *, #dq-mine-bar, #dq-mine-bar * { font-size: 14px !important; }
    #dq-mine-bar { margin: 0 0 18px; }
    #dq-filter .cf-line, #dq-iss-filter .cf-line, #dq-mine-bar .cf-line { gap: 8px 12px; }
    #dq-filter .cf-line > strong, #dq-iss-filter .cf-line > strong { min-width: 58px; }
    #dq-filter .cf-line > strong:has(+ #dq-age-box) { min-width: 0; }
    .dq-combo { position: relative; display: inline-block; width: 440px; max-width: 100%; }
    .dq-age-box { width: 120px; }
    #dq-filter .cf-line:has(> #dq-source) { align-items: flex-start; }   /* V489: the Source title sits at the top of its list, not in the middle */
    .dq-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
    .dq-checks label { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
    .dq-checks input { margin-top: 3px; }
    .dq-checks-col { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
    #dq-filter .cf-line:has(> .dq-checks-col), #dq-iss-filter .cf-line:has(> .dq-checks-col), #company-filter .cf-line:has(> .dq-checks-col), #overlap-filter .cf-line:has(> .dq-checks-col) { align-items: flex-start; }   /* V495: the three check box lists line up the same way */
    #dq-filter .cf-line:has(> .dq-checks-col) > strong { min-width: 84px; }
    .dq-combo-in { width: 100%; min-height: 36px; box-sizing: border-box; padding: 4px 36px 4px 10px !important; border: 1px solid #ccc; border-radius: 4px; background: #fff; font-family: inherit; cursor: pointer; }
    .dq-combo-in:not([readonly]) { cursor: text; }
    .dq-x { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0 !important; background: none !important; font-size: 22px !important; line-height: 1; color: #7a869a; cursor: pointer; padding: 2px 9px !important; margin: 0 !important; display: none; }
    .dq-combo.has-value .dq-x { display: block; }
    .dq-combo-list { display: none; position: absolute; z-index: 30; left: 0; min-width: 100%; width: max-content; max-width: 94vw; top: 100%; margin-top: 2px; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #D5DEEE; border-radius: 8px; box-shadow: 0 6px 18px rgba(14,23,38,.14); }
    .dq-combo.open .dq-combo-list { display: block; }
    .dq-opt { padding: 8px 10px; cursor: pointer; line-height: 1.35; white-space: nowrap; }
    @media (max-width: 700px) { .dq-opt { white-space: normal; } }
    .dq-opt small { display: block; color: #4A5670; font-size: 12px !important; }
    .dq-opt:hover, .dq-opt.active { background: #EEF3FD; }
    #dq-line { font-size: 14px; color: #4A5670; margin: 0 0 10px; }
    #dq-count, #dq-iss-count { color: #c62828; margin: 16px 0 10px; font-size: 14px; }
    #dq-mine-label.off { color: #999; cursor: default; }
    .dq-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: 14px; }
    .dq-pager button, .dq-pager select, .dq-pager input { font-size: 14px; padding: 4px 12px; min-height: 34px; box-sizing: border-box; }
    .dq-pager input { width: 74px; padding: 4px 8px; }
    .dq-pager-bottom { margin: 12px 0 0; }
    @media print { .print-target .dq-pager, .print-target #dqRunCard, .print-target #dqSumCard { display: none !important; } }
    /* V423 (owner 2026-10-23): ONE border scheme for every report table, the one the Value Over Time table got in V382: separate borders that
       belong to the cells, one 1 px #D5DEEE line between all cells, so a sticky heading or a pinned column never loses a line or doubles it */
    #allocation-table, #sector-table, #country-table, #company-table, #overlap-table { border-collapse: separate; border-spacing: 0; border-top: 0; }
    #allocation-table th, #sector-table th, #country-table th, #company-table th, #overlap-table th, #allocation-table td, #sector-table td, #country-table td, #company-table td, #overlap-table td { border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; box-shadow: none; }
    #allocation-table thead th, #sector-table thead th, #country-table thead th, #company-table thead th, #overlap-table thead th { border-top: 1px solid #D5DEEE; }
    #allocation-table th:first-child, #sector-table th:first-child, #country-table th:first-child, #company-table th:first-child, #overlap-table th:first-child, #allocation-table td:first-child, #sector-table td:first-child, #country-table td:first-child, #company-table td:first-child, #overlap-table td:first-child { border-left: 1px solid #D5DEEE; }
    @media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {   /* the pinned columns keep the one line colour and a soft shadow on their right edge only */
      #country-table th:nth-child(1), #country-table td:nth-child(1), #company-table th:nth-child(1), #company-table td:nth-child(1) { box-shadow: none !important; }
      #country-table th:nth-child(2), #country-table td:nth-child(2), #company-table th:nth-child(2), #company-table td:nth-child(2) { box-shadow: 3px 0 4px -2px rgba(0,0,0,0.18) !important; }
    }
    @media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {
      #portfolio-table thead th:nth-child(1), #portfolio-table tbody tr:not(.filter-row) td:nth-child(1) { box-shadow: inset 1px 0 0 #D5DEEE !important; }
      #portfolio-table thead th:nth-child(2), #portfolio-table tbody tr:not(.filter-row) td:nth-child(2), #portfolio-table tfoot td:first-child { box-shadow: inset -1px 0 0 #D5DEEE, 3px 0 4px -2px rgba(0,0,0,0.18) !important; }
    }
    /* V423 (owner 2026-10-23): the filters of the company reports have the same grey frame as the filters of the Value Over Time report; the Show Details button stays outside it */
    /* V426 (owner 2026-10-23): the line under each report title says which account the report shows and how many companies it holds; the account is red, All accounts is not */
    /* V443 (owner 2026-10-24): the owner's tools sit in a folded 'Owner Only' block, the tester list in a folded 'Beta Testers (n)' block inside it; same arrows as the cards (down = folded, up = open) */
    details.subfold > summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
    details.subfold > summary::-webkit-details-marker { display: none; }
    details.subfold > summary::before { content: '\25B6\FE0E'; font-size: 12px; color: #6A7690; }
    details.subfold[open] > summary::before { content: '\25BC'; }   /* V581: the same arrows as the cards */
    /* V451 (owner 2026-10-25): the help text of each section sits inside it, above its controls (the How to Use card is gone, V452) */
    .sec-help { font-size: 13px; line-height: 1.5; color: #4A5670; margin: 0 0 10px; }
    .sec-help p { margin: 0 0 8px; } .sec-help ul { margin: 0 0 8px 18px; padding: 0; }
    .acct-line { display: none; font-size: 14px; color: #6A7690; margin: 0 0 10px; }
    .acct-line .acct-red { color: #c62828; font-weight: 600; }
    #company-filter, #overlap-filter { padding: 12px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 8px; }
    #company-filter, #company-filter * { font-size: 14px !important; }
    #reports > .card { margin-bottom: 20px !important; }
    #account-bar { margin: 0 0 18px !important; }
    #spinnerBox { border-radius: 20px; font-family: inherit; }
    .card > div[data-ui~="margin-top-14px"]:first-child { margin-top: 0 !important; }
    .sitefoot { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 8px; font-size: 13px; color: #6A7690; }
    .sitefoot p { margin: 4px 0 0; line-height: 1.55; }
    #overlap-table td.right { text-align: right; }   /* V370: the amounts in the overlap report are right aligned */
    /* Value Over Time: same content as the old History page; fonts follow the page, the green / red stay as they were */
    .hv .controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 18px; }
    .hv .controls label { font-size: 14px; }
    .hv .controls input[type=number] { font-size: 14px; padding: 4px 8px; width: 90px; }
    .hv h2 { font-size: 18px; margin: 26px 0 10px; } .hv > h2:first-child { font-size: 20px; margin: 0 0 14px; }
    #hvTopNotes div + div { margin-top: 2px; }
    #hvTopNotes:empty, #txvTopNotes:empty { display: none; }   /* V685: no blank room for a notes box with nothing in it */
    #txsTable tr.hv-sec td { background: #F3F6FC; font-weight: 700; font-size: 13px; padding: 7px 8px; border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; }
    #txsTable tr.hv-tot td { font-weight: 700; }
    #txsTable a.tx-view { color: #1F5FE0; text-decoration: underline; cursor: pointer; font-size: 12px; }
    #txsTable th { text-align: center; }
    #txsTable th:nth-child(3) { white-space: nowrap; }   /* V692: 'Amount ($) /' and 'Percentage (%)' on two lines, the slash never alone */
    #txsTable th:nth-child(3), #txsTable td:nth-child(3) { padding-left: 18px; padding-right: 18px; }   /* V690 (owner 2026-11-16): the Amount / Percentage column a little wider */
    .tx-notes { margin-top: 16px; }
    .tx-line:empty { display: none; }
    .tx-line { margin: 0 0 16px; }   /* V671 (owner 2026-11-14): a blank line under the red accounts line */
    .pop-box { position: relative; background: #fff; width: fit-content; min-width: min(420px, 96vw); max-width: 96vw;   /* V695 (owner 2026-11-16): the box is as wide as its table */ max-height: 90vh; overflow: auto; padding: 16px; border-radius: 12px; }
    .pop-box h2 { font-size: 18px; margin: 0 40px 8px 0; }
    button.pop-x { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #555; padding: 0 6px; }
    #txvTopNotes div + div { margin-top: 2px; }
    .hv .summary { display: grid; grid-template-columns: 190px auto; gap: 2px 10px; font-size: 14px; max-width: 760px; }
    .hv .summary div:nth-child(odd) { color: #555; }
    #hvSummary { table-layout: auto; width: auto; min-width: 0; max-width: none; border-collapse: collapse; }   /* V525 (owner 2026-10-31): each column is as wide as its content needs, on one line */
    #txvSummary { table-layout: auto; width: auto; min-width: 0; max-width: none; border-collapse: collapse; }
    #txsTable { table-layout: auto; width: auto; min-width: 0; max-width: none; border-collapse: separate; border-spacing: 0; }
    #hvSummary th { font-size: 14px; font-weight: 600; text-align: center; padding: 6px 8px; border: 1px solid #D5DEEE; }
    #txvSummary th { font-size: 14px; font-weight: 600; text-align: center; padding: 6px 8px; border: 1px solid #D5DEEE; }
    #txsTable th { font-size: 14px; font-weight: 600; text-align: center; padding: 6px 8px; border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; }
    #hvSummary td { font-size: 12px; padding: 5px 8px; border: 1px solid #D5DEEE; vertical-align: top; white-space: nowrap; }
    #txvSummary td { font-size: 12px; padding: 5px 8px; border: 1px solid #D5DEEE; vertical-align: top; white-space: nowrap; }
    #txsTable td { font-size: 12px; padding: 5px 8px; border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; vertical-align: top; white-space: nowrap; }
    #hvSummary td.hv-sl { color: #555; white-space: nowrap; }
    #txvSummary td.hv-sl { color: #555; white-space: nowrap; }
    #txsTable td.hv-sl { color: #555; white-space: nowrap; }
    #hvSummary .hv-note { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: #777; font-weight: normal; }   /* V577 */
    #txvSummary .hv-note { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: #777; font-weight: normal; }
    #txsTable .hv-note { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: #777; font-weight: normal; }
    #hvSummary td.num, #hvSummary th.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }
    #txvSummary td.num, #txvSummary th.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }

    /* V692 (owner 2026-11-16 'table corner missing ... check all table corners'): every report table has the same frame: one line left and top on the edge cells and rounded corners (8 px) */
    #txsTable thead th, #hvTable thead th, #txvTable thead th { border-top: 1px solid #D5DEEE; }
    #txsTable th:first-child, #txsTable td:first-child, #hvTable th:first-child, #hvTable td:first-child, #txvTable th:first-child, #txvTable td:first-child { border-left: 1px solid #D5DEEE; }
    #allocation-table > thead > tr:first-child > :first-child, #sector-table > thead > tr:first-child > :first-child, #country-table > thead > tr:first-child > :first-child, #company-table > thead > tr:first-child > :first-child, #overlap-table > thead > tr:first-child > :first-child,
    #txsTable > thead > tr:first-child > :first-child, #hvTable > thead > tr:first-child > :first-child, #txvTable > thead > tr:first-child > :first-child, #dq-table > thead > tr:first-child > :first-child, #dq-iss > thead > tr:first-child > :first-child, #dq-run > thead > tr:first-child > :first-child, .dq-sumtbl > thead > tr:first-child > :first-child { border-top-left-radius: 8px; }
    #allocation-table > thead > tr:first-child > :last-child, #sector-table > thead > tr:first-child > :last-child, #country-table > thead > tr:first-child > :last-child, #company-table > thead > tr:first-child > :last-child, #overlap-table > thead > tr:first-child > :last-child,
    #txsTable > thead > tr:first-child > :last-child, #hvTable > thead > tr:first-child > :last-child, #txvTable > thead > tr:first-child > :last-child, #dq-table > thead > tr:first-child > :last-child, #dq-iss > thead > tr:first-child > :last-child, #dq-run > thead > tr:first-child > :last-child, .dq-sumtbl > thead > tr:first-child > :last-child { border-top-right-radius: 8px; }
    #allocation-table > :last-child > tr:last-child > :first-child, #sector-table > :last-child > tr:last-child > :first-child, #country-table > :last-child > tr:last-child > :first-child, #company-table > :last-child > tr:last-child > :first-child, #overlap-table > :last-child > tr:last-child > :first-child,
    #txsTable > :last-child > tr:last-child > :first-child, #hvTable > :last-child > tr:last-child > :first-child, #txvTable > :last-child > tr:last-child > :first-child, #dq-table > :last-child > tr:last-child > :first-child, #dq-iss > :last-child > tr:last-child > :first-child, #dq-run > :last-child > tr:last-child > :first-child, .dq-sumtbl > :last-child > tr:last-child > :first-child { border-bottom-left-radius: 8px; }
    #allocation-table > :last-child > tr:last-child > :last-child, #sector-table > :last-child > tr:last-child > :last-child, #country-table > :last-child > tr:last-child > :last-child, #company-table > :last-child > tr:last-child > :last-child, #overlap-table > :last-child > tr:last-child > :last-child,
    #txsTable > :last-child > tr:last-child > :last-child, #hvTable > :last-child > tr:last-child > :last-child, #txvTable > :last-child > tr:last-child > :last-child, #dq-table > :last-child > tr:last-child > :last-child, #dq-iss > :last-child > tr:last-child > :last-child, #dq-run > :last-child > tr:last-child > :last-child, .dq-sumtbl > :last-child > tr:last-child > :last-child { border-bottom-right-radius: 8px; }
    #txsTable td.num, #txsTable th.num { text-align: right; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }
    .hv .up { color: #0a7c2f; } .hv .down { color: #b00020; }
    /* V448 (owner 2026-10-25): a day's value uses only the holdings priced on that day; 'Holdings Priced' and 'Holdings on That Day' are details (hidden until Show Details) */
    #hvReport.hv-hide-details .hv-det { display: none; }
    #txvReport.hv-hide-details .hv-det { display: none; }
    .hv-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: 14px; }
    .hv-pager button, .hv-pager select, .hv-pager input { font-size: 14px; padding: 4px 12px; min-height: 34px; box-sizing: border-box; }
    .hv-pager input { width: 74px; padding: 4px 8px; }
    .hv-pager-bottom { margin: 12px 0 0; }
    @media print { .print-target .hv-pager { display: none !important; } }
    .hv .controls { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hv .controls .hv-title { font-size: 13px; } .hv .hv-modes { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
    #hvTable td.hv-day { vertical-align: top; white-space: nowrap; }
    #txvTable td.hv-day { vertical-align: top; white-space: nowrap; }
    #hvTable td, #exchange-table td { vertical-align: top; }   /* V469 (owner 2026-10-26): every body cell is top aligned in these two tables too, like the reports (the portfolio table is left as it was) */
    #txvTable td, #exchange-table td { vertical-align: top; }
    #hvTable th.hv-det:nth-child(11) { width: 110px; } #hvTable th.hv-det:nth-child(12) { width: 280px; }
    #txvTable th.hv-det:nth-child(11) { width: 110px; } #txvTable th.hv-det:nth-child(12) { width: 280px; }
    #hvReport:not(.hv-hide-details) #hvTable { min-width: 1960px; }
    #txvReport:not(.hv-hide-details) #txvTable { min-width: 1960px; }
    .hv-hl { display: grid; grid-template-columns: 78px 52px 92px; gap: 6px; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }
    .hv-hl span:nth-child(n+2) { text-align: right; } .hv-hl-miss { color: #b00020; font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; }
    .hv-limit { font-size: 12px; color: #6A7690; }
    .hv .notes { font-size: 13px; color: #555; margin-top: 14px; } .hv .notes div { margin-bottom: 3px; }
    .hv .warn { color: #b00020; font-size: 13px; margin-top: 14px; }
    .hv #hvChart { width: 100%; margin: 10px 0 18px; }
    .hv #txvChart { width: 100%; margin: 10px 0 18px; }
    #hvTable th:nth-child(2), #hvTable td:nth-child(2) { width: 150px; min-width: 150px; white-space: nowrap; }   /* V383: Date and the weekday in one column, e.g. 2026-10-16 (Fri), never wrapped */
    #txvTable th:nth-child(2), #txvTable td:nth-child(2) { width: 150px; min-width: 150px; white-space: nowrap; }
    #hvTable th:nth-child(-n+2), #hvTable td:nth-child(-n+2) { position: sticky; z-index: 2; background-color: #fff; }   /* the Day # and Date columns stay in place while the other columns scroll */
    #txvTable th:nth-child(-n+2), #txvTable td:nth-child(-n+2) { position: sticky; z-index: 2; background-color: #fff; }
    #hvTable thead th:nth-child(-n+2) { z-index: 6; }
    #txvTable thead th:nth-child(-n+2) { z-index: 6; }
    #hvTable th:nth-child(1), #hvTable td:nth-child(1) { left: 0; width: 60px; min-width: 60px; box-sizing: border-box; text-align: center; white-space: nowrap; }   /* V489: Day # counts 1, 2, 3 from the From date; it never moves when the report scrolls */
    #txvTable th:nth-child(1), #txvTable td:nth-child(1) { left: 0; width: 60px; min-width: 60px; box-sizing: border-box; text-align: center; white-space: nowrap; }
    #hvTable th:nth-child(2), #hvTable td:nth-child(2) { left: 60px; }
    #txvTable th:nth-child(2), #txvTable td:nth-child(2) { left: 60px; }
    #hvTable { min-width: 1250px; }
    #txvTable { min-width: 1250px; }
    /* V382: borders that belong to the cells themselves (separate borders, not merged ones), so the pinned Date / Day columns and the sticky heading row keep every line while the table scrolls */
    #hvTable { border-collapse: separate; border-spacing: 0; border-top: 0; margin: 0; }
    #txvTable { border-collapse: separate; border-spacing: 0; border-top: 0; margin: 0; }
    #hvTable th, #hvTable td { border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; box-shadow: none; }
    #txvTable th, #txvTable td { border: 0; border-right: 1px solid #D5DEEE; border-bottom: 1px solid #D5DEEE; box-shadow: none; }
    #hvTable thead th { border-top: 1px solid #D5DEEE; box-shadow: none; }
    #txvTable thead th { border-top: 1px solid #D5DEEE; box-shadow: none; }
    #hvTable th:first-child, #hvTable td:first-child { border-left: 1px solid #D5DEEE; }
    #txvTable th:first-child, #txvTable td:first-child { border-left: 1px solid #D5DEEE; }
   /* V380: wide enough to read; a narrower screen scrolls the table sideways like the other reports */
    #hvTable th { font-size: 14px; } #hvTable td, #hvTable td * { font-size: 12px !important; }
    #txvTable th { font-size: 14px; } #txvTable td, #txvTable td * { font-size: 12px !important; }
    #hvTable td.num, #hvTable th.num { text-align: right; }
    #txvTable td.num, #txvTable th.num { text-align: right; }
    .details-line { margin: 0 0 12px; }   /* V378: the Show Details button is on its own line under the heading, so a folded section hides it */
    .cf-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
    #cf-count, #ov-count { color: #c62828 !important; }
    /* Apply buttons of the filters: off until something changes, then red like Analyze */
    .fl-apply { font-size: 13px; padding: 4px 18px; }
    /* V606 (owner 2026-11-08): the Portfolios list is our own drop-down with a three-dot menu (Rename, Duplicate, Delete) on every row; the real select stays hidden as the single source of truth */
    .pf-dd { position: relative; display: inline-block; max-width: 100%; }
    .pf-dd select#pf-select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
    .pf-dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 220px; max-width: 100%; padding: 6px 10px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; }
    .pf-dd-list { position: absolute; z-index: 50; left: 0; top: 100%; margin-top: 2px; min-width: 100%; max-width: 92vw; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
    .pf-dd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 14px; cursor: pointer; white-space: nowrap; }
    .pf-dd-row:hover, .pf-dd-row.sel { background: #f2f5fb; }
    .pf-dd-name { overflow: hidden; text-overflow: ellipsis; }
    .pf-dd-edit { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; white-space: normal; }
    .pf-dd-edit-line { display: flex; align-items: center; gap: 6px; }
    .pf-dd-edit input { flex: 1; min-width: 140px; font-size: 14px; padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; }
    .pf-dd-edit button { font-size: 15px; padding: 2px 10px; cursor: pointer; }
    .pf-dd-edit .pf-dd-edit-msg { font-size: 12px; color: #b00020; max-width: 260px; }
    .pf-dd-grip { flex: none; width: 18px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; color: #777; user-select: none; -webkit-user-select: none; }
    .pf-dd-grip.blank { visibility: hidden; cursor: default; }
    .pf-dd-grip svg { fill: currentColor; pointer-events: none; }
    .pf-dd-name { flex: 1; text-align: left; }
    .pf-dd-row.pf-dd-dragging { opacity: .55; background: #e8eefb; }
    .pf-dd-row.pf-dd-drop { box-shadow: inset 0 2px 0 #1F5FE0; }
    .pf-dd-row.pf-dd-drop-end { box-shadow: inset 0 -2px 0 #1F5FE0; }
    .pf-dd-dots { border: none; background: transparent; font-size: 18px; line-height: 1; padding: 0 8px; cursor: pointer; border-radius: 4px; color: #333; }
    .pf-dd-dots:hover { background: #dde5f5; }
    .pf-dd-menu { position: fixed; z-index: 1000; min-width: 160px; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 4px 0; }
    .pf-dd-menu button { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 8px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
    .pf-dd-menu button:hover:not(:disabled) { background: #f2f5fb; }
    .pf-dd-menu button:disabled { color: #999; cursor: not-allowed; }
    .pf-dd-menu button.danger { color: #c62828; }
    .pf-dd-menu .pf-dd-note { font-size: 11px; color: #777; padding: 0 14px 6px; }
    /* V607 (owner 2026-11-08): every field label and check box label is 14 px, the size of 'Select Existing Portfolio' */
    #account-filter label, .hv .controls label, .hv .controls .hv-title, .cf-line > strong, .cf-line label, .dq-checks label, #dq-filter, #dq-iss-filter, #dq-mine-bar { font-size: 14px; }
    #holdingsLoadStatus { display: none !important; }   /* the 'Loading the stored holdings list ...' line is never shown (owner, 2026-10-18) */
    /* collapsible sections: a big arrow in front of each section heading; V581: ▶ = folded (click to open it), ▼ = open (click to fold it) */
    .sec-arrow { background: none; border: 0 !important; color: #1F5FE0; font-size: 24px; line-height: 1; padding: 0 12px 0 0; margin: 0; cursor: pointer; vertical-align: middle; font-family: inherit; display: inline-block; width: 28px; text-align: left; box-sizing: content-box; }   /* V581: a fixed width, so the heading does not shift when the arrow changes */
    .card > h2 { cursor: pointer; }
    .card.collapsed > h2 { margin-bottom: 0; }
    .card.collapsed > .sec-body { display: none; }
    /* V483 (owner 2026-10-27): 'Select Data Preferences' holds four sub-cards: a light frame inside the parent card, a smaller title, no shadow */
    .card .card.subcard { box-shadow: none; border: 1px solid #E6ECF6; border-radius: 14px; padding: 14px 18px; margin: 0 0 12px !important; background: #fff; }
    .card .card.subcard:last-child { margin-bottom: 0 !important; }
    .card .card.subcard > h2 { font-size: 17px; font-weight: 700; }
    /* V486 (owner 2026-10-27): Reports Settings is one plain card: its four settings are blocks with a heading, no frames, no fold arrows */
    #prefsCard .pref-block { border-top: 1px solid #E6ECF6; padding-top: 16px; margin-top: 18px; }
    #prefsCard .pref-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
    #prefsCard select#baseCurrency { max-width: 100%; box-sizing: border-box; }
    #prefsCard h3.pref-h { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #0E1726; }
    h3.pref-h { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #0E1726; }   /* V623 (owner 2026-11-09): every sub-heading is 16 px bold, in every card (the Owner Only and Brokerage cards had the browser's larger default) */
    #ownUsers thead th:nth-child(n+3) { white-space: normal; width: 1px !important; overflow-wrap: normal; word-break: keep-all; }   /* V623: the Users headings wrap at spaces only and never set a column's width */
    #ownStats { margin: 8px 0 0 18px; padding: 0; font-size: 14px; } #ownStats li { margin: 2px 0; } #ownStats li.alert { color: #c62828; font-weight: 700; } #ownStats ul { margin: 2px 0 4px 18px; padding: 0; font-size: 12px; color: #555; }
    #wsKeys ol { margin: 6px 0 10px 20px; padding: 0; font-size: 13px; } #wsKeys ol li { margin: 3px 0; }
    @media (max-width: 700px) { #reportsCard.card, #prefsCard.card { padding: 16px 12px; } .card .card.subcard { padding: 12px 10px; } }   /* V485: a phone gives the sub-cards (the reports) as much width as it can */
    @media print { .card:has(.print-target) { box-shadow: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; } }
    .sitefoot .footlinks { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-weight: 600; }
    .sitefoot .contact { color: #4A5670; }
    .sitefoot .copyright { color: #4A5670; }

    /* explanatory text */
    [data-ui~="color-666"] { color: #4A5670 !important; }
    @media (max-width: 600px) { body { padding: 12px 12px 28px; } .card { padding: 18px 16px; border-radius: 16px; } .navbar { border-radius: 24px; padding: 12px 16px; } }

    /* V527 (owner 2026-10-31): COLUMNS FIT THEIR CONTENT. A column is as wide as its widest value, on one line; the headings may wrap; the table is no wider than its columns.
       Kept fixed on purpose: the # column of each report (the pinned name column sits at its right edge), the lists of source tickers (they wrap), the paged and sorted
       Data Quality tables (Issuer Scorecard, Fund Individual Details), and the portfolio table. Footer labels wrap inside the name column and never set its width. */
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) { table-layout: auto; width: auto !important; min-width: 0 !important; }
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) th:nth-child(n+2) { width: 1px !important; min-width: 0 !important; }   /* 1 px: the heading never sets the width (it wraps); the cells do */
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) tbody td { white-space: nowrap; }
    
    :is(#allocation-table, #sector-table, #country-table, #company-table) th:nth-child(1), :is(#allocation-table, #sector-table, #country-table, #company-table) td:nth-child(1) { min-width: 36px; box-sizing: border-box; }   /* a table that is wider than its box squeezes columns to their content: the # column must keep the width the pinned name column's left edge counts on */
    #overlap-table th:nth-child(1), #overlap-table td:nth-child(1) { min-width: 56px; }
    #overlap-table th.ovl-wrap, #overlap-table tbody td.ovl-wrap:is(td, [class]) { white-space: normal; width: 130px !important; min-width: 130px; max-width: 130px; }
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table) tfoot td:nth-child(2) { max-width: 0; white-space: normal; overflow-wrap: anywhere; }
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table) tfoot td:nth-child(n+3) { white-space: nowrap; }   /* V546 (owner 2026-11-02): the total rows' numbers and brackets stay on one line, like the rows above */
    #hvTable { table-layout: auto; width: auto; min-width: 0; }
    #txvTable { table-layout: auto; width: auto; min-width: 0; }
    #hvReport:not(.hv-hide-details) #hvTable { min-width: 0; }
    #txvReport:not(.hv-hide-details) #txvTable { min-width: 0; }
    #hvTable th:nth-child(n+2) { width: 1px; min-width: 0; }
    #txvTable th:nth-child(n+2) { width: 1px; min-width: 0; }
    #hvTable td:nth-child(2) { width: auto; min-width: 0; white-space: nowrap; }
    #txvTable td:nth-child(2) { width: auto; min-width: 0; white-space: nowrap; }
    #hvTable th.hv-det:nth-child(12) { width: 280px; }
    #txvTable th.hv-det:nth-child(12) { width: 280px; }
    #hvTable td { white-space: nowrap; }
    #txvTable td { white-space: nowrap; }
    #dq-sum, #dq-types, #dq-nol, #dq-ftypes, #dq-exch-sum { table-layout: auto; }
    #dq-sum th:first-child, #dq-sum td:first-child, #dq-types th:first-child, #dq-types td:first-child, #dq-nol th:first-child, #dq-nol td:first-child, #dq-ftypes th:first-child, #dq-ftypes td:first-child, #dq-exch-sum th:first-child, #dq-exch-sum td:first-child { width: 1px; min-width: 0; max-width: none; white-space: nowrap; }
    #dq-sum th:nth-child(n+3), #dq-sum td:nth-child(n+3), #dq-types th:nth-child(n+3), #dq-types td:nth-child(n+3), #dq-nol th:nth-child(n+3), #dq-nol td:nth-child(n+3), #dq-ftypes th:nth-child(n+2), #dq-ftypes td:nth-child(n+2), #dq-exch-sum th:nth-child(n+2), #dq-exch-sum td:nth-child(n+2) { width: 1px; }
    #dq-sum td:nth-child(n+3), #dq-types td:nth-child(n+3), #dq-nol td:nth-child(n+3), #dq-ftypes td:nth-child(n+2), #dq-exch-sum td:nth-child(n+2) { white-space: nowrap; }
    #dq-ftypes, #dq-exch-sum { width: auto; min-width: 0; }   /* no text column to take the rest: like the country / sector tables, the table is as wide as its columns */
    #ex-country, #ex-sector { table-layout: auto; width: auto; min-width: 0; }
    #ex-country th:nth-child(n+2), #ex-sector th:nth-child(n+2), #ex-country td:nth-child(n+2), #ex-sector td:nth-child(n+2) { width: auto; min-width: 0; max-width: none; }
    #ex-country th:nth-child(n+2), #ex-sector th:nth-child(n+2) { width: 1px; }
    #ex-country td, #ex-sector td { white-space: nowrap; }
    #exchange-table { table-layout: auto; width: auto; }
    #exchange-table td { white-space: nowrap; }
    #hvSummary th { width: 1px; }
    #txvSummary th { width: 1px; }
    #txsTable th { width: 1px; }
    #hvSummary td.hv-sl { width: auto; }
    #txvSummary td.hv-sl { width: auto; }
    #txsTable td.hv-sl { width: auto; }

    /* V530 (owner 2026-10-31): country and sector names stay on one line; the refresh Stage column is narrower and may wrap; the No Holdings issuer table has search, sort and a red count line */
    #ex-country td:nth-child(2), #ex-sector td:nth-child(2) { white-space: nowrap; }
    #dq-run td:nth-child(2) { white-space: normal; width: 150px; min-width: 150px; max-width: 150px; box-sizing: border-box; }
    .countbar { margin: 0 0 12px; font-size: 14px; }
    #dq-nol-count, #ex-country-count, #ex-sector-count, .hv-count { color: #c62828; margin: 16px 0 10px; font-size: 14px; }   /* V531: every table with a filter shows the red count line */

    /* V535 (owner 2026-10-31): the name column of the five portfolio reports never collapses (0 companies shown); the two quality reports filter live, so their Apply buttons are hidden; counts beside the choices */
    :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table) th:nth-child(2), :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table) td:nth-child(2) { min-width: 220px; }
    /* V554 (owner 2026-11-04, phone screenshot): on a phone, and on a touch screen held sideways, the pinned Name column of the five reports is 130 px and the names wrap, so the scrolling columns beside it have room to be read (before it was as wide as the longest name, one line, at least 220 px) */
    @media (max-width: 600px), (pointer: coarse) and (max-width: 1000px) {
      :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) th:nth-child(2),
      :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) tbody td:nth-child(2) { width: 130px !important; min-width: 130px !important; max-width: 130px; white-space: normal !important; overflow-wrap: anywhere; box-sizing: border-box; }
      :is(#allocation-table, #sector-table, #country-table, #company-table, #overlap-table):is(.hide-details, :not(.hide-details)) tfoot td:nth-child(2) { min-width: 130px !important; box-sizing: border-box; }   /* the total rows' labels wrap in the same 130 px */
    }
    .dq-n { color: #666; }
    .dq-empty-msg { display: none; color: #c62828; font-size: 14px; margin: 6px 0 10px; }


/* Auth Pending */
html.auth-pending body{visibility:hidden}html.auth-pending #authOverlay,html.auth-pending #termsOverlay{visibility:visible}


/* Brokerage Status */
#wsLastRead:empty, #wsMsg:empty { display: none; }

table.print-measure-width { width: 1px !important; }
